(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(H);function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),K(S,t)}function $(t,e){return e?W(t,e):new k(N(t))}function J(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof k?t[0]:X(n)($(t,r))}function tt(){return function(t){return t.lift(new et(t))}}var et=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new nt(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),nt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(b),rt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new f).add(this.source.subscribe(new ot(this.getSubject(),this))),t.closed&&(this._connection=null,t=f.EMPTY)),t},e.prototype.refCount=function(){return tt()(this)},e}(k),it=function(){var t=rt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),ot=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(R);function st(){return new T}function at(){return function(t){return tt()((e=st,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,it);return r.source=t,r.subjectFactory=n,r})(t));var e}}function ut(t){return{toString:t}.toString()}var lt="__parameters__";function ct(t,e,n){return ut((function(){var r=function(t){return function(){for(var e=[],n=0;n=t.length?t.push(n):t.splice(e,0,n)}function pe(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function he(t,e){for(var n=[],r=0;r=0)return t[1|n]}function de(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),s=t[o<<1];if(e===s)return o<<1;s>e?i=o:r=o+1}return~(i<<1)}(t,e)}var me=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ye=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),ge={},ve=[],_e=0;function be(t){return ut((function(){var e=t.type,n=e.prototype,r={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===me.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ve,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ye.Emulated,id:"c",styles:t.styles||ve,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,s=t.features,a=t.pipes;return i.id+=_e++,i.inputs=Ee(t.inputs,r),i.outputs=Ee(t.outputs),s&&s.forEach((function(t){return t(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(we)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Ce)}:null,i}))}function we(t){return Ae(t)||function(t){return t[Ut]||null}(t)}function Ce(t){return function(t){return t[Ht]||null}(t)}var Se={};function xe(t){var e={type:t.type,bootstrap:t.bootstrap||ve,declarations:t.declarations||ve,imports:t.imports||ve,exports:t.exports||ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ut((function(){Se[t.id]=t.type})),e}function Ee(t,e){if(null==t)return ge;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var ke=be;function Ae(t){return t[Bt]||null}function Pe(t,e){return t.hasOwnProperty(Gt)?t[Gt]:null}function Oe(t,e){var n=t[zt]||null;if(!n&&!0===e)throw new Error("Type "+Pt(t)+" does not have '\u0275mod' property.");return n}function Re(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Ie(t){return 0!=(8&t.flags)}function De(t){return 2==(2&t.flags)}function Le(t){return 1==(1&t.flags)}function Ne(t){return null!==t.template}function Me(t){return 0!=(512&t[2])}var Fe=void 0;function je(t){return!!t.listen}var Ve={createRenderer:function(t,e){return void 0!==Fe?Fe:"undefined"!=typeof document?document:void 0}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function Ue(t,e){return Be(e[t+20])}function He(t,e){return Be(e[t.index])}function ze(t,e){return t.data[e+20]}function qe(t,e){return t[e+20]}function Ge(t,e){var n=e[t];return Re(n)?n:n[0]}function We(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Qe(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ze(t,e){return null===t||null==e?null:t[e]}function Ye(t){t[18]=0}function Xe(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var $e={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Je(){return $e.bindingsEnabled}function tn(){return $e.lFrame.lView}function en(){return $e.lFrame.tView}function nn(t){$e.lFrame.contextLView=t}function rn(){return $e.lFrame.previousOrParentTNode}function on(t,e){$e.lFrame.previousOrParentTNode=t,$e.lFrame.isParent=e}function sn(){return $e.lFrame.isParent}function an(){$e.lFrame.isParent=!1}function un(){return $e.checkNoChangesMode}function ln(t){$e.checkNoChangesMode=t}function cn(){return $e.lFrame.bindingIndex}function pn(){return $e.lFrame.bindingIndex++}function hn(t){var e=$e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function fn(t,e){var n=$e.lFrame;n.bindingIndex=n.bindingRootIndex=t,dn(e)}function dn(t){$e.lFrame.currentDirectiveIndex=t}function mn(){return $e.lFrame.currentQueryIndex}function yn(t){$e.lFrame.currentQueryIndex=t}function gn(t,e){var n=_n();$e.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function vn(t,e){var n=_n(),r=t[1];$e.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function _n(){var t=$e.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function wn(){var t=$e.lFrame;return $e.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var Cn=wn;function Sn(){var t=wn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function xn(){return $e.lFrame.selectedIndex}function En(t){$e.lFrame.selectedIndex=t}function kn(){var t=$e.lFrame;return ze(t.tView,t.selectedIndex)}function An(){$e.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Pn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[s]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}var Ln=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}();function Nn(t,e,n){for(var r=je(t),i=0;ie){s=o-1;break}}}for(;o>16}function zn(t,e){for(var n=Hn(t),r=e;n>0;)r=r[15],n--;return r}function qn(t){return"string"==typeof t?t:null==t?"":""+t}function Gn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():qn(t)}var Wn=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt)}();function Qn(t){return t instanceof Function?t():t}var Kn=!0;function Zn(t){var e=Kn;return Kn=t,e}var Yn=0;function Xn(t,e){var n=Jn(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,$n(r.data,t),$n(e,null),$n(r.blueprint,null));var i=tr(t,e),o=t.injectorIndex;if(Bn(i))for(var s=Un(i),a=zn(i,e),u=a[1].data,l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l];return e[o+8]=i,o}function $n(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function tr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],r=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function er(t,e,n){!function(t,e,n){var r="string"!=typeof n?n[Wt]:n.charCodeAt(0)||0;null==r&&(r=n[Wt]=Yn++);var i=255&r,o=1<0?255&e:e}(n);if("function"==typeof o){gn(e,t);try{var s=o();if(null!=s||r&mt.Optional)return s;throw new Error("No provider for "+Gn(n)+"!")}finally{Cn()}}else if("number"==typeof o){if(-1===o)return new lr(t,e);var a=null,u=Jn(t,e),l=-1,c=r&mt.Host?e[16][6]:null;for((-1===u||r&mt.SkipSelf)&&(l=-1===u?tr(t,e):e[u+8],ur(r,!1)?(a=e[1],u=Un(l),e=zn(l,e)):u=-1);-1!==u;){l=e[u+8];var p=e[1];if(ar(o,u,p.data)){var h=ir(u,e,n,a,r,c);if(h!==rr)return h}ur(r,e[1].data[u+8]===c)&&ar(o,u,e)?(a=p,u=Un(l),e=zn(l,e)):u=-1}}}if(r&mt.Optional&&void 0===i&&(i=null),0==(r&(mt.Self|mt.Host))){var f=e[9],d=te(void 0);try{return f?f.get(n,i,r&mt.Optional):ie(n,i,r&mt.Optional)}finally{te(d)}}if(r&mt.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+Gn(n)+"]")}var rr={};function ir(t,e,n,r,i,o){var s=e[1],a=s.data[t+8],u=or(a,s,n,null==r?De(a)&&Kn:r!=s&&3===a.type,i&mt.Host&&o===a);return null!==u?sr(e,s,u,a):rr}function or(t,e,n,r,i){for(var o=t.providerIndexes,s=e.data,a=65535&o,u=t.directiveStart,l=o>>16,c=i?a+l:t.directiveEnd,p=r?a:a+l;p=u&&h.type===n)return p}if(i){var f=s[u];if(f&&Ne(f)&&f.type===n)return u}return null}function sr(t,e,n,r){var i=t[n],o=e.data;if(i instanceof Ln){var s=i;if(s.resolving)throw new Error("Circular dep for "+Gn(o[n]));var a=Zn(s.canSeeViewProviders);s.resolving=!0;var u=void 0;s.injectImpl&&(u=te(s.injectImpl)),gn(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.onChanges,i=e.onInit,o=e.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&te(u),Zn(a),s.resolving=!1,Cn()}}return i}function ar(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Vr.hasOwnProperty(e)&&!Nr.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Qr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Gr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wr=/([^\#-~ |!])/g;function Qr(t){return t.replace(/&/g,"&").replace(Gr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Wr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function Kr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Zr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Yr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Xr=/^url\(([^)]+)\)$/;function $r(t){var e,n=(e=tn())&&e[12];return n?n.sanitize(Zr.URL,t)||"":Sr(t,"URL")?Cr(t):Tr(qn(t))}function Jr(t,e){t.__ngContext__=e}function ti(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ei(){throw new Error("Cannot mix multi providers and regular providers")}function ni(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function ri(t,e,n){for(var r=0;ro?"":i[c+1].toLowerCase();var h=8&r?p:null;if(h&&-1!==ni(h,l,0)||2&r&&l!==p){if(ai(r))return!1;s=!0}}}}else{if(!s&&!ai(r)&&!ai(u))return!1;if(s&&ai(u))continue;s=!1,r=u|1&r}}return ai(r)||s}function ai(t){return 0==(1&t)}function ui(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||ai(s)||(e+=pi(o,i),i=""),r=s,o=o||!ai(r);n++}return""!==i&&(e+=pi(o,i)),e}var fi={};function di(t){var e=t[3];return Te(e)?e[3]:e}function mi(t){return gi(t[13])}function yi(t){return gi(t[4])}function gi(t){for(;null!==t&&!Te(t);)t=t[4];return t}function vi(t){_i(en(),tn(),xn()+t,un())}function _i(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&On(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Rn(e,o,0,n)}En(n)}function bi(t,e){return t<<17|e<<2}function wi(t){return t>>17&32767}function Ci(t){return 2|t}function Si(t){return(131068&t)>>2}function xi(t,e){return-131069&t|e<<2}function Ei(t){return 1|t}function ki(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&_i(t,e,0,un()),n(r,i)}finally{En(o)}}function Li(t,e,n){if(Ie(e))for(var r=e.directiveEnd,i=e.directiveStart;i0&&function t(e){for(var n=mi(e);null!==n;n=yi(n))for(var r=10;r0&&t(i)}var s=e[1].components;if(null!==s)for(r=0;r0&&t(a)}}(n)}}function no(t,e){var n=Ge(e,t),r=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=r[4]);var o=pe(t,10+e);vo(r[1],r,!1,null);var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function wo(t,e){if(!(256&e[2])){var n=e[11];je(n)&&n.destroyNode&&Do(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return So(t[1],t);for(;e;){var n=null;if(Re(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Re(e)&&So(e[1],e),e=Co(e,t);null===e&&(e=t),Re(e)&&So(e[1],e),n=e&&e[4]}e=n}}(e)}}function Co(t,e){var n;return Re(t)&&(n=t[6])&&2===n.type?mo(n,t):t[3]===e?null:t[3]}function So(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[a]():r[-a].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&je(e[11])&&e[11].destroy();var r=e[17];if(null!==r&&Te(e[3])){r!==e[3]&&_o(r,e);var i=e[19];null!==i&&i.detachView(t)}}}function xo(t,e,n){for(var r=e.parent;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){var i=n[6];return 2===i.type?yo(i,n):n[0]}if(e&&5===e.type&&4&e.flags)return He(e,n).parentNode;if(2&r.flags){var o=t.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==ye.ShadowDom&&s!==ye.Native)return null}return He(r,n)}function Eo(t,e,n,r){je(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function ko(t,e,n){je(t)?t.appendChild(e,n):e.appendChild(n)}function Ao(t,e,n,r){null!==r?Eo(t,e,n,r):ko(t,e,n)}function Po(t,e){return je(t)?t.parentNode(e):e.parentNode}function Oo(t,e){if(2===t.type){var n=mo(t,e);return null===n?null:To(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?He(t,e):null}function Ro(t,e,n,r){var i=xo(t,r,e);if(null!=i){var o=e[11],s=Oo(r.parent||e[6],e);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wo(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,r;e=this._lView[1],r=t,lo(n=this._lView).push(r),e.firstCreatePass&&co(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){io(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){oo(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){ln(!0);try{oo(t,e,n)}finally{ln(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,Do(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),Uo=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return i(e,t),e.prototype.detectChanges=function(){so(this._view)},e.prototype.checkNoChanges=function(){!function(t){ln(!0);try{so(t)}finally{ln(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Bo);function Ho(t,e,n){return Fo||(Fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t)),new Fo(He(e,n))}function zo(t,e,n,r){return jo||(jo=function(t){function e(e,n,r){var i=t.call(this)||this;return i._declarationView=e,i._declarationTContainer=n,i.elementRef=r,i}return i(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Pi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ri(e,n,t),new Bo(n)},e}(t)),0===n.type?new jo(r,n,Ho(e,n,r)):null}function qo(t,e,n,r){var o;Vo||(Vo=function(t){function n(e,n,r){var i=t.call(this)||this;return i._lContainer=e,i._hostTNode=n,i._hostView=r,i}return i(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return Ho(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new lr(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=tr(this._hostTNode,this._hostView),e=zn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Hn(t),s=e,a=e[6];o>1;)a=(s=s[15])[6],o--;return a}(t,this._hostView,this._hostTNode);return Bn(t)&&null!=n?new lr(n,e):new lr(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-10},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},n.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var s=o.get(ae,null);s&&(i=s)}var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},n.prototype.insert=function(t,e){var n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],s=new Vo(o,o[6],o[3]);s.detach(s.indexOf(t))}}var a=this._adjustIndex(e);return function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r ");else if("object"==typeof e){var o=[];for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Pt(a)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+t.replace(Yt,"\n ")}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(a,t,"R3InjectorError",this.source)}throw a}finally{Jt(i)}},t.prototype._resolveInjectorDefTypes=function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(Pt(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(!(t=It(t)))return!1;var i=Ct(t),o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=Ct(o)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(s);try{le(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,i=e.providers;le(i,(function(t){return r.processProvider(t,n,i||Yo)}))},c=0;c0){var n=he(e,"?");throw new Error("Can't resolve all parameters for "+Pt(t)+": ("+n.join(", ")+").")}var r=function(t){var e=t&&(t[St]||t[kt]||t[Et]&&t[Et]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ns(t,e,n){var r,i=void 0;if(os(t)){var o=It(t);return Pe(o)||es(o)}if(is(t))i=function(){return It(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,u(oe(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return ne(It(t.useExisting))};else{var s=It(t&&(t.useClass||t.provide));if(s||function(t,e,n){var r="";throw t&&e&&(r=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Pt(t)+"'"+r)}(e,n,t),!function(t){return!!t.deps}(t))return Pe(s)||es(s);i=function(){return new(s.bind.apply(s,u([void 0],oe(t.deps))))}}return i}function rs(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function is(t){return null!==t&&"object"==typeof t&&Xt in t}function os(t){return"function"==typeof t}var ss=function(t,e,n){return function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null);var i=Jo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},as=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?ss(t,e,""):ss(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=Zt,t.NULL=new se,t.\u0275prov=vt({token:t,providedIn:"any",factory:function(){return ne(Kt)}}),t.__NG_ELEMENT_ID__=-1,t}(),us=new Qt("AnalyzeForEntryComponents"),ls=new Map,cs=new Set;function ps(t){return"string"==typeof t?t:t.text()}function hs(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var s=0;su?a[u]:null}"string"==typeof s&&(o+=2)}return null}(t,e,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,p=!1;else{o=Vs(r,e,o,!1);var v=n.listen(f.name||d,i,o);c.push(o,v),l&&l.push(i,y,m,m+1)}}else o=Vs(r,e,o,!0),d.addEventListener(i,o,s),c.push(o),l&&l.push(i,y,m,s)}var _,b=r.outputs;if(p&&null!==b&&(_=b[i])){var w=_.length;if(w)for(var C=0;C0;)e=e[15],t--;return e}(t,$e.lFrame.contextLView))[8]}(t)}function Us(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i=0}function Qs(t,e,n){return Zs(t,e,n,!1),Qs}function Ks(t,e){return Zs(t,e,null,!0),Ks}function Zs(t,e,n,r){var i,o=tn(),s=en(),a=hn(2);if(s.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[xn()+20],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){var i=function(t){var e=$e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Xs(n=Ys(null,t,e,n,r),e.attrs,r),o=null);else{var s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=Ys(i,t,e,n,r),null===o){var a=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Si(r))return t[wi(r)]}(t,e,r);void 0!==a&&Array.isArray(a)&&function(t,e,n,r){t[wi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,a=Xs(a=Ys(null,t,e,a[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):l=n,i)if(0!==u){var p=wi(t[a+1]);t[r+1]=bi(p,a),0!==p&&(t[p+1]=xi(t[p+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=bi(a,0),0!==a&&(t[a+1]=xi(t[a+1],r)),a=r;else t[r+1]=bi(u,0),0===a?a=r:t[u+1]=xi(t[u+1],r),u=r;c&&(t[r+1]=Ci(t[r+1])),Gs(t,l,r,!0),Gs(t,l,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&de(o,e)>=0&&(n[r+1]=Ei(n[r+1]))}(e,l,t,r,o),s=bi(a,u),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}(s,t,a,r),e!==fi&&_s(o,a,e)){var u=void 0;null==n&&(u=null===(i=$e.lFrame)?null:i.currentSanitizer)&&(n=u),function(t,e,n,r,i,o,s,a){if(3===e.type){var u=t.data,l=u[a+1];Js(1==(1&l)?$s(u,e,n,i,Si(l),s):void 0)||(Js(o)||function(t){return 2==(2&t)}(l)&&(o=$s(u,null,n,i,a,s)),function(t,e,n,r,i){var o=je(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var s=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,s):n.style.removeProperty(r):o?t.setStyle(n,r,i,s):n.style.setProperty(r,i)}}(r,s,Ue(xn(),n),i,o))}}(s,s.data[xn()+20],o,o[11],t,o[a+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Pt(Cr(t)))),t}(e,n),r,a)}}function Ys(t,e,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a=0?r[1|s]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,s=~s,i,o))}return void 0===t?null:t}function $s(t,e,n,r,i,o){for(var s=null===e,a=void 0;i>0;){var u=t[i],l=Array.isArray(u),c=l?u[1]:u,p=null===c,h=n[i+1];h===fi&&(h=p?qs:void 0);var f=p?fe(h,r):c===r?h:void 0;if(l&&!Js(f)&&(f=fe(u,r)),Js(f)&&(a=f,s))return a;var d=t[i+1];i=s?wi(d):Si(d)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(a=fe(m,r))}return a}function Js(t){return void 0!==t}function ta(t,e){void 0===e&&(e="");var n=tn(),r=en(),i=t+20,o=r.firstCreatePass?Oi(r,n[6],t,3,null,null):r.data[i],s=n[i]=function(t,e){return je(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ro(r,n,s,o),on(o,!1)}function ea(t){return na("",t,""),ea}function na(t,e,n){var r=tn(),i=function(t,e,n,r){return _s(t,pn(),n)?e+qn(n)+r:fi}(r,t,e,n);return i!==fi&&fo(r,xn(),i),na}function ra(t,e,n,r,i){var o=tn(),s=function(t,e,n,r,i,o){var s=function(t,e,n,r){var i=_s(t,e,n);return _s(t,e+1,r)||i}(t,cn(),n,i);return hn(2),s?e+qn(n)+r+qn(i)+o:fi}(o,t,e,n,r,i);return s!==fi&&fo(o,xn(),s),ra}function ia(t,e,n){var r=tn();return _s(r,pn(),e)&&Ui(en(),kn(),r,t,e,r[11],n,!0),ia}function oa(t,e){var n=We(t)[1],r=n.data.length-1;Pn(n,{directiveStart:r,directiveEnd:r+1})}function sa(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(Ne(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=aa(t.inputs),o.declaredInputs=aa(t.declaredInputs),o.outputs=aa(t.outputs);var s=i.hostBindings;s&&ca(t,s);var a=i.viewQuery,u=i.contentQueries;if(a&&ua(t,a),u&&la(t,u),gt(t.inputs,i.inputs),gt(t.declaredInputs,i.declaredInputs),gt(t.outputs,i.outputs),Ne(i)&&i.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=t.afterContentInit||i.afterContentInit,o.afterViewChecked=t.afterViewChecked||i.afterViewChecked,o.afterViewInit=t.afterViewInit||i.afterViewInit,o.doCheck=t.doCheck||i.doCheck,o.onDestroy=t.onDestroy||i.onDestroy,o.onInit=t.onInit||i.onInit}var c=i.features;if(c)for(var p=0;p=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=jn(i.hostAttrs,n=jn(n,i.hostAttrs))}}(r)}function aa(t){return t===ge?{}:t===ve?[]:t}function ua(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function la(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function ca(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var pa=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function ha(t){t.type.prototype.ngOnChanges&&(t.setInput=fa,t.onChanges=function(){var t=da(this),e=t&&t.current;if(e){var n=t.previous;if(n===ge)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}})}function fa(t,e,n,r){var i=da(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ge,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new pa(u&&u.currentValue,e,s===ge),t[r]=e}function da(t){return t.__ngSimpleChanges__||null}function ma(t,e,n,r,i){if(t=It(t),Array.isArray(t))for(var o=0;o>16;if(os(t)||!t.multi){var d=new Ln(l,i,Ss),m=va(u,e,i?p:p+f,h);-1===m?(er(Xn(c,a),s,u),ya(s,t,e.length),e.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(d),a.push(d)):(n[m]=d,a[m]=d)}else{var y=va(u,e,p+f,h),g=va(u,e,p,p+f),v=g>=0&&n[g];i&&!v||!i&&!(y>=0&&n[y])?(er(Xn(c,a),s,u),d=function(t,e,n,r,i){var o=new Ln(t,n,Ss);return o.multi=[],o.index=e,o.componentProviders=0,ga(o,i,r&&!n),o}(i?ba:_a,n.length,i,r,l),!i&&v&&(n[g].providerFactory=d),ya(s,t,e.length,0),e.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(d),a.push(d)):ya(s,t,y>-1?y:g,ga(n[i?g:y],l,!i&&r)),!i&&r&&v&&n[g].componentProviders++}}}function ya(t,e,n,r){var i=os(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var a=s.indexOf(n);-1===a?s.push(n,[r,o]):s[a+1].push(r,o)}else s.push(n,o)}}}function ga(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function va(t,e,n,r){for(var i=n;i0&&Mo(l,p,b.join(" "))}if(o=ze(m,0),void 0!==e)for(var w=o.projection=[],C=0;C null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var du=new Map,mu=function(t){function e(e,n){var r=t.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[],r.componentFactoryResolver=new nu(r);var i=Oe(e),o=e[qt]||null;return o&&fu(o),r._bootstrapComponents=Qn(i.bootstrap),r._r3Injector=Jo(e,n,[{provide:ae,useValue:r},{provide:ka,useValue:r.componentFactoryResolver}],Pt(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return i(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=as.THROW_IF_NOT_FOUND),void 0===n&&(n=mt.Default),t===as||t===ae||t===Kt?this:this._r3Injector.get(t,e,n)},e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ae),yu=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Oe(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+Pt(e)+" vs "+Pt(e.name))})(n,du.get(n),e),du.set(n,e)}var r=e.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(e){return t(e)}))}(e),n}return i(e,t),e.prototype.create=function(t){return new mu(this.moduleType,t)},e}(ue);function gu(t,e){var n,r=en(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '"+t+"' could not be found!")}(e,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=Pe(n.type)),s=te(Ss),a=Zn(!1),u=o();return Zn(a),te(s),function(t,e,n,r){var i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(r,tn(),t,u),u}function vu(t,e,n){var r=tn(),i=qe(r,t);return function(t,e){return ys.isWrapped(e)&&(e=ys.unwrap(e),t[cn()]=fi),e}(r,function(t,e){return t[1].data[e+20].pure}(r,t)?function(t,e,n,r,i,o){var s=e+n;return _s(t,s,i)?function(t,e,n){return t[e]=n}(t,s+1,o?r.call(o,i):r(i)):function(t,e){var n=t[e];return n===fi?void 0:n}(t,s+1)}(r,function(){var t=$e.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}var _u=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return i(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof f&&e.add(a),a},e}(T);function bu(){return this._results[ds()]()}var wu=function(){function t(){this.dirty=!0,this._results=[],this.changes=new _u,this.length=0;var e=ds(),n=t.prototype;n[e]||(n[e]=bu)}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var r=0;r0)i.push(a[u/2]);else{for(var c=s[u+1],p=n[-l],h=10;h0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.\u0275fac=function(e){return new(e||t)(ne(cl))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),bl=function(){function t(){this._applications=new Map,wl.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),wl.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),wl=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Cl=function(t,e,n){var r=t.get(al,[]).concat(e),i=new yu(n);if(0===ls.size)return Promise.resolve(i);var o,s,a=(o=r.map((function(t){return t.providers})),s=[],o.forEach((function(t){return t&&s.push.apply(s,u(t))})),s);if(0===a.length)return Promise.resolve(i);var l=function(){var t=Vt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),c=as.create({providers:a}).get(l.ResourceLoader);return function(t){var e=[],n=new Map;function r(t){var e=n.get(t);if(!e){var r=function(t){return Promise.resolve(c.get(t))}(t);n.set(t,e=r.then(ps))}return e}return ls.forEach((function(t,n){var i=[];t.templateUrl&&i.push(r(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((function(e,n){s.push(""),i.push(r(e).then((function(r){s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(t){cs.delete(t)}(n)}));e.push(u)})),ls=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},Sl=new Qt("AllowMultipleToken"),xl=function(){return function(t,e){this.name=t,this.token=e}}();function El(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Qt(r);return function(e){void 0===e&&(e=[]);var o=kl();if(!o||o.injector.get(Sl,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var s=n.concat(e).concat({provide:i,useValue:!0},{provide:Qo,useValue:"platform"});!function(t){if(gl&&!gl.destroyed&&!gl.injector.get(Sl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gl=t.get(Al);var e=t.get(Qu,null);e&&e.forEach((function(t){return t()}))}(as.create({providers:s,name:r}))}return function(t){var e=kl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function kl(){return gl&&!gl.destroyed?gl:null}var Al=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r,i=this,o=(r=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new vl:("zone.js"===n?void 0:n)||new cl({enableLongStackTrace:Ar(),shouldCoalesceEventChangeDetection:r})),s=[{provide:cl,useValue:o}];return o.run((function(){var e=as.create({providers:s,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(mr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Rl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var o=((s=n.injector.get(zu)).runInitializers(),s.donePromise.then((function(){return fu(n.injector.get(Xu,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Ns(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(a){throw e.runOutsideAngular((function(){return t.handleError(a)})),a}var s}(r,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Pl({},e);return Cl(this.injector,r,t).then((function(t){return n.bootstrapModuleFactory(t,r)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ol);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Pt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(ne(as))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Pl(t,e){return Array.isArray(e)?e.reduce(Pl,t):o(o({},t),e)}var Ol=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ar(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var a=new k((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),u=new k((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){cl.assertNotInAngularZone(),ll((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){cl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=J(a,u.pipe(at()))}return t.prototype.bootstrap=function(t,e){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=t instanceof xa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ae),o=n.create(as.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(_l,null);return s&&o.injector.get(bl).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Ar()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,r,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=s(this._views),a=o.next();!a.done;a=o.next())a.value.detectChanges()}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var u=s(this._views),l=u.next();!l.done;l=u.next())l.value.checkNoChanges()}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}catch(h){this._zone.runOutsideAngular((function(){return i._exceptionHandler.handleError(h)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Rl(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Zu,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Rl(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(t){return t.destroy()}))},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(ne(cl),ne(Yu),ne(as),ne(mr),ne(ka),ne(zu))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Rl(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Tl=function(){return function(){}}(),Il=function(){return function(){}}(),Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ll=function(){function t(t,e){this._compiler=t,this._config=e||Dl}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=a(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then((function(t){return t[o]})).then((function(t){return Nl(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=a(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return Nl(t,r,i)}))},t.\u0275fac=function(e){return new(e||t)(ne(sl),ne(Il,8))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Nl(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Ml=El(null,"core",[{provide:Ku,useValue:"unknown"},{provide:Al,deps:[as]},{provide:bl,deps:[]},{provide:Yu,deps:[]}]),Fl=[{provide:Ol,useClass:Ol,deps:[cl,Yu,as,mr,ka,zu]},{provide:iu,deps:[cl],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:zu,useClass:zu,deps:[[new ht,Hu]]},{provide:sl,useClass:sl,deps:[]},Gu,{provide:Wa,useFactory:function(){return Za},deps:[]},{provide:Qa,useFactory:function(){return Ya},deps:[]},{provide:Xu,useFactory:function(t){return fu(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new pt(Xu),new ht,new dt]]},{provide:$u,useValue:"USD"}],jl=function(){function t(t){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(Ol))},providers:Fl}),t}(),Vl="https://gencosoft-paymentapi.azurewebsites.net/api",Bl=null;function Ul(){return Bl}var Hl=function(){return function(){}}(),zl=new Qt("DocumentToken"),ql=function(){function t(){}return t.\u0275prov=vt({factory:Gl,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function Gl(){return ne(Ql)}var Wl=new Qt("Location Initialized"),Ql=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return i(e,t),e.prototype._init=function(){this.location=Ul().getLocation(),this._history=Ul().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return Ul().getBaseHref(this._doc)},e.prototype.onPopState=function(t){Ul().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){Ul().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){Kl()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){Kl()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=vt({factory:Zl,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(ne(zl))},e}(ql);function Kl(){return!!window.history.pushState}function Zl(){return new Ql(ne(zl))}function Yl(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Xl(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function $l(t){return t&&"?"!==t[0]?"?"+t:t}var Jl=function(){function t(){}return t.\u0275prov=vt({factory:tc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function tc(t){var e=ne(zl).location;return new nc(ne(ql),e&&e.origin||"")}var ec=new Qt("appBaseHref"),nc=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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 r._baseHref=n,r}return i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Yl(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+$l(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+$l(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+$l(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ne(ql),ne(ec,8))},e.\u0275prov=vt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Jl),rc=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Yl(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+$l(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+$l(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ne(ql),ne(ec,8))},e.\u0275prov=vt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Jl),ic=function(){function t(t,e){var n=this;this._subject=new _u,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Xl(sc(r)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+$l(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,sc(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+$l(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+$l(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=$l,t.joinWithSlash=Yl,t.stripTrailingSlash=Xl,t.\u0275prov=vt({factory:oc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(Jl),ne(ql))},t}();function oc(){return new ic(ne(Jl),ne(ql))}function sc(t){return t.replace(/\/index.html$/,"")}var ac={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},uc=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),lc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),cc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function pc(t,e){var n=cu(t),r=n[hu.NumberSymbols][e];if(void 0===r){if(e===cc.CurrencyDecimal)return n[hu.NumberSymbols][cc.Decimal];if(e===cc.CurrencyGroup)return n[hu.NumberSymbols][cc.Group]}return r}var hc=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function fc(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var dc=function(){return function(){}}(),mc=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return i(e,t),e.prototype.getPluralCategory=function(t,e){switch(function(t){return cu(t)[hu.PluralCase]}(e||this.locale)(t)){case lc.Zero:return"zero";case lc.One:return"one";case lc.Two:return"two";case lc.Few:return"few";case lc.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(ne(Xu))},e.\u0275prov=vt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(dc);function yc(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=s(t.split(";")),o=i.next();!o.done;o=i.next()){var u=o.value,l=u.indexOf("="),c=a(-1==l?[u,""]:[u.slice(0,l),u.slice(l+1)],2),p=c[1];if(c[0].trim()===e)return decodeURIComponent(p)}}catch(h){n={error:h}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var gc=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(gs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Pt(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(Ss(Wa),Ss(Qa),Ss(Aa),Ss(Ta))},t.\u0275dir=ke({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),vc=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),_c=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Ar()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new vc(null,e._ngForOf,-1,-1),null===i?void 0:i),s=new bc(t,o);n.push(s)}else null==i?e._viewContainer.remove(null===r?void 0:r):null!==r&&(o=e._viewContainer.get(r),e._viewContainer.move(o,i),s=new bc(t,o),n.push(s))}));for(var r=0;r-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(s.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var c=e.minInt,p=e.minFrac,h=e.maxFrac;if(o){var f=o.match(hc);if(null===f)throw new Error(o+" is not a valid digit info");var d=f[1],m=f[3],y=f[5];null!=d&&(c=fc(d)),null!=m&&(p=fc(m)),null!=y?h=fc(y):null!=m&&p>h&&(h=p)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(var u=s;u=5)if(s-1<0){for(var c=0;c>s;c--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i=h?r.pop():p=!1),e>=10?1:0}),0);f&&(r.unshift(f),t.integerLen++)}(l,p,h);var g=l.digits,v=l.integerLen,_=l.exponent,b=[];for(u=g.every((function(t){return!t}));v0?b=g.splice(v,g.length):(b=g,g=[0]);var w=[];for(g.length>=e.lgSize&&w.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)w.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&w.unshift(g.join("")),a=w.join(pc(n,r)),b.length&&(a+=pc(n,i)+b.join("")),_&&(a+=pc(n,cc.Exponential)+"+"+_)}else a=pc(n,cc.Infinity);return t<0&&!u?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf}(t,o,e,cc.CurrencyGroup,cc.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(t),o,s,n,i)}catch(a){throw function(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Pt(t)+"'")}(e,a.message)}},t.\u0275fac=function(e){return new(e||t)(Ss(Xu),Ss($u))},t.\u0275pipe={type:(n={name:"currency",type:t,pure:!0}).type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null},t}(),Pc=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[{provide:dc,useClass:mc}]}),t}();function Oc(t){return"browser"===t}function Rc(t){return"server"===t}var Tc,Ic=function(){function t(){}return t.\u0275prov=vt({token:t,providedIn:"root",factory:function(){return new Dc(ne(zl),window,ne(mr))}}),t}(),Dc=function(){function t(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),Lc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.makeCurrent=function(){var t;t=new e,Bl||(Bl=t)},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.getValue=function(t){return t.value},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=Nc||(Nc=document.querySelector("base"))?Nc.getAttribute("href"):null;return null==n?null:(e=n,Tc||(Tc=document.createElement("a")),Tc.setAttribute("href",e),"/"===Tc.pathname.charAt(0)?Tc.pathname:"/"+Tc.pathname)},e.prototype.resetBaseElement=function(){Nc=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return yc(document.cookie,t)},e}(function(t){function e(){return t.call(this)||this}return i(e,t),e.prototype.supportsDOMEvents=function(){return!0},e}(Hl)),Nc=null,Mc=new Qt("TRANSITION_ID"),Fc=[{provide:Hu,useFactory:function(t,e,n){return function(){n.get(zu).donePromise.then((function(){var n=Ul();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[Mc,zl,as],multi:!0}],jc=function(){function t(){}return t.init=function(){var e;e=new t,wl=e},t.prototype.addToWindow=function(t){Vt.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Vt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Vt.getAllAngularRootElements=function(){return t.getAllRootElements()},Vt.frameworkStabilizers||(Vt.frameworkStabilizers=[]),Vt.frameworkStabilizers.push((function(t){var e=Vt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Ul().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null},t}(),Vc=new Qt("EventManagerPlugins"),Bc=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach((function(t){return t.manager=n})),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&ep.hasOwnProperty(e)&&(e=ep[e]))}return tp[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Jc.forEach((function(r){r!=n&&(0,np[r])(t)&&(e+=r+".")})),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(ne(zl))},e.\u0275prov=vt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Uc),ip=function(){function t(){}return t.\u0275prov=vt({factory:function(){return ne(op)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),op=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Zr.NONE:return e;case Zr.HTML:return Sr(e,"HTML")?Cr(e):function(t,e){var n=null;try{Lr=Lr||new Pr(t);var r=e?String(e):"";n=Lr.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=Lr.getInertBodyElement(r)}while(r!==o);var s=new qr,a=s.sanitizeChildren(Kr(n)||n);return Ar()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Kr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e));case Zr.STYLE:return Sr(e,"Style")?Cr(e):function(t){if(!(t=String(t).trim()))return"";var e=t.match(Xr);return e&&Tr(e[1])===e[1]||t.match(Yr)&&function(t){for(var e=!0,n=!0,r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?bp((function(e,n){return t(e,n,r)})):S,xp(1),n?Tp(e):Ap((function(){return new pp})))}}function Np(t){return function(e){var n=new Mp(t),r=e.lift(n);return n.caught=r}}var Mp=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Fp(t,this.selector,this.caught))},t}(),Fp=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new L(this,void 0,void 0);this.add(r);var i=U(this,n,void 0,void 0,r);i!==r&&this.add(i)}},e}(H);function jp(t){return function(e){return 0===t?gp():e.lift(new Vp(t))}}var Vp=function(){function t(t){if(this.total=t,this.total<0)throw new Sp}return t.prototype.call=function(t,e){return e.subscribe(new Bp(t,this.total))},t}(),Bp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(b);function Up(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?bp((function(e,n){return t(e,n,r)})):S,jp(1),n?Tp(e):Ap((function(){return new pp})))}}var Hp=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new zp(t,this.predicate,this.thisArg,this.source))},t}(),zp=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(b);function qp(t,e){return"function"==typeof e?function(n){return n.pipe(qp((function(n,r){return Q(t(n,r)).pipe(z((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Gp(t))}}var Gp=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Wp(t,this.project))},t}(),Wp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new L(this,e,n),o=this.destination;o.add(i),this.innerSubscription=U(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(H);function Qp(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new Yp(t,e,n))}}var Yp=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Xp(t,this.accumulator,this.seed,this.hasSeed))},t}(),Xp=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(b);function $p(t,e){return K(t,e,1)}function Jp(){}function th(t,e,n){return function(r){return r.lift(new eh(t,e,n))}}var eh=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new nh(t,this.nextOrObserver,this.error,this.complete))},t}(),nh=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Jp,o._tapError=Jp,o._tapComplete=Jp,o._tapError=r||Jp,o._tapComplete=i||Jp,p(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Jp,o._tapError=n.error||Jp,o._tapComplete=n.complete||Jp),o}return i(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(b);function rh(t){return function(e){return e.lift(new ih(t))}}var ih=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new oh(t,this.callback))},t}(),oh=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new f(n)),r}return i(e,t),e}(b),sh=function(){return function(t,e){this.id=t,this.url=e}}(),ah=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return i(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(sh),uh=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(sh),lh=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(sh),ch=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(sh),ph=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(sh),hh=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(sh),fh=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return i(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(sh),dh=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(sh),mh=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(sh),yh=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),gh=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),vh=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),_h=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),bh=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),wh=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ch=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Sh=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Rs(0,"router-outlet")},directives:function(){return[Od]},encapsulation:2}),t}(),xh=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Eh(t){return new xh(t)}function kh(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ah(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length-1})):t===e}function Nh(t){return Array.prototype.concat.apply([],t)}function Mh(t){return t.length>0?t[t.length-1]:null}function Fh(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function jh(t){return Ms(t)?t:Ns(t)?Q(Promise.resolve(t)):lp(t)}function Vh(t,e,n){return n?function(t,e){return Dh(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!zh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return Lh(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!zh(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!zh(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!zh(n.segments,s)&&!!n.children.primary&&e(n.children.primary,r,a)}(e,n,n.segments)}(t.root,e.root)}var Bh=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qh.serialize(this)},t}(),Uh=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Fh(e,(function(t,e){return t.parent=n}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Kh(this)},t}(),Hh=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Eh(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return tf(this)},t}();function zh(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function qh(t,e){var n=[];return Fh(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),Fh(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var Gh=function(){return function(){}}(),Wh=function(){function t(){}return t.prototype.parse=function(t){var e=new sf(t);return new Bh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Kh(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return Fh(e.children,(function(e,n){"primary"!==n&&i.push(n+":"+t(e,!1))})),i.length>0?r+"("+i.join("//")+")":r}var o=qh(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:[r+":"+t(n,!1)]}));return Kh(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return Yh(t)+"="+Yh(e)})).join("&"):Yh(t)+"="+Yh(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Qh=new Wh;function Kh(t){return t.segments.map((function(t){return tf(t)})).join("/")}function Zh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yh(t){return Zh(t).replace(/%3B/gi,";")}function Xh(t){return Zh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $h(t){return decodeURIComponent(t)}function Jh(t){return $h(t.replace(/\+/g,"%20"))}function tf(t){return""+Xh(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+Xh(t)+"="+Xh(e[t])})).join(""));var e}var ef=/^[^\/()?;=#]+/;function nf(t){var e=t.match(ef);return e?e[0]:""}var rf=/^[^=?&#]+/,of=/^[^?&#]+/,sf=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Uh([],{}):new Uh([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Uh(t,e)),n},t.prototype.parseSegment=function(){var t=nf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Hh($h(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=nf(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=nf(this.remaining);r&&this.capture(n=r)}t[$h(e)]=$h(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(rf))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(of);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Jh(n),s=Jh(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=nf(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Uh([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),af=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=uf(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=uf(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=lf(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return lf(t,this._root).map((function(t){return t.value}))},t}();function uf(t,e){var n,r;if(t===e.value)return e;try{for(var i=s(e.children),o=i.next();!o.done;o=i.next()){var a=uf(t,o.value);if(a)return a}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function lf(t,e){var n,r;if(t===e.value)return[e];try{for(var i=s(e.children),o=i.next();!o.done;o=i.next()){var a=lf(t,o.value);if(a.length)return a.unshift(e),a}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var cf=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function pf(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var hf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,vf(r,e),r}return i(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(af);function ff(t,e){var n=function(t,e){var n=new yf([],{},{},"",{},"primary",e,null,t.root,-1,{});return new gf("",new cf(n,[]))}(t,e),r=new cp([new Hh("",{})]),i=new cp({}),o=new cp({}),s=new cp({}),a=new cp(""),u=new df(r,i,s,a,o,"primary",e,n.root);return u.snapshot=n.root,new hf(new cf(u,[]),n)}var df=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(z((function(t){return Eh(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z((function(t){return Eh(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function mf(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce((function(t,e){return{params:o(o({},t.params),e.params),data:o(o({},t.data),e.data),resolve:o(o({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var yf=function(){function t(t,e,n,r,i,o,s,a,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Eh(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),gf=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,vf(r,n),r}return i(e,t),e.prototype.toString=function(){return _f(this._root)},e}(af);function vf(t,e){e.value._routerState=t,e.children.forEach((function(e){return vf(t,e)}))}function _f(t){var e=t.children.length>0?" { "+t.children.map(_f).join(", ")+" } ":"";return""+t.value+e}function bf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dh(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dh(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Cf(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==Mh(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Ef=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function kf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Af(t,e,n){if(t||(t=new Uh([],{})),0===t.segments.length&&t.hasChildren())return Pf(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var s=t.segments[i],a=kf(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!If(a,u,s))return o;r+=2}else{if(!If(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Uh([],((r={}).primary=t,r)):t;return new Bh(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(z((function(t){return new Uh([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return lp({});var o=[],s=[],a={};return Fh(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(z((function(t){return a[i]=t})));"primary"===i?o.push(c):s.push(c)})),lp.apply(null,o.concat(s)).pipe(_p(),Lp(),z((function(){return a})))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this;return lp.apply(void 0,u(n)).pipe(z((function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,i,o).pipe(Np((function(t){if(t instanceof Ff)return lp(null);throw t})))})),_p(),Up((function(t){return!!t})),Np((function(t,n){if(t instanceof pp||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return lp(new Uh([],{}));throw new Ff(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return Wf(r)!==o?Vf(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Vf(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Bf(o):this.lineralizeSegments(n,o).pipe(K((function(n){var o=new Uh(n,{});return i.expandSegment(t,o,e,n,r,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=zf(e,r,i),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Vf(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Bf(p):this.lineralizeSegments(r,p).pipe(K((function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(z((function(t){return n._loadedConfig=t,new Uh(r,{})}))):lp(new Uh(r,{}));var a=zf(e,n,r),u=a.consumedSegments,l=a.lastChild;if(!a.matched)return Vf(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(K((function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return Gf(t,e,n)&&"primary"!==Wf(n)}))}(t,n,r)?{segmentGroup:qf(new Uh(e,function(t,e){var n,r,i={};i.primary=e;try{for(var o=s(t),a=o.next();!a.done;a=o.next()){var u=a.value;""===u.path&&"primary"!==Wf(u)&&(i[Wf(u)]=new Uh([],{}))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new Uh(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Gf(t,e,n)}))}(t,n,r)?{segmentGroup:qf(new Uh(t.segments,function(t,e,n,r){var i,a,u={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var p=c.value;Gf(t,e,p)&&!r[Wf(p)]&&(u[Wf(p)]=new Uh([],{}))}}catch(h){i={error:h}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o(o({},r),u)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,r),l=a.segmentGroup,p=a.slicedSegments;return 0===p.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(z((function(t){return new Uh(u,t)}))):0===r.length&&0===p.length?lp(new Uh(u,{})):i.expandSegment(n,l,r,p,"primary",!0).pipe(z((function(t){return new Uh(u.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?lp(new Ph(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lp(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?Q(i).pipe(z((function(r){var i,o=t.get(r);if(function(t){return t&&Nf(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Nf(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return jh(i)}))).pipe(_p(),(r=function(t){return!0===t},function(t){return t.lift(new Hp(r,void 0,t))})):lp(!0)}(t.injector,e,n).pipe(K((function(n){return n?r.configLoader.load(t.injector,e).pipe(z((function(t){return e._loadedConfig=t,t}))):function(t){return new k((function(e){return e.error(kh("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):lp(new Ph([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return lp(n);if(r.numberOfChildren>1||!r.children.primary)return Uf(t.redirectTo);r=r.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Bh(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Fh(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return Fh(e.children,(function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)})),new Uh(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=s(e),a=o.next();!a.done;a=o.next()){var u=a.value;if(u.path===t.path)return e.splice(i),u;i++}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function zf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Ah)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function qf(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Uh(t.segments.concat(e.segments),e.children)}return t}function Gf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Wf(t){return t.outlet||"primary"}var Qf=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Kf=function(){return function(t,e){this.component=t,this.route=e}}();function Zf(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Yf(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=pf(e);return t.children.forEach((function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!zh(t.url,e.url);case"pathParamsOrQueryParamsChange":return!zh(t.url,e.url)||!Dh(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wf(t,e)||!Dh(t.queryParams,e.queryParams);case"paramsChange":default:return!wf(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Qf(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Yf(t,e,o.component?a?a.children:null:n,r,i),u&&i.canDeactivateChecks.push(new Kf(a&&a.outlet&&a.outlet.component||null,s))}else s&&Xf(e,a,i),i.canActivateChecks.push(new Qf(r)),Yf(t,null,o.component?a?a.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]})),Fh(o,(function(t,e){return Xf(t,n.getContext(e),i)})),i}function Xf(t,e,n){var r=pf(t),i=t.value;Fh(r,(function(t,r){Xf(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new Kf(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var $f=Symbol("INITIAL_VALUE");function Jf(){return qp((function(t){return fp.apply(void 0,u(t.map((function(t){return t.pipe(jp(1),Kp($f))})))).pipe(Zp((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==$f)return t;if(r===$f&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Mf(r))return r}return t}),t)}),$f),bp((function(t){return t!==$f})),z((function(t){return Mf(t)?t:!0===t})),jp(1))}))}function td(t,e){return null!==t&&e&&e(new bh(t)),lp(!0)}function ed(t,e){return null!==t&&e&&e(new vh(t)),lp(!0)}function nd(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?lp(r.map((function(r){return vp((function(){var i,o=Zf(r,e,n);if(function(t){return t&&Nf(t.canActivate)}(o))i=jh(o.canActivate(e,t));else{if(!Nf(o))throw new Error("Invalid CanActivate guard");i=jh(o(e,t))}return i.pipe(Up())}))}))).pipe(Jf()):lp(!0)}function rd(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return vp((function(){return lp(e.guards.map((function(i){var o,s=Zf(i,e.node,n);if(function(t){return t&&Nf(t.canActivateChild)}(s))o=jh(s.canActivateChild(r,t));else{if(!Nf(s))throw new Error("Invalid CanActivateChild guard");o=jh(s(r,t))}return o.pipe(Up())}))).pipe(Jf())}))}));return lp(i).pipe(Jf())}var id=function(){return function(){}}(),od=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=ud(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new yf([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new cf(n,e),i=new gf(this.url,r);return this.inheritParamsAndData(i._root),lp(i)}catch(s){return new k((function(t){return t.error(s)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=mf(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=qh(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(i),i},t.prototype.processSegment=function(t,e,n,r){var i,o;try{for(var a=s(t),u=a.next();!u.done;u=a.next()){var l=u.value;try{return this.processSegmentAgainstRoute(l,e,n,r)}catch(c){if(!(c instanceof id))throw c}}}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new id},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new id;if((t.outlet||"primary")!==r)throw new id;var i,s=[],a=[];if("**"===t.path){var u=n.length>0?Mh(n).parameters:{};i=new yf(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,pd(t),r,t.component,t,sd(e),ad(e)+n.length,hd(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new id;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Ah)(n,t,e);if(!r)throw new id;var i={};Fh(r.posParams,(function(t,e){i[e]=t.path}));var s=r.consumed.length>0?o(o({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=l.consumedSegments,a=n.slice(l.lastChild),i=new yf(s,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,pd(t),r,t.component,t,sd(e),ad(e)+s.length,hd(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=ud(e,s,a,c,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new cf(i,d)]}if(0===c.length&&0===f.length)return[new cf(i,[])];var m=this.processSegment(c,h,f,"primary");return[new cf(i,m)]},t}();function sd(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ad(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ud(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return ld(t,e,n)&&"primary"!==cd(n)}))}(t,n,r)){var a=new Uh(e,function(t,e,n,r){var i,o,a={};a.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=s(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&"primary"!==cd(c)){var p=new Uh([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,a[cd(c)]=p}}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return a}(t,e,r,new Uh(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return ld(t,e,n)}))}(t,n,r)){var u=new Uh(t.segments,function(t,e,n,r,i,a){var u,l,c={};try{for(var p=s(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(ld(t,n,f)&&!i[cd(f)]){var d=new Uh([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[cd(f)]=d}}}catch(m){u={error:m}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}return o(o({},i),c)}(t,e,n,r,t.children,i));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var l=new Uh(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function ld(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function cd(t){return t.outlet||"primary"}function pd(t){return t.data||{}}function hd(t){return t.resolve||{}}function fd(t,e,n,r){var i=Zf(t,e,r);return jh(i.resolve?i.resolve(e,n):i(e,n))}function dd(t){return function(e){return e.pipe(qp((function(e){var n=t(e);return n?Q(n).pipe(z((function(){return e}))):Q([e])})))}}var md=function(){return function(){}}(),yd=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),gd=new Qt("ROUTES"),vd=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(z((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Ph(Nh(i.injector.get(gd)).map(Ih),i)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Q(this.loader.load(t)):jh(t()).pipe(K((function(t){return t instanceof ue?lp(t):Q(e.compiler.compileModuleAsync(t))})))},t}(),_d=function(){return function(){}}(),bd=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function wd(t){throw t}function Cd(t,e,n){return e.parse("/")}function Sd(t,e){return lp(null)}var xd=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new T,this.errorHandler=wd,this.malformedUriErrorHandler=Cd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Sd,afterPreactivation:Sd},this.urlHandlingStrategy=new bd,this.routeReuseStrategy=new yd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(ae),this.console=i.get(Yu);var l=i.get(cl);this.isNgZoneEnabled=l instanceof cl,this.resetConfig(a),this.currentUrlTree=new Bh(new Uh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vd(o,s,(function(t){return u.triggerEvent(new yh(t))}),(function(t){return u.triggerEvent(new gh(t))})),this.routerState=ff(this.currentUrlTree,this.rootComponentType),this.transitions=new cp({id: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 t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(bp((function(t){return 0!==t.id})),z((function(t){return o(o({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),qp((function(t){var r,i,a,u=!1,l=!1;return lp(t).pipe(th((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?o(o({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),qp((function(t){var r,i,s,a,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return lp(t).pipe(qp((function(t){var r=e.transitions.getValue();return n.next(new ah(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?yp:[t]})),qp((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,s=e.urlSerializer,a=e.config,function(t){return t.pipe(qp((function(t){return function(t,e,n,r,i){return new Hf(t,e,n,r,i).apply()}(r,i,s,t.extractedUrl,a).pipe(z((function(e){return o(o({},t),{urlAfterRedirects:e})})))})))}),th((function(t){e.currentNavigation=o(o({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,s){return function(r){return r.pipe(K((function(r){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new od(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,s).pipe(z((function(t){return o(o({},r),{targetSnapshot:t})})));var a})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),th((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),th((function(t){var r=new ph(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,p=t.restoredState,h=t.extras,f=new ah(t.id,e.serializeUrl(l),c,p);n.next(f);var d=ff(l,e.rootComponentType).snapshot;return lp(o(o({},t),{targetSnapshot:d,urlAfterRedirects:l,extras:o(o({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),yp})),dd((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),th((function(t){var n=new hh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),z((function(t){return o(o({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,s=n._root,Yf(s,r?r._root:null,i,[s.value]))});var n,r,i,s})),function(t,e){return function(n){return n.pipe(K((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===a.length?lp(o(o({},n),{guardsResult:!0})):function(t,e,n,r){return Q(t).pipe(K((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?lp(o.map((function(o){var s,a=Zf(o,e,i);if(function(t){return t&&Nf(t.canDeactivate)}(a))s=jh(a.canDeactivate(t,e,n,r));else{if(!Nf(a))throw new Error("Invalid CanDeactivate guard");s=jh(a(t,e,n,r))}return s.pipe(Up())}))).pipe(Jf()):lp(!0)}(t.component,t.route,n,e,r)})),Up((function(t){return!0!==t}),!0))}(u,r,i,t).pipe(K((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Q(e).pipe($p((function(e){return Q([ed(e.route.parent,r),td(e.route,r),rd(t,e.path,n),nd(t,e.route,n)]).pipe(_p(),Up((function(t){return!0!==t}),!0))})),Up((function(t){return!0!==t}),!0))}(r,a,t,e):lp(n)})),z((function(t){return o(o({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),th((function(t){if(Mf(t.guardsResult)){var n=kh('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),th((function(t){var n=new fh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),bp((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new lh(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),dd((function(t){if(t.guards.canActivateChecks.length)return lp(t).pipe(th((function(t){var n=new dh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(K((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?Q(i).pipe($p((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return lp({});if(1===i.length){var o=i[0];return fd(t[o],e,n,r).pipe(z((function(t){var e;return(e={})[o]=t,e})))}var s={};return Q(i).pipe(K((function(i){return fd(t[i],e,n,r).pipe(z((function(t){return s[i]=t,t})))}))).pipe(Lp(),z((function(){return s})))}(t._resolve,t,e,r).pipe(z((function(e){return t._resolvedData=e,t.data=o(o({},t.data),mf(t,n).resolve),null})))}(t.route,e,n,r)})),function(t,e){return arguments.length>=2?function(n){return x(Zp(t,e),xp(1),Tp(e))(n)}:function(e){return x(Zp((function(e,n,r){return t(e,n,r+1)})),xp(1))(e)}}((function(t,e){return t})),z((function(e){return t}))):lp(t)})))}),th((function(t){var n=new mh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),dd((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),z((function(t){var n,r,i,a=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map((function(n){var i,o;try{for(var a=s(r.children),u=a.next();!u.done;u=a.next()){var l=u.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return t(e,n)}))}(e,n,r);return new cf(l,i)}var o=e.retrieve(n.value);if(o){var a=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ri;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Ef(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Pf(s.segmentGroup,s.index,o.commands):Af(s.segmentGroup,s.index,o.commands);return Sf(s.segmentGroup,a,e,r,i)}(c,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Ar()&&this.isNgZoneEnabled&&!cl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Mf(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?t.elements(e):t.elements():Object.keys(e).length>0?this.stripeService.elements(e):this.stripeService.elements()},t.prototype.paymentRequest=function(t,e){return t?t.paymentRequest(e):this.stripeService.paymentRequest(e)},t.prototype.mergeOptions=function(t,e){return!e||t&&t.classes||t&&t.classes?t||{}:o(o({},t||{}),{classes:{base:e,complete:e+"--complete",empty:e+"--empty",focus:e+"--focus",invalid:e+"--invalid",webkitAutoFill:e+"--webkit-autoFill"}})},t.\u0275fac=function(e){return new(e||t)(ne(em))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),rm=function(){function t(t,e,n,r){this.baseKey=t,this.baseOptions=e,this.loader=n,this.window=r}return t.prototype.create=function(t,e){return t||this.baseKey?new tm(this.loader,this.window,t||this.baseKey,e||this.baseOptions):null},t.\u0275fac=function(e){return new(e||t)(ne(Zd),ne(Yd),ne(Jd),ne(Xd))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),im=function(){function t(){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[Jd,em,rm,nm,Xd,$d,{provide:Zd,useValue:t},{provide:Yd,useValue:n}]}},t.forChild=function(t,n){return{ngModule:e,providers:[Jd,em,rm,nm,Xd,$d,{provide:Zd,useValue:t},{provide:Yd,useValue:n}]}},t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)}}),t}(),om=function(){return function(){}}(),sm=function(){return function(){}}(),am=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach((function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,u(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))},t}(),um=function(){function t(){}return t.prototype.encodeKey=function(t){return lm(t)},t.prototype.encodeValue=function(t){return lm(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function lm(t){return encodeURIComponent(t).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,"/")}var cm=function(){function t(t){var e,n,r,i=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new um,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),i=a(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=i[0],s=i[1],u=r.get(o)||[];u.push(s),r.set(o,u)})),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function pm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function hm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function fm(t){return"undefined"!=typeof FormData&&t instanceof FormData}var dm=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new am),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),gm=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=mm.ResponseHeader,n}return i(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(ym),vm=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=mm.Response,n.body=void 0!==e.body?e.body:null,n}return i(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(ym),_m=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return i(e,t),e}(ym);function bm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var wm=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof dm)r=t;else{var o;o=n.headers instanceof am?n.headers:new am(n.headers);var s=void 0;n.params&&(s=n.params instanceof cm?n.params:new cm({fromObject:n.params})),r=new dm(t,e,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=lp(r).pipe($p((function(t){return i.handler.handle(t)})));if(t instanceof dm||"events"===n.observe)return a;var u=a.pipe(bp((function(t){return t instanceof vm})));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(z((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(z((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(z((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(z((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new cm).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,bm(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,bm(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,bm(n,e))},t.\u0275fac=function(e){return new(e||t)(ne(om))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Cm=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Sm=new Qt("HTTP_INTERCEPTORS"),xm=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Em=/^\)\]\}',?\n/,km=function(){return function(){}}(),Am=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Pm=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=t.serializeBody(),a=null,u=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new am(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new gm({headers:i,status:e,statusText:n,url:o})},l=function(){var e=u(),i=e.headers,o=e.status,s=e.statusText,a=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(Em,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=p,c&&(c=!1,l={error:h,text:l})}}c?(n.next(new vm({body:l,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new _m({error:l,headers:i,status:o,statusText:s,url:a||void 0}))},c=function(t){var e=u().url,i=new _m({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},p=!1,h=function(e){p||(n.next(u()),p=!0);var i={type:mm.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(t){var e={type:mm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",f)),r.send(s),n.next({type:mm.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}}))},t.\u0275fac=function(e){return new(e||t)(ne(km))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Om=new Qt("XSRF_COOKIE_NAME"),Rm=new Qt("XSRF_HEADER_NAME"),Tm=function(){return function(){}}(),Im=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=yc(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(ne(zl),ne(Ku),ne(Om))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Dm=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(ne(Tm),ne(Rm))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Lm=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Sm,[]);this.chain=e.reduceRight((function(t,e){return new Cm(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(ne(sm),ne(as))},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Nm=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Dm,useClass:xm}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Om,useValue:t.cookieName}:[],t.headerName?{provide:Rm,useValue:t.headerName}:[]]}},t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[Dm,{provide:Sm,useExisting:Dm,multi:!0},{provide:Tm,useClass:Im},{provide:Om,useValue:"XSRF-TOKEN"},{provide:Rm,useValue:"X-XSRF-TOKEN"}]}),t}(),Mm=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[wm,{provide:om,useClass:Lm},Pm,{provide:sm,useExisting:Pm},Am,{provide:km,useExisting:Am}],imports:[[Nm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),Fm=function(){function t(t){this.http=t}return t.prototype.paymentFromToken=function(t){return this.http.post(Vl+"/stripe/token",t)},t.prototype.createPaymentSession=function(t){return this.http.post(Vl+"/stripe/payment-session",t)},t.prototype.createSubscriptionSession=function(t){return this.http.post(Vl+"/stripe/subscription-session",t)},t.prototype.getSubscriptionSession=function(t){return this.http.get(Vl+"/stripe/subscription-session?sessionId="+t)},t.prototype.createCustomerPortalSession=function(t){return this.http.post(Vl+"/stripe/customer-portal",t)},t.prototype.getMySubscriptions=function(){return this.http.get(Vl+"/stripe/my-subscriptions")},t.\u0275prov=vt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ne(wm))},providedIn:"root"}),t}(),jm=function(t,e){return(jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Vm(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}jm(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Bm=function(){return(Bm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=Hm++,qm[o]=!0,zm.then((function(){return Gm(o)&&i()})),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(Gm(n),e.scheduled=void 0)},e}(Wm),Km=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Zm=function(t){function e(n,r){void 0===r&&(r=Km.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Km),Ym=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r1?Array.prototype.slice.call(arguments):t)}),r,n)}))}var $m=new Zm(Wm);function Jm(t,e){return void 0===e&&(e=$m),function(n){return n.lift(new ty(t,e))}}var ty=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ey(t,this.dueTime,this.scheduler))},t}(),ey=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ny,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(b);function ny(t){t.debouncedNext()}function ry(t){return function(e){return e.lift(new iy(t))}}var iy=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new oy(t),r=U(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),oy=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(H),sy={provide:Zu,useFactory:function(t,e){return function(){if(Oc(e)){var n=Array.from(t.querySelectorAll("[class*="+ay+"]")),r=/\bflex-layout-.+?\b/g;n.forEach((function(t){t.classList.contains(ay+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(r,"")}))}}},deps:[zl,Ku],multi:!0},ay="flex-layout-",uy=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[sy]}),t}(),ly=function(){function t(t,e,n,r,i){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r,this.priority=i,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),cy=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),py={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},hy=new Qt("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return py}}),fy=new Qt("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),dy=new Qt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function my(t,e){return t=t?t.clone():new ly,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var yy=["row","column","row-reverse","column-reverse"];function gy(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var vy=function(){function t(t,e,n,r){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new T,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!1,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,r)}}))},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(t);i&&r||(i=n.buildStyles(t,e),r&&this.styleCache.set(t,i)),this.mru=Bm({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach((function(e){t.mru[e]=""})),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),r=n[0];if(!n[1]&&e){var i=function(t){var e,n,r=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return yy.find((function(t){return t===n}))||(n=yy[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,gy(r),!!i]}(t);return void 0===(e=r[1])&&(e=null),void 0===(n=r[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null}}(r);this.styler.applyStyleToElements(i,[t])}return r.trim()}return"row"},t.prototype.hasWrap=function(t){return this.styler.hasWrap(t)},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)},t.\u0275fac=function(t){Es()},t.\u0275dir=ke({type:t,features:[ha]}),t}(),_y=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],by="(orientation: portrait) and (max-width: 599.98px)",wy="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Cy="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Sy="(orientation: portrait) and (min-width: 840px)",xy="(orientation: landscape) and (min-width: 1280px)",Ey={HANDSET:by+", (orientation: landscape) and (max-width: 959.98px)",TABLET:wy+" , "+Cy,WEB:Sy+", "+xy+" ",HANDSET_PORTRAIT:""+by,TABLET_PORTRAIT:wy+" ",WEB_PORTRAIT:""+Sy,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:""+Cy,WEB_LANDSCAPE:""+xy},ky=[{alias:"handset",priority:2e3,mediaQuery:Ey.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ey.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ey.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ey.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ey.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ey.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ey.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ey.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ey.WEB_PORTRAIT,overlapping:!0}],Ay=/(\.|-|_)/g;function Py(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var Oy=new Qt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=re(dy),e=re(hy),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach((function(t){r[t.alias]=t})),e.forEach((function(t){r[t.alias]?function(t){for(var e=[],n=1;n-1})));return J(new k((function(e){var r=n.registerQuery(t);if(r.length){var i=r.pop();r.forEach((function(t){e.next(t)})),n.source.next(i)}e.complete()})),r)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return function(t,e){var n=t.filter((function(t){return!Ly[t]}));if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach((function(t){return Ly[t]=i}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=function(n){e._zone.run((function(){return e.source.next(new ly(n.matches,t))}))},i=e.registry.get(t);i||((i=e.buildMQL(t)).addListener(n),e.pendingRemoveListenerFns.push((function(){return i.removeListener(n)})),e.registry.set(t,i)),i.matches&&r.push(new ly(!0,t))})),r},t.prototype.ngOnDestroy=function(){for(var t;t=this.pendingRemoveListenerFns.pop();)t()},t.prototype.buildMQL=function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(t,Oc(this._platformId))},t.\u0275prov=vt({factory:function(){return new t(ne(cl),ne(Ku),ne(zl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(cl),ne(Ku),ne(zl))},t}(),Ly={},Ny={alias:"print",mediaQuery:"print",priority:1e3},My=function(){function t(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Fy,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return Um(t,["print"])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith("print")},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t}))},enumerable:!1,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?Um(this.printBreakPoints,[e]):this.printBreakPoints).sort(Ry)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),my(t,e)},t.prototype.registerBeforeAfterPrintHooks=function(t){var e=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new ly(!0,"print"))),t.updateStyles())},r=function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(r)}},t.prototype.interceptEvents=function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Ry))}},t.prototype.ngOnDestroy=function(){var t=this;this.beforePrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("beforeprint",e)})),this.afterPrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("afterprint",e)}))},t.\u0275prov=vt({factory:function(){return new t(ne(Iy),ne(hy),ne(zl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(Iy),ne(hy),ne(zl))},t}(),Fy=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(Ny),t.sort(Ry),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints},t.prototype.addBreakpoint=function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?Um([t],this.printBreakpoints):Um(this.printBreakpoints,[t]))},t.prototype.clear=function(){this.printBreakpoints=[]},t}();function jy(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var Vy=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:jy(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:jy(t);e.forEach((function(t){n._applyMultiValueStyleToElement(r,t)}))},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Rc(this._platformId)&&this._serverModuleLoaded?e:""]},t.prototype.hasWrap=function(t){return"wrap"===this.lookupStyle(t,"flex-wrap")},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return Oc(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(Oc(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach((function(r){var i=t[r],o=Array.isArray(i)?i:[i];o.sort();for(var s=0,a=o;s0){var s=o.indexOf(":");if(-1===s)throw new Error("Invalid CSS style: "+o);e[o.substr(0,s).trim()]=o.substr(s+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.\u0275prov=vt({factory:function(){return new t(ne(cy),ne(fy),ne(Ku),ne(hy))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(cy),ne(fy),ne(Ku),ne(hy))},t}(),By=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}(),Uy=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new T,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!1,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=my(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Ry),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Ry),this.updateStyles()))},t.prototype.init=function(t,e,n,r,i){void 0===i&&(i=[]),Hy(this.updateMap,t,e,n),Hy(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)},t.prototype.getValue=function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var s=this.getValue(t,e);void 0!==s&&this.updateElement(t,e,s)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(bp((function(n){return n.element===t&&n.key===e})))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach((function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach((function(e,i){t.updateElement(n,i,e),r.delete(i)})),r.forEach((function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)}))}))},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((function(e,r){return n.updateElement(t,r,e)})))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var r=this;if(n&&n.length){var i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){var o=J.apply(void 0,n).subscribe((function(){var n=r.getValue(t,e);r.updateElement(t,e,n)}));i.set(e,o)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n-1}function Zy(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var Yy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Vm(e,t),e.prototype.buildStyles=function(t){return void 0===(e=(r=Qy(t))[1])&&(e=null),void 0===(n=r[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null};var e,n,r},e.\u0275prov=vt({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=pr(e);return e}(By),Xy=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],$y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Xy,e}Vm(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=ke({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[sa]});var n=pr(e);return e}(function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.DIRECTIVE_KEY="layout",o.styleCache=Jy,o.init(),o}return Vm(e,t),e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(Vy),Ss(Yy),Ss(Uy))},e.\u0275dir=ke({type:e,features:[sa]}),e}(vy)),Jy=new Map,tg={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},eg=function(t){function e(e){var n=t.call(this)||this;return n._styler=e,n}return Vm(e,t),e.prototype.buildStyles=function(t,e){return t.endsWith(ug)?(n=t=t.slice(0,t.indexOf(ug)),r=e.directionality,o=(i=n.split(" "))[0],a="0px",u=(s=function(t){return"-"+t})(i[1]||o),l="0px","rtl"===r?l=s(o):a=s(o),{margin:"0px "+a+" "+u+" "+l}):{};var n,r,i,o,s,a,u,l},e.prototype.sideEffect=function(t,e,n){var r,i,o,s,a,u,l=n.items;if(t.endsWith(ug)){var c=(r=t=t.slice(0,t.indexOf(ug)),i=n.directionality,s=(o=r.split(" "))[0],a="0px",u="0px","rtl"===i?u=s:a=s,{padding:"0px "+a+" "+(o[1]||s)+" "+u});this._styler.applyStyleToElements(c,n.items)}else{var p=l.pop(),h=function(t,e){var n=lg(e.directionality,e.layout),r=Bm({},tg);return r[n]=t,r}(t,n);this._styler.applyStyleToElements(h,l),this._styler.applyStyleToElements(tg,[p])}},e.\u0275prov=vt({factory:function(){return new e(ne(Vy))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(ne(Vy))},e}(By),ng=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],rg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=ng,e}Vm(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=ke({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[sa]});var n=pr(e);return e}(function(t){function e(e,n,r,i,o,s){var a=t.call(this,e,o,i,s)||this;a.zone=n,a.directionality=r,a.styleUtils=i,a.layout="row",a.DIRECTIVE_KEY="layout-gap",a.observerSubject=new T;var u=[a.directionality.change,a.observerSubject.asObservable()];return a.init(u),a.marshal.trackValue(a.nativeElement,"layout").pipe(ry(a.destroySubject)).subscribe(a.onLayoutChange.bind(a)),a}return Vm(e,t),Object.defineProperty(e.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.buildChildObservable(),this.triggerUpdate()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.observer&&this.observer.disconnect()},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],Wy.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e.prototype.updateWithValue=function(t){var e=this,n=this.childrenNodes.filter((function(t){return 1===t.nodeType&&e.willDisplay(t)})).sort((function(t,n){var r=+e.styler.lookupStyle(t,"order"),i=+e.styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1}));if(n.length>0){var r=this.directionality.value,i=this.layout;"row"===i&&"rtl"===r?this.styleCache=ig:"row"===i&&"rtl"!==r?this.styleCache=sg:"column"===i&&"rtl"===r?this.styleCache=og:"column"===i&&"rtl"!==r&&(this.styleCache=ag),this.addStyles(t,{directionality:r,items:n,layout:i})}},e.prototype.clearStyles=function(){var e,n=Object.keys(this.mru).length>0,r=n?"padding":lg(this.directionality.value,this.layout);n&&t.prototype.clearStyles.call(this),this.styleUtils.applyStyleToElements(((e={})[r]="",e),this.childrenNodes)},e.prototype.willDisplay=function(t){var e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")},e.prototype.buildChildObservable=function(){var t=this;this.zone.runOutsideAngular((function(){"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver((function(e){e.some((function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0}))&&t.observerSubject.next()})),t.observer.observe(t.nativeElement,{childList:!0}))}))},e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(cl),Ss(qy),Ss(Vy),Ss(eg),Ss(Uy))},e.\u0275dir=ke({type:e,features:[sa]}),e}(vy)),ig=new Map,og=new Map,sg=new Map,ag=new Map,ug=" grid";function lg(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}var cg={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},pg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Vm(e,t),e.prototype.buildStyles=function(t){return cg},e.\u0275prov=vt({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=pr(e);return e}(By),hg=function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.styleCache=fg,o.addStyles(""),o}return Vm(e,t),e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(Vy),Ss(pg),Ss(Uy))},e.\u0275dir=ke({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[sa]}),e}(vy),fg=new Map,dg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Vm(e,t),e.prototype.buildStyles=function(t,e){var n={},r=t.split(" "),i=r[1];switch(r[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return function(t){for(var e=[],n=1;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],s=i[2],a=i[3];e.push(Pv(o,a)),"<"!=s[0]||"*"==o&&"*"==a||e.push(Pv(a,o))}(t,i,r)})):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Lv(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return xv(n,t,e)})),options:Lv(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map((function(t){e.currentTime=r;var o=xv(n,t,e);return i=Math.max(i,e.currentTime),o}));return e.currentTime=i,{type:3,steps:o,options:Lv(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Nv(uv(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var i=Nv(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Nv((n=n||uv(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Ig({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Ig(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var r=!1,i=null;return n.forEach((function(t){if(Dv(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),p=!1),o=c.startTime),p&&(l[r]={startTime:o,endTime:i}),e.options&&(s=e.errors,a=e.options.params||{},(u=gv(t[r])).length&&u.forEach((function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=t.steps.map((function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(Dv(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(Dv(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&i0?i==h?1:p*i:o[i],a=s*m;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)})),r},t.prototype.visitReference=function(t,e){return{type:8,animation:xv(this,mv(t.animation),e),options:Lv(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Lv(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Lv(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=a(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Ov,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,Gg(e.collectedStyles,e.currentQuerySelector,{});var u=xv(this,mv(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:Lv(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:uv(t.timings,e.errors,!0);return{type:12,animation:xv(this,mv(t.animation),e),timings:n,options:null}},t}(),Iv=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function Dv(t){return!Array.isArray(t)&&"object"==typeof t}function Lv(t){var e;return t?(t=lv(t)).params&&(t.params=(e=t.params)?lv(e):null):t={},t}function Nv(t,e,n){return{duration:t,delay:e,easing:n}}function Mv(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Fv=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,u(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),jv=new RegExp(":enter","g"),Vv=new RegExp(":leave","g");function Bv(t,e,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Uv).buildKeyframes(t,e,n,r,i,o,s,a,u,l)}var Uv=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new Fv;var c=new zv(t,e,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),xv(this,n,c);var p=c.timelines.filter((function(t){return t.containsAnimation()}));if(p.length&&Object.keys(s).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([s],null,c.errors,a)}return p.length?p.map((function(t){return t.buildKeyframes()})):[Mv(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?sv(n.duration):null,o=null!=n.delay?sv(n.delay):null;return 0!==i&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)})),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),xv(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Hv);var s=sv(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach((function(t){return xv(n,t,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?sv(t.options.delay):0;t.steps.forEach((function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),xv(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)})),r.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return uv(e.params?vv(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?sv(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hv);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach((function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),xv(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;xv(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),Hv={},zv=function(){function t(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new qv(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=sv(r.duration)),null!=r.delay&&(i.delay=sv(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach((function(t){e&&s.hasOwnProperty(t)||(s[t]=vv(o[t],s,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(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(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Hv,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Gv(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(jv,"."+this._enterClassName)).replace(Vv,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,u(a))}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),qv=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=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))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){r[t]="*"})):cv(t,!1,r)})),r}(t,this._globalTimelineStyles);Object.keys(s).forEach((function(t){var e=vv(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:"*"),i._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,s){var a=cv(o,!0);Object.keys(a).forEach((function(t){var r=a[t];"!"==r?e.add(t):"*"==r&&n.add(t)})),r||(a.offset=s/t.duration),i.push(a)}));var o=e.size?_v(e.values()):[],s=n.size?_v(n.values()):[];if(r){var a=i[0],u=lv(a);a.offset=0,u.offset=1,i=[a,u]}return Mv(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),Gv=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return i(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=cv(t[0],!1);u.offset=0,o.push(u);var l=cv(t[0],!1);l.offset=Wv(a),o.push(l);for(var c=t.length-1,p=1;p<=c;p++){var h=cv(t[p],!1);h.offset=Wv((n+h.offset*r)/s),o.push(h)}r=s,n=0,i="",t=o}return Mv(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(qv);function Wv(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Qv=function(){return function(){}}(),Kv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.normalizePropertyName=function(t,e){return wv(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(Zv[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Qv),Zv=function(){return 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(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function Yv(t,e,n,r,i,o,s,a,u,l,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:p,errors:h}}var Xv={},$v=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some((function(t){return t(e,n,r,i)}))}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,s,a,u,l,c){var p=[],h=this.ast.options&&this.ast.options.params||Xv,f=this.buildStyles(n,a&&a.params||Xv,p),d=u&&u.params||Xv,m=this.buildStyles(r,d,p),y=new Set,g=new Map,v=new Map,_="void"===r,b={params:o(o({},h),d)},w=c?[]:Bv(t,e,this.ast.animation,i,s,f,m,b,l,p),C=0;if(w.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),p.length)return Yv(e,this._triggerName,n,r,_,f,m,[],[],g,v,C,p);w.forEach((function(t){var n=t.element,r=Gg(g,n,{});t.preStyleProps.forEach((function(t){return r[t]=!0}));var i=Gg(v,n,{});t.postStyleProps.forEach((function(t){return i[t]=!0})),n!==e&&y.add(n)}));var S=_v(y.values());return Yv(e,this._triggerName,n,r,_,f,m,w,S,g,v,C)},t}(),Jv=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=lv(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(r[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach((function(t){var o=i[t];o.length>1&&(o=vv(o,r,e)),n[t]=o}))}})),n},t}(),t_=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new Jv(t.style,t.options&&t.options.params||{})})),e_(this.states,"true","1"),e_(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new $v(t,e,n.states))})),this.fallbackTransition=new $v(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find((function(i){return i.match(t,e,n,r)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function e_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var n_=new Fv,r_=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Rv(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=Ug(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[t],a=new Map;if(s?(i=Bv(this._driver,e,s,"ng-enter","ng-leave",{},{},n,n_,o)).forEach((function(t){var e=Gg(a,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=r._driver.computeStyle(e,n,"*")}))}));var u=Bg(i.map((function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return r.destroy(t)})),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=qg(e,"","","");return Hg(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);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(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),i_=[],o_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},s_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},a_=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,r=t&&t.hasOwnProperty("value");if(this.value=null!=(n=r?t.value:t)?n:null,r){var i=lv(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),u_=new a_("void"),l_=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,y_(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=Gg(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=Gg(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(y_(t,"ng-trigger"),y_(t,"ng-trigger-"+e),u[e]=u_),function(){o._engine.afterFlush((function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),o._triggers[e]||delete u[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new p_(this.id,e,t),a=this._engine.statesByElement.get(t);a||(y_(t,"ng-trigger"),y_(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new a_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u||(u=u_),"void"===l.value||u.value!==l.value){var c=Gg(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var p=o.matchTransition(u.value,l.value,t,l.params),h=!1;if(!p){if(!r)return;p=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:u,toState:l,player:s,isFallbackTransition:h}),h||(y_(t,"ng-animate-queued"),s.onStart((function(){g_(t,"ng-animate-queued")}))),s.onDone((function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}})),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);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,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),y_(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),g_(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(h_(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return h_(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return Bg(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=o_,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var 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;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(x.push(e),n.collectedEnterElements.length){var s=o.__ng_removed;if(s&&s.setForMove)return void e.destroy()}var u=!f||!n.driver.containsElement(f,o),h=C.get(o),d=y.get(o),m=n._buildInstruction(t,r,d,h,u);if(m.errors&&m.errors.length)E.push(m);else{if(u)return e.onStart((function(){return dv(o,m.fromStyles)})),e.onDestroy((function(){return fv(o,m.toStyles)})),void i.push(e);if(t.isFallbackTransition)return e.onStart((function(){return dv(o,m.fromStyles)})),e.onDestroy((function(){return fv(o,m.toStyles)})),void i.push(e);m.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach((function(t){return Gg(l,t,[]).push(e)})),m.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var r=c.get(e);r||c.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}})),m.postStyleProps.forEach((function(t,e){var n=Object.keys(t),r=p.get(e);r||p.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}))}}));if(E.length){var A=[];E.forEach((function(t){A.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return A.push("- "+t+"\n")}))})),x.forEach((function(t){return t.destroy()})),this.reportError(A)}var P=new Map,O=new Map;a.forEach((function(t){var e=t.element;r.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))})),i.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Gg(P,e,[]).push(t),t.destroy()}))}));var R=v.filter((function(t){return __(t,c,p)})),T=new Map;d_(T,this.driver,b,p,"*").forEach((function(t){__(t,c,p)&&R.push(t)}));var I=new Map;m.forEach((function(t,e){d_(I,n.driver,new Set(t),c,"!")})),R.forEach((function(t){var e=T.get(t),n=I.get(t);T.set(t,o(o({},e),n))}));var D=[],L=[],N={};a.forEach((function(t){var e=t.element,o=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return o.onDestroy((function(){return fv(e,a.toStyles)})),o.disabled=!0,o.overrideTotalTime(a.totalTime),void i.push(o);var u=N;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var p=O.get(l);if(p){u=p;break}c.push(l)}c.forEach((function(t){return O.set(t,u)}))}var f=n._buildAnimation(o.namespaceId,a,P,s,I,T);if(o.setRealPlayer(f),u===N)D.push(o);else{var d=n.playersByElement.get(u);d&&d.length&&(o.parentPlayer=Bg(d)),i.push(o)}}else dv(e,a.fromStyles),o.onDestroy((function(){return fv(e,a.toStyles)})),L.push(o),h.has(e)&&i.push(o)})),L.forEach((function(t){var e=s.get(t.element);if(e&&e.length){var n=Bg(e);t.setRealPlayer(n)}})),i.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var M=0;M0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Fg(t.duration,t.delay)},t}(),p_=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Fg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Hg(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){Gg(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function h_(t){return t&&1===t.nodeType}function f_(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function d_(t,e,n,r,i){var o=[];n.forEach((function(t){return o.push(f_(t))}));var s=[];r.forEach((function(n,r){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=s_,s.push(r))})),t.set(r,o)}));var a=0;return n.forEach((function(t){return f_(t,o[a++])})),s}function m_(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function y_(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function g_(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function v_(t,e,n){Bg(n).onDone((function(){return t.processLeaveNode(e)}))}function __(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach((function(t){return i.add(t)})):e.set(t,r),n.delete(t),!0}var b_=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new c_(t,e,n),this._timelineEngine=new r_(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=Rv(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new t_(t,e)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=a(Wg(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=a(Wg(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function w_(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=S_(e[0]),e.length>1&&(r=S_(e[e.length-1]))):e&&(n=S_(e)),n||r?new C_(t,n,r):null}var C_=function(){function t(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return t.prototype.start=function(){this._state<1&&(this._startStyles&&fv(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(fv(this._element,this._initialStyles),this._endStyles&&(fv(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(dv(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dv(this._element,this._endStyles),this._endStyles=null),fv(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function S_(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),O_(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=P_(n=T_(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),R_(t,"",n.join(","))))},t}();function k_(t,e,n){R_(t,"PlayState",n,A_(t,e))}function A_(t,e){var n=T_(t,"");return n.indexOf(",")>0?P_(n.split(","),e):P_([n],e)}function P_(t,e){for(var n=0;n=0)return n;return-1}function O_(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function R_(t,e,n,r){var i="animation"+e;if(null!=r){var o=t.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}t.style[i]=n}function T_(t,e){return t.style["animation"+e]}var I_=function(){function t(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=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(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new E_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:Ev(t.element,r))}))}this.currentSnapshot=e},t}(),D_=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=rv(n),r}return i(e,t),e.prototype.init=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]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=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,t.prototype.destroy.call(this))},e}(Fg),L_=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Jg(t)},t.prototype.matchesElement=function(t,e){return tv(t,e)},t.prototype.containsElement=function(t,e){return ev(t,e)},t.prototype.query=function(t,e,n){return nv(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return rv(t)}));var r="@keyframes "+e+" {\n",i="";n.forEach((function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter((function(t){return t instanceof I_})),u={};Cv(n,r)&&a.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=Sv(t,e,u));if(0==n)return new D_(t,l);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=w_(t,e),f=new I_(t,e,c,n,r,i,l,h);return f.onDestroy((function(){var t;(t=p).parentNode.removeChild(t)})),f},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),N_=function(){function t(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Ev(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),M_=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(F_().toString()),this._cssKeyframesDriver=new L_}return t.prototype.validateStyleProperty=function(t){return Jg(t)},t.prototype.matchesElement=function(t,e){return tv(t,e)},t.prototype.containsElement=function(t,e){return ev(t,e)},t.prototype.query=function(t,e,n){return nv(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=o.filter((function(t){return t instanceof N_}));Cv(n,r)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var c=w_(t,e=Sv(t,e=e.map((function(t){return cv(t,!1)})),u));return new N_(t,e,a,c)},t}();function F_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var j_=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ye.None,styles:[],data:{animation:[]}}),r}return i(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Tg(t):t;return U_(this._renderer,null,e,"register",[n]),new V_(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(ne(Oa),ne(zl))},e.\u0275prov=vt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(kg),V_=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return i(e,t),e.prototype.create=function(t,e){return new B_(this._id,t,e||{},this._renderer)},e}(Ag),B_=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(th((function(t){return e._pressedLetters.push(t)})),Jm(t),bp((function(){return e._pressedLetters.length>0})),z((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),r=1;r-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;default:return void((r||X_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.isTyping=function(){return this._pressedLetters.length>0},t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof wu?this._items.toArray():this._items},t}());function gb(t){return 0===t.buttons}"undefined"!=typeof Element&∈var vb=new Qt("cdk-focus-monitor-default-options"),_b=cb({passive:!0,capture:!0}),bb=function(){function t(t,e,n,r){var i=this;this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){i._lastTouchTarget=null,i._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!i._lastTouchTarget){var e=gb(t)?"keyboard":"mouse";i._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=i._touchTimeoutId&&clearTimeout(i._touchTimeoutId),i._lastTouchTarget=wb(t),i._touchTimeoutId=setTimeout((function(){return i._lastTouchTarget=null}),650)},this._windowFocusListener=function(){i._windowFocused=!0,i._windowFocusTimeoutId=setTimeout((function(){return i._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(t){for(var e=wb(t),n="focus"===t.type?i._onFocus:i._onBlur,r=e;r;r=r.parentElement)n.call(i,t,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return t.prototype.monitor=function(t,e){if(void 0===e&&(e=!1),!this._platform.isBrowser)return lp(null);var n=nb(t),r=pb(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject.asObservable();var o={checkChildren:e,subject:new T,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=nb(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))},t.prototype.focusVia=function(t,e,n){var r=nb(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._getFocusOrigin=function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"},t.prototype._setClasses=function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))},t.prototype._wasCausedByTouch=function(t){var e=wb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===wb(t))){var r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run((function(){return t.next(e)}))},t.prototype._registerGlobalListeners=function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,_b),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,_b)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,_b),t.addEventListener("mousedown",e._documentMousedownListener,_b),t.addEventListener("touchstart",e._documentTouchstartListener,_b),n.addEventListener("focus",e._windowFocusListener)}))}},t.prototype._removeGlobalListeners=function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_b),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_b),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,_b),r.removeEventListener("mousedown",this._documentMousedownListener,_b),r.removeEventListener("touchstart",this._documentTouchstartListener,_b),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},t.\u0275prov=vt({factory:function(){return new t(ne(cl),ne(sb),ne(zl,8),ne(vb,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(cl),ne(sb),ne(zl,8),ne(vb,8))},t}();function wb(t){return t.composedPath?t.composedPath()[0]:t.target}var Cb=function(){function t(t,e){this._platform=t,this._document=e}return t.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},t.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}},t.\u0275prov=vt({factory:function(){return new t(ne(sb),ne(zl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(sb),ne(zl))},t}(),Sb=function(){function t(t){t._applyBodyHighContrastModeCssClasses()}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(Cb))},imports:[[ab,mb]]}),t}(),xb=new La("9.2.4"),Eb=new La("9.2.4"),kb=new Qt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Ab=function(){function t(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._getDocument=function(){var t=this._document||document;return"object"==typeof t&&t?t:null},t.prototype._getWindow=function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null},t.prototype._checksAreEnabled=function(){return Ar()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var r=getComputedStyle(n);r&&"none"!==r.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"),e.body.removeChild(n)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Eb.full!==xb.full&&console.warn("The Angular Material version ("+Eb.full+") does not match the Angular CDK version ("+xb.full+").\nPlease ensure the versions of these two packages exactly match.")},t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(Cb),ne(kb,8),ne(zl,8))},imports:[[Gy],Gy]}),t}();function Pb(t){return function(t){function e(){for(var e=[],n=0;n.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),Yb=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[Ab],Ab]}),t}(),Xb=["mat-button",""],$b=["*"],Jb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],tw=function(t){function e(e,n,r){var i,o,a=t.call(this,e)||this;a._focusMonitor=n,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");try{for(var u=s(Jb),l=u.next();!l.done;l=u.next()){var c=l.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(p){i={error:p}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return e.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return i(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._getHostElement(),t,e)},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n*,.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:block;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}\n"],encapsulation:2,changeDetection:0}),e}(Ob(Pb(Rb(function(){return function(t){this._elementRef=t}}())))),ew=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[Hb,Ab],Ab]}),t}();function nw(t,e){return new k(e?function(n){return e.schedule(rw,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function rw(t){t.subscriber.error(t.error)}function iw(){for(var t=[],e=0;e=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t,r.options);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(z((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?lp(t.svgElement):this._fetchUrl(t.url).pipe(z((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))},t.prototype._createSvgElementForSingleIcon=function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n},t.prototype._extractSvgIconFromSet=function(t,e,n){var r=t.querySelector('[id="'+e+'"]');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)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=t.attributes,r=0;r0&&this.product.Quantity--},t.prototype.proceed=function(){var t=this;this.isPrebuild?(this.loading=!0,this.subscription=this._dataService.createPaymentSession(this.product).subscribe((function(e){t._stripeService.redirectToCheckout({sessionId:e.id}).subscribe((function(t){}),(function(e){console.log("error-prebuild-session",e),t.loading=!1}))}),(function(e){console.log("error-prebuild-session",e),t.loading=!1}))):this._router.navigate(["/custom-payment"],{state:{quantity:this.product.Quantity,cost:this.product.Amount}})},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Ss(xd),Ss(em),Ss(Fm))},t.\u0275cmp=be({type:t,selectors:[["app-product"]],inputs:{product:"product",isPrebuild:["is-prebuild","isPrebuild"]},decls:32,vars:11,consts:[["fxLayout","row","fxLayoutAlign","space-between start"],[1,"example-card"],["mat-card-image","",3,"src","alt"],[1,"large","primary"],[1,"primary"],["mat-raised-button","","color","primary",3,"click"],["id","checkout-button","mat-raised-button","","color","primary",1,"example-card",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","center start"],[1,"shop-icon"],["class","spinner-margin","color","accent","diameter","25",4,"ngIf"],["color","accent","diameter","25",1,"spinner-margin"]],template:function(t,e){1&t&&(Ps(0,"div",0),Ps(1,"div"),Ps(2,"mat-card",1),Rs(3,"img",2),Ps(4,"mat-card-content"),Ps(5,"h1",3),Ps(6,"b"),ta(7),Os(),Os(),Ps(8,"h2",3),Ps(9,"b"),ta(10),gu(11,"currency"),Os(),Os(),Ps(12,"div",4),ta(13),Os(),Ps(14,"div",4),ta(15),Os(),Os(),Ps(16,"mat-card-actions"),Ps(17,"div",0),Ps(18,"button",5),Fs("click",(function(){return e.remove()})),ta(19,"-"),Os(),Ps(20,"span"),Ps(21,"b"),ta(22),Os(),Os(),Ps(23,"button",5),Fs("click",(function(){return e.add()})),ta(24,"+"),Os(),Os(),Os(),Os(),Ps(25,"button",6),Fs("click",(function(){return e.proceed()})),Ps(26,"div",7),Ps(27,"div"),ta(28,"PROCEED TO CHECKOUT "),Os(),Ps(29,"mat-icon",8),ta(30,"shopping_cart"),Os(),ws(31,Ow,1,0,"mat-spinner",9),Os(),Os(),Os(),Os()),2&t&&(vi(3),ks("src",e.product.ProductImageUrl,$r)("alt",e.product.ProductName),vi(4),ea(e.product.ProductName),vi(3),na("Total Price: ",vu(11,9,e.product.Amount*e.product.Quantity),""),vi(3),ea(e.product.ProductDescription),vi(2),na("Amount: $",e.product.Amount,""),vi(7),ea(e.product.Quantity),vi(3),ks("disabled",0==e.product.Quantity),vi(6),ks("ngIf",e.loading))},directives:[$y,yg,Zb,Kb,Wb,Qb,tw,_w,wc,Aw],pipes:[Ac],styles:[".example-card[_ngcontent-%COMP%]{width:400px;margin-top:25px}.mat-card-image[_ngcontent-%COMP%]{height:22rem}.spinner-margin[_ngcontent-%COMP%]{margin:5px 0 0 10px}.shop-icon[_ngcontent-%COMP%]{margin-left:5px;margin-top:5px}"]}),t}(),Tw=function(){function t(){this.product={ProductName:"Succulent Pot",ProductDescription:"Green Succulent Pot",ProductImageUrl:"https://images.unsplash.com/photo-1516048015710-7a3b4c86be43?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxfDB8MXxhbGx8fHx8fHx8fA&ixlib=rb-1.2.1&q=80&w=1080&utm_source=unsplash_source&utm_medium=referral&utm_campaign=api-credit",Amount:20,Quantity:0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-custom-flow"]],decls:1,vars:2,consts:[[3,"product","is-prebuild"]],template:function(t,e){1&t&&Rs(0,"app-product",0),2&t&&ks("product",e.product)("is-prebuild",!1)},directives:[Rw],styles:[""]}),t}(),Iw={style:{base:{iconColor:"#666EE8",color:"#31325F",fontWeight:"300",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSize:"18px","::placeholder":{color:"#CFD7E0"}}}},Dw={locale:"en"},Lw=["underline"],Nw=["connectionContainer"],Mw=["inputContainer"],Fw=["label"];function jw(t,e){1&t&&(Ts(0),Ps(1,"div",14),Rs(2,"div",15),Rs(3,"div",16),Rs(4,"div",17),Os(),Ps(5,"div",18),Rs(6,"div",15),Rs(7,"div",16),Rs(8,"div",17),Os(),Is())}function Vw(t,e){1&t&&(Ps(0,"div",19),zs(1,1),Os())}function Bw(t,e){if(1&t&&(Ts(0),zs(1,2),Ps(2,"span"),ta(3),Os(),Is()),2&t){var n=Bs(2);vi(3),ea(n._control.placeholder)}}function Uw(t,e){1&t&&zs(0,3,["*ngSwitchCase","true"])}function Hw(t,e){1&t&&(Ps(0,"span",23),ta(1," *"),Os())}function zw(t,e){if(1&t){var n=Ls();Ps(0,"label",20,21),Fs("cdkObserveContent",(function(){return nn(n),Bs().updateOutlineGap()})),ws(2,Bw,4,1,"ng-container",12),ws(3,Uw,1,0,void 0,12),ws(4,Hw,2,0,"span",22),Os()}if(2&t){var r=Bs();Ks("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),ks("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),bs("for",r._control.id)("aria-owns",r._control.id),vi(2),ks("ngSwitchCase",!1),vi(1),ks("ngSwitchCase",!0),vi(1),ks("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function qw(t,e){1&t&&(Ps(0,"div",24),zs(1,4),Os())}function Gw(t,e){if(1&t&&(Ps(0,"div",25,26),Rs(2,"span",27),Os()),2&t){var n=Bs();vi(2),Ks("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Ww(t,e){1&t&&(Ps(0,"div"),zs(1,5),Os()),2&t&&ks("@transitionMessages",Bs()._subscriptAnimationState)}function Qw(t,e){if(1&t&&(Ps(0,"div",31),ta(1),Os()),2&t){var n=Bs(2);ks("id",n._hintLabelId),vi(1),ea(n.hintLabel)}}function Kw(t,e){if(1&t&&(Ps(0,"div",28),ws(1,Qw,2,2,"div",29),zs(2,6),Rs(3,"div",30),zs(4,7),Os()),2&t){var n=Bs();ks("@transitionMessages",n._subscriptAnimationState),vi(1),ks("ngIf",n.hintLabel)}}var Zw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Yw=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Xw=0,$w=function(){function t(){this.id="mat-error-"+Xw++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&bs("id",e.id)},inputs:{id:"id"}}),t}(),Jw={transitionMessages:Pg("transitionMessages",[Dg("enter",Ig({opacity:1,transform:"translateY(0%)"})),Lg("void => enter",[Ig({opacity:0,transform:"translateY(-100%)"}),Og("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},tC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t}),t}();function eC(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var nC=0,rC=function(){function t(){this.align="start",this.id="mat-hint-"+nC++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(bs("id",e.id)("align",null),Ks("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),iC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["mat-label"]]}),t}(),oC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["mat-placeholder"]]}),t}(),sC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["","matPrefix",""]]}),t}(),aC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t,selectors:[["","matSuffix",""]]}),t}(),uC=0,lC=Ob(function(){return function(t){this._elementRef=t}}(),"primary"),cC=new Qt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pC=new Qt("MatFormField"),hC=function(t){function e(e,n,r,i,o,s,a,u){var l=t.call(this,e)||this;return l._elementRef=e,l._changeDetectorRef=n,l._dir=i,l._defaults=o,l._platform=s,l._ngZone=a,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new T,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+uC++,l._labelId="mat-form-field-label-"+uC++,l._labelOptions=r||{},l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==u,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return i(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=$_(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Kp(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ry(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(ry(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),J(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Kp(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Kp(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(ry(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xm(this._label.nativeElement,"transitionend").pipe(jp(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(r){if("start"===r.align){if(t||n.hintLabel)throw eC("start");t=r}else if("end"===r.align){if(e)throw eC("end");e=r}}))},e.prototype._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t,e,n=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&n&&n.children.length&&n.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var r=0,i=0,o=this._connectionContainerRef.nativeElement,a=o.querySelectorAll(".mat-form-field-outline-start"),u=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var c=this._getStartEnd(l),p=this._getStartEnd(n.children[0].getBoundingClientRect()),h=0;try{for(var f=s(n.children),d=f.next();!d.done;d=f.next())h+=d.value.offsetWidth}catch(y){t={error:y}}finally{try{d&&!d.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}r=Math.abs(p-c)-5,i=h>0?.75*h+10:0}for(var m=0;m=0}function gC(t,e,n){void 0===t&&(t=0);var r=-1;return yC(e)?r=Number(e)<1?1:Number(e):D(e)&&(n=e),D(n)||(n=$m),new k((function(e){var i=yC(t)?t:+t-n.now();return n.schedule(vC,i,{index:0,period:r,subscriber:e})}))}function vC(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function _C(t,e){return void 0===e&&(e=$m),n=function(){return gC(t,e)},function(t){return t.lift(new dC(n))};var n}var bC=cb({passive:!0}),wC=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return yp;var n=nb(t),r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new T,o="cdk-text-field-autofilled",s=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",s,bC),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",s,bC)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=nb(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.\u0275prov=vt({factory:function(){return new t(ne(sb),ne(cl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(sb),ne(cl))},t}(),CC=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[ab]]}),t}(),SC=new Qt("NgValueAccessor"),xC={provide:SC,useExisting:Tt((function(){return EC})),multi:!0},EC=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ss(Ta),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ca([xC])]}),t}(),kC={provide:SC,useExisting:Tt((function(){return PC})),multi:!0},AC=new Qt("CompositionEventMode"),PC=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ul()?Ul().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.\u0275fac=function(e){return new(e||t)(Ss(Ta),Ss(Aa),Ss(AC,8))},t.\u0275dir=ke({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Fs("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Ca([kC])]}),t}(),OC=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ke({type:t}),t}(),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=ke({type:e,features:[sa]});var n=pr(e);return e}(OC);function TC(){throw new Error("unimplemented")}var IC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return i(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return TC()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return TC()},enumerable:!0,configurable:!0}),e}(OC),DC=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ss(IC,2))},e.\u0275dir=ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ks("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[sa]}),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function LC(t){return null==t||0===t.length}var NC=new Qt("NgValidators"),MC=new Qt("NgAsyncValidators"),FC=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jC=function(){function t(){}return t.min=function(t){return function(e){if(LC(e.value)||LC(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return LC(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return LC(t.value)||FC.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(LC(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(LC(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(VC);return 0==e.length?null:function(t){return UC(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(VC);return 0==e.length?null:function(t){return iw(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(BC)).pipe(z(UC))}},t}();function VC(t){return null!=t}function BC(t){var e=Ns(t)?Q(t):t;if(!Ms(e))throw new Error("Expected validator to return Promise or Observable.");return e}function UC(t){var e={};return t.forEach((function(t){e=null!=t?o(o({},e),t):e})),0===Object.keys(e).length?null:e}function HC(t){return t.validate?function(e){return t.validate(e)}:t}function zC(t){return t.validate?function(e){return t.validate(e)}:t}var qC={provide:SC,useExisting:Tt((function(){return GC})),multi:!0},GC=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ss(Ta),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ca([qC])]}),t}(),WC={provide:SC,useExisting:Tt((function(){return KC})),multi:!0},QC=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),KC=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(IC),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex:

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',$C='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',JC='\n
\n
\n \n
\n
',tS=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+XC)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+$C+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+JC)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+XC)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+$C)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),eS={provide:SC,useExisting:Tt((function(){return nS})),multi:!0},nS=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ms}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=s(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(Ss(Ta),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Fs("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ca([eS])]}),t}(),rS={provide:SC,useExisting:Tt((function(){return iS})),multi:!0},iS=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ms}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function pS(t){return null!=t?jC.compose(t.map(HC)):null}function hS(t){return null!=t?jC.composeAsync(t.map(zC)):null}var fS=[EC,YC,GC,nS,iS,KC];function dS(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function mS(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function yS(t){var e=vS(t)?t.validators:t;return Array.isArray(e)?pS(e):e||null}function gS(t,e){var n=vS(e)?e.asyncValidators:t;return Array.isArray(n)?hS(n):n||null}function vS(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var _S=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=yS(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=gS(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(o(o({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(o(o({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=BC(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach((function(t){r=r instanceof wS?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof CS&&r.at(t)||null})),r}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new _u,this.statusChanges=new _u},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls((function(e){return e.status===t}))},t.prototype._anyControlsDirty=function(){return this._anyControls((function(t){return t.dirty}))},t.prototype._anyControlsTouched=function(){return this._anyControls((function(t){return t.touched}))},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){vS(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),bS=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,yS(n),gS(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((function(t){return t(n.value,!1!==e.emitViewToModelChange)})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(_S),wS=function(t){function e(e,n,r){var i=t.call(this,yS(n),gS(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach((function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof bS?e.value:e.getRawValue(),t}))},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild((function(r,i){n=n||e.contains(i)&&t(r)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,r){n=e(n,t,r)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=s(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(_S),CS=function(t){function e(e,n,r){var i=t.call(this,yS(n),gS(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach((function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach((function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof bS?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach((function(e,n){t(e,n)}))},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))},e.prototype._anyControls=function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=s(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(_S),SS={provide:RC,useExisting:Tt((function(){return ES}))},xS=function(){return Promise.resolve(null)}(),ES=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new _u,r.form=new wS({},pS(e),hS(n)),r}return i(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;xS.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),sS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;xS.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),mS(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;xS.then((function(){var n=e._findContainer(t.path),r=new wS({});uS(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;xS.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;xS.then((function(){n.form.get(t.path).setValue(e)}))},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,dS(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(Ss(NC,10),Ss(MC,10))},e.\u0275dir=ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Fs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ca([SS]),sa]}),e}(RC),kS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return oS(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return pS(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return hS(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=ke({type:e,features:[sa]});var n=pr(e);return e}(RC),AS=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+XC+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+$C+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+JC)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+$C+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+JC)},t}(),PS={provide:RC,useExisting:Tt((function(){return OS}))},OS=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return i(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof ES||AS.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(Ss(RC,5),Ss(NC,10),Ss(MC,10))},e.\u0275dir=ke({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ca([PS]),sa]}),e}(kS),RS={provide:IC,useExisting:Tt((function(){return IS}))},TS=function(){return Promise.resolve(null)}(),IS=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new bS,o._registered=!1,o.update=new _u,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||cS(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach((function(e){var o;e.constructor===PC?n=e:(o=e,fS.some((function(t){return o.constructor===t}))?(r&&cS(t,"More than one built-in value accessor matches form control with"),r=e):(i&&cS(t,"More than one custom value accessor matches form control with"),i=e))})),i||r||n||(cS(t,"No valid value accessor for form control with"),null)}(o,i),o}return i(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!ms(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?oS(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return pS(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return hS(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){sS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof OS)&&this._parent instanceof kS?AS.formGroupNameException():this._parent instanceof OS||this._parent instanceof ES||AS.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||AS.missingNameException()},e.prototype._updateValue=function(t){var e=this;TS.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;TS.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(Ss(RC,9),Ss(NC,10),Ss(MC,10),Ss(SC,10))},e.\u0275dir=ke({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:[Ca([RS]),sa,ha]}),e}(IC),DS=new Qt("NgModelWithFormControlWarning"),LS={provide:RC,useExisting:Tt((function(){return NS}))},NS=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new _u,r}return i(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return sS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){mS(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);uS(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);uS(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,dS(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return lS(e)})),e.valueAccessor.registerOnTouched((function(){return lS(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&sS(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=pS(this._validators);this.form.validator=jC.compose([this.form.validator,t]);var e=hS(this._asyncValidators);this.form.asyncValidator=jC.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||tS.missingFormException()},e.\u0275fac=function(t){return new(t||e)(Ss(NC,10),Ss(MC,10))},e.\u0275dir=ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Fs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ca([LS]),sa,ha]}),e}(RC),MS=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)}}),t}(),FS=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new wS(n,{asyncValidators:i,updateOn:o,validators:r})},t.prototype.control=function(t,e,n){return new bS(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map((function(t){return r._createControl(t)}));return new CS(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n},t.prototype._createControl=function(t){return t instanceof bS||t instanceof wS||t instanceof CS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),jS=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[QC],imports:[MS]}),t}(),VS=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:DS,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[FS,QC],imports:[MS]}),t}(),BS=new Qt("MAT_INPUT_VALUE_ACCESSOR"),US=["button","checkbox","file","hidden","image","radio","range","reset","submit"],HS=0,zS=function(t){function e(e,n,r,i,o,s,a,u,l){var c=t.call(this,s,i,o,r)||this;c._elementRef=e,c._platform=n,c.ngControl=r,c._autofillMonitor=u,c._uid="mat-input-"+HS++,c.focused=!1,c.stateChanges=new T,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return lb().has(t)}));var p=c._elementRef.nativeElement,h=p.nodeName.toLowerCase();return c._inputValueAccessor=a||p,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&l.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===h,c._isTextarea="textarea"===h,c._isNativeSelect&&(c.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),c}return i(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=$_(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=$_(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&lb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=$_(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(US.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(sb),Ss(IC,10),Ss(ES,8),Ss(NS,8),Ss(Db),Ss(BS,10),Ss(wC),Ss(cl))},e.\u0275dir=ke({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&Fs("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(ia("disabled",e.disabled)("required",e.required),bs("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Ks("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Ca([{provide:tC,useExisting:e}]),sa,ha]}),e}(Ib(function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}())),qS=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[Db],imports:[[CC,fC],CC,fC]}),t}();function GS(t,e){if(1&t){var n=Ls();Ps(0,"button",12),Fs("click",(function(){return nn(n),Bs().email=""})),Ps(1,"mat-icon"),ta(2,"close"),Os(),Os()}}function WS(t,e){if(1&t){var n=Ls();Ps(0,"button",12),Fs("click",(function(){return nn(n),Bs().name=""})),Ps(1,"mat-icon"),ta(2,"close"),Os(),Os()}}function QS(t,e){1&t&&Rs(0,"mat-spinner",13)}function KS(t,e){if(1&t&&(Ps(0,"div",14),ta(1),Os()),2&t){var n=Bs();vi(1),na(" ",n.result," ")}}var ZS=function(){function t(t,e){this.stripeService=t,this.dataService=e,this.quantity=history.state.quantity,this.cost=history.state.cost}return t.prototype.ngOnInit=function(){var t=this;this.stripeService.elements(Dw).subscribe((function(e){t.elements=e,t.card||(t.card=t.elements.create("card",Iw),t.card.mount("#card-element"))}))},t.prototype.createToken=function(){var t=this;this.loading=!0,this.stripeService.createToken(this.card,{name:this.name}).subscribe((function(e){e.token?t.subscription=t.dataService.paymentFromToken({Token:e.token.id,Description:"Payment from angular custom-payment component.",Currency:"usd",Email:t.email,Amount:t.cost*t.quantity*100}).subscribe((function(e){t.loading=!1,t.result="Payment was successfully processed!"}),(function(e){t.loading=!1,t.result="An error occured while trying to post the payment.",console.log("error-token-create",e)})):e.error&&(t.loading=!1,console.log(e.error.message))}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Ss(em),Ss(Fm))},t.\u0275cmp=be({type:t,selectors:[["app-custom-payment"]],decls:25,vars:9,consts:[[1,"mat-headline","primary"],[1,"large","primary"],[1,"primary"],[1,"full-width"],["matInput","","type","email",3,"ngModel","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["matInput","","type","text",3,"ngModel","ngModelChange"],["id","card-element",1,"field"],["mat-raised-button","","color","primary",1,"full-width",3,"click"],["fxLayout","row","fxLayoutAlign","center start"],["class","spinner-margin","color","accent","diameter","25",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["color","accent","diameter","25",1,"spinner-margin"],["role","alert",1,"alert","alert-success"]],template:function(t,e){1&t&&(Ps(0,"h1",0),Ps(1,"b"),ta(2,"Succulent Pot"),Os(),Os(),Ps(3,"h1",1),Ps(4,"b"),ta(5),Os(),Os(),Ps(6,"div",2),ta(7),Os(),Ps(8,"mat-card",3),Ps(9,"mat-form-field",3),Ps(10,"mat-label"),ta(11,"Enter Email Address"),Os(),Ps(12,"input",4),Fs("ngModelChange",(function(t){return e.email=t})),Os(),ws(13,GS,3,0,"button",5),Os(),Ps(14,"mat-form-field",3),Ps(15,"mat-label"),ta(16,"Enter Full Name"),Os(),Ps(17,"input",6),Fs("ngModelChange",(function(t){return e.name=t})),Os(),ws(18,WS,3,0,"button",5),Os(),Rs(19,"div",7),Ps(20,"button",8),Fs("click",(function(){return e.createToken()})),Ps(21,"div",9),ta(22," PAY "),ws(23,QS,1,0,"mat-spinner",10),Os(),Os(),ws(24,KS,2,1,"div",11),Os()),2&t&&(vi(5),na("Total cost: $",e.cost*e.quantity,""),vi(2),ra("Quantity: ",e.quantity,". You will pay $",e.cost," for each product"),vi(5),ks("ngModel",e.email),vi(1),ks("ngIf",e.email),vi(4),ks("ngModel",e.name),vi(1),ks("ngIf",e.name),vi(5),ks("ngIf",e.loading),vi(1),ks("ngIf",e.result))},directives:[Zb,hC,iC,zS,PC,DC,IS,wc,tw,$y,yg,aC,_w,Aw],styles:[".full-width[_ngcontent-%COMP%]{width:100%}.spinner-margin[_ngcontent-%COMP%]{margin:5px 0 0 10px}"]}),t}(),YS=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-cancel"]],decls:7,vars:0,consts:[["href","mailto:orders@example.com"]],template:function(t,e){1&t&&(Ps(0,"h1"),ta(1,"We are sorry to see you go!"),Os(),Ps(2,"p"),ta(3," Please let us know if there is something wrong. If you have any questions, please email "),Ps(4,"a",0),ta(5,"orders@example.com"),Os(),ta(6,".\n"),Os())},styles:[""]}),t}(),XS=function(){function t(){this.product={ProductName:"Apple Iphone",ProductDescription:"11 iPhone Green Mint",ProductImageUrl:"https://images.unsplash.com/photo-1592910147752-5e0bc5f04715?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxfDB8MXxhbGx8fHx8fHx8fA&ixlib=rb-1.2.1&q=80&w=1080&utm_source=unsplash_source&utm_medium=referral&utm_campaign=api-credit",Amount:400,Quantity:0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-prebuild-checkout"]],decls:1,vars:2,consts:[[3,"product","is-prebuild"]],template:function(t,e){1&t&&Rs(0,"app-product",0),2&t&&ks("product",e.product)("is-prebuild",!0)},directives:[Rw],styles:[""]}),t}(),$S=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-success"]],decls:7,vars:0,consts:[["href","mailto:orders@example.com"]],template:function(t,e){1&t&&(Ps(0,"h1"),ta(1,"Thanks for your order!"),Os(),Ps(2,"p"),ta(3," We appreciate your business! If you have any questions, please email "),Ps(4,"a",0),ta(5,"orders@example.com"),Os(),ta(6,".\n"),Os())},styles:[""]}),t}(),JS=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Wm),tx=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Zm))(JS),ex=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return lp(this.value);case"E":return nw(this.error);case"C":return gp()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),nx=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return i(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new rx(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ex.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ex.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(ex.createComplete()),this.unsubscribe()},e}(b),rx=function(){return function(t,e){this.notification=t,this.destination=e}}(),ix=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new ox(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new P;if(this.isStopped||this.hasError?e=f.EMPTY:(this.observers.push(t),e=new O(this,t)),i&&t.add(t=new nx(t,i)),n)for(var s=0;se&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(T),ox=function(){return function(t,e){this.time=t,this.value=e}}(),sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),f.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),f.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(T);class ax{}let ux=(()=>{class t extends class{constructor(){}loadScript(t,e,n,r=null){if("undefined"!=typeof document&&!document.getElementById(t)){let t=document.createElement("script");t.async=!0,t.src=e,t.onload=n,r||(r=document.head),r.appendChild(t)}}}{constructor(t,e={scope:"email"}){super(),this.clientId=t,this.initOptions=e}initialize(){return new Promise((e,n)=>{try{this.loadScript(t.PROVIDER_ID,"https://apis.google.com/js/platform.js",()=>{gapi.load("auth2",()=>{this.auth2=gapi.auth2.init(Object.assign(Object.assign({},this.initOptions),{client_id:this.clientId})),this.auth2.then(()=>{e()}).catch(t=>{n(t)})})})}catch(r){n(r)}})}getLoginStatus(e){return new Promise((n,r)=>{if(this.auth2.isSignedIn.get()){let t=new ax;const r=this.auth2.currentUser.get().getBasicProfile();if(t.id=r.getId(),t.name=r.getName(),t.email=r.getEmail(),t.photoUrl=r.getImageUrl(),t.firstName=r.getGivenName(),t.lastName=r.getFamilyName(),t.response=r,e&&e.refreshToken)this.auth2.currentUser.get().reloadAuthResponse().then(e=>{t.authToken=e.access_token,t.idToken=e.id_token,n(t)});else{const e=this.auth2.currentUser.get().getAuthResponse(!0);t.authToken=e.access_token,t.idToken=e.id_token,n(t)}}else r("No user is currently logged in with "+t.PROVIDER_ID)})}signIn(t){const e=Object.assign(Object.assign({},this.initOptions),t);return new Promise((n,r)=>{(e&&e.offline_access?this.auth2.grantOfflineAccess(t):this.auth2.signIn(t)).then(t=>{let e=new ax;if(t&&t.code)e.authorizationCode=t.code;else{let t=this.auth2.currentUser.get().getBasicProfile(),n=this.auth2.currentUser.get().getAuthResponse(!0).access_token,r=this.auth2.currentUser.get().getAuthResponse(!0).id_token;e.id=t.getId(),e.name=t.getName(),e.email=t.getEmail(),e.photoUrl=t.getImageUrl(),e.firstName=t.getGivenName(),e.lastName=t.getFamilyName(),e.authToken=n,e.idToken=r,e.response=t}n(e)},t=>{r(t)}).catch(t=>{r(t)})})}signOut(t){return new Promise((e,n)=>{let r;r=t?this.auth2.disconnect():this.auth2.signOut(),r.then(t=>{t?n(t):e()}).catch(t=>{n(t)})})}}return t.PROVIDER_ID="GOOGLE",t})(),lx=(()=>{class t{constructor(t){this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new ix(1),this.initialized=!1,this._initState=new sx,t instanceof Promise?t.then(t=>{this.initialize(t)}):this.initialize(t)}get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}initialize(t){this.autoLogin=void 0!==t.autoLogin&&t.autoLogin;const{onError:e=console.error}=t;t.providers.forEach(t=>{this.providers.set(t.id,t.provider)}),Promise.all(Array.from(this.providers.values()).map(t=>t.initialize())).then(()=>{if(this.autoLogin){const t=[];let e=!1;this.providers.forEach((n,r)=>{let i=n.getLoginStatus();t.push(i),i.then(t=>{t.provider=r,this._user=t,this._authState.next(t),e=!0}).catch(console.debug)}),Promise.all(t).catch(()=>{e||(this._user=null,this._authState.next(null))})}}).catch(t=>{e(t)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}refreshAuthToken(e){return new Promise((n,r)=>{if(this.initialized)if(e!==ux.PROVIDER_ID)r(t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const i=this.providers.get(e);i?i.getLoginStatus({refreshToken:!0}).then(t=>{t.provider=e,this._user=t,this._authState.next(t),n()}).catch(t=>{r(t)}):r(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(t.ERR_NOT_INITIALIZED)})}signIn(e,n){return new Promise((r,i)=>{if(this.initialized){let o=this.providers.get(e);o?o.signIn(n).then(t=>{t.provider=e,r(t),this._user=t,this._authState.next(t)}).catch(t=>{i(t)}):i(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else i(t.ERR_NOT_INITIALIZED)})}signOut(e=!1){return new Promise((n,r)=>{if(this.initialized)if(this._user){let i=this.providers.get(this._user.provider);i?i.signOut(e).then(()=>{n(),this._user=null,this._authState.next(null)}).catch(t=>{r(t)}):r(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(t.ERR_NOT_LOGGED_IN);else r(t.ERR_NOT_INITIALIZED)})}}return t.\u0275fac=function(e){return new(e||t)(ne("SocialAuthServiceConfig"))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",t.ERR_NOT_LOGGED_IN="Not logged in",t.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",t})(),cx=(()=>{class t{constructor(t){if(t)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static initialize(e){return{ngModule:t,providers:[lx,{provide:"SocialAuthServiceConfig",useValue:e}]}}}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(t,12))},providers:[lx],imports:[[Pc]]}),t})();const px=new Qt("JWT_OPTIONS");let hx=(()=>{class t{constructor(t=null){this.tokenGetter=t&&t.tokenGetter||function(){}}urlBase64Decode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(e)}b64decode(t){let e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,r,i=0,o=0;r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return e}b64DecodeUnicode(t){return decodeURIComponent(Array.prototype.map.call(this.b64decode(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(t=this.tokenGetter()){if(!t||""===t)return null;const e=t.split(".");if(3!==e.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=this.urlBase64Decode(e[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}getTokenExpirationDate(t=this.tokenGetter()){let e;if(e=this.decodeToken(t),!e||!e.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(e.exp),n}isTokenExpired(t=this.tokenGetter(),e){if(!t||""===t)return!0;const n=this.getTokenExpirationDate(t);return e=e||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*e)}getAuthScheme(t,e){return"function"==typeof t?t(e):t}}return t.\u0275fac=function(e){return new(e||t)(ne(px))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),fx=(()=>{class t{constructor(t,e,n){this.jwtHelper=e,this.document=n,this.standardPorts=["80","443"],this.tokenGetter=t.tokenGetter,this.headerName=t.headerName||"Authorization",this.authScheme=t.authScheme||""===t.authScheme?t.authScheme:"Bearer ",this.allowedDomains=t.allowedDomains||[],this.disallowedRoutes=t.disallowedRoutes||[],this.throwNoTokenError=t.throwNoTokenError||!1,this.skipWhenExpired=t.skipWhenExpired}isAllowedDomain(t){const e=new URL(t.url,this.document.location.origin);if(e.host===this.document.location.host)return!0;const n=`${e.hostname}${e.port&&!this.standardPorts.includes(e.port)?":"+e.port:""}`;return this.allowedDomains.findIndex(t=>"string"==typeof t?t===n:t instanceof RegExp&&t.test(n))>-1}isDisallowedRoute(t){const e=new URL(t.url,this.document.location.origin);return this.disallowedRoutes.findIndex(n=>{if("string"==typeof n){const t=new URL(n,this.document.location.origin);return t.hostname===e.hostname&&t.pathname===e.pathname}return n instanceof RegExp&&n.test(t.url)})>-1}handleInterception(t,e,n){const r=this.jwtHelper.getAuthScheme(this.authScheme,e);let i=!1;if(!t&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");return this.skipWhenExpired&&(i=!t||this.jwtHelper.isTokenExpired(t)),t&&i&&this.skipWhenExpired?e=e.clone():t&&(e=e.clone({setHeaders:{[this.headerName]:`${r}${t}`}})),n.handle(e)}intercept(t,e){if(!this.isAllowedDomain(t)||this.isDisallowedRoute(t))return e.handle(t);const n=this.tokenGetter(t);return n instanceof Promise?Q(n).pipe(K(n=>this.handleInterception(n,t,e))):this.handleInterception(n,t,e)}}return t.\u0275fac=function(e){return new(e||t)(ne(px),ne(hx),ne(zl))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),dx=(()=>{class t{constructor(t){if(t)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:t,providers:[{provide:Sm,useClass:fx,multi:!0},e.jwtOptionsProvider||{provide:px,useValue:e.config},hx]}}}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(t,12))}}),t})();var mx=function(){function t(t,e,n){var r=this;this._jwtHelper=t,this._http=e,this._externalAuthService=n,this._authChangeSub=new T,this.authChanged=this._authChangeSub.asObservable(),this.isUserAuthenticated=function(){return null!=localStorage.getItem("token")},this.sendAuthStateChangeNotification=function(t){r._authChangeSub.next(t)},this.signInWithGoogle=function(){return r._externalAuthService.signIn(ux.PROVIDER_ID)},this.logout=function(){localStorage.removeItem("token"),r.sendAuthStateChangeNotification(!1)},this.signOutExternal=function(){r.logout(),r._externalAuthService.signOut()},this._authChangeSub.next(this.isUserAuthenticated())}return t.prototype.getUser=function(){var t=this._jwtHelper.decodeToken(localStorage.getItem("token"));return null==t?null:{name:t["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],email:t["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],id:t["http://schemas.microsoft.com/ws/2008/06/identity/claims/userdata"],photoUrl:t["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uri"],role:t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}},t.prototype.externalLogin=function(t){return this._http.post(Vl+"/account/external-login",t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ne(hx),ne(wm),ne(lx))},providedIn:"root"}),t}(),yx=function(){function t(t){this._authService=t}return t.prototype.ngOnInit=function(){this.user=this._authService.getUser()},t.\u0275fac=function(e){return new(e||t)(Ss(mx))},t.\u0275cmp=be({type:t,selectors:[["app-profile"]],decls:10,vars:4,template:function(t,e){1&t&&(Ps(0,"h3"),ta(1,"User info:"),Os(),Ps(2,"div"),ta(3),Os(),Ps(4,"div"),ta(5),Os(),Ps(6,"div"),ta(7),Os(),Ps(8,"div"),ta(9),Os()),2&t&&(vi(3),na("stripe customer id: ",e.user.id,""),vi(2),na("name: ",e.user.name,""),vi(2),na("email: ",e.user.email,""),vi(2),na("role: ",e.user.role,""))},styles:[""]}),t}(),gx=function(){function t(t,e){this._authService=t,this.router=e}return t.prototype.canActivate=function(){return!!this._authService.isUserAuthenticated()||(this.router.navigate(["/"]),!1)},t.\u0275prov=vt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ne(mx),ne(xd))},providedIn:"root"}),t}(),vx=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-subscribe-cancel"]],decls:2,vars:0,template:function(t,e){1&t&&(Ps(0,"p"),ta(1,"subscribe-cancel works!"),Os())},styles:[""]}),t}(),_x=function(){function t(t,e){this._route=t,this._authService=e,this.sessionId=this._route.snapshot.queryParams.sessionId}return t.prototype.ngOnInit=function(){var t=this._authService.getUser();this.customerId=t.id},t.\u0275fac=function(e){return new(e||t)(Ss(df),Ss(mx))},t.\u0275cmp=be({type:t,selectors:[["app-subscribe-success"]],decls:11,vars:2,consts:[["href","mailto:orders@example.com"]],template:function(t,e){1&t&&(Ps(0,"h1"),ta(1,"Thanks for subscibing to us!"),Os(),Ps(2,"p"),ta(3," We appreciate your business! If you have any questions, please email "),Ps(4,"a",0),ta(5,"orders@example.com"),Os(),ta(6,".\n"),Os(),Ps(7,"h3"),ta(8),Os(),Ps(9,"h3"),ta(10),Os()),2&t&&(vi(8),na("Session Id: ",e.sessionId,""),vi(2),na("Customer Id: ",e.customerId,""))},styles:[""]}),t}(),bx=[{tag:"basic",name:"Basic Plan",imgSrc:"assets/Bronze-medal.png",priceId:"price_1ICycACAVxkeCX4QIwU9pQHV",cost:5},{tag:"premium",name:"Premium Plan",imgSrc:"assets/Silver-medal.png",priceId:"price_1ICyfOCAVxkeCX4QUAKvgia1",cost:25},{tag:"enterprise",name:"Enterprise Plan",imgSrc:"assets/Gold-medal.png",priceId:"price_1ICygjCAVxkeCX4QvDRLS7BL",cost:100}];function wx(t){return t&&"function"==typeof t.connect}var Cx=function(){function t(t,e,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new T,e&&e.length&&(t?e.forEach((function(t){return r._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),Sx=[[["caption"]]],xx=["caption"];function Ex(t){return function(t){function e(){for(var e=[],n=0;n0;i--)e[i]&&(n[i]=r,r+=t[i]);return n},t}();function zx(t){return Error('Could not find column with id "'+t+'".')}var qx=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ss(Ja),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["","rowOutlet",""]]}),t}(),Gx=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ss(Ja),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),Wx=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ss(Ja),Ss(Aa))},t.\u0275dir=ke({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),Qx=function(){function t(t,e,n,r,i,o,s){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=i,this._platform=s,this._onDestroy=new T,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._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new cp({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){Ar()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=$_(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),wx(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,r,i){if(null==e.previousIndex)t._insertRow(e.item,i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}},t.prototype.setHeaderRowDef=function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0},t.prototype.setFooterRowDef=function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(u(e,n,r),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var r=[],i=0;i1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],wx(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t,e=this;if(this.dataSource){var n;if(wx(this.dataSource)?n=this.dataSource.connect(this):(t=this.dataSource)&&(t instanceof k||"function"==typeof t.lift&&"function"==typeof t.subscribe)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=lp(this.dataSource)),void 0===n)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=n.pipe(ry(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var n=this,r=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw zx(t);return e})),i=r.map((function(t){return t.sticky})),o=r.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,i,o)},t.prototype._getRenderedRows=function(t){for(var e=[],n=0;n0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))},e.prototype._focusInput=function(t){this._chipInput&&this._chipInput.focus(t)},e.prototype._keydown=function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())},e.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},e.prototype._updateFocusForDestroyedChips=function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null},e.prototype._isValidIndex=function(t){return t>=0&&t0?e._scrolled.pipe(_C(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):lp()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(bp((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)})),n},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Xm(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.\u0275prov=vt({factory:function(){return new t(ne(cl),ne(sb),ne(zl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(cl),ne(sb),ne(zl,8))},t}(),tk=function(){function t(t,e,n){var r=this;this._platform=t,this._document=n,e.runOutsideAngular((function(){var e=r._getWindow();r._change=t.isBrowser?J(Xm(e,"resize"),Xm(e,"orientationchange")):lp(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(_C(t)):this._change},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._updateViewportSize=function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}},t.\u0275prov=vt({factory:function(){return new t(ne(sb),ne(cl),ne(zl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(sb),ne(cl),ne(zl,8))},t}(),ek=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)}}),t}(),nk=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[Gy,ab,ek],Gy,ek]}),t}(),rk=["*"],ik=["tabListContainer"],ok=["tabList"],sk=["nextPaginator"],ak=["previousPaginator"],uk=["mat-tab-nav-bar",""],lk=new Qt("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),ck=function(){function t(t,e,n,r){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=r}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width},t.\u0275fac=function(e){return new(e||t)(Ss(Aa),Ss(cl),Ss(lk),Ss(Q_,8))},t.\u0275dir=ke({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Ks("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),pk=cb({passive:!0}),hk=function(t){function e(e,n,r,i,o,s,a){var u=t.call(this,e,i,o,n,r,s,a)||this;return u._disableRipple=!1,u.color="primary",u}return i(e,t),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=$_(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this._items.changes.pipe(Kp(null),ry(this._destroyed)).subscribe((function(){e.updateActiveLink()})),t.prototype.ngAfterContentInit.call(this)},e.prototype.updateActiveLink=function(t){if(this._items){for(var e=this._items.toArray(),n=0;nl&&(this.scrollDistance+=r-l+60)}}},t.prototype._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}},t.prototype._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()},t.prototype._stopInterval=function(){this._stopScrolling.next()},t.prototype._handlePaginatorPress=function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),gC(650,100).pipe(ry(J(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),r=e.distance;(0===r||r>=e.maxScrollDistance)&&n._stopInterval()})))},t.prototype._scrollTo=function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}},t.\u0275fac=function(e){return new(e||t)(Ss(Aa),Ss(Go),Ss(tk),Ss(qy,8),Ss(cl),Ss(sb),Ss(Q_,8))},t.\u0275dir=ke({type:t,inputs:{disablePagination:"disablePagination"}}),t}()),fk=function(t){function e(e,n,r,i,o,s,a){return t.call(this,e,n,r,i,o,s,a)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(qy,8),Ss(cl),Ss(Go),Ss(tk),Ss(sb,8),Ss(Q_,8))},e.\u0275cmp=be({type:e,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){var r;1&t&&Lu(n,dk,!0),2&t&&Ru(r=Fu())&&(e._items=r)},viewQuery:function(t,e){var n;1&t&&(Tu(ck,!0),Tu(ik,!0),Tu(ok,!0),Iu(sk,!0),Iu(ak,!0)),2&t&&(Ru(n=Fu())&&(e._inkBar=n.first),Ru(n=Fu())&&(e._tabListContainer=n.first),Ru(n=Fu())&&(e._tabList=n.first),Ru(n=Fu())&&(e._nextPaginator=n.first),Ru(n=Fu())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&Ks("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[sa],attrs:uk,ngContentSelectors:rk,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Hs(),Ps(0,"div",0,1),Fs("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),Rs(2,"div",2),Os(),Ps(3,"div",3,4),Fs("keydown",(function(t){return e._handleKeydown(t)})),Ps(5,"div",5,6),Fs("cdkObserveContent",(function(){return e._onContentChanges()})),Ps(7,"div",7),zs(8),Os(),Rs(9,"mat-ink-bar"),Os(),Os(),Ps(10,"div",8,9),Fs("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),Rs(12,"div",2),Os()),2&t&&(Ks("mat-tab-header-pagination-disabled",e._disableScrollBefore),ks("matRippleDisabled",e._disableScrollBefore||e.disableRipple),vi(5),Ks("_mat-animation-noopable","NoopAnimations"===e._animationMode),vi(5),Ks("mat-tab-header-pagination-disabled",e._disableScrollAfter),ks("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Ub,db,ck],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),e}(hk),dk=function(t){function e(e,n,r,i,o,s,a,u){var l=t.call(this,e,n,o,s,a,u)||this;return l._tabLinkRipple=new Vb(l,r,n,i),l._tabLinkRipple.setupTriggerEvents(n.nativeElement),l}return i(e,t),e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._tabLinkRipple._removeTriggerEvents()},e.\u0275fac=function(t){return new(t||e)(Ss(fk),Ss(Aa),Ss(cl),Ss(sb),Ss(Bb,8),xs("tabindex"),Ss(bb),Ss(Q_,8))},e.\u0275dir=ke({type:e,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(bs("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),Ks("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[sa]}),e}(function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a._tabNavBar=e,a.elementRef=n,a._focusMonitor=o,a._isActive=!1,a.rippleConfig=r||{},a.tabIndex=parseInt(i)||0,"NoopAnimations"===s&&(a.rippleConfig.animation={enterDuration:0,exitDuration:0}),o.monitor(n),a}return i(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this.elementRef.nativeElement.focus()},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this.elementRef)},e.\u0275fac=function(t){return new(t||e)(Ss(hk),Ss(Aa),Ss(Bb,8),xs("tabindex"),Ss(bb),Ss(Q_,8))},e.\u0275dir=ke({type:e,inputs:{active:"active"},features:[sa]}),e}(Tb(Rb(Pb(function(){return function(){}}()))))),mk=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[Pc,Ab,$E,Hb,mb,Sb],Ab]}),t}();function yk(t,e){void 0===e&&(e=$m);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new gk(r,e))}}var gk=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new vk(t,this.delay,this.scheduler))},t}(),vk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return i(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.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(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new _k(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ex.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ex.createComplete()),this.unsubscribe()},e}(b),_k=function(){return function(t,e){this.time=t,this.notification=e}}(),bk=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=eb(-this._previousScrollPosition.left),t.style.top=eb(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=r,n.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function wk(){return Error("Scroll strategy has already been attached.")}var Ck=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run((function(){return i._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw wk();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Sk=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function xk(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function Ek(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var kk=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw wk();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;xk(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Ak=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Sk},this.close=function(t){return new Ck(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new bk(i._viewportRuler,i._document)},this.reposition=function(t){return new kk(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.\u0275prov=vt({factory:function(){return new t(ne(JE),ne(tk),ne(cl),ne(zl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(JE),ne(tk),ne(cl),ne(zl))},t}(),Pk=function(){return function(t){var e,n;if(this.scrollStrategy=new Sk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){var r=Object.keys(t);try{for(var i=s(r),o=i.next();!o.done;o=i.next()){var a=o.value;void 0!==t[a]&&(this[a]=t[a])}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}}}(),Ok=function(){return function(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),Rk=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function Tk(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Ik(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Dk=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEvents.observers.length>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.\u0275prov=vt({factory:function(){return new t(ne(zl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ne(zl))},t}(),Lk=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Nk=function(){function t(t,e){this._platform=e,this._document=t}return t.prototype.ngOnDestroy=function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||Lk)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;ng&&(g=w,y=b)}}catch(S){n={error:S}}finally{try{_&&!_.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}return this._isPushed=!1,void this._applyPosition(y.position,y.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Vk(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);var u=0-o,l=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),p=this._subtractOverflows(e.height,u,l),h=c*p;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:p===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=Bk(this._overlayRef.getConfig().minHeight),s=Bk(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=s&&s<=i)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,s=Math.max(t.x+e.width-o.right,0),a=Math.max(t.y+e.height-o.bottom,0),u=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:r=e.width<=o.width?l||-s:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-p/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)a=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)s=t.x,o=u.right-t.x;else{c=Math.min(u.right-t.x+u.left,t.x);var h=this._lastBoundingBoxSize.width;s=t.x-c,(o=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-h/2)}return{top:r,left:s,bottom:i,right:a,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);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=eb(n.height),r.top=eb(n.top),r.bottom=eb(n.bottom),r.width=eb(n.width),r.left=eb(n.left),r.right=eb(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=eb(i)),o&&(r.maxWidth=eb(o))}this._lastBoundingBoxSize=n,Vk(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){Vk(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Vk(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var s=this._viewportRuler.getViewportScrollPosition();Vk(n,this._getExactOverlayY(e,t,s)),Vk(n,this._getExactOverlayX(e,t,s))}else n.position="static";var a="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(a+="translateX("+u+"px) "),l&&(a+="translateY("+l+"px)"),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=eb(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=eb(o.maxWidth):i&&(n.maxWidth="")),Vk(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=eb(i.y),r},t.prototype._getExactOverlayX=function(t,e,n){var r={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=eb(i.x),r},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Ek(t,n),isOriginOutsideView:xk(t,n),isOverlayClipped:Ek(e,n),isOverlayOutsideView:xk(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n enter",Rg([Ng(".mat-menu-content, .mat-mdc-menu-content",Og("100ms linear",Ig({opacity:1}))),Og("120ms cubic-bezier(0, 0, 0.2, 1)",Ig({transform:"scale(1)"}))])),Lg("* => void",Og("100ms 25ms linear",Ig({opacity:0})))]),fadeInItems:Pg("fadeInItems",[Dg("showing",Ig({opacity:1})),Lg("void => *",[Ig({opacity:0}),Og("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$k=function(){function t(t,e,n,r,i,o,s){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=r,this._viewContainerRef=i,this._document=o,this._changeDetectorRef=s,this._attached=new T}return t.prototype.attach=function(t){void 0===t&&(t={}),this._portal||(this._portal=new ZE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new XE(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()},t.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()},t.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()},t.\u0275fac=function(e){return new(e||t)(Ss(Xa),Ss(ka),Ss(Ol),Ss(as),Ss(Ja),Ss(zl),Ss(Go))},t.\u0275dir=ke({type:t,selectors:[["ng-template","matMenuContent",""]]}),t}(),Jk=new Qt("MAT_MENU_PANEL"),tA=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=r,o._parentMenu=i,o.role="menuitem",o._hovered=new T,o._focused=new T,o._highlighted=!1,o._triggersSubmenu=!1,r&&r.monitor(o._elementRef,!1),i&&i.addItem&&i.addItem(o),o._document=n,o}return i(e,t),e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var r=t.childNodes.length,i=0;i')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=$_(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=$_(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._updateDirectDescendants(),this._keyManager=new yb(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit("tab")})),this._directDescendantItems.changes.pipe(Kp(this._directDescendantItems),qp((function(t){return J.apply(void 0,u(t.map((function(t){return t._focused}))))}))).subscribe((function(e){return t._keyManager.updateActiveItem(e)}))},t.prototype.ngOnDestroy=function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._directDescendantItems.changes.pipe(Kp(this._directDescendantItems),qp((function(t){return J.apply(void 0,u(t.map((function(t){return t._hovered}))))})))},t.prototype.addItem=function(t){},t.prototype.removeItem=function(t){},t.prototype._handleKeydown=function(t){var e=t.keyCode,n=this._keyManager;switch(e){case 27:X_(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:X_(t)||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(jp(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)},t.prototype._focusFirstItem=function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t.prototype._updateDirectDescendants=function(){var t=this;this._allItems.changes.pipe(Kp(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))},t.\u0275fac=function(e){return new(e||t)(Ss(Aa),Ss(cl),Ss(eA))},t.\u0275dir=ke({type:t,contentQueries:function(t,e,n){var r;1&t&&(Lu(n,$k,!0),Lu(n,tA,!0),Lu(n,tA,!1)),2&t&&(Ru(r=Fu())&&(e.lazyContent=r.first),Ru(r=Fu())&&(e._allItems=r),Ru(r=Fu())&&(e.items=r))},viewQuery:function(t,e){var n;1&t&&Iu(Xa,!0),2&t&&Ru(n=Fu())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}()),iA=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ss(Aa),Ss(cl),Ss(eA))},e.\u0275cmp=be({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Ca([{provide:Jk,useExisting:rA},{provide:rA,useExisting:e}]),sa],ngContentSelectors:Zk,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Hs(),ws(0,Yk,3,6,"ng-template"))},directives:[gc],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Xk.transformMenu,Xk.fadeInItems]},changeDetection:0}),e}(rA),oA=new Qt("mat-menu-scroll-strategy"),sA={provide:oA,deps:[Gk],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},aA=cb({passive:!0}),uA=function(){function t(t,e,n,r,i,o,s,a){var u=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=i,this._menuItemInstance=o,this._dir=s,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.EMPTY,this._hoverSubscription=f.EMPTY,this._menuCloseSubscription=f.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new _u,this.onMenuOpen=this.menuOpened,this.menuClosed=new _u,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,aA),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,aA),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof rA&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof rA?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(bp((function(t){return"void"===t.toState})),jp(1),ry(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._restoreFocus=function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new Pk({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))},t.prototype._setPosition=function(t){var e=a("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],r=e[1],i=a("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=i[0],s=i[1],u=a([o,s],2),l=u[0],c=u[1],p=a([n,r],2),h=p[0],f=p[1],d=0;this.triggersSubmenu()?(f=n="before"===this.menu.xPosition?"start":"end",r=h="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",c="top"===s?"bottom":"top"),t.withPositions([{originX:n,originY:l,overlayX:h,overlayY:o,offsetY:d},{originX:r,originY:l,overlayX:f,overlayY:o,offsetY:d},{originX:n,originY:c,overlayX:h,overlayY:s,offsetY:-d},{originX:r,originY:c,overlayX:f,overlayY:s,offsetY:-d}])},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return J(e,this._parentMenu?this._parentMenu.closed:lp(),this._parentMenu?this._parentMenu._hovered().pipe(bp((function(e){return e!==t._menuItemInstance})),bp((function(){return t._menuOpen}))):lp(),n)},t.prototype._handleMousedown=function(t){gb(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(bp((function(e){return e===t._menuItemInstance&&!e.disabled})),yk(0,Ym)).subscribe((function(){t._openedBy="mouse",t.menu instanceof rA&&t.menu._isAnimating?t.menu._animationDone.pipe(jp(1),yk(0,Ym),ry(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new ZE(this.menu.templateRef,this._viewContainerRef)),this._portal},t.\u0275fac=function(e){return new(e||t)(Ss(Gk),Ss(Aa),Ss(Ja),Ss(oA),Ss(rA,8),Ss(tA,10),Ss(qy,8),Ss(bb))},t.\u0275dir=ke({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Fs("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&bs("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),lA=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[sA],imports:[Ab]}),t}(),cA=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[sA],imports:[[Pc,Ab,Hb,Qk,lA],ek,Ab,lA]}),t}();function pA(t,e){if(1&t){var n=Ls();Ps(0,"a",10),Fs("click",(function(){nn(n);var t=e.$implicit;return Bs().activeLink=t})),ta(1),Os()}if(2&t){var r=e.$implicit;ks("active",Bs().activeLink==r)("routerLink",r.route),vi(1),na(" ",r.label," ")}}function hA(t,e){if(1&t&&(Ps(0,"button",11),Rs(1,"img",12),ta(2),Os()),2&t){var n=Bs();ks("matMenuTriggerFor",Cs(13)),vi(1),ks("src",null==n.user?null:n.user.photoUrl,$r),vi(1),ea(null==n.user?null:n.user.name)}}var fA=function(){function t(t,e){var n=this;this._router=t,this._authService=e,this.links=[{label:"PREBUILD CHECKOUT FLOW",route:"/prebuild-checkout"},{label:"CUSTOM PAYMENT FLOW",route:"/custom-flow"},{label:"SUBSCRIPTION",route:"/subscription"}],this.activeLink=this.links[0],this.loadProfile=function(){return n._router.navigate(["/profile"])},this.logout=function(){return n._authService.signOutExternal()}}return t.prototype.ngOnInit=function(){var t=this;this.isUserAuthenticated=this._authService.isUserAuthenticated(),this.user=this._authService.getUser(),this._authService.authChanged.subscribe((function(e){t.isUserAuthenticated=e,t.user=t._authService.getUser()}))},t.\u0275fac=function(e){return new(e||t)(Ss(xd),Ss(mx))},t.\u0275cmp=be({type:t,selectors:[["app-navbar"]],decls:18,vars:2,consts:[["mat-tab-nav-bar","","backgroundColor","primary"],["fxLayout","row","fxLayoutAlign","space-between center",2,"width","100%"],["mat-tab-link","","routerLink","/"],["src","assets/angular.png",1,"nav-icon"],["mat-tab-link","",3,"active","routerLink","click",4,"ngFor","ngForOf"],["mat-tab-link","","href","https://dashboard.stripe.com/test/dashboard"],[1,"icon"],["color","primary","mat-flat-button","",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-tab-link","",3,"active","routerLink","click"],["color","primary","mat-flat-button","",3,"matMenuTriggerFor"],["alt","avatar",1,"profile-icon",3,"src"]],template:function(t,e){1&t&&(Ps(0,"nav",0),Ps(1,"div",1),Ps(2,"div"),Ps(3,"a",2),Rs(4,"img",3),Os(),ws(5,pA,2,3,"a",4),Os(),Ps(6,"div"),Ps(7,"a",5),ta(8,"STRIPE DASHBOARD"),Ps(9,"mat-icon",6),ta(10,"launch"),Os(),Os(),ws(11,hA,3,3,"button",7),Os(),Os(),Os(),Ps(12,"mat-menu",null,8),Ps(14,"button",9),Fs("click",(function(){return e.loadProfile()})),ta(15,"Profile"),Os(),Ps(16,"button",9),Fs("click",(function(){return e.logout()})),ta(17,"Logout"),Os(),Os()),2&t&&(vi(5),ks("ngForOf",e.links),vi(6),ks("ngIf",e.isUserAuthenticated))},directives:[fk,$y,yg,Ed,dk,_c,_w,wc,iA,tA,tw,uA],styles:["#navbar{margin-bottom:50px!important}button{outline:none!important}a:hover{text-decoration:none}.nav-icon,.profile-icon{height:50px;width:50px}.profile-icon{border-radius:15px;margin-right:.5rem}.nav-button{margin:1rem}.mat-tab-links{height:5rem}"],encapsulation:2}),t}(),dA=function(){function t(){this.title="Stripe Angular"}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"content-margin-top","d-flex","justify-content-center"]],template:function(t,e){1&t&&(Rs(0,"app-navbar"),Ps(1,"div",0),Rs(2,"router-outlet"),Os())},directives:[fA,Od],styles:[".content-margin-top[_ngcontent-%COMP%]{margin-top:5rem}"]}),t}(),mA=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[uy]]}),t}(),yA=function(){function t(){}return t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)},imports:[[uy]]}),t}(),gA=function(){function t(t,e){Rc(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:hy,useValue:Bm(Bm({},py),e)},{provide:dy,useValue:n,multi:!0},{provide:fy,useValue:!0}]:[{provide:hy,useValue:Bm(Bm({},py),e)},{provide:dy,useValue:n,multi:!0}]}},t.\u0275mod=xe({type:t}),t.\u0275inj=_t({factory:function(e){return new(e||t)(ne(fy),ne(Ku))},imports:[[Eg,mA,yA],Eg,mA,yA]}),t}();function vA(){return localStorage.getItem("token")}var _A=function(){function t(){}return t.\u0275mod=xe({type:t,bootstrap:[dA]}),t.\u0275inj=_t({factory:function(e){return new(e||t)},providers:[{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:ux.PROVIDER_ID,provider:new ux("730331897127-mgfpe7rkcgi1u9j28adpl321i75s0eo8.apps.googleusercontent.com")}]}}],imports:[[up,GE,jS,VS,Mm,im.forRoot("pk_test_51I3vwwCAVxkeCX4QWqibRQITeb9iG4wNPE7sW1Wzb8KitLSEawyI4BC8e31r8ysznVfjenkD55PMLNNG1jAAh2d800nOn5T4yc"),cx,Y_,gA,mk,bw,Yb,ew,qS,cA,wE,uE,ME,Pw,dx.forRoot({config:{tokenGetter:vA,allowedDomains:["localhost:44356","gencosoft-paymentapi.azurewebsites.net"],disallowedRoutes:[]}})]]}),t}();(function(){if(kr)throw new Error("Cannot enable prod mode after platform setup.");Er=!1})(),sp().bootstrapModule(_A).catch((function(t){return console.error(t)}))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);