!function(){var e,t,n,r,i,o,a,s,u,c,l,h,d,f,p,v,g,m,y,_,b,k;function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=T(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function T(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new le(e,n,r);if(!i.closed)return t instanceof ne?t.subscribe(i):ve(t)(i)}var me=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(J);function ye(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new _e(e,t))}}var _e=function(){function e(t,n){H(this,e),this.project=t,this.thisArg=n}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new be(e,this.project,this.thisArg))}}]),e}(),be=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||L(o),o}return j(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(J);function ke(e,t){return new ne(function(n){var r=new Q,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function we(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[ee]}(e))return function(e,t){return new ne(function(n){var r=new Q;return r.add(t.schedule(function(){var i=e[ee]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(pe(e))return function(e,t){return new ne(function(n){var r=new Q;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(fe(e))return ke(e,t);if(function(e){return e&&"function"==typeof e[de]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new ne(function(n){var r,i=new Q;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[de](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof ne?e:new ne(ve(e))}function Ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(Ce(function(n,r){return we(e(n,r)).pipe(ye(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Se(e,n))})}var Se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;H(this,e),this.project=t,this.concurrent=n}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new Ee(e,this.project,this.concurrent))}}]),e}(),Ee=function(e){x(n,e);var t=D(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return H(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return j(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(me);function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Ce(te,e)}function Te(e,t){return t?ke(e,t):new ne(he(e))}function Ae(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof ne?t[0]:Oe(r)(Te(t,i))}function Re(){return function(e){return e.lift(new Pe(e))}}var Pe=function(){function e(t){H(this,e),this.connectable=t}return j(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new Ie(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),Ie=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).connectable=r,i}return j(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}else this.connection=null}}]),n}(J),xe=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return j(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Q).add(this.source.subscribe(new De(this.getSubject(),this))),e.closed&&(this._connection=null,e=Q.EMPTY)),e}},{key:"refCount",value:function(){return Re()(this)}}]),n}(ne),Me=function(){var e=xe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),De=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).connectable=r,i}return j(n,[{key:"_error",value:function(e){this._unsubscribe(),I(U(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),I(U(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(ae);function Ne(){return new se}function Le(){return function(e){return Re()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,Me);return r.source=t,r.subjectFactory=n,r}}(Ne)(e))}}function Fe(e){for(var t in e)if(e[t]===Fe)return t;throw Error("Could not find renamed property on target object.")}function Ue(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function He(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(He).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ve(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var je=Fe({__forward_ref__:Fe});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return He(this())},e}function ze(e){return qe(e)?e():e}function qe(e){return"function"==typeof e&&e.hasOwnProperty(je)&&e.__forward_ref__===Be}var Ke=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(R(Error));function Ge(e){return"string"==typeof e?e:null==e?"":String(e)}function We(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ge(e)}function Ye(e,t){var n=t?" in ".concat(t):"";throw new Ke("201","No provider for ".concat(We(e)," found").concat(n))}function Qe(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+(null==r?"":" [Expected=> ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function Xe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ze(e){return{providers:e.providers||[],imports:e.imports||[]}}function Je(e){return $e(e,nt)||$e(e,it)}function $e(e,t){return e.hasOwnProperty(t)?e[t]:null}function et(e){return e&&(e.hasOwnProperty(rt)||e.hasOwnProperty(ot))?e[rt]:null}var tt,nt=Fe({"\u0275prov":Fe}),rt=Fe({"\u0275inj":Fe}),it=Fe({ngInjectableDef:Fe}),ot=Fe({ngInjectorDef:Fe}),at=((at=at||{})[at.Default=0]="Default",at[at.Host=1]="Host",at[at.Self=2]="Self",at[at.SkipSelf=4]="SkipSelf",at[at.Optional=8]="Optional",at);function st(e){var t=tt;return tt=e,t}function ut(e,t,n){var r=Je(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&at.Optional?null:void 0!==t?t:void Ye(He(e),"Injector")}function ct(e){return{toString:e}.toString()}var lt=((lt=lt||{})[lt.OnPush=0]="OnPush",lt[lt.Default=1]="Default",lt),ht=((ht=ht||{})[ht.Emulated=0]="Emulated",ht[ht.None=2]="None",ht[ht.ShadowDom=3]="ShadowDom",ht),dt="undefined"!=typeof globalThis&&globalThis,ft="undefined"!=typeof window&&window,pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt="undefined"!=typeof global&&global,gt=dt||vt||ft||pt,mt={},yt=[],_t=Fe({"\u0275cmp":Fe}),bt=Fe({"\u0275dir":Fe}),kt=Fe({"\u0275pipe":Fe}),wt=Fe({"\u0275mod":Fe}),Ct=Fe({"\u0275loc":Fe}),St=Fe({"\u0275fac":Fe}),Et=Fe({__NG_ELEMENT_ID__:Fe}),Ot=0;function Tt(e){return ct(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===lt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||yt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,id:"c",styles:e.styles||yt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Ot++,n.inputs=xt(e.inputs,t),n.outputs=xt(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(At)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Rt)}:null,n})}function At(e){return Nt(e)||function(e){return e[bt]||null}(e)}function Rt(e){return function(e){return e[kt]||null}(e)}var Pt={};function It(e){return ct(function(){var t={type:e.type,bootstrap:e.bootstrap||yt,declarations:e.declarations||yt,imports:e.imports||yt,exports:e.exports||yt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Pt[e.id]=e.type),t})}function xt(e,t){if(null==e)return mt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Mt=Tt;function Dt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Nt(e){return e[_t]||null}function Lt(e,t){var n=e[wt]||null;if(!n&&!0===t)throw new Error("Type ".concat(He(e)," does not have '\u0275mod' property."));return n}function Ft(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ut(e){return Array.isArray(e)&&!0===e[1]}function Ht(e){return 0!=(8&e.flags)}function Vt(e){return 2==(2&e.flags)}function jt(e){return 1==(1&e.flags)}function Bt(e){return null!==e.template}function zt(e){return 0!=(512&e[2])}function qt(e,t){return e.hasOwnProperty(St)?e[St]:null}var Kt=function(){function e(t,n,r){H(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return j(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Gt(){return Wt}function Wt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qt),Yt}function Yt(){var e=Zt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===mt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qt(e,t,n,r){var i=Zt(e)||function(e,t){return e[Xt]=t}(e,{previous:mt,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Kt(u&&u.currentValue,t,a===mt),e[r]=t}Gt.ngInherit=!0;var Xt="__ngSimpleChanges__";function Zt(e){return e[Xt]||null}var Jt,$t="http://www.w3.org/2000/svg";function en(){return void 0!==Jt?Jt:"undefined"!=typeof document?document:void 0}function tn(e){return!!e.listen}var nn={createRenderer:function(e,t){return en()}};function rn(e){for(;Array.isArray(e);)e=e[0];return e}function on(e,t){return rn(t[e])}function an(e,t){return rn(t[e.index])}function sn(e,t){return e.data[t]}function un(e,t){return e[t]}function cn(e,t){var n=t[e];return Ft(n)?n:n[0]}function ln(e){return 4==(4&e[2])}function hn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function fn(e){e[18]=0}function pn(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var vn={lFrame:jn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function gn(){return vn.bindingsEnabled}function mn(){return vn.lFrame.lView}function yn(){return vn.lFrame.tView}function _n(e){return vn.lFrame.contextLView=e,e[8]}function bn(){for(var e=kn();null!==e&&64===e.type;)e=e.parent;return e}function kn(){return vn.lFrame.currentTNode}function wn(){var e=vn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Cn(e,t){var n=vn.lFrame;n.currentTNode=e,n.isParent=t}function Sn(){return vn.lFrame.isParent}function En(){vn.lFrame.isParent=!1}function On(){return vn.isInCheckNoChangesMode}function Tn(e){vn.isInCheckNoChangesMode=e}function An(){var e=vn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Rn(){return vn.lFrame.bindingIndex}function Pn(){return vn.lFrame.bindingIndex++}function In(e){var t=vn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function xn(e){vn.lFrame.inI18n=e}function Mn(e,t){var n=vn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Dn(t)}function Dn(e){vn.lFrame.currentDirectiveIndex=e}function Nn(){return vn.lFrame.currentQueryIndex}function Ln(e){vn.lFrame.currentQueryIndex=e}function Fn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Un(e,t,n){if(n&at.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&at.Host||(r=Fn(i),null===r||(i=i[15],10&r.type))););if(null===r)return!1;t=r,e=i}var o=vn.lFrame=Vn();return o.currentTNode=t,o.lView=e,!0}function Hn(e){var t=Vn(),n=e[1];vn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Vn(){var e=vn.lFrame,t=null===e?null:e.child;return null===t?jn(e):t}function jn(e){var 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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Bn(){var e=vn.lFrame;return vn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var zn=Bn;function qn(){var e=Bn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Kn(){return vn.lFrame.selectedIndex}function Gn(e){vn.lFrame.selectedIndex=e}function Wn(){var e=vn.lFrame;return sn(e.tView,e.selectedIndex)}function Yn(){vn.lFrame.currentNamespace=$t}function Qn(){vn.lFrame.currentNamespace=null}function Xn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var nr=function e(t,n,r){H(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function rr(e,t,n){for(var r=tn(e),i=0;it){a=o-1;break}}}for(;o>16}(e),r=t;n>0;)r=r[15],n--;return r}var hr=!0;function dr(e){var t=hr;return hr=e,t}var fr=0;function pr(e,t){var n=gr(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,vr(r.data,e),vr(t,null),vr(r.blueprint,null));var i=mr(e,t),o=e.injectorIndex;if(ur(i))for(var a=cr(i),s=lr(i,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=i,o}function vr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function mr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function yr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Et)&&(r=n[Et]),null==r&&(r=n[Et]=fr++);var i=255&r;t.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:at.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Et)?e[Et]:void 0;return"number"==typeof t?t>=0?255&t:Cr:t}(n);if("function"==typeof o){if(!Un(t,e,r))return r&at.Host?_r(i,n,r):br(t,n,r,i);try{var a=o(r);if(null!=a||r&at.Optional)return a;Ye(n)}finally{zn()}}else if("number"==typeof o){var s=null,u=gr(e,t),c=-1,l=r&at.Host?t[16][6]:null;for((-1===u||r&at.SkipSelf)&&(-1!==(c=-1===u?mr(e,t):t[u+8])&&Ar(r,!1)?(s=t[1],u=cr(c),t=lr(c,t)):u=-1);-1!==u;){var h=t[1];if(Tr(o,u,h.data)){var d=Sr(u,t,n,s,r,l);if(d!==wr)return d}-1!==(c=t[u+8])&&Ar(r,t[1].data[u+8]===l)&&Tr(o,u,t)?(s=h,u=cr(c),t=lr(c,t)):u=-1}}}return br(t,n,r,i)}var wr={};function Cr(){return new Rr(bn(),mn())}function Sr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=Er(s,a,n,null==r?Vt(s)&&hr:r!=a&&0!=(3&s.type),i&at.Host&&o===s);return null!==u?Or(t,a,u,s):wr}function Er(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=i?s+c:e.directiveEnd,h=r?s:s+c;h=u&&d.type===n)return h}if(i){var f=a[u];if(f&&Bt(f)&&f.type===n)return u}return null}function Or(e,t,n,r){var i=e[n],o=t.data;if(function(e){return e instanceof nr}(i)){var a=i;a.resolving&&function(e,t){throw new Ke("200","Circular dependency in DI detected for ".concat(e))}(We(o[n]));var s=dr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?st(a.injectImpl):null;Un(e,r,at.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=Wt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&st(u),dr(s),a.resolving=!1,zn()}}return i}function Tr(e,t,n){return!!(n[t+(e>>5)]&1<1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t)},Vr),Br=Fr("ContentChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Vr),zr=Fr("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Vr),qr=Function;function Kr(e,t){void 0===t&&(t=e);for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Yr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qr(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Zr(e,t){var n=Jr(e,t);if(n>=0)return e[1|n]}function Jr(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var $r,ei={},ti="__NG_DI_FLAG__",ni="ngTempTokenPath",ri=/\n/gm,ii="__source",oi=Fe({provide:String,useValue:Fe});function ai(e){var t=$r;return $r=e,t}function si(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at.Default;if(void 0===$r)throw new Error("inject() must be called from an injection context");return null===$r?ut(e,void 0,t):$r.get(e,t&at.Optional?null:void 0,t)}function ui(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at.Default;return(tt||si)(ze(e),t)}var ci=ui;function li(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=He(t);if(Array.isArray(t))i=t.map(He).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):He(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(ri,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[ni]=null,e}var pi,vi,gi=hi(Lr("Inject",function(e){return{token:e}}),-1),mi=hi(Lr("Optional"),8),yi=hi(Lr("SkipSelf"),4);function _i(e){var t;return(null===(t=function(){if(void 0===pi&&(pi=null,gt.trustedTypes))try{pi=gt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return pi}())||void 0===t?void 0:t.createHTML(e))||e}function bi(e){var t;return(null===(t=function(){if(void 0===vi&&(vi=null,gt.trustedTypes))try{vi=gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return vi}())||void 0===t?void 0:t.createHTML(e))||e}var ki=function(){function e(t){H(this,e),this.changingThisBreaksApplicationSecurity=t}return j(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),wi=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ki),Ci=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(ki),Si=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ki),Ei=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ki),Oi=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ki);function Ti(e){return e instanceof ki?e.changingThisBreaksApplicationSecurity:e}function Ai(e,t){var n=Ri(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Ri(e){return e instanceof ki&&e.getTypeName()||null}function Pi(e){var t=new xi(e);return function(){try{return!!(new window.DOMParser).parseFromString(_i(""),"text/html")}catch(e){return!1}}()?new Ii(t):t}var Ii=function(){function e(t){H(this,e),this.inertDocumentHelper=t}return j(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(_i(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),xi=function(){function e(t){if(H(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return j(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=_i(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=_i(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();zi.hasOwnProperty(t)&&!Vi.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Zi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xi=/([^\#-~ |!])/g;function Zi(e){return e.replace(/&/g,"&").replace(Qi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Xi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ji(e,t){var n=null;try{Hi=Hi||Pi(e);var r=t?String(t):"";n=Hi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Hi.getInertBodyElement(r)}while(r!==o);return _i((new Yi).sanitizeChildren($i(n)||n))}finally{if(n)for(var a=$i(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function $i(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var eo=((eo=eo||{})[eo.NONE=0]="NONE",eo[eo.HTML=1]="HTML",eo[eo.STYLE=2]="STYLE",eo[eo.SCRIPT=3]="SCRIPT",eo[eo.URL=4]="URL",eo[eo.RESOURCE_URL=5]="RESOURCE_URL",eo);function to(e){var t=ro();return t?bi(t.sanitize(eo.HTML,e)||""):Ai(e,"HTML")?bi(Ti(e)):Ji(en(),Ge(e))}function no(e){var t=ro();return t?t.sanitize(eo.URL,e)||"":Ai(e,"URL")?Ti(e):Ni(Ge(e))}function ro(){var e=mn();return e&&e[12]}var io="__ngContext__";function oo(e,t){e[io]=t}function ao(e){var t=function(e){return e[io]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function so(e){return e.ngOriginalError}function uo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r|^->||--!>|)/,fo=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(gt);function po(e){return e instanceof Function?e():e}var vo,go=((go=go||{})[go.Important=1]="Important",go[go.DashCase=2]="DashCase",go);function mo(e,t){return vo(e,t)}function yo(e){var t=e[3];return Ut(t)?t[3]:t}function _o(e){return ko(e[13])}function bo(e){return ko(e[4])}function ko(e){for(;null!==e&&!Ut(e);)e=e[4];return e}function wo(e,t,n,r,i){if(null!=r){var o,a=!1;Ut(r)?o=r:Ft(r)&&(a=!0,r=r[0]);var s=rn(r);0===e&&null!==n?null==i?Do(t,n,s):Mo(t,n,s,i||null,!0):1===e&&null!==n?Mo(t,n,s,i||null,!0):2===e?Go(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,r,i){var o=n[7];o!==rn(n)&&wo(t,e,r,o,i);for(var a=10;a0&&(e[n-1][4]=r[4]);var o=Yr(e,10+t);!function(e,t){Yo(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ro(e,t){if(!(256&t[2])){var n=t[11];tn(n)&&n.destroyNode&&Yo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Po(e[1],e);for(;t;){var n=null;if(Ft(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ft(t)&&Po(t[1],t),t=t[3];null===t&&(t=e),Ft(t)&&Po(t[1],t),n=t&&t[4]}t=n}}(t)}}function Po(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r){for(var h=i+1;ho?"":i[l+1].toLowerCase();var d=8&r?h:null;if(d&&-1!==Jo(d,c,0)||2&r&&c!==h){if(ia(r))return!1;a=!0}}}}else{if(!a&&!ia(r)&&!ia(u))return!1;if(a&&ia(u))continue;a=!1,r=u|1&r}}return ia(r)||a}function ia(e){return 0==(1&e)}function oa(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!ia(a)&&(t+=ua(o,i),i=""),r=a,o=o||!ia(r);n++}return""!==i&&(t+=ua(o,i)),t}var la={};function ha(e){da(yn(),mn(),Kn()+e,On())}function da(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Zn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Jn(t,o,0,n)}Gn(n)}function fa(e,t){return e<<17|t<<2}function pa(e){return e>>17&32767}function va(e){return 2|e}function ga(e){return(131068&e)>>2}function ma(e,t){return-131069&e|t<<2}function ya(e){return 1|e}function _a(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&da(e,t,20,On()),n(r,i)}finally{Gn(o)}}function Aa(e,t,n){if(Ht(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:an,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Ua(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ha(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Va(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Qa(n)}}function Qa(e){for(var t=_o(e);null!==t;t=bo(t))for(var n=10;n0&&Qa(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Qa(s)}}function Xa(e,t){var n=cn(t,e),r=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:ei;if(t===ei){var n=new Error("NullInjectorError: No provider for ".concat(He(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ds=new Ur("Set Injector scope."),fs={},ps={};function vs(){return void 0===cs&&(cs=new hs),cs}function gs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ms(e,n,t||vs(),r)}var ms=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;H(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Gr(n,function(e){return i.processProvider(e,t,n)}),Gr([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(ls,bs(void 0,this));var s=this.records.get(ds);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:He(t))}return j(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ei,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at.Default;this.assertNotDestroyed();var r=ai(this),i=st(void 0);try{if(!(n&at.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ur}(e)&&Je(e);o=a&&this.injectableDefInScope(a)?bs(ys(e),fs):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&at.Self?vs():this.parent).get(e,t=n&at.Optional&&t===ei?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[ni]=s[ni]||[]).unshift(He(e)),r)throw s;return fi(s,e,"R3InjectorError",this.source)}throw s}finally{st(i),ai(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(He(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=ze(e)))return!1;var i=et(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=et(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{Gr(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,i=t.providers;Gr(i,function(e){return r.processProvider(e,n,i||yt)})},l=0;l0){var n=Qr(t,"?");throw new Error("Can't resolve all parameters for ".concat(He(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[nt]||e[it]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function _s(e,t,n){var r;if(ws(e)){var i=ze(e);return qt(i)||ys(i)}if(ks(e))r=function(){return ze(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))r=function(){return e.useFactory.apply(e,E(li(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return ui(ze(e.useExisting))};else{var o=ze(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return qt(o)||ys(o);r=function(){return P(o,E(li(e.deps)))}}return r}function bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ks(e){return null!==e&&"object"==typeof e&&oi in e}function ws(e){return"function"==typeof e}var Cs=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=gs(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ss=function(){function e(){H(this,e)}return j(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Cs(e,t,""):Cs(e.providers,e.parent,e.name||"")}}]),e}();function Es(e,t){Xn(ao(e)[1],bn())}function Os(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,r=[e];t;){var i=void 0;if(Bt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Ts(e.inputs),o.declaredInputs=Ts(e.declaredInputs),o.outputs=Ts(e.outputs);var a=i.hostBindings;a&&Ps(e,a);var s=i.viewQuery,u=i.contentQueries;if(s&&As(e,s),u&&Rs(e,u),Ue(e.inputs,i.inputs),Ue(e.declaredInputs,i.declaredInputs),Ue(e.outputs,i.outputs),Bt(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ar(i.hostAttrs,n=ar(n,i.hostAttrs))}}(r)}function Ts(e){return e===mt?{}:e===yt?[]:e}function As(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Rs(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Ps(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}Ss.THROW_IF_NOT_FOUND=ei,Ss.NULL=new hs,Ss.\u0275prov=Xe({token:Ss,providedIn:"any",factory:function(){return ui(ls)}}),Ss.__NG_ELEMENT_ID__=-1;var Is=null;function xs(){if(!Is){var e=gt.Symbol;if(e&&e.iterator)Is=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:at.Default,n=mn();return null===n?ui(e,t):kr(bn(),n,ze(e),t)}function qs(e,t,n){var r=mn();return Fs(r,Pn(),t)&&Na(yn(),Wn(),r,e,t,r[11],n,!1),qs}function Ks(e,t,n,r,i){var o=i?"class":"style";as(e,n,t.inputs[o],o,r)}function Gs(e,t,n,r){var i=mn(),o=yn(),a=20+e,s=i[11],u=i[a]=Oo(s,t,vn.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=ka(t,e,2,i,dn(s,o));return La(t,n,u,dn(s,a)),null!==u.attrs&&us(u,u.attrs,!1),null!==u.mergedAttrs&&us(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];Cn(c,!0);var l=c.mergedAttrs;null!==l&&rr(s,u,l);var h=c.classes;null!==h&&Zo(s,u,h);var d=c.styles;null!==d&&Xo(s,u,d),64!=(64&c.flags)&&Bo(o,i,u,c),0===vn.lFrame.elementDepthCount&&oo(u,i),vn.lFrame.elementDepthCount++,jt(c)&&(Ra(o,i,c),Aa(o,c,i)),null!==r&&Pa(i,c)}function Ws(){var e=bn();Sn()?En():Cn(e=e.parent,!1);var t=e;vn.lFrame.elementDepthCount--;var n=yn();n.firstCreatePass&&(Xn(n,e),Ht(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ks(n,t,mn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ks(n,t,mn(),t.stylesWithoutHost,!1)}function Ys(e,t,n,r){Gs(e,t,n,r),Ws()}function Qs(e,t,n){var r=mn(),i=yn(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=dn(o,r),s=ka(t,e,8,"ng-container",a);return null!==a&&us(s,a,!0),La(t,n,s,dn(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,i,r,t,n):i.data[o];Cn(a,!0);var s=r[o]=r[11].createComment("");Bo(i,r,s,a),oo(s,r),jt(a)&&(Ra(i,r,a),Aa(i,a,r)),null!=n&&Pa(r,a)}function Xs(){var e=bn(),t=yn();Sn()?En():Cn(e=e.parent,!1),t.firstCreatePass&&(Xn(t,e),Ht(e)&&t.queries.elementEnd(e))}function Zs(e,t,n){Qs(e,t,n),Xs()}function Js(){return mn()}function $s(e){return!!e&&"function"==typeof e.then}function eu(e){return!!e&&"function"==typeof e.subscribe}var tu=eu;function nu(e,t,n,r){var i=mn(),o=yn(),a=bn();return function(e,t,n,r,i,o,a,s){var u=jt(r),c=e.firstCreatePass&&is(e),l=t[8],h=rs(t),d=!0;if(3&r.type||s){var f=an(r,t),p=s?s(f):f,v=h.length,g=s?function(e){return s(rn(e[r.index]))}:r.index;if(tn(n)){var m=null;if(!s&&u&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=iu(r,t,l,o,!1);var y=n.listen(p,i,o);h.push(o,y),c&&c.push(i,g,v,v+1)}}else o=iu(r,t,l,o,!0),p.addEventListener(i,o,a),h.push(o),c&&c.push(i,g,v,a)}else o=iu(r,t,l,o,!1);var _,b=r.outputs;if(d&&null!==b&&(_=b[i])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(vn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,vn.lFrame.contextLView))[8]}(e)}function au(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=mn(),i=yn(),o=ka(i,20+e,16,null,n||null);null===o.projection&&(o.projection=t),En(),64!=(64&o.flags)&&function(e,t,n){Qo(t[11],0,t,n,Io(e,n,t),Fo(n.parent||t[6],n,t))}(i,r,o)}function cu(e,t,n){return lu(e,"",t,"",n),cu}function lu(e,t,n,r,i){var o=mn(),a=Vs(o,t,n,r);return a!==la&&Na(yn(),Wn(),o,e,a,o[11],i,!1),lu}function hu(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?pa(o):ga(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];du(e[s],t)&&(u=!0,e[s+1]=r?ya(c):va(c)),s=r?pa(c):ga(c)}u&&(e[n+1]=r?va(o):ya(o))}function du(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Jr(e,t)>=0}var fu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pu(e){return e.substring(fu.key,fu.keyEnd)}function vu(e,t){var n=fu.textEnd;return n===t?-1:(t=fu.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,fu.key=t,n),gu(e,t,n))}function gu(e,t,n){for(;t=0;n=vu(t,n))Xr(e,pu(t),!0)}function ku(e,t,n,r){var i=mn(),o=yn(),a=In(2);o.firstUpdatePass&&Su(o,e,a,r),t!==la&&Fs(i,a,t)&&Tu(o,o.data[Kn()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=He(Ti(e)))),e}(t,n),r,a)}function wu(e,t,n,r){var i=yn(),o=In(2);i.firstUpdatePass&&Su(i,null,o,r);var a=mn();if(n!==la&&Fs(a,o,n)){var s=i.data[Kn()];if(Pu(s,r)&&!Cu(i,o)){var u=r?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=Ve(u,n||"")),Ks(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===la&&(i=yt);for(var u=0,c=0,l=0=e.expandoStartIndex}function Su(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Kn()],a=Cu(e,n);Pu(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=vn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ou(n=Eu(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Eu(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==ga(r))return e[pa(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[pa(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Ou(s=Eu(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==u){var d=pa(e[s+1]);e[r+1]=fa(d,s),0!==d&&(e[d+1]=ma(e[d+1],r)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],r)}else e[r+1]=fa(s,0),0!==s&&(e[s+1]=ma(e[s+1],r)),s=r;else e[r+1]=fa(u,0),0===s?s=r:e[u+1]=ma(e[u+1],r),u=r;l&&(e[r+1]=va(e[r+1])),hu(e,c,r,!0),hu(e,c,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Jr(o,t)>=0&&(n[r+1]=ya(n[r+1]))}(t,c,e,r,o),a=fa(s,u),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function Eu(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=n[i+1];d===la&&(d=h?yt:void 0);var f=h?Zr(d,r):l===r?d:void 0;if(c&&!Ru(f)&&(f=Zr(u,r)),Ru(f)&&(a=f,s))return a;var p=e[i+1];i=s?pa(p):ga(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=Zr(v,r))}return a}function Ru(e){return void 0!==e}function Pu(e,t){return 0!=(e.flags&(t?16:32))}function Iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=mn(),r=yn(),i=e+20,o=r.firstCreatePass?ka(r,i,1,t,null):r.data[i],a=n[i]=Co(n[11],t);Bo(r,n,a,o),Cn(o,!1)}function xu(e){return Mu("",e,""),xu}function Mu(e,t,n){var r=mn(),i=Vs(r,e,t,n);return i!==la&&ss(r,Kn(),i),Mu}function Du(e,t,n,r,i){var o=mn(),a=function(e,t,n,r,i,o){var a=Us(e,Rn(),n,i);return In(2),a?t+Ge(n)+r+Ge(i)+o:la}(o,e,t,n,r,i);return a!==la&&ss(o,Kn(),a),Du}function Nu(e,t,n){var r=mn();return Fs(r,Pn(),t)&&Na(yn(),Wn(),r,e,t,r[11],n,!0),Nu}var Lu=void 0,Fu=["en",[["a","p"],["AM","PM"],Lu],[["AM","PM"],Lu,Lu],[["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"]],Lu,[["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"]],Lu,[["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}",Lu,"{1} 'at' {0}",Lu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Uu={};function Hu(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ju(t);if(n)return n;var r=t.split("-")[0];if(n=ju(r))return n;if("en"===r)return Fu;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Vu(e){return Hu(e)[Bu.PluralCase]}function ju(e){return e in Uu||(Uu[e]=gt.ng&>.ng.common&>.ng.common.locales&>.ng.common.locales[e]),Uu[e]}var Bu=((Bu=Bu||{})[Bu.LocaleId=0]="LocaleId",Bu[Bu.DayPeriodsFormat=1]="DayPeriodsFormat",Bu[Bu.DayPeriodsStandalone=2]="DayPeriodsStandalone",Bu[Bu.DaysFormat=3]="DaysFormat",Bu[Bu.DaysStandalone=4]="DaysStandalone",Bu[Bu.MonthsFormat=5]="MonthsFormat",Bu[Bu.MonthsStandalone=6]="MonthsStandalone",Bu[Bu.Eras=7]="Eras",Bu[Bu.FirstDayOfWeek=8]="FirstDayOfWeek",Bu[Bu.WeekendRange=9]="WeekendRange",Bu[Bu.DateFormat=10]="DateFormat",Bu[Bu.TimeFormat=11]="TimeFormat",Bu[Bu.DateTimeFormat=12]="DateTimeFormat",Bu[Bu.NumberSymbols=13]="NumberSymbols",Bu[Bu.NumberFormats=14]="NumberFormats",Bu[Bu.CurrencyCode=15]="CurrencyCode",Bu[Bu.CurrencySymbol=16]="CurrencySymbol",Bu[Bu.CurrencyName=17]="CurrencyName",Bu[Bu.Currencies=18]="Currencies",Bu[Bu.Directionality=19]="Directionality",Bu[Bu.PluralCase=20]="PluralCase",Bu[Bu.ExtraData=21]="ExtraData",Bu),zu=["zero","one","two","few","many"],qu="en-US",Ku={marker:"element"},Gu={marker:"ICU"},Wu=((Wu=Wu||{})[Wu.SHIFT=2]="SHIFT",Wu[Wu.APPEND_EAGERLY=1]="APPEND_EAGERLY",Wu[Wu.COMMENT=2]="COMMENT",Wu),Yu=qu;function Qu(e){(function(e,t){null==e&&Qe("Expected localeId to be defined",e,null,"!=")})(e),"string"==typeof e&&(Yu=e.toLowerCase().replace(/_/g,"-"))}function Xu(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Uo(e,0,n):rn(n[i])}function Zu(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,s=null;if(3&t.type||(s=a,a=i),null!==a&&0==(2&t.flags))for(var u=1;u1)for(var n=e.length-2;n>=0;n--){var r=e[n];$u(r)||ec(r,t)&&null===tc(r)&&nc(r,t.index)}}function $u(e){return!(64&e.type)}function ec(e,t){return $u(t)||e.index>t.index}function tc(e){var t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function nc(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(jo(Xu,Zu),e.insertBeforeIndex=t)}function rc(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ic(e,t,n){var r=wa(e,n,64,null,null);return Ju(t,r),r}function oc(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function ac(e){return e>>>17}function sc(e){return(131070&e)>>>1}var uc=0,cc=0;function lc(e,t,n,r){for(var i,o=n[11],a=null,s=0;s>>1,n),null,null,g,m,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(u,'"'))}else switch(u){case Gu:var y=t[++s],_=t[++s];null===n[_]&&oo(n[_]=Eo(o,y),n);break;case Ku:var b=t[++s],k=t[++s];null===n[k]&&oo(n[k]=Oo(o,b,null),n)}}}function hc(e,t,n,r,i){for(var o=0;o>>2;switch(3&l){case 1:var d=n[++c],f=n[++c],p=e.data[h];"string"==typeof p?qa(t[11],t[h],null,p,d,u,f):Na(e,p,t,d,u,t[11],f,!1);break;case 0:var v=t[h];null!==v&&So(t[11],v,u);break;case 2:fc(e,rc(e,h),t,u);break;case 3:dc(e,rc(e,h),r,t)}}}else{var g=n[o+1];if(g>0&&3==(3&g)){var m=rc(e,g>>>2);t[m.currentCaseLViewIndex]<0&&dc(e,m,r,t)}}o+=s}}function dc(e,t,n,r){var i=r[t.currentCaseLViewIndex];if(null!==i){var o=uc;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),hc(e,r,t.update[i],n,o)}}function fc(e,t,n,r){var i=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){var n=Vu(t)(parseInt(e,10)),r=zu[n];return void 0!==r?r:"other"}(t,Yu);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(oc(t,n)!==i&&(pc(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){var o=n[t.anchorIdx];o&&lc(e,t.create[i],n,o)}}function pc(e,t,n){var r=oc(t,n);if(null!==r)for(var i=t.remove[r],o=0;o0){var s=on(a,n);null!==s&&Go(n[11],s)}else pc(e,rc(e,~a),n)}}function vc(){var e,t,n=[],r=-1;function i(e,n){r=0;var i=oc(e,n);t=null!==i?e.remove[i]:yt}function o(){if(r0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}var gc=/\ufffd(\d+):?\d*\ufffd/gi,mc=/\ufffd(\d+)\ufffd/,yc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_c=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bc=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,kc=/\uE500/g;function wc(e,t,n,r,i,o,a){var s=Ca(e,r,1,null),u=s<n.length&&n.push(u)}return{type:r,mainBinding:i,cases:t,values:n}}function Rc(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var s=e.substring(n,a);yc.test(s)?i.push(Ac(s)):i.push(s),n=a+1}}else{if(0==r.length){var u=e.substring(n,a);i.push(u),n=a+1}r.push("{")}}var c=e.substring(n);return i.push(c),i}function Pc(e,t,n,r,i,o,a,s){var u=[],c=[],l=[];t.cases.push(o),t.create.push(u),t.remove.push(c),t.update.push(l);var h=Pi(en()).getInertBodyElement(a),d=$i(h)||h;return d?Ic(e,t,n,r,u,c,l,d,i,s,0):0}function Ic(e,t,n,r,i,o,a,s,u,c,l){for(var h=0,d=s.firstChild;d;){var f=Ca(e,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:var p=d,v=p.tagName.toLowerCase();if(zi.hasOwnProperty(v)){Dc(i,Ku,v,u,f),e.data[f]=v;for(var g=p.attributes,m=0;m2&&void 0!==arguments[2]?arguments[2]:-1,r=yn(),i=mn(),o=20+e,a=dn(r.consts,t),s=wn();r.firstCreatePass&&function(e,t,n,r,i,o){for(var a=wn(),s=[],u=[],c=[[]],l=function(e){return e.replace(kc," ")}(i=function(e,t){if(function(e){return-1===e}(t))return Oc(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Oc(e.substring(n,r))}(i,o)).split(bc),h=0;h>>Wu.SHIFT,h=e[l];null===h&&(h=e[l]=u?i.createComment(s):Co(i,s)),c&&null!==n&&Mo(i,n,h,r,!1)}})(i,u.create,c,s&&8&s.type?i[s.index]:null),xn(!0)})(e,t,n),xn(!1)}function Fc(e){return function(e){e&&(uc|=1<0){var r=e.data[n];hc(e,t,Array.isArray(r)?r:r.update,Rn()-cc-1,uc)}uc=0,cc=0}(yn(),mn(),e+20)}function Hc(e,t,n,r,i){if(e=ze(e),Array.isArray(e))for(var o=0;o>20;if(ws(e)||!e.multi){var p=new nr(c,i,zs),v=Bc(u,t,i?h:h+f,d);-1===v?(yr(pr(l,s),a,u),Vc(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Bc(u,t,h+f,d),m=Bc(u,t,h,h+f),y=g>=0&&n[g],_=m>=0&&n[m];if(i&&!_||!i&&!y){yr(pr(l,s),a,u);var b=function(e,t,n,r,i){var o=new nr(e,n,zs);return o.multi=[],o.index=t,o.componentProviders=0,jc(o,i,r&&!n),o}(i?qc:zc,n.length,i,r,c);!i&&_&&(n[m].providerFactory=b),Vc(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else Vc(a,e,g>-1?g:m,jc(n[i?m:g],c,!i&&r));!i&&r&&_&&n[m].componentProviders++}}}function Vc(e,t,n,r){var i=ws(t);if(i||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function jc(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Bc(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=yn();if(r.firstCreatePass){var i=Bt(e);Hc(n,r.data,r.blueprint,i,!0),Hc(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var Wc=function e(){H(this,e)},Yc=function e(){H(this,e)};function Qc(){}function Xc(e,t){return new Jc(an(e,t))}Yc.NULL=new(function(){function e(){H(this,e)}return j(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(He(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}());var Zc=function(){return Xc(bn(),mn())},Jc=function(){var e=function e(t){H(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Zc,e}();function $c(e){return e instanceof Jc?e.nativeElement:e}var el=function e(){H(this,e)},tl=function(){var e=function e(){H(this,e)};return e.__NG_ELEMENT_ID__=function(){return nl()},e}(),nl=function(){var e=mn(),t=cn(bn().index,e);return function(e){return e[11]}(Ft(t)?t:e)},rl=function(){var e=function e(){H(this,e)};return e.\u0275prov=Xe({token:e,providedIn:"root",factory:function(){return null}}),e}(),il=function e(t){H(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ol=new il("12.1.4"),al=function(){function e(){H(this,e)}return j(e,[{key:"supports",value:function(e){return Ds(e)}},{key:"create",value:function(e){return new ul(e)}}]),e}(),sl=function(e,t){return t},ul=function(){function e(t){H(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||sl}return j(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(rn(o)),Ut(o))for(var a=10;a-1&&(Ao(e,n),Yr(t,n))}this._attachedToViewContainer=!1}Ro(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Ma(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ja(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){$a(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Tn(!0);try{$a(e,t,n)}finally{Tn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,t){Yo(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),wl=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this,e))._view=e,r}return j(n,[{key:"detectChanges",value:function(){es(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Tn(!0);try{es(e)}finally{Tn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(kl),Cl=function(e){return function(e,t,n){if(Vt(e)&&!n){var r=cn(e.index,t);return new kl(r,r)}return 47&e.type?new kl(t[16],t):null}(bn(),mn(),16==(16&e))},Sl=function(){var e=function e(){H(this,e)};return e.__NG_ELEMENT_ID__=Cl,e}(),El=[new fl],Ol=new ml([new al]),Tl=new _l(El),Al=function(){return Il(bn(),mn())},Rl=function(){var e=function e(){H(this,e)};return e.__NG_ELEMENT_ID__=Al,e}(),Pl=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return j(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=ba(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Sa(t,n,e),new kl(n)}}]),n}(Rl);function Il(e,t){return 4&e.type?new Pl(t,e,Xc(e,t)):null}var xl=function e(){H(this,e)},Ml=function e(){H(this,e)},Dl=function(){return Hl(bn(),mn())},Nl=function(){var e=function e(){H(this,e)};return e.__NG_ELEMENT_ID__=Dl,e}(),Ll=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return j(n,[{key:"element",get:function(){return Xc(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Rr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=mr(this._hostTNode,this._hostLView);if(ur(e)){var t=lr(e,this._hostLView),n=cr(e);return new Rr(t[1].data[n+8],t)}return new Rr(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Fl(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(xl,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if(function(e){return Ut(e[3])}(r)){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Nl);function Fl(e){return e[8]}function Ul(e){return e[8]||(e[8]=[])}function Hl(e,t){var n,r=t[e.index];if(Ut(r))n=r;else{var i;if(8&e.type)i=rn(r);else{var o=t[11];i=o.createComment("");var a=an(e,t);Mo(o,Lo(o,a),i,function(e,t){return tn(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Wa(r,t,i,e),Za(t,n)}return new Ll(n,e,t)}var Vl={},jl=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this)).ngModule=e,r}return j(n,[{key:"resolveComponentFactory",value:function(e){var t=Nt(e);return new ql(t,this.ngModule)}}]),n}(Yc);function Bl(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var zl=new Ur("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return fo}}),ql=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=function(e){return e.map(ca).join(",")}(e.selectors),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return j(n,[{key:"inputs",get:function(){return Bl(this.componentDef.inputs)}},{key:"outputs",get:function(){return Bl(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Vl,i);return o!==Vl||r===Vl?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(el,nn),u=a.get(rl,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(tn(e))return e.selectRootElement(t,n===ht.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(c,n,this.componentDef.encapsulation):Oo(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?$t:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:fo,clean:ns,playerHandler:null,flags:0},p=xa(0,null,null,1,0,null,null,null,null,null),v=ba(null,p,f,d,null,null,s,c,u,a);Hn(v);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=ka(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(us(s,u,!0),null!==e&&(rr(i,e,u),null!==s.classes&&Zo(i,e,s.classes),null!==s.styles&&Xo(i,e,s.styles)));var c=r.createRenderer(e,t),l=ba(n,Ia(t),null,t.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&(yr(pr(s,n),a,t.type),Ha(a,s),ja(s,n.length,1)),Za(n,l),n[20]=l}(h,this.componentDef,v,s,c);if(h)if(n)rr(c,h,["ng-version",ol.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r0&&Zo(c,h,_.join(" "))}if(o=sn(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ss.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at.Default;return e===Ss||e===xl||e===ls?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(xl),Yl=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this)).moduleType=e,null!==Lt(e)&&function(e){var t=new Set;!function e(n){var r=Lt(n,!0),i=r.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(He(t)," vs ").concat(He(t.name)))}(i,Gl.get(i),n),Gl.set(i,n));var o,a=O(po(r.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),r}return j(n,[{key:"create",value:function(e){return new Wl(this.moduleType,e)}}]),n}(Ml);function Ql(e,t,n){var r=An()+e,i=mn();return i[r]===la?Ls(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Xl(e,t,n,r){return Jl(mn(),An(),e,t,n,r)}function Zl(e,t){var n=e[t];return n===la?void 0:n}function Jl(e,t,n,r,i,o){var a=t+n;return Fs(e,a,i)?Ls(e,a+1,o?r.call(o,i):r(i)):Zl(e,a+1)}function $l(e,t){var n,r=yn(),i=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Ke("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=qt(n.type)),a=st(zs);try{var s=dr(!1),u=o();return dr(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,mn(),i,u),u}finally{st(a)}}function eh(e,t,n){var r=e+20,i=mn(),o=un(i,r);return function(e,t){return Ms.isWrapped(t)&&(t=Ms.unwrap(t),e[Rn()]=la),t}(i,function(e,t){return e[1].data[t].pure}(i,r)?Jl(i,An(),t,o.transform,n,o):o.transform(n))}function th(e){return function(t){setTimeout(e,void 0,t)}}var nh=function(e){x(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return H(this,n),(e=t.call(this)).__isAsync=r,e}return j(n,[{key:"emit",value:function(e){I(U(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o,a,s=e,u=t||function(){return null},c=r;if(e&&"object"==typeof e){var l=e;s=null===(i=l.next)||void 0===i?void 0:i.bind(l),u=null===(o=l.error)||void 0===o?void 0:o.bind(l),c=null===(a=l.complete)||void 0===a?void 0:a.bind(l)}this.__isAsync&&(u=th(u),s&&(s=th(s)),c&&(c=th(c)));var h=I(U(n.prototype),"subscribe",this).call(this,{next:s,error:u,complete:c});return e instanceof Q&&e.add(h),h}}]),n}(se);function rh(){return this._results[xs()]()}var ih=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];H(this,e),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;var n=xs(),r=e.prototype;r[n]||(r[n]=rh)}return j(e,[{key:"changes",get:function(){return this._changes||(this._changes=new nh)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var r=Kr(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];H(this,e),this.queries=t}return j(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;H(this,e),this.predicate=t,this.flags=n,this.read=r},uh=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];H(this,e),this.queries=t}return j(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;H(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return j(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var c=o[s+1],l=t[-u],h=10;h0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Kh))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),ed=function(){var e=function(){function e(){H(this,e),this._applications=new Map,td.addToWindow(this)}return j(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return td.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),td=new(function(){function e(){H(this,e)}return j(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}());function nd(){return!0,true}var rd=new Ur("AllowMultipleToken"),id=function e(t,n){H(this,e),this.name=t,this.token=n};function od(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Ur(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=ad();if(!o||o.injector.get(rd,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:ds,useValue:"platform"});!function(e){if(Zh&&!Zh.destroyed&&!Zh.injector.get(rd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zh=e.get(sd);var t=e.get(Rh,null);t&&t.forEach(function(e){return e()})}(Ss.create({providers:a,name:r}))}return function(e){var t=ad();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function ad(){return Zh&&!Zh.destroyed?Zh:null}var sd=function(){var e=function(){function e(t){H(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return j(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,r=function(e,t){return"noop"===e?new Jh:("zone.js"===e?void 0:e)||new Kh({enableLongStackTrace:nd(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:Kh,useValue:r}];return r.run(function(){var o=Ss.create({providers:i,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(co,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.runOutsideAngular(function(){var e=r.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){ld(n._modules,a),e.unsubscribe()})}),function(e,r,i){try{var o=((s=a.injector.get(Eh)).runInitializers(),s.donePromise.then(function(){return Qu(a.injector.get(Mh,qu)||qu),n._moduleDoBootstrap(a),a}));return $s(o)?o.catch(function(t){throw r.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw r.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,r)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ud({},n);return function(e,t,n){var r=new Yl(n);return Promise.resolve(r)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(cd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(He(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Ss))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}();function ud(e,t){return Array.isArray(t)?t.reduce(ud,e):Object.assign(Object.assign({},e),t)}var cd=function(){var e=function(){function e(t,n,r,i,o){var a=this;H(this,e),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new ne(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new ne(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Kh.assertNotInAngularZone(),qh(function(){!a._stable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks&&(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Kh.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Ae(s,u.pipe(Le()))}return j(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Wc?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get(xl),o=n.create(Ss.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get($h,null),u=s&&o.injector.get(ed);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),ld(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=O(this._views);try{for(n.s();!(t=n.n()).done;){var r;t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;ld(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ih,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Kh),ui(Ss),ui(co),ui(Yc),ui(Eh))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}();function ld(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hd=function e(){H(this,e)},dd=function e(){H(this,e)},fd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},pd=function(){var e=function(){function e(t,n){H(this,e),this._compiler=t,this._config=n||fd}return j(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=S(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),M(8255)(r).then(function(e){return e[i]}).then(function(e){return vd(e,r,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=S(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),M(8255)(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[r+i]}).then(function(e){return vd(e,n,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Bh),ui(dd,8))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}();function vd(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var gd=od(null,"core",[{provide:Ph,useValue:"unknown"},{provide:sd,deps:[Ss]},{provide:ed,deps:[]},{provide:xh,deps:[]}]),md=[{provide:cd,useClass:cd,deps:[Kh,Ss,co,Yc,Eh]},{provide:zl,deps:[Kh],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Eh,useClass:Eh,deps:[[new mi,Sh]]},{provide:Bh,useClass:Bh,deps:[]},Th,{provide:ml,useFactory:function(){return Ol},deps:[]},{provide:_l,useFactory:function(){return Tl},deps:[]},{provide:Mh,useFactory:function(e){return Qu(e=e||"undefined"!=typeof $localize&&$localize.locale||qu),e},deps:[[new gi(Mh),new mi,new yi]]},{provide:Dh,useValue:"USD"}],yd=function(){var e=function e(t){H(this,e)};return e.\u0275fac=function(t){return new(t||e)(ui(cd))},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:md}),e}(),_d=null;function bd(){return _d}var kd=new Ur("DocumentToken"),wd=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:Cd,token:e,providedIn:"platform"}),e}();function Cd(){return ui(Ed)}var Sd=new Ur("Location Initialized"),Ed=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this))._doc=e,r._init(),r}return j(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return bd().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=bd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=bd().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Od()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Od()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(wd);return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:Td,token:e,providedIn:"platform"}),e}();function Od(){return!!window.history.pushState}function Td(){return new Ed(ui(kd))}function Ad(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Rd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Pd(e){return e&&"?"!==e[0]?"?"+e:e}var Id=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:xd,token:e,providedIn:"root"}),e}();function xd(e){var t=ui(kd).location;return new Dd(ui(wd),t&&t.origin||"")}var Md=new Ur("appBaseHref"),Dd=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;if(H(this,n),(i=t.call(this))._platformLocation=e,i._removeListenerFns=[],null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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.");return i._baseHref=r,N(i)}return j(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Ad(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Pd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Pd(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Pd(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(Id);return e.\u0275fac=function(t){return new(t||e)(ui(wd),ui(Md,8))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),Nd=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",i._removeListenerFns=[],null!=r&&(i._baseHref=r),i}return j(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Ad(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Pd(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Pd(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(Id);return e.\u0275fac=function(t){return new(t||e)(ui(wd),ui(Md,8))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),Ld=function(){var e=function(){function e(t,n){var r=this;H(this,e),this._subject=new nh,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Rd(Ud(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return j(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Pd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ud(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pd(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Id),ui(wd))},e.normalizeQueryParams=Pd,e.joinWithSlash=Ad,e.stripTrailingSlash=Rd,e.\u0275prov=Xe({factory:Fd,token:e,providedIn:"root"}),e}();function Fd(){return new Ld(ui(Id),ui(wd))}function Ud(e){return e.replace(/\/index.html$/,"")}var Hd=((Hd=Hd||{})[Hd.Zero=0]="Zero",Hd[Hd.One=1]="One",Hd[Hd.Two=2]="Two",Hd[Hd.Few=3]="Few",Hd[Hd.Many=4]="Many",Hd[Hd.Other=5]="Other",Hd),Vd=((Vd=Vd||{})[Vd.Format=0]="Format",Vd[Vd.Standalone=1]="Standalone",Vd),jd=((jd=jd||{})[jd.Narrow=0]="Narrow",jd[jd.Abbreviated=1]="Abbreviated",jd[jd.Wide=2]="Wide",jd[jd.Short=3]="Short",jd),Bd=((Bd=Bd||{})[Bd.Short=0]="Short",Bd[Bd.Medium=1]="Medium",Bd[Bd.Long=2]="Long",Bd[Bd.Full=3]="Full",Bd),zd=((zd=zd||{})[zd.Decimal=0]="Decimal",zd[zd.Group=1]="Group",zd[zd.List=2]="List",zd[zd.PercentSign=3]="PercentSign",zd[zd.PlusSign=4]="PlusSign",zd[zd.MinusSign=5]="MinusSign",zd[zd.Exponential=6]="Exponential",zd[zd.SuperscriptingExponent=7]="SuperscriptingExponent",zd[zd.PerMille=8]="PerMille",zd[zd.Infinity=9]="Infinity",zd[zd.NaN=10]="NaN",zd[zd.TimeSeparator=11]="TimeSeparator",zd[zd.CurrencyDecimal=12]="CurrencyDecimal",zd[zd.CurrencyGroup=13]="CurrencyGroup",zd);function qd(e,t,n){var r=Hu(e),i=$d([r[Bu.DayPeriodsFormat],r[Bu.DayPeriodsStandalone]],t);return $d(i,n)}function Kd(e,t,n){var r=Hu(e),i=$d([r[Bu.DaysFormat],r[Bu.DaysStandalone]],t);return $d(i,n)}function Gd(e,t,n){var r=Hu(e),i=$d([r[Bu.MonthsFormat],r[Bu.MonthsStandalone]],t);return $d(i,n)}function Wd(e,t){return $d(Hu(e)[Bu.DateFormat],t)}function Yd(e,t){return $d(Hu(e)[Bu.TimeFormat],t)}function Qd(e,t){return $d(Hu(e)[Bu.DateTimeFormat],t)}function Xd(e,t){var n=Hu(e),r=n[Bu.NumberSymbols][t];if(void 0===r){if(t===zd.CurrencyDecimal)return n[Bu.NumberSymbols][zd.Decimal];if(t===zd.CurrencyGroup)return n[Bu.NumberSymbols][zd.Group]}return r}var Zd=Vu;function Jd(e){if(!e[Bu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[Bu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function $d(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function ef(e){var t=S(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var tf=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nf={},rf=/((?:[^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]*)/,of=((of=of||{})[of.Short=0]="Short",of[of.ShortGMT=1]="ShortGMT",of[of.Long=2]="Long",of[of.Extended=3]="Extended",of),af=((af=af||{})[af.FullYear=0]="FullYear",af[af.Month=1]="Month",af[af.Date=2]="Date",af[af.Hours=3]="Hours",af[af.Minutes=4]="Minutes",af[af.Seconds=5]="Seconds",af[af.FractionalSeconds=6]="FractionalSeconds",af[af.Day=7]="Day",af),sf=((sf=sf||{})[sf.DayPeriods=0]="DayPeriods",sf[sf.Days=1]="Days",sf[sf.Months=2]="Months",sf[sf.Eras=3]="Eras",sf);function uf(e,t,n,r){var i=function(e){if(kf(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=S(e.split("-").map(function(e){return+e}),3),n=t[0],r=t[1],i=void 0===r?1:r,o=t[2];return cf(n,i-1,void 0===o?1:o)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(tf))return function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}(a)}var u=new Date(e);if(!kf(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=lf(n,t)||t;for(var o,a=[];t;){if(!(o=rf.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var u=i.getTimezoneOffset();r&&(u=bf(r,u),i=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(bf(t,r)-r))}(i,r));var c="";return a.forEach(function(e){var t=function(e){if(_f[e])return _f[e];var t;switch(e){case"G":case"GG":case"GGG":t=pf(sf.Eras,jd.Abbreviated);break;case"GGGG":t=pf(sf.Eras,jd.Wide);break;case"GGGGG":t=pf(sf.Eras,jd.Narrow);break;case"y":t=ff(af.FullYear,1,0,!1,!0);break;case"yy":t=ff(af.FullYear,2,0,!0,!0);break;case"yyy":t=ff(af.FullYear,3,0,!1,!0);break;case"yyyy":t=ff(af.FullYear,4,0,!1,!0);break;case"Y":t=yf(1);break;case"YY":t=yf(2,!0);break;case"YYY":t=yf(3);break;case"YYYY":t=yf(4);break;case"M":case"L":t=ff(af.Month,1,1);break;case"MM":case"LL":t=ff(af.Month,2,1);break;case"MMM":t=pf(sf.Months,jd.Abbreviated);break;case"MMMM":t=pf(sf.Months,jd.Wide);break;case"MMMMM":t=pf(sf.Months,jd.Narrow);break;case"LLL":t=pf(sf.Months,jd.Abbreviated,Vd.Standalone);break;case"LLLL":t=pf(sf.Months,jd.Wide,Vd.Standalone);break;case"LLLLL":t=pf(sf.Months,jd.Narrow,Vd.Standalone);break;case"w":t=mf(1);break;case"ww":t=mf(2);break;case"W":t=mf(1,!0);break;case"d":t=ff(af.Date,1);break;case"dd":t=ff(af.Date,2);break;case"c":case"cc":t=ff(af.Day,1);break;case"ccc":t=pf(sf.Days,jd.Abbreviated,Vd.Standalone);break;case"cccc":t=pf(sf.Days,jd.Wide,Vd.Standalone);break;case"ccccc":t=pf(sf.Days,jd.Narrow,Vd.Standalone);break;case"cccccc":t=pf(sf.Days,jd.Short,Vd.Standalone);break;case"E":case"EE":case"EEE":t=pf(sf.Days,jd.Abbreviated);break;case"EEEE":t=pf(sf.Days,jd.Wide);break;case"EEEEE":t=pf(sf.Days,jd.Narrow);break;case"EEEEEE":t=pf(sf.Days,jd.Short);break;case"a":case"aa":case"aaa":t=pf(sf.DayPeriods,jd.Abbreviated);break;case"aaaa":t=pf(sf.DayPeriods,jd.Wide);break;case"aaaaa":t=pf(sf.DayPeriods,jd.Narrow);break;case"b":case"bb":case"bbb":t=pf(sf.DayPeriods,jd.Abbreviated,Vd.Standalone,!0);break;case"bbbb":t=pf(sf.DayPeriods,jd.Wide,Vd.Standalone,!0);break;case"bbbbb":t=pf(sf.DayPeriods,jd.Narrow,Vd.Standalone,!0);break;case"B":case"BB":case"BBB":t=pf(sf.DayPeriods,jd.Abbreviated,Vd.Format,!0);break;case"BBBB":t=pf(sf.DayPeriods,jd.Wide,Vd.Format,!0);break;case"BBBBB":t=pf(sf.DayPeriods,jd.Narrow,Vd.Format,!0);break;case"h":t=ff(af.Hours,1,-12);break;case"hh":t=ff(af.Hours,2,-12);break;case"H":t=ff(af.Hours,1);break;case"HH":t=ff(af.Hours,2);break;case"m":t=ff(af.Minutes,1);break;case"mm":t=ff(af.Minutes,2);break;case"s":t=ff(af.Seconds,1);break;case"ss":t=ff(af.Seconds,2);break;case"S":t=ff(af.FractionalSeconds,1);break;case"SS":t=ff(af.FractionalSeconds,2);break;case"SSS":t=ff(af.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=vf(of.Short);break;case"ZZZZZ":t=vf(of.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=vf(of.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=vf(of.Long);break;default:return null}return _f[e]=t,t}(e);c+=t?t(i,n,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function cf(e,t,n){var r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function lf(e,t){var n=function(e){return Hu(e)[Bu.LocaleId]}(e);if(nf[n]=nf[n]||{},nf[n][t])return nf[n][t];var r="";switch(t){case"shortDate":r=Wd(e,Bd.Short);break;case"mediumDate":r=Wd(e,Bd.Medium);break;case"longDate":r=Wd(e,Bd.Long);break;case"fullDate":r=Wd(e,Bd.Full);break;case"shortTime":r=Yd(e,Bd.Short);break;case"mediumTime":r=Yd(e,Bd.Medium);break;case"longTime":r=Yd(e,Bd.Long);break;case"fullTime":r=Yd(e,Bd.Full);break;case"short":var i=lf(e,"shortTime"),o=lf(e,"shortDate");r=hf(Qd(e,Bd.Short),[i,o]);break;case"medium":var a=lf(e,"mediumTime"),s=lf(e,"mediumDate");r=hf(Qd(e,Bd.Medium),[a,s]);break;case"long":var u=lf(e,"longTime"),c=lf(e,"longDate");r=hf(Qd(e,Bd.Long),[u,c]);break;case"full":var l=lf(e,"fullTime"),h=lf(e,"fullDate");r=hf(Qd(e,Bd.Full),[l,h])}return r&&(nf[n][t]=r),r}function hf(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function df(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s=function(e,t){switch(e){case af.FullYear:return t.getFullYear();case af.Month:return t.getMonth();case af.Date:return t.getDate();case af.Hours:return t.getHours();case af.Minutes:return t.getMinutes();case af.Seconds:return t.getSeconds();case af.FractionalSeconds:return t.getMilliseconds();case af.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||s>-n)&&(s+=n),e===af.Hours)0===s&&-12===n&&(s=12);else if(e===af.FractionalSeconds)return function(e,t){return df(e,3).substr(0,t)}(s,t);var u=Xd(a,zd.MinusSign);return df(s,t,u,r,i)}}function pf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vd.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,o){return function(e,t,n,r,i,o){switch(n){case sf.Months:return Gd(t,i,r)[e.getMonth()];case sf.Days:return Kd(t,i,r)[e.getDay()];case sf.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var u=function(e){var t=Hu(e);return Jd(t),(t[Bu.ExtraData][2]||[]).map(function(e){return"string"==typeof e?ef(e):[ef(e[0]),ef(e[1])]})}(t),c=function(e,t,n){var r=Hu(e);Jd(r);var i=$d([r[Bu.ExtraData][0],r[Bu.ExtraData][1]],t)||[];return $d(i,n)||[]}(t,i,r),l=u.findIndex(function(e){if(Array.isArray(e)){var t=S(e,2),n=t[0],r=t[1],i=a>=n.hours&&s>=n.minutes,o=a0?Math.floor(i/60):Math.ceil(i/60);switch(e){case of.Short:return(i>=0?"+":"")+df(a,2,o)+df(Math.abs(i%60),2,o);case of.ShortGMT:return"GMT"+(i>=0?"+":"")+df(a,1,o);case of.Long:return"GMT"+(i>=0?"+":"")+df(a,2,o)+":"+df(Math.abs(i%60),2,o);case of.Extended:return 0===r?"Z":(i>=0?"+":"")+df(a,2,o)+":"+df(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function gf(e){return cf(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function mf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i;if(t){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();i=1+Math.floor((a+o)/7)}else{var s=gf(n),u=function(e){var t=cf(e,0,1).getDay();return cf(e,0,1+(t<=4?4:11)-t)}(s.getFullYear()),c=s.getTime()-u.getTime();i=1+Math.round(c/6048e5)}return df(i,e,Xd(r,zd.MinusSign))}}function yf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return df(gf(n).getFullYear(),e,Xd(r,zd.MinusSign),t)}}var _f={};function bf(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kf(e){return e instanceof Date&&!isNaN(e.valueOf())}var wf=function e(){H(this,e)},Cf=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this)).locale=e,r}return j(n,[{key:"getPluralCategory",value:function(e,t){switch(Zd(t||this.locale)(e)){case Hd.Zero:return"zero";case Hd.One:return"one";case Hd.Two:return"two";case Hd.Few:return"few";case Hd.Many:return"many";default:return"other"}}}]),n}(wf);return e.\u0275fac=function(t){return new(t||e)(ui(Mh))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}();function Sf(e,t){t=encodeURIComponent(t);var n,r=O(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=S(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(c){r.e(c)}finally{r.f()}return null}var Ef=function(){var e=function(){function e(t,n,r,i){H(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return j(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&(Ds(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(He(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(ml),zs(_l),zs(Jc),zs(tl))},e.\u0275dir=Mt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Of=function(){function e(t,n,r,i){H(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return j(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Tf=function(){var e=function(){function e(t,n,r){H(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return j(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Of(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new Af(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new Af(e,s);n.push(u)}});for(var r=0;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},gt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},gt.getAllAngularRootElements=function(){return e.getAllRootElements()},gt.frameworkStabilizers||(gt.frameworkStabilizers=[]),gt.frameworkStabilizers.push(function(e){var t=gt.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?bd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){td=e}(new e)}}]),e}(),tp=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),np=new Ur("EventManagerPlugins"),rp=function(){var e=function(){function e(t,n){var r=this;H(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return j(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&_p.hasOwnProperty(t)&&(t=_p[t]))}return yp[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mp.forEach(function(r){r!=n&&bp[r](e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(ip);return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),wp=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return ui(Cp)},token:e,providedIn:"root"}),e}(),Cp=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this))._doc=e,r}return j(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case eo.NONE:return t;case eo.HTML:return Ai(t,"HTML")?Ti(t):Ji(this._doc,String(t)).toString();case eo.STYLE:return Ai(t,"Style")?Ti(t):t;case eo.SCRIPT:if(Ai(t,"Script"))return Ti(t);throw new Error("unsafe value used in a script context");case eo.URL:return Ri(t),Ai(t,"URL")?Ti(t):Ni(String(t));case eo.RESOURCE_URL:if(Ai(t,"ResourceURL"))return Ti(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return function(e){return new wi(e)}(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return function(e){return new Ci(e)}(e)}},{key:"bypassSecurityTrustScript",value:function(e){return function(e){return new Si(e)}(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return function(e){return new Ei(e)}(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return function(e){return new Oi(e)}(e)}}]),n}(wp);return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:function(){return function(e){return new Cp(e.get(kd))}(ui(ls))},token:e,providedIn:"root"}),e}(),Sp=od(gd,"browser",[{provide:Ph,useValue:qf},{provide:Rh,useValue:function(){Xf.makeCurrent(),ep.init()},multi:!0},{provide:kd,useFactory:function(){return function(e){Jt=e}(document),document},deps:[]}]),Ep=[[],{provide:ds,useValue:"root"},{provide:co,useFactory:function(){return new co},deps:[]},{provide:np,useClass:gp,multi:!0,deps:[kd,Kh,Ph]},{provide:np,useClass:kp,multi:!0,deps:[kd]},[],{provide:dp,useClass:dp,deps:[rp,ap,Oh]},{provide:el,useExisting:dp},{provide:op,useExisting:ap},{provide:ap,useClass:ap,deps:[kd]},{provide:$h,useClass:$h,deps:[Kh]},{provide:rp,useClass:rp,deps:[np,Kh]},{provide:Qf,useClass:tp,deps:[]},[]],Op=function(){var e=function(){function e(t){if(H(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return j(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Oh,useValue:t.appId},{provide:Jf,useExisting:Oh},$f]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(e,12))},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:Ep,imports:[zf,yd]}),e}();function Tp(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function Ap(e,t){return function(n,r){t(n,r,e)}}function Rp(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=r.filter(function(e){return e!==t.validator});i.length!==r.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){var o=Yp(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return iv(t._rawValidators,s),iv(t._rawAsyncValidators,s),n}function sv(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function uv(e,t){ov(e,t)}function cv(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function lv(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function hv(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===Lp?n=e:function(e){return Object.getPrototypeOf(e.constructor)===xp}(e)?r=e:i=e}),i||r||n||null):null;var n,r,i}function dv(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var fv="VALID",pv="INVALID",vv="PENDING",gv="DISABLED";function mv(e){return(kv(e)?e.validators:e)||null}function yv(e){return Array.isArray(e)?qp(e):e||null}function _v(e,t){return(kv(t)?t.asyncValidators:e)||null}function bv(e){return Array.isArray(e)?Kp(e):e||null}function kv(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var wv=function(){function e(t,n){H(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=yv(this._rawValidators),this._composedAsyncValidatorFn=bv(this._rawAsyncValidators)}return j(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===fv}},{key:"invalid",get:function(){return this.status===pv}},{key:"pending",get:function(){return this.status==vv}},{key:"disabled",get:function(){return this.status===gv}},{key:"enabled",get:function(){return this.status!==gv}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=yv(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=bv(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=vv,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=gv,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=fv,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fv||this.status===vv)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?gv:fv}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=vv,this._hasOwnPendingAsyncValidator=!0;var n=Vp(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var r=e;return t.forEach(function(e){r=r instanceof Sv?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ev&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new nh,this.statusChanges=new nh}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?gv:this.errors?pv:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vv)?vv:this._anyControlsHaveStatus(pv)?pv:fv}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){kv(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Cv=function(e){x(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return H(this,n),(e=t.call(this,mv(i),_v(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return j(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){dv(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){dv(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(wv),Sv=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,mv(r),_v(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return j(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Cv?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(wv),Ev=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,mv(r),_v(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return j(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Cv?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=O(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(wv),Ov={provide:Xp,useExisting:Be(function(){return Av})},Tv=Promise.resolve(null),Av=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new nh,i.form=new Sv({},qp(e),Kp(r)),i}return j(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Tv.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),nv(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Tv.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),dv(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Tv.then(function(){var n=t._findContainer(e.path),r=new Sv({});uv(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Tv.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Tv.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lv(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Xp);return e.\u0275fac=function(t){return new(t||e)(zs(Fp,10),zs(Up,10))},e.\u0275dir=Mt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&nu("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gc([Ov]),Os]}),e}(),Rv={provide:Zp,useExisting:Be(function(){return Iv})},Pv=Promise.resolve(null),Iv=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this)).control=new Cv,a._registered=!1,a.update=new nh,a._parent=e,a._setValidators(r),a._setAsyncValidators(i),a.valueAccessor=hv(0,o),a}return j(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),cv(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?tv(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){nv(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Pv.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Pv.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}}]),n}(Zp);return e.\u0275fac=function(t){return new(t||e)(zs(Xp,9),zs(Fp,10),zs(Up,10),zs(Mp,10))},e.\u0275dir=Mt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Gc([Rv]),Os,Gt]}),e}(),xv=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Mv=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),Dv=new Ur("NgModelWithFormControlWarning"),Nv={provide:Xp,useExisting:Be(function(){return Lv})},Lv=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this)).validators=e,i.asyncValidators=r,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new nh,i._setValidators(e),i._setAsyncValidators(r),i}return j(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(av(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return nv(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){rv(e.control||null,e,!1),dv(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lv(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,r=e.form.get(t.path);n!==r&&(rv(n||null,t),r instanceof Cv&&(nv(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);uv(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return av(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ov(this.form,this),this._oldForm&&av(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Xp);return e.\u0275fac=function(t){return new(t||e)(zs(Fp,10),zs(Up,10))},e.\u0275dir=Mt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&nu("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gc([Nv]),Os,Gt]}),e}(),Fv={provide:Zp,useExisting:Be(function(){return Uv})},Uv=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a){var s;return H(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new nh,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(r),s._setAsyncValidators(i),s.valueAccessor=hv(0,o),s}return j(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),cv(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return tv(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Zp);return e.\u0275fac=function(t){return new(t||e)(zs(Xp,13),zs(Fp,10),zs(Up,10),zs(Mp,10),zs(Dv,8))},e.\u0275dir=Mt({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Gc([Fv]),Os,Gt]}),e._ngModelWarningSentOnce=!1,e}(),Hv={provide:Mp,useExisting:Be(function(){return jv}),multi:!0};function Vv(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var jv=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){var e;return H(this,n),(e=t.apply(this,arguments))._optionMap=new Map,e._idCounter=0,e._compareWith=Object.is,e}return j(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this.setProperty("selectedIndex",-1);var n=Vv(t,e);this.setProperty("value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){x(n,e);var t=D(n);function n(e,r){return H(this,n),t.call(this)}return j(n,[{key:"schedule",value:function(e){return this}}]),n}(Q)),ng=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;H(this,e),this.SchedulerAction=t,this.now=n}return j(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),rg=function(e){x(n,e);var t=D(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ng.now;return H(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==L(r)?n.delegate.now():i()})).actions=[],r.active=!1,r.scheduled=void 0,r}return j(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):I(U(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(ng),ig=new rg(tg);function og(e){return!K(e)&&e-parseFloat(e)+1>=0}function ag(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function sg(){}function ug(e,t,n,r){return F(n)&&(r=n,n=void 0),r?ug(e,t,n).pipe(ye(function(e){return K(e)?r.apply(void 0,E(e)):r(e)})):new ne(function(r){cg(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function cg(e,t,n,r,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,i),o=function(){return a.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,l=e.length;c0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(E(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(me);function Hg(e){return e instanceof Date&&!isNaN(+e)}function Vg(e,t){return new ne(t?function(n){return t.schedule(jg,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function jg(e){var t=e.error;e.subscriber.error(t)}var Bg=function(){function e(t,n,r){H(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return j(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return dg(this.value);case"E":return Vg(this.error);case"C":return Rg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();Bg.completeNotification=new Bg("C"),Bg.undefinedValueNotification=new Bg("N",void 0);var zg=function(){function e(t,n){H(this,e),this.delay=t,this.scheduler=n}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new qg(e,this.delay,this.scheduler))}}]),e}(),qg=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return j(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new Kg(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Bg.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Bg.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(J),Kg=function e(t,n){H(this,e),this.time=t,this.notification=n},Gg=["*"],Wg=["defaultDayTemplate"],Yg=["content"];function Qg(e,t){if(1&e&&Ys(0,"div",7),2&e){var n=t.currentMonth,r=t.selected,i=t.disabled,o=t.focused;qs("date",t.date)("currentMonth",n)("selected",r)("disabled",i)("focused",o)}}function Xg(e,t){if(1&e&&(Gs(0,"div",12),Iu(1),Ws()),2&e){var n=ou().$implicit,r=ou(2);ha(1),Du(" ",r.i18n.getMonthFullName(n.number,n.year)," ",r.i18n.getYearNumerals(n.year)," ")}}function Zg(e,t){if(1&e&&(Gs(0,"div",9),js(1,Xg,2,2,"div",10),Ys(2,"ngb-datepicker-month",11),Ws()),2&e){var n=t.$implicit,r=ou(2);ha(1),qs("ngIf","none"===r.navigation||r.displayMonths>1&&"select"===r.navigation),ha(1),qs("month",n.firstDate)}}function Jg(e,t){1&e&&js(0,Zg,3,2,"div",8),2&e&&qs("ngForOf",ou().model.months)}function $g(e,t){if(1&e){var n=Js();Gs(0,"ngb-datepicker-navigation",13),nu("navigate",function(e){return _n(n),ou().onNavigateEvent(e)})("select",function(e){return _n(n),ou().onNavigateDateSelect(e)}),Ws()}if(2&e){var r=ou();qs("date",r.model.firstDate)("months",r.model.months)("disabled",r.model.disabled)("showSelect","select"===r.model.navigation)("prevDisabled",r.model.prevDisabled)("nextDisabled",r.model.nextDisabled)("selectBoxes",r.model.selectBoxes)}}function em(e,t){}function tm(e,t){}function nm(e,t){1&e&&Ys(0,"div",5)}function rm(e,t){if(1&e&&(Gs(0,"div",6),Iu(1),Ws()),2&e){var n=t.$implicit,r=ou(2);ha(1),Mu(" ",r.i18n.getWeekdayShortName(n)," ")}}function im(e,t){if(1&e&&(Gs(0,"div",2),js(1,nm,1,0,"div",3),js(2,rm,2,1,"div",4),Ws()),2&e){var n=ou();ha(1),qs("ngIf",n.datepicker.showWeekNumbers),ha(1),qs("ngForOf",n.viewModel.weekdays)}}function om(e,t){if(1&e&&(Gs(0,"div",11),Iu(1),Ws()),2&e){var n=ou(2).$implicit,r=ou();ha(1),xu(r.i18n.getWeekNumerals(n.number))}}function am(e,t){}function sm(e,t){if(1&e&&js(0,am,0,0,"ng-template",14),2&e){var n=ou().$implicit;qs("ngTemplateOutlet",ou(3).datepicker.dayTemplate)("ngTemplateOutletContext",n.context)}}function um(e,t){if(1&e){var n=Js();Gs(0,"div",12),nu("click",function(e){var t=_n(n).$implicit;return ou(3).doSelect(t),e.preventDefault()}),js(1,sm,1,2,"ng-template",13),Ws()}if(2&e){var r=t.$implicit;yu("disabled",r.context.disabled)("hidden",r.hidden)("ngb-dp-today",r.context.today),qs("tabindex",r.tabindex),Hs("aria-label",r.ariaLabel),ha(1),qs("ngIf",!r.hidden)}}function cm(e,t){if(1&e&&(Gs(0,"div",8),js(1,om,2,1,"div",9),js(2,um,2,9,"div",10),Ws()),2&e){var n=ou().$implicit,r=ou();ha(1),qs("ngIf",r.datepicker.showWeekNumbers),ha(1),qs("ngForOf",n.days)}}function lm(e,t){1&e&&js(0,cm,3,2,"div",7),2&e&&qs("ngIf",!t.$implicit.collapsed)}function hm(e,t){if(1&e){var n=Js();Gs(0,"ngb-datepicker-navigation-select",7),nu("select",function(e){return _n(n),ou().select.emit(e)}),Ws()}if(2&e){var r=ou();qs("date",r.date)("disabled",r.disabled)("months",r.selectBoxes.months)("years",r.selectBoxes.years)}}function dm(e,t){1&e&&Ys(0,"div",0)}function fm(e,t){1&e&&Ys(0,"div",0)}function pm(e,t){if(1&e&&(js(0,dm,1,0,"div",9),Gs(1,"div",10),Iu(2),Ws(),js(3,fm,1,0,"div",9)),2&e){var n=t.$implicit,r=t.index,i=ou(2);qs("ngIf",r>0),ha(2),Du(" ",i.i18n.getMonthFullName(n.number,n.year)," ",i.i18n.getYearNumerals(n.year)," "),ha(1),qs("ngIf",r!==i.months.length-1)}}function vm(e,t){1&e&&js(0,pm,4,4,"ng-template",8),2&e&&qs("ngForOf",ou().months)}var gm=["ngbDatepickerDayView",""],mm=["month"],ym=["year"];function _m(e,t){if(1&e&&(Gs(0,"option",5),Iu(1),Ws()),2&e){var n=t.$implicit,r=ou();qs("value",n),Hs("aria-label",r.i18n.getMonthFullName(n,null==r.date?null:r.date.year)),ha(1),xu(r.i18n.getMonthShortName(n,null==r.date?null:r.date.year))}}function bm(e,t){if(1&e&&(Gs(0,"option",5),Iu(1),Ws()),2&e){var n=t.$implicit,r=ou();qs("value",n),ha(1),xu(r.i18n.getYearNumerals(n))}}var km=["dialog"];function wm(e,t){1&e&&Iu(0),2&e&&xu(100===t.fill?"\u2605":"\u2606")}function Cm(e,t){}function Sm(e,t){if(1&e){var n=Js();Gs(0,"span",2),Iu(1),Ws(),Gs(2,"span",3),nu("mouseenter",function(){var e=_n(n).index;return ou().enter(e+1)})("click",function(){var e=_n(n).index;return ou().handleClick(e+1)}),js(3,Cm,0,0,"ng-template",4),Ws()}if(2&e){var r=t.index,i=ou(),o=Bs(1);ha(1),Mu("(",r=12)("ngIfElse",r)}}function Fm(e,t){if(1&e&&(Gs(0,"span"),Iu(1),Ws()),2&e){var n=ou().$implicit;_u(ou().highlightClass),ha(1),xu(n)}}function Um(e,t){1&e&&Iu(0),2&e&&xu(ou().$implicit)}function Hm(e,t){if(1&e&&(js(0,Fm,2,3,"span",1),js(1,Um,1,1,"ng-template",null,2,kh)),2&e){var n=t.odd,r=Bs(2);qs("ngIf",n)("ngIfElse",r)}}function Vm(e,t){if(1&e&&Ys(0,"ngb-highlight",2),2&e){var n=t.term;qs("result",(0,t.formatter)(t.result))("term",n)}}function jm(e,t){}var Bm=function(e,t,n){return{result:e,term:t,formatter:n}};function zm(e,t){if(1&e){var n=Js();Gs(0,"button",3),nu("mouseenter",function(){var e=_n(n).index;return ou().markActive(e)})("click",function(){var e=_n(n).$implicit;return ou().select(e)}),js(1,jm,0,0,"ng-template",4),Ws()}if(2&e){var r=t.$implicit,i=t.index,o=ou(),a=Bs(1);yu("active",i===o.activeIdx),qs("id",o.id+"-"+i),ha(1),qs("ngTemplateOutlet",o.resultTemplate||a)("ngTemplateOutletContext",function(e,t,n,r,i,o){return function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=Us(e,t,n,r);return Fs(e,t+2,i)||o}(e,u,i,o,a)?Ls(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):Zl(e,u+3)}(mn(),An(),e,t,n,r,i,o)}(5,Bm,r,o.term,o.formatter))}}function qm(e){return parseInt("".concat(e),10)}function Km(e){return null!=e?"".concat(e):""}function Gm(e){return"string"==typeof e}function Wm(e){return!isNaN(qm(e))}function Ym(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Qm(e){return null!=e}function Xm(e){return Wm(e)?"0".concat(e).slice(-2):""}function Zm(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var Jm=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),$m=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),ey=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,t){2&e&&yu("btn",!0)("active",t.active)("disabled",t.disabled)("focus",t.focused)}}),e}(),ty={provide:Mp,useExisting:Be(function(){return ny}),multi:!0},ny=function(){var e=function(){function e(t,n){H(this,e),this._label=t,this._cd=n,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=function(e){},this.onTouched=function(){}}return j(e,[{key:"focused",set:function(e){this._label.focused=e,e||this.onTouched()}},{key:"onInputChange",value:function(e){var t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._label.disabled=e}},{key:"writeValue",value:function(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(ey),zs(Sl))},e.\u0275dir=Mt({type:e,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,t){1&e&&nu("change",function(e){return t.onInputChange(e)})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&Nu("checked",t.checked)("disabled",t.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[Gc([ty])]}),Tp([wh()],e.prototype,"disabled",void 0),Tp([wh()],e.prototype,"valueChecked",void 0),Tp([wh()],e.prototype,"valueUnChecked",void 0),e}(),ry={provide:Mp,useExisting:Be(function(){return oy}),multi:!0},iy=0,oy=function(){var e=function(){function e(){H(this,e),this._radios=new Set,this._value=null,this.name="ngb-radio-"+iy++,this.onChange=function(e){},this.onTouched=function(){}}return j(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this.setDisabledState(e)}},{key:"onRadioChange",value:function(e){this.writeValue(e.value),this.onChange(e.value)}},{key:"onRadioValueUpdate",value:function(){this._updateRadiosValue()}},{key:"register",value:function(e){this._radios.add(e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._disabled=e,this._updateRadiosDisabled()}},{key:"unregister",value:function(e){this._radios.delete(e)}},{key:"writeValue",value:function(e){this._value=e,this._updateRadiosValue()}},{key:"_updateRadiosValue",value:function(){var e=this;this._radios.forEach(function(t){return t.updateValue(e._value)})}},{key:"_updateRadiosDisabled",value:function(){this._radios.forEach(function(e){return e.updateDisabled()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[Gc([ry])]}),Tp([wh()],e.prototype,"name",void 0),e}(),ay=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),sy=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),uy=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),cy=function(){function e(t,n,r){H(this,e),this.year=Ym(t)?t:null,this.month=Ym(n)?n:null,this.day=Ym(r)?r:null}return j(e,[{key:"equals",value:function(e){return null!=e&&this.year===e.year&&this.month===e.month&&this.day===e.day}},{key:"before",value:function(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.daye.day:this.month>e.month:this.year>e.year)}}],[{key:"from",value:function(t){return t instanceof e?t:t?new e(t.year,t.month,t.day):null}}]),e}();function ly(e){return new cy(e.getFullYear(),e.getMonth()+1,e.getDate())}function hy(e){var t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function dy(){return new py}var fy=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:dy,token:e,providedIn:"root"}),e}(),py=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"getDaysPerWeek",value:function(){return 7}},{key:"getMonths",value:function(){return[1,2,3,4,5,6,7,8,9,10,11,12]}},{key:"getWeeksPerMonth",value:function(){return 6}},{key:"getNext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=hy(e),i=!0,o=r.getMonth();switch(t){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":o+=n,r.setMonth(o),(o%=12)<0&&(o+=12);break;case"d":r.setDate(r.getDate()+n),i=!1;break;default:return e}return i&&r.getMonth()!==o&&r.setDate(0),ly(r)}},{key:"getPrev",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.getNext(e,t,-n)}},{key:"getWeekday",value:function(e){var t=hy(e).getDay();return 0===t?7:t}},{key:"getWeekNumber",value:function(e,t){7===t&&(t=0);var n=hy(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));var r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}},{key:"getToday",value:function(){return ly(new Date)}},{key:"isValid",value:function(e){if(!(e&&Ym(e.year)&&Ym(e.month)&&Ym(e.day)&&0!==e.year))return!1;var t=hy(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}}]),n}(fy);return t.\u0275fac=function(n){return(e||(e=Pr(t)))(n||t)},t.\u0275prov=Xe({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function vy(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function gy(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function my(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function yy(e,t){var n=t.minDate,r=t.maxDate,i=t.disabled,o=t.markDisabled;return!(null==e||i||o&&o(e,{year:e.year,month:e.month})||n&&e.before(n)||r&&e.after(r))}var _y=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"getDayNumerals",value:function(e){return"".concat(e.day)}},{key:"getWeekNumerals",value:function(e){return"".concat(e)}},{key:"getYearNumerals",value:function(e){return"".concat(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return function(e){return new by(e)}(ui(Mh))},token:e,providedIn:"root"}),e}(),by=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;H(this,n),(r=t.call(this))._locale=e;var i=Kd(e,Vd.Standalone,jd.Short);return r._weekdaysShort=i.map(function(e,t){return i[(t+1)%7]}),r._monthsShort=Gd(e,Vd.Standalone,jd.Abbreviated),r._monthsFull=Gd(e,Vd.Standalone,jd.Wide),r}return j(n,[{key:"getWeekdayShortName",value:function(e){return this._weekdaysShort[e-1]||""}},{key:"getMonthShortName",value:function(e){return this._monthsShort[e-1]||""}},{key:"getMonthFullName",value:function(e){return this._monthsFull[e-1]||""}},{key:"getDayAriaLabel",value:function(e){return uf(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}]),n}(_y);return e.\u0275fac=function(t){return new(t||e)(ui(Mh))},e.\u0275prov=Xe({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Tp([Ap(0,gi(Mh))],e)}(),ky=function(){var e=function(){function e(t,n){var r=this;H(this,e),this._calendar=t,this._i18n=n,this._VALIDATORS={dayTemplateData:function(e){if(r._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:function(e){if(Ym(e=qm(e))&&e>0&&r._state.displayMonths!==e)return{displayMonths:e}},disabled:function(e){if(r._state.disabled!==e)return{disabled:e}},firstDayOfWeek:function(e){if(Ym(e=qm(e))&&e>=0&&r._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:function(e){if(r._state.focusVisible!==e&&!r._state.disabled)return{focusVisible:e}},markDisabled:function(e){if(r._state.markDisabled!==e)return{markDisabled:e}},maxDate:function(e){var t=r.toValidDate(e,null);if(vy(r._state.maxDate,t))return{maxDate:t}},minDate:function(e){var t=r.toValidDate(e,null);if(vy(r._state.minDate,t))return{minDate:t}},navigation:function(e){if(r._state.navigation!==e)return{navigation:e}},outsideDays:function(e){if(r._state.outsideDays!==e)return{outsideDays:e}}},this._model$=new se,this._dateSelect$=new se,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}return j(e,[{key:"model$",get:function(){return this._model$.pipe(Sg(function(e){return e.months.length>0}))}},{key:"dateSelect$",get:function(){return this._dateSelect$.pipe(Sg(function(e){return null!==e}))}},{key:"set",value:function(e){var t=this,n=Object.keys(e).map(function(n){return t._VALIDATORS[n](e[n])}).reduce(function(e,t){return Object.assign(Object.assign({},e),t)},{});Object.keys(n).length>0&&this._nextState(n)}},{key:"focus",value:function(e){var t=this.toValidDate(e,null);null!=t&&!this._state.disabled&&vy(this._state.focusDate,t)&&this._nextState({focusDate:e})}},{key:"focusSelect",value:function(){yy(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}},{key:"open",value:function(e){var t=this.toValidDate(e,this._calendar.getToday());null!=t&&!this._state.disabled&&(!this._state.firstDate||gy(this._state.firstDate,t))&&this._nextState({firstDate:t})}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toValidDate(e,null);null!=n&&!this._state.disabled&&(vy(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&yy(n,this._state)&&this._dateSelect$.next(n))}},{key:"toValidDate",value:function(e,t){var n=cy.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}},{key:"getMonth",value:function(e){var t,n=O(this._state.months);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.month===r.number&&e.year===r.year)return r}}catch(i){n.e(i)}finally{n.f()}throw new Error("month ".concat(e.month," of year ").concat(e.year," not found"))}},{key:"_nextState",value:function(e){var t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}},{key:"_patchContexts",value:function(e){var t=e.months,n=e.displayMonths,r=e.selectedDate,i=e.focusDate,o=e.focusVisible,a=e.disabled,s=e.outsideDays;e.months.forEach(function(e){e.weeks.forEach(function(u){u.days.forEach(function(u){i&&(u.context.focused=i.equals(u.date)&&o),u.tabindex=!a&&i&&u.date.equals(i)&&i.month===e.number?0:-1,!0===a&&(u.context.disabled=!0),void 0!==r&&(u.context.selected=null!==r&&r.equals(u.date)),e.number!==u.date.month&&(u.hidden="hidden"===s||"collapsed"===s||n>1&&u.date.after(t[0].firstDate)&&u.date.before(t[n-1].lastDate))})})})}},{key:"_updateState",value:function(e){var t=Object.assign({},this._state,e),n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error("'maxDate' ".concat(t," should be greater than 'minDate' ").concat(e))}(t.minDate,t.maxDate),t.focusDate=my(t.focusDate,t.minDate,t.maxDate),t.firstDate=my(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e||"focusDate"in e&&(t.focusDate=my(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&t.focusDate&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=my(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){var r=function(e,t,n,r,i){var o=n.displayMonths,a=n.months,s=a.splice(0,a.length);return Array.from({length:o},function(n,r){var o=Object.assign(e.getNext(t,"m",r),{day:1});if(a[r]=null,!i){var u=s.findIndex(function(e){return e.firstDate.equals(o)});-1!==u&&(a[r]=s.splice(u,1)[0])}return o}).forEach(function(t,i){null===a[i]&&(a[i]=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=n.dayTemplateData,a=n.minDate,s=n.maxDate,u=n.firstDayOfWeek,c=n.markDisabled,l=n.outsideDays,h=e.getToday();i.firstDate=null,i.lastDate=null,i.number=t.month,i.year=t.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],t=function(e,t,n){var r=e.getDaysPerWeek(),i=new cy(t.year,t.month,1),o=e.getWeekday(i)%r;return e.getPrev(i,"d",(r+o-n)%r)}(e,t,u);for(var d=0;d2||/Android/.test(navigator.userAgent));function Fy(e,t,n,r,i,o,a,s){n&&e.runOutsideAngular(function(e){return Ly?function(){return setTimeout(function(){return e()},100)}:e}(function(){var u=ug(t,"keydown").pipe(kg(i),Sg(function(e){return e.which===Py.Escape}),Mg(function(e){return e.preventDefault()})),c=ug(t,"mousedown").pipe(ye(function(e){var t=e.target;return 2!==e.button&&!Dy(t,a)&&("inside"===n?Dy(t,o)&&Ny(t,s):"outside"===n?!Dy(t,o):Ny(t,s)||!Dy(t,o))}),kg(i)),l=ug(t,"mouseup").pipe(Lg(c),Sg(function(e){var t=S(e,2);t[0];return t[1]}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ig,n=Hg(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new zg(n,t))}}(0),kg(i));(function(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]&&arguments[3];e.runOutsideAngular(function(){var e=ug(t,"focusin").pipe(kg(n),ye(function(e){return e.target}));ug(t,"keydown").pipe(kg(n),Sg(function(e){return e.which===Py.Tab}),Lg(e)).subscribe(function(e){var n=S(e,2),r=n[0],i=n[1],o=S(Hy(t),2),a=o[0],s=o[1];(i===a||i===t)&&r.shiftKey&&(s.focus(),r.preventDefault()),i===s&&!r.shiftKey&&(a.focus(),r.preventDefault())}),r&&ug(t,"click").pipe(kg(n),Lg(e),ye(function(e){return e[1]})).subscribe(function(e){return e.focus()})})},jy=/\s+/,By=new(function(){function e(){H(this,e)}return j(e,[{key:"getAllStyles",value:function(e){return window.getComputedStyle(e)}},{key:"getStyle",value:function(e,t){return this.getAllStyles(e)[t]}},{key:"isStaticPositioned",value:function(e){return"static"===(this.getStyle(e,"position")||"static")}},{key:"offsetParent",value:function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}},{key:"position",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))t={top:(t=e.getBoundingClientRect()).top,bottom:t.bottom,left:t.left,right:t.right,height:t.height,width:t.width};else{var i=this.offsetParent(e);t=this.offset(e,!1),i!==document.documentElement&&(r=this.offset(i,!1)),r.top+=i.clientTop,r.left+=i.clientLeft}return t.top-=r.top,t.bottom-=r.top,t.left-=r.left,t.right-=r.left,n&&(t.top=Math.round(t.top),t.bottom=Math.round(t.bottom),t.left=Math.round(t.left),t.right=Math.round(t.right)),t}},{key:"offset",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}},{key:"positionElements",value:function(e,t,n,r){var i=S(n.split("-"),2),o=i[0],a=void 0===o?"top":o,s=i[1],u=void 0===s?"center":s,c=r?this.offset(e,!1):this.position(e,!1),l=this.getAllStyles(t),h=parseFloat(l.marginTop),d=parseFloat(l.marginBottom),f=parseFloat(l.marginLeft),p=parseFloat(l.marginRight),v=0,g=0;switch(a){case"top":v=c.top-(t.offsetHeight+h+d);break;case"bottom":v=c.top+c.height;break;case"left":g=c.left-(t.offsetWidth+f+p);break;case"right":g=c.left+c.width}switch(u){case"top":v=c.top;break;case"bottom":v=c.top+c.height-t.offsetHeight;break;case"left":g=c.left;break;case"right":g=c.left+c.width-t.offsetWidth;break;case"center":"top"===a||"bottom"===a?g=c.left+c.width/2-t.offsetWidth/2:v=c.top+c.height/2-t.offsetHeight/2}t.style.transform="translate(".concat(Math.round(g),"px, ").concat(Math.round(v),"px)");var m=t.getBoundingClientRect(),y=document.documentElement,_=window.innerHeight||y.clientHeight,b=window.innerWidth||y.clientWidth;return m.left>=0&&m.top>=0&&m.right<=b&&m.bottom<=_}}]),e}());function zy(e,t,n,r,i){var o=Array.isArray(n)?n:n.split(jy),a=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],s=t.classList,u=function(e){var t=S(e.split("-"),2),n=t[0],r=t[1],o=[];return i&&(o.push("".concat(i,"-").concat(n)),r&&o.push("".concat(i,"-").concat(n,"-").concat(r)),o.forEach(function(e){s.add(e)})),o};i&&a.forEach(function(e){s.remove("".concat(i,"-").concat(e))});var c=o.findIndex(function(e){return"auto"===e});c>=0&&a.forEach(function(e){null==o.find(function(t){return-1!==t.search("^"+e)})&&o.splice(c++,1,e)});var l=t.style;l.position="absolute",l.top="0",l.left="0",l["will-change"]="transform";var h,d=null,f=!1,p=O(o);try{for(p.s();!(h=p.n()).done;){var v=u(d=h.value);if(By.positionElements(e,t,d,r)){f=!0;break}i&&v.forEach(function(e){s.remove(e)})}}catch(g){p.e(g)}finally{p.f()}return f||(u(d=o[0]),By.positionElements(e,t,d,r)),d}function qy(){return new Gy}var Ky=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:qy,token:e,providedIn:"root"}),e}(),Gy=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"parse",value:function(e){if(null!=e){var t=e.trim().split("-");if(1===t.length&&Wm(t[0]))return{year:qm(t[0]),month:null,day:null};if(2===t.length&&Wm(t[0])&&Wm(t[1]))return{year:qm(t[0]),month:qm(t[1]),day:null};if(3===t.length&&Wm(t[0])&&Wm(t[1])&&Wm(t[2]))return{year:qm(t[0]),month:qm(t[1]),day:qm(t[2])}}return null}},{key:"format",value:function(e){return e?"".concat(e.year,"-").concat(Wm(e.month)?Xm(e.month):"","-").concat(Wm(e.day)?Xm(e.day):""):""}}]),n}(Ky);return t.\u0275fac=function(n){return(e||(e=Pr(t)))(n||t)},t.\u0275prov=Xe({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Wy=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){var e;return H(this,n),(e=t.apply(this,arguments)).autoClose=!0,e.placement=["bottom-left","bottom-right","top-left","top-right"],e.restoreFocus=!0,e}return n}(Cy);return t.\u0275fac=function(n){return(e||(e=Pr(t)))(n||t)},t.\u0275prov=Xe({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Yy={provide:Mp,useExisting:Be(function(){return Xy}),multi:!0},Qy={provide:Fp,useExisting:Be(function(){return Xy}),multi:!0},Xy=function(){var e=function(){function e(t,n,r,i,o,a,s,u,c,l,h){var d=this;H(this,e),this._parserFormatter=t,this._elRef=n,this._vcRef=r,this._renderer=i,this._cfr=o,this._ngZone=a,this._calendar=s,this._dateAdapter=u,this._document=c,this._changeDetector=l,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new nh,this.navigate=new nh,this.closed=new nh,this._onChange=function(e){},this._onTouched=function(){},this._validatorChange=function(){},["autoClose","container","positionTarget","placement"].forEach(function(e){return d[e]=h[e]}),this._zoneSubscription=a.onStable.subscribe(function(){return d._updatePopupPosition()})}return j(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"registerOnValidatorChange",value:function(e){this._validatorChange=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"validate",value:function(e){var t=e.value;if(null!=t){var n=this._fromDateStruct(this._dateAdapter.fromModel(t));if(!n)return{ngbDate:{invalid:t}};if(this.minDate&&n.before(cy.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&n.after(cy.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:t}}}}return null}},{key:"writeValue",value:function(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}},{key:"manualDateChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(n||!t)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),t&&this._model&&this._writeModelValue(this._model)}},{key:"isOpen",value:function(){return!!this._cRef}},{key:"open",value:function(){var e=this;if(!this.isOpen()){var t=this._cfr.resolveComponentFactory(Ry);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(function(t){e.writeValue(t),e._onChange(t),e._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Vy(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),Fy(this._ngZone,this._document,this.autoClose,function(){return e.close()},this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}},{key:"close",value:function(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();var e=this._elWithFocus;Gm(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}},{key:"toggle",value:function(){this.isOpen()?this.close():this.open()}},{key:"navigateTo",value:function(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}},{key:"onBlur",value:function(){this._onTouched()}},{key:"onFocus",value:function(){this._elWithFocus=this._elRef.nativeElement}},{key:"ngOnChanges",value:function(e){(e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e)))}},{key:"ngOnDestroy",value:function(){this.close(),this._zoneSubscription.unsubscribe()}},{key:"_applyDatepickerInputs",value:function(e){var t=this;["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(function(n){void 0!==t[n]&&(e[n]=t[n])}),e.startDate=this.startDate||this._model}},{key:"_applyPopupStyling",value:function(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body")}},{key:"_subscribeForDatepickerOutputs",value:function(e){var t=this;e.navigate.subscribe(function(e){return t.navigate.emit(e)}),e.dateSelect.subscribe(function(e){t.dateSelect.emit(e),(!0===t.autoClose||"inside"===t.autoClose)&&t.close()})}},{key:"_writeModelValue",value:function(e){var t=this._parserFormatter.format(e);this._inputValue=t,this._renderer.setProperty(this._elRef.nativeElement,"value",t),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}},{key:"_fromDateStruct",value:function(e){var t=e?new cy(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}},{key:"_updatePopupPosition",value:function(){if(this._cRef){var e;if(e=Gm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");zy(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Ky),zs(Jc),zs(Nl),zs(tl),zs(Yc),zs(Kh),zs(fy),zs(Ey),zs(kd),zs(Sl),zs(Wy))},e.\u0275dir=Mt({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&nu("input",function(e){return t.manualDateChange(e.target.value)})("change",function(e){return t.manualDateChange(e.target.value,!0)})("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()}),2&e&&Nu("disabled",t.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[Gc([Yy,Qy,{provide:Cy,useExisting:Wy}]),Gt]}),Tp([wh()],e.prototype,"autoClose",void 0),Tp([wh()],e.prototype,"dayTemplate",void 0),Tp([wh()],e.prototype,"dayTemplateData",void 0),Tp([wh()],e.prototype,"displayMonths",void 0),Tp([wh()],e.prototype,"firstDayOfWeek",void 0),Tp([wh()],e.prototype,"footerTemplate",void 0),Tp([wh()],e.prototype,"markDisabled",void 0),Tp([wh()],e.prototype,"minDate",void 0),Tp([wh()],e.prototype,"maxDate",void 0),Tp([wh()],e.prototype,"navigation",void 0),Tp([wh()],e.prototype,"outsideDays",void 0),Tp([wh()],e.prototype,"placement",void 0),Tp([wh()],e.prototype,"restoreFocus",void 0),Tp([wh()],e.prototype,"showWeekdays",void 0),Tp([wh()],e.prototype,"showWeekNumbers",void 0),Tp([wh()],e.prototype,"startDate",void 0),Tp([wh()],e.prototype,"container",void 0),Tp([wh()],e.prototype,"positionTarget",void 0),Tp([Ch()],e.prototype,"dateSelect",void 0),Tp([Ch()],e.prototype,"navigate",void 0),Tp([Ch()],e.prototype,"closed",void 0),Tp([wh()],e.prototype,"disabled",null),e=Tp([Ap(8,gi(kd))],e)}(),Zy=function(){var e=function(){function e(t){H(this,e),this.i18n=t}return j(e,[{key:"isMuted",value:function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(_y))},e.\u0275cmp=Tt({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&yu("bg-primary",t.selected)("text-white",t.selected)("text-muted",t.isMuted())("outside",t.isMuted())("active",t.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:gm,decls:1,vars:1,template:function(e,t){1&e&&Iu(0),2&e&&xu(t.i18n.getDayNumerals(t.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),Tp([wh()],e.prototype,"currentMonth",void 0),Tp([wh()],e.prototype,"date",void 0),Tp([wh()],e.prototype,"disabled",void 0),Tp([wh()],e.prototype,"focused",void 0),Tp([wh()],e.prototype,"selected",void 0),e}(),Jy=function(){var e=function(){function e(t,n){H(this,e),this.i18n=t,this._renderer=n,this.select=new nh,this._month=-1,this._year=-1}return j(e,[{key:"changeMonth",value:function(e){this.select.emit(new cy(this.date.year,qm(e),1))}},{key:"changeYear",value:function(e){this.select.emit(new cy(qm(e),this.date.month,1))}},{key:"ngAfterViewChecked",value:function(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(_y),zs(tl))},e.\u0275cmp=Tt({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){var n;(1&e&&(vh(mm,7,Jc),vh(ym,7,Jc)),2&e)&&(ph(n=mh())&&(t.monthSelect=n.first),ph(n=mh())&&(t.yearSelect=n.first))},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){return[["aria-label",$localize(i||(i=C([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]))),"title",$localize(o||(o=C([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]))),1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",$localize(a||(a=C([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]))),"title",$localize(s||(s=C([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]))),1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,t){1&e&&(Gs(0,"select",0,1),nu("change",function(e){return t.changeMonth(e.target.value)}),js(2,_m,2,3,"option",2),Ws(),Gs(3,"select",3,4),nu("change",function(e){return t.changeYear(e.target.value)}),js(5,bm,2,2,"option",2),Ws()),2&e&&(qs("disabled",t.disabled),ha(2),qs("ngForOf",t.months),ha(1),qs("disabled",t.disabled),ha(2),qs("ngForOf",t.years))},directives:[Tf,Bv,Gv],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),Tp([wh()],e.prototype,"date",void 0),Tp([wh()],e.prototype,"disabled",void 0),Tp([wh()],e.prototype,"months",void 0),Tp([wh()],e.prototype,"years",void 0),Tp([Ch()],e.prototype,"select",void 0),Tp([zr("month",{static:!0,read:Jc})],e.prototype,"monthSelect",void 0),Tp([zr("year",{static:!0,read:Jc})],e.prototype,"yearSelect",void 0),e}();new Date(1882,10,12),new Date(2174,10,25);var $y,e_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf,Yv]]}),e}(),t_=function(){var e=function e(){H(this,e),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),n_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["",8,"navbar"]]}),e}(),r_=function(){var e=function(){function e(t){H(this,e),this.elementRef=t,this._disabled=!1}return j(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=""===e||!0===e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&yu("disabled",t.disabled)},inputs:{disabled:"disabled"}}),Tp([wh()],e.prototype,"disabled",null),e}(),i_=function(){var e=function e(t,n){H(this,e),this.dropdown=t,this.placement="bottom",this.isOpen=!1,this.nativeElement=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(zs(Be(function(){return s_})),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){var r;(1&e&&gh(n,r_,4),2&e)&&(ph(r=mh())&&(t.menuItems=r))},hostVars:5,hostBindings:function(e,t){1&e&&nu("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(Hs("x-placement",t.placement),yu("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),Tp([jr(r_)],e.prototype,"menuItems",void 0),e=Tp([Ap(0,gi(Be(function(){return s_})))],e)}(),o_=function(){var e=function e(t,n){H(this,e),this.dropdown=t,this.nativeElement=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(zs(Be(function(){return s_})),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&Hs("aria-expanded",t.dropdown.isOpen())}}),e=Tp([Ap(0,gi(Be(function(){return s_})))],e)}(),a_=$y=function(e){x(n,e);var t=D(n);function n(e,r){return H(this,n),t.call(this,e,r)}return n}(o_);a_.\u0275fac=function(e){return new(e||a_)(zs(Be(function(){return s_})),zs(Jc))},a_.\u0275dir=Mt({type:a_,selectors:[["","ngbDropdownToggle",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&nu("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&Hs("aria-expanded",t.dropdown.isOpen())},features:[Gc([{provide:o_,useExisting:Be(function(){return $y})}]),Os]}),a_.ctorParameters=function(){return[{type:void 0,decorators:[{type:gi,args:[Be(function(){return s_})]}]},{type:Jc}]},a_=$y=Tp([Ap(0,gi(Be(function(){return s_})))],a_);var s_=function(){var e=function(){function e(t,n,r,i,o,a,s){var u=this;H(this,e),this._changeDetector=t,this._document=r,this._ngZone=i,this._elementRef=o,this._renderer=a,this._closed$=new se,this._bodyContainer=null,this._open=!1,this.openChange=new nh,this.placement=n.placement,this.container=n.container,this.autoClose=n.autoClose,this.display=s?"static":"dynamic",this._zoneSubscription=i.onStable.subscribe(function(){u._positionMenu()})}return j(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._ngZone.onStable.pipe(Pg(1)).subscribe(function(){e._applyPlacementClasses(),e._open&&e._setCloseHandlers()})}},{key:"ngOnChanges",value:function(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}},{key:"isOpen",value:function(){return this._open}},{key:"open",value:function(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}},{key:"_setCloseHandlers",value:function(){var e=this;Fy(this._ngZone,this._document,this.autoClose,function(t){e.close(),0===t&&e._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}},{key:"close",value:function(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}},{key:"toggle",value:function(){this.isOpen()?this.close():this.open()}},{key:"ngOnDestroy",value:function(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}},{key:"onKeyDown",value:function(e){var t=this,n=e.which,r=this._getMenuElements(),i=-1,o=null,a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach(function(n,r){n.contains(e.target)&&(o=n),n===t._document.activeElement&&(i=r)}),n!==Py.Space&&n!==Py.Enter){if(n!==Py.Tab){if(a||o){if(this.open(),r.length){switch(n){case Py.ArrowDown:i=Math.min(i+1,r.length-1);break;case Py.ArrowUp:if(this._isDropup()&&-1===i){i=r.length-1;break}i=Math.max(i-1,0);break;case Py.Home:i=0;break;case Py.End:i=r.length-1}r[i].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){var s=this._menu.nativeElement.querySelectorAll(Uy);e.shiftKey&&e.target===s[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===s[s.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else ug(e.target,"focusout").pipe(Pg(1)).subscribe(function(e){var n=e.relatedTarget;t._elementRef.nativeElement.contains(n)||t.close()})}}else o&&(!0===this.autoClose||"inside"===this.autoClose)&&ug(o,"click").pipe(Pg(1)).subscribe(function(){return t.close()})}},{key:"_isDropup",value:function(){return this._elementRef.nativeElement.classList.contains("dropup")}},{key:"_isEventFromToggle",value:function(e){return this._anchor.nativeElement.contains(e.target)}},{key:"_getMenuElements",value:function(){var e=this._menu;return null==e?[]:e.menuItems.filter(function(e){return!e.disabled}).map(function(e){return e.elementRef.nativeElement})}},{key:"_positionMenu",value:function(){var e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?zy(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}},{key:"_getFirstPlacement",value:function(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}},{key:"_resetContainer",value:function(){var e=this._renderer;if(this._menu){var t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}},{key:"_applyContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._resetContainer(),"body"===e){var t=this._renderer,n=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(r,"position","absolute"),t.setStyle(n,"position","static"),t.setStyle(r,"z-index","1050"),t.appendChild(r,n),t.appendChild(this._document.body,r)}}},{key:"_applyPlacementClasses",value:function(e){var t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));var n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),t.placement="static"===this.display?null:e;var i=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(r,i);var o=this._bodyContainer;o&&(n.removeClass(o,"dropup"),n.removeClass(o,"dropdown"),n.addClass(o,i))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Sl),zs(t_),zs(kd),zs(Kh),zs(Jc),zs(tl),zs(n_,8))},e.\u0275dir=Mt({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){var r;(1&e&&(gh(n,i_,5),gh(n,o_,5)),2&e)&&(ph(r=mh())&&(t._menu=r.first),ph(r=mh())&&(t._anchor=r.first))},hostVars:2,hostBindings:function(e,t){2&e&&yu("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[Gt]}),Tp([Br(i_,{static:!1})],e.prototype,"_menu",void 0),Tp([Br(o_,{static:!1})],e.prototype,"_anchor",void 0),Tp([wh()],e.prototype,"autoClose",void 0),Tp([wh("open")],e.prototype,"_open",void 0),Tp([wh()],e.prototype,"placement",void 0),Tp([wh()],e.prototype,"container",void 0),Tp([wh()],e.prototype,"display",void 0),Tp([Ch()],e.prototype,"openChange",void 0),e=Tp([Ap(2,gi(kd)),Ap(6,mi())],e)}(),u_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),c_=function(){var e=function e(){H(this,e),this.backdrop=!0,this.keyboard=!0};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),l_=function e(t,n,r){H(this,e),this.nodes=t,this.viewRef=n,this.componentRef=r},h_=function(){function e(t,n,r,i,o,a){H(this,e),this._type=t,this._injector=n,this._viewContainerRef=r,this._renderer=i,this._componentFactoryResolver=o,this._applicationRef=a,this._windowRef=null,this._contentRef=null}return j(e,[{key:"open",value:function(e,t){return this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes)),this._windowRef}},{key:"close",value:function(){var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}},{key:"_getContentRef",value:function(e,t){if(e){if(e instanceof Rl){var n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new l_([n.rootNodes],n)}return new l_([[this._renderer.createText("".concat(e))]])}return new l_([])}}]),e}(),d_=function(){},f_=function(){var e=function(){function e(t){H(this,e),this._document=t}return j(e,[{key:"compensate",value:function(){var e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):d_}},{key:"_adjustBody",value:function(e){var t=this._document.body,n=t.style.paddingRight,r=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]="".concat(r+e,"px"),function(){return t.style["padding-right"]=n}}},{key:"_isPresent",value:function(e){var t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}},{key:"_getWidth",value:function(){var e=this._document.createElement("div");e.className="modal-scrollbar-measure";var t=this._document.body;t.appendChild(e);var n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd))},token:e,providedIn:"root"}),e=Tp([Ap(0,gi(kd))],e)}(),p_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Tt({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(e,t){2&e&&_u("modal-backdrop fade show"+(t.backdropClass?" "+t.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),Tp([wh()],e.prototype,"backdropClass",void 0),e}(),v_=function(){function e(){H(this,e)}return j(e,[{key:"close",value:function(e){}},{key:"dismiss",value:function(e){}}]),e}(),g_=function(){function e(t,n,r,i){var o=this;H(this,e),this._windowCmptRef=t,this._contentRef=n,this._backdropCmptRef=r,this._beforeDismiss=i,t.instance.dismissEvent.subscribe(function(e){o.dismiss(e)}),this.result=new Promise(function(e,t){o._resolve=e,o._reject=t}),this.result.then(null,function(){})}return j(e,[{key:"componentInstance",get:function(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}},{key:"close",value:function(e){this._windowCmptRef&&(this._resolve(e),this._removeModalElements())}},{key:"_dismiss",value:function(e){this._reject(e),this._removeModalElements()}},{key:"dismiss",value:function(e){var t=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&t._dismiss(e)},function(){}):!1!==n&&this._dismiss(e)}else this._dismiss(e)}},{key:"_removeModalElements",value:function(){var e=this._windowCmptRef.location.nativeElement;if(e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._backdropCmptRef){var t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}]),e}(),m_=(function(e){e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC"}(m_||(m_={})),m_),y_=function(){var e=function(){function e(t,n,r){H(this,e),this._document=t,this._elRef=n,this._zone=r,this._closed$=new se,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new nh}return j(e,[{key:"dismiss",value:function(e){this.dismissEvent.emit(e)}},{key:"ngOnInit",value:function(){this._elWithFocus=this._document.activeElement}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._elRef.nativeElement;if(this._zone.runOutsideAngular(function(){ug(t,"keydown").pipe(kg(e._closed$),Sg(function(t){return t.which===Py.Escape&&e.keyboard})).subscribe(function(t){return requestAnimationFrame(function(){t.defaultPrevented||e._zone.run(function(){return e.dismiss(m_.ESC)})})});var n=!1;ug(e._dialogEl.nativeElement,"mousedown").pipe(kg(e._closed$),Mg(function(){return n=!1}),yg(function(){return ug(t,"mouseup").pipe(kg(e._closed$),Pg(1))}),Sg(function(e){var n=e.target;return t===n})).subscribe(function(){n=!0}),ug(t,"click").pipe(kg(e._closed$)).subscribe(function(r){var i=r.target;!0===e.backdrop&&t===i&&!n&&e._zone.run(function(){return e.dismiss(m_.BACKDROP_CLICK)}),n=!1})}),!t.contains(document.activeElement)){var n=t.querySelector("[ngbAutofocus]"),r=Hy(t)[0];(n||r||t).focus()}}},{key:"ngOnDestroy",value:function(){var e,t=this,n=this._document.body,r=this._elWithFocus;e=r&&r.focus&&n.contains(r)?r:n,this._zone.runOutsideAngular(function(){setTimeout(function(){return e.focus()}),t._elWithFocus=null}),this._closed$.next()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(kd),zs(Jc),zs(Kh))},e.\u0275cmp=Tt({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){var n;(1&e&&vh(km,7),2&e)&&(ph(n=mh())&&(t._dialogEl=n.first))},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(e,t){2&e&&(Hs("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),_u("modal fade show d-block"+(t.windowClass?" "+t.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Gg,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(su(),Gs(0,"div",0,1),Gs(2,"div",2),uu(3),Ws(),Ws()),2&e&&_u("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),Tp([zr("dialog",{static:!0})],e.prototype,"_dialogEl",void 0),Tp([wh()],e.prototype,"ariaLabelledBy",void 0),Tp([wh()],e.prototype,"ariaDescribedBy",void 0),Tp([wh()],e.prototype,"backdrop",void 0),Tp([wh()],e.prototype,"centered",void 0),Tp([wh()],e.prototype,"keyboard",void 0),Tp([wh()],e.prototype,"scrollable",void 0),Tp([wh()],e.prototype,"size",void 0),Tp([wh()],e.prototype,"windowClass",void 0),Tp([Ch("dismiss")],e.prototype,"dismissEvent",void 0),e=Tp([Ap(0,gi(kd))],e)}(),__=function(){var e=function(){function e(t,n,r,i,o,a){var s=this;H(this,e),this._applicationRef=t,this._injector=n,this._document=r,this._scrollBar=i,this._rendererFactory=o,this._ngZone=a,this._activeWindowCmptHasChanged=new se,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new nh,this._activeWindowCmptHasChanged.subscribe(function(){if(s._windowCmpts.length){var e=s._windowCmpts[s._windowCmpts.length-1];Vy(s._ngZone,e.location.nativeElement,s._activeWindowCmptHasChanged),s._revertAriaHidden(),s._setAriaHidden(e.location.nativeElement)}})}return j(e,[{key:"open",value:function(e,t,n,r){var i=this,o=r.container instanceof HTMLElement?r.container:Qm(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),u=function(){i._modalRefs.length||(a.removeClass(i._document.body,"modal-open"),i._revertAriaHidden())};if(!o)throw new Error('The specified modal container "'.concat(r.container||"body",'" was not found in the DOM.'));var c=new v_,l=this._getContentRef(e,r.injector||t,n,c,r),h=!1!==r.backdrop?this._attachBackdrop(e,o):void 0,d=this._attachWindowComponent(e,o,l),f=new g_(d,l,h,r.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(d),f.result.then(s,s),f.result.then(u,u),c.close=function(e){f.close(e)},c.dismiss=function(e){f.dismiss(e)},this._applyWindowOptions(d.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,r),f}},{key:"activeInstances",get:function(){return this._activeInstances}},{key:"dismissAll",value:function(e){this._modalRefs.forEach(function(t){return t.dismiss(e)})}},{key:"hasOpenModals",value:function(){return this._modalRefs.length>0}},{key:"_attachBackdrop",value:function(e,t){var n=e.resolveComponentFactory(p_).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}},{key:"_attachWindowComponent",value:function(e,t,n){var r=e.resolveComponentFactory(y_).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}},{key:"_applyWindowOptions",value:function(e,t){this._windowAttributes.forEach(function(n){Qm(t[n])&&(e[n]=t[n])})}},{key:"_applyBackdropOptions",value:function(e,t){this._backdropAttributes.forEach(function(n){Qm(t[n])&&(e[n]=t[n])})}},{key:"_getContentRef",value:function(e,t,n,r,i){return n?n instanceof Rl?this._createFromTemplateRef(n,r):Gm(n)?this._createFromString(n):this._createFromComponent(e,t,n,r,i):new l_([])}},{key:"_createFromTemplateRef",value:function(e,t){var n=e.createEmbeddedView({$implicit:t,close:function(e){t.close(e)},dismiss:function(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new l_([n.rootNodes],n)}},{key:"_createFromString",value:function(e){var t=this._document.createTextNode("".concat(e));return new l_([[t]])}},{key:"_createFromComponent",value:function(e,t,n,r,i){var o=e.resolveComponentFactory(n),a=Ss.create({providers:[{provide:v_,useValue:r}],parent:t}),s=o.create(a),u=s.location.nativeElement;return i.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(s.hostView),new l_([[u]],s.hostView,s)}},{key:"_setAriaHidden",value:function(e){var t=this,n=e.parentElement;n&&e!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==e&&"SCRIPT"!==n.nodeName&&(t._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}},{key:"_revertAriaHidden",value:function(){this._ariaHiddenValues.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}},{key:"_registerModalRef",value:function(e){var t=this,n=function(){var n=t._modalRefs.indexOf(e);n>-1&&(t._modalRefs.splice(n,1),t._activeInstances.emit(t._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(n,n)}},{key:"_registerWindowCmpt",value:function(e){var t=this;this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(function(){var n=t._windowCmpts.indexOf(e);n>-1&&(t._windowCmpts.splice(n,1),t._activeWindowCmptHasChanged.next())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(cd),ui(Ss),ui(kd),ui(f_),ui(el),ui(Kh))},e.\u0275prov=Xe({factory:function(){return new e(ui(cd),ui(ls),ui(kd),ui(f_),ui(el),ui(Kh))},token:e,providedIn:"root"}),e=Tp([Ap(2,gi(kd))],e)}(),b_=function(){var e=function(){function e(t,n,r,i){H(this,e),this._moduleCFR=t,this._injector=n,this._modalStack=r,this._config=i}return j(e,[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},this._config,t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}},{key:"activeInstances",get:function(){return this._modalStack.activeInstances}},{key:"dismissAll",value:function(e){this._modalStack.dismissAll(e)}},{key:"hasOpenModals",value:function(){return this._modalStack.hasOpenModals()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Yc),ui(Ss),ui(__),ui(c_))},e.\u0275prov=Xe({factory:function(){return new e(ui(Yc),ui(ls),ui(__),ui(c_))},token:e,providedIn:"root"}),e}(),k_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[b_]}),e}(),w_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),C_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),S_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),E_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),O_=function(){var e=function e(){H(this,e),this.max=10,this.readonly=!1,this.resettable=!1};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),T_={provide:Mp,useExisting:Be(function(){return A_}),multi:!0},A_=function(){var e=function(){function e(t,n){H(this,e),this._changeDetectorRef=n,this.contexts=[],this.disabled=!1,this.hover=new nh,this.leave=new nh,this.rateChange=new nh(!0),this.onChange=function(e){},this.onTouched=function(){},this.max=t.max,this.readonly=t.readonly}return j(e,[{key:"ariaValueText",value:function(){return"".concat(this.nextRate," out of ").concat(this.max)}},{key:"enter",value:function(e){!this.readonly&&!this.disabled&&this._updateState(e),this.hover.emit(e)}},{key:"handleBlur",value:function(){this.onTouched()}},{key:"handleClick",value:function(e){!this.readonly&&!this.disabled&&this.update(this.resettable&&this.rate===e?0:e)}},{key:"handleKeyDown",value:function(e){switch(e.which){case Py.ArrowDown:case Py.ArrowLeft:this.update(this.rate-1);break;case Py.ArrowUp:case Py.ArrowRight:this.update(this.rate+1);break;case Py.Home:this.update(0);break;case Py.End:this.update(this.max);break;default:return}e.preventDefault()}},{key:"ngOnChanges",value:function(e){e.rate&&this.update(this.rate)}},{key:"ngOnInit",value:function(){this.contexts=Array.from({length:this.max},function(e,t){return{fill:0,index:t}}),this._updateState(this.rate)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"reset",value:function(){this.leave.emit(this.nextRate),this._updateState(this.rate)}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"update",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(Math.min(e,t),n)}(e,this.max,0);!this.readonly&&!this.disabled&&this.rate!==n&&(this.rate=n,this.rateChange.emit(this.rate)),t&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}},{key:"writeValue",value:function(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}},{key:"_getFillValue",value:function(e){var t=this.nextRate-e;return t>=1?100:t<1&&t>0?parseInt((100*t).toFixed(2),10):0}},{key:"_updateState",value:function(e){var t=this;this.nextRate=e,this.contexts.forEach(function(e,n){return e.fill=t._getFillValue(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(O_),zs(Sl))},e.\u0275cmp=Tt({type:e,selectors:[["ngb-rating"]],contentQueries:function(e,t,n){var r;(1&e&&gh(n,Rl,5),2&e)&&(ph(r=mh())&&(t.starTemplateFromContent=r.first))},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,t){1&e&&nu("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)})("mouseleave",function(){return t.reset()}),2&e&&(Nu("tabindex",t.disabled?-1:0),Hs("aria-valuemax",t.max)("aria-valuenow",t.nextRate)("aria-valuetext",t.ariaValueText())("aria-disabled",!!t.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[Gc([T_]),Gt],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(js(0,wm,1,1,"ng-template",null,0,kh),js(2,Sm,4,5,"ng-template",1)),2&e&&(ha(2),qs("ngForOf",t.contexts))},directives:[Tf,Lf],encapsulation:2,changeDetection:0}),Tp([wh()],e.prototype,"max",void 0),Tp([wh()],e.prototype,"rate",void 0),Tp([wh()],e.prototype,"readonly",void 0),Tp([wh()],e.prototype,"resettable",void 0),Tp([wh()],e.prototype,"starTemplate",void 0),Tp([Br(Rl,{static:!1})],e.prototype,"starTemplateFromContent",void 0),Tp([Ch()],e.prototype,"hover",void 0),Tp([Ch()],e.prototype,"leave",void 0),Tp([Ch()],e.prototype,"rateChange",void 0),e}(),R_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),P_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),I_=function(){function e(t,n,r){H(this,e),this.hour=qm(t),this.minute=qm(n),this.second=qm(r)}return j(e,[{key:"changeHour",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.updateHour((isNaN(this.hour)?0:this.hour)+e)}},{key:"updateHour",value:function(e){this.hour=Wm(e)?(e<0?24+e:e)%24:NaN}},{key:"changeMinute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}},{key:"updateMinute",value:function(e){Wm(e)?(this.minute=e%60<0?60+e%60:e%60,this.changeHour(Math.floor(e/60))):this.minute=NaN}},{key:"changeSecond",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.updateSecond((isNaN(this.second)?0:this.second)+e)}},{key:"updateSecond",value:function(e){Wm(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}},{key:"isValid",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Wm(this.hour)&&Wm(this.minute)&&(!e||Wm(this.second))}},{key:"toString",value:function(){return"".concat(this.hour||0,":").concat(this.minute||0,":").concat(this.second||0)}}]),e}(),x_=function(){var e=function e(){H(this,e),this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}();function M_(){return new N_}var D_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:M_,token:e,providedIn:"root"}),e}(),N_=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"fromModel",value:function(e){return e&&Ym(e.hour)&&Ym(e.minute)?{hour:e.hour,minute:e.minute,second:Ym(e.second)?e.second:null}:null}},{key:"toModel",value:function(e){return e&&Ym(e.hour)&&Ym(e.minute)?{hour:e.hour,minute:e.minute,second:Ym(e.second)?e.second:null}:null}}]),n}(D_);return t.\u0275fac=function(n){return(e||(e=Pr(t)))(n||t)},t.\u0275prov=Xe({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),L_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return function(e){return new F_(e)}(ui(Mh))},token:e,providedIn:"root"}),e}(),F_=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this))._periods=qd(e,Vd.Standalone,jd.Narrow),r}return j(n,[{key:"getMorningPeriod",value:function(){return this._periods[0]}},{key:"getAfternoonPeriod",value:function(){return this._periods[1]}}]),n}(L_);return e.\u0275fac=function(t){return new(t||e)(ui(Mh))},e.\u0275prov=Xe({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Tp([Ap(0,gi(Mh))],e)}(),U_=/[^0-9]/g,H_={provide:Mp,useExisting:Be(function(){return V_}),multi:!0},V_=function(){var e=function(){function e(t,n,r,i){H(this,e),this._config=t,this._ngbTimeAdapter=n,this._cd=r,this.i18n=i,this.onChange=function(e){},this.onTouched=function(){},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}return j(e,[{key:"hourStep",get:function(){return this._hourStep},set:function(e){this._hourStep=Ym(e)?e:this._config.hourStep}},{key:"minuteStep",get:function(){return this._minuteStep},set:function(e){this._minuteStep=Ym(e)?e:this._config.minuteStep}},{key:"secondStep",get:function(){return this._secondStep},set:function(e){this._secondStep=Ym(e)?e:this._config.secondStep}},{key:"writeValue",value:function(e){var t=this._ngbTimeAdapter.fromModel(e);this.model=t?new I_(t.hour,t.minute,t.second):new I_,!this.seconds&&(!t||!Wm(t.second))&&(this.model.second=0),this._cd.markForCheck()}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"changeHour",value:function(e){this.model.changeHour(e),this.propagateModelChange()}},{key:"changeMinute",value:function(e){this.model.changeMinute(e),this.propagateModelChange()}},{key:"changeSecond",value:function(e){this.model.changeSecond(e),this.propagateModelChange()}},{key:"updateHour",value:function(e){var t=this.model.hour>=12,n=qm(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}},{key:"updateMinute",value:function(e){this.model.updateMinute(qm(e)),this.propagateModelChange()}},{key:"updateSecond",value:function(e){this.model.updateSecond(qm(e)),this.propagateModelChange()}},{key:"toggleMeridian",value:function(){this.meridian&&this.changeHour(12)}},{key:"formatInput",value:function(e){e.value=e.value.replace(U_,"")}},{key:"formatHour",value:function(e){return Wm(e)?Xm(this.meridian?e%12==0?12:e%12:e%24):Xm(NaN)}},{key:"formatMinSec",value:function(e){return Xm(Wm(e)?e:NaN)}},{key:"isSmallSize",get:function(){return"small"===this.size}},{key:"isLargeSize",get:function(){return"large"===this.size}},{key:"ngOnChanges",value:function(e){e.seconds&&!this.seconds&&this.model&&!Wm(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}},{key:"propagateModelChange",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(x_),zs(D_),zs(Sl),zs(L_))},e.\u0275cmp=Tt({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[Gc([H_]),Gt],decls:16,vars:25,consts:function(){return[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",$localize(u||(u=C([":@@ngb.timepicker.HH\u241fce676ab1d6d98f85c836381cf100a4a91ef95a1f\u241f4043638465245303811:HH"]))),"aria-label",$localize(c||(c=C([":@@ngb.timepicker.hours\u241f3bbce5fef7e1151da052a4e529453edb340e3912\u241f8070396816726827304:Hours"]))),1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",$localize(l||(l=C([":@@ngb.timepicker.MM\u241f72c8edf6a50068a05bde70991e36b1e881f4ca54\u241f1647282246509919852:MM"]))),"aria-label",$localize(h||(h=C([":@@ngb.timepicker.minutes\u241f41e62daa962947c0d23ded0981975d1bddf0bf38\u241f5531237363767747080:Minutes"]))),1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],$localize(d||(d=C([":@@ngb.timepicker.increment-hours\u241fcb74bc1d625a6c1742f0d7d47306cf495780c218\u241f5939278348542933629:Increment hours"]))),[1,"chevron","ngb-tp-chevron","bottom"],$localize(f||(f=C([":@@ngb.timepicker.decrement-hours\u241f147c7a19429da7d999e247d22e33fee370b1691b\u241f3651829882940481818:Decrement hours"]))),$localize(p||(p=C([":@@ngb.timepicker.increment-minutes\u241ff5a4a3bc05e053f6732475d0e74875ec01c3a348\u241f180147720391025024:Increment minutes"]))),$localize(v||(v=C([":@@ngb.timepicker.decrement-minutes\u241fc1a6899e529c096da5b660385d4e77fe1f7ad271\u241f7447789825403243588:Decrement minutes"]))),[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",$localize(g||(g=C([":@@ngb.timepicker.SS\u241febe38d36a40a2383c5fefa9b4608ffbda08bd4a3\u241f3628127143071124194:SS"]))),"aria-label",$localize(m||(m=C([":@@ngb.timepicker.seconds\u241f4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c\u241f8874012390997067175:Seconds"]))),1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],$localize(y||(y=C([":@@ngb.timepicker.increment-seconds\u241f912322ecee7d659d04dcf494a70e22e49d334b26\u241f5364772110539092174:Increment seconds"]))),$localize(_||(_=C([":@@ngb.timepicker.decrement-seconds\u241f5db47ac104294243a70eb9124fbea9d0004ddf69\u241f753633511487974857:Decrement seconds"]))),[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],$localize(b||(b=C([":@@ngb.timepicker.PM\u241f8d6e691e10306c1b34c6b26805151aaea320ef7f\u241f3564199131264287502:",":INTERPOLATION:"])),"\ufffd0\ufffd"),$localize(k||(k=C([":@@ngb.timepicker.AM\u241f69a1f176a93998876952adac57c3bc3863b6105e\u241f4592818992509942761:",":INTERPOLATION:"])),"\ufffd0\ufffd")]},template:function(e,t){1&e&&(Gs(0,"fieldset",0),Gs(1,"div",1),Gs(2,"div",2),js(3,Em,4,7,"button",3),Gs(4,"input",4),nu("change",function(e){return t.updateHour(e.target.value)})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeHour(t.hourStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeHour(-t.hourStep),e.preventDefault()}),Ws(),js(5,Om,4,7,"button",3),Ws(),Gs(6,"div",5),Iu(7,":"),Ws(),Gs(8,"div",6),js(9,Tm,4,7,"button",3),Gs(10,"input",7),nu("change",function(e){return t.updateMinute(e.target.value)})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeMinute(t.minuteStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeMinute(-t.minuteStep),e.preventDefault()}),Ws(),js(11,Am,4,7,"button",3),Ws(),js(12,Rm,2,0,"div",8),js(13,xm,4,9,"div",9),js(14,Mm,1,0,"div",8),js(15,Lm,5,9,"div",10),Ws(),Ws()),2&e&&(yu("disabled",t.disabled),qs("disabled",t.disabled),ha(3),qs("ngIf",t.spinners),ha(1),yu("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),qs("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),ha(1),qs("ngIf",t.spinners),ha(4),qs("ngIf",t.spinners),ha(1),yu("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),qs("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),ha(1),qs("ngIf",t.spinners),ha(1),qs("ngIf",t.seconds),ha(1),qs("ngIf",t.seconds),ha(1),qs("ngIf",t.meridian),ha(1),qs("ngIf",t.meridian))},directives:[Rf],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}'],encapsulation:2}),Tp([wh()],e.prototype,"meridian",void 0),Tp([wh()],e.prototype,"spinners",void 0),Tp([wh()],e.prototype,"seconds",void 0),Tp([wh()],e.prototype,"hourStep",null),Tp([wh()],e.prototype,"minuteStep",null),Tp([wh()],e.prototype,"secondStep",null),Tp([wh()],e.prototype,"readonlyInputs",void 0),Tp([wh()],e.prototype,"size",void 0),e}(),j_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),B_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),z_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),q_=function(){var e=function(){function e(){H(this,e),this.highlightClass="ngb-highlight"}return j(e,[{key:"ngOnChanges",value:function(e){var t=Km(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(function(e){return function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(Km(e))}).filter(function(e){return e});this.parts=n.length?t.split(new RegExp("(".concat(n.join("|"),")"),"gmi")):[t]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Tt({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[Gt],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,t){1&e&&js(0,Hm,3,2,"ng-template",0),2&e&&qs("ngForOf",t.parts)},directives:[Tf,Rf],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),Tp([wh()],e.prototype,"highlightClass",void 0),Tp([wh()],e.prototype,"result",void 0),Tp([wh()],e.prototype,"term",void 0),e}(),K_=function(){var e=function(){function e(){H(this,e),this.activeIdx=0,this.focusFirst=!0,this.formatter=Km,this.selectEvent=new nh,this.activeChangeEvent=new nh}return j(e,[{key:"hasActive",value:function(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Tt({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(e,t){1&e&&nu("mousedown",function(e){return e.preventDefault()}),2&e&&Nu("id",t.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(js(0,Vm,1,2,"ng-template",null,0,kh),js(2,zm,2,9,"ng-template",1)),2&e&&(ha(2),qs("ngForOf",t.results))},directives:[Tf,q_,Lf],encapsulation:2}),Tp([wh()],e.prototype,"id",void 0),Tp([wh()],e.prototype,"focusFirst",void 0),Tp([wh()],e.prototype,"results",void 0),Tp([wh()],e.prototype,"term",void 0),Tp([wh()],e.prototype,"formatter",void 0),Tp([wh()],e.prototype,"resultTemplate",void 0),Tp([Ch("select")],e.prototype,"selectEvent",void 0),Tp([Ch("activeChange")],e.prototype,"activeChangeEvent",void 0),e}(),G_=new Ur("live announcer delay",{providedIn:"root",factory:function(){return 100}});function W_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.body.querySelector("#ngb-live");return null==n&&t&&((n=e.createElement("div")).setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),e.body.appendChild(n)),n}var Y_=function(){var e=function(){function e(t,n){H(this,e),this._document=t,this._delay=n}return j(e,[{key:"ngOnDestroy",value:function(){var e=W_(this._document);e&&e.parentElement.removeChild(e)}},{key:"say",value:function(e){var t=W_(this._document,!0),n=this._delay;if(null!=t){t.textContent="";var r=function(){return t.textContent=e};null===n?r():setTimeout(r,n)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kd),ui(G_))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd),ui(G_))},token:e,providedIn:"root"}),e=Tp([Ap(0,gi(kd)),Ap(1,gi(G_))],e)}(),Q_=function(){var e=function e(){H(this,e),this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),X_={provide:Mp,useExisting:Be(function(){return J_}),multi:!0},Z_=0,J_=function(){var e=function(){function e(t,n,r,i,o,a,s,u,c,l,h,d){var f=this;H(this,e),this._elementRef=t,this._renderer=r,this._live=u,this._document=c,this._ngZone=l,this._changeDetector=h,this._subscription=null,this._closed$=new se,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new nh,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Z_++,this._onTouched=function(){},this._onChange=function(e){},this.container=a.container,this.editable=a.editable,this.focusFirst=a.focusFirst,this.showHint=a.showHint,this.placement=a.placement,this._valueChanges=ug(t.nativeElement,"input").pipe(ye(function(e){return e.target.value})),this._resubscribeTypeahead=new Xv(null),this._popupService=new h_(K_,i,n,r,o,d),this._zoneSubscription=s.onStable.subscribe(function(){f.isPopupOpen()&&zy(f._elementRef.nativeElement,f._windowRef.location.nativeElement,f.placement,"body"===f.container)})}return j(e,[{key:"ngOnInit",value:function(){var e=this,t=this._valueChanges.pipe(Mg(function(t){e._inputValueBackup=e.showHint?t:null,e._onChange(e.editable?t:void 0)})).pipe(this.ngbTypeahead),n=this._resubscribeTypeahead.pipe(yg(function(){return t}));this._subscription=this._subscribeToUserInput(n)}},{key:"ngOnDestroy",value:function(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"writeValue",value:function(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"dismissPopup",value:function(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}},{key:"isPopupOpen",value:function(){return null!=this._windowRef}},{key:"handleBlur",value:function(){this._resubscribeTypeahead.next(null),this._onTouched()}},{key:"handleKeyDown",value:function(e){if(this.isPopupOpen())switch(e.which){case Py.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Py.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Py.Enter:case Py.Tab:var t=this._windowRef.instance.getActive();Qm(t)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(t)),this._closePopup()}}},{key:"_openPopup",value:function(){var e=this;this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(function(t){return e._selectResultClosePopup(t)}),this._windowRef.instance.activeChangeEvent.subscribe(function(t){return e.activeDescendant=t}),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),Fy(this._ngZone,this._document,"outside",function(){return e.dismissPopup()},this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}},{key:"_closePopup",value:function(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=null}},{key:"_selectResult",value:function(e){var t=!1;this.selectItem.emit({item:e,preventDefault:function(){t=!0}}),this._resubscribeTypeahead.next(null),t||(this.writeValue(e),this._onChange(e))}},{key:"_selectResultClosePopup",value:function(e){this._selectResult(e),this._closePopup()}},{key:"_showHint",value:function(){var e;if(this.showHint&&(null===(e=this._windowRef)||void 0===e?void 0:e.instance.hasActive())&&null!=this._inputValueBackup){var t=this._inputValueBackup.toLowerCase(),n=this._formatItemForInput(this._windowRef.instance.getActive());t===n.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+n.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,n.length])):this._writeInputValue(n)}}},{key:"_formatItemForInput",value:function(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):Km(e)}},{key:"_writeInputValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",Km(e))}},{key:"_subscribeToUserInput",value:function(e){var t=this;return e.subscribe(function(e){e&&0!==e.length?(t._openPopup(),t._windowRef.instance.focusFirst=t.focusFirst,t._windowRef.instance.results=e,t._windowRef.instance.term=t._elementRef.nativeElement.value,t.resultFormatter&&(t._windowRef.instance.formatter=t.resultFormatter),t.resultTemplate&&(t._windowRef.instance.resultTemplate=t.resultTemplate),t._windowRef.instance.resetActive(),t._windowRef.changeDetectorRef.detectChanges(),t._showHint()):t._closePopup();var n=e?e.length:0;t._live.say(0===n?"No results available":"".concat(n," result").concat(1===n?"":"s"," available"))})}},{key:"_unsubscribeFromUserInput",value:function(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Jc),zs(Nl),zs(tl),zs(Ss),zs(Yc),zs(Q_),zs(Kh),zs(Y_),zs(kd),zs(Kh),zs(Sl),zs(cd))},e.\u0275dir=Mt({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,t){1&e&&nu("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)}),2&e&&(Nu("autocomplete",t.autocomplete),Hs("aria-autocomplete",t.showHint?"both":"list")("aria-activedescendant",t.activeDescendant)("aria-owns",t.isPopupOpen()?t.popupId:null)("aria-expanded",t.isPopupOpen()),yu("open",t.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[Gc([X_])]}),Tp([wh()],e.prototype,"autocomplete",void 0),Tp([wh()],e.prototype,"container",void 0),Tp([wh()],e.prototype,"editable",void 0),Tp([wh()],e.prototype,"focusFirst",void 0),Tp([wh()],e.prototype,"inputFormatter",void 0),Tp([wh()],e.prototype,"ngbTypeahead",void 0),Tp([wh()],e.prototype,"resultFormatter",void 0),Tp([wh()],e.prototype,"resultTemplate",void 0),Tp([wh()],e.prototype,"showHint",void 0),Tp([wh()],e.prototype,"placement",void 0),Tp([Ch()],e.prototype,"selectItem",void 0),e=Tp([Ap(8,gi(kd))],e)}(),$_=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf]]}),e}(),eb=[Jm,$m,ay,sy,uy,e_,u_,k_,w_,C_,S_,E_,R_,j_,B_,z_,$_,P_],tb=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[eb,Jm,$m,ay,sy,uy,e_,u_,k_,w_,C_,S_,E_,R_,j_,B_,z_,$_,P_]}),e}();function nb(e){return null!=e&&"false"!="".concat(e)}function rb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ib(e)?Number(e):t}function ib(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function ob(e){return Array.isArray(e)?e:[e]}function ab(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function sb(e){return e instanceof Jc?e.nativeElement:e}new(function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?I(U(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return I(U(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(tg));var ub=1,cb=Promise.resolve(),lb={};function hb(e){return e in lb&&(delete lb[e],!0)}var db=function(e){var t=ub++;return lb[t]=!0,cb.then(function(){return hb(t)&&e()}),t},fb=function(e){hb(e)};new(function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?I(U(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=db(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return I(U(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(fb(t),e.scheduled=void 0)}}]),n}(tg));var pb,vb=function(){function e(t){H(this,e),this.durationSelector=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new gb(e,this.durationSelector))}}]),e}(),gb=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}return j(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{var n;t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var r=ge(this,t);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,n,r){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(me);function mb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ig;return function(e){return function(t){return t.lift(new vb(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return og(t)?r=Number(t)<1?1:Number(t):ce(t)&&(n=t),ce(n)||(n=ig),new ne(function(t){var i=og(e)?e:+e-n.now();return n.schedule(ag,i,{index:0,period:r,subscriber:t})})}(e,t)})}new(function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return n}(rg))(function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return j(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?I(U(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?I(U(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?I(U(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(tg));try{pb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(W){pb=!1}var yb,_b,bb,kb=function(){var e=function e(t){H(this,e),this._platformId=t,this.isBrowser=this._platformId?function(e){return e===qf}(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&&!pb)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(ui(Ph))},e.\u0275prov=Xe({factory:function(){return new e(ui(Ph))},token:e,providedIn:"root"}),e}(),wb=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}();function Cb(e){return function(){if(null==yb&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return yb=!0}}))}finally{yb=yb||!1}return yb}()?e:!!e.capture}function Sb(e){return e.composedPath?e.composedPath()[0]:e.target}var Eb=new Ur("cdk-dir-doc",{providedIn:"root",factory:function(){return ci(kd)}}),Ob=function(){var e=function(){function e(t){if(H(this,e),this.value="ltr",this.change=new nh,t){var n=t.documentElement?t.documentElement.dir:null,r=(t.body?t.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return j(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Eb,8))},e.\u0275prov=Xe({factory:function(){return new e(ui(Eb,8))},token:e,providedIn:"root"}),e}(),Tb=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}();function Ab(e){return e&&"function"==typeof e.connect}var Rb=function(){function e(){H(this,e)}return j(e,[{key:"applyChanges",value:function(e,t,n,r,i){e.forEachOperation(function(e,r,o){var a,s;if(null==e.previousIndex){var u=n(e,r,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(r),s=3):(a=t.get(r),t.move(a,o),s=2);i&&i({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),Pb=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];H(this,e),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new se,r&&r.length&&(n?r.forEach(function(e){return t._markSelected(e)}):this._markSelected(r[0]),this._selectedToEmit.length=0)}return j(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ne(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(mb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):dg()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Sg(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=sb(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return ug(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Kh),ui(kb),ui(kd,8))},e.\u0275prov=Xe({factory:function(){return new e(ui(Kh),ui(kb),ui(kd,8))},token:e,providedIn:"root"}),e}(),Mb=function(){var e=function(){function e(t,n,r){var i=this;H(this,e),this._platform=t,this._change=new se,this._changeListener=function(e){i._change.next(e)},this._document=r,n.runOutsideAngular(function(){if(t.isBrowser){var e=i._getWindow();e.addEventListener("resize",i._changeListener),e.addEventListener("orientationchange",i._changeListener)}i.change().subscribe(function(){return i._viewportSize=null})})}return j(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-r.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(mb(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kb),ui(Kh),ui(kd,8))},e.\u0275prov=Xe({factory:function(){return new e(ui(kb),ui(Kh),ui(kd,8))},token:e,providedIn:"root"}),e}(),Db=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),Nb=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[Tb,wb,Db],Tb,Db]}),e}(),Lb=function(){function e(){H(this,e)}return j(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),Fb=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this)).component=e,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(Lb),Ub=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=r,o.context=i,o}return j(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,I(U(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,I(U(n.prototype),"detach",this).call(this)}}]),n}(Lb),Hb=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this)).element=e instanceof Jc?e.nativeElement:e,r}return n}(Lb),Vb=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a){var s,u;return H(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=r,u._appRef=i,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,r=u._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),u.outletElement.appendChild(t),u._attachedPortal=e,I((s=L(u),U(n.prototype)),"setDisposeFn",s).call(s,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},u._document=a,u}return j(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),r.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),this._attachedPortal=e,r}},{key:"dispose",value:function(){I(U(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(function(){function e(){H(this,e),this._isDisposed=!1,this.attachDomPortal=null}return j(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Fb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ub?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Hb?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}()),jb=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),Bb=function(){function e(t,n){H(this,e),this.predicate=t,this.inclusive=n}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new zb(e,this.predicate,this.inclusive))}}]),e}(),zb=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e)).predicate=r,o.inclusive=i,o.index=0,o}return j(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(J);function qb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.height||e.scrollWidth>t.width}}]),e}(),Wb=function(){function e(t,n,r,i){var o=this;H(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return j(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Yb=function(){function e(){H(this,e)}return j(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function Qb(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Xb(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Zb=function(){function e(t,n,r,i){H(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return j(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;Qb(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Jb=function(){var e=function e(t,n,r,i){var o=this;H(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new Yb},this.close=function(e){return new Wb(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new Gb(o._viewportRuler,o._document)},this.reposition=function(e){return new Zb(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=i};return e.\u0275fac=function(t){return new(t||e)(ui(xb),ui(Mb),ui(Kh),ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(xb),ui(Mb),ui(Kh),ui(kd))},token:e,providedIn:"root"}),e}(),$b=function e(t){if(H(this,e),this.scrollStrategy=new Yb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,r=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd))},token:e,providedIn:"root"}),e}(),rk=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this,e))._keydownListener=function(e){for(var t=r._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},r}return j(n,[{key:"add",value:function(e){I(U(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(nk);return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd))},token:e,providedIn:"root"}),e}(),ik=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e))._platform=r,i._cursorStyleIsSet=!1,i._clickListener=function(e){for(var t=Sb(e),n=i._attachedOverlays.slice(),r=n.length-1;r>-1;r--){var o=n[r];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},i}return j(n,[{key:"add",value:function(e){if(I(U(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}(nk);return e.\u0275fac=function(t){return new(t||e)(ui(kd),ui(kb))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd),ui(kb))},token:e,providedIn:"root"}),e}(),ok="undefined"!=typeof window?window:{},ak=void 0!==ok.__karma__&&!!ok.__karma__||void 0!==ok.jasmine&&!!ok.jasmine||void 0!==ok.jest&&!!ok.jest||void 0!==ok.Mocha&&!!ok.Mocha,sk=function(){var e=function(){function e(t,n){H(this,e),this._platform=n,this._document=t}return j(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||ak)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nf&&(f=g,d=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&dk(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ck),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var r,i;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+i}}},{key:"_getOverlayFit",value:function(e,t,n,r){var i=pk(t),o=e.x,a=e.y,s=this._getOffset(r,"x"),u=this._getOffset(r,"y");s&&(o+=s),u&&(a+=u);var c=0-a,l=a+i.height-n.height,h=this._subtractOverflows(i.width,0-o,o+i.width-n.width),d=this._subtractOverflows(i.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:i.width*i.height===f,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:h==i.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=fk(this._overlayRef.getConfig().minHeight),a=fk(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=i;return(e.fitsInViewportVertically||null!=o&&o<=r)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,o=pk(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),c=Math.max(a.top-n.top-e.y,0),l=Math.max(a.left-n.left-e.x,0);return r=o.width<=a.width?l||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;o=2*d,a=e.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=ab(n.height),r.top=ab(n.top),r.bottom=ab(n.bottom),r.width=ab(n.width),r.left=ab(n.left),r.right=ab(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=ab(i)),o&&(r.maxWidth=ab(o))}this._lastBoundingBoxSize=n,dk(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){dk(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){dk(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();dk(n,this._getExactOverlayY(t,e,a)),dk(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=ab(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=ab(o.maxWidth):i&&(n.maxWidth="")),dk(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=ab(i.y),r}},{key:"_getExactOverlayX",value:function(e,t,n){var r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=ab(i.x),r}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Xb(e,n),isOriginOutsideView:Qb(e,n),isOverlayClipped:Xb(t,n),isOverlayOutsideView:Qb(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==i&&"100vh"!==i||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(gk),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),yk=function(){var e=function(){function e(t,n,r,i){H(this,e),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i}return j(e,[{key:"global",value:function(){return new mk}},{key:"connectedTo",value:function(e,t,n){return new vk(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new hk(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Mb),ui(kd),ui(kb),ui(sk))},e.\u0275prov=Xe({factory:function(){return new e(ui(Mb),ui(kd),ui(kb),ui(sk))},token:e,providedIn:"root"}),e}(),_k=0,bk=function(){var e=function(){function e(t,n,r,i,o,a,s,u,c,l,h){H(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return j(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new $b(e);return i.direction=i.direction||this._directionality.value,new uk(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+_k++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(cd)),new Vb(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Jb),ui(sk),ui(Yc),ui(yk),ui(rk),ui(Ss),ui(Kh),ui(kd),ui(Ob),ui(Ld),ui(ik))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),kk=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],wk=new Ur("cdk-connected-overlay-scroll-strategy"),Ck=function(){var e=function e(t){H(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),Sk=function(){var e=function(){function e(t,n,r,i,o){H(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Q.EMPTY,this._attachSubscription=Q.EMPTY,this._detachSubscription=Q.EMPTY,this._positionSubscription=Q.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new nh,this.positionChange=new nh,this.attach=new nh,this.detach=new nh,this.overlayKeydown=new nh,this.overlayOutsideClick=new nh,this._templatePortal=new Ub(n,r),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}return j(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=nb(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=nb(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=nb(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=nb(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=nb(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=kk);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27===t.keyCode&&!e.disableClose&&!qb(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new $b({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Bb(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(bk),zs(Rl),zs(Nl),zs(wk),zs(Ob,8))},e.\u0275dir=Mt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Gt]}),e}(),Ek={provide:wk,deps:[bk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ok=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[bk,Ek],imports:[[Tb,jb,Nb],Nb]}),e}(),Tk=function(){function e(t,n){H(this,e),this._document=n;var r=this._textarea=this._document.createElement("textarea"),i=r.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",r.setAttribute("aria-hidden","true"),r.value=t,this._document.body.appendChild(r)}return j(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),Ak=function(){var e=function(){function e(t){H(this,e),this._document=t}return j(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n}},{key:"beginCopy",value:function(e){return new Tk(e,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(kd))},token:e,providedIn:"root"}),e}(),Rk=new Ur("CDK_COPY_TO_CLIPBOARD_CONFIG"),Pk=function(){var e=function(){function e(t,n,r){H(this,e),this._clipboard=t,this._ngZone=n,this.text="",this.attempts=1,this.copied=new nh,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}return j(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var n=t,r=this._clipboard.beginCopy(this.text);this._pending.add(r);var i=function t(){var i=r.copy();i||!--n||e._destroyed?(e._currentTimeout=null,e._pending.delete(r),r.destroy(),e.copied.emit(i)):e._currentTimeout=e._ngZone.runOutsideAngular(function(){return setTimeout(t,1)})};i()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(e){return e.destroy()}),this._pending.clear(),this._destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Ak),zs(Kh),zs(Rk,8))},e.\u0275dir=Mt({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&nu("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),e}(),Ik=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),xk=function(e,t){return(xk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Mk(e,t){function n(){this.constructor=e}xk(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Dk=function(){return(Dk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Rw(){for(var e=[],t=0;t=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=e.split("&"),r=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return n.forEach(function(e){if(e.trim()){var n=e.split(/=(.+)/g,2),i=n[0],o=n[1];i&&o&&(t[r(i)]=r(o))}}),t},e.trimArrayEntries=function(e){return e.map(function(e){return e.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(t){return!e.isEmpty(t)})},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(t){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}(),Lw=function(){function e(t){if(this._urlString=t,Nw.isEmpty(this._urlString))throw Dw.createUrlEmptyError();Nw.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return Nw.endsWith(t,"?")?t=t.slice(0,-1):Nw.endsWith(t,"?/")&&(t=t.slice(0,-2)),Nw.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Dw.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Dw.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw Dw.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return Nw.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return t&&0!==r.length&&(r[0]===zk.COMMON||r[0]===zk.ORGANIZATIONS)&&(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Dw.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=n.AbsolutePath.split("/");return r=r.filter(function(e){return e&&e.length>0}),n.PathSegments=r,!Nw.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw Dw.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===Uk.FORWARD_SLASH){var r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):""},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(Nw.isEmpty(t))return{};var n=e.parseHash(t),r=Nw.queryStringToObject(Nw.isEmpty(n)?t:n);if(!r)throw Mw.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(Nw.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),Fw="crypto_key_not_found",Uw=function(e){function t(n,r){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return Sw(t,e),t.createPkceNotGeneratedError=function(e){return new t("pkce_not_created","The PKCE code challenge and verifier could not be generated. Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t("crypto_nonexistent","The crypto object or function is not available. Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t("http_method_not_implemented","The HTTP method given has not been implemented in this library. Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t("empty_navigate_uri","Navigation URI is empty. Please check stack trace for more info.")},t.createEmptyHashError=function(e){return new t("hash_empty_error","Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t("no_state_in_hash","Hash does not contain state. Please verify that the request originated from msal.")},t.createHashDoesNotContainKnownPropertiesError=function(){return new t("hash_does_not_contain_known_properties","Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.")},t.createUnableToParseStateError=function(){return new t("unable_to_parse_state","Unable to parse state. Please verify that the request originated from msal.")},t.createStateInteractionTypeMismatchError=function(){return new t("state_interaction_type_mismatch","Hash contains state but the interaction type does not match the caller.")},t.createInteractionInProgressError=function(){return new t("interaction_in_progress","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.")},t.createPopupWindowError=function(e){var n="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.";return new t("popup_window_error",n=Nw.isEmpty(e)?n:n+" Details: "+e)},t.createEmptyWindowCreatedError=function(){return new t("empty_window_error","window.open returned null or undefined window object.")},t.createUserCancelledError=function(){return new t("user_cancelled","User cancelled the flow.")},t.createMonitorPopupTimeoutError=function(){return new t("monitor_window_timeout","Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.")},t.createMonitorIframeTimeoutError=function(){return new t("monitor_window_timeout","Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.")},t.createRedirectInIframeError=function(e){return new t("redirect_in_iframe","Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs. (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t("block_iframe_reload","Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors")},t.createBlockAcquireTokenInPopupsError=function(){return new t("block_nested_popups","Request was blocked inside a popup because MSAL detected it was running in a popup.")},t.createIframeClosedPrematurelyError=function(){return new t("iframe_closed_prematurely","The iframe being monitored was closed prematurely.")},t.createSilentLogoutUnsupportedError=function(){return new t("silent_logout_unsupported","Silent logout not supported. Please call logoutRedirect or logoutPopup instead.")},t.createNoAccountError=function(){return new t("no_account_error","No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.")},t.createSilentPromptValueError=function(e){return new t("silent_prompt_value_error","The value given for the prompt value is not valid for silent requests - must be set to 'none'. Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t("unable_to_parse_token_request_cache_error","The cached token request could not be parsed.")},t.createNoTokenRequestCacheError=function(){return new t("no_token_request_cache_error","No token request in found in cache.")},t.createAuthRequestNotSetError=function(){return new t("auth_request_not_set_error","Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler")},t.createNoCachedAuthorityError=function(){return new t("no_cached_authority_error","No cached authority found.")},t.createInvalidCacheTypeError=function(){return new t("invalid_cache_type","Invalid cache type")},t.createNonBrowserEnvironmentError=function(){return new t("non_browser_environment","Login and token requests are not supported in non-browser environments.")},t.createDatabaseNotOpenError=function(){return new t("database_not_open","Database is not open!")},t.createNoNetworkConnectivityError=function(){return new t("no_network_connectivity","No network connectivity. Check your internet connection.")},t.createPostRequestFailedError=function(e,n){return new t("post_request_failed","Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA' | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t("get_request_failed","Network request failed. Please check the network trace to determine root cause. | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t("failed_to_parse_response","Failed to parse network response. Check network trace. | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t("unable_to_load_token","Error loading token to cache. | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Fw,"Cryptographic Key or Keypair not found in browser storage. | No match found for KeyId: "+e)},t}(Pw),Hw=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Ow(this,void 0,void 0,function(){var n,r,i;return Tw(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,fetch(e,{method:dw.GET,headers:this.getFetchHeaders(t)})];case 1:return n=o.sent(),[3,3];case 2:throw r=o.sent(),window.navigator.onLine?Uw.createGetRequestFailedError(r,e):Uw.createNoNetworkConnectivityError();case 3:return o.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=o.sent(),i.status=n.status,i)];case 5:throw o.sent(),Uw.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(e,t){return Ow(this,void 0,void 0,function(){var n,r,i,o;return Tw(this,function(a){switch(a.label){case 0:n=t&&t.body||"",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:dw.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=a.sent(),[3,4];case 3:throw i=a.sent(),window.navigator.onLine?Uw.createPostRequestFailedError(i,e):Uw.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(o.body=a.sent(),o.status=r.status,o)];case 6:throw a.sent(),Uw.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var n=e.headers;return Object.keys(n).forEach(function(e){t.append(e,n[e])}),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t},e}(),Vw=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.sendRequestAsync(e,dw.GET,t)]})})},e.prototype.sendPostRequestAsync=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.sendRequestAsync(e,dw.POST,t)]})})},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise(function(i,o){var a=new XMLHttpRequest;if(a.open(t,e,!0),r.setXhrHeaders(a,n),a.onload=function(){(a.status<200||a.status>=300)&&o(t===dw.POST?Uw.createPostRequestFailedError("Failed with status "+a.status,e):Uw.createGetRequestFailedError("Failed with status "+a.status,e));try{var n=JSON.parse(a.responseText),s={headers:r.getHeaderDict(a),body:n,status:a.status};i(s)}catch(u){o(Uw.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?o(t===dw.POST?Uw.createPostRequestFailedError("Failed with status "+a.status,e):Uw.createGetRequestFailedError("Failed with status "+a.status,e)):o(Uw.createNoNetworkConnectivityError())},t===dw.POST&&n&&n.body)a.send(n.body);else{if(t!==dw.GET)throw Uw.createHttpMethodNotImplementedError(t);a.send()}})},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(t){e.setRequestHeader(t,n[t])})}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};return t.forEach(function(e){var t=e.split(": "),r=t.shift(),i=t.join(": ");r&&i&&(n[r]=i)}),n},e}(),jw=function(){function e(){}return e.clearHash=function(e){e.location.hash=Uk.EMPTY_STRING,"function"==typeof e.history.replaceState&&e.history.replaceState(null,Uk.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new Lw(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Hw:new Vw},e.blockReloadInHiddenIframes=function(){if(Lw.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw Uw.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===gw.Redirect&&r&&!n)throw Uw.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw Uw.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw Uw.createNonBrowserEnvironmentError()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");return t>0||n>0||r>0},e}();function Bw(e,t){return Ce(e,t,1)}function zw(e){return function(t){var n=new qw(e),r=t.lift(n);return n.caught=r}}var qw=function(){function e(t){H(this,e),this.selector=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new Kw(e,this.selector,this.caught))}}]),e}(),Kw=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return j(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void I(U(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new le(this,void 0,void 0);this.add(r);var i=ge(this,t,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(me),Gw=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Ww(e){return new ne(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?we(n):Rg()).subscribe(t)})}function Yw(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Qw(e,t,n))}}var Qw=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];H(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new Xw(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Xw=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return j(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}]),n}(J);function Zw(e){return function(t){return 0===e?Rg():t.lift(new Jw(e))}}var Jw=function(){function e(t){if(H(this,e),this.total=t,this.total<0)throw new Tg}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new $w(e,this.total))}}]),e}(),$w=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return j(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:rC;return function(t){return t.lift(new tC(e))}}var tC=function(){function e(t){H(this,e),this.errorFactory=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new nC(e,this.errorFactory))}}]),e}(),nC=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return j(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(J);function rC(){return new Gw}function iC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new oC(e))}}var oC=function(){function e(t){H(this,e),this.defaultValue=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new aC(e,this.defaultValue))}}]),e}(),aC=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return j(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(J);function sC(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Sg(function(t,n){return e(t,n,r)}):te,Pg(1),n?iC(t):eC(function(){return new Gw}))}}function uC(e){return function(t){return t.lift(new cC(e))}}var cC=function(){function e(t){H(this,e),this.callback=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new lC(e,this.callback))}}]),e}(),lC=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).add(new Q(r)),i}return n}(J),hC=function e(t,n){H(this,e),this.id=t,this.url=n},dC=function(e){x(n,e);var t=D(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return H(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return j(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(hC),fC=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return j(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(hC),pC=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e,r)).reason=i,o}return j(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(hC),vC=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e,r)).error=i,o}return j(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(hC),gC=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return j(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(hC),mC=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return j(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(hC),yC=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a){var s;return H(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return j(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(hC),_C=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return j(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(hC),bC=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return j(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(hC),kC=function(){function e(t){H(this,e),this.route=t}return j(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),wC=function(){function e(t){H(this,e),this.route=t}return j(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),CC=function(){function e(t){H(this,e),this.snapshot=t}return j(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),SC=function(){function e(t){H(this,e),this.snapshot=t}return j(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),EC=function(){function e(t){H(this,e),this.snapshot=t}return j(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),OC=function(){function e(t){H(this,e),this.snapshot=t}return j(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),TC=function(){function e(t,n,r){H(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return j(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),AC="primary",RC=function(){function e(t){H(this,e),this.params=t||{}}return j(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function PC(e){return new RC(e)}var IC="ngNavigationCancelingError";function xC(e){var t=Error("NavigationCancelingError: "+e);return t[IC]=!0,t}function MC(e,t,n){var r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function UC(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function HC(e){return tu(e)?e:$s(e)?we(Promise.resolve(e)):dg(e)}var VC={exact:function e(t,n,r){if(!QC(t.segments,n.segments)||!KC(t.segments,n.segments,r)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children)if(!t.children[i]||!e(t.children[i],n.children[i],r))return!1;return!0},subset:zC},jC={exact:function(e,t){return DC(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return NC(e[n],t[n])})},ignored:function(){return!0}};function BC(e,t,n){return VC[n.paths](e.root,t.root,n.matrixParams)&&jC[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function zC(e,t,n){return qC(e,t,t.segments,n)}function qC(e,t,n,r){if(e.segments.length>n.length){var i=e.segments.slice(0,n.length);return!(!QC(i,n)||t.hasChildren()||!KC(i,n,r))}if(e.segments.length===n.length){if(!QC(e.segments,n)||!KC(e.segments,n,r))return!1;for(var o in t.children)if(!e.children[o]||!zC(e.children[o],t.children[o],r))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(QC(e.segments,a)&&KC(e.segments,a,r)&&e.children[AC])&&qC(e.children[AC],t,s,r)}function KC(e,t,n){return t.every(function(t,r){return jC[n](e[r].parameters,t.parameters)})}var GC=function(){function e(t,n,r){H(this,e),this.root=t,this.queryParams=n,this.fragment=r}return j(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=PC(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return JC.serialize(this)}}]),e}(),WC=function(){function e(t,n){var r=this;H(this,e),this.segments=t,this.children=n,this.parent=null,UC(n,function(e,t){return e.parent=r})}return j(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return $C(this)}}]),e}(),YC=function(){function e(t,n){H(this,e),this.path=t,this.parameters=n}return j(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=PC(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return aS(this)}}]),e}();function QC(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var XC=function e(){H(this,e)},ZC=function(){function e(){H(this,e)}return j(e,[{key:"parse",value:function(e){var t=new hS(e);return new GC(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/".concat(eS(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(nS(t),"=").concat(nS(e))}).join("&"):"".concat(nS(t),"=").concat(nS(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat(function(e){return encodeURI(e)}(e.fragment)):"")}}]),e}(),JC=new ZC;function $C(e){return e.segments.map(function(e){return aS(e)}).join("/")}function eS(e,t){if(!e.hasChildren())return $C(e);if(t){var n=e.children[AC]?eS(e.children[AC],!1):"",r=[];return UC(e.children,function(e,t){t!==AC&&r.push("".concat(t,":").concat(eS(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return UC(e.children,function(e,r){r===AC&&(n=n.concat(t(e,r)))}),UC(e.children,function(e,r){r!==AC&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return n===AC?[eS(e.children[AC],!1)]:["".concat(n,":").concat(eS(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[AC]?"".concat($C(e),"/").concat(i[0]):"".concat($C(e),"/(").concat(i.join("//"),")")}function tS(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nS(e){return tS(e).replace(/%3B/gi,";")}function rS(e){return tS(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function iS(e){return decodeURIComponent(e)}function oS(e){return iS(e.replace(/\+/g,"%20"))}function aS(e){return"".concat(rS(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(rS(t),"=").concat(rS(e[t]))}).join("")}(e.parameters))}var sS=/^[^\/()?;=#]+/;function uS(e){var t=e.match(sS);return t?t[0]:""}var cS=/^[^=?&#]+/,lS=/^[^?&#]+/,hS=function(){function e(t){H(this,e),this.url=t,this.remaining=t}return j(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new WC([],{}):new WC([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[AC]=new WC(e,t)),n}},{key:"parseSegment",value:function(){var e=uS(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new YC(iS(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=uS(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=uS(this.remaining);r&&(n=r,this.capture(n))}e[iS(t)]=iS(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(cS);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(lS);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=oS(t),o=oS(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=uS(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=AC);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[AC]:new WC([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),dS=function(){function e(t){H(this,e),this._root=t}return j(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=fS(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=fS(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=pS(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return pS(e,this._root).map(function(e){return e.value})}}]),e}();function fS(e,t){if(e===t.value)return t;var n,r=O(t.children);try{for(r.s();!(n=r.n()).done;){var i=fS(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function pS(e,t){if(e===t.value)return[t];var n,r=O(t.children);try{for(r.s();!(n=r.n()).done;){var i=pS(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var vS=function(){function e(t,n){H(this,e),this.value=t,this.children=n}return j(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function gS(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var mS=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).snapshot=r,CS(L(i),e),i}return j(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(dS);function yS(e,t){var n=function(e,t){var n=new kS([],{},{},"",{},AC,t,null,e.root,-1,{});return new wS("",new vS(n,[]))}(e,t),r=new Xv([new YC("",{})]),i=new Xv({}),o=new Xv({}),a=new Xv({}),s=new Xv(""),u=new _S(r,i,a,s,o,AC,t,n.root);return u.snapshot=n.root,new mS(new vS(u,[]),n)}var _S=function(){function e(t,n,r,i,o,a,s,u){H(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return j(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ye(function(e){return PC(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(function(e){return PC(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function bS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var kS=function(){function e(t,n,r,i,o,a,s,u,c,l,h){H(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return j(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=PC(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=PC(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),wS=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,r)).url=e,CS(L(i),r),i}return j(n,[{key:"toString",value:function(){return SS(this._root)}}]),n}(dS);function CS(e,t){t.value._routerState=e,t.children.forEach(function(t){return CS(e,t)})}function SS(e){var t=e.children.length>0?" { ".concat(e.children.map(SS).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ES(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,DC(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),DC(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&RS(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(PS);if(i&&i!==FC(r))throw new Error("{outlets:{}} has to be the last command")}return j(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),DS=function e(t,n,r){H(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function NS(e,t,n){if(e||(e=new WC([],{})),0===e.segments.length&&e.hasChildren())return LS(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=n[r];if(PS(s))break;var u="".concat(s),c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!VS(u,c,a))return o;r+=2}else{if(!VS(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},tE):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||MC)(n,e,t);if(!i)return Object.assign({},tE);var o={};UC(i.posParams,function(e,t){o[t]=e.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function rE(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return iE(e,t,n)&&$S(n)!==AC})}(e,n,r)){var o=new WC(t,function(e,t,n,r){var i={};i[AC]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=O(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&$S(s)!==AC){var u=new WC([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[$S(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return i}(e,t,r,new WC(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return iE(e,t,n)})}(e,n,r)){var a=new WC(e.segments,function(e,t,n,r,i,o){var a,s={},u=O(r);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(iE(e,n,c)&&!i[$S(c)]){var l=new WC([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[$S(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new WC(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function iE(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function oE(e,t,n,r){return!!($S(e)===r||r!==AC&&iE(t,n,e))&&("**"===e.path||nE(t,e,n).matched)}function aE(e,t,n){return 0===t.length&&!e.children[n]}var sE=function e(t){H(this,e),this.segmentGroup=t||null},uE=function e(t){H(this,e),this.urlTree=t};function cE(e){return new ne(function(t){return t.error(new sE(e))})}function lE(e){return new ne(function(t){return t.error(new uE(e))})}function hE(e){return new ne(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var dE=function(){function e(t,n,r,i,o){H(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(xl)}return j(e,[{key:"apply",value:function(){var e=this,t=rE(this.urlTree.root,[],[],this.config).segmentGroup,n=new WC(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,AC).pipe(ye(function(t){return e.createUrlTree(fE(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(zw(function(t){if(t instanceof uE)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof sE?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,AC).pipe(ye(function(n){return t.createUrlTree(fE(n),e.queryParams,e.fragment)})).pipe(zw(function(e){throw e instanceof sE?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new WC([],w({},AC,e)):e;return new GC(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ye(function(e){return new WC([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o=2;return function(r){return r.pipe(e?Sg(function(t,n){return e(t,n,r)}):te,Zw(1),n?iC(t):eC(function(){return new Gw}))}}())}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return we(n).pipe(Bw(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(zw(function(e){if(e instanceof sE)return dg(null);throw e}))}),sC(function(e){return!!e}),zw(function(e,n){if(e instanceof Gw||"EmptyError"===e.name){if(aE(t,r,i))return dg(new WC([],{}));throw new sE(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return oE(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):cE(t):cE(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?lE(o):this.lineralizeSegments(n,o).pipe(Ce(function(n){var o=new WC(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=nE(t,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return cE(t);var d=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?lE(d):this.lineralizeSegments(r,d).pipe(Ce(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?dg(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ye(function(e){return n._loadedConfig=e,new WC(r,{})})):dg(new WC(r,{}));var a=nE(t,n,r),s=a.matched,u=a.consumedSegments,c=a.lastChild;if(!s)return cE(t);var l=r.slice(c);return this.getChildConfig(e,n,r).pipe(Ce(function(e){var r=e.module,a=e.routes,s=rE(t,u,l,a),c=s.segmentGroup,h=s.slicedSegments,d=new WC(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(r,a,d).pipe(ye(function(e){return new WC(u,e)}));if(0===a.length&&0===h.length)return dg(new WC(u,{}));var f=$S(n)===i;return o.expandSegment(r,d,a,h,f?AC:i,!0).pipe(ye(function(e){return new WC(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?dg(new zS(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?dg(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Ce(function(n){return n?r.configLoader.load(e.injector,t).pipe(ye(function(e){return t._loadedConfig=e,e})):function(e){return new ne(function(t){return t.error(xC("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):dg(new zS([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;return i&&0!==i.length?dg(i.map(function(r){var i,o=e.get(r);if(function(e){return e&&qS(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!qS(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return HC(i)})).pipe(WS(),Mg(function(e){if(KS(e)){var t=xC('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ye(function(e){return!0===e})):dg(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return dg(n);if(r.numberOfChildren>1||!r.children[AC])return hE(e.redirectTo);r=r.children[AC]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new GC(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return UC(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return UC(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new WC(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=O(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function fE(e){for(var t={},n=0,r=Object.keys(e.children);n0||o.hasChildren())&&(t[i]=o)}return function(e){if(1===e.numberOfChildren&&e.children[AC]){var t=e.children[AC];return new WC(e.segments.concat(t.segments),t.children)}return e}(new WC(e.segments,t))}var pE=function e(t){H(this,e),this.path=t,this.route=this.path[this.path.length-1]},vE=function e(t,n){H(this,e),this.component=t,this.route=n};function gE(e,t,n){var r=e._root;return yE(r,t?t._root:null,n,[r.value])}function mE(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function yE(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=gS(t);return e.children.forEach(function(e){(function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!QC(e.url,t.url);case"pathParamsOrQueryParamsChange":return!QC(e.url,t.url)||!DC(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OS(e,t)||!DC(e.queryParams,t.queryParams);case"paramsChange":default:return!OS(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new pE(r)):(o.data=a.data,o._resolvedData=a._resolvedData),yE(e,t,o.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new vE(s.outlet.component,a))}else a&&_E(t,s,i),i.canActivateChecks.push(new pE(r)),yE(e,null,o.component?s?s.children:null:n,r,i)})(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),UC(o,function(e,t){return _E(e,n.getContext(t),i)}),i}function _E(e,t,n){var r=gS(e),i=e.value;UC(r,function(e,r){_E(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new vE(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var bE=function e(){H(this,e)};function kE(e){return new ne(function(t){return t.error(e)})}var wE=function(){function e(t,n,r,i,o,a){H(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return j(e,[{key:"recognize",value:function(){var e=rE(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,AC);if(null===t)return null;var n=new kS([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},AC,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new vS(n,t),i=new wS(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=bS(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,i=Object.keys(t.children);r0?FC(n).parameters:{};i=new kS(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,OE(e),$S(e),e.component,e,SE(t),EE(t)+n.length,TE(e))}else{var u=nE(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),i=new kS(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,OE(e),$S(e),e.component,e,SE(t),EE(t)+o.length,TE(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=rE(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new vS(i,f)]}if(0===c.length&&0===d.length)return[new vS(i,[])];var p=$S(e)===r,v=this.processSegment(c,h,d,p?AC:r);return null===v?null:[new vS(i,v)]}}]),e}();function CE(e){var t,n=[],r=new Set,i=O(e);try{var o=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),"continue";var o=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,E(i.children)),r.add(o)):n.push(i)};for(i.s();!(t=i.n()).done;)o()}catch(l){i.e(l)}finally{i.f()}var a,s=O(r);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=CE(u.children);n.push(new vS(u.value,c))}}catch(l){s.e(l)}finally{s.f()}return n.filter(function(e){return!r.has(e)})}function SE(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function EE(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function OE(e){return e.data||{}}function TE(e){return e.resolve||{}}function AE(e){return yg(function(t){var n=e(t);return n?we(n).pipe(ye(function(){return t})):dg(t)})}var RE=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return n}(function(){function e(){H(this,e)}return j(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),PE=new Ur("ROUTES"),IE=function(){function e(t,n,r,i){H(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return j(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe(ye(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new zS(LC(i.injector.get(PE,void 0,at.Self|at.Optional)).map(JS),i)}),zw(function(e){throw t._loader$=void 0,e}));return t._loader$=new xe(r,function(){return new se}).pipe(Re()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?we(this.loader.load(e)):HC(e()).pipe(Ce(function(e){return e instanceof Ml?dg(e):we(t.compiler.compileModuleAsync(e))}))}}]),e}(),xE=function e(){H(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new ME,this.attachRef=null},ME=function(){function e(){H(this,e),this.contexts=new Map}return j(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new xE,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),DE=function(){function e(){H(this,e)}return j(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function NE(e){throw e}function LE(e,t,n){return t.parse("/")}function FE(e,t){return dg(null)}var UE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},VE=function(){var e=function(){function e(t,n,r,i,o,a,s,u){var c=this;H(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new se,this.errorHandler=NE,this.malformedUriErrorHandler=LE,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FE,afterPreactivation:FE},this.urlHandlingStrategy=new DE,this.routeReuseStrategy=new RE,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(xl),this.console=o.get(xh);var l=o.get(Kh);this.isNgZoneEnabled=l instanceof Kh&&Kh.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new GC(new WC([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new IE(a,s,function(e){return c.triggerEvent(new kC(e))},function(e){return c.triggerEvent(new wC(e))}),this.routerState=yS(this.currentUrlTree,this.rootComponentType),this.transitions=new Xv({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()}return j(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Sg(function(e){return 0!==e.id}),ye(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),yg(function(e){var r=!1,i=!1;return dg(e).pipe(Mg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),yg(function(e){var r=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||r)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return dg(e).pipe(yg(function(e){var r=t.transitions.getValue();return n.next(new dC(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ag:Promise.resolve(e)}),function(e,t,n,r){return yg(function(i){return function(e,t,n,r,i){return new dE(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(ye(function(e){return Object.assign(Object.assign({},i),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),Mg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,o,a){return Ce(function(r){return function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new wE(e,t,n,r,o,a).recognize();return null===s?kE(new bE):dg(s)}catch(i){return kE(i)}}(e,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,t.serializeUrl(s)),o,a).pipe(ye(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var s})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Mg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var r=new gC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(r&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var o=e.id,a=e.extractedUrl,s=e.source,u=e.restoredState,c=e.extras,l=new dC(o,t.serializeUrl(a),s,u);n.next(l);var h=yS(a,t.rootComponentType).snapshot;return dg(Object.assign(Object.assign({},e),{targetSnapshot:h,urlAfterRedirects:a,extras:Object.assign(Object.assign({},c),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ag}),AE(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Mg(function(e){var n=new mC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ye(function(e){return Object.assign(Object.assign({},e),{guards:gE(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Ce(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?dg(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return we(e).pipe(Ce(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?dg(o.map(function(o){var a,s=mE(o,t,i);if(function(e){return e&&qS(e.canDeactivate)}(s))a=HC(s.canDeactivate(e,t,n,r));else{if(!qS(s))throw new Error("Invalid CanDeactivate guard");a=HC(s(e,t,n,r))}return a.pipe(sC())})).pipe(WS()):dg(!0)}(e.component,e.route,n,t,r)}),sC(function(e){return!0!==e},!0))}(s,r,i,e).pipe(Ce(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return we(t).pipe(Bw(function(t){return fg(function(e,t){return null!==e&&t&&t(new CC(e)),dg(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new EC(e)),dg(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Ww(function(){return dg(t.guards.map(function(i){var o,a=mE(i,t.node,n);if(function(e){return e&&qS(e.canActivateChild)}(a))o=HC(a.canActivateChild(r,e));else{if(!qS(a))throw new Error("Invalid CanActivateChild guard");o=HC(a(r,e))}return o.pipe(sC())})).pipe(WS())})});return dg(i).pipe(WS())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?dg(r.map(function(r){return Ww(function(){var i,o=mE(r,t,n);if(function(e){return e&&qS(e.canActivate)}(o))i=HC(o.canActivate(t,e));else{if(!qS(o))throw new Error("Invalid CanActivate guard");i=HC(o(t,e))}return i.pipe(sC())})})).pipe(WS()):dg(!0)}(e,t.route,n))}),sC(function(e){return!0!==e},!0))}(r,a,e,t):dg(n)}),ye(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Mg(function(e){if(KS(e.guardsResult)){var n=xC('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new yC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),Sg(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),AE(function(e){if(e.guards.canActivateChecks.length)return dg(e).pipe(Mg(function(e){var n=new _C(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),yg(function(e){var n=!1;return dg(e).pipe(function(e,t){return Ce(function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;if(!i.length)return dg(n);var o=0;return we(i).pipe(Bw(function(n){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return dg({});var o={};return we(i).pipe(Ce(function(i){return function(e,t,n,r){var i=mE(e,t,r);return HC(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Mg(function(e){o[i]=e}))}),Zw(1),Ce(function(){return Object.keys(o).length===i.length?dg(o):Ag}))}(e._resolve,e,t,r).pipe(ye(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),bS(e,n).resolve),null}))}(n.route,r,e,t)}),Mg(function(){return o++}),Zw(1),Ce(function(e){return o===i.length?dg(n):Ag}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),Mg({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),Mg(function(e){var n=new bC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),AE(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),ye(function(e){var n=function(e,t,n){var r=TS(e,t._root,n?n._root:void 0);return new mS(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Mg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return ye(function(r){return new jS(t,r.targetRouterState,r.currentRouterState,n).activate(e),r})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),Mg({next:function(){r=!0},complete:function(){r=!0}}),uC(function(){if(!r&&!i){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),zw(function(r){if(i=!0,function(e){return e&&e[IC]}(r)){var o=KS(r.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new pC(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new vC(e.id,t.serializeUrl(e.extractedUrl),r);n.next(s);try{e.resolve(t.errorHandler(r))}catch(a){e.reject(a)}}return Ag}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){QS(e),this.config=e.map(JS),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:i,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return IS(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new MS(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return UC(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(E(e),[{outlets:o}])}if(r.segmentPath)return[].concat(E(e),[r.segmentPath])}return"string"!=typeof r?[].concat(E(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(E(e),[r])},[]);return new MS(n,t,r)}(n);if(o.toRoot())return IS(t.root,new WC([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new DS(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new DS(r,r===t.root,0)}var i=RS(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new DS(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?LS(a.segmentGroup,a.index,o.commands):NS(a.segmentGroup,a.index,o.commands);return IS(a.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,c,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=KS(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var i=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===i?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new pC(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(qr),ui(XC),ui(ME),ui(Ld),ui(Ss),ui(hd),ui(Bh),ui(void 0))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),jE=function(){var e=function(){function e(t,n,r){var i=this;H(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new se,this.subscription=t.events.subscribe(function(e){e instanceof fC&&i.updateTargetUrlAndHref()})}return j(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,r,i){if(0!==e||t||n||r||i||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:BE(this.skipLocationChange),replaceUrl:BE(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:BE(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(VE),zs(_S),zs(Id))},e.\u0275dir=Mt({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&nu("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Nu("href",t.href,no),Hs("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Gt]}),e}();function BE(e){return""===e||!!e}var zE=function(){var e=function(){function e(t,n,r,i,o){H(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new nh,this.deactivateEvents=new nh,this.name=i||AC,t.onChildOutletCreated(this.name,this)}return j(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new qE(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(ME),zs(Nl),zs(Yc),xr("name"),zs(Sl))},e.\u0275dir=Mt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),qE=function(){function e(t,n,r){H(this,e),this.route=t,this.childContexts=n,this.parent=r}return j(e,[{key:"get",value:function(e,t){return e===_S?this.route:e===ME?this.childContexts:this.parent.get(e,t)}}]),e}(),KE=function e(){H(this,e)},GE=function(){function e(){H(this,e)}return j(e,[{key:"preload",value:function(e,t){return dg(null)}}]),e}(),WE=function(){var e=function(){function e(t,n,r,i,o){H(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new IE(n,r,function(e){return t.triggerEvent(new kC(e))},function(e){return t.triggerEvent(new wC(e))})}return j(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Sg(function(e){return e instanceof fC}),Bw(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(xl);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=O(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children))}}catch(s){i.e(s)}finally{i.f()}return we(r).pipe(Oe(),ye(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?dg(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Ce(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(VE),ui(hd),ui(Bh),ui(Ss),ui(KE))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),YE=function(){var e=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};H(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return j(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof dC?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof fC&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof TC&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new TC(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(VE),ui(Kf),ui(void 0))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),QE=new Ur("ROUTER_CONFIGURATION"),XE=new Ur("ROUTER_FORROOT_GUARD"),ZE=[Ld,{provide:XC,useClass:ZC},{provide:VE,useFactory:function(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new VE(null,e,t,n,r,i,o,LC(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[XC,ME,Ld,Ss,hd,Bh,PE,QE,[function(){return function e(){H(this,e)}}(),new mi],[function(){return function e(){H(this,e)}}(),new mi]]},ME,{provide:_S,useFactory:function(e){return e.routerState.root},deps:[VE]},{provide:hd,useClass:pd},WE,GE,function(){function e(){H(this,e)}return j(e,[{key:"preload",value:function(e,t){return t().pipe(zw(function(){return dg(null)}))}}]),e}(),{provide:QE,useValue:{enableTracing:!1}}];function JE(){return new id("Router",VE)}var $E=function(){var e=function(){function e(t,n){H(this,e)}return j(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[ZE,rO(t),{provide:XE,useFactory:nO,deps:[[VE,new mi,new yi]]},{provide:QE,useValue:n||{}},{provide:Id,useFactory:tO,deps:[wd,[new gi(Md),new mi],QE]},{provide:YE,useFactory:eO,deps:[VE,Kf,QE]},{provide:KE,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:GE},{provide:id,multi:!0,useFactory:JE},[iO,{provide:Sh,multi:!0,useFactory:oO,deps:[iO]},{provide:sO,useFactory:aO,deps:[iO]},{provide:Ih,multi:!0,useExisting:sO}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[rO(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(XE,8),ui(VE,8))},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}();function eO(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new YE(e,t,n)}function tO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Nd(e,t):new Dd(e,t)}function nO(e){return"guarded"}function rO(e){return[{provide:Hr,multi:!0,useValue:e},{provide:PE,multi:!0,useValue:e}]}var iO=function(){var e=function(){function e(t){H(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new se}return j(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Sd,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(VE),i=e.injector.get(QE);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?dg(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(QE),n=this.injector.get(WE),r=this.injector.get(YE),i=this.injector.get(VE),o=this.injector.get(cd);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Ss))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}();function oO(e){return e.appInitializer.bind(e)}function aO(e){return e.bootstrapListener.bind(e)}var sO=new Ur("Router Initializer"),uO=new Ur("MSAL_INSTANCE"),cO=new Ur("MSAL_GUARD_CONFIG"),lO=new Ur("MSAL_INTERCEPTOR_CONFIG"),hO="@azure/msal-angular",dO="2.0.4",fO=function(){var e=function(){function e(t,n){H(this,e),this.instance=t,this.location=n;var r=this.location.path(!0).split("#").pop();r&&(this.redirectHash="#".concat(r)),this.instance.initializeWrapperLibrary(bw.Angular,dO)}return j(e,[{key:"acquireTokenPopup",value:function(e){return we(this.instance.acquireTokenPopup(e))}},{key:"acquireTokenRedirect",value:function(e){return we(this.instance.acquireTokenRedirect(e))}},{key:"acquireTokenSilent",value:function(e){return we(this.instance.acquireTokenSilent(e))}},{key:"handleRedirectObservable",value:function(e){return we(this.instance.handleRedirectPromise(e||this.redirectHash))}},{key:"loginPopup",value:function(e){return we(this.instance.loginPopup(e))}},{key:"loginRedirect",value:function(e){return we(this.instance.loginRedirect(e))}},{key:"logout",value:function(e){return we(this.instance.logout(e))}},{key:"logoutRedirect",value:function(e){return we(this.instance.logoutRedirect(e))}},{key:"logoutPopup",value:function(e){return we(this.instance.logoutPopup(e))}},{key:"ssoSilent",value:function(e){return we(this.instance.ssoSilent(e))}},{key:"getLogger",value:function(){return this.logger||(this.logger=this.instance.getLogger().clone(hO,dO)),this.logger}},{key:"setLogger",value:function(e){this.logger=e.clone(hO,dO),this.instance.setLogger(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(uO),ui(Ld))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),pO=function(){var e=function e(t,n){var r=this;H(this,e),this.msalInstance=t,this.authService=n,this._msalSubject=new se,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new Xv(mw.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(function(e){r._msalSubject.next(e);var t=ww.getInteractionStatusFromEvent(e,r._inProgress.value);null!==t&&(r.authService.getLogger().verbose("BroadcastService - ".concat(e.eventType," results in setting inProgress from ").concat(r._inProgress.value," to ").concat(t)),r._inProgress.next(t))})};return e.\u0275prov=Xe({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ui(uO),ui(fO))}}),e}(),vO=function(){var e=function(){function e(t,n,r,i,o){H(this,e),this.msalGuardConfig=t,this.msalBroadcastService=n,this.authService=r,this.location=i,this.router=o,this.msalBroadcastService.inProgress$.subscribe()}return j(e,[{key:"parseUrl",value:function(e){return this.router.parseUrl(e)}},{key:"getDestinationUrl",value:function(e){this.authService.getLogger().verbose("Guard - getting destination url");var t=document.getElementsByTagName("base"),n=this.location.normalize(t.length?t[0].href:window.location.origin),r=this.location.prepareExternalUrl(e);return r.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),"".concat(n,"/").concat(r)):"".concat(n).concat(e)}},{key:"loginInteractively",value:function(e){var t=this,n="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===gw.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(n).pipe(ye(function(e){return t.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),t.authService.instance.setActiveAccount(e.account),!0}));this.authService.getLogger().verbose("Guard - logging in by redirect");var r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},n)).pipe(ye(function(){return!1}))}},{key:"activateHelper",value:function(e){var t=this;if(this.msalGuardConfig.interactionType!==gw.Popup&&this.msalGuardConfig.interactionType!==gw.Redirect)throw new Iw("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"),"undefined"==typeof window)return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),dg(!0);if(Lw.hashContainsKnownProperties(window.location.hash)&&jw.isInIframe())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."),dg(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));var n=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(Bw(function(){return t.authService.instance.getAllAccounts().length?(t.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e&&e.url.indexOf("code=")>-1?(t.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),n.indexOf("#")>-1?dg(t.parseUrl(t.location.path())):dg(t.parseUrl(""))):dg(!0)):e?(t.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),t.loginInteractively(e)):(t.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),dg(!1))}),zw(function(n){return t.authService.getLogger().error("Guard - error while logging in, unable to activate"),t.authService.getLogger().errorPii("Guard - error: ".concat(n.message)),t.loginFailedRoute&&parseInt(ol.major,10)>9&&e?(t.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),dg(t.loginFailedRoute)):dg(!1)}))}},{key:"canActivate",value:function(e,t){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(t)}},{key:"canActivateChild",value:function(e,t){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(t)}},{key:"canLoad",value:function(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(cO),ui(pO),ui(fO),ui(Ld),ui(VE))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),gO=function(){var e=function(){function e(t,n,r,i){H(this,e),this.msalInterceptorConfig=t,this.authService=n,this.location=r,this._document=i}return j(e,[{key:"intercept",value:function(e,t){var n=this;if(this.msalInterceptorConfig.interactionType!==gw.Popup&&this.msalInterceptorConfig.interactionType!==gw.Redirect)throw new Iw("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");var r,i=this.getScopesForEndpoint(e.url,e.method);if(!i||0===i.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),t.handle(e);this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),r=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),r=this.authService.instance.getAllAccounts()[0]);var o="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,e,{account:r}):Object.assign(Object.assign({},this.msalInterceptorConfig.authRequest),{account:r});return this.authService.getLogger().info("Interceptor - ".concat(i.length," scopes found for endpoint")),this.authService.getLogger().infoPii("Interceptor - [".concat(i,"] scopes found for ").concat(e.url)),this.authService.acquireTokenSilent(Object.assign(Object.assign({},o),{scopes:i,account:r})).pipe(zw(function(){return n.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),n.acquireTokenInteractively(o,i)}),yg(function(e){return e.accessToken?dg(e):(n.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),n.acquireTokenInteractively(o,i))}),yg(function(r){n.authService.getLogger().verbose("Interceptor - setting authorization headers");var i=e.headers.set("Authorization","Bearer ".concat(r.accessToken)),o=e.clone({headers:i});return t.handle(o)}))}},{key:"acquireTokenInteractively",value:function(e,t){if(this.msalInterceptorConfig.interactionType===gw.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup(Object.assign(Object.assign({},e),{scopes:t}));this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");var n=window.location.href;return this.authService.acquireTokenRedirect(Object.assign(Object.assign({},e),{scopes:t,redirectStartPage:n})),Ag}},{key:"getScopesForEndpoint",value:function(e,t){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");var n=this.location.normalize(e),r=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),i=this.matchResourcesToEndpoint(r,n);return i.absoluteResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,i.absoluteResources,t):i.relativeResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,i.relativeResources,t):null}},{key:"matchResourcesToEndpoint",value:function(e,t){var n=this,r={absoluteResources:[],relativeResources:[]};return e.forEach(function(e){var i=n.location.normalize(e);Nw.matchPattern(i,t)&&r.absoluteResources.push(e);var o=n.getAbsoluteUrl(e),a=new Lw(o).getUrlComponents(),s=n.getAbsoluteUrl(t),u=new Lw(s).getUrlComponents(),c=a.QueryString?"".concat(a.AbsolutePath,"?").concat(a.QueryString):n.location.normalize(a.AbsolutePath);a.HostNameAndPort===u.HostNameAndPort&&Nw.matchPattern(c,s)&&""!==c&&"/*"!==c&&r.relativeResources.push(e)}),r}},{key:"getAbsoluteUrl",value:function(e){var t=this._document.createElement("a");return t.href=e,t.href}},{key:"matchScopesToEndpoint",value:function(e,t,n){var r=[];return t.forEach(function(t){var i=[],o=e.get(t);null!==o?(o.forEach(function(e){if("string"==typeof e)i.push(e);else{var t=n.toLowerCase();e.httpMethod.toLowerCase()===t&&(null===e.scopes?r.push(null):e.scopes.forEach(function(e){i.push(e)}))}}),i.length>0&&r.push(i)):r.push(null)}),r.length>0?(r.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),r[0]):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(lO),ui(fO),ui(Ld),ui(kd))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),mO=function(){var e=function(){function e(){H(this,e)}return j(e,null,[{key:"forRoot",value:function(t,n,r){return{ngModule:e,providers:[{provide:uO,useValue:t},{provide:cO,useValue:n},{provide:lO,useValue:r},fO]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[vO,pO],imports:[[zf]]}),e}(),yO=function e(){H(this,e)},_O=function e(){H(this,e)},bO=function(){function e(t){var n=this;H(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return j(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,E(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),kO=function(){function e(){H(this,e)}return j(e,[{key:"encodeKey",value:function(e){return wO(e)}},{key:"encodeValue",value:function(e){return wO(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function wO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function CO(e){return"".concat(e)}var SO=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(H(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new kO,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var r=e.indexOf("="),i=S(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}return j(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(CO(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(CO(t.value));-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),EO=function(){function e(){H(this,e),this.map=new Map}return j(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function OO(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function TO(e){return"undefined"!=typeof Blob&&e instanceof Blob}function AO(e){return"undefined"!=typeof FormData&&e instanceof FormData}var RO=function(){function e(t,n,r,i){var o;if(H(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,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 bO),this.context||(this.context=new EO),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(r,i,a,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),PO=((PO=PO||{})[PO.Sent=0]="Sent",PO[PO.UploadProgress=1]="UploadProgress",PO[PO.ResponseHeader=2]="ResponseHeader",PO[PO.DownloadProgress=3]="DownloadProgress",PO[PO.Response=4]="Response",PO[PO.User=5]="User",PO),IO=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";H(this,e),this.headers=t.headers||new bO,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},xO=function(e){x(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return H(this,n),(e=t.call(this,r)).type=PO.ResponseHeader,e}return j(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(IO),MO=function(e){x(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return H(this,n),(e=t.call(this,r)).type=PO.Response,e.body=void 0!==r.body?r.body:null,e}return j(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(IO),DO=function(e){x(n,e);var t=D(n);function n(e){var r;return H(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(IO);function NO(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var LO=function(){var e=function(){function e(t){H(this,e),this.handler=t}return j(e,[{key:"request",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof RO?n=e:(r=a.headers instanceof bO?a.headers:new bO(a.headers),a.params&&(i=a.params instanceof SO?a.params:new SO({fromObject:a.params})),n=new RO(e,t,void 0!==a.body?a.body:null,{headers:r,context:a.context,params:i,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=dg(n).pipe(Bw(function(e){return o.handler.handle(e)}));if(e instanceof RO||"events"===a.observe)return s;var u=s.pipe(Sg(function(e){return e instanceof MO}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(ye(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(ye(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new SO).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,NO(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,NO(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,NO(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(yO))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),FO=function(){function e(t,n){H(this,e),this.next=t,this.interceptor=n}return j(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),UO=new Ur("HTTP_INTERCEPTORS"),HO=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),VO=/^\)\]\}',?\n/,jO=function(){var e=function(){function e(t){H(this,e),this.xhrFactory=t}return j(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ne(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new bO(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new xO({headers:i,status:t,statusText:n,url:o})},c=function(){var t=u(),i=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(VO,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new MO({body:c,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new DO({error:c,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,i=new DO({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},h=!1,d=function(t){h||(n.next(u()),h=!0);var i={type:PO.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&!!r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(e){var t={type:PO.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:PO.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Qf))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),BO=new Ur("XSRF_COOKIE_NAME"),zO=new Ur("XSRF_HEADER_NAME"),qO=function e(){H(this,e)},KO=function(){var e=function(){function e(t,n,r){H(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return j(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Sf(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kd),ui(Ph),ui(BO))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),GO=function(){var e=function(){function e(t,n){H(this,e),this.tokenService=t,this.headerName=n}return j(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(qO),ui(zO))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),WO=function(){var e=function(){function e(t,n){H(this,e),this.backend=t,this.injector=n,this.chain=null}return j(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(UO,[]);this.chain=t.reduceRight(function(e,t){return new FO(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(_O),ui(Ss))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),YO=function(){var e=function(){function e(){H(this,e)}return j(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:GO,useClass:HO}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:BO,useValue:t.cookieName}:[],t.headerName?{provide:zO,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[GO,{provide:UO,useExisting:GO,multi:!0},{provide:qO,useClass:KO},{provide:BO,useValue:"XSRF-TOKEN"},{provide:zO,useValue:"X-XSRF-TOKEN"}]}),e}(),QO=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[LO,{provide:yO,useClass:WO},jO,{provide:_O,useExisting:jO}],imports:[[YO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),XO=function e(){H(this,e)},ZO="*";function JO(e,t){return{type:7,name:e,definitions:t,options:{}}}function $O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function eT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function tT(e){return{type:6,styles:e,offset:null}}function nT(e,t,n){return{type:0,name:e,styles:t,options:n}}function rT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function iT(e){Promise.resolve(null).then(e)}var oT=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;H(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;iT(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),aT=function(){function e(t){var n=this;H(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?iT(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==a&&n._onFinish()}),e.onDestroy(function(){++i==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function sT(){return"undefined"!=typeof window&&void 0!==window.document}function uT(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function cT(e){switch(e.length){case 0:return new oT;case 1:return e[0];default:return new aT(e)}}function lT(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(r.forEach(function(e){var n=e.offset,r=n==u,l=r&&c||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case"!":s=i[n];break;case ZO:s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}l[r]=s}),r||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function hT(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&dT(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&dT(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&dT(n,"destroy",e))})}}function dT(e,t,n){var r=n.totalTime,i=fT(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function fT(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function pT(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function vT(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var gT=function(e,t){return!1},mT=function(e,t){return!1},yT=function(e,t,n){return[]},_T=uT();(_T||"undefined"!=typeof Element)&&(gT=sT()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},mT=function(){if(_T||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:mT}(),yT=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function HT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else UT(e,n);return n}function VT(e,t,n){return n?t+":"+n+";":""}function jT(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(oA(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oA(s,o))}(e,n,t)}):n.push(e),n}var rA=new Set(["true","1"]),iA=new Set(["false","0"]);function oA(e,t){var n=rA.has(e)||iA.has(e),r=rA.has(t)||iA.has(t);return function(i,o){var a="*"==e||e==i,s="*"==t||t==o;return!a&&n&&"boolean"==typeof i&&(a=i?rA.has(e):iA.has(e)),!s&&r&&"boolean"==typeof o&&(s=o?rA.has(t):iA.has(t)),a&&s}}var aA=new RegExp("s*:selfs*,?","g");function sA(e,t,n){return new uA(e).build(t,n)}var uA=function(){function e(t){H(this,e),this._driver=t}return j(e,[{key:"build",value:function(e,t){var n=new cA(t);return this._resetContextStyleTimingState(n),eA(this,qT(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var c=n.visitTransition(e,t);r+=c.queryCount,i+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(e){if(lA(e)){var t=e;Object.keys(t).forEach(function(e){GT(t[e]).forEach(function(e){o.hasOwnProperty(e)||i.add(e)})})}}),i.size){var a=YT(i.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=eA(this,qT(e.animation),t);return{type:1,matchers:nA(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:hA(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return eA(n,e,t)}),options:hA(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=eA(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:hA(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return dA(FT(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=dA(0,0,"");return i.dynamic=!0,i.strValue=r,i}return dA((n=n||FT(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var r,i=e.styles?e.styles:tT({});if(5==i.type)r=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};n.easing&&(s.easing=n.easing),o=tT(s)}t.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,r=u}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==ZO?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(lA(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a=t.collectedStyles[t.currentQuerySelector],s=a[r],u=!0;s&&(o!=i&&o>=s.startTime&&i<=s.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),u=!1),o=s.startTime),u&&(a[r]={startTime:o,endTime:i}),t.options&&function(e,t,n){var r=t.params||{},i=GT(e);i.length&&i.forEach(function(e){r.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[r],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,c=e.steps.map(function(e){var r=n._makeStyleAst(e,t),c=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(lA(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(lA(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),s=s||l<0||l>1,a=a||l0&&i0?i==d?1:h*i:o[i],s=a*v;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:eA(this,qT(e.animation),t),options:hA(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:hA(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:hA(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=S(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(aA,"")),[e=e.replace(/@\*/g,xT).replace(/@\w+/g,function(e){return xT+"-"+e.substr(1)}).replace(/:animating/g,DT),t]}(e.selector),2),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,pT(t.collectedStyles,t.currentQuerySelector,{});var s=eA(this,qT(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:hA(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:FT(e.timings,t.errors,!0);return{type:12,animation:eA(this,qT(e.animation),t),timings:n,options:null}}}]),e}(),cA=function e(t){H(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function lA(e){return!Array.isArray(e)&&"object"==typeof e}function hA(e){return e?(e=UT(e)).params&&(e.params=function(e){return e?UT(e):null}(e.params)):e={},e}function dA(e,t,n){return{duration:e,delay:t,easing:n}}function fA(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var pA=function(){function e(){H(this,e),this._map=new Map}return j(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,E(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),vA=new RegExp(":enter","g"),gA=new RegExp(":leave","g");function mA(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new yA).buildKeyframes(e,t,n,r,i,o,a,s,u,c)}var yA=function(){function e(){H(this,e)}return j(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pA;var l=new bA(e,t,u,r,i,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),eA(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[fA(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?NT(n.duration):null,o=null!=n.delay?NT(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),eA(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_A);var a=NT(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return eA(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?NT(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),eA(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return FT(t.params?WT(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?NT(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=_A);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(u=s.currentTimeline),eA(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;eA(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}]),e}(),_A={},bA=function(){function e(t,n,r,i,o,a,s,u){H(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_A,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new kA(this._driver,n,0),s.push(this.currentTimeline)}return j(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=NT(r.duration)),null!=r.delay&&(i.delay=NT(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=WT(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=_A,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new wA(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(vA,"."+this._enterClassName)).replace(gA,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,E(s))}return!i&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),kA=function(){function e(t,n,r,i){H(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return j(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||ZO,t._currentKeyframe[e]=ZO}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=ZO}):HT(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=WT(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:ZO),i._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=HT(o,!0);Object.keys(s).forEach(function(e){var r=s[e];"!"==r?t.add(e):r==ZO&&n.add(e)}),r||(s.offset=a/e.duration),i.push(s)});var o=t.size?YT(t.values()):[],a=n.size?YT(n.values()):[];if(r){var s=i[0],u=UT(s);s.offset=0,u.offset=1,i=[s,u]}return fA(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),wA=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return H(this,n),(u=t.call(this,e,r,s.delay)).keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return j(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=HT(e[0],!1);u.offset=0,o.push(u);var c=HT(e[0],!1);c.offset=CA(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=HT(e[h],!1);d.offset=CA((n+d.offset*r)/a),o.push(d)}r=a,n=0,i="",e=o}return fA(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(kA);function CA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var SA=function e(){H(this,e)},EA=function(e){x(n,e);var t=D(n);function n(){return H(this,n),t.apply(this,arguments)}return j(n,[{key:"normalizePropertyName",value:function(e,t){return XT(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(OA[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(SA),OA=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function TA(e,t,n,r,i,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var AA={},RA=function(){function e(t,n,r){H(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return j(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||AA,d=this.buildStyles(n,a&&a.params||AA,l),f=s&&s.params||AA,p=this.buildStyles(r,f,l),v=new Set,g=new Map,m=new Map,y="void"===r,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:mA(e,t,this.ast.animation,i,o,d,p,_,u,l),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),l.length)return TA(t,this._triggerName,n,r,y,d,p,[],[],g,m,k,l);b.forEach(function(e){var n=e.element,r=pT(g,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=pT(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&v.add(n)});var w=YT(v.values());return TA(t,this._triggerName,n,r,y,d,p,b,w,g,m,k)}}]),e}(),PA=function(){function e(t,n,r){H(this,e),this.styles=t,this.defaultParams=n,this.normalizer=r}return j(e,[{key:"buildStyles",value:function(e,t){var n=this,r={},i=UT(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=WT(a,i,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),r[s]=a})}}),r}}]),e}(),IA=function(){function e(t,n,r){var i=this;H(this,e),this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new PA(e.style,e.options&&e.options.params||{},r)}),xA(this.states,"true","1"),xA(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new RA(t,e,i.states))}),this.fallbackTransition=function(e,t,n){return new RA(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return j(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function xA(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var MA=new pA,DA=function(){function e(t,n,r){H(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return j(e,[{key:"register",value:function(e,t){var n=[],r=sA(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=lT(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=mA(this._driver,t,a,RT,PT,{},{},i,MA,o)).forEach(function(e){var t=pT(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,ZO)})});var u=cT(n.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=fT(t,"","","");return hT(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),NA="ng-animate-queued",LA="ng-animate-disabled",FA=".ng-animate-disabled",UA=[],HA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VA={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jA="__ng_removed",BA=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";H(this,e),this.namespaceId=n;var r=t&&t.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(r?t.value:t),r){var i=UT(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return j(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),zA="void",qA=new BA(zA),KA=function(){function e(t,n,r){H(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$A(n,this._hostClassName)}return j(e,[{key:"listen",value:function(e,t,n,r){var i=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(n))throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=pT(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};o.push(a);var s=pT(this._engine.statesByElement,e,{});return s.hasOwnProperty(t)||($A(e,IT),$A(e,IT+"-"+t),s[t]=qA),function(){i._engine.afterFlush(function(){var e=o.indexOf(a);e>=0&&o.splice(e,1),i._triggers[t]||delete s[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new WA(this.id,t,e),s=this._engine.statesByElement.get(e);s||($A(e,IT),$A(e,IT+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new BA(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=qA),c.value===zA||u.value!==c.value){var l=pT(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,c.value,e,c.params),d=!1;if(!h){if(!i)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||($A(e,NA),a.onStart(function(){eR(e,NA)})),a.onDone(function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),l.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$A(e,LA)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),eR(e,LA))}},{key:"removeNode",value:function(e,t,n,r){if(YA(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t[jA]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return YA(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,xT,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,DT,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return cT(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[jA];if(n&&n.setForRemoval){if(e[jA]=HA,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,FA)&&this.markElementAsDisabled(e,!1),this.driver.query(e,FA,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(S.push(t),n.collectedEnterElements.length){var l=o[jA];if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,o),f=w.get(o),v=p.get(o),g=n._buildInstruction(e,r,v,f,d);if(g.errors&&g.errors.length)O.push(g);else{if(d)return t.onStart(function(){return zT(o,g.fromStyles)}),t.onDestroy(function(){return BT(o,g.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return zT(o,g.fromStyles)}),t.onDestroy(function(){return BT(o,g.toStyles)}),void i.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,g.timelines),a.push({instruction:g,player:t,element:o}),g.queriedElements.forEach(function(e){return pT(s,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(O.length){var A=[];O.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),S.forEach(function(e){return e.destroy()}),this.reportError(A)}var R=new Map,P=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,R))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){pT(R,t,[]).push(e),e.destroy()})});var I=g.filter(function(e){return rR(e,u,c)}),x=new Map;XA(x,this.driver,y,c,ZO).forEach(function(e){rR(e,u,c)&&I.push(e)});var M=new Map;f.forEach(function(e,t){XA(M,n.driver,new Set(e),u,"!")}),I.forEach(function(e){var t=x.get(e),n=M.get(e);x.set(e,Object.assign(Object.assign({},t),n))});var D=[],N=[],L={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(r.has(t)){if(l.has(t))return a.onDestroy(function(){return BT(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var u=L;if(P.size>1){for(var c=t,h=[];c=c.parentNode;){var d=P.get(c);if(d){u=d;break}h.push(c)}h.forEach(function(e){return P.set(e,u)})}var f=n._buildAnimation(a.namespaceId,s,R,o,M,x);if(a.setRealPlayer(f),u===L)D.push(a);else{var p=n.playersByElement.get(u);p&&p.length&&(a.parentPlayer=cT(p)),i.push(a)}}else zT(t,s.fromStyles),a.onDestroy(function(){return BT(t,s.toStyles)}),N.push(a),l.has(t)&&i.push(a)}),N.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=cT(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var F=0;F0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new oT(e.duration,e.delay)}}]),e}(),WA=function(){function e(t,n,r){H(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new oT,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return j(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return hT(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){pT(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function YA(e){return e&&1===e.nodeType}function QA(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function XA(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(QA(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);(!n||0==n.length)&&(r[jA]=VA,a.push(r))}),e.set(r,o)});var s=0;return n.forEach(function(e){return QA(e,o[s++])}),a}function ZA(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function o(e){if(!e)return 1;var t=i.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:r.has(a)?1:o(a),i.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var JA="$$classes";function $A(e,t){if(e.classList)e.classList.add(t);else{var n=e[JA];n||(n=e[JA]={}),n[t]=!0}}function eR(e,t){if(e.classList)e.classList.remove(t);else{var n=e[JA];n&&delete n[t]}}function tR(e,t,n){cT(n).onDone(function(){return e.processLeaveNode(t)})}function nR(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function oR(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=sR(t[0]),t.length>1&&(r=sR(t[t.length-1]))):t&&(n=sR(t)),n||r?new aR(e,n,r):null}var aR=function(){function e(t,n,r){H(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return j(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&BT(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(BT(this._element,this._initialStyles),this._endStyles&&(BT(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(zT(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zT(this._element,this._endStyles),this._endStyles=null),BT(this._element,this._initialStyles),this._state=3)}}]),e}();function sR(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vR(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mR(e,"").split(","),r=pR(n,t);r>=0&&(n.splice(r,1),gR(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function dR(e,t,n){gR(e,"PlayState",n,fR(e,t))}function fR(e,t){var n=mR(e,"");return n.indexOf(",")>0?pR(n.split(","),t):pR([n],t)}function pR(e,t){for(var n=0;n=0)return n;return-1}function vR(e,t,n){n?e.removeEventListener(lR,t):e.addEventListener(lR,t)}function gR(e,t,n,r){var i=cR+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function mR(e,t){return e.style[cR+t]||""}var yR=function(){function e(t,n,r,i,o,a,s,u){H(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return j(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new hR(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:tA(e.element,r))})}this.currentSnapshot=t}}]),e}(),_R=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=OT(r),i}return j(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),I(U(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),I(U(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,I(U(n.prototype),"destroy",this).call(this))}}]),n}(oT),bR=function(){function e(){H(this,e),this._count=0}return j(e,[{key:"validateStyleProperty",value:function(e){return wT(e)}},{key:"matchesElement",value:function(e,t){return CT(e,t)}},{key:"containsElement",value:function(e,t){return ST(e,t)}},{key:"query",value:function(e,t,n){return ET(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return OT(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof yR}),s={};JT(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$T(e,t,s));if(0==n)return new _R(e,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,c,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var h=oR(e,t),d=new yR(e,t,c,n,r,i,u,h);return d.onDestroy(function(){return function(e){e.parentNode.removeChild(e)}(l)}),d}}]),e}(),kR=function(){function e(t,n,r,i){H(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:tA(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),wR=function(){function e(){H(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(CR().toString()),this._cssKeyframesDriver=new bR}return j(e,[{key:"validateStyleProperty",value:function(e){return wT(e)}},{key:"matchesElement",value:function(e,t){return CT(e,t)}},{key:"containsElement",value:function(e,t){return ST(e,t)}},{key:"query",value:function(e,t,n){return ET(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},c=o.filter(function(e){return e instanceof kR});JT(n,r)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=oR(e,t=$T(e,t=t.map(function(e){return HT(e,!1)}),u));return new kR(e,t,s,l)}}]),e}();function CR(){return sT()&&Element.prototype.animate||{}}var SR=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:ht.None,styles:[],data:{animation:[]}}),i}return j(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?eT(e):e;return TR(this._renderer,null,t,"register",[n]),new ER(t,this._renderer)}}]),n}(XO);return e.\u0275fac=function(t){return new(t||e)(ui(el),ui(kd))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),ER=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return j(n,[{key:"create",value:function(e,t){return new OR(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){H(this,e)}}()),OR=function(){function e(t,n,r,i){H(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return j(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==AR?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),IR=function(e){x(n,e);var t=D(n);function n(e,r,i,o){var a;return H(this,n),(a=t.call(this,r,i,o)).factory=e,a.namespaceId=r,a}return j(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==AR?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var r=this;if("@"==t.charAt(0)){var i,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(i=S(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=i[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){r.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(PR),xR=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i){return H(this,n),t.call(this,e.body,r,i)}return j(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(iR);return e.\u0275fac=function(t){return new(t||e)(ui(kd),ui(AT),ui(SA))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),MR=new Ur("AnimationModuleType"),DR=[{provide:XO,useClass:SR},{provide:SA,useFactory:function(){return new EA}},{provide:iR,useClass:xR},{provide:el,useFactory:function(e,t,n){return new RR(e,t,n)},deps:[dp,iR,Kh]}],NR=[{provide:AT,useFactory:function(){return"function"==typeof CR()?new wR:new bR}},{provide:MR,useValue:"BrowserAnimations"}].concat(DR),LR=[{provide:AT,useClass:TT},{provide:MR,useValue:"NoopAnimations"}].concat(DR),FR=function(){var e=function(){function e(){H(this,e)}return j(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?LR:NR}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:NR,imports:[Op]}),e}(),UR=[[["caption"]],[["colgroup"],["col"]]],HR=["caption","colgroup, col"];function VR(e){return function(e){x(n,e);var t=D(n);function n(){var e;H(this,n);for(var r=arguments.length,i=new Array(r),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;H(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=r,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return j(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,i=[],o=O(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){i.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var o=e[0],a=o.children.length,s=this._getCellWidths(o,i),u=this._getStickyStartColumnPositions(s,t),c=this._getStickyEndColumnPositions(s,n),l=t.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var i,o="rtl"===r.direction,d=o?"right":"left",f=o?"left":"right",p=O(e);try{for(p.s();!(i=p.n()).done;)for(var v=i.value,g=0;g1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],r=e.children,i=0;i0;i--)t[i]&&(n[i]=r,r+=e[i]);return n}}]),e}(),hP=new Ur("CDK_SPL"),dP=function(){var e=function e(t,n){H(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","rowOutlet",""]]}),e}(),fP=function(){var e=function e(t,n){H(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),pP=function(){var e=function e(t,n){H(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),vP=function(){var e=function e(t,n){H(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Jc))},e.\u0275dir=Mt({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),gP=function(){var e=function(){function e(t,n,r,i,o,a,s,u,c,l,h){H(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=r,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new se,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.viewChange=new Xv({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return j(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=nb(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=nb(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(kg(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Ab(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,r){return e._getEmbeddedViewArgs(t.item,r)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(E(t),E(n),E(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var r=[],i=0;i0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,r=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),i=r.map(function(e){return e.sticky}),o=r.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,i,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},i=e.viewContainer.createEmbeddedView(t.template,r,n);return this._renderCellTemplateForItem(t,r),i}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=O(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;oP.mostRecentCellOutlet&&oP.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t)}}catch(o){r.e(o)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:ig;return function(n){return n.lift(new bP(e,t))}}var bP=function(){function e(t,n){H(this,e),this.dueTime=t,this.scheduler=n}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new kP(e,this.dueTime,this.scheduler))}}]),e}(),kP=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;return H(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return j(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(wP,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(J);function wP(e){e.debouncedNext()}function CP(e){return function(t){return t.lift(new SP(e))}}var SP=function(){function e(t){H(this,e),this.total=t}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new EP(e,this.total))}}]),e}(),EP=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return j(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(J),OP=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),TP=function(){var e=function(){function e(t){H(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return j(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=sb(e);return new ne(function(e){var r=t._observeElement(n).subscribe(e);return function(){r.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new se,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,r=t.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(OP))},e.\u0275prov=Xe({factory:function(){return new e(ui(OP))},token:e,providedIn:"root"}),e}(),AP=function(){var e=function(){function e(t,n,r){H(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new nh,this._disabled=!1,this._currentSubscription=null}return j(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nb(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=rb(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(_P(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(TP),zs(Jc),zs(Kh))},e.\u0275dir=Mt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),RP=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[OP]}),e}();function PP(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var IP="cdk-describedby-message-container",xP="cdk-describedby-message",MP="cdk-describedby-host",DP=0,NP=new Map,LP=null,FP=function(){var e=function(){function e(t){H(this,e),this._document=t}return j(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var r=UP(t,n);"string"!=typeof t?(HP(t),NP.set(r,{messageElement:t,referenceCount:0})):NP.has(r)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var r=UP(t,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof t){var i=NP.get(r);i&&0===i.referenceCount&&this._deleteMessageElement(r)}LP&&0===LP.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(MP,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return j(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mg(function(t){return e._pressedLetters.push(t)}),_P(t),Sg(function(){return e._pressedLetters.length>0}),ye(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),r=1;r0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){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||qb(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),r=t[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof ih?this._items.toArray():this._items}}]),e}());function jP(e){return 0===e.offsetX&&0===e.offsetY}function BP(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var zP=new Ur("cdk-input-modality-detector-options"),qP={ignoreKeys:[18,17,224,91,16]},KP=Cb({passive:!0,capture:!0}),GP=function(){var e=function(){function e(t,n,r,i){var o=this;H(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new Xv(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=Sb(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(jP(e)?"keyboard":"mouse"),o._mostRecentTarget=Sb(e))},this._onTouchstart=function(e){BP(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=Sb(e))},this._options=Object.assign(Object.assign({},qP),i),this.modalityDetected=this._modality.pipe(CP(1)),this.modalityChanged=this.modalityDetected.pipe(vg()),t.isBrowser&&n.runOutsideAngular(function(){r.addEventListener("keydown",o._onKeydown,KP),r.addEventListener("mousedown",o._onMousedown,KP),r.addEventListener("touchstart",o._onTouchstart,KP)})}return j(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,KP),document.removeEventListener("mousedown",this._onMousedown,KP),document.removeEventListener("touchstart",this._onTouchstart,KP))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kb),ui(Kh),ui(kd),ui(zP,8))},e.\u0275prov=Xe({factory:function(){return new e(ui(kb),ui(Kh),ui(kd),ui(zP,8))},token:e,providedIn:"root"}),e}(),WP=new Ur("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),YP=new Ur("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),QP=function(){var e=function(){function e(t,n,r,i){H(this,e),this._ngZone=n,this._defaultOptions=i,this._document=r,this._liveElement=t||this._createLiveElement()}return j(e,[{key:"announce",value:function(e){for(var t,n,r,i=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=sb(e);if(!this._platform.isBrowser||1!==n.nodeType)return dg(null);var r=function(e){if(function(){if(null==bb){var e="undefined"!=typeof document?document.head:null;bb=!(!e||!e.createShadowRoot&&!e.attachShadow)}return bb}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return t&&(i.checkChildren=!0),i.subject;var o={checkChildren:t,subject:new se,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=sb(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var r=this,i=sb(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(function(e){var n=S(e,2),i=n[0],o=n[1];return r._originChanged(i,t,o)}):(this._setOrigin(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),r=Sb(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ZP),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ZP)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(kg(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ZP),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ZP),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,r){(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(Kh),ui(kb),ui(GP),ui(kd,8),ui(XP,8))},e.\u0275prov=Xe({factory:function(){return new e(ui(Kh),ui(kb),ui(GP),ui(kd,8),ui(XP,8))},token:e,providedIn:"root"}),e}(),$P="cdk-high-contrast-black-on-white",eI="cdk-high-contrast-white-on-black",tI="cdk-high-contrast-active",nI=function(){var e=function(){function e(t,n){H(this,e),this._platform=t,this._document=n}return j(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(tI),e.remove($P),e.remove(eI),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(tI),e.add($P)):2===t&&(e.add(tI),e.add(eI))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(kb),ui(kd))},e.\u0275prov=Xe({factory:function(){return new e(ui(kb),ui(kd))},token:e,providedIn:"root"}),e}(),rI=function(){var e=function e(t){H(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ui(nI))},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[wb,RP]]}),e}(),iI=new il("12.1.4");function oI(e,t){if(1&e&&Ys(0,"mat-pseudo-checkbox",4),2&e){var n=ou();qs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function aI(e,t){if(1&e&&(Gs(0,"span",5),Iu(1),Ws()),2&e){var n=ou();ha(1),Mu("(",n.group.label,")")}}var sI=["*"],uI=new il("12.1.4"),cI=new Ur("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),lI=function(){var e=function(){function e(t,n,r){H(this,e),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return j(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return nd()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&uI.full!==iI.full&&console.warn("The Angular Material version ("+uI.full+") does not match the Angular CDK version ("+iI.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(nI),ui(cI,8),ui(kd))},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[Tb],Tb]}),e}();function hI(e){return function(e){x(n,e);var t=D(n);function n(){var e;H(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(e){x(r,e);var n=D(r);function r(){var e;H(this,r);for(var i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},mI),r.animation);r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);var a=r.radius||function(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),s=e-i.left,u=t-i.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=r.color&&(l.style.backgroundColor=r.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),function(e){window.getComputedStyle(e).getPropertyValue("opacity")}(l),l.style.transform="scale(1)";var h=new gI(this,l,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!r.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,r=Object.assign(Object.assign({},mI),e.config.animation);n.style.transitionDuration="".concat(r.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=sb(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(_I))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(bI),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=jP(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,yI)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(_I.forEach(function(t){e._triggerElement.removeEventListener(t,e,yI)}),this._pointerUpEventsRegistered&&bI.forEach(function(t){e._triggerElement.removeEventListener(t,e,yI)}))}}]),e}(),wI=new Ur("mat-ripple-global-options"),CI=function(){var e=function(){function e(t,n,r,i,o){H(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new kI(this,n,t,r)}return j(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Jc),zs(Kh),zs(kb),zs(wI,8),zs(MR,8))},e.\u0275dir=Mt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&yu("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),SI=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[lI,wb],lI]}),e}(),EI=function(){var e=function e(t){H(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(zs(MR,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&yu("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),OI=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[lI]]}),e}(),TI=new Ur("MAT_OPTION_PARENT_COMPONENT"),AI=hI(function(){return function e(){H(this,e)}}()),RI=0,PI=function(){var e=function(e){x(n,e);var t=D(n);function n(e){var r,i;return H(this,n),(r=t.call(this))._labelId="mat-optgroup-label-"+RI++,r._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i,r}return n}(AI);return e.\u0275fac=function(t){return new(t||e)(zs(TI,8))},e.\u0275dir=Mt({type:e,inputs:{label:"label"},features:[Os]}),e}(),II=new Ur("MatOptgroup"),xI=0,MI=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];H(this,e),this.source=t,this.isUserInput=n},DI=function(){var e=function(){function e(t,n,r,i){H(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+xI++,this.onSelectionChange=new nh,this._stateChanges=new se}return j(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=nb(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(13===e.keyCode||32===e.keyCode)&&!qb(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new MI(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Jc),zs(Sl),zs(void 0),zs(PI))},e.\u0275dir=Mt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),NI=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i,o){return H(this,n),t.call(this,e,r,i,o)}return n}(DI);return e.\u0275fac=function(t){return new(t||e)(zs(Jc),zs(Sl),zs(TI,8),zs(II,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&nu("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Nu("id",t.id),Hs("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),yu("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Os],ngContentSelectors:sI,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,t){1&e&&(su(),js(0,oI,1,2,"mat-pseudo-checkbox",0),Gs(1,"span",1),uu(2),Ws(),js(3,aI,2,1,"span",2),Ys(4,"div",3)),2&e&&(qs("ngIf",t.multiple),ha(3),qs("ngIf",t.group&&t.group._inert),ha(1),qs("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Rf,CI,EI],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function LI(e,t,n){if(n.length){for(var r=t.toArray(),i=n.toArray(),o=0,a=0;a0&&void 0!==arguments[0]?arguments[0]:[];return H(this,n),(e=t.call(this))._renderData=new Xv([]),e._filter=new Xv(""),e._internalPageChanges=new se,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(ib(n)){var r=Number(n);return r<9007199254740991?r:n}return n},e.sortData=function(t,n){var r=n.active,i=n.direction;return r&&""!=i?t.sort(function(t,n){var o=e.sortingDataAccessor(t,r),a=e.sortingDataAccessor(n,r),s=typeof o,u=typeof a;s!==u&&("number"===s&&(o+=""),"number"===u&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o0)){var r=Math.ceil(n.length/n.pageSize)-1||0,i=Math.min(n.pageIndex,r);i!==n.pageIndex&&(n.pageIndex=i,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(function(){return function e(){H(this,e)}}())),JI=["*"];function $I(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function ex(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function tx(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var nx=function e(t,n,r){H(this,e),this.url=t,this.svgText=n,this.options=r},rx=function(){var e=function(){function e(t,n,r,i){H(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}return j(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,r){return this._addSvgIconConfig(e,t,new nx(n,null,r))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,r){var i=this._sanitizer.sanitize(eo.HTML,n);if(!i)throw tx(n);return this._addSvgIconConfig(e,t,new nx("",i,r))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new nx(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var r=this._sanitizer.sanitize(eo.HTML,t);if(!r)throw tx(t);return this._addSvgIconSetConfig(e,new nx("",r,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(eo.RESOURCE_URL,e);if(!n)throw ex(e);var r=this._cachedIconsByUrl.get(n);return r?dg(ix(r)):this._loadSvgIconFromConfig(new nx(e,null)).pipe(Mg(function(e){return t._cachedIconsByUrl.set(n,e)}),ye(function(e){return ix(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ox(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):Vg($I(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?dg(ix(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ye(function(e){return ix(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);return r?dg(r):Rp(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(zw(function(t){var r="Loading icon set URL: ".concat(n._sanitizer.sanitize(eo.RESOURCE_URL,e.url)," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),dg(null)}))})).pipe(ye(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw $I(e);return r}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgText&&r.svgText.indexOf(e)>-1){var i=this._svgElementFromConfig(r),o=this._extractSvgIconFromSet(i,e,r.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Mg(function(t){return e.svgText=t}),ye(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?dg(null):this._fetchIcon(e).pipe(Mg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var r=e.querySelector('[id="'.concat(t,'"]'));if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,r=0;r visible",$O("200ms cubic-bezier(0, 0, 0.2, 1)",function(e){return{type:5,steps:e}}([tT({opacity:0,transform:"scale(0)",offset:0}),tT({opacity:.5,transform:"scale(0.99)",offset:.5}),tT({opacity:1,transform:"scale(1)",offset:1})]))),rT("* => hidden",$O("100ms cubic-bezier(0, 0, 0.2, 1)",tT({opacity:0})))])},kx="tooltip-panel",wx=Cb({passive:!0}),Cx=new Ur("mat-tooltip-scroll-strategy"),Sx={provide:Cx,deps:[bk],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},Ex=new Ur("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Ox=function(){var e=function(){function e(t,n,r,i,o,a,s,u,c,l,h,d){var f=this;H(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=i,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new se,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!qb(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(kg(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return j(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nb(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(kg(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=S(t,2),r=n[0],i=n[1];e.removeEventListener(r,i,wx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Fb(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(kg(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(kg(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(kx),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(kg(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe(kg(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),r=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),r.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),r.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var r=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:r.x,originY:r.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var r=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:r.x,overlayY:r.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Pg(1),kg(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,r=e.originX,i=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===i?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(kx,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var r=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=S(e,2),r=n[0],i=n[1];t._elementRef.nativeElement.addEventListener(r,i,wx)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(bk),zs(Jc),zs(xb),zs(Nl),zs(Kh),zs(kb),zs(FP),zs(JP),zs(void 0),zs(Ob),zs(void 0),zs(kd))},e.\u0275dir=Mt({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),Tx=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a,s,u,c,l,h,d,f){var p;return H(this,n),(p=t.call(this,e,r,i,o,a,s,u,c,l,h,d,f))._tooltipComponent=Rx,p}return n}(Ox);return e.\u0275fac=function(t){return new(t||e)(zs(bk),zs(Jc),zs(xb),zs(Nl),zs(Kh),zs(kb),zs(FP),zs(JP),zs(Cx),zs(Ob,8),zs(Ex,8),zs(kd))},e.\u0275dir=Mt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Os]}),e}(),Ax=function(){var e=function(){function e(t){H(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new se}return j(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(Sl))},e.\u0275dir=Mt({type:e}),e}(),Rx=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r){var i;return H(this,n),(i=t.call(this,e))._breakpointObserver=r,i._isHandset=i._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),i}return n}(Ax);return e.\u0275fac=function(t){return new(t||e)(zs(Sl),zs(yx))},e.\u0275cmp=Tt({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&mu("zoom","visible"===t._visibility?1:null)},features:[Os],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(Gs(0,"div",0),nu("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),$l(1,"async"),Iu(2),Ws()),2&e)&&(yu("mat-tooltip-handset",null==(n=eh(1,5,t._isHandset))?null:n.matches),qs("ngClass",t.tooltipClass)("@state",t._visibility),ha(2),xu(t.message))},directives:[Ef],pipes:[jf],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[bx.tooltipState]},changeDetection:0}),e}(),Px=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[Sx],imports:[[rI,zf,Ok,lI],lI,Db]}),e}(),Ix=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({}),e}(),xx=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[zf,lI,Ix,jb]]}),e}(),Mx=["mat-button",""],Dx=["*"],Nx=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lx=dI(hI(fI(function(){return function e(t){H(this,e),this._elementRef=t}}()))),Fx=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i){var o;H(this,n),(o=t.call(this,e))._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=O(Nx);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){s.e(c)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return j(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),Ux=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({imports:[[SI,lI],lI]}),e}(),Hx=["underline"],Vx=["connectionContainer"],jx=["inputContainer"],Bx=["label"];function zx(e,t){1&e&&(Qs(0),Gs(1,"div",14),Ys(2,"div",15),Ys(3,"div",16),Ys(4,"div",17),Ws(),Gs(5,"div",18),Ys(6,"div",15),Ys(7,"div",16),Ys(8,"div",17),Ws(),Xs())}function qx(e,t){1&e&&(Gs(0,"div",19),uu(1,1),Ws())}function Kx(e,t){if(1&e&&(Qs(0),uu(1,2),Gs(2,"span"),Iu(3),Ws(),Xs()),2&e){var n=ou(2);ha(3),xu(n._control.placeholder)}}function Gx(e,t){1&e&&uu(0,3,["*ngSwitchCase","true"])}function Wx(e,t){1&e&&(Gs(0,"span",23),Iu(1," *"),Ws())}function Yx(e,t){if(1&e){var n=Js();Gs(0,"label",20,21),nu("cdkObserveContent",function(){return _n(n),ou().updateOutlineGap()}),js(2,Kx,4,1,"ng-container",12),js(3,Gx,1,0,"ng-content",12),js(4,Wx,2,0,"span",22),Ws()}if(2&e){var r=ou();yu("mat-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),qs("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),Hs("for",r._control.id)("aria-owns",r._control.id),ha(2),qs("ngSwitchCase",!1),ha(1),qs("ngSwitchCase",!0),ha(1),qs("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function Qx(e,t){1&e&&(Gs(0,"div",24),uu(1,4),Ws())}function Xx(e,t){if(1&e&&(Gs(0,"div",25,26),Ys(2,"span",27),Ws()),2&e){var n=ou();ha(2),yu("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Zx(e,t){1&e&&(Gs(0,"div"),uu(1,5),Ws()),2&e&&qs("@transitionMessages",ou()._subscriptAnimationState)}function Jx(e,t){if(1&e&&(Gs(0,"div",31),Iu(1),Ws()),2&e){var n=ou(2);qs("id",n._hintLabelId),ha(1),xu(n.hintLabel)}}function $x(e,t){if(1&e&&(Gs(0,"div",28),js(1,Jx,2,2,"div",29),uu(2,6),Ys(3,"div",30),uu(4,7),Ws()),2&e){var n=ou();qs("@transitionMessages",n._subscriptAnimationState),ha(1),qs("ngIf",n.hintLabel)}}var eM=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tM=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],nM=new Ur("MatError"),rM={transitionMessages:JO("transitionMessages",[nT("enter",tT({opacity:1,transform:"translateY(0%)"})),rT("void => enter",[tT({opacity:0,transform:"translateY(-5px)"}),$O("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},iM=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e}),e}(),oM=new Ur("MatHint"),aM=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["mat-label"]]}),e}(),sM=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Mt({type:e,selectors:[["mat-placeholder"]]}),e}(),uM=new Ur("MatPrefix"),cM=new Ur("MatSuffix"),lM=0,hM=dI(function(){return function e(t){H(this,e),this._elementRef=t}}(),"primary"),dM=new Ur("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fM=new Ur("MatFormField"),pM=function(){var e=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a,s,u,c){var l;return H(this,n),(l=t.call(this,e))._changeDetectorRef=r,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new se,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+lM++,l._labelId="mat-form-field-label-"+lM++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return j(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=nb(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(pg(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(kg(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(kg(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Ae(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(pg(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(pg(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(kg(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ug(this._label.nativeElement,"transitionend").pipe(Pg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,E(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,E(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=r.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;d void",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}("@transformPanel",[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}()],{optional:!0}))]),transformPanel:JO("transformPanel",[nT("void",tT({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),nT("showing",tT({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),nT("showing-multiple",tT({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),rT("void => *",$O("120ms cubic-bezier(0, 0, 0.2, 1)")),rT("* => void",$O("100ms 25ms linear",tT({opacity:0})))])},OM=0,TM=new Ur("mat-select-scroll-strategy"),AM=new Ur("MAT_SELECT_CONFIG"),RM={provide:TM,deps:[bk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},PM=function e(t,n){H(this,e),this.source=t,this.value=n},IM=fI(pI(hI(function(e){return function(e){x(n,e);var t=D(n);function n(){var e;H(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(IM);return e.\u0275fac=function(t){return new(t||e)(zs(Mb),zs(Sl),zs(Kh),zs(vI),zs(Jc),zs(Ob,8),zs(Av,8),zs(Lv,8),zs(fM,8),zs(Zp,10),xr("tabindex"),zs(TM),zs(QP),zs(AM,8))},e.\u0275dir=Mt({type:e,viewQuery:function(e,t){var n;(1&e&&(vh(gM,5),vh(mM,5),vh(Sk,5)),2&e)&&(ph(n=mh())&&(t.trigger=n.first),ph(n=mh())&&(t.panel=n.first),ph(n=mh())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Os,Gt]}),e}(),DM=function(){var e,t=function(e){x(n,e);var t=D(n);function n(){var e;return H(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return j(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*e-t+r/2),n)}},{key:"ngOnInit",value:function(){var e=this;I(U(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(kg(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;I(U(n.prototype),"_canOpen",this).call(this)&&(I(U(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Pg(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=LI(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function(e,t,n,r){return en+256?Math.max(0,e-256+t):n}((e+t)*n,n,this.panel.nativeElement.scrollTop)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),I(U(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new PM(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}r||(e*=-1);var a=0-(t.left+e-(r?i:0)),s=t.right+e-n.width+(r?0:i);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);return this.disableOptionCentering?0:(r=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*r-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var r=Math.round(e-t);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),r=Math.min(n*t,256),i=n*t-r;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=LI(e,this.options,this.optionGroups);var o=r/2;this._scrollTop=this._calculateOverlayScroll(e,o,i),this._offsetY=this._calculateOverlayOffsetY(e,o,i),this._checkOverlayWithinViewport(i)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(MM);return t.\u0275fac=function(n){return(e||(e=Pr(t)))(n||t)},t.\u0275cmp=Tt({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var r;(1&e&&(gh(n,xM,5),gh(n,NI,5),gh(n,II,5)),2&e)&&(ph(r=mh())&&(t.customTrigger=r.first),ph(r=mh())&&(t.options=r),ph(r=mh())&&(t.optionGroups=r))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&nu("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Hs("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),yu("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Gc([{provide:iM,useExisting:t},{provide:TI,useExisting:t}]),Os],ngContentSelectors:SM,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,t){if(1&e&&(su(CM),Gs(0,"div",0,1),nu("click",function(){return t.toggle()}),Gs(3,"div",2),js(4,yM,2,1,"span",3),js(5,kM,3,2,"span",4),Ws(),Gs(6,"div",5),Ys(7,"div",6),Ws(),Ws(),js(8,wM,4,14,"ng-template",7),nu("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Bs(1);Hs("aria-owns",t.panelOpen?t.id+"-panel":null),ha(3),qs("ngSwitch",t.empty),Hs("id",t._valueId),ha(1),qs("ngSwitchCase",!0),ha(1),qs("ngSwitchCase",!1),ha(3),qs("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Ck,Mf,Df,Sk,Nf,Ef],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[EM.transformPanelWrap,EM.transformPanel]},changeDetection:0}),t}(),NM=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[RM],imports:[[zf,Ok,FI,lI],Db,vM,FI,lI]}),e}();function LM(e,t){if(1&e&&(Gs(0,"mat-option",19),Iu(1),Ws()),2&e){var n=t.$implicit;qs("value",n),ha(1),Mu(" ",n," ")}}function FM(e,t){if(1&e){var n=Js();Gs(0,"mat-form-field",16),Gs(1,"mat-select",17),nu("selectionChange",function(e){return _n(n),ou(2)._changePageSize(e.value)}),js(2,LM,2,2,"mat-option",18),Ws(),Ws()}if(2&e){var r=ou(2);qs("appearance",r._formFieldAppearance)("color",r.color),ha(1),qs("value",r.pageSize)("disabled",r.disabled)("aria-label",r._intl.itemsPerPageLabel),ha(1),qs("ngForOf",r._displayedPageSizeOptions)}}function UM(e,t){if(1&e&&(Gs(0,"div",20),Iu(1),Ws()),2&e){var n=ou(2);ha(1),xu(n.pageSize)}}function HM(e,t){if(1&e&&(Gs(0,"div",12),Gs(1,"div",13),Iu(2),Ws(),js(3,FM,3,6,"mat-form-field",14),js(4,UM,2,1,"div",15),Ws()),2&e){var n=ou();ha(2),Mu(" ",n._intl.itemsPerPageLabel," "),ha(1),qs("ngIf",n._displayedPageSizeOptions.length>1),ha(1),qs("ngIf",n._displayedPageSizeOptions.length<=1)}}function VM(e,t){if(1&e){var n=Js();Gs(0,"button",21),nu("click",function(){return _n(n),ou().firstPage()}),Yn(),Gs(1,"svg",7),Ys(2,"path",22),Ws(),Ws()}if(2&e){var r=ou();qs("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),Hs("aria-label",r._intl.firstPageLabel)}}function jM(e,t){if(1&e){var n=Js();Yn(),Qn(),Gs(0,"button",23),nu("click",function(){return _n(n),ou().lastPage()}),Yn(),Gs(1,"svg",7),Ys(2,"path",24),Ws(),Ws()}if(2&e){var r=ou();qs("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),Hs("aria-label",r._intl.lastPageLabel)}}var BM=function(){var e=function e(){H(this,e),this.changes=new se,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var r=e*t;return"".concat(r+1," \u2013 ").concat(r<(n=Math.max(n,0))?Math.min(r+t,n):r+t," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),zM={provide:BM,deps:[[new mi,new yi,BM]],useFactory:function(e){return e||new BM}},qM=new Ur("MAT_PAGINATOR_DEFAULT_OPTIONS"),KM=hI(function(e){return function(e){x(n,e);var t=D(n);function n(){var e;H(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex0}},{key:"getAccountRoles",value:function(){var e;return null===(e=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===e?void 0:e.roles}},{key:"loginRedirect",value:function(){this.msalGuardConfig.authRequest?this.authService.loginRedirect(Object.assign({},this.msalGuardConfig.authRequest)):this.authService.loginRedirect()}},{key:"loginPopup",value:function(){var e=this;this.msalGuardConfig.authRequest?this.authService.loginPopup(Object.assign({},this.msalGuardConfig.authRequest)).subscribe(function(t){e.authService.instance.setActiveAccount(t.account)}):this.authService.loginPopup().subscribe(function(t){e.authService.instance.setActiveAccount(t.account)})}},{key:"logout",value:function(e){e?this.authService.logoutPopup({mainWindowRedirectUri:"/"}):this.authService.logoutRedirect()}},{key:"ngOnDestroy",value:function(){this._destroying$.next(null),this._destroying$.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(cO),zs(VE),zs(fO),zs(pO))},e.\u0275cmp=Tt({type:e,selectors:[["app-root"]],decls:16,vars:4,consts:[[1,"app-frame"],[1,"navbar","navbar-expand"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAoCAYAAADpE0oSAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TtSIVByOIOGSoThZERR2likWwUNoKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cWWsR4cNyPd/ced+8AoVZimtUxDmi6bSaiESmdWZUCr+hCACJmMCAzy4glF1PwHF/38PH1LsyzvM/9OXrVrMUAn0Q8xwzTJt4gnt60Dc77xCIryCrxOfGYSRckfuS60uA3znmXBZ4pmqnEPLFILOXbWGljVjA14inikKrplC+kG6xy3uKslSqseU/+wmBWX0lyneYwolhCDHFIUFBBESXYCNOqk2IhQfsRD/+Q64+TSyFXEYwcCyhDg+z6wf/gd7dWbnKikRSMAJ0vjvMxAgR2gXrVcb6PHad+AvifgSu95S/XgNlP0qstLXQE9G0DF9ctTdkDLneAwSdDNmVX8tMUcjng/Yy+KQP03wI9a43emvs4fQBS1NXyDXBwCIzmKXvd493d7b39e6bZ3w+agXK32oekqAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB+QGBxUCLqebMPsAAAgYSURBVFjDrZh7jF1FHcc/M3POfe97l90tBfpIWyiFJaKAQAPVPzRUUApVpEooURsIGKJYbZRIjJhgxGDA1takNA2L1FRREkiJCEW2pRKD2ie0bLsVln20233evffcc2bGP87s3bvdrRCzk9zcOTNz5ju/3/we398RzFbbjASGgfnA6XOus/FPMrtNOPAWQM0wX40C5OwDjwD/BF4CSsD3gLlOzt8BRzGMAAu8WQbOArcDe4FGoBt42c1tAr4K3ARsnG2JpZMKd88jwIWAAf7m1pwALp5t4Nh8JndNA2dc36sYy882cAAcAT7pJDzoniXwC2d0TwC/krMqKfwSOA/4LtAOXAMknarfAl50hrdF/F8QCtjo+uvKfnyu1gL0OFebYgwf3ZaetfEmAOqBen5z1gEi119XXj0K/Lz85ObEx4hIEyCLgL9XzDznVHhnxdjVwFFgkHUzaKEAPDgZaaaqUM8IfB3Q4cJhF9AE9LsV9cAgsBB4D7gWeLNC4hn3ni7xRkBNO0J7WTLDciS7gIybG8ewEslu9/w0cM+U69QY7pvu8NNPBuuBfwEL3GhZnWuaeOnqFMIdWlyVwt7RxAsVO6xx/wvdHg/NFLXl/4hAbUAnlo4VGUjG7kKVT+7eNjJ1AlMnMPe1kav1qQJICeyKDAksbzi1t50jWSDPYV495Z7murVt2IeXEKKxc+sIgwg2XEq0YSmlIII5NURo7I+WEN3ThiXi+oq9emfKYYItZfefUJ8V8CkBrxrIUsI8vRxZikCArVEUhzTphcn4tc4AqhWFEU0KEAkPu/YNIIGQMGbhRgtvl+1JxJHcixVIAii6SaPg5PoFRIMF9FgIw0VOeYqmhIDbmklu6cZenGXcAEeLZFY3k9z6IZQs5AucumsOjRkf05BBP9rJH12imBAwBQQxsKAErAZ2AjIyzNeW/CfOR0UWFibJzU8T7BrEVwq5thWdkmQB1railUIFFntTHcVjBarTFyE9AcdO42G4sMKSVgEBFgQyjkQCpIU9GK5xJzObr8KGFlXrYde0IjAEeF8ThM/4ZLdqkOPk767GWxOh2zWS5DM92OEI4Qv0urcQDgEh2Qsst2C4d+KOrfNvy4ofL+aFtEdWG8SlNYQ3NuAPhyLIKSvqfRLU7skzfF2Gxr74zk43Q83rJYZuSAyEBGNa2FrfpnYPEB4axlcSihGFR46xUsFrumzVlgbghzp2l1ePDSDrs4jGHPRpvKJGX5i2yfrqxyWN7w0Qdmdp/GAcr7qIVxXQ1NtP2Jug8fhAQ/Xj/kVpmypodJ/Ga8xBfRbePQNYXnUYDwONipv5DvBTACHgQB6/NqTUXIVq8ClkJKY5e1eAfzWYAUXVF0DVphC+j/A9ZDZLcnGJ4pseospgvLArf8COGcLhEP/N/xC0nyIlJu95BTAigUeBByYSKoDnEc1JUfxKK5nLqkgTbc8hqyB3Sxbh+/ERK53S98ndnEakJPrZ9LIqkqtbSDcnGU94cei1ky98G3hUlDOIZd5nc7yzZhmeMajIgLGYLzehG9Jft2TuNvgXWJKL0jOGnNLxkPBkRH6bOl3crnf0k/AEypMgJfrZg0SvjHEJghNTQ6ag470i3s7DWCEoFQzc0kBQ6+Nh9vuMrQd/rjpn+vRaYPQhD/Nvr84j9aUGCgUDQlDaeRh7rIiH4I1JuM1cAvwVaBWAjf3a7rqG4U/XkQktiYbkCkPDDoswIcgSqql6Cqg+NYbVHsgEA3cwELwmfYHeN0Txc3tJA1KIsrp7gM9IYAnQWhFZoifboCukdmsvie4iIXafoP88IKmI+r3JQsT9wlMCkfLpbwa7T3QXibb2ok6UyD55RbyiwihagSUS+JMLlZfaiMO/vhKkQBiDvSBBuDSHCE1B2NRjAf11itLJFH2rAvRAiB6I6FtVIOzK0F+HST1WCE1BLM3B3AShMVgpkBuvRJqIQ8Ayh/Vnwab4pgXgw/dL8LOLFChBccNl6JRHOrSIO5shqVAknxyl+ECW+ncNQhoGFiVs+qlhUby/phihn+1HJAUmH5H/yX58AckPIkRSsr5kedzGZMJljBi8BhiaIKqfrya4/WKSkYE5PvrmFuzzvdhbm5M+xgOaLQgDvQoZ2ef7AnNrC+KFXugJkZ6E546Qf2WUbEXqzSHI8y2QbC7b9uuVDPmLi5DjJaKeEayCoc3vI09HKERg/3ImPxbZ4zo0nXr3YL6ACOgvIba8j5CW0d5R7HiJaNXicvabaK9jYx7nVZQXP3BHCKsU6fbDbBvS1BwcR/z2WqoFSAF8kCffWSSXGUJbUO8WSCzKU1CStLHQY0g+chhxWRpZoxjJKm7LW4L4JtETtM+rYMO7ykTYsqqjSJ17NL7EL2js2z0UB0MSNR6cDDCONKj2PsTxU4xf0Uo6LUlh0QdCFCH1TqgXp7n9FBrqA0+Bq2knyJ/sGaHwYheJjjzpBxW6vgVe7kIL8JbPgw/P4G3uxrt+CL1yHgGyzEABLgDgfiCsBK5skxPnuwKsa0GCtg2HKAoZX0QhRJ0eY2x7DzmApU2UChE+EvYUUB2HyCzOkDwasB+Y5/aaAjozr45j97XASVdYAxxwPsjlCXbvL3CVUrFUWpNfluIfB0NuqFh7uevPcbRn39kEX85Y88UVfXeFRT7h/o8cKbECxTY9wfgVO94JuRE4NGVt/O6HwD5KM38s+Ti100KXwO92hzVln4fairGnXW7vnFbCfExCf3Y7AXwDgD+4Dw0xOVwNwO/LY990az+y/RdqKRucRIYQugAAAABJRU5ErkJggg==",1,"navbar-brand"],[1,"collapse","navbar-collapse"],[1,"navbar-nav","ml-auto","mt-3","mr-4","mt-lg-0"],[1,"batchPage","nav-item","active"],["class","nav-item nav-link","routerLink","/","title","Batch History",4,"ngIf"],[2,"color","#aaa","margin-top","5%"],[1,"uploadPage","nav-item","active"],["class","nav-item nav-link","routerLink","msUpload","title","Milestone Update",4,"ngIf"],[1,"nav-item","active"],["class","btn btn-danger btn-sm mt-3","id","logoutBtn",3,"click",4,"ngIf"],["class","overlay",4,"ngIf"],["routerLink","/","title","Batch History",1,"nav-item","nav-link"],["routerLink","msUpload","title","Milestone Update",1,"nav-item","nav-link"],["id","logoutBtn",1,"btn","btn-danger","btn-sm","mt-3",3,"click"],[1,"overlay"],[1,"loader"]],template:function(e,t){1&e&&(Gs(0,"html",0),Gs(1,"nav",1),Gs(2,"a"),Ys(3,"img",2),Ws(),Gs(4,"div",3),Gs(5,"ul",4),Gs(6,"li",5),js(7,uD,4,0,"a",6),Ws(),Gs(8,"span",7),Iu(9," | "),Ws(),Gs(10,"li",8),js(11,cD,4,0,"a",9),Ws(),Ws(),Gs(12,"ul",10),js(13,lD,4,0,"a",11),Ws(),Ws(),Ws(),js(14,hD,10,0,"div",12),Ys(15,"router-outlet"),Ws()),2&e&&(ha(7),qs("ngIf",t.loggedIn),ha(4),qs("ngIf",t.loggedIn),ha(2),qs("ngIf",t.loggedIn),ha(1),qs("ngIf",1==t.triggerLoad))},directives:[n_,Rf,zE,jE,fx],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}']}),e}(),fD=function(){var e=function(){function e(){H(this,e),this.messages=[]}return j(e,[{key:"add",value:function(e){this.messages.push(e)}},{key:"clear",value:function(){this.messages=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),pD=function(){var e=function(){function e(t){H(this,e),this.authService=t}return j(e,[{key:"canActivate",value:function(e){var t,n,r=e.data.expectedRole,i=this.authService.instance.getAllAccounts()[0];return(null===(t=i.idTokenClaims)||void 0===t?void 0:t.roles)?!!(null==r||Array.isArray(r)&&(null===(n=i.idTokenClaims)||void 0===n?void 0:n.roles.filter(function(e){return r.includes(e).length>0})))||(window.alert("You do not have access as expected role is missing. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1):(window.alert("Token does not have roles claim. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1)}},{key:"canSee",value:function(){var e;return!!(null===(e=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===e?void 0:e.roles)||(window.alert("Token does not have roles claim. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(fO))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vD=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),gD=function(){function e(t,n,r,i){H(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=i}return j(e,[{key:"call",value:function(e,t){return t.subscribe(new mD(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),mD=function(e){x(n,e);var t=D(n);function n(e,r,i,o,a){var s;return H(this,n),(s=t.call(this,e)).absoluteTimeout=r,s.waitFor=i,s.withObservable=o,s.scheduler=a,s.action=null,s.scheduleTimeout(),s}return j(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),I(U(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=null,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(ge(e,t))}}]),n}(me);function yD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ig;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ig;return function(r){var i=Hg(e),o=i?+e-n.now():Math.abs(e);return r.lift(new gD(o,i,t,n))}}(e,Vg(new vD),t)}var _D="https://api-001-nonprod.testweb.bp.com/tst/iepb-tarinostrasync/papi/v1/api",bD=[["https://api-001-nonprod.testweb.bp.com",["https://api-001-nonprod.testweb.bp.com/tst/iepb-tarinostrasync/papi/v1/Primavera"]]],kD=function(){var e=function(){function e(t){var n=this;H(this,e),this.messageService=t,this.createHandleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"operation",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.handleError(e,t,r)}}}return j(e,[{key:"handleError",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"operation",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(i){console.error(i);var o=i.error instanceof ErrorEvent?i.error.message:"server returned code ".concat(i.status,' with body "').concat(i.error,'"');return e.messageService.add("".concat(t,": ").concat(n," failed: ").concat(o)),dg(r)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(fD))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),wD={headers:new bO({"Content-Type":"application/json"})},CD=function(){var e=function(){function e(t,n){H(this,e),this.http=t,this.nostraProjectsUrl="".concat(_D),this.handleError=n.createHandleError("UploaderService")}return j(e,[{key:"sync",value:function(e){var t=e.toLocaleLowerCase();return this.http.post("".concat(this.nostraProjectsUrl,"/ui/sites/").concat(t,"/milestones/sync"),wD).pipe(yD(36e4))}},{key:"authorize",value:function(){return this.http.post("".concat(this.nostraProjectsUrl,"/ui/authorize"),wD).pipe(yD(36e4))}},{key:"refresh",value:function(e){return this.http.get("".concat(this.nostraProjectsUrl,"/ui/batch/").concat(e,"/status/projects"),wD).pipe(yD(36e4))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(LO),ui(kD))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),SD=function(){var e=function(){function e(t){H(this,e),this.rd=t.createRenderer(null,null)}return j(e,[{key:"init",value:function(){"darkMode"==localStorage.getItem("colorMode")||window.matchMedia("(prefers-color-scheme: dark)").matches?(this.colorMode="darkMode",this.check=!0):(this.colorMode="lightMode",this.check=!1)}},{key:"getColorMode",value:function(){return null==this.colorMode&&this.init(),this.colorMode}},{key:"getCheck",value:function(){return this.check}},{key:"load",value:function(e){this.getColorMode(),this.page=e,this.check="darkMode"==this.getColorMode(),this.rd.addClass(document.querySelector(e),this.colorMode)}},{key:"setColorMode",value:function(e){this.colorMode="darkMode"==e?"lightMode":"darkMode",localStorage.setItem("colorMode",this.colorMode),this.rd.removeClass(document.querySelector(this.page),e),this.rd.addClass(document.querySelector(this.page),this.colorMode),this.check=!this.check}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(el))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function ED(e,t){if(1&e&&(Gs(0,"option",32),Iu(1),Ws()),2&e){var n=t.$implicit,r=ou();cu("value",n.site),qs("ngClass",r.getAccountRoles().includes(n.site)?"d-block":"d-none"),ha(1),xu(n.description)}}function OD(e,t){if(1&e&&(Gs(0,"small",33),Iu(1),Ws()),2&e){var n=ou();ha(1),xu(n.errorMessage)}}function TD(e,t){1&e&&Ys(0,"img",34)}function AD(e,t){1&e&&Ys(0,"img",35)}function RD(e,t){1&e&&(Gs(0,"span",36),Iu(1,"\u231b"),Ws())}function PD(e,t){if(1&e){var n=Js();Gs(0,"button",37),nu("click",function(){_n(n);var e=ou();return e.refresh(e.nostraProjects.batch_id)}),Gs(1,"mat-icon"),Iu(2,"autorenew"),Ws(),Iu(3,"Refresh"),Ws()}}function ID(e,t){if(1&e&&(Gs(0,"tr"),Gs(1,"td",38),Iu(2),Ws(),Ws()),2&e){var n=t.$implicit;ha(2),Mu(" ",n.primaveraNumber,"")}}function xD(e,t){if(1&e&&(Gs(0,"small",33),Iu(1),Ws()),2&e){var n=ou();ha(1),xu(n.errorMessage)}}var MD=function(){return{SUCCESSFUL:"success",ERRORS:"fail",WAITING:"running"}},DD=function(){var e=function(){function e(t,n,r,i){H(this,e),this.authService=t,this.uploaderService=n,this.cmService=r,this.app=i,this.site="",this.errorMessage="",this.displayedColumns=["site","project"]}return j(e,[{key:"ngOnInit",value:function(){this.cmService.load("body > app-root > html"),this.getSites(),this.clearResponse(),this.check=this.cmService.getCheck(),this.form=this.buildForm(),this.form.get("site").disable()}},{key:"getSites",value:function(){var e=this;this.app.setTriggerLoad(!0),this.uploaderService.authorize().subscribe(function(t){e.sites=t,e.hasSiteError=!1,e.form.get("site").enable(),e.app.setTriggerLoad(!1)},function(t){e.errorMessage=t.status<500?t.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",e.hasSiteError=!0,e.app.setTriggerLoad(!1)})}},{key:"sync",value:function(){var e=this;this.clearResponse(),this.app.setTriggerLoad(!0),this.site=this.form.value.site,this.uploaderService.sync(this.site).subscribe(function(t){e.nostraProjects=t,e.app.setTriggerLoad(!1),e.hasProjectError=!1},function(t){e.errorMessage=t.status<500?t.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",e.app.setTriggerLoad(!1),e.hasProjectError=!0})}},{key:"refresh",value:function(e){var t=this;this.clearResponse(),this.app.setTriggerLoad(!0),this.uploaderService.refresh(e).subscribe(function(e){t.nostraProjects=e[0],t.app.setTriggerLoad(!1),t.hasProjectError=!1},function(e){t.errorMessage=e.status<500?e.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",t.app.setTriggerLoad(!1),t.hasProjectError=!0})}},{key:"buildForm",value:function(){var e=new Sv({});return this.displayedColumns.forEach(function(t){return e.addControl(t,new Cv(""))}),e}},{key:"setColorMode",value:function(){this.cmService.setColorMode(this.cmService.getColorMode()),this.check=this.cmService.getCheck()}},{key:"getAccountRoles",value:function(){var e;return null===(e=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===e?void 0:e.roles}},{key:"clearResponse",value:function(){this.nostraProjects={batch_id:"",status:"",message:"",projects:[{}]},this.errorMessage=""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(fO),zs(CD),zs(SD),zs(dD))},e.\u0275cmp=Tt({type:e,selectors:[["app-uploader"]],features:[Gc([CD])],decls:59,vars:18,consts:[[1,"card-body"],[1,"container",2,"margin-top","20px","max-width","50%"],[1,"row","float-right","mr-2"],[3,"checked","ngModel","title","ngModelChange"],["id","updatePgTitle"],[1,"updatePg","bg"],[1,"panel"],[1,"float-left","mr-3"],[2,"line-height","1.8"],[3,"formGroup"],["formControlName","site"],[3,"value","ngClass",4,"ngFor","ngForOf"],["id","syncBtn",1,"btn","btn-warning",3,"disabled","click"],["class","warning",4,"ngIf"],[1,"sync","hideOnSync"],[1,"sync","panel","hideOnSync"],[1,"d-flex"],["id","resultsTable",1,"table-bordered","float-left"],[1,"table-active","pl-2","pr-2","text-nowrap"],[1,"p-1","text-nowrap","w-100","pl-2"],[1,"table-active","pl-2","pr-2","text-nowrap","border-bottom"],[1,"w-25","table-active","pl-2","border-bottom"],[1,"p-1","statusCol","pl-2",3,"ngClass"],["class","mx-auto ms-auto d-block","src","../../assets/success.png","height","20px",4,"ngIf"],["class","mx-auto ms-auto d-block","src","../../assets/fail.png","height","20px",4,"ngIf"],["class","mx-auto ms-auto d-block","class","hourglass",4,"ngIf"],[2,"margin-left","14px"],["id","refreshNpBtn","class","btn btn-warning float-right align-self-end",3,"click",4,"ngIf"],["id","projTable",1,"table-bordered","w-100"],[1,"text-center"],[1,"table-active","p-2"],[4,"ngFor","ngForOf"],[3,"value","ngClass"],[1,"warning"],["src","../../assets/success.png","height","20px",1,"mx-auto","ms-auto","d-block"],["src","../../assets/fail.png","height","20px",1,"mx-auto","ms-auto","d-block"],[1,"hourglass"],["id","refreshNpBtn",1,"btn","btn-warning","float-right","align-self-end",3,"click"],[1,"p-2"]],template:function(e,t){1&e&&(Gs(0,"body"),Gs(1,"div",0),Gs(2,"div",1),Gs(3,"div",2),Gs(4,"mat-slide-toggle",3),nu("ngModelChange",function(e){return t.check=e})("ngModelChange",function(){return t.setColorMode()}),Ws(),Ws(),Gs(5,"h1",4),Iu(6,"MILESTONE UPDATE"),Ws(),Gs(7,"small"),Iu(8,"Execute a schedule refresh on Nostra."),Ws(),Gs(9,"div",5),Gs(10,"div",6),Gs(11,"div",7),Gs(12,"h3",8),Iu(13,"CHOOSE SITE : "),Ws(),Ws(),Gs(14,"div"),Gs(15,"form",9),Gs(16,"select",10),js(17,ED,2,3,"option",11),Ws(),Gs(18,"button",12),nu("click",function(){return t.sync()}),Gs(19,"mat-icon"),Iu(20,"autorenew"),Ws(),Iu(21," Synchronise"),Ws(),Ys(22,"br"),js(23,OD,2,1,"small",13),Ws(),Ws(),Ws(),Ys(24,"hr",14),Gs(25,"div",15),Gs(26,"h3"),Iu(27,"RESULTS: "),Ws(),Gs(28,"div",16),Gs(29,"table",17),Gs(30,"tbody"),Gs(31,"tr"),Gs(32,"th",18),Iu(33,"Message"),Ws(),Gs(34,"td",19),Iu(35),Ws(),Ws(),Gs(36,"tr"),Gs(37,"th",20),Iu(38,"Batch ID"),Ws(),Gs(39,"td",19),Iu(40),Ws(),Ws(),Gs(41,"tr"),Gs(42,"th",21),Iu(43,"Status"),Ws(),Gs(44,"td",22),js(45,TD,1,0,"img",23),js(46,AD,1,0,"img",24),js(47,RD,2,0,"span",25),Gs(48,"span",26),Iu(49),Ws(),Ws(),Ws(),Ws(),Ws(),js(50,PD,4,0,"button",27),Ws(),Ys(51,"hr"),Gs(52,"table",28),Gs(53,"tbody",29),Gs(54,"th",30),Iu(55,"PRIMAVERA PROJECT #"),Ws(),js(56,ID,3,1,"tr",31),Ws(),Ws(),Ws(),Ys(57,"br"),js(58,xD,2,1,"small",13),Ws(),Ws(),Ws(),Ws()),2&e&&(ha(4),lu("title","",t.cmService.getColorMode()," on"),qs("checked",!1)("ngModel",t.check),ha(11),qs("formGroup",t.form),ha(2),qs("ngForOf",t.sites),ha(1),qs("disabled",""==t.form.value.site),ha(5),qs("ngIf",t.hasSiteError),ha(12),xu(t.nostraProjects.message),ha(5),xu(t.nostraProjects.batch_id),ha(4),qs("ngClass",Ql(17,MD)[t.nostraProjects.status]),ha(1),qs("ngIf","SUCCESSFUL"==t.nostraProjects.status),ha(1),qs("ngIf","ERRORS"==t.nostraProjects.status),ha(1),qs("ngIf","WAITING"==t.nostraProjects.status||"RUNNING"==t.nostraProjects.status),ha(2),xu(t.nostraProjects.status),ha(1),qs("ngIf",0==t.hasProjectError),ha(6),qs("ngForOf",t.nostraProjects.projects),ha(2),qs("ngIf",1==t.hasProjectError))},directives:[oD,$p,Iv,xv,ev,Lv,jv,Uv,Tf,fx,Rf,Ef,Bv,Gv],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}',"#syncBtn[_ngcontent-%COMP%], #refreshNpBtn[_ngcontent-%COMP%]{padding:3px 6px 0 1px;font-size:13px;font-weight:bold;margin-left:20px;margin-bottom:3px}#syncBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], #refreshNpBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{top:5px;font-size:18px;vertical-align:middle}#updatePgTitle[_ngcontent-%COMP%]{line-height:0}.panel[_ngcontent-%COMP%]{padding-left:10px;border-left:4px solid;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 0 1%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 0 1%}.warning[_ngcontent-%COMP%]{color:red}.hourglass[_ngcontent-%COMP%], #resultsTable[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding:0;float:left}.hourglass[_ngcontent-%COMP%]{display:block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}"]}),e}(),ND={headers:new bO({"Content-Type":"application/json"})},LD=function(){var e=function(){function e(t,n){H(this,e),this.http=t,this.nBatchesUrl="".concat(_D,"/ui/batch/all/status"),this.handleError=n.createHandleError("BatchesService")}return j(e,[{key:"getBatches",value:function(){return this.http.get(this.nBatchesUrl,ND).pipe(yD(36e4))}},{key:"getBatchDetails",value:function(e,t){return this.http.get("".concat(_D,"/ui/batch/").concat(e,"/").concat(t),ND).pipe(yD(36e4),zw(this.handleError("getBatchDetails",["Data Not Available"])))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ui(LO),ui(kD))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e}(),FD=function(){var e=function(){function e(){H(this,e)}return j(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Dt({name:"prettyprint",type:e,pure:!0}),e}(),UD=["modal"],HD=["formDirective"];function VD(e,t){if(1&e){var n=Js();Gs(0,"th",37),Gs(1,"input",38),nu("keyup",function(e){return _n(n),ou().filter(e.target.value,!1)})("search",function(e){return _n(n),ou().filter(e.target.value,!1)}),Ws(),Gs(2,"mat-icon"),Iu(3,"search"),Ws(),Ws()}}var jD=function(e){return[e]};function BD(e,t){if(1&e&&(Gs(0,"td",39),$l(1,"lowercase"),Iu(2),Ws()),2&e){var n=t.$implicit;qs("ngClass",Xl(4,jD,""==n.status?"running border-0":eh(1,2,n.status))),ha(2),Mu(" ",n.batch_input.site," ")}}function zD(e,t){if(1&e){var n=Js();Gs(0,"th",37),Gs(1,"input",40),nu("keyup",function(e){return _n(n),ou().filter(e.target.value,!1)})("search",function(e){return _n(n),ou().filter(e.target.value,!1)}),Ws(),Gs(2,"mat-icon"),Iu(3,"search"),Ws(),Ws()}}function qD(e,t){if(1&e&&(Gs(0,"td",39),$l(1,"lowercase"),Iu(2),Ws()),2&e){var n=t.$implicit;qs("ngClass",Xl(4,jD,""==n.status?"running":eh(1,2,n.status))),ha(2),Mu(" ",n.batch_input.entity," ")}}function KD(e,t){if(1&e){var n=Js();Gs(0,"th",41),Gs(1,"select",42),nu("change",function(e){return _n(n),ou().filter(e.target.options.selectedIndex,!1)}),Ys(2,"option"),Gs(3,"option",43),Iu(4,"SUCCESSFUL"),Ws(),Gs(5,"option",44),Iu(6,"ERRORS"),Ws(),Gs(7,"option",45),Iu(8,"RUNNING"),Ws(),Ws(),Ws()}}function GD(e,t){1&e&&Ys(0,"img",49),2&e&&cu("matTooltip",ou().$implicit.status)}function WD(e,t){1&e&&Ys(0,"img",50),2&e&&cu("matTooltip",ou().$implicit.status)}function YD(e,t){1&e&&(Gs(0,"span",51),Iu(1,"\u231b"),Ws()),2&e&&cu("matTooltip",ou().$implicit.status)}function QD(e,t){if(1&e&&(Gs(0,"td",39),$l(1,"lowercase"),js(2,GD,1,1,"img",46),js(3,WD,1,1,"img",47),js(4,YD,2,1,"span",48),Ws()),2&e){var n=t.$implicit;qs("ngClass",Xl(6,jD,""==n.status?"running":eh(1,4,n.status))),ha(2),qs("ngIf","SUCCESSFUL"==n.status),ha(1),qs("ngIf","ERRORS"==n.status),ha(1),qs("ngIf","RUNNING"==n.status)}}function XD(e,t){if(1&e){var n=Js();Gs(0,"th",37),Gs(1,"input",52),nu("keyup",function(e){return _n(n),ou().filter(e.target.value,!1)})("search",function(e){return _n(n),ou().filter(e.target.value,!1)}),Ws(),Gs(2,"mat-icon"),Iu(3,"search"),Ws(),Ws()}}function ZD(e,t){if(1&e){var n=Js();Gs(0,"button",56),nu("click",function(){_n(n);var e=ou().$implicit;return ou().openDialog(e.batch_id,"errors",!0)}),Gs(1,"mat-icon",57),Iu(2,"launch"),Ws(),Ws()}2&e&&qs("matTooltipPosition","right")}function JD(e,t){if(1&e){var n=Js();Gs(0,"td",53),$l(1,"lowercase"),Iu(2),js(3,ZD,3,1,"button",54),Ys(4,"br"),Gs(5,"button",55),nu("click",function(){return _n(n),ou().copy()}),Gs(6,"small"),Iu(7),Ws(),Gs(8,"div",36),Gs(9,"mat-icon"),Iu(10),Ws(),Ws(),Ws(),Ws()}if(2&e){var r=t.$implicit,i=ou();qs("ngClass",Xl(10,jD,i.hasError?"text-danger text-center ml-0 mr-5 running":eh(1,8,r.status))),ha(2),Mu(" ",r.message," "),ha(1),qs("ngIf","ERRORS"==r.status),ha(2),cu("matTooltip",i.isCopied?r.batch_id:"Copy Batch ID to clipboard"),qs("cdkCopyToClipboard",r.batch_id)("matTooltipPosition","right"),ha(2),Mu("",r.batch_id," "),ha(3),xu(i.isCopied?"done":"content_copy")}}function $D(e,t){1&e&&Ys(0,"th",58)}function eN(e,t){if(1&e&&(Gs(0,"small",59),Iu(1),Ws()),2&e){var n=t.$implicit;ha(1),Mu("",n.batch_id," ")}}function tN(e,t){if(1&e){var n=Js();Gs(0,"th",37),Gs(1,"input",60),nu("change",function(e){return _n(n),ou().filter(e.target.value,!1)}),Ws(),Ws()}}function nN(e,t){if(1&e&&(Ys(0,"td",61),$l(1,"lowercase")),2&e){var n=t.$implicit,r=ou();qs("ngClass",Xl(4,jD,""==n.status?"running border-0":eh(1,2,n.status)))("innerHTML",r.splitTimeString(n.batch_start_time),to)}}function rN(e,t){1&e&&(Gs(0,"th",37),Iu(1," DETAILS "),Ws())}function iN(e,t){if(1&e){var n=Js();Gs(0,"button",65),nu("click",function(){_n(n);var e=ou().$implicit;return ou().openDialog(e.batch_input,"",!1)}),Gs(1,"mat-icon",66),Iu(2,"system_update_alt"),Ws(),Ws()}}function oN(e,t){if(1&e){var n=Js();Gs(0,"button",67),nu("click",function(){_n(n);var e=ou().$implicit;return ou().openDialog(e.batch_id,"status/projects",!0)}),Gs(1,"mat-icon"),Iu(2,"format_list_bulleted"),Ws(),Ws()}}function aN(e,t){if(1&e&&(Gs(0,"td",62),$l(1,"lowercase"),js(2,iN,3,0,"button",63),js(3,oN,3,0,"button",64),Ws()),2&e){var n=t.$implicit;qs("ngClass",Xl(5,jD,""==n.status?"running":eh(1,3,n.status))),ha(2),qs("ngIf",""!=n.status),ha(1),qs("ngIf",""!=n.status)}}function sN(e,t){1&e&&Ys(0,"tr",68)}function uN(e,t){1&e&&Ys(0,"tr",69)}var cN=function(){return[5,10,25,100]},lN=$E.forRoot([{path:"",component:function(){var e=function(){function e(t,n,r,i,o){H(this,e),this.cmService=t,this.BatchesService=n,this.prettyPrint=r,this.authService=i,this.app=o,this.searchFieldOpen=!1,this.displayedColumns=["batchId","site","object","status","message","startTime","additional"]}return j(e,[{key:"ngOnInit",value:function(){this.getBatches(),this.cmService.load(".app-frame"),this.check=this.cmService.getCheck(),this.isCopied=!1,this.form=this.buildForm()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator}},{key:"getBatches",value:function(){var e=this;this.app.setTriggerLoad(!0),this.BatchesService.getBatches().subscribe(function(t){e.hasError=!1,0==t.length&&(t=[{batch_input:{site:"",object:""},batch_stats:"",status:"",message:"Loading successful: No batch found.",batch_start_time:"",resources:""}]),e.dataSource=new ZI(t),e.dataSource.paginator=e.paginator,e.app.setTriggerLoad(!1)},function(t){var n;n=404==t.status?"No Batch Found":t.status<500?JSON.stringify(t.error.message):"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",e.dataSource=new ZI([{batch_input:{site:"",object:""},batch_stats:"",status:"",message:n,batch_start_time:"",resources:""}]),e.dataSource.paginator=e.paginator,e.hasError=!0,e.app.setTriggerLoad(!1)})}},{key:"buildForm",value:function(){var e=new Sv({});return this.displayedColumns.forEach(function(t){return e.addControl(t,new Cv(""))}),e}},{key:"getBatchDetails",value:function(e,t){var n=this;this.BatchesService.getBatchDetails(e,t).subscribe(function(e){return n.popUp=e})}},{key:"setColorMode",value:function(){this.cmService.setColorMode(this.cmService.getColorMode()),this.check=this.cmService.getCheck()}},{key:"copy",value:function(){var e=this;this.isCopied=!0,setTimeout(function(){e.isCopied=!1},1e3)}},{key:"filter",value:function(e,t){var n=this,r=this.form.value;t?(this.dataSource.filterPredicate=null,this.formDirective.resetForm(),this.form=this.buildForm()):this.dataSource.filterPredicate=function(e){return-1!=n.cut(e.batch_input.site).indexOf(r.site)&&-1!=n.cut(e.batch_input.entity).indexOf(n.cut(r.object))&&(n.cut(e.message).includes(n.cut(r.message))||-1!=n.cut(e.batch_id).indexOf(n.cut(r.message)))&&-1!=e.status.indexOf(r.status)&&n.dateDiff(e.batch_start_time,r.startTime)},this.dataSource.filter=e}},{key:"dateDiff",value:function(e,t){return""==t||new Date(t).getDate()==new Date(e).getDate()}},{key:"splitString",value:function(e){return e.replace(/(?!^)([A-Z]|\d+)/g," $1")}},{key:"splitTimeString",value:function(e){return e.replace("T","
").replace(/\..*/,"")}},{key:"cut",value:function(e){return null==e?"":e.trim().toLocaleLowerCase()}},{key:"backToTop",value:function(){document.querySelector("#body").scrollTo(0,0)}},{key:"openDialog",value:function(e,t,n){this.isPopUpOpen=!0,this.popUp="Loading...",n?this.getBatchDetails(e,t):this.popUp=e}},{key:"close",value:function(){this.popUp="Loading...",this.isPopUpOpen=!1}},{key:"getAccountRoles",value:function(){var e;return null===(e=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===e?void 0:e.roles}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zs(SD),zs(LD),zs(FD),zs(fO),zs(dD))},e.\u0275cmp=Tt({type:e,selectors:[["app-batches"]],viewQuery:function(e,t){var n;(1&e&&(vh(UD,5),vh(WM,5),vh(HD,5)),2&e)&&(ph(n=mh())&&(t.modal=n.first),ph(n=mh())&&(t.paginator=n.first),ph(n=mh())&&(t.formDirective=n.first))},features:[Gc([LD,FD])],decls:58,vars:24,consts:[["id","body"],[1,"card-body"],[1,"d-inline-flex","w-100","justify-content-between","position-relative"],[1,"row","float-left"],[1,"row","float-right","mr-2"],["ngDefaultControl","",3,"checked","ngModel","matTooltip","ngModelChange"],[1,"sticky"],["showFirstLastButtons","",3,"pageSizeOptions"],["paginator",""],["id","backToTopBtn","matTooltip","Back to top",1,"btn","btn-sucess","round",3,"click"],["id","refreshBtn","matTooltip","Refresh",1,"btn","btn-info",3,"click"],["id","resetBtn","matTooltip","Reset Search",1,"btn","btn-danger",3,"click"],[1,"p-0",3,"formGroup"],["formDirective","ngForm"],["mat-table","","matSort","",1,"table",3,"dataSource"],["matColumnDef","site"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","object"],["matColumnDef","status"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["matColumnDef","message"],["mat-cell","","class","statusCol emText",3,"ngClass",4,"matCellDef"],["matColumnDef","batchId",1,"d-none"],["style","display: none;","mat-header-cell","",4,"matHeaderCellDef"],["style","display: none;",4,"matCellDef"],["matColumnDef","startTime"],["mat-cell","","class","timeCol",3,"ngClass","innerHTML",4,"matCellDef"],["matColumnDef","additional"],["mat-cell","","class","detailsCol",3,"ngClass",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["id","popUpBox",3,"ngClass"],[2,"width","100%","height","82%",3,"innerHTML"],[1,"btn-close","btn","btn-danger","float-right",3,"click"],[1,"btn","btn-outline","float-right",3,"cdkCopyToClipboard","matTooltip","matTooltipPosition","click"],[1,"copy"],["mat-header-cell",""],["type","search","id","site","formControlName","site","autocomplete","off","placeholder","SITE",3,"keyup","search"],["mat-cell","",3,"ngClass"],["type","search","id","object","formControlName","object","autocomplete","off","placeholder","OBJ",3,"keyup","search"],["mat-header-cell","",1,"text-center"],["formControlName","status",3,"change"],["value","SUCCESSFUL"],["value","ERRORS"],["value","RUNNING"],["class","mx-auto ms-auto d-block","src","../../assets/success.png","height","40px",3,"matTooltip",4,"ngIf"],["class","mx-auto ms-auto d-block","src","../../assets/fail.png","height","40px",3,"matTooltip",4,"ngIf"],["class","mx-auto ms-auto d-block","class","hourglass",3,"matTooltip",4,"ngIf"],["src","../../assets/success.png","height","40px",1,"mx-auto","ms-auto","d-block",3,"matTooltip"],["src","../../assets/fail.png","height","40px",1,"mx-auto","ms-auto","d-block",3,"matTooltip"],[1,"hourglass",3,"matTooltip"],["type","search","id","message","formControlName","message","autocomplete","off","placeholder","BATCH ID / MESSAGE",3,"keyup","search"],["mat-cell","",1,"statusCol","emText",3,"ngClass"],["type","button","matTooltip","View All Errors","style","padding: 4px 2px 0px 2px;","class","btn btn-link border-0",3,"matTooltipPosition","click",4,"ngIf"],[1,"copy-container","d-flex",3,"cdkCopyToClipboard","matTooltip","matTooltipPosition","click"],["type","button","matTooltip","View All Errors",1,"btn","btn-link","border-0",2,"padding","4px 2px 0px 2px",3,"matTooltipPosition","click"],[2,"color","coral","font-size","19px","margin-bottom","3px"],["mat-header-cell","",2,"display","none"],[2,"display","none"],["formControlName","startTime","type","text","placeholder","START TIME (UTC+0)","onFocus","(this.type='date')","onBlur","(this.type='text')",3,"change"],["mat-cell","",1,"timeCol",3,"ngClass","innerHTML"],["mat-cell","",1,"detailsCol",3,"ngClass"],["type","button","matTooltip","Batch Input",3,"click",4,"ngIf"],["type","button","matTooltip","Related Projects",3,"click",4,"ngIf"],["type","button","matTooltip","Batch Input",3,"click"],[2,"width","100%","height","100%","background","-webkit-linear-gradient(rgb(42, 138, 42), rgb(160, 185, 18))","-webkit-background-clip","text","-webkit-text-fill-color","transparent"],["type","button","matTooltip","Related Projects",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Gs(0,"body",0),Gs(1,"div",1),Gs(2,"div",2),Gs(3,"h1",3),Iu(4,"BATCH HISTORY"),Ws(),Gs(5,"div",4),Gs(6,"mat-slide-toggle",5),nu("ngModelChange",function(e){return t.check=e})("ngModelChange",function(){return t.setColorMode()}),Ws(),Ws(),Ws(),Gs(7,"div",6),Ys(8,"mat-paginator",7,8),Gs(10,"button",9),nu("click",function(){return t.backToTop()}),Gs(11,"mat-icon"),Iu(12,"expand_less"),Ws(),Ws(),Gs(13,"button",10),nu("click",function(){return t.getBatches()}),Gs(14,"mat-icon"),Iu(15,"autorenew"),Ws(),Ws(),Gs(16,"button",11),nu("click",function(){return t.filter("",!0)}),Gs(17,"mat-icon"),Iu(18,"youtube_searched_for"),Ws(),Ws(),Ws(),Gs(19,"form",12,13),Gs(21,"table",14),Qs(22,15),js(23,VD,4,0,"th",16),js(24,BD,3,6,"td",17),Xs(),Qs(25,18),js(26,zD,4,0,"th",16),js(27,qD,3,6,"td",17),Xs(),Qs(28,19),js(29,KD,9,0,"th",20),js(30,QD,5,8,"td",17),Xs(),Qs(31,21),js(32,XD,4,0,"th",16),js(33,JD,11,12,"td",22),Xs(),Qs(34,23),js(35,$D,1,0,"th",24),js(36,eN,2,1,"small",25),Xs(),Qs(37,26),js(38,tN,2,0,"th",16),js(39,nN,2,6,"td",27),Xs(),Qs(40,28),js(41,rN,2,0,"th",16),js(42,aN,4,7,"td",29),Xs(),js(43,sN,1,0,"tr",30),js(44,uN,1,0,"tr",31),Ws(),Gs(45,"section",32),Ys(46,"pre",33),$l(47,"prettyprint"),Gs(48,"footer"),Ys(49,"hr"),Gs(50,"button",34),nu("click",function(){return t.close()}),Iu(51,"Close"),Ws(),Gs(52,"button",35),nu("click",function(){return t.copy()}),$l(53,"prettyprint"),Gs(54,"div",36),Iu(55),Gs(56,"mat-icon"),Iu(57),Ws(),Ws(),Ws(),Ws(),Ws(),Ws(),Ws(),Ws()),2&e&&(ha(6),lu("matTooltip","",t.cmService.getColorMode()," on"),qs("checked",!1)("ngModel",t.check),ha(2),qs("pageSizeOptions",Ql(19,cN)),ha(11),qs("formGroup",t.form),ha(2),qs("dataSource",t.dataSource),ha(22),qs("matHeaderRowDef",t.displayedColumns),ha(1),qs("matRowDefColumns",t.displayedColumns),ha(1),qs("ngClass",Xl(20,jD,t.isPopUpOpen?"opacity-100 d-block":"opacity-0 d-none")),ha(1),qs("innerHTML",eh(47,15,t.popUp),to),ha(6),cu("matTooltip",t.isCopied?"Copied":"Copy to clipboard"),qs("cdkCopyToClipboard",Xl(22,jD,eh(53,17,t.popUp)))("matTooltipPosition","right"),ha(3),Mu(" ",t.isCopied?"Copied":"Copy to clipboard"," "),ha(2),xu(t.isCopied?"done":"content_copy"))},directives:[oD,Lp,$p,Iv,Tx,WM,fx,xv,ev,Lv,VI,zI,BI,jI,GI,WI,Ef,Pk,qI,Uv,KI,jv,Bv,Gv,Rf,YI,QI],pipes:[FD,Bf],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}',"table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%]{padding:10px;font-size:15px}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .emText[_ngcontent-%COMP%]{font-size:17px;font-weight:bold}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol[_ngcontent-%COMP%]{color:gray;width:17%}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.successful[_ngcontent-%COMP%]{border-right:1px solid rgba(93,168,90,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.errors[_ngcontent-%COMP%]{border-right:1px solid rgba(196,117,80,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.running[_ngcontent-%COMP%]{border-right:1px solid rgba(133,132,132,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .detailsCol[_ngcontent-%COMP%]{width:14%}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] #status[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .hourglass[_ngcontent-%COMP%]{padding:0;float:center}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .hourglass[_ngcontent-%COMP%]{display:block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:not(.copy){width:45px;border:none;text-align:left;box-shadow:none;margin-right:3%;margin-bottom:6px;padding-left:6.5px;padding-bottom:8px;vertical-align:top;background-color:transparent}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:not(.copy) mat-icon[_ngcontent-%COMP%]{font-size:30px}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:hover{transition:all .2s;background-color:#bbbaba1a}input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{width:100%;height:30px;color:#fff;border:transparent;margin-left:-4px;padding:0 0 0 4px;background-color:transparent}input[_ngcontent-%COMP%]::-moz-placeholder{padding-left:4px}input[_ngcontent-%COMP%]:-ms-input-placeholder{padding-left:4px}input[_ngcontent-%COMP%]::placeholder{padding-left:4px}th[_ngcontent-%COMP%]:nth-child(2), th[_ngcontent-%COMP%]:nth-child(3){width:120px}th[_ngcontent-%COMP%]:nth-child(2) input[_ngcontent-%COMP%], th[_ngcontent-%COMP%]:nth-child(3) input[_ngcontent-%COMP%]{width:70%}th[_ngcontent-%COMP%]:nth-child(2) input[_ngcontent-%COMP%]:focus, th[_ngcontent-%COMP%]:nth-child(3) input[_ngcontent-%COMP%]:focus{padding-left:4%}th[_ngcontent-%COMP%]:nth-child(4){width:160px}th[_ngcontent-%COMP%]:nth-child(4) select[_ngcontent-%COMP%]{border-bottom:#aaa 1.5px solid}th[_ngcontent-%COMP%]:nth-child(5){width:38%}th[_ngcontent-%COMP%]:nth-child(7){width:10%}th[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{opacity:0}th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1;transition:all .4s}.statusCol[_ngcontent-%COMP%]{font-weight:bold}.statusCol[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-family:consolas}.successful.ng-star-inserted[_ngcontent-%COMP%]:first-of-type{border-left:#b9c406 4px solid}.errors.ng-star-inserted[_ngcontent-%COMP%]:first-of-type{border-left:#f06553 4px solid}.running.ng-star-inserted[_ngcontent-%COMP%]:first-of-type, .mat-column-fileName.running[_ngcontent-%COMP%]{border-left:#bbb 4px solid}.hourglass[_ngcontent-%COMP%]{display:inline-block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.copy-container[_ngcontent-%COMP%]{border:none;z-index:1;transition:all .2s;margin-left:-1%;background-color:transparent}.copy-container[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%]{border:none;padding:0;opacity:0;z-index:1;font-size:11px;transition:all .2s;background-color:transparent}.copy-container[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:gray;z-index:1;font-size:13px;margin-top:2px}.copy-container[_ngcontent-%COMP%]:hover .copy[_ngcontent-%COMP%]{opacity:1}.sticky[_ngcontent-%COMP%]{left:23%;width:auto;border:2px solid rgba(100,100,100,.2);bottom:0px;display:-ms-inline-flexbox;display:inline-flex;z-index:100;opacity:.6;position:fixed}.sticky[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] .mat-paginator-outer-container[_ngcontent-%COMP%]{width:auto;display:-ms-flexbox;display:flex;padding:0}.sticky[_ngcontent-%COMP%] mat-paginator-container[_ngcontent-%COMP%]{padding:0}.sticky[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{float:left;padding-left:30px}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%]{float:right;right:0%;width:45px;height:60px;bottom:0px;padding:1px;text-align:center;border-radius:0%}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff}.sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:29px;margin-right:5px}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%]{background:linear-gradient(#2a8a2a,#a0b912)}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:41px;margin-right:30px;margin-bottom:10px}.sticky[_ngcontent-%COMP%]:hover{transition:all .2s;opacity:1}section[_ngcontent-%COMP%]{margin:0 17%;bottom:16%}#popUpBox[_ngcontent-%COMP%]{width:60%;height:70%;padding:20px;position:fixed;font-size:18px;overflow-y:scroll;box-shadow:0 3px 10px #0003;border-radius:4px}"]}),e}(),canActivate:[vO]},{path:"msUpload",component:DD,canActivate:[vO,pD],data:{expectedRole:["lin","gsk"]}},{path:"**",redirectTo:""}],{relativeLinkResolution:"legacy"}),hN=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),dN=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,hN.decimalToHex(e[0])+hN.decimalToHex(e[1])+hN.decimalToHex(e[2])+hN.decimalToHex(e[3])+"-"+hN.decimalToHex(e[4])+hN.decimalToHex(e[5])+"-"+hN.decimalToHex(e[6])+hN.decimalToHex(e[7])+"-"+hN.decimalToHex(e[8])+hN.decimalToHex(e[9])+"-"+hN.decimalToHex(e[10])+hN.decimalToHex(e[11])+hN.decimalToHex(e[12])+hN.decimalToHex(e[13])+hN.decimalToHex(e[14])+hN.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,i="",o=0;o<36;o++)"-"!==t[o]&&"4"!==t[o]&&(r=16*Math.random()|0),"x"===t[o]?i+=n[r]:"y"===t[o]?(r&=3,i+=n[r|=8]):i+=t[o];return i}},e.isGuid=function(e){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(e)},e}(),fN=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,i=0;i>>6),o[a++]=128+(63&t)):t<65536?(o[a++]=224+(t>>>12),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<2097152?(o[a++]=240+(t>>>18),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<67108864?(o[a++]=248+(t>>>24),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):(o[a++]=252+(t>>>30),o[a++]=128+(t>>>24&63),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t));return o},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r251&&n<254&&i+5247&&n<252&&i+4239&&n<248&&i+3223&&n<240&&i+2191&&n<224&&i+1>>(r=a%3)&24),(2===r||e.length-a==1)&&(n+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(63&o)),o=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),vN=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return fN.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,""),r=n.length,i=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,o=new Uint8Array(i),a=void 0,s=void 0,u=0,c=0,l=0;l>>(16>>>a&24)&255;u=0}return o},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),gN=function(){function e(e){this.base64Encode=new pN,this.cryptoObj=e}return e.prototype.generateCodes=function(){return Ow(this,void 0,void 0,function(){var e,t;return Tw(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(32);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(t){throw Uw.createPkceNotGeneratedError(t)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return Ow(this,void 0,void 0,function(){var t,n;return Tw(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),Uw.createPkceNotGeneratedError(n);case 3:return[2]}})})},e}(),mN="SHA-256",yN=new Uint8Array([1,0,1]),_N=function(){function e(){if(!this.hasCryptoAPI())throw Uw.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:mN,modulusLength:2048,publicExponent:yN}}return e.prototype.sha256Digest=function(e){return Ow(this,void 0,void 0,function(){var t;return Tw(this,function(n){return t=fN.stringToUtf8Arr(e),[2,this.hasIECrypto()?this.getMSCryptoDigest(mN,t):this.getSubtleCryptoDigest(mN,t)]})})},e.prototype.getRandomValues=function(e){var t=window.msCrypto||window.crypto;if(!t.getRandomValues)throw Uw.createCryptoNotAvailableError("getRandomValues does not exist.");t.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(e,t):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,e,t)]})})},e.prototype.exportJwk=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return[2,this.hasIECrypto()?this.msCryptoExportJwk(e):window.crypto.subtle.exportKey(_w,e)]})})},e.prototype.importJwk=function(t,n,r){return Ow(this,void 0,void 0,function(){var i,o;return Tw(this,function(a){return i=e.getJwkString(t),o=fN.stringToArrayBuffer(i),[2,this.hasIECrypto()?this.msCryptoImportKey(o,n,r):window.crypto.subtle.importKey(_w,t,this._keygenAlgorithmOptions,n,r)]})})},e.prototype.sign=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.hasIECrypto()?this.msCryptoSign(e,t):window.crypto.subtle.sign(this._keygenAlgorithmOptions,e,t)]})})},e.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.getSubtleCryptoDigest=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},e.prototype.getMSCryptoDigest=function(e,t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,new Promise(function(n,r){var i=window.msCrypto.subtle.digest(e,t.buffer);i.addEventListener("complete",function(e){n(e.target.result)}),i.addEventListener("error",function(e){r(e)})})]})})},e.prototype.msCryptoGenerateKey=function(e,t){return Ow(this,void 0,void 0,function(){var n=this;return Tw(this,function(r){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.generateKey(n._keygenAlgorithmOptions,e,t);o.addEventListener("complete",function(e){r(e.target.result)}),o.addEventListener("error",function(e){i(e)})})]})})},e.prototype.msCryptoExportJwk=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return[2,new Promise(function(t,n){var r=window.msCrypto.subtle.exportKey(_w,e);r.addEventListener("complete",function(e){var r=fN.utf8ArrToString(new Uint8Array(e.target.result)).replace(/\r/g,"").replace(/\n/g,"").replace(/\t/g,"").split(" ").join("").replace("\0","");try{t(JSON.parse(r))}catch(i){n(i)}}),r.addEventListener("error",function(e){n(e)})})]})})},e.prototype.msCryptoImportKey=function(e,t,n){return Ow(this,void 0,void 0,function(){var r=this;return Tw(this,function(i){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.importKey(_w,e,r._keygenAlgorithmOptions,t,n);a.addEventListener("complete",function(e){i(e.target.result)}),a.addEventListener("error",function(e){o(e)})})]})})},e.prototype.msCryptoSign=function(e,t){return Ow(this,void 0,void 0,function(){var n=this;return Tw(this,function(r){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.sign(n._keygenAlgorithmOptions,e,t);o.addEventListener("complete",function(e){r(e.target.result)}),o.addEventListener("error",function(e){i(e)})})]})})},e.getJwkString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),bN=function(){function e(e,t,n){this.dbName=e,this.tableName=t,this.version=n,this.dbOpen=!1}return e.prototype.open=function(){return Ow(this,void 0,void 0,function(){var e=this;return Tw(this,function(t){return[2,new Promise(function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",function(t){t.target.result.createObjectStore(e.tableName)}),r.addEventListener("success",function(n){e.db=n.target.result,e.dbOpen=!0,t()}),r.addEventListener("error",function(e){return n(e)})})]})})},e.prototype.get=function(e){return Ow(this,void 0,void 0,function(){var t=this;return Tw(this,function(n){switch(n.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:n.sent(),n.label=2;case 2:return[2,new Promise(function(n,r){if(!t.db)return r(Uw.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);i.addEventListener("success",function(e){n(e.target.result)}),i.addEventListener("error",function(e){return r(e)})})]}})})},e.prototype.put=function(e,t){return Ow(this,void 0,void 0,function(){var n=this;return Tw(this,function(r){switch(r.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise(function(r,i){if(!n.db)return i(Uw.createDatabaseNotOpenError());var o=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);o.addEventListener("success",function(e){r(e.target.result)}),o.addEventListener("error",function(e){return i(e)})})]}})})},e.prototype.delete=function(e){return Ow(this,void 0,void 0,function(){var t=this;return Tw(this,function(n){switch(n.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:n.sent(),n.label=2;case 2:return[2,new Promise(function(n,r){if(!t.db)return r(Uw.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);i.addEventListener("success",function(e){n(void 0===e.target.result)}),i.addEventListener("error",function(e){return r(e)})})]}})})},e.prototype.clear=function(){return Ow(this,void 0,void 0,function(){var e=this;return Tw(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:t.sent(),t.label=2;case 2:return[2,new Promise(function(t,n){if(!e.db)return n(Uw.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).clear();r.addEventListener("success",function(e){t(void 0===e.target.result)}),r.addEventListener("error",function(e){return n(e)})})]}})})},e}(),kN=function(){function e(){this.browserCrypto=new _N,this.b64Encode=new pN,this.b64Decode=new vN,this.guidGenerator=new dN(this.browserCrypto),this.pkceGenerator=new gN(this.browserCrypto),this.cache=new bN(e.DB_NAME,e.TABLE_NAME,e.DB_VERSION)}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return Ow(this,void 0,void 0,function(){return Tw(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){return Ow(this,void 0,void 0,function(){var n,r,i,o,a,s,u;return Tw(this,function(c){switch(c.label){case 0:return[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return n=c.sent(),[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return r=c.sent(),i=_N.getJwkString({e:r.e,kty:r.kty,n:r.n}),[4,this.browserCrypto.sha256Digest(i)];case 3:return o=c.sent(),a=this.b64Encode.urlEncodeArr(new Uint8Array(o)),[4,this.browserCrypto.exportJwk(n.privateKey)];case 4:return s=c.sent(),[4,this.browserCrypto.importJwk(s,!1,["sign"])];case 5:return u=c.sent(),[4,this.cache.put(a,{privateKey:u,publicKey:n.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return c.sent(),[2,a]}})})},e.prototype.removeTokenBindingKey=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return[2,this.cache.delete(e)]})})},e.prototype.clearKeystore=function(){return Ow(this,void 0,void 0,function(){return Tw(this,function(e){return[2,this.cache.clear()]})})},e.prototype.signJwt=function(e,t){return Ow(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l;return Tw(this,function(h){switch(h.label){case 0:return[4,this.cache.get(t)];case 1:if(!(n=h.sent()))throw Uw.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return r=h.sent(),i=_N.getJwkString(r),o=this.b64Encode.urlEncode(JSON.stringify({alg:r.alg,type:_w})),e.cnf={jwk:JSON.parse(i)},a=this.b64Encode.urlEncode(JSON.stringify(e)),u=fN.stringToArrayBuffer(s=o+"."+a),[4,this.browserCrypto.sign(n.privateKey,u)];case 3:return c=h.sent(),l=this.b64Encode.urlEncodeArr(new Uint8Array(c)),[2,s+"."+l]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e.DB_VERSION=1,e.TABLE_NAME=(e.DB_NAME="msal.db")+".keys",e}(),wN=(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"}(wN||(wN={})),wN),CN=function(){function e(e,t,n){this.level=wN.Info,this.localCallback=e.loggerCallback||function(){},this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level="number"==typeof e.logLevel?e.logLevel:wN.Info,this.correlationId=e.correlationId||"",this.packageName=t||Uk.EMPTY_STRING,this.packageVersion=n||Uk.EMPTY_STRING}return e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n,r=(new Date).toUTCString();n=Nw.isEmpty(t.correlationId)?Nw.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]",this.executeCallback(t.logLevel,n+" : "+this.packageName+"@"+this.packageVersion+" : "+wN[t.logLevel]+" - "+e,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:wN.Error,containsPii:!1,correlationId:t||""})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:wN.Error,containsPii:!0,correlationId:t||""})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:wN.Warning,containsPii:!1,correlationId:t||""})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:wN.Warning,containsPii:!0,correlationId:t||""})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:wN.Info,containsPii:!1,correlationId:t||""})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:wN.Info,containsPii:!0,correlationId:t||""})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:wN.Verbose,containsPii:!1,correlationId:t||""})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:wN.Verbose,containsPii:!0,correlationId:t||""})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:wN.Trace,containsPii:!1,correlationId:t||""})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:wN.Trace,containsPii:!0,correlationId:t||""})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),SN={createNewGuid:function(){throw Pw.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw Pw.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw Pw.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})}},EN=function(e){function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return Mk(t,e),t}(Pw),ON=["interaction_required","consent_required","login_required"],TN=["message_only","additional_action","basic_action","user_password_expired","consent_required"],AN="no_tokens_found",RN=function(e){function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,t.prototype),o}return Mk(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&ON.indexOf(e)>-1,i=!!n&&TN.indexOf(n)>-1,o=!!t&&ON.some(function(e){return t.indexOf(e)>-1});return r||o||i},t.createNoTokensFoundError=function(){return new t(AN,"No refresh token found in the cache. Please sign-in.")},t}(Pw);function PN(e,t){if(Nw.isEmpty(e))throw Mw.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(r){throw Mw.createClientInfoDecodingError(r)}}function IN(e){if(Nw.isEmpty(e))throw Mw.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Jk.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?Uk.EMPTY_STRING:t[1]}}var xN=(function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs"}(xN||(xN={})),xN),MN=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case Zk.ADFS_ACCOUNT_TYPE:return tw.ADFS;case Zk.MSAV1_ACCOUNT_TYPE:return tw.MSA;case Zk.MSSTS_ACCOUNT_TYPE:return tw.MSSTS;case Zk.GENERIC_ACCOUNT_TYPE:return tw.GENERIC;default:throw Mw.createUnexpectedAccountTypeError()}},e.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}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||"",e.tenantId||""].join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,i,o,a,s,u){var c,l,h,d,f,p,v=new e;v.authorityType=Zk.MSSTS_ACCOUNT_TYPE,v.clientInfo=t,v.homeAccountId=n;var g=u||i&&i.getPreferredCache();if(!g)throw Mw.createInvalidCacheEnvironmentError();return v.environment=g,v.realm=(null===(c=null==r?void 0:r.claims)||void 0===c?void 0:c.tid)||"",v.oboAssertion=o,r&&(v.idTokenClaims=r.claims,v.localAccountId=(null===(l=null==r?void 0:r.claims)||void 0===l?void 0:l.oid)||(null===(h=null==r?void 0:r.claims)||void 0===h?void 0:h.sub)||"",v.username=(null===(d=null==r?void 0:r.claims)||void 0===d?void 0:d.preferred_username)||((null===(f=null==r?void 0:r.claims)||void 0===f?void 0:f.emails)?r.claims.emails[0]:""),v.name=null===(p=null==r?void 0:r.claims)||void 0===p?void 0:p.name),v.cloudGraphHostName=a,v.msGraphHost=s,v},e.createGenericAccount=function(t,n,r,i,o,a,s){var u,c,l,h,d=new e;d.authorityType=r&&r.authorityType===xN.Adfs?Zk.ADFS_ACCOUNT_TYPE:Zk.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm="",d.oboAssertion=i;var f=s||r&&r.getPreferredCache();if(!f)throw Mw.createInvalidCacheEnvironmentError();return n&&(d.localAccountId=(null===(u=null==n?void 0:n.claims)||void 0===u?void 0:u.oid)||(null===(c=null==n?void 0:n.claims)||void 0===c?void 0:c.sub)||"",d.username=(null===(l=null==n?void 0:n.claims)||void 0===l?void 0:l.upn)||"",d.name=(null===(h=null==n?void 0:n.claims)||void 0===h?void 0:h.name)||"",d.idTokenClaims=null==n?void 0:n.claims),d.environment=f,d.cloudGraphHostName=o,d.msGraphHost=a,d},e.generateHomeAccountId=function(e,t,n,r,i){var o,a=(null===(o=null==i?void 0:i.claims)||void 0===o?void 0:o.sub)?i.claims.sub:Uk.EMPTY_STRING;if(t===xN.Adfs)return a;if(e)try{var s=PN(e,r);if(!Nw.isEmpty(s.uid)&&!Nw.isEmpty(s.utid))return""+s.uid+Jk.CLIENT_INFO_SEPARATOR+s.utid}catch(u){}return n.verbose("No client info in response"),a},e.isAccountEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var i=e.idTokenClaims||{},o=t.idTokenClaims||{};r=i.iat===o.iat&&i.nonce===o.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&r},e}(),DN=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType)},e.prototype.generateType=function(){switch(this.credentialType){case $k.ID_TOKEN:return tw.ID_TOKEN;case $k.ACCESS_TOKEN:case $k.ACCESS_TOKEN_WITH_AUTH_SCHEME:return tw.ACCESS_TOKEN;case $k.REFRESH_TOKEN:return tw.REFRESH_TOKEN;default:throw Mw.createUnexpectedCredentialTypeError()}},e.getCredentialType=function(e){return-1!==e.indexOf($k.ACCESS_TOKEN.toLowerCase())?-1!==e.indexOf($k.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?$k.ACCESS_TOKEN_WITH_AUTH_SCHEME:$k.ACCESS_TOKEN:-1!==e.indexOf($k.ID_TOKEN.toLowerCase())?$k.ID_TOKEN:-1!==e.indexOf($k.REFRESH_TOKEN.toLowerCase())?$k.REFRESH_TOKEN:Uk.NOT_DEFINED},e.generateCredentialCacheKey=function(e,t,n,r,i,o,a,s){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,i,a),this.generateTargetForCacheKey(o)];return s===ow.POP&&u.push(s.toLowerCase()),u.join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){return[e,e===$k.REFRESH_TOKEN&&r||t,n||""].join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||"").toLowerCase()},e}(),NN=function(){function e(e){var t=this,n=e?Nw.trimArrayEntries(Fk(e)):[],r=n?Nw.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(e){return t.scopes.add(e)})}return e.fromString=function(t){return new e((t||"").split(" "))},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Dw.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!Nw.isEmpty(t)&&n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(e){return t.containsScope(e)})},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return Vk.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},e.prototype.appendScope=function(e){Nw.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(e){return t.appendScope(e)})}catch(n){throw Mw.createAppendScopeSetError(n)}},e.prototype.removeScope=function(e){if(Nw.isEmpty(e))throw Mw.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;Vk.forEach(function(t){e.scopes.delete(t)})},e.prototype.unionScopeSets=function(e){if(!e)throw Mw.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(e){return t.add(e.toLowerCase())}),this.scopes.forEach(function(e){return t.add(e.toLowerCase())}),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw Mw.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size1)throw Mw.createMultipleMatchingTokensInCacheError();return r[0]},e.prototype.readAccessTokenFromCache=function(e,t,n,r){var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:r===ow.POP?$k.ACCESS_TOKEN_WITH_AUTH_SCHEME:$k.ACCESS_TOKEN,clientId:e,realm:t.tenantId,target:n.printScopesLowerCase(),tokenType:r},o=this.getCredentialsFilteredBy(i),a=Object.keys(o.accessTokens).map(function(e){return o.accessTokens[e]}),s=a.length;if(s<1)return null;if(s>1)throw Mw.createMultipleMatchingTokensInCacheError();return a[0]},e.prototype.readRefreshTokenFromCache=function(e,t,n){var r=this.getCredentialsFilteredBy({homeAccountId:t.homeAccountId,environment:t.environment,credentialType:$k.REFRESH_TOKEN,clientId:e,familyId:n?"1":void 0}),i=Object.keys(r.refreshTokens).map(function(e){return r.refreshTokens[e]});return i.length<1?null:i[0]},e.prototype.readAppMetadataFromCache=function(e,t){var n=this.getAppMetadataFilteredBy({environment:e,clientId:t}),r=Object.keys(n).map(function(e){return n[e]}),i=r.length;if(i<1)return null;if(i>1)throw Mw.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e,t){var n=this.readAppMetadataFromCache(e,t);return!(!n||"1"!==n.familyId)},e.prototype.matchHomeAccountId=function(e,t){return!(!e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchOboAssertion=function(e,t){return!(!e.oboAssertion||t!==e.oboAssertion)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchTarget=function(e,t){if(e.credentialType!==$k.ACCESS_TOKEN&&e.credentialType!==$k.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)return!1;var n=NN.fromString(e.target),r=NN.fromString(t);return r.containsOnlyOIDCScopes()?r.removeScope(Uk.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),n.containsScopeSet(r)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(nw)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf("authority-metadata")},e.prototype.generateAuthorityMetadataCacheKey=function(e){return"authority-metadata-"+this.clientId+"-"+e},e.prototype.getSpecificCredential=function(e,t){switch(t){case $k.ID_TOKEN:return this.getIdTokenCredential(e);case $k.ACCESS_TOKEN:case $k.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case $k.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),UN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mk(t,e),t.prototype.setAccount=function(){throw Pw.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw Pw.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw Pw.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw Pw.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw Pw.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw Pw.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw Pw.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw Pw.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw Pw.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw Pw.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw Pw.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw Pw.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw Pw.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw Pw.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw Pw.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Nk(this,void 0,void 0,function(){return Lk(this,function(e){throw Pw.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t}(FN),HN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mk(t,e),t.createIdTokenEntity=function(e,n,r,i,o,a){var s=new t;return s.credentialType=$k.ID_TOKEN,s.homeAccountId=e,s.environment=n,s.clientId=i,s.secret=r,s.realm=o,s.oboAssertion=a,s},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===$k.ID_TOKEN},t}(DN),VN=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0;return e.nowSeconds()+n>r},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},e}(),jN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mk(t,e),t.createAccessTokenEntity=function(e,n,r,i,o,a,s,u,c,l,h,d){var f,p=new t;p.homeAccountId=e,p.credentialType=$k.ACCESS_TOKEN,p.secret=r;var v=VN.nowSeconds();if(p.cachedAt=v.toString(),p.expiresOn=s.toString(),p.extendedExpiresOn=u.toString(),l&&(p.refreshOn=l.toString()),p.environment=n,p.clientId=i,p.realm=o,p.target=a,p.oboAssertion=d,p.tokenType=Nw.isEmpty(h)?ow.BEARER:h,p.tokenType===ow.POP){p.credentialType=$k.ACCESS_TOKEN_WITH_AUTH_SCHEME;var g=LN.extractTokenClaims(r,c);if(!(null===(f=null==g?void 0:g.cnf)||void 0===f?void 0:f.kid))throw Mw.createTokenClaimsRequiredError();p.keyId=g.cnf.kid}return p},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===$k.ACCESS_TOKEN||e.credentialType===$k.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(DN),BN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mk(t,e),t.createRefreshTokenEntity=function(e,n,r,i,o,a){var s=new t;return s.clientId=i,s.credentialType=$k.REFRESH_TOKEN,s.environment=n,s.homeAccountId=e,s.secret=r,s.oboAssertion=a,o&&(s.familyId=o),s},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===$k.REFRESH_TOKEN},t}(DN),zN=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[nw,e,t].join(Jk.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var i=new e;return i.clientId=t,i.environment=n,r&&(i.familyId=r),i},e.isAppMetadataEntity=function(e,t){return!!t&&0===e.indexOf(nw)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")},e}(),qN=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(iw.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),KN=function(){function e(){this.expiresAt=VN.nowSeconds()+86400}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=VN.nowSeconds()+86400},e.prototype.isExpired=function(){return this.expiresAt<=VN.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&0===e.indexOf("authority-metadata")&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("end_session_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")},e}(),GN=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf("throttling"));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),WN=function(){function e(){}return e.setRequestState=function(t,n,r){var i=e.generateLibraryState(t,r);return Nw.isEmpty(n)?i:""+i+Uk.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw Mw.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw Mw.createNoCryptoObjectError("parseRequestState");if(Nw.isEmpty(t))throw Mw.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(Uk.RESOURCE_DELIM),r=n[0],i=n.length>1?n.slice(1).join(Uk.RESOURCE_DELIM):"",o=e.base64Decode(r),a=JSON.parse(o);return{userRequestState:Nw.isEmpty(i)?"":i,libraryState:a}}catch(s){throw Mw.createInvalidStateError(t,s)}},e}(),YN=(function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(YN||(YN={})),YN),QN=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==hw.LocalStorage&&e!==hw.SessionStorage)throw Iw.createStorageNotSupportedError(e);if(!window[e])throw Iw.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}(),XN=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),ZN=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(Nw.isEmpty(t))return null;try{return WN.parseRequestState(e,t).libraryState.meta}catch(n){throw Mw.createInvalidStateError(t,n)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new Lw(e);return Lw.getDeserializedHash(t.getHash())},e}(),JN=function(e){function t(t,n,r,i){var o=e.call(this,t,r)||this;return o.COOKIE_LIFE_MULTIPLIER=864e5,o.cacheConfig=n,o.logger=i,o.internalStorage=new XN,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.cacheLocation),o.migrateCacheEntries(),o}return Sw(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case hw.LocalStorage:case hw.SessionStorage:try{return new QN(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=hw.MemoryStorage,new XN},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case hw.LocalStorage:case hw.SessionStorage:try{return new QN(hw.SessionStorage)}catch(t){return this.logger.verbose(t),this.internalStorage}case hw.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=Uk.CACHE_PREFIX+"."+Bk.CLIENT_INFO,n=Uk.CACHE_PREFIX+"."+Bk.ERROR,r=Uk.CACHE_PREFIX+"."+Bk.ERROR_DESC,i=[this.browserStorage.getItem(Uk.CACHE_PREFIX+"."+Bk.ID_TOKEN),this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r)];[Bk.ID_TOKEN,Bk.CLIENT_INFO,Bk.ERROR,Bk.ERROR_DESC].forEach(function(t,n){return e.migrateCacheEntry(t,i[n])})},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(n){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){var t=this.getItem(e);if(!t)return null;var n=this.validateAndParseJson(t);return n&&MN.isAccountEntity(n)?FN.toObject(new MN,n):null},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&HN.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),FN.toObject(new HN,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&jN.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),FN.toObject(new jN,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&BN.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),FN.toObject(new BN,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e))},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&zN.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),FN.toObject(new zN,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&qN.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),FN.toObject(new qN,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&KN.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),FN.toObject(new KN,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(t){return e.isAuthorityMetadata(t)})},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(pw.WRAPPER_SKU,e),this.internalStorage.setItem(pw.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(pw.WRAPPER_SKU)||"",this.internalStorage.getItem(pw.WRAPPER_VER)||""]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(Bk.ACTIVE_ACCOUNT),t=this.browserStorage.getItem(e);return t&&this.getAccountInfoByFilter({localAccountId:t})[0]||null},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(Bk.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(t,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t))},t.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter(function(t){return!(e.username&&e.username.toLowerCase()!==t.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==t.homeAccountId||e.localAccountId&&e.localAccountId!==t.localAccountId||e.tenantId&&e.tenantId!==t.tenantId||e.environment&&e.environment!==t.environment)})},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&GN.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),FN.toObject(new GN,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===hw.LocalStorage){var o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},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 Rw(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return Ow(this,void 0,void 0,function(){var e=this;return Tw(this,function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(t){(e.browserStorage.containsKey(t)||e.temporaryCacheStorage.containsKey(t))&&(-1!==t.indexOf(Uk.CACHE_PREFIX)||-1!==t.indexOf(e.clientId))&&e.removeItem(t)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";"),this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&e.headers.hasOwnProperty(jk.RETRY_AFTER)&&(e.status<200||e.status>=300)},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||60),n+3600))},e.removeThrottle=function(e,t,n,r){var i=this.generateThrottlingStorageKey({clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims});return e.removeItem(i,ew.THROTTLING)},e}(),hL=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return Nk(this,void 0,void 0,function(){var r,i;return Lk(this,function(o){switch(o.label){case 0:lL.preProcess(this.cacheManager,e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=o.sent(),[3,4];case 3:throw(i=o.sent())instanceof Pw?i:Mw.createNetworkError(t,i);case 4:return lL.postProcess(this.cacheManager,e,r),[2,r]}})})},e}(),dL=function(){function e(e){this.config=function(e){var t=e.authOptions,n=e.systemOptions,r=e.loggerOptions,i=e.storageInterface,o=e.networkInterface,a=e.cryptoInterface,s=e.clientCredentials,u=e.libraryInfo,c=e.serverTelemetryManager,l=e.persistencePlugin,h=e.serializableCache,d=Dk(Dk({},tL),r);return{authOptions:oL(t),systemOptions:Dk(Dk({},eL),n),loggerOptions:d,storageInterface:i||new UN(t.clientId,SN),networkInterface:o||nL,cryptoInterface:a||SN,clientCredentials:s||iL,libraryInfo:Dk(Dk({},rL),u),serverTelemetryManager:c||null,persistencePlugin:l||null,serializableCache:h||null}}(e),this.logger=new CN(this.config.loggerOptions,"@azure/msal-common","5.0.1"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new hL(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[jk.CONTENT_TYPE]=Uk.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case YN.HOME_ACCOUNT_ID:try{var n=IN(e.credential);t[jk.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case YN.UPN:t[jk.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return Nk(this,void 0,void 0,function(){var i;return Lk(this,function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return i=o.sent(),this.config.serverTelemetryManager&&i.status<500&&429!==i.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw Mw.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e}(),fL=function(){function e(){}return e.validateRedirectUri=function(e){if(Nw.isEmpty(e))throw Dw.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in Gk)t.push(Gk[n]);if(t.indexOf(e)<0)throw Dw.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(t){throw Dw.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(Nw.isEmpty(e)||Nw.isEmpty(t))throw Dw.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([Yk.PLAIN,Yk.S256].indexOf(e)<0)throw Dw.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach(function(t,n){e[n]&&delete e[n]}),e):{}},e}(),pL=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(qk.RESPONSE_TYPE,encodeURIComponent(Uk.CODE_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(qk.RESPONSE_MODE,encodeURIComponent(e||Qk.QUERY))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?Fk(e||[],Hk):e||[],r=new NN(n);this.parameters.set(qk.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(qk.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){fL.validateRedirectUri(e),this.parameters.set(qk.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){fL.validateRedirectUri(e),this.parameters.set(qk.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(qk.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(Wk.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(Wk.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(jk.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(jk.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(Wk.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);fL.validateClaims(n),this.parameters.set(qk.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(qk.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(qk.X_CLIENT_SKU,e.sku),this.parameters.set(qk.X_CLIENT_VER,e.version),this.parameters.set(qk.X_CLIENT_OS,e.os),this.parameters.set(qk.X_CLIENT_CPU,e.cpu)},e.prototype.addPrompt=function(e){fL.validatePrompt(e),this.parameters.set(""+qk.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){Nw.isEmpty(e)||this.parameters.set(qk.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(qk.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(fL.validateCodeChallengeParams(e,t),!e||!t)throw Dw.createInvalidCodeChallengeParamsError();this.parameters.set(qk.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(qk.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(qk.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(qk.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(qk.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(qk.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(qk.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){this.parameters.set(qk.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){this.parameters.set(qk.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(qk.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(qk.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(qk.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},e.prototype.addExtraQueryParameters=function(e){var t=this;fL.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(n){t.parameters.set(n,e[n])})},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(r){throw Dw.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(Kk.ACCESS_TOKEN)||(n[Kk.ACCESS_TOKEN]={}),n[Kk.ACCESS_TOKEN][Kk.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(aw.username,e)},e.prototype.addPassword=function(e){this.parameters.set(aw.password,e)},e.prototype.addPopToken=function(e){Nw.isEmpty(e)||(this.parameters.set(qk.TOKEN_TYPE,ow.POP),this.parameters.set(qk.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(qk.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(qk.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(qk.X_MS_LIB_CAPABILITY,"retry-after, h429")},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},e}(),vL=function(e,t,n,r,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=i||null},gL=(function(e){e.SW="sw",e.UHW="uhw"}(gL||(gL={})),gL),mL=function(){function e(e){this.cryptoUtils=e}return e.prototype.generateCnf=function(e){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){switch(n.label){case 0:return[4,this.generateKid(e)];case 1:return t=n.sent(),[2,this.cryptoUtils.base64Encode(JSON.stringify(t))]}})})},e.prototype.generateKid=function(e){return Nk(this,void 0,void 0,function(){return Lk(this,function(t){switch(t.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:t.sent(),xms_ksl:gL.SW}]}})})},e.prototype.signPopToken=function(e,t){var n;return Nk(this,void 0,void 0,function(){var r;return Lk(this,function(i){if(r=LN.extractTokenClaims(e,this.cryptoUtils),!(null===(n=null==r?void 0:r.cnf)||void 0===n?void 0:n.kid))throw Mw.createTokenClaimsRequiredError();return[2,this.signPayload(e,r.cnf.kid,t)]})})},e.prototype.signPayload=function(e,t,n,r){return Nk(this,void 0,void 0,function(){var i,o,a,s,u;return Lk(this,function(c){switch(c.label){case 0:return i=n.resourceRequestMethod,a=n.shrClaims,s=(o=n.resourceRequestUri)?new Lw(o):void 0,u=null==s?void 0:s.getUrlComponents(),[4,this.cryptoUtils.signJwt(Dk({at:e,ts:VN.nowSeconds(),m:null==i?void 0:i.toUpperCase(),u:null==u?void 0:u.HostNameAndPort,nonce:this.cryptoUtils.createNewGuid(),p:null==u?void 0:u.AbsolutePath,q:(null==u?void 0:u.QueryString)?[[],u.QueryString]:void 0,client_claims:a||void 0},r),t)];case 1:return[2,c.sent()]}})})},e}(),yL=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),_L=function(){function e(e,t,n,r,i,o){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=i,this.persistencePlugin=o}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw Mw.createStateNotFoundError(e.state?"Cached State":"Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Mw.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw RN.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new RN(e.error||Uk.EMPTY_STRING,e.error_description,e.suberror):new EN(e.error||Uk.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&PN(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(RN.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new RN(e.error,e.error_description,e.suberror);throw new EN(e.error,e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,i,o,a,s){return Nk(this,void 0,void 0,function(){var u,c,l,h,d;return Lk(this,function(f){switch(f.label){case 0:if(t.id_token&&(u=new LN(t.id_token||Uk.EMPTY_STRING,this.cryptoObj),o&&!Nw.isEmpty(o.nonce)&&u.claims.nonce!==o.nonce))throw Mw.createNonceMismatchError();this.homeAccountIdentifier=MN.generateHomeAccountId(t.client_info||Uk.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,u),!!o&&!!o.state&&(c=WN.parseRequestState(this.cryptoObj,o.state)),l=this.generateCacheRecord(t,n,r,u,i.scopes,a,o),f.label=1;case 1:return f.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new yL(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:f.sent(),f.label=3;case 3:return s&&l.account&&(d=l.account.generateAccountKey(),!this.cacheStorage.getAccount(d))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,l,!1,i,u,c)]):[4,this.cacheStorage.saveCacheRecord(l)];case 4:return f.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:f.sent(),f.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,l,!1,i,u,c)]}})})},e.prototype.generateCacheRecord=function(e,t,n,r,i,o,a){var s,u,c=t.getPreferredCache();if(Nw.isEmpty(c))throw Mw.createInvalidCacheEnvironmentError();!Nw.isEmpty(e.id_token)&&r&&(s=HN.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||Uk.EMPTY_STRING,this.clientId,r.claims.tid||Uk.EMPTY_STRING,o),u=this.generateAccountEntity(e,r,t,o,a));var l=null;if(!Nw.isEmpty(e.access_token)){var h=e.scope?NN.fromString(e.scope):new NN(i||[]),d=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,f=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,p=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,v=n+d,g=v+f,m=p&&p>0?n+p:void 0;l=jN.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||Uk.EMPTY_STRING,this.clientId,r?r.claims.tid||Uk.EMPTY_STRING:t.tenant,h.printScopes(),v,g,this.cryptoObj,m,e.token_type,o)}var y=null;Nw.isEmpty(e.refresh_token)||(y=BN.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||Uk.EMPTY_STRING,this.clientId,e.foci,o));var _=null;return Nw.isEmpty(e.foci)||(_=zN.createAppMetadataEntity(this.clientId,c,e.foci)),new vL(u,s,l,y,_)},e.prototype.generateAccountEntity=function(e,t,n,r,i){var o=i?i.cloud_graph_host_name:"",a=i?i.msgraph_host:"";if(n.authorityType===xN.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),MN.createGenericAccount(this.homeAccountIdentifier,t,n,r,o,a);if(Nw.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Mw.createClientInfoEmptyError();return e.client_info?MN.createAccount(e.client_info,this.homeAccountIdentifier,t,n,r,o,a):MN.createGenericAccount(this.homeAccountIdentifier,t,n,r,o,a)},e.generateAuthenticationResult=function(e,t,n,r,i,o,a){var s,u,c;return Nk(this,void 0,void 0,function(){var l,h,d,f,p;return Lk(this,function(v){switch(v.label){case 0:return l="",h=[],d=null,p=Uk.EMPTY_STRING,n.accessToken?n.accessToken.tokenType!==ow.POP?[3,2]:[4,new mL(e).signPopToken(n.accessToken.secret,i)]:[3,4];case 1:return l=v.sent(),[3,3];case 2:l=n.accessToken.secret,v.label=3;case 3:h=NN.fromString(n.accessToken.target).asArray(),d=new Date(1e3*Number(n.accessToken.expiresOn)),f=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),v.label=4;case 4:return n.appMetadata&&(p="1"===n.appMetadata.familyId?"1":Uk.EMPTY_STRING),[2,{authority:t.canonicalAuthority,uniqueId:(null==o?void 0:o.claims.oid)||(null==o?void 0:o.claims.sub)||Uk.EMPTY_STRING,tenantId:(null==o?void 0:o.claims.tid)||Uk.EMPTY_STRING,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:o?o.rawToken:Uk.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:l,fromCache:r,expiresOn:d,correlationId:i.correlationId,extExpiresOn:f,familyId:p,tokenType:(null===(s=n.accessToken)||void 0===s?void 0:s.tokenType)||Uk.EMPTY_STRING,state:a?a.userRequestState:Uk.EMPTY_STRING,cloudGraphHostName:(null===(u=n.account)||void 0===u?void 0:u.cloudGraphHostName)||Uk.EMPTY_STRING,msGraphHost:(null===(c=n.account)||void 0===c?void 0:c.msGraphHost)||Uk.EMPTY_STRING}]}})})},e}(),bL=function(e){function t(t){return e.call(this,t)||this}return Mk(t,e),t.prototype.getAuthCodeUrl=function(e){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){return t=this.createAuthCodeUrlQueryString(e),[2,Lw.appendQueryString(this.authority.authorizationEndpoint,t)]})})},t.prototype.acquireToken=function(e,t){return Nk(this,void 0,void 0,function(){var n,r,i;return Lk(this,function(o){switch(o.label){case 0:if(this.logger.info("in acquireToken call"),!e||Nw.isEmpty(e.code))throw Mw.createTokenRequestCannotBeMadeError();return n=VN.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return r=o.sent(),(i=new _L(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[4,i.handleServerTokenResponse(r.body,this.authority,n,e,t)];case 2:return[2,o.sent()]}})})},t.prototype.handleFragmentResponse=function(e,t){var n=new _L(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new Lw(e),i=Lw.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(i,t,this.cryptoUtils),!i.code)throw Mw.createNoAuthCodeInServerResponseError();return Dk(Dk({},i),{code:i.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Dw.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return Lw.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){return Nk(this,void 0,void 0,function(){var n,r,i,o,a,s,u;return Lk(this,function(c){switch(c.label){case 0:return n={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims},[4,this.createTokenRequestBody(t)];case 1:if(r=c.sent(),i=this.createTokenQueryParameters(t),o=void 0,t.clientInfo)try{a=PN(t.clientInfo,this.cryptoUtils),o={credential:""+a.uid+Jk.CLIENT_INFO_SEPARATOR+a.utid,type:YN.HOME_ACCOUNT_ID}}catch(l){this.logger.verbose("Could not parse client info for CCS Header: "+l)}return s=this.createTokenRequestHeaders(o||t.ccsCredential),u=Nw.isEmpty(i)?e.tokenEndpoint:e.tokenEndpoint+"?"+i,[2,this.executePostToTokenEndpoint(u,r,s,n)]}})})},t.prototype.createTokenQueryParameters=function(e){var t=new pL;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},t.prototype.createTokenRequestBody=function(e){return Nk(this,void 0,void 0,function(){var t,n,r,i,o,a;return Lk(this,function(s){switch(s.label){case 0:return(t=new pL).addClientId(this.config.authOptions.clientId),t.addRedirectUri(e.redirectUri),t.addScopes(e.scopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(t.addClientAssertion((n=this.config.clientCredentials.clientAssertion).assertion),t.addClientAssertionType(n.assertionType)),t.addGrantType(Xk.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme!==ow.POP?[3,2]:[4,new mL(this.cryptoUtils).generateCnf(e)];case 1:r=s.sent(),t.addPopToken(r),s.label=2;case 2:if(i=e.correlationId||this.config.cryptoInterface.createNewGuid(),t.addCorrelationId(i),(!Nw.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),o=void 0,e.clientInfo)try{a=PN(e.clientInfo,this.cryptoUtils),o={credential:""+a.uid+Jk.CLIENT_INFO_SEPARATOR+a.utid,type:YN.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}else o=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&o)switch(o.type){case YN.HOME_ACCOUNT_ID:try{a=IN(o.credential),t.addCcsOid(a)}catch(u){this.logger.verbose("Could not parse home account ID for CCS Header: "+u)}break;case YN.UPN:t.addCcsUpn(o.credential)}return[2,t.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){var t=new pL;t.addClientId(this.config.authOptions.clientId);var n=Fk(e.scopes||[],e.extraScopesToConsent||[]);t.addScopes(n),t.addRedirectUri(e.redirectUri);var r=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(r),t.addResponseMode(e.responseMode),t.addResponseTypeCode(),t.addLibraryInfo(this.config.libraryInfo),t.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&t.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&t.addPrompt(e.prompt),e.domainHint&&t.addDomainHint(e.domainHint),e.prompt!==Gk.SELECT_ACCOUNT)if(e.sid&&e.prompt===Gk.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),t.addSid(e.sid);else if(e.account){var i=this.extractAccountSid(e.account);if(i&&e.prompt===Gk.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),t.addSid(i);try{var o=IN(e.account.homeAccountId);t.addCcsOid(o)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),t.addLoginHint(e.account.username);try{o=IN(e.account.homeAccountId),t.addCcsOid(o)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&t.addNonce(e.nonce),e.state&&t.addState(e.state),(!Nw.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.createLogoutUrlQueryString=function(e){var t=new pL;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){return e.idTokenClaims&&e.idTokenClaims.sid||null},t}(dL);function kL(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("end_session_endpoint")&&e.hasOwnProperty("issuer")}var wL=function(){function e(e){this.networkInterface=e}return e.prototype.detectRegion=function(e,t){return Nk(this,void 0,void 0,function(){var n,r,i,o;return Lk(this,function(a){switch(a.label){case 0:if(n=e)return[3,8];a.label=1;case 1:return a.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(Uk.IMDS_VERSION)];case 2:return(r=a.sent()).status===sw.httpSuccess&&(n=r.body,t.region_source=uw.IMDS),r.status!==sw.httpBadRequest?[3,5]:[4,this.getCurrentVersion()];case 3:return(i=a.sent())?[4,this.getRegionFromIMDS(i)]:(t.region_source=uw.FAILED_AUTO_DETECTION,[2,null]);case 4:(o=a.sent()).status===sw.httpSuccess&&(n=o.body,t.region_source=uw.IMDS),a.label=5;case 5:return[3,7];case 6:return a.sent(),t.region_source=uw.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=uw.ENVIRONMENT_VARIABLE,a.label=9;case 9:return n||(t.region_source=uw.FAILED_AUTO_DETECTION),[2,n||null]}})})},e.prototype.getRegionFromIMDS=function(t){return Nk(this,void 0,void 0,function(){return Lk(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(Uk.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e.IMDS_OPTIONS,Uk.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(Uk.IMDS_ENDPOINT+"?format=json",e.IMDS_OPTIONS)];case 1:return(t=n.sent()).status===sw.httpBadRequest&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?[2,t.body["newest-versions"][0]]:[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),CL=function(){function e(e,t,n,r){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscovery=new wL(t),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0}}return Object.defineProperty(e.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;return e.length&&e[0].toLowerCase()===Uk.ADFS?xN.Adfs:xN.Default},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new Lw(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=e,n=new Lw(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(e,r){var i=n[r];e!==i&&(t=t.replace("/"+i+"/","/"+e+"/"))}),t},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===xN.Adfs||this.protocolMode===$N.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){return Nk(this,void 0,void 0,function(){var e,t,n,r;return Lk(this,function(i){switch(i.label){case 0:return(e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(e=new KN).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return t=i.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return n=i.sent(),t!==rw.CACHE&&n!==rw.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(r,e),this.metadata=e,[2]}})})},e.prototype.updateEndpointMetadata=function(t){var n;return Nk(this,void 0,void 0,function(){var r,i,o;return Lk(this,function(a){switch(a.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,rw.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,rw.CACHE]:[4,this.getEndpointMetadataFromNetwork()];case 1:return(r=a.sent())?(null===(n=this.authorityOptions.azureRegionConfiguration)||void 0===n?void 0:n.azureRegion)?[4,this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration.environmentRegion,this.regionDiscoveryMetadata)]:[3,3]:[3,4];case 2:i=a.sent(),o=this.authorityOptions.azureRegionConfiguration.azureRegion===Uk.AZURE_REGION_AUTO_DISCOVER_FLAG?i:this.authorityOptions.azureRegionConfiguration.azureRegion,this.regionDiscoveryMetadata.region_outcome=this.authorityOptions.azureRegionConfiguration.azureRegion===Uk.AZURE_REGION_AUTO_DISCOVER_FLAG?i?cw.AUTO_DETECTION_REQUESTED_SUCCESSFUL:cw.AUTO_DETECTION_REQUESTED_FAILED:i?this.authorityOptions.azureRegionConfiguration.azureRegion===i?cw.CONFIGURED_MATCHES_DETECTED:cw.CONFIGURED_NOT_DETECTED:cw.CONFIGURED_NO_AUTO_DETECTION,o&&(this.regionDiscoveryMetadata.region_used=o,r=e.replaceWithRegionalInformation(r,o)),a.label=3;case 3:return t.updateEndpointMetadata(r,!0),[2,rw.NETWORK];case 4:throw Mw.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(e){return new Lw(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw Dw.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){return Nk(this,void 0,void 0,function(){var e;return Lk(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint)];case 1:return[2,kL((e=t.sent()).body)?e.body:null];case 2:return t.sent(),[2,null];case 3:return[2]}})})},e.prototype.updateCloudDiscoveryMetadata=function(e){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){switch(n.label){case 0:return(t=this.getCloudDiscoveryMetadataFromConfig())?(e.updateCloudDiscoveryMetadata(t,!1),[2,rw.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,rw.CACHE]:[4,this.getCloudDiscoveryMetadataFromNetwork()];case 1:if(t=n.sent())return e.updateCloudDiscoveryMetadata(t,!0),[2,rw.NETWORK];throw Dw.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(n)return n}catch(r){throw Dw.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return Nk(this,void 0,void 0,function(){var t,n,r,i;return Lk(this,function(o){switch(o.label){case 0:t=""+Uk.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n=null,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t)];case 2:return r=o.sent(),0===(i=function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[]).length?[2,null]:(n=e.getCloudDiscoveryMetadataFromNetworkResponse(i,this.hostnameAndPort),[3,4]);case 3:return o.sent(),[2,null];case 4:return n||(n=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter(function(t){return Lw.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}).length>0},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Mw.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return Uk.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new Lw(e);r.validateAsUri();var i=r.getUrlComponents(),o=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(o=t+"."+Uk.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=Lw.constructAuthorityUriFromObject(Dk(Dk({},r.getUrlComponents()),{HostNameAndPort:o})).urlString;return n?a+"?"+n:a},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,"allowestsrnonmsi=true"),t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n),t},e}(),SL=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,i){return Nk(this,void 0,void 0,function(){var o,a;return Lk(this,function(s){switch(s.label){case 0:o=e.createInstance(t,n,r,i),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,o.resolveEndpointsAsync()];case 2:return s.sent(),[2,o];case 3:throw a=s.sent(),Mw.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},e.createInstance=function(e,t,n,r){if(Nw.isEmpty(e))throw Dw.createUrlEmptyError();return new CL(e,t,n,r)},e}(),EL=function(){function e(e,t){this.cacheOutcome=lw.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||Uk.EMPTY_STRING,this.wrapperVer=e.wrapperVer||Uk.EMPTY_STRING,this.telemetryCacheKey=iw.CACHE_KEY+Jk.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+iw.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(iw.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join(iw.VALUE_SEPARATOR);return[iw.SCHEMA_VERSION,n,t].join(iw.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(iw.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(iw.VALUE_SEPARATOR),o=t.errors.length,a=[o,n=iw.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),Nw.isEmpty(e.subError)?Nw.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(iw.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new qN;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t);if(n===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new qN;r.failedRequests=t.failedRequests.slice(2*n),r.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,i=e.errors.length;for(t=0;tl)&&(r.verbose("Default popup window width used. Window width not configured or invalid."),d=483),(!f||f<0||f>h)&&(r.verbose("Default popup window height used. Window height not configured or invalid."),f=600),(!p||p<0||p>h)&&(r.verbose("Default popup window top position used. Window top not configured or invalid."),p=Math.max(0,h/2-300+c)),(!v||v<0||v>l)&&(r.verbose("Default popup window left position used. Window left not configured or invalid."),v=Math.max(0,l/2-241.5+u)),window.open(e,t,"width="+d+", height="+f+", top="+p+", left="+v+", scrollbars=yes")},e.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(gw.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},e.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.monitorPopupForSameOrigin=function(e){var t=this;return new Promise(function(n,r){var i=setInterval(function(){if(e.closed)return t.cleanPopup(),clearInterval(i),void r(Uw.createUserCancelledError());var o=Uk.EMPTY_STRING;try{o=e.location.href}catch(a){}Nw.isEmpty(o)||"about:blank"===o||(clearInterval(i),n())},50)})},e.generatePopupName=function(e,t){return"msal."+e+"."+t.scopes.join("-")+"."+t.authority+"."+t.correlationId},e.generateLogoutPopupName=function(e,t){return"msal."+e+"."+(t.account&&t.account.homeAccountId)+"."+t.correlationId},e}(),AL=function(){function e(e,t,n,r){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.browserRequestLogger=r}return e.prototype.handleCodeResponse=function(e,t,n,r){return Ow(this,void 0,void 0,function(){var i,o,a,s,u,c,l;return Tw(this,function(h){switch(h.label){case 0:if(this.browserRequestLogger.verbose("InteractionHandler.handleCodeResponse called"),Nw.isEmpty(e))throw Uw.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),!(o=this.browserStorage.getTemporaryCache(i)))throw Mw.createStateNotFoundError("Cached State");return a=this.authModule.handleFragmentResponse(e,o),s=this.browserStorage.generateNonceKey(o),u=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:h.sent(),h.label=2;case 2:return a.nonce=u||void 0,a.state=o,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return l=h.sent(),this.browserStorage.cleanRequestByState(t),[2,l]}})})},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return Ow(this,void 0,void 0,function(){var r;return Tw(this,function(i){switch(i.label){case 0:return[4,SL.createDiscoveredInstance("https://"+e+"/"+t.tenant+"/",n,this.browserStorage,t.options)];case 1:return r=i.sent(),this.authModule.updateAuthority(r),[2]}})})},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(fw.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),RL=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.popupUtils=new TL(n,i),o}return Sw(t,e),t.prototype.initiateAuthRequest=function(e,t){if(Nw.isEmpty(e))throw this.browserRequestLogger.error("Navigate url is empty"),Uw.createEmptyNavigationUriError();return this.browserStorage.setInteractionInProgress(!0),this.browserRequestLogger.infoPii("Navigate to: "+e),this.popupUtils.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return this.popupUtils.monitorPopupForSameOrigin(e).then(function(){var n=e.location.hash;if(jw.clearHash(e),t.popupUtils.cleanPopup(e),!n)throw Uw.createEmptyHashError(e.location.href);if(Lw.hashContainsKnownProperties(n))return n;throw Uw.createHashDoesNotContainKnownPropertiesError()})},t}(AL),PL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sw(t,e),t.prototype.acquireToken=function(e){try{var t=this.preflightInteractiveRequest(e,gw.Popup),n=TL.generatePopupName(this.config.auth.clientId,t),r=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,r);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=TL.openSizedPopup("about:blank",n,r,this.logger);return this.acquireTokenPopupAsync(t,n,r,i)}catch(o){return Promise.reject(o)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=TL.generateLogoutPopupName(this.config.auth.clientId,t),r=e&&e.authority,i=e&&e.mainWindowRedirectUri,o=(null==e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,o,r,void 0,i);this.logger.verbose("asyncPopup set to false, opening popup");var a=TL.openSizedPopup("about:blank",n,o,this.logger);return this.logoutPopupAsync(t,n,o,r,a,i)}catch(s){return Promise.reject(s)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return Ow(this,void 0,void 0,function(){var i,o,a,s,u,c,l,h,d;return Tw(this,function(f){switch(f.label){case 0:this.logger.verbose("acquireTokenPopupAsync called"),i=this.initializeServerTelemetryManager(vw.acquireTokenPopup),f.label=1;case 1:return f.trys.push([1,7,,8]),[4,this.initializeAuthorizationCodeRequest(e)];case 2:return o=f.sent(),[4,this.createAuthCodeClient(i,e.authority)];case 3:return a=f.sent(),this.logger.verbose("Auth code client created"),[4,a.getAuthCodeUrl(e)];case 4:return s=f.sent(),u=new RL(a,this.browserStorage,o,this.logger),c=u.initiateAuthRequest(s,{popup:r,popupName:t,popupWindowAttributes:n}),this.eventHandler.emitEvent(kw.POPUP_OPENED,gw.Popup,{popupWindow:c},null),[4,u.monitorPopupForHash(c)];case 5:return l=f.sent(),h=this.validateAndExtractStateFromHash(l,gw.Popup,e.correlationId),lL.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,u.handleCodeResponse(l,h,a.authority,this.networkClient)];case 6:return[2,f.sent()];case 7:throw d=f.sent(),r&&r.close(),d instanceof Pw&&d.setCorrelationId(this.correlationId),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(e.state),d;case 8:return[2]}})})},t.prototype.logoutPopupAsync=function(e,t,n,r,i,o){return Ow(this,void 0,void 0,function(){var a,s,u,c,l,h,d,f,p;return Tw(this,function(v){switch(v.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(kw.LOGOUT_START,gw.Popup,e),a=this.initializeServerTelemetryManager(vw.logoutPopup),v.label=1;case 1:return v.trys.push([1,8,,9]),[4,this.clearCacheOnLogout(e.account)];case 2:return v.sent(),this.browserStorage.setInteractionInProgress(!0),[4,this.createAuthCodeClient(a,r)];case 3:s=v.sent(),this.logger.verbose("Auth code client created"),u=s.getLogoutUri(e),this.eventHandler.emitEvent(kw.LOGOUT_SUCCESS,gw.Popup,e),c=new TL(this.browserStorage,this.logger),l=c.openPopup(u,{popupName:t,popupWindowAttributes:n,popup:i}),this.eventHandler.emitEvent(kw.POPUP_OPENED,gw.Popup,{popupWindow:l},null),v.label=4;case 4:return v.trys.push([4,6,,7]),[4,c.monitorPopupForSameOrigin(l)];case 5:return v.sent(),this.logger.verbose("Popup successfully redirected to postLogoutRedirectUri"),[3,7];case 6:return h=v.sent(),this.logger.verbose("Error occurred while monitoring popup for same origin. Session on server may remain active. Error: "+h),[3,7];case 7:return c.cleanPopup(l),o?(d={apiId:vw.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Lw.getAbsoluteUrl(o,jw.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecing main window to: "+f),this.navigationClient.navigateInternal(f,d)):this.logger.verbose("No main window navigation requested"),[3,9];case 8:throw p=v.sent(),i&&i.close(),p instanceof Pw&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(kw.LOGOUT_FAILURE,gw.Popup,null,p),this.eventHandler.emitEvent(kw.LOGOUT_END,gw.Popup),a.cacheFailedRequest(p),p;case 9:return this.eventHandler.emitEvent(kw.LOGOUT_END,gw.Popup),[2]}})})},t}(OL),IL=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.browserCrypto=o,a}return Sw(t,e),t.prototype.initiateAuthRequest=function(e,t){return Ow(this,void 0,void 0,function(){var n;return Tw(this,function(r){switch(r.label){case 0:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest called"),Nw.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(fw.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setInteractionInProgress(!0),this.browserStorage.setTemporaryCache(fw.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.browserRequestLogger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:vw.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!=typeof t.onRedirectNavigate?[3,4]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===t.onRedirectNavigate(e)?[3,2]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:return r.sent(),[2];case 2:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,t.navigationClient.navigateExternal(e,n)];case 5:return r.sent(),[2];case 6:return[3,8];case 7:throw this.browserRequestLogger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Uw.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponse=function(e,t,n,r,i){return Ow(this,void 0,void 0,function(){var o,a,s,u,c,l,h;return Tw(this,function(d){switch(d.label){case 0:if(this.browserRequestLogger.verbose("RedirectHandler.handleCodeResponse called"),Nw.isEmpty(e))throw Uw.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(o)))throw Mw.createStateNotFoundError("Cached State");return s=this.authModule.handleFragmentResponse(e,a),u=this.browserStorage.generateNonceKey(a),c=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=s.code,s.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(s.cloud_instance_host_name,n,r)]:[3,2];case 1:d.sent(),d.label=2;case 2:return s.nonce=c||void 0,s.state=a,s.client_info?this.authCodeRequest.clientInfo=s.client_info:(l=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=l),i&&lL.removeThrottle(this.browserStorage,i,this.authCodeRequest),[4,this.authModule.acquireToken(this.authCodeRequest,s)];case 3:return h=d.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}})})},t}(AL),xL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sw(t,e),t.prototype.acquireToken=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u;return Tw(this,function(c){switch(c.label){case 0:t=this.preflightInteractiveRequest(e,gw.Redirect),n=this.initializeServerTelemetryManager(vw.acquireTokenRedirect),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(t)];case 2:return r=c.sent(),[4,this.createAuthCodeClient(n,t.authority)];case 3:return i=c.sent(),this.logger.verbose("Auth code client created"),o=new IL(i,this.browserStorage,r,this.logger,this.browserCrypto),[4,i.getAuthCodeUrl(t)];case 4:return a=c.sent(),s=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+s),[4,o.initiateAuthRequest(a,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:s,onRedirectNavigate:e.onRedirectNavigate})];case 5:return[2,c.sent()];case 6:throw(u=c.sent())instanceof Pw&&u.setCorrelationId(this.correlationId),n.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(t.state),u;case 7:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,l,h;return Tw(this,function(d){switch(d.label){case 0:t=this.initializeServerTelemetryManager(vw.handleRedirectPromise),d.label=1;case 1:if(d.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(!(n=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(gw.Redirect),[2,null];r=void 0;try{r=this.validateAndExtractStateFromHash(n,gw.Redirect),jw.clearHash(window),this.logger.verbose("State extracted from hash")}catch(f){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+f),this.browserStorage.cleanRequestByInteractionType(gw.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(fw.ORIGIN_URI,!0)||"",o=Lw.removeHashFromUrl(i),a=Lw.removeHashFromUrl(window.location.href),o===a&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return s=d.sent(),i.indexOf("#")>-1&&jw.replaceHash(i),[2,s];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)]);case 4:return jw.isInIframe()?[3,9]:(this.browserStorage.setTemporaryCache(fw.URL_HASH,n,!0),u={apiId:vw.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},c=!0,i&&"null"!==i?[3,6]:(l=jw.getHomepage(),this.browserStorage.setTemporaryCache(fw.ORIGIN_URI,l,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(l,u)]));case 5:return c=d.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,u)];case 7:c=d.sent(),d.label=8;case 8:if(!c)return[2,this.handleHash(n,r,t)];d.label=9;case 9:return[2,null];case 10:throw(h=d.sent())instanceof Pw&&h.setCorrelationId(this.correlationId),t.cacheFailedRequest(h),this.browserStorage.cleanRequestByInteractionType(gw.Redirect),h;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){this.logger.verbose("getRedirectResponseHash called");var t=Lw.hashContainsKnownProperties(e),n=this.browserStorage.getTemporaryCache(fw.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(fw.URL_HASH)),t?(this.logger.verbose("Hash contains known properties, returning response hash"),e):(this.logger.verbose("Hash does not contain known properties, returning cached hash"),n)},t.prototype.handleHash=function(e,t,n){return Ow(this,void 0,void 0,function(){var r,i,o;return Tw(this,function(a){switch(a.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),!(i=this.browserStorage.getCachedAuthority(t)))throw Uw.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(n,i)];case 1:return o=a.sent(),this.logger.verbose("Auth code client created"),[4,new IL(o,this.browserStorage,r,this.logger,this.browserCrypto).handleCodeResponse(e,t,o.authority,this.networkClient,this.config.auth.clientId)];case 2:return[2,a.sent()]}})})},t.prototype.logout=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o,a;return Tw(this,function(s){switch(s.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(vw.logout),s.label=1;case 1:return s.trys.push([1,10,,11]),this.eventHandler.emitEvent(kw.LOGOUT_START,gw.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return s.sent(),r={apiId:vw.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return i=s.sent(),this.logger.verbose("Auth code client created"),o=i.getLogoutUri(t),this.eventHandler.emitEvent(kw.LOGOUT_SUCCESS,gw.Redirect,t),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(o)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),[4,this.navigationClient.navigateExternal(o,r)]):[3,7];case 4:return s.sent(),[2];case 5:this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),s.label=6;case 6:return[3,9];case 7:return[4,this.navigationClient.navigateExternal(o,r)];case 8:return s.sent(),[2];case 9:return[3,11];case 10:throw(a=s.sent())instanceof Pw&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.eventHandler.emitEvent(kw.LOGOUT_FAILURE,gw.Redirect,null,a),this.eventHandler.emitEvent(kw.LOGOUT_END,gw.Redirect),a;case 11:return this.eventHandler.emitEvent(kw.LOGOUT_END,gw.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return Lw.getAbsoluteUrl(t,jw.getCurrentUri())},t}(OL),ML=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.navigateFrameWait=o,a}return Sw(t,e),t.prototype.initiateAuthRequest=function(e){return Ow(this,void 0,void 0,function(){var t;return Tw(this,function(n){switch(n.label){case 0:if(Nw.isEmpty(e))throw this.browserRequestLogger.info("Navigate url is empty"),Uw.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return t=n.sent(),[3,3];case 2:t=this.loadFrameSync(e),n.label=3;case 3:return[2,t]}})})},t.prototype.monitorIframeForHash=function(e,t){var n=this;return new Promise(function(r,i){t<6e3&&n.browserRequestLogger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default (6000ms). This may result in timeouts.");var o=window.performance.now()+t,a=setInterval(function(){if(window.performance.now()>o)return n.removeHiddenIframe(e),clearInterval(a),void i(Uw.createMonitorIframeTimeoutError());var t=Uk.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:Uk.EMPTY_STRING}catch(c){}if(!Nw.isEmpty(t)){var u=s?s.location.hash:Uk.EMPTY_STRING;if(Lw.hashContainsKnownProperties(u))return n.removeHiddenIframe(e),clearInterval(a),void r(u)}},50)})},t.prototype.loadFrame=function(e){var t=this;return new Promise(function(n,r){var i=t.createHiddenIframe();setTimeout(function(){i?(i.src=e,n(i)):r("Unable to load iframe")},t.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},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}(AL),DL=function(e){function t(t,n,r,i,o,a,s,u){var c=e.call(this,t,n,r,i,o,a,u)||this;return c.apiId=s,c}return Sw(t,e),t.prototype.acquireToken=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o,a;return Tw(this,function(s){switch(s.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),Nw.isEmpty(e.loginHint)&&Nw.isEmpty(e.sid)&&(!e.account||Nw.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!==Gk.NONE)throw Uw.createSilentPromptValueError(e.prompt);t=this.initializeAuthorizationRequest(Ew(Ew({},e),{prompt:Gk.NONE}),gw.Silent),n=this.initializeServerTelemetryManager(this.apiId),s.label=1;case 1:return s.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(t)];case 2:return r=s.sent(),[4,this.createAuthCodeClient(n,t.authority)];case 3:return i=s.sent(),this.logger.verbose("Auth code client created"),[4,i.getAuthCodeUrl(t)];case 4:return o=s.sent(),[4,this.silentTokenHelper(o,r,i,this.logger)];case 5:return[2,s.sent()];case 6:throw(a=s.sent())instanceof Pw&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(t.state),a;case 7:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Uw.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t,n,r){return Ow(this,void 0,void 0,function(){var i,o,a,s;return Tw(this,function(u){switch(u.label){case 0:return[4,(i=new ML(n,this.browserStorage,t,r,this.config.system.navigateFrameWait)).initiateAuthRequest(e)];case 1:return o=u.sent(),[4,i.monitorIframeForHash(o,this.config.system.iframeHashTimeout)];case 2:return a=u.sent(),s=this.validateAndExtractStateFromHash(a,gw.Silent,t.correlationId),[2,i.handleCodeResponse(a,s,n.authority,this.networkClient)]}})})},t}(OL),NL=function(e){function t(t){return e.call(this,t)||this}return Mk(t,e),t.prototype.acquireToken=function(e){return Nk(this,void 0,void 0,function(){var t,n,r;return Lk(this,function(i){switch(i.label){case 0:return t=VN.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return n=i.sent(),(r=new _L(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(n.body),[2,r.handleServerTokenResponse(n.body,this.authority,t,e,void 0,void 0,!0)]}})})},t.prototype.acquireTokenByRefreshToken=function(e){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){if(!e)throw Dw.createEmptyTokenRequestError();if(!e.account)throw Mw.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(r){if(t=r instanceof EN&&"invalid_grant"===r.errorCode&&"client_mismatch"===r.subError,r instanceof RN&&r.errorCode===AN||t)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw r}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){return Nk(this,void 0,void 0,function(){var n,r;return Lk(this,function(i){if(!(n=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,e.account,t)))throw RN.createNoTokensFoundError();return r=Dk(Dk({},e),{refreshToken:n.secret,authenticationScheme:e.authenticationScheme||ow.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:YN.HOME_ACCOUNT_ID}}),[2,this.acquireToken(r)]})})},t.prototype.executeTokenRequest=function(e,t){return Nk(this,void 0,void 0,function(){var n,r,i,o,a;return Lk(this,function(s){switch(s.label){case 0:return[4,this.createTokenRequestBody(e)];case 1:return n=s.sent(),r=this.createTokenQueryParameters(e),i=this.createTokenRequestHeaders(e.ccsCredential),o={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims},a=Lw.appendQueryString(t.tokenEndpoint,r),[2,this.executePostToTokenEndpoint(a,n,i,o)]}})})},t.prototype.createTokenQueryParameters=function(e){var t=new pL;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},t.prototype.createTokenRequestBody=function(e){return Nk(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return Lk(this,function(u){switch(u.label){case 0:return(t=new pL).addClientId(this.config.authOptions.clientId),t.addScopes(e.scopes),t.addGrantType(Xk.REFRESH_TOKEN_GRANT),t.addClientInfo(),t.addLibraryInfo(this.config.libraryInfo),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager),n=e.correlationId||this.config.cryptoInterface.createNewGuid(),t.addCorrelationId(n),t.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(t.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),t.addClientAssertionType(r.assertionType)),e.authenticationScheme!==ow.POP?[3,2]:(i=new mL(this.cryptoUtils),a=(o=t).addPopToken,[4,i.generateCnf(e)]);case 1:a.apply(o,[u.sent()]),u.label=2;case 2:if((!Nw.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case YN.HOME_ACCOUNT_ID:try{s=IN(e.ccsCredential.credential),t.addCcsOid(s)}catch(c){this.logger.verbose("Could not parse home account ID for CCS Header: "+c)}break;case YN.UPN:t.addCcsUpn(e.ccsCredential.credential)}return[2,t.createQueryString()]}})})},t}(dL),LL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sw(t,e),t.prototype.acquireToken=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i=this;return Tw(this,function(o){switch(o.label){case 0:return t=Ew(Ew({},e),this.initializeBaseRequest(e)),n=this.initializeServerTelemetryManager(vw.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(n,t.authority)];case 1:return r=o.sent(),this.logger.verbose("Refresh token client created"),[2,r.acquireTokenByRefreshToken(t).catch(function(e){throw e instanceof Pw&&e.setCorrelationId(i.correlationId),n.cacheFailedRequest(e),e})]}})})},t.prototype.logout=function(){return Promise.reject(Uw.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t){return Ow(this,void 0,void 0,function(){var n;return Tw(this,function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new NL(n)]}})})},t}(OL),FL=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!=typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Uw.createUnableToLoadTokenError("Please ensure server response includes id token.");if(e.account)this.loadIdToken(t.id_token,e.account.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadAccessToken(e,t,e.account.homeAccountId,e.account.environment,e.account.tenantId,n);else{if(!e.authority)throw Uw.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=new CL(e.authority,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});if(n.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(t.id_token,n.clientInfo,r.hostnameAndPort,r.tenant,n),this.loadAccessToken(e,t,n.clientInfo,r.hostnameAndPort,r.tenant,n);else{if(!t.client_info)throw Uw.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(t.id_token,t.client_info,r.hostnameAndPort,r.tenant,n),this.loadAccessToken(e,t,t.client_info,r.hostnameAndPort,r.tenant,n)}}},e.prototype.loadIdToken=function(e,t,n,r,i){var o=HN.createIdTokenEntity(t,n,e,this.config.auth.clientId,r),a=new LN(e,this.cryptoObj),s=i.clientInfo?MN.createAccount(i.clientInfo,t,a,void 0,void 0,void 0,void 0,n):MN.createGenericAccount(t,a,void 0,void 0,void 0,void 0,n);if(!this.isBrowserEnvironment)throw Uw.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(s),this.storage.setIdTokenCredential(o)},e.prototype.loadAccessToken=function(e,t,n,r,i,o){if(t.access_token){if(!t.expires_in)throw Uw.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw Uw.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new NN(e.scopes).printScopes(),s=jN.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,i,a,t.expires_in,o.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw Uw.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(s)}else this.logger.verbose("TokenCache - No access token provided for caching")},e}(),UL=function(){function e(e){this.isBrowserEnvironment="undefined"!=typeof window,this.config=function(e,t){var n=e.auth,r=e.cache,i=e.system,o={clientId:"",authority:""+Uk.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"",postLogoutRedirectUri:"",navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:$N.AAD},a={cacheLocation:hw.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},s={loggerCallback:function(){},logLevel:wN.Info,piiLoggingEnabled:!1},u=Ew(Ew({},eL),{loggerOptions:s,networkClient:t?jw.getBrowserNetworkClient():aL,navigationClient:new sL,loadFrameTimeout:0,windowHashTimeout:i&&i.loadFrameTimeout||6e4,iframeHashTimeout:i&&i.loadFrameTimeout||6e3,navigateFrameWait:t&&jw.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1});return{auth:Ew(Ew({},o),n),cache:Ew(Ew({},a),r),system:Ew(Ew({},u),i)}}(e,this.isBrowserEnvironment),this.logger=new CN(this.config.system.loggerOptions,"@azure/msal-browser",uL),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.browserCrypto=this.isBrowserEnvironment?new kN:SN,this.eventHandler=new cL(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new JN(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(e,t){return new JN(e,{cacheLocation:hw.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},SN,t)}(this.config.auth.clientId,this.logger),this.tokenCache=new FL(this.config,this.browserStorage,this.logger,this.browserCrypto)}return e.prototype.handleRedirectPromise=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o,a=this;return Tw(this,function(s){return this.logger.verbose("handleRedirectPromise called"),t=this.getAllAccounts(),this.isBrowserEnvironment?(void 0===(r=this.redirectResponse.get(n=e||Uk.EMPTY_STRING))?(this.eventHandler.emitEvent(kw.HANDLE_REDIRECT_START,gw.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getTemporaryCache(fw.CORRELATION_ID,!0)||"",o=new xL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,i),r=o.handleRedirectPromise(e).then(function(e){return e&&(t.length0?kw.ACQUIRE_TOKEN_FAILURE:kw.LOGIN_FAILURE,gw.Redirect,null,e),a.eventHandler.emitEvent(kw.HANDLE_REDIRECT_END,gw.Redirect),e}),this.redirectResponse.set(n,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])})})},e.prototype.acquireTokenRedirect=function(e){return Ow(this,void 0,void 0,function(){var t,n=this;return Tw(this,function(r){return this.preflightBrowserEnvironmentCheck(gw.Redirect),this.logger.verbose("acquireTokenRedirect called"),t=this.getAllAccounts().length>0,this.eventHandler.emitEvent(t?kw.ACQUIRE_TOKEN_START:kw.LOGIN_START,gw.Redirect,e),[2,new xL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e.correlationId).acquireToken(e).catch(function(e){throw n.eventHandler.emitEvent(t?kw.ACQUIRE_TOKEN_FAILURE:kw.LOGIN_FAILURE,gw.Redirect,null,e),e})]})})},e.prototype.acquireTokenPopup=function(e){var t=this;try{this.preflightBrowserEnvironmentCheck(gw.Popup),this.logger.verbose("acquireTokenPopup called",e.correlationId)}catch(r){return Promise.reject(r)}var n=this.getAllAccounts();return this.eventHandler.emitEvent(n.length>0?kw.ACQUIRE_TOKEN_START:kw.LOGIN_START,gw.Popup,e),new PL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e.correlationId).acquireToken(e).then(function(e){var r=n.length0?kw.ACQUIRE_TOKEN_FAILURE:kw.LOGIN_FAILURE,gw.Popup,null,e),Promise.reject(e)})},e.prototype.ssoSilent=function(e){return Ow(this,void 0,void 0,function(){var t,n;return Tw(this,function(r){switch(r.label){case 0:this.preflightBrowserEnvironmentCheck(gw.Silent),this.logger.verbose("ssoSilent called",e.correlationId),this.eventHandler.emitEvent(kw.SSO_SILENT_START,gw.Silent,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,new DL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,vw.ssoSilent,e.correlationId).acquireToken(e)];case 2:return t=r.sent(),this.eventHandler.emitEvent(kw.SSO_SILENT_SUCCESS,gw.Silent,t),[2,t];case 3:throw n=r.sent(),this.eventHandler.emitEvent(kw.SSO_SILENT_FAILURE,gw.Silent,null,n),n;case 4:return[2]}})})},e.prototype.acquireTokenByRefreshToken=function(e){return Ow(this,void 0,void 0,function(){var t=this;return Tw(this,function(n){return this.eventHandler.emitEvent(kw.ACQUIRE_TOKEN_NETWORK_START,gw.Silent,e),jw.blockReloadInHiddenIframes(),[2,new LL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e.correlationId).acquireToken(e).catch(function(n){if(n instanceof EN&&"invalid_grant"===n.errorCode&&!(n instanceof RN))return t.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",e.correlationId),new DL(t.config,t.browserStorage,t.browserCrypto,t.logger,t.eventHandler,t.navigationClient,vw.acquireTokenSilent_authCode).acquireToken(e);throw n})]})})},e.prototype.logout=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead."),[2,this.logoutRedirect(e)]})})},e.prototype.logoutRedirect=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return this.preflightBrowserEnvironmentCheck(gw.Redirect),[2,new xL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==e?void 0:e.correlationId).logout(e)]})})},e.prototype.logoutPopup=function(e){try{return this.preflightBrowserEnvironmentCheck(gw.Popup),new PL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==e?void 0:e.correlationId).logout(e)}catch(t){return Promise.reject(t)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){var t=this.getAllAccounts();return!Nw.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),t.filter(function(t){return t.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){var t=this.getAllAccounts();return!Nw.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),t.filter(function(t){return t.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){var t=this.getAllAccounts();return!Nw.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),t.filter(function(t){return t.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),jw.blockNonBrowserEnvironment(this.isBrowserEnvironment),jw.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),jw.blockReloadInHiddenIframes(),jw.blockAcquireTokenInPopups(),e===gw.Redirect&&this.config.cache.cacheLocation===hw.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Iw.createInMemoryRedirectUnavailableError()},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e}(),HL=function(e){function t(t){return e.call(this,t)||this}return Mk(t,e),t.prototype.acquireToken=function(e){return Nk(this,void 0,void 0,function(){var t;return Lk(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,n.sent()];case 2:if((t=n.sent())instanceof Mw&&t.errorCode===xw)return[2,new NL(this.config).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var t,n,r,i;return Nk(this,void 0,void 0,function(){var o,a,s;return Lk(this,function(u){switch(u.label){case 0:if(!e)throw Dw.createEmptyTokenRequestError();if(!e.account)throw Mw.createNoAccountInSilentRequestError();if(o=new NN(e.scopes||[]),a=e.authority||this.authority.getPreferredCache(),s=this.cacheManager.readCacheRecord(e.account,this.config.authOptions.clientId,o,a,e.authenticationScheme||ow.BEARER),e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(lw.FORCE_REFRESH),Mw.createRefreshRequiredError();if(!s.accessToken)throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(lw.NO_CACHED_ACCESS_TOKEN),Mw.createRefreshRequiredError();if(VN.wasClockTurnedBack(s.accessToken.cachedAt)||VN.isTokenExpired(s.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(lw.CACHED_ACCESS_TOKEN_EXPIRED),Mw.createRefreshRequiredError();if(s.accessToken.refreshOn&&VN.isTokenExpired(s.accessToken.refreshOn,0))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(lw.REFRESH_CACHED_ACCESS_TOKEN),Mw.createRefreshRequiredError();if(!Nw.isEmptyObj(e.claims))throw Mw.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(s,e)];case 1:return[2,u.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,t){return Nk(this,void 0,void 0,function(){var n;return Lk(this,function(r){switch(r.label){case 0:return e.idToken&&(n=new LN(e.idToken.secret,this.config.cryptoInterface)),[4,_L.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,r.sent()]}})})},t}(dL),VL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sw(t,e),t.prototype.acquireToken=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i;return Tw(this,function(o){switch(o.label){case 0:return t=this.initializeServerTelemetryManager(vw.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(t,e.authority)];case 1:n=o.sent(),this.logger.verbose("Silent auth client created"),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,n.acquireCachedToken(e)];case 3:return r=o.sent(),this.eventHandler.emitEvent(kw.ACQUIRE_TOKEN_SUCCESS,gw.Silent,r),[2,r];case 4:throw(i=o.sent())instanceof Uw&&i.errorCode===Fw&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Uw.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t){return Ow(this,void 0,void 0,function(){var n;return Tw(this,function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new HL(n)]}})})},t.prototype.initializeSilentRequest=function(e,t){return Ew(Ew(Ew({},e),this.initializeBaseRequest(e)),{account:t,forceRefresh:e.forceRefresh||!1})},t}(OL),jL=function(e){function t(t){var n=e.call(this,t)||this;return n.activeSilentTokenRequests=new Map,n}return Sw(t,e),t.prototype.loginRedirect=function(e){return Ow(this,void 0,void 0,function(){return Tw(this,function(t){return this.logger.verbose("loginRedirect called"),[2,this.acquireTokenRedirect(e||yw)]})})},t.prototype.loginPopup=function(e){return this.logger.verbose("loginPopup called"),this.acquireTokenPopup(e||yw)},t.prototype.acquireTokenSilent=function(e){return Ow(this,void 0,void 0,function(){var t,n,r,i,o=this;return Tw(this,function(a){if(this.preflightBrowserEnvironmentCheck(gw.Silent),this.logger.verbose("acquireTokenSilent called",e.correlationId),!(t=e.account||this.getActiveAccount()))throw Uw.createNoAccountError();return n=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||"",scopes:e.scopes,homeAccountIdentifier:t.homeAccountId,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims}),void 0===(r=this.activeSilentTokenRequests.get(n))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",e.correlationId),i=this.acquireTokenSilentAsync(e,t).then(function(e){return o.activeSilentTokenRequests.delete(n),e}).catch(function(e){throw o.activeSilentTokenRequests.delete(n),e}),this.activeSilentTokenRequests.set(n,i),[2,i]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",e.correlationId),[2,r])})})},t.prototype.acquireTokenSilentAsync=function(e,t){return Ow(this,void 0,void 0,function(){var n,r,i=this;return Tw(this,function(o){return n=new VL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient),r=n.initializeSilentRequest(e,t),this.eventHandler.emitEvent(kw.ACQUIRE_TOKEN_START,gw.Silent,e),[2,n.acquireToken(r).catch(function(){return Ow(i,void 0,void 0,function(){var e,t;return Tw(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireTokenByRefreshToken(r)];case 1:return e=n.sent(),this.eventHandler.emitEvent(kw.ACQUIRE_TOKEN_SUCCESS,gw.Silent,e),[2,e];case 2:throw t=n.sent(),this.eventHandler.emitEvent(kw.ACQUIRE_TOKEN_FAILURE,gw.Silent,null,t),t;case 3:return[2]}})})})]})})},t}(UL);function BL(e,t){console.log(t)}function zL(){return new jL({auth:{clientId:"a314f18e-c3de-497b-bb6a-99e2b7c8fae2",authority:"https://login.microsoftonline.com/ea80952e-a476-42d4-aaf4-5457852b0f7e",redirectUri:"/",postLogoutRedirectUri:"/",navigateToLoginRequestUrl:!0},cache:{cacheLocation:hw.LocalStorage,storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:BL,logLevel:wN.Info,piiLoggingEnabled:!0}}})}function qL(){return{interactionType:gw.Redirect,protectedResourceMap:new Map(bD),authRequest:{prompt:"select_account"}}}function KL(){return{interactionType:gw.Redirect,authRequest:{prompt:"select_account"}}}var GL=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e}),e.\u0275inj=Ze({providers:[{provide:UO,useClass:gO,multi:!0},{provide:uO,useFactory:zL},{provide:cO,useFactory:KL},{provide:lO,useFactory:qL},fO,vO,pO],imports:[[mO]]}),e}(),WL=function(){var e=function e(){H(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=It({type:e,bootstrap:[dD]}),e.\u0275inj=Ze({providers:[mO,fO,kD,fD,GL],imports:[[tb,Ok,$E,Op,Ik,QO,lN,FR,mO,GL,Yv,Qv,px,XI,Px,YM,xx,sD]]}),e}();Sp().bootstrapModule(WL).catch(function(e){return console.error(e)})}},function(e){e(e.s=7050)}])}();