UNPKG

@angular/material

Version:
9 lines 54.6 kB
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/platform-browser"),require("@angular/cdk/coercion"),require("rxjs/Subject"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/rxjs"),require("@angular/forms"),require("@angular/animations"),require("rxjs/observable/fromEvent"),require("rxjs/observable/merge"),require("rxjs/observable/of")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/a11y","@angular/cdk/bidi","@angular/platform-browser","@angular/cdk/coercion","rxjs/Subject","@angular/cdk/keycodes","@angular/common","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/rxjs","@angular/forms","@angular/animations","rxjs/observable/fromEvent","rxjs/observable/merge","rxjs/observable/of"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.autocomplete=e.ng.material.autocomplete||{}),e.ng.core,e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.platformBrowser,e.ng.cdk.coercion,e.Rx,e.ng.cdk.keycodes,e.ng.common,e.ng.cdk.scrolling,e.ng.cdk.platform,e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.cdk.rxjs,e.ng.forms,e.ng.animations,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable)}(this,function(e,t,n,o,r,i,a,l,s,c,p,u,d,m,h,f,g,y,_){"use strict";function b(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function v(e,t){return Error('The "'+e+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+t.toLowerCase()+'" element.')}function C(e){return e||new U}function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var o=0,r=t;o<r.length;o++){var i=r[o];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}return e}function D(e,t){for(var n=Array(e),o=0;o<e;o++)n[o]=t(o);return n}function R(e){window.getComputedStyle(e).getPropertyValue("opacity")}function O(e,t,n){var o=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(o*o+r*r)}function P(){return Error("Placeholder attribute and child element were both specified.")}function k(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}function E(){return Error("md-form-field must contain a MdFormFieldControl. Did you forget to add mdInput to the native input or textarea element?")}function x(e){return function(){return e.scrollStrategies.reposition()}}function I(){return Error("Attempting to open an undefined instance of `md-autocomplete`. Make sure that the id passed to the `mdAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},A=function(){function e(){}return e}();A.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",A.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",A.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",A.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var T=function(){function e(){}return e}();T.COMPLEX="375ms",T.ENTERING="225ms",T.EXITING="195ms";var S=new t.InjectionToken("md-compatibility-mode"),F=function(){function e(e,t){if(!e)throw v("mat",t.nativeElement.nodeName)}return e}();F.decorators=[{type:t.Directive,args:[{selector:"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matCellDef],\n [matColumnDef],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matHeaderCellDef],\n [matHeaderRowDef],\n [matLine],\n [matRowDef],\n [matStepLabel],\n [matStepperNext],\n [matStepperPrevious],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n [matInput],\n [matPrefix],\n [matSuffix],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-header-row,\n mat-hint,\n mat-horizontal-stepper,\n mat-icon,\n mat-input-container,\n mat-form-field,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-step,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar,\n mat-vertical-stepper"}]}],F.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[S]}]},{type:t.ElementRef}]};var L=function(){function e(e,t){if(e)throw v("md",t.nativeElement.nodeName)}return e}();L.decorators=[{type:t.Directive,args:[{selector:"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdCellDef],\n [mdColumnDef],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdHeaderCellDef],\n [mdHeaderRowDef],\n [mdLine],\n [mdRowDef],\n [mdStepLabel],\n [mdStepperNext],\n [mdStepperPrevious],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n [mdInput],\n [mdPrefix],\n [mdSuffix],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-header-row,\n md-hint,\n md-horizontal-stepper,\n md-icon,\n md-input-container,\n md-form-field,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-step,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar,\n md-vertical-stepper"}]}],L.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[S]}]},{type:t.ElementRef}]};var N=function(){function e(){}return e}();N.decorators=[{type:t.NgModule,args:[{declarations:[F,L],exports:[F,L]}]}],N.ctorParameters=function(){return[]};var j=function(){function e(){}return e}();j.decorators=[{type:t.NgModule,args:[{providers:[{provide:S,useValue:!0}]}]}],j.ctorParameters=function(){return[]};var V=new t.InjectionToken("md-sanity-checks"),W=function(){function e(e,n){this._document=e,this._hasDoneGlobalChecks=!1,n&&!this._hasDoneGlobalChecks&&e&&t.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return e.prototype._checkDoctype=function(){this._document.doctype||console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},e.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e),"none"!==getComputedStyle(e).display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}},e}();W.decorators=[{type:t.NgModule,args:[{imports:[N,o.BidiModule],exports:[N,o.BidiModule],providers:[{provide:V,useValue:!0}]}]}],W.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[V]}]}]};var U=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,o=this._listeners;n<o.length;n++){(0,o[n])(e,t)}},e.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},e}();U.decorators=[{type:t.Injectable}],U.ctorParameters=function(){return[]};var Y=(new t.Optional,new t.SkipSelf,new t.InjectionToken("MAT_DATE_LOCALE")),H={provide:Y,useExisting:t.LOCALE_ID},z=function(){function e(){this._localeChanges=new a.Subject}return Object.defineProperty(e.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),e.prototype.getYear=function(e){},e.prototype.getMonth=function(e){},e.prototype.getDate=function(e){},e.prototype.getDayOfWeek=function(e){},e.prototype.getMonthNames=function(e){},e.prototype.getDateNames=function(){},e.prototype.getDayOfWeekNames=function(e){},e.prototype.getYearName=function(e){},e.prototype.getFirstDayOfWeek=function(){},e.prototype.getNumDaysInMonth=function(e){},e.prototype.clone=function(e){},e.prototype.createDate=function(e,t,n){},e.prototype.today=function(){},e.prototype.parse=function(e,t){},e.prototype.format=function(e,t){},e.prototype.addCalendarYears=function(e,t){},e.prototype.addCalendarMonths=function(e,t){},e.prototype.addCalendarDays=function(e,t){},e.prototype.toIso8601=function(e){},e.prototype.fromIso8601=function(e){},e.prototype.isDateInstance=function(e){},e.prototype.isValid=function(e){},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.compareDate=function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)},e.prototype.sameDate=function(e,t){return e&&t?!this.compareDate(e,t):e==t},e.prototype.clampDate=function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e},e}(),q="undefined"!=typeof Intl,G={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},B=D(31,function(e){return String(e+1)}),J={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,X=function(e){function t(t){var n=e.call(this)||this;return n.useUtcForDisplay=!0,e.prototype.setLocale.call(n,t),n}return b(t,e),t.prototype.getYear=function(e){return e.getFullYear()},t.prototype.getMonth=function(e){return e.getMonth()},t.prototype.getDate=function(e){return e.getDate()},t.prototype.getDayOfWeek=function(e){return e.getDay()},t.prototype.getMonthNames=function(e){var t=this;if(q){var n=new Intl.DateTimeFormat(this.locale,{month:e});return D(12,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,e,1)))})}return G[e]},t.prototype.getDateNames=function(){var e=this;if(q){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return D(31,function(n){return e._stripDirectionalityCharacters(t.format(new Date(2017,0,n+1)))})}return B},t.prototype.getDayOfWeekNames=function(e){var t=this;if(q){var n=new Intl.DateTimeFormat(this.locale,{weekday:e});return D(7,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,0,e+1)))})}return J[e]},t.prototype.getYearName=function(e){if(q){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(t.format(e))}return String(this.getYear(e))},t.prototype.getFirstDayOfWeek=function(){return 0},t.prototype.getNumDaysInMonth=function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))},t.prototype.clone=function(e){return this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e))},t.prototype.createDate=function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var o=this._createDateWithOverflow(e,t,n);if(o.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return o},t.prototype.today=function(){return new Date},t.prototype.parse=function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},t.prototype.format=function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(q){this.useUtcForDisplay&&(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t=w({},t,{timeZone:"utc"}));var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(n.format(e))}return this._stripDirectionalityCharacters(e.toDateString())},t.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},t.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},t.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)},t.prototype.toIso8601=function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")},t.prototype.fromIso8601=function(e){if(Z.test(e)){var t=new Date(e);if(this.isValid(t))return t}return null},t.prototype.isDateInstance=function(e){return e instanceof Date},t.prototype.isValid=function(e){return!isNaN(e.getTime())},t.prototype._createDateWithOverflow=function(e,t,n){var o=new Date(e,t,n);return e>=0&&e<100&&o.setFullYear(this.getYear(o)-1900),o},t.prototype._2digit=function(e){return("00"+e).slice(-2)},t.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},t}(z);X.decorators=[{type:t.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Y]}]}]};var K=new t.InjectionToken("md-date-formats"),$={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Q=function(){function e(){}return e}();Q.decorators=[{type:t.NgModule,args:[{providers:[{provide:z,useClass:X},H]}]}],Q.ctorParameters=function(){return[]};var ee=function(){function e(){}return e}();ee.decorators=[{type:t.NgModule,args:[{imports:[Q],providers:[{provide:K,useValue:$}]}]}],ee.ctorParameters=function(){return[]};var te=(new t.InjectionToken("md-error-global-options"),function(e){function n(){var n=e.call(this)||this;return n._hammer="undefined"!=typeof window?window.Hammer:null,n.events=n._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!n._hammer&&t.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),n}return b(n,e),n.prototype.buildHammer=function(e){var t=new this._hammer(e),n=new this._hammer.Pan,o=new this._hammer.Swipe,r=new this._hammer.Press,i=this._createRecognizer(n,{event:"slide",threshold:0},o),a=this._createRecognizer(r,{event:"longpress",time:500});return n.recognizeWith(o),t.add([o,r,n,i,a]),t},n.prototype._createRecognizer=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=new e.constructor(t);return n.push(e),n.forEach(function(e){return r.recognizeWith(e)}),r},n}(r.HammerGestureConfig));te.decorators=[{type:t.Injectable}],te.ctorParameters=function(){return[]};var ne=function(){function e(){}return e}();ne.decorators=[{type:t.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],ne.ctorParameters=function(){return[]};var oe=function(){function e(){}return e}();oe.decorators=[{type:t.NgModule,args:[{imports:[W],exports:[ne,W],declarations:[ne]}]}],oe.ctorParameters=function(){return[]};var re={};re.FADING_IN=0,re.VISIBLE=1,re.FADING_OUT=2,re.HIDDEN=3,re[re.FADING_IN]="FADING_IN",re[re.VISIBLE]="VISIBLE",re[re.FADING_OUT]="FADING_OUT",re[re.HIDDEN]="HIDDEN";var ie=function(){function e(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=re.HIDDEN}return e.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},e}(),ae=function(){function e(e,t,n,o){this._ngZone=t,this._ruler=n,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,o.isBrowser&&(this._containerElement=e.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown.bind(this)),this._triggerEvents.set("mouseup",this.onMouseup.bind(this)),this._triggerEvents.set("mouseleave",this.onMouseLeave.bind(this)),this.setTriggerElement(this._containerElement))}return e.prototype.fadeInRipple=function(e,t,n){var o=this;void 0===n&&(n={});var r=this._containerElement.getBoundingClientRect();if(n.centered)e=r.left+r.width/2,t=r.top+r.height/2;else{var i=this._ruler.getViewportScrollPosition();e-=i.left,t-=i.top}var a=n.radius||O(e,t,r),l=1/(n.speedFactor||1)*450,s=e-r.left,c=t-r.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",p.style.backgroundColor=n.color||null,p.style.transitionDuration=l+"ms",this._containerElement.appendChild(p),R(p),p.style.transform="scale(1)";var u=new ie(this,p,n);return u.state=re.FADING_IN,this._activeRipples.add(u),this.runTimeoutOutsideZone(function(){u.state=re.VISIBLE,n.persistent||o._isMousedown||u.fadeOut()},l),u},e.prototype.fadeOutRipple=function(e){if(this._activeRipples.delete(e)){var t=e.element;t.style.transitionDuration="400ms",t.style.opacity="0",e.state=re.FADING_OUT,this.runTimeoutOutsideZone(function(){e.state=re.HIDDEN,t.parentNode.removeChild(t)},400)}},e.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(e){return e.fadeOut()})},e.prototype.setTriggerElement=function(e){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e)}),e&&this._ngZone.runOutsideAngular(function(){t._triggerEvents.forEach(function(t,n){return e.addEventListener(n,t)})}),this._triggerElement=e},e.prototype.onMousedown=function(e){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(e.pageX,e.pageY,this.rippleConfig))},e.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(e){e.config.persistent||e.state!==re.VISIBLE||e.fadeOut()})},e.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},e.prototype.runTimeoutOutsideZone=function(e,t){void 0===t&&(t=0),this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e}(),le=new t.InjectionToken("md-ripple-global-options"),se=function(){function e(e,t,n,o,r){this.radius=0,this.speedFactor=1,this._rippleRenderer=new ae(e,t,n,o),this._globalOptions=r||{},this._updateRippleRenderer()}return Object.defineProperty(e.prototype,"_matRippleTrigger",{get:function(){return this.trigger},set:function(e){this.trigger=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleCentered",{get:function(){return this.centered},set:function(e){this.centered=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleDisabled",{get:function(){return this.disabled},set:function(e){this.disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleRadius",{get:function(){return this.radius},set:function(e){this.radius=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleSpeedFactor",{get:function(){return this.speedFactor},set:function(e){this.speedFactor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleUnbounded",{get:function(){return this.unbounded},set:function(e){this.unbounded=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.trigger||e._matRippleTrigger)&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},e.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},e.prototype.launch=function(e,t,n){return void 0===n&&(n=this.rippleConfig),this._rippleRenderer.fadeInRipple(e,t,n)},e.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(e.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),e.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},e}();se.decorators=[{type:t.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple, matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],se.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone},{type:c.ViewportRuler},{type:p.Platform},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[le]}]}]},se.propDecorators={trigger:[{type:t.Input,args:["mdRippleTrigger"]}],centered:[{type:t.Input,args:["mdRippleCentered"]}],disabled:[{type:t.Input,args:["mdRippleDisabled"]}],radius:[{type:t.Input,args:["mdRippleRadius"]}],speedFactor:[{type:t.Input,args:["mdRippleSpeedFactor"]}],color:[{type:t.Input,args:["mdRippleColor"]}],unbounded:[{type:t.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:t.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:t.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:t.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:t.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:t.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:t.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:t.Input,args:["matRippleUnbounded"]}]};var ce=function(){function e(){}return e}();ce.decorators=[{type:t.NgModule,args:[{imports:[W,p.PlatformModule,c.ScrollDispatchModule],exports:[se,W],declarations:[se],providers:[c.VIEWPORT_RULER_PROVIDER]}]}],ce.ctorParameters=function(){return[]};var pe=function(){function e(){this.state="unchecked",this.disabled=!1}return e}();pe.decorators=[{type:t.Component,args:[{encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"md-pseudo-checkbox, mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],pe.ctorParameters=function(){return[]},pe.propDecorators={state:[{type:t.Input}],disabled:[{type:t.Input}]};var ue=function(){function e(){}return e}();ue.decorators=[{type:t.NgModule,args:[{exports:[pe],declarations:[pe]}]}],ue.ctorParameters=function(){return[]};var de=function(){function e(){}return e}(),me=function(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=e.apply(this,t)||this;return o._disabled=!1,o}return b(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}(de),he=0,fe=function(e){function t(){var t=e.apply(this,arguments)||this;return t._labelId="mat-optgroup-label-"+he++,t}return b(t,e),t}(me);fe.decorators=[{type:t.Component,args:[{selector:"md-optgroup, mat-optgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="md-option, mat-option"></ng-content>',encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],fe.ctorParameters=function(){return[]},fe.propDecorators={label:[{type:t.Input}]};var ge=0,ye=function(){function e(e,t){void 0===t&&(t=!1),this.source=e,this.isUserInput=t}return e}(),_e=function(){function e(e,n,o){this._element=e,this._changeDetectorRef=n,this.group=o,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+ge++,this.onSelectionChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){e!==this._multiple&&(this._multiple=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),e.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.focus=function(){var e=this._getHostElement();"function"==typeof e.focus&&e.focus()},e.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},e.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},e.prototype.getLabel=function(){return this.viewValue},e.prototype._handleKeydown=function(e){e.keyCode!==l.ENTER&&e.keyCode!==l.SPACE||(this._selectViaInteraction(),e.preventDefault())},e.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._element.nativeElement},e.prototype._emitSelectionChangeEvent=function(e){void 0===e&&(e=!1),this.onSelectionChange.emit(new ye(this,e))},e.countGroupLabelsBeforeOption=function(e,t,n){if(n.length){for(var o=t.toArray(),r=n.toArray(),i=0,a=0;a<e+1;a++)o[a].group&&o[a].group===r[i]&&i++;return i}return 0},e}();_e.decorators=[{type:t.Component,args:[{selector:"md-option, mat-option",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<span *ngIf="multiple"><mat-pseudo-checkbox class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox></span><ng-content></ng-content><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:S,useValue:!0}]}]}],_e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:fe,decorators:[{type:t.Optional}]}]},_e.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}],onSelectionChange:[{type:t.Output}]};var be=function(){function e(){}return e}();be.decorators=[{type:t.NgModule,args:[{imports:[ce,s.CommonModule,ue],exports:[_e,fe],declarations:[_e,fe]}]}],be.ctorParameters=function(){return[]};var ve=new t.InjectionToken("md-placeholder-global-options"),Ce=function(){function e(){}return e}();Ce.decorators=[{type:t.NgModule,args:[{imports:[n.A11yModule],exports:[n.A11yModule]}]}],Ce.ctorParameters=function(){return[]};var we=0,De=function(){function e(){this.id="mat-error-"+we++}return e}();De.decorators=[{type:t.Directive,args:[{selector:"md-error, mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],De.ctorParameters=function(){return[]},De.propDecorators={id:[{type:t.Input}]};var Re=function(){function e(){}return e.prototype.setDescribedByIds=function(e){},e.prototype.focus=function(){},e}(),Oe=0,Pe=function(){function e(){this.align="start",this.id="mat-hint-"+Oe++}return e}();Pe.decorators=[{type:t.Directive,args:[{selector:"md-hint, mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],Pe.ctorParameters=function(){return[]},Pe.propDecorators={align:[{type:t.Input}],id:[{type:t.Input}]};var ke=function(){function e(){}return e}();ke.decorators=[{type:t.Directive,args:[{selector:"md-placeholder, mat-placeholder"}]}],ke.ctorParameters=function(){return[]};var Ee=function(){function e(){}return e}();Ee.decorators=[{type:t.Directive,args:[{selector:"[mdPrefix], [matPrefix]"}]}],Ee.ctorParameters=function(){return[]};var xe=function(){function e(){}return e}();xe.decorators=[{type:t.Directive,args:[{selector:"[mdSuffix], [matSuffix]"}]}],xe.ctorParameters=function(){return[]};var Ie=0,Me=function(){function e(e,t,n){this._elementRef=e,this._changeDetectorRef=t,this.color="primary",this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="md-hint-"+Ie++,this._placeholderOptions=n||{}, this.floatPlaceholder=this._placeholderOptions.float||"auto"}return Object.defineProperty(e.prototype,"dividerColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatPlaceholder&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canPlaceholderFloat",{get:function(){return"never"!==this._floatPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatPlaceholder",{get:function(){return this._floatPlaceholder},set:function(e){e!==this._floatPlaceholder&&(this._floatPlaceholder=e||this._placeholderOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),m.startWith.call(this._control.stateChanges,null).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()});var t=this._control.ngControl;t&&t.valueChanges&&t.valueChanges.subscribe(function(){e._changeDetectorRef.markForCheck()}),m.startWith.call(this._hintChildren.changes,null).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),m.startWith.call(this._errorChildren.changes,null).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},e.prototype.ngAfterContentChecked=function(){this._validateControlChild()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},e.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockPlaceholder=function(){var e=this;this._placeholder&&this._canPlaceholderFloat&&(this._showAlwaysAnimate=!0,this._floatPlaceholder="always",m.first.call(g.fromEvent(this._placeholder.nativeElement,"transitionend")).subscribe(function(){e._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw P()},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var e=this;if(this._hintChildren){var t,n;this._hintChildren.forEach(function(o){if("start"==o.align){if(t||e.hintLabel)throw k("start");t=o}else if("end"==o.align){if(n)throw k("end");n=o}})}},e.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},e.prototype._validateControlChild=function(){if(!this._control)throw E()},e}();Me.decorators=[{type:t.Component,args:[{selector:"md-input-container, mat-input-container, md-form-field, mat-form-field",template:'<div class="mat-input-wrapper mat-form-field-wrapper"><div class="mat-input-flex mat-form-field-flex" #connectionContainer><div class="mat-input-prefix mat-form-field-prefix" *ngIf="_prefixChildren.length"><ng-content select="[mdPrefix], [matPrefix]"></ng-content></div><div class="mat-input-infix mat-form-field-infix"><ng-content></ng-content><span class="mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"><label class="mat-input-placeholder mat-form-field-placeholder" [attr.for]="_control.id" [attr.aria-owns]="_control.id" [class.mat-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-form-field-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-float]="_canPlaceholderFloat" [class.mat-form-field-float]="_canPlaceholderFloat" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" #placeholder *ngIf="_hasPlaceholder()"><ng-content select="md-placeholder, mat-placeholder"></ng-content>{{_control.placeholder}} <span class="mat-placeholder-required mat-form-field-required-marker" aria-hidden="true" *ngIf="!hideRequiredMarker && _control.required">*</span></label></span></div><div class="mat-input-suffix mat-form-field-suffix" *ngIf="_suffixChildren.length"><ng-content select="[mdSuffix], [matSuffix]"></ng-content></div></div><div class="mat-input-underline mat-form-field-underline" #underline [class.mat-disabled]="_control.disabled"><span class="mat-input-ripple mat-form-field-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><div class="mat-input-subscript-wrapper mat-form-field-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="md-error, mat-error"></ng-content></div><div class="mat-input-hint-wrapper mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="md-hint:not([align=\'end\']), mat-hint:not([align=\'end\'])"></ng-content><div class="mat-input-hint-spacer mat-form-field-hint-spacer"></div><ng-content select="md-hint[align=\'end\'], mat-hint[align=\'end\']"></ng-content></div></div></div>',styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-float{display:block;transition:none}.mat-form-field-placeholder-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-placeholder{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}.mat-focused .mat-form-field-placeholder.mat-form-field-float,.mat-form-field-placeholder.mat-form-field-empty,.mat-form-field-placeholder.mat-form-field-float:not(.mat-form-field-empty){display:block}[dir=rtl] .mat-form-field-placeholder{transform-origin:100% 0;left:auto;right:0}.mat-form-field-placeholder:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-underline.mat-disabled{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;height:1px;top:0;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);visibility:hidden;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-focused .mat-form-field-underline .mat-form-field-ripple{height:2px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-placeholder-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block} .mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::placeholder{color:transparent!important}.mat-input-element::-moz-placeholder{color:transparent!important}.mat-input-element::-webkit-input-placeholder{color:transparent!important}.mat-input-element:-ms-input-placeholder{color:transparent!important}textarea.mat-input-element{resize:vertical;overflow:auto}"],animations:[f.trigger("transitionMessages",[f.state("enter",f.style({opacity:1,transform:"translateY(0%)"})),f.transition("void => enter",[f.style({opacity:0,transform:"translateY(-100%)"}),f.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])],host:{class:"mat-input-container mat-form-field","[class.mat-input-invalid]":"_control.errorState","[class.mat-form-field-invalid]":"_control.errorState","[class.mat-focused]":"_control.focused","[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")',"(click)":"_control.focus()"},encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush}]}],Me.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ve]}]}]},Me.propDecorators={color:[{type:t.Input}],dividerColor:[{type:t.Input}],hideRequiredMarker:[{type:t.Input}],hintLabel:[{type:t.Input}],floatPlaceholder:[{type:t.Input}],underlineRef:[{type:t.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:t.ViewChild,args:["connectionContainer"]}],_placeholder:[{type:t.ViewChild,args:["placeholder"]}],_control:[{type:t.ContentChild,args:[Re]}],_placeholderChild:[{type:t.ContentChild,args:[ke]}],_errorChildren:[{type:t.ContentChildren,args:[De]}],_hintChildren:[{type:t.ContentChildren,args:[Pe]}],_prefixChildren:[{type:t.ContentChildren,args:[Ee]}],_suffixChildren:[{type:t.ContentChildren,args:[xe]}]};var Ae=function(){function e(){}return e}();Ae.decorators=[{type:t.NgModule,args:[{declarations:[De,Pe,Me,ke,Ee,xe],imports:[s.CommonModule,p.PlatformModule],exports:[De,Pe,Me,ke,Ee,xe]}]}],Ae.ctorParameters=function(){return[]};var Te=0,Se=function(){function e(e,t){this.source=e,this.option=t}return e}(),Fe=function(){function e(e){this._changeDetectorRef=e,this.showPanel=!1,this.displayWith=null,this.optionSelected=new t.EventEmitter,this.id="md-autocomplete-"+Te++}return e.prototype.ngAfterContentInit=function(){this._keyManager=new n.ActiveDescendantKeyManager(this.options).withWrap()},e.prototype._setScrollTop=function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)},e.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},e.prototype._setVisibility=function(){var e=this;Promise.resolve().then(function(){e.showPanel=!!e.options.length,e._changeDetectorRef.markForCheck()})},e.prototype._emitSelectEvent=function(e){var t=new Se(this,e);this.optionSelected.emit(t)},e.prototype._getClassList=function(){return{"mat-autocomplete-visible":this.showPanel,"mat-autocomplete-hidden":!this.showPanel}},e}();Fe.decorators=[{type:t.Component,args:[{selector:"md-autocomplete, mat-autocomplete",template:'<ng-template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_getClassList()" #panel><ng-content></ng-content></div></ng-template>',styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}"],encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,exportAs:"mdAutocomplete, matAutocomplete",host:{class:"mat-autocomplete"}}]}],Fe.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Fe.propDecorators={template:[{type:t.ViewChild,args:[t.TemplateRef]}],panel:[{type:t.ViewChild,args:["panel"]}],options:[{type:t.ContentChildren,args:[_e,{descendants:!0}]}],optionGroups:[{type:t.ContentChildren,args:[fe]}],displayWith:[{type:t.Input}],optionSelected:[{type:t.Output}]};var Le=new t.InjectionToken("md-autocomplete-scroll-strategy"),Ne={provide:Le,deps:[u.Overlay],useFactory:x},je={provide:h.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return Ve}),multi:!0},Ve=function(){function e(e,t,n,o,r,i,a,l,s){this._element=e,this._overlay=t,this._viewContainerRef=n,this._zone=o,this._changeDetectorRef=r,this._scrollStrategy=i,this._dir=a,this._formField=l,this._document=s,this._panelOpen=!1,this._manuallyFloatingPlaceholder=!1,this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(e.prototype,"_matAutocomplete",{get:function(){return this.autocomplete},set:function(e){this.autocomplete=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._destroyPanel()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),e.prototype.openPanel=function(){this._attachOverlay(),this._floatPlaceholder()},e.prototype.closePanel=function(){this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._resetPlaceholder(),this._panelOpen&&(this._panelOpen=!1,this._changeDetectorRef.detectChanges())},Object.defineProperty(e.prototype,"panelClosingActions",{get:function(){return y.merge(this.optionSelections,this.autocomplete._keyManager.tabOut,this._outsideClickStream)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"optionSelections",{get:function(){return y.merge.apply(void 0,this.autocomplete.options.map(function(e){return e.onSelectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_outsideClickStream",{get:function(){var e=this;return this._document?m.RxChain.from(y.merge(g.fromEvent(this._document,"click"),g.fromEvent(this._document,"touchend"))).call(m.filter,function(t){var n=t.target,o=e._formField?e._formField._elementRef.nativeElement:null;return e._panelOpen&&n!==e._element.nativeElement&&(!o||!o.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}).result():_.of(null)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype._handleKeydown=function(e){var t=this;if(e.keyCode===l.ESCAPE&&this.panelOpen)this._resetActiveItem(),this.closePanel(),e.stopPropagation();else if(this.activeOption&&e.keyCode===l.ENTER&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else{var n=this.autocomplete._keyManager.activeItem,o=e.keyCode===l.UP_ARROW||e.keyCode===l.DOWN_ARROW;this.panelOpen?this.autocomplete._keyManager.onKeydown(e):o&&this.openPanel(),Promise.resolve().then(function(){(o||t.autocomplete._keyManager.activeItem!==n)&&t._scrollToOption()})}},e.prototype._handleInput=function(e){document.activeElement===e.target&&(this._onChange(e.target.value),this.openPanel())},e.prototype._handleFocus=function(){this._attachOverlay(),this._floatPlaceholder(!0)},e.prototype._floatPlaceholder=function(e){void 0===e&&(e=!1),this._formField&&"auto"===this._formField.floatPlaceholder&&(e?this._formField._animateAndLockPlaceholder():this._formField.floatPlaceholder="always",this._manuallyFloatingPlaceholder=!0)},e.prototype._resetPlaceholder=function(){this._manuallyFloatingPlaceholder&&(this._formField.floatPlaceholder="auto",this._manuallyFloatingPlaceholder=!1)},e.prototype._scrollToOption=function(){var e=this.autocomplete._keyManager.activeItemIndex||0,t=_e.countGroupLabelsBeforeOption(e,this.autocomplete.options,this.autocomplete.optionGroups),n=48*(e+t),o=this.autocomplete._getScrollTop();if(n<o)this.autocomplete._setScrollTop(n);else if(n+48>o+256){var r=Math.max(0,n-256+48);this.autocomplete._setScrollTop(r)}},e.prototype._subscribeToClosingActions=function(){var