From d87f75d3efb06b4e628cc84e78680a9d48f3b369 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Sun, 4 Nov 2018 18:47:00 -0500 Subject: [PATCH] Peer and Channel Enhancements Connect Peer: Remove host, add with pubkey only. Peers List: Add Alias. Channel select: Replace peer pubkey in select with Alias. Channel Close. --- angular/index.html | 2 +- angular/main.02fab6887dacbfc6abf7.js | 1 + app.js | 4 +-- controllers/channels.js | 17 +++++++++++ controllers/graph.js | 42 ++++++++++++++++++++++++++++ controllers/newAddress.js | 3 -- routes/channels.js | 1 + routes/graph.js | 8 ++++++ 8 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 angular/main.02fab6887dacbfc6abf7.js create mode 100644 controllers/graph.js create mode 100644 routes/graph.js diff --git a/angular/index.html b/angular/index.html index fa964762..1efd9197 100644 --- a/angular/index.html +++ b/angular/index.html @@ -9,5 +9,5 @@ - + diff --git a/angular/main.02fab6887dacbfc6abf7.js b/angular/main.02fab6887dacbfc6abf7.js new file mode 100644 index 00000000..be934cee --- /dev/null +++ b/angular/main.02fab6887dacbfc6abf7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+kuk":function(t,e,n){"use strict";var i=n("WpQw"),r=n("CcnG"),o=n("21Lb"),a=n("OzfB"),l=n("lzlj"),s=n("FVSy"),u=n("Mr+X"),c=n("SMsm"),d=n("TtEo"),p=n("LC5p"),f=n("bujt"),h=n("UodH"),m=n("dWZg"),v=n("lLAP"),g=n("wFw1"),_=n("o3x0"),y=n("OCG0"),b=r.\u0275crt({encapsulation:0,styles:[i.styles],data:{}});function C(t){return r.\u0275vid(0,[(t()(),r.\u0275eld(0,0,null,null,31,"div",[["fxLayout","row"]],null,null,null,null,null)),r.\u0275did(1,737280,null,0,o.LayoutDirective,[a.MediaMonitor,r.ElementRef,a.StyleUtils],{layout:[0,"layout"]},null),(t()(),r.\u0275eld(2,0,null,null,29,"div",[["class","w-100"]],null,null,null,null,null)),(t()(),r.\u0275eld(3,0,null,null,9,"mat-card-header",[["class","bg-primary p-1 mat-card-header"]],null,null,null,l.View_MatCardHeader_0,l.RenderType_MatCardHeader)),r.\u0275did(4,49152,null,0,s.MatCardHeader,[],null,null),(t()(),r.\u0275eld(5,0,null,2,2,"h2",[["fxFlex","93"]],null,null,null,null,null)),r.\u0275did(6,737280,null,0,o.FlexDirective,[a.MediaMonitor,r.ElementRef,[3,o.LayoutDirective],a.StyleUtils,a.LAYOUT_CONFIG],{flex:[0,"flex"]},null),(t()(),r.\u0275ted(7,null,["",""])),(t()(),r.\u0275eld(8,0,null,2,4,"mat-icon",[["class","cursor-pointer mat-icon"],["fxFlex","7"],["fxLayoutAlign","end"],["role","img"],["type","button"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.onClose()&&i),i},u.View_MatIcon_0,u.RenderType_MatIcon)),r.\u0275did(9,737280,null,0,o.LayoutAlignDirective,[a.MediaMonitor,r.ElementRef,[8,null],a.StyleUtils],{align:[0,"align"]},null),r.\u0275did(10,737280,null,0,o.FlexDirective,[a.MediaMonitor,r.ElementRef,[3,o.LayoutDirective],a.StyleUtils,a.LAYOUT_CONFIG],{flex:[0,"flex"]},null),r.\u0275did(11,638976,null,0,c.MatIcon,[r.ElementRef,c.MatIconRegistry,[8,null]],null,null),(t()(),r.\u0275ted(-1,0,["close"])),(t()(),r.\u0275eld(13,0,null,null,18,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),r.\u0275did(14,16384,null,0,s.MatCardContent,[],null,null),(t()(),r.\u0275eld(15,0,null,null,2,"p",[["class","pb-2 p-2 wrap-text new-line"],["fxLayoutAlign","center center"]],null,null,null,null,null)),r.\u0275did(16,737280,null,0,o.LayoutAlignDirective,[a.MediaMonitor,r.ElementRef,[8,null],a.StyleUtils],{align:[0,"align"]},null),(t()(),r.\u0275ted(17,null,["",""])),(t()(),r.\u0275eld(18,0,null,null,1,"mat-divider",[["class","pb-1 mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,d.View_MatDivider_0,d.RenderType_MatDivider)),r.\u0275did(19,49152,null,0,p.MatDivider,[],null,null),(t()(),r.\u0275eld(20,0,null,null,11,"div",[["fxLayoutAlign","center"]],null,null,null,null,null)),r.\u0275did(21,737280,null,0,o.LayoutAlignDirective,[a.MediaMonitor,r.ElementRef,[8,null],a.StyleUtils],{align:[0,"align"]},null),(t()(),r.\u0275eld(22,0,null,null,4,"button",[["class","mb-1 mr-2"],["color","accent"],["default",""],["fxFlex","20"],["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.\u0275nov(t,25).dialogRef.close(r.\u0275nov(t,25).dialogResult)&&i),i},f.View_MatButton_0,f.RenderType_MatButton)),r.\u0275did(23,737280,null,0,o.FlexDirective,[a.MediaMonitor,r.ElementRef,[3,o.LayoutDirective],a.StyleUtils,a.LAYOUT_CONFIG],{flex:[0,"flex"]},null),r.\u0275did(24,180224,null,0,h.MatButton,[r.ElementRef,m.Platform,v.FocusMonitor,[2,g.ANIMATION_MODULE_TYPE]],{color:[0,"color"]},null),r.\u0275did(25,606208,null,0,_.MatDialogClose,[[2,_.MatDialogRef],r.ElementRef,_.MatDialog],{dialogResult:[0,"dialogResult"]},null),(t()(),r.\u0275ted(-1,0,["No"])),(t()(),r.\u0275eld(27,0,null,null,4,"button",[["class","mb-1 ml-2"],["color","primary"],["fxFlex","20"],["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r.\u0275nov(t,30).dialogRef.close(r.\u0275nov(t,30).dialogResult)&&i),i},f.View_MatButton_0,f.RenderType_MatButton)),r.\u0275did(28,737280,null,0,o.FlexDirective,[a.MediaMonitor,r.ElementRef,[3,o.LayoutDirective],a.StyleUtils,a.LAYOUT_CONFIG],{flex:[0,"flex"]},null),r.\u0275did(29,180224,null,0,h.MatButton,[r.ElementRef,m.Platform,v.FocusMonitor,[2,g.ANIMATION_MODULE_TYPE]],{color:[0,"color"]},null),r.\u0275did(30,606208,null,0,_.MatDialogClose,[[2,_.MatDialogRef],r.ElementRef,_.MatDialog],{dialogResult:[0,"dialogResult"]},null),(t()(),r.\u0275ted(-1,0,["Yes"]))],function(t,e){t(e,1,0,"row"),t(e,6,0,"93"),t(e,9,0,"end"),t(e,10,0,"7"),t(e,11,0),t(e,16,0,"center center"),t(e,21,0,"center"),t(e,23,0,"20"),t(e,24,0,"accent"),t(e,25,0,!1),t(e,28,0,"20"),t(e,29,0,"primary"),t(e,30,0,!0)},function(t,e){var n=e.component;t(e,7,0,n.data.type),t(e,8,0,r.\u0275nov(e,11).inline),t(e,17,0,n.data.message),t(e,18,0,r.\u0275nov(e,19).vertical?"vertical":"horizontal",r.\u0275nov(e,19).vertical,!r.\u0275nov(e,19).vertical,r.\u0275nov(e,19).inset),t(e,22,0,r.\u0275nov(e,24).disabled||null,"NoopAnimations"===r.\u0275nov(e,24)._animationMode,r.\u0275nov(e,25).ariaLabel),t(e,27,0,r.\u0275nov(e,29).disabled||null,"NoopAnimations"===r.\u0275nov(e,29)._animationMode,r.\u0275nov(e,30).ariaLabel)})}function w(t){return r.\u0275vid(0,[(t()(),r.\u0275eld(0,0,null,null,1,"rtl-confirmation-message",[],null,null,null,C,b)),r.\u0275did(1,114688,null,0,y.ConfirmationMessageComponent,[_.MatDialogRef,_.MAT_DIALOG_DATA],null,null)],function(t,e){t(e,1,0)},null)}e.RenderType_ConfirmationMessageComponent=b,e.View_ConfirmationMessageComponent_0=C,e.View_ConfirmationMessageComponent_Host_0=w,e.ConfirmationMessageComponentNgFactory=r.\u0275ccf("rtl-confirmation-message",y.ConfirmationMessageComponent,w,{},{},[])},"+nza":function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0}},"/FBu":function(t,e,n){"use strict";e.styles=[".p-2[_ngcontent-%COMP%]{padding:1rem}.pb-1[_ngcontent-%COMP%]{padding-bottom:.3rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:.5rem}.wrap-text[_ngcontent-%COMP%]{word-break:break-word}.mat-icon[type=button][_ngcontent-%COMP%]{cursor:pointer}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]},"/VYK":function(t,e,n){"use strict";n.r(e),n.d(e,"AutofillMonitor",function(){return p}),n.d(e,"CdkAutofill",function(){return f}),n.d(e,"CdkTextareaAutosize",function(){return h}),n.d(e,"TextFieldModule",function(){return m});var i=n("dWZg"),r=n("CcnG"),o=n("G5J1"),a=n("K9Ia"),l=n("bne5"),s=n("n6gG"),u=n("Rney"),c=n("ny24"),d=!!Object(i.supportsPassiveEventListeners)()&&{passive:!0},p=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 o.a;var n=t instanceof r.ElementRef?t.nativeElement:t,i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var l=new a.a,s="cdk-text-field-autofilled",u=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(s)&&(n.classList.remove(s),e._ngZone.run(function(){return l.next({target:t.target,isAutofilled:!1})})):(n.classList.add(s),e._ngZone.run(function(){return l.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",u,d),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:l,unlisten:function(){n.removeEventListener("animationstart",u,d)}}),l.asObservable()},t.prototype.stopMonitoring=function(t){var e=t instanceof r.ElementRef?t.nativeElement: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.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t(Object(r.inject)(i.Platform),Object(r.inject)(r.NgZone))},token:t,providedIn:"root"}),t}(),f=function(){function t(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new r.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe(function(e){return t.cdkAutofill.emit(e)})},t.prototype.ngOnDestroy=function(){this._autofillMonitor.stopMonitoring(this._elementRef)},t}(),h=function(){function t(t,e,n){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new a.a,this._enabled=!0,this._textareaElement=this._elementRef.nativeElement}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){t=Object(s.c)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("minHeight",t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("maxHeight",t)},t.prototype.ngAfterViewInit=function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){Object(l.a)(window,"resize").pipe(Object(u.a)(16),Object(c.a)(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._setTextareaStyle=function(t,e){this._textareaElement.style[t]=e},t.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}},t.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},t.prototype.resizeToFitContent=function(t){var e=this;if(void 0===t&&(t=!1),this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(i!==this._previousValue||t){var r=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height=n.scrollHeight-4+"px",n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=r,"undefined"!=typeof requestAnimationFrame&&this._ngZone.runOutsideAngular(function(){return requestAnimationFrame(function(){e._destroyed.isStopped||document.activeElement!==n||n.setSelectionRange(n.selectionStart,n.selectionEnd)})}),this._previousValue=i}}},t.prototype.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)},t.prototype._noopInputHandler=function(){},t}(),m=function(){return function(){}}()},"/WYv":function(t,e,n){"use strict";function i(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},"/s55":function(t,e,n){"use strict";e.styles=[""]},0:function(t,e,n){t.exports=n("zUnb")},"0/Q6":function(t,e,n){"use strict";n.r(e),n.d(e,"MatListModule",function(){return A}),n.d(e,"MatListBase",function(){return p}),n.d(e,"_MatListMixinBase",function(){return f}),n.d(e,"MatListItemBase",function(){return h}),n.d(e,"_MatListItemMixinBase",function(){return m}),n.d(e,"MatNavList",function(){return v}),n.d(e,"MatList",function(){return g}),n.d(e,"MatListAvatarCssMatStyler",function(){return _}),n.d(e,"MatListIconCssMatStyler",function(){return y}),n.d(e,"MatListSubheaderCssMatStyler",function(){return b}),n.d(e,"MatListItem",function(){return C}),n.d(e,"MatSelectionListBase",function(){return w}),n.d(e,"_MatSelectionListMixinBase",function(){return M}),n.d(e,"MatListOptionBase",function(){return x}),n.d(e,"_MatListOptionMixinBase",function(){return O}),n.d(e,"MAT_SELECTION_LIST_VALUE_ACCESSOR",function(){return S}),n.d(e,"MatSelectionListChange",function(){return E}),n.d(e,"MatListOption",function(){return T}),n.d(e,"MatSelectionList",function(){return R});var i=n("mrSG"),r=n("CcnG"),o=n("Wf4p"),a=n("lLAP"),l=n("n6gG"),s=n("YlbQ"),u=n("YSh2"),c=n("gIcY"),d=n("pugT"),p=function(){return function(){}}(),f=Object(o.mixinDisableRipple)(p),h=function(){return function(){}}(),m=Object(o.mixinDisableRipple)(h),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e}(f),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e}(f),_=function(){return function(){}}(),y=function(){return function(){}}(),b=function(){return function(){}}(),C=function(t){function e(e,n){var i=t.call(this)||this;return i._element=e,i._navList=n,i._isNavList=!1,i._isNavList=!!n,i}return Object(i.__extends)(e,t),e.prototype.ngAfterContentInit=function(){new o.MatLineSetter(this._lines,this._element)},e.prototype._isRippleDisabled=function(){return!this._isNavList||this.disableRipple||this._navList.disableRipple},e.prototype._handleFocus=function(){this._element.nativeElement.classList.add("mat-list-item-focus")},e.prototype._handleBlur=function(){this._element.nativeElement.classList.remove("mat-list-item-focus")},e.prototype._getHostElement=function(){return this._element.nativeElement},e}(m),w=function(){return function(){}}(),M=Object(o.mixinDisableRipple)(w),x=function(){return function(){}}(),O=Object(o.mixinDisableRipple)(x),S={provide:c.NG_VALUE_ACCESSOR,useExisting:Object(r.forwardRef)(function(){return R}),multi:!0},E=function(){return function(t,e){this.source=t,this.option=e}}(),T=function(t){function e(e,n,i){var r=t.call(this)||this;return r._element=e,r._changeDetector=n,r.selectionList=i,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=Object(l.c)(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=Object(l.c)(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this,e=this._selected;Promise.resolve().then(function(){(t._selected||e)&&(t.selected=!0,t._changeDetector.markForCheck())})},e.prototype.ngAfterContentInit=function(){new o.MatLineSetter(this._lines,this._element)},e.prototype.ngOnDestroy=function(){var t=this;this.selected&&Promise.resolve().then(function(){return t.selected=!1}),this.selectionList._removeOptionFromList(this)},e.prototype.toggle=function(){this.selected=!this.selected},e.prototype.focus=function(){this._element.nativeElement.focus()},e.prototype.getLabel=function(){return this._text&&this._text.nativeElement.textContent||""},e.prototype._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple},e.prototype._handleClick=function(){this.disabled||(this.toggle(),this.selectionList._emitChangeEvent(this))},e.prototype._handleFocus=function(){this._hasFocus=!0,this.selectionList._setFocusedOption(this)},e.prototype._handleBlur=function(){this._hasFocus=!1,this.selectionList._onTouched()},e.prototype._getHostElement=function(){return this._element.nativeElement},e.prototype._setSelected=function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)},e.prototype._markForCheck=function(){this._changeDetector.markForCheck()},e}(O),R=function(t){function e(e,n){var i=t.call(this)||this;return i._element=e,i.selectionChange=new r.EventEmitter,i.tabIndex=0,i._disabled=!1,i.selectedOptions=new s.SelectionModel(!0),i._onChange=function(t){},i._modelChanges=d.a.EMPTY,i._onTouched=function(){},i.tabIndex=parseInt(n)||0,i}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(l.c)(t),this.options&&this.options.forEach(function(t){return t._markForCheck()})},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new a.FocusKeyManager(this.options).withWrap().withTypeAhead().skipPredicate(function(){return!1}),this._tempValues&&(this._setOptionsFromValues(this._tempValues),this._tempValues=null),this._modelChanges=this.selectedOptions.onChange.subscribe(function(t){if(t.added)for(var e=0,n=t.added;e0?this._keyManager.setPreviousItemActive():0===e&&this.options.length>1&&this._keyManager.setNextItemActive()}},e.prototype._keydown=function(t){var e=t.keyCode,n=this._keyManager,i=n.activeItemIndex;switch(e){case u.n:case u.f:this._toggleFocusedOption(),t.preventDefault();break;case u.h:case u.e:e===u.h?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault();break;case u.a:t.ctrlKey&&(this.options.find(function(t){return!t.selected})?this.selectAll():this.deselectAll(),t.preventDefault());break;default:n.onKeydown(t)}e!==u.p&&e!==u.d||!t.shiftKey||n.activeItemIndex===i||this._toggleFocusedOption()},e.prototype._reportValueChange=function(){this.options&&this._onChange(this._getSelectedOptionValues())},e.prototype._emitChangeEvent=function(t){this.selectionChange.emit(new E(this,t))},e.prototype.writeValue=function(t){this.options?this._setOptionsFromValues(t||[]):this._tempValues=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype._setOptionsFromValues=function(t){var e=this;this.options.forEach(function(t){return t._setSelected(!1)}),t.map(function(t){return e.options.find(function(n){return e.compareWith?e.compareWith(n.value,t):n.value===t})}).filter(Boolean).forEach(function(t){return t._setSelected(!0)})},e.prototype._getSelectedOptionValues=function(){return this.options.filter(function(t){return t.selected}).map(function(t){return t.value})},e.prototype._toggleFocusedOption=function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];e&&!e.disabled&&(e.toggle(),this._emitChangeEvent(e))}},e.prototype._setAllOptionsSelected=function(t){var e=!1;this.options.forEach(function(n){n._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()},e.prototype._isValidIndex=function(t){return t>=0&&t-1}var c=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r._announcer=new o.a(1),r.layout$=r._announcer.asObservable(),r}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"layout",{set:function(t){this._cacheInput("layout",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXs",{set:function(t){this._cacheInput("layoutXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutSm",{set:function(t){this._cacheInput("layoutSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutMd",{set:function(t){this._cacheInput("layoutMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLg",{set:function(t){this._cacheInput("layoutLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXl",{set:function(t){this._cacheInput("layoutXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtXs",{set:function(t){this._cacheInput("layoutGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtSm",{set:function(t){this._cacheInput("layoutGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtMd",{set:function(t){this._cacheInput("layoutGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtLg",{set:function(t){this._cacheInput("layoutGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtSm",{set:function(t){this._cacheInput("layoutLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtMd",{set:function(t){this._cacheInput("layoutLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtLg",{set:function(t){this._cacheInput("layoutLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtXl",{set:function(t){this._cacheInput("layoutLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.layout||this._mqActivation)&&this._updateWithDirection()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(t){e._updateWithDirection(t.value)})},e.prototype._updateWithDirection=function(t){t=t||this._queryInput("layout")||"row",this._mqActivation&&(t=this._mqActivation.activatedInput);var e=function(t){var e=s(t);return function(t,n,i){return void 0===n&&(n=null),void 0===i&&(i=!1),{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e[0],"flex-wrap":n||null}}(0,e[1],e[2])}(t||"");this._applyStyleToElement(e),this._announcer.next({direction:e["flex-direction"],wrap:!!e["flex-wrap"]&&"nowrap"!==e["flex-wrap"]})},e}(r.BaseDirective),d=function(t){function e(e,n,i,r,o,a){var l=t.call(this,e,n,a)||this;return l._zone=r,l._directionality=o,l._layout="row",i&&(l._layoutWatcher=i.layout$.subscribe(l._onLayoutChange.bind(l))),l._directionWatcher=l._directionality.change.subscribe(l._updateWithValue.bind(l)),l}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"gap",{set:function(t){this._cacheInput("gap",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapXs",{set:function(t){this._cacheInput("gapXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapSm",{set:function(t){this._cacheInput("gapSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapMd",{set:function(t){this._cacheInput("gapMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLg",{set:function(t){this._cacheInput("gapLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapXl",{set:function(t){this._cacheInput("gapXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtXs",{set:function(t){this._cacheInput("gapGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtSm",{set:function(t){this._cacheInput("gapGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtMd",{set:function(t){this._cacheInput("gapGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtLg",{set:function(t){this._cacheInput("gapGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtSm",{set:function(t){this._cacheInput("gapLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtMd",{set:function(t){this._cacheInput("gapLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtLg",{set:function(t){this._cacheInput("gapLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtXl",{set:function(t){this._cacheInput("gapLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.gap||this._mqActivation)&&this._updateWithValue()},e.prototype.ngAfterContentInit=function(){var t=this;this._watchContentChanges(),this._listenForMediaQueryChanges("gap","0",function(e){t._updateWithValue(e.value)}),this._updateWithValue()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe(),this._observer&&this._observer.disconnect(),this._directionWatcher&&this._directionWatcher.unsubscribe()},e.prototype._watchContentChanges=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._updateWithValue()}),t._observer.observe(t.nativeElement,{childList:!0}))})},e.prototype._onLayoutChange=function(t){var e=this;this._layout=(t.direction||"").toLowerCase(),l.find(function(t){return t===e._layout})||(this._layout="row"),this._updateWithValue()},e.prototype._updateWithValue=function(t){var e=this,n=t||this._queryInput("gap")||"0";this._mqActivation&&(n=this._mqActivation.activatedInput);var i=this.childrenNodes.filter(function(t){return 1===t.nodeType&&"none"!=e._getDisplayStyle(t)}).sort(function(t,n){var i=+e._styler.lookupStyle(t,"order"),r=+e._styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1});if(i.length>0)if(n.endsWith(p))n=n.substring(0,n.indexOf(p)),this._applyStyleToElements(this._buildGridPadding(n),i),this._applyStyleToElement(this._buildGridMargin(n));else{var r=i.pop();this._applyStyleToElements(this._buildCSS(n),i),this._applyStyleToElements(this._buildCSS(),[r])}},e.prototype._buildGridPadding=function(t){var e="0px",n="0px";return"rtl"===this._directionality.value?n=t:e=t,{padding:"0px "+e+" "+t+" "+n}},e.prototype._buildGridMargin=function(t){var e="0px",n="0px";return"rtl"===this._directionality.value?n="-"+t:e="-"+t,{margin:"0px "+e+" -"+t+" "+n}},e.prototype._buildCSS=function(t){var e;void 0===t&&(t=null);var n={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};switch(this._layout){case"column":e="margin-bottom";break;case"column-reverse":e="margin-top";break;case"row":e="rtl"===this._directionality.value?"margin-left":"margin-right";break;case"row-reverse":e="rtl"===this._directionality.value?"margin-right":"margin-left";break;default:e="rtl"===this._directionality.value?"margin-left":"margin-right"}return n[e]=t,n},e}(r.BaseDirective),p=" grid";function f(t){for(var e=[],n=1;n-1?"column":"row",r=u(i)?"max-width":"max-height",o=u(i)?"min-width":"min-height",a=String(n).indexOf("calc")>-1,l=a||"auto"==n,s=String(n).indexOf("%")>-1&&!a,c=String(n).indexOf("px")>-1||String(n).indexOf("em")>-1||String(n).indexOf("vw")>-1||String(n).indexOf("vh")>-1,d=String(n).indexOf("px")>-1||l,p=a||c;e="0"==e?0:e;var h=!(t="0"==t?0:t)&&!e,m={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(n||""){case"":n="row"===i?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":t=0,n="auto";break;case"grow":n="100%";break;case"noshrink":e=0,n="auto";break;case"auto":break;case"none":t=0,e=0,n="auto";break;default:p||s||isNaN(n)||(n+="%"),"0%"===n&&(p=!0),"0px"===n&&(n="0%"),m=f(v,a?{"flex-grow":t,"flex-shrink":e,"flex-basis":p?n:"100%"}:{flex:t+" "+e+" "+(p?n:"100%")})}return m.flex||m["flex-grow"]||(m=f(v,a?{"flex-grow":t,"flex-shrink":e,"flex-basis":n}:{flex:t+" "+e+" "+n})),"0%"!==n&&"0px"!==n&&"0.000000001px"!==n&&"auto"!==n&&(m[o]=h||d&&t?n:null,m[r]=h||!l&&e?n:null),m[o]||m[r]?this._layout&&this._layout.wrap&&(m[a?"flex-basis":"flex"]=m[r]?a?m[r]:t+" "+e+" "+m[r]:a?m[o]:t+" "+e+" "+m[o]):m=f(v,a?{"flex-grow":t,"flex-shrink":e,"flex-basis":n}:{flex:t+" "+e+" "+n}),f(m,{"box-sizing":"border-box"})},e}(r.BaseDirective),m=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"order",{set:function(t){this._cacheInput("order",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderXs",{set:function(t){this._cacheInput("orderXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderSm",{set:function(t){this._cacheInput("orderSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderMd",{set:function(t){this._cacheInput("orderMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderLg",{set:function(t){this._cacheInput("orderLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderXl",{set:function(t){this._cacheInput("orderXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderGtXs",{set:function(t){this._cacheInput("orderGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderGtSm",{set:function(t){this._cacheInput("orderGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderGtMd",{set:function(t){this._cacheInput("orderGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderGtLg",{set:function(t){this._cacheInput("orderGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderLtSm",{set:function(t){this._cacheInput("orderLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderLtMd",{set:function(t){this._cacheInput("orderLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderLtLg",{set:function(t){this._cacheInput("orderLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderLtXl",{set:function(t){this._cacheInput("orderLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.order||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("order","0",function(t){e._updateWithValue(t.value)})},e.prototype._updateWithValue=function(t){t=t||this._queryInput("order")||"0",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t))},e.prototype._buildCSS=function(t){void 0===t&&(t="");var e=parseInt(t,10);return{order:isNaN(e)?0:e}},e}(r.BaseDirective),v=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,o)||this;return a._container=i,a._directionality=r,a._layout={direction:"row",wrap:!1},a._directionWatcher=a._directionality.change.subscribe(a._updateWithValue.bind(a)),a.watchParentFlow(),a}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"offset",{set:function(t){this._cacheInput("offset",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetXs",{set:function(t){this._cacheInput("offsetXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetSm",{set:function(t){this._cacheInput("offsetSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetMd",{set:function(t){this._cacheInput("offsetMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetLg",{set:function(t){this._cacheInput("offsetLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetXl",{set:function(t){this._cacheInput("offsetXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetLtSm",{set:function(t){this._cacheInput("offsetLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetLtMd",{set:function(t){this._cacheInput("offsetLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetLtLg",{set:function(t){this._cacheInput("offsetLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetLtXl",{set:function(t){this._cacheInput("offsetLtXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetGtXs",{set:function(t){this._cacheInput("offsetGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetGtSm",{set:function(t){this._cacheInput("offsetGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetGtMd",{set:function(t){this._cacheInput("offsetGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetGtLg",{set:function(t){this._cacheInput("offsetGtLg",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.offset||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe(),this._directionWatcher&&this._directionWatcher.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("offset",0,function(t){e._updateWithValue(t.value)})},e.prototype.watchParentFlow=function(){var t=this;this._container&&(this._layoutWatcher=this._container.layout$.subscribe(function(e){t._onLayoutChange(e)}))},e.prototype._onLayoutChange=function(t){this._layout=t||this._layout||{direction:"row",wrap:!1},this._updateWithValue()},e.prototype._updateWithValue=function(t){t=t||this._queryInput("offset")||0,this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t))},e.prototype._buildCSS=function(t){var e;void 0===t&&(t="");var n=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||n||isNaN(+t)||(t+="%");var i="rtl"===this._directionality.value?"margin-right":"margin-left";return u(this._getFlexFlowDirection(this.parentElement,!0))?((e={})[i]=""+t,e):{"margin-top":""+t}},e}(r.BaseDirective),g=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"align",{set:function(t){this._cacheInput("align",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXs",{set:function(t){this._cacheInput("alignXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignSm",{set:function(t){this._cacheInput("alignSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignMd",{set:function(t){this._cacheInput("alignMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLg",{set:function(t){this._cacheInput("alignLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXl",{set:function(t){this._cacheInput("alignXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtSm",{set:function(t){this._cacheInput("alignLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtMd",{set:function(t){this._cacheInput("alignLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtLg",{set:function(t){this._cacheInput("alignLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtXl",{set:function(t){this._cacheInput("alignLtXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtXs",{set:function(t){this._cacheInput("alignGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtSm",{set:function(t){this._cacheInput("alignGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtMd",{set:function(t){this._cacheInput("alignGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtLg",{set:function(t){this._cacheInput("alignGtLg",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.align||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("align","stretch",function(t){e._updateWithValue(t.value)})},e.prototype._updateWithValue=function(t){t=t||this._queryInput("align")||"stretch",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t))},e.prototype._buildCSS=function(t){void 0===t&&(t="");var e={};switch(t){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e},e}(r.BaseDirective),_={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},y=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.elRef=n,r._applyStyleToElement(_),r}return Object(i.__extends)(e,t),e}(r.BaseDirective),b=function(t){function e(e,n,i,r){var o=t.call(this,e,n,r)||this;return o._layout="row",i&&(o._layoutWatcher=i.layout$.subscribe(o._onLayoutChange.bind(o))),o}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"align",{set:function(t){this._cacheInput("align",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXs",{set:function(t){this._cacheInput("alignXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignSm",{set:function(t){this._cacheInput("alignSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignMd",{set:function(t){this._cacheInput("alignMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLg",{set:function(t){this._cacheInput("alignLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXl",{set:function(t){this._cacheInput("alignXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtXs",{set:function(t){this._cacheInput("alignGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtSm",{set:function(t){this._cacheInput("alignGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtMd",{set:function(t){this._cacheInput("alignGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtLg",{set:function(t){this._cacheInput("alignGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtSm",{set:function(t){this._cacheInput("alignLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtMd",{set:function(t){this._cacheInput("alignLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtLg",{set:function(t){this._cacheInput("alignLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtXl",{set:function(t){this._cacheInput("alignLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.align||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("align","start stretch",function(t){e._updateWithValue(t.value)})},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},e.prototype._updateWithValue=function(t){t=t||this._queryInput("align")||"start stretch",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t)),this._allowStretching(t,this._layout?this._layout:"row")},e.prototype._onLayoutChange=function(t){var e=this;this._layout=(t.direction||"").toLowerCase(),l.find(function(t){return t===e._layout})||(this._layout="row");var n=this._queryInput("align")||"start stretch";this._mqActivation&&(n=this._mqActivation.activatedInput),this._allowStretching(n,this._layout||"row")},e.prototype._buildCSS=function(t){void 0===t&&(t="");var e={},n=t.split(" "),i=n[1];switch(n[0]){case"center":e["justify-content"]="center";break;case"space-around":e["justify-content"]="space-around";break;case"space-between":e["justify-content"]="space-between";break;case"space-evenly":e["justify-content"]="space-evenly";break;case"end":case"flex-end":e["justify-content"]="flex-end";break;case"start":case"flex-start":default:e["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":e["align-items"]=e["align-content"]="flex-start";break;case"baseline":e["align-items"]="baseline";break;case"center":e["align-items"]=e["align-content"]="center";break;case"end":case"flex-end":e["align-items"]=e["align-content"]="flex-end";break;case"stretch":default:e["align-items"]=e["align-content"]="stretch"}return f(e,{display:"flex","flex-direction":this._layout||"row","box-sizing":"border-box"})},e.prototype._allowStretching=function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),"stretch"==t.split(" ")[1]&&this._applyStyleToElement({"box-sizing":"border-box","max-width":u(e)?null:"100%","max-height":u(e)?"100%":null})},e}(r.BaseDirective),C=function(){return function(){}}()},"26FU":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("mrSG"),r=n("K9Ia"),o=n("8g8A"),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.a)},"2Bdj":function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},"2Q+G":function(t,e,n){"use strict";var i=n("CcnG"),r=n("mVsa"),o=n("Ip0R"),a=n("eDkP"),l=n("Fzqc"),s=n("Wf4p"),u=n("dWZg"),c=n("4c35"),d=n("qAlS"),p=n("wFw1"),f=n("lLAP");e.MatMenuModuleNgFactory=i.\u0275cmf(r.MatMenuModule,[],function(t){return i.\u0275mod([i.\u0275mpd(512,i.ComponentFactoryResolver,i.\u0275CodegenComponentFactoryResolver,[[8,[]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i.\u0275mpd(4608,o.NgLocalization,o.NgLocaleLocalization,[i.LOCALE_ID,[2,o.\u0275angular_packages_common_common_a]]),i.\u0275mpd(4608,a.Overlay,a.Overlay,[a.ScrollStrategyOptions,a.OverlayContainer,i.ComponentFactoryResolver,a.OverlayPositionBuilder,a.OverlayKeyboardDispatcher,i.Injector,i.NgZone,o.DOCUMENT,l.Directionality]),i.\u0275mpd(5120,a.\u0275c,a.\u0275d,[a.Overlay]),i.\u0275mpd(5120,r.MAT_MENU_SCROLL_STRATEGY,r.\u0275d23,[a.Overlay]),i.\u0275mpd(1073742336,o.CommonModule,o.CommonModule,[]),i.\u0275mpd(1073742336,l.BidiModule,l.BidiModule,[]),i.\u0275mpd(1073742336,s.MatCommonModule,s.MatCommonModule,[[2,s.MATERIAL_SANITY_CHECKS]]),i.\u0275mpd(1073742336,u.PlatformModule,u.PlatformModule,[]),i.\u0275mpd(1073742336,s.MatRippleModule,s.MatRippleModule,[]),i.\u0275mpd(1073742336,c.PortalModule,c.PortalModule,[]),i.\u0275mpd(1073742336,d.ScrollDispatchModule,d.ScrollDispatchModule,[]),i.\u0275mpd(1073742336,a.OverlayModule,a.OverlayModule,[]),i.\u0275mpd(1073742336,r.MatMenuModule,r.MatMenuModule,[])])});var h=i.\u0275crt({encapsulation:2,styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:2px;outline:0}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}@media screen and (-ms-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:0;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}@media screen and (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{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%)}.mat-menu-panel.ng-animating .mat-menu-item-submenu-trigger{pointer-events:none}button.mat-menu-item{width:100%}.mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],data:{animation:[{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.01, 0.01)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:2,steps:[{type:11,selector:".mat-menu-content",animation:{type:6,styles:{opacity:0},offset:null},options:null},{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 0.5)"},offset:null},timings:"100ms linear"},{type:3,steps:[{type:11,selector:".mat-menu-content",animation:{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"400ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null},{type:4,styles:{type:6,styles:{transform:"scale(1, 1)"},offset:null},timings:"300ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null}],options:null},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"150ms 50ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function m(t){return i.\u0275vid(0,[(t()(),i.\u0275eld(0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.start"],[null,"@transformMenu.done"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==r._handleKeydown(n)&&i),"click"===e&&(i=!1!==r.closed.emit("click")&&i),"@transformMenu.start"===e&&(i=0!=(r._isAnimating=!0)&&i),"@transformMenu.done"===e&&(i=!1!==r._onAnimationDone(n)&&i),i},null,null)),i.\u0275did(1,278528,null,0,o.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),i.\u0275eld(2,0,null,null,1,"div",[["class","mat-menu-content"]],null,null,null,null,null)),i.\u0275ncd(null,0)],function(t,e){t(e,1,0,"mat-menu-panel",e.component._classList)},function(t,e){t(e,0,0,e.component._panelAnimationState)})}function v(t){return i.\u0275vid(2,[i.\u0275qud(402653184,1,{templateRef:0}),(t()(),i.\u0275and(0,[[1,2]],null,0,null,m))],null,null)}function g(t){return i.\u0275vid(0,[(t()(),i.\u0275eld(0,0,null,null,4,"mat-menu",[],null,null,null,v,h)),i.\u0275prd(6144,null,r.\u0275f23,null,[r.MatMenu]),i.\u0275did(2,1294336,null,2,r.MatMenu,[i.ElementRef,i.NgZone,r.MAT_MENU_DEFAULT_OPTIONS],null,null),i.\u0275qud(603979776,1,{items:1}),i.\u0275qud(335544320,2,{lazyContent:0})],function(t,e){t(e,2,0)},null)}e.RenderType_MatMenu=h,e.View_MatMenu_0=v,e.View_MatMenu_Host_0=g,e.MatMenuNgFactory=i.\u0275ccf("mat-menu",r.MatMenu,g,{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:"class",classList:"classList"},{closed:"closed",close:"close"},["*"]);var _=i.\u0275crt({encapsulation:2,styles:[],data:{}});function y(t){return i.\u0275vid(2,[i.\u0275ncd(null,0),(t()(),i.\u0275eld(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),i.\u0275did(2,212992,null,0,s.MatRipple,[i.ElementRef,i.NgZone,u.Platform,[2,s.MAT_RIPPLE_GLOBAL_OPTIONS],[2,p.ANIMATION_MODULE_TYPE]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(t,e){t(e,1,0,i.\u0275nov(e,2).unbounded)})}function b(t){return i.\u0275vid(0,[(t()(),i.\u0275eld(0,0,null,null,1,"div",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i.\u0275nov(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==i.\u0275nov(t,1)._handleMouseEnter()&&r),r},y,_)),i.\u0275did(1,180224,null,0,r.MatMenuItem,[i.ElementRef,o.DOCUMENT,f.FocusMonitor,[2,r.\u0275f23]],null,null)],null,function(t,e){t(e,0,0,i.\u0275nov(e,1)._highlighted,i.\u0275nov(e,1)._triggersSubmenu,i.\u0275nov(e,1)._getTabIndex(),i.\u0275nov(e,1).disabled.toString(),i.\u0275nov(e,1).disabled||null)})}e.RenderType_MatMenuItem=_,e.View_MatMenuItem_0=y,e.View_MatMenuItem_Host_0=b,e.MatMenuItemNgFactory=i.\u0275ccf("[mat-menu-item]",r.MatMenuItem,b,{disabled:"disabled",disableRipple:"disableRipple"},{},["*"])},"2WpN":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("mrSG"),r=n("FFOo"),o=n("pugT");function a(t){return function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.callback))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new o.a(n)),i}return i.__extends(e,t),e}(r.a)},"2ePl":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"3U0i":function(t,e,n){"use strict";function i(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}n.d(e,"a",function(){return r}),i.prototype=Object.create(Error.prototype);var r=i},"3fWJ":function(t,e,n){"use strict";function i(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}n.d(e,"a",function(){return r}),i.prototype=Object.create(Error.prototype);var r=i},"3pJQ":function(t,e,n){"use strict";n.r(e),n.d(e,"GridModule",function(){return _}),n.d(e,"\u0275b",function(){return s}),n.d(e,"\u0275c",function(){return u}),n.d(e,"\u0275d",function(){return c}),n.d(e,"\u0275e",function(){return d}),n.d(e,"\u0275f",function(){return p}),n.d(e,"\u0275g",function(){return f}),n.d(e,"\u0275h",function(){return h}),n.d(e,"\u0275i",function(){return m}),n.d(e,"\u0275a",function(){return a}),n.d(e,"\u0275j",function(){return v}),n.d(e,"\u0275k",function(){return g});var i=n("mrSG"),r=n("OzfB"),o=n("n6gG"),a=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(i.__extends)(e,t),Object.defineProperty(e.prototype,"align",{set:function(t){this._cacheInput("align",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXs",{set:function(t){this._cacheInput("alignXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignSm",{set:function(t){this._cacheInput("alignSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignMd",{set:function(t){this._cacheInput("alignMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLg",{set:function(t){this._cacheInput("alignLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXl",{set:function(t){this._cacheInput("alignXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtXs",{set:function(t){this._cacheInput("alignGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtSm",{set:function(t){this._cacheInput("alignGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtMd",{set:function(t){this._cacheInput("alignGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtLg",{set:function(t){this._cacheInput("alignGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtSm",{set:function(t){this._cacheInput("alignLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtMd",{set:function(t){this._cacheInput("alignLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtLg",{set:function(t){this._cacheInput("alignLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtXl",{set:function(t){this._cacheInput("alignLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.align||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("align","stretch",function(t){e._updateWithValue(t.value)}),this._updateWithValue()},e.prototype._updateWithValue=function(t){t=t||this._queryInput("align")||"stretch",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t))},e.prototype._buildCSS=function(t){void 0===t&&(t="");var e={},n=t.split(" "),i=n[1];switch(n[0]){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]="stretch"}switch(i){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]="stretch"}return e},e}(r.BaseDirective);function l(t){for(var e=[],n=1;n0?q:z)(t)},W=D,X={},K={}.toString,Z=function(t){return K.call(t).slice(8,-1)},Q=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==Z(t)?t.split(""):Object(t)},$=function(t){return Q(n(t))},J=Math.min,tt=Math.max,et=Math.min,nt=function(t,e,n){for(var i,r=$(t),o=(i=r.length)>0?J(Y(i),9007199254740991):0,a=function(t,e){return(t=Y(t))<0?tt(t+e,0):et(t,e)}(n,o);o>a;a++)if(a in r&&r[a]===e)return a||0;return-1},it=f("IE_PROTO"),rt=function(t,e){var n,i=$(t),r=0,a=[];for(n in i)n!=it&&o(i,n)&&a.push(n);for(;e.length>r;)o(i,n=e[r++])&&(~nt(a,n)||a.push(n));return a},ot="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),at=Object.keys||function(t){return rt(t,ot)},lt=w?Object.defineProperties:function(t,e){b(t);for(var n,i=at(e),r=i.length,o=0;r>o;)R.f(t,n=i[o++],e[n]);return t},st=a.document&&document.documentElement,ut=f("IE_PROTO"),ct=function(){},dt=function(){var t,e=O("iframe"),n=ot.length;for(e.style.display="none",st.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("