@angular/material
Version:
Angular Material
9 lines • 59.2 kB
JavaScript
/**
* @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/cdk/observers"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/common"),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/cdk/platform"),require("@angular/cdk/overlay"),require("@angular/cdk/rxjs"),require("@angular/animations"),require("rxjs/Subscription"),require("rxjs/observable/merge"),require("rxjs/observable/fromEvent"),require("rxjs/observable/of")):"function"==typeof define&&define.amd?define(["exports","@angular/cdk/observers","@angular/cdk/portal","@angular/cdk/scrolling","@angular/common","@angular/core","@angular/cdk/a11y","@angular/cdk/bidi","@angular/platform-browser","@angular/cdk/coercion","rxjs/Subject","@angular/cdk/keycodes","@angular/cdk/platform","@angular/cdk/overlay","@angular/cdk/rxjs","@angular/animations","rxjs/Subscription","rxjs/observable/merge","rxjs/observable/fromEvent","rxjs/observable/of"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.tabs=e.ng.material.tabs||{}),e.ng.cdk.observers,e.ng.cdk.portal,e.ng.cdk.scrolling,e.ng.common,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.cdk.platform,e.ng.cdk.overlay,e.ng.cdk.rxjs,e.ng.animations,e.Rx,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable)}(this,function(e,t,n,r,i,a,o,s,l,c,p,d,u,h,m,b,f,g,y,_){"use strict";function v(e,t){function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function C(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 D(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disabled=!1,r}return v(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=c.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}function x(e,t){return function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return i.color=t,i}return v(n,e),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(e){var n=e||t;n!==this._color&&(this._color&&this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),n&&this._renderer.addClass(this._elementRef.nativeElement,"mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(e)}function k(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disableRipple=!1,r}return v(t,e),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=c.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}function R(e){return e||new B}function I(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 r=0,i=t;r<i.length;r++){var a=i[r];if(null!=a)for(var o in a)a.hasOwnProperty(o)&&(e[o]=a[o])}return e}function w(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t(r);return n}function T(e){window.getComputedStyle(e).getPropertyValue("opacity")}function E(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}var P=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])},O=function(){function e(){}return e}();O.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",O.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",O.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",O.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var S=function(){function e(){}return e}();S.COMPLEX="375ms",S.ENTERING="225ms",S.EXITING="195ms";var L=new a.InjectionToken("md-compatibility-mode"),M=function(){function e(e,t){if(!e)throw C("mat",t.nativeElement.nodeName)}return e}();M.decorators=[{type:a.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"}]}],M.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[L]}]},{type:a.ElementRef}]};var j=function(){function e(e,t){if(e)throw C("md",t.nativeElement.nodeName)}return e}();j.decorators=[{type:a.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"}]}],j.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[L]}]},{type:a.ElementRef}]};var W=function(){function e(){}return e}();W.decorators=[{type:a.NgModule,args:[{declarations:[M,j],exports:[M,j]}]}],W.ctorParameters=function(){return[]};var A=function(){function e(){}return e}();A.decorators=[{type:a.NgModule,args:[{providers:[{provide:L,useValue:!0}]}]}],A.ctorParameters=function(){return[]};var N=new a.InjectionToken("md-sanity-checks"),F=function(){function e(e,t){this._document=e,this._hasDoneGlobalChecks=!1,t&&!this._hasDoneGlobalChecks&&e&&a.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}();F.decorators=[{type:a.NgModule,args:[{imports:[W,s.BidiModule],exports:[W,s.BidiModule],providers:[{provide:N,useValue:!0}]}]}],F.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[l.DOCUMENT]}]},{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[N]}]}]};var B=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,r=this._listeners;n<r.length;n++){(0,r[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}();B.decorators=[{type:a.Injectable}],B.ctorParameters=function(){return[]};var H=(new a.Optional,new a.SkipSelf,new a.InjectionToken("MAT_DATE_LOCALE")),V={provide:H,useExisting:a.LOCALE_ID},z=function(){function e(){this._localeChanges=new p.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}(),Y="undefined"!=typeof Intl,U={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"]},q=w(31,function(e){return String(e+1)}),G={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}))?)?$/,J=function(e){function t(t){var n=e.call(this)||this;return n.useUtcForDisplay=!0,e.prototype.setLocale.call(n,t),n}return v(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(Y){var n=new Intl.DateTimeFormat(this.locale,{month:e});return w(12,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,e,1)))})}return U[e]},t.prototype.getDateNames=function(){var e=this;if(Y){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return w(31,function(n){return e._stripDirectionalityCharacters(t.format(new Date(2017,0,n+1)))})}return q},t.prototype.getDayOfWeekNames=function(e){var t=this;if(Y){var n=new Intl.DateTimeFormat(this.locale,{weekday:e});return w(7,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,0,e+1)))})}return G[e]},t.prototype.getYearName=function(e){if(Y){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 r=this._createDateWithOverflow(e,t,n);if(r.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return r},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(Y){this.useUtcForDisplay&&(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t=I({},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 r=new Date(e,t,n);return e>=0&&e<100&&r.setFullYear(this.getYear(r)-1900),r},t.prototype._2digit=function(e){return("00"+e).slice(-2)},t.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},t}(z);J.decorators=[{type:a.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[H]}]}]};var $=new a.InjectionToken("md-date-formats"),K={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"}}},X=function(){function e(){}return e}();X.decorators=[{type:a.NgModule,args:[{providers:[{provide:z,useClass:J},V]}]}],X.ctorParameters=function(){return[]};var Q=function(){function e(){}return e}();Q.decorators=[{type:a.NgModule,args:[{imports:[X],providers:[{provide:$,useValue:K}]}]}],Q.ctorParameters=function(){return[]};var ee=(new a.InjectionToken("md-error-global-options"),function(e){function t(){var t=e.call(this)||this;return t._hammer="undefined"!=typeof window?window.Hammer:null,t.events=t._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!t._hammer&&a.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),t}return v(t,e),t.prototype.buildHammer=function(e){var t=new this._hammer(e),n=new this._hammer.Pan,r=new this._hammer.Swipe,i=new this._hammer.Press,a=this._createRecognizer(n,{event:"slide",threshold:0},r),o=this._createRecognizer(i,{event:"longpress",time:500});return n.recognizeWith(r),t.add([r,i,n,a,o]),t},t.prototype._createRecognizer=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new e.constructor(t);return n.push(e),n.forEach(function(e){return i.recognizeWith(e)}),i},t}(l.HammerGestureConfig));ee.decorators=[{type:a.Injectable}],ee.ctorParameters=function(){return[]};var te=function(){function e(){}return e}();te.decorators=[{type:a.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],te.ctorParameters=function(){return[]};var ne=function(){function e(){}return e}();ne.decorators=[{type:a.NgModule,args:[{imports:[F],exports:[te,F],declarations:[te]}]}],ne.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,r){this._ngZone=t,this._ruler=n,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,r.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 r=this;void 0===n&&(n={});var i=this._containerElement.getBoundingClientRect();if(n.centered)e=i.left+i.width/2,t=i.top+i.height/2;else{var a=this._ruler.getViewportScrollPosition();e-=a.left,t-=a.top}var o=n.radius||E(e,t,i),s=1/(n.speedFactor||1)*450,l=e-i.left,c=t-i.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=l-o+"px",p.style.top=c-o+"px",p.style.height=2*o+"px",p.style.width=2*o+"px",p.style.backgroundColor=n.color||null,p.style.transitionDuration=s+"ms",this._containerElement.appendChild(p),T(p),p.style.transform="scale(1)";var d=new ie(this,p,n);return d.state=re.FADING_IN,this._activeRipples.add(d),this.runTimeoutOutsideZone(function(){d.state=re.VISIBLE,n.persistent||r._isMousedown||d.fadeOut()},s),d},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}(),oe=new a.InjectionToken("md-ripple-global-options"),se=function(){function e(e,t,n,r,i){this.radius=0,this.speedFactor=1,this._rippleRenderer=new ae(e,t,n,r),this._globalOptions=i||{},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:a.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:a.ElementRef},{type:a.NgZone},{type:r.ViewportRuler},{type:u.Platform},{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[oe]}]}]},se.propDecorators={trigger:[{type:a.Input,args:["mdRippleTrigger"]}],centered:[{type:a.Input,args:["mdRippleCentered"]}],disabled:[{type:a.Input,args:["mdRippleDisabled"]}],radius:[{type:a.Input,args:["mdRippleRadius"]}],speedFactor:[{type:a.Input,args:["mdRippleSpeedFactor"]}],color:[{type:a.Input,args:["mdRippleColor"]}],unbounded:[{type:a.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:a.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:a.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:a.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:a.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:a.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:a.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:a.Input,args:["matRippleUnbounded"]}]};var le=function(){function e(){}return e}();le.decorators=[{type:a.NgModule,args:[{imports:[F,u.PlatformModule,r.ScrollDispatchModule],exports:[se,F],declarations:[se],providers:[r.VIEWPORT_RULER_PROVIDER]}]}],le.ctorParameters=function(){return[]};var ce=function(){function e(){this.state="unchecked",this.disabled=!1}return e}();ce.decorators=[{type:a.Component,args:[{encapsulation:a.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:a.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"}}]}],ce.ctorParameters=function(){return[]},ce.propDecorators={state:[{type:a.Input}],disabled:[{type:a.Input}]};var pe=function(){function e(){}return e}();pe.decorators=[{type:a.NgModule,args:[{exports:[ce],declarations:[ce]}]}],pe.ctorParameters=function(){return[]};var de=function(){function e(){}return e}(),ue=D(de),he=0,me=function(e){function t(){var t=e.apply(this,arguments)||this;return t._labelId="mat-optgroup-label-"+he++,t}return v(t,e),t}(ue);me.decorators=[{type:a.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:a.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:a.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],me.ctorParameters=function(){return[]},me.propDecorators={label:[{type:a.Input}]};var be=0,fe=function(){function e(e,t){void 0===t&&(t=!1),this.source=e,this.isUserInput=t}return e}(),ge=function(){function e(e,t,n){this._element=e,this._changeDetectorRef=t,this.group=n,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+be++,this.onSelectionChange=new a.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=c.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!==d.ENTER&&e.keyCode!==d.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 fe(this,e))},e.countGroupLabelsBeforeOption=function(e,t,n){if(n.length){for(var r=t.toArray(),i=n.toArray(),a=0,o=0;o<e+1;o++)r[o].group&&r[o].group===i[a]&&a++;return a}return 0},e}();ge.decorators=[{type:a.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:a.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:a.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:L,useValue:!0}]}]}],ge.ctorParameters=function(){return[{type:a.ElementRef},{type:a.ChangeDetectorRef},{type:me,decorators:[{type:a.Optional}]}]},ge.propDecorators={value:[{type:a.Input}],disabled:[{type:a.Input}],onSelectionChange:[{type:a.Output}]};var ye=function(){function e(){}return e}();ye.decorators=[{type:a.NgModule,args:[{imports:[le,i.CommonModule,pe],exports:[ge,me],declarations:[ge,me]}]}],ye.ctorParameters=function(){return[]};var _e=(new a.InjectionToken("md-placeholder-global-options"),function(){function e(){}return e}());_e.decorators=[{type:a.NgModule,args:[{imports:[o.A11yModule],exports:[o.A11yModule]}]}],_e.ctorParameters=function(){return[]};var ve=function(){function e(e,t,n){this._renderer=e,this._elementRef=t,this._ngZone=n}return e.prototype.alignToElement=function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)},e.prototype.show=function(){this._renderer.setStyle(this._elementRef.nativeElement,"visibility","visible")},e.prototype.hide=function(){this._renderer.setStyle(this._elementRef.nativeElement,"visibility","hidden")},e.prototype._setStyles=function(e){var t=e?(e.offsetLeft||0)+"px":"0",n=e?(e.offsetWidth||0)+"px":"0";this._renderer.setStyle(this._elementRef.nativeElement,"left",t),this._renderer.setStyle(this._elementRef.nativeElement,"width",n)},e}();ve.decorators=[{type:a.Directive,args:[{selector:"md-ink-bar, mat-ink-bar",host:{class:"mat-ink-bar"}}]}],ve.ctorParameters=function(){return[{type:a.Renderer2},{type:a.ElementRef},{type:a.NgZone}]};var Ce=n.TemplatePortalDirective,De=function(e){function t(t,n){return e.call(this,t,n)||this}return v(t,e),t}(Ce);De.decorators=[{type:a.Directive,args:[{selector:"[md-tab-label], [mat-tab-label], [mdTabLabel], [matTabLabel]"}]}],De.ctorParameters=function(){
return[{type:a.TemplateRef},{type:a.ViewContainerRef}]};var xe=function(){function e(){}return e}(),ke=D(xe),Re=function(e){function t(t){var n=e.call(this)||this;return n._viewContainerRef=t,n.textLabel="",n._contentPortal=null,n._labelChange=new p.Subject,n._disableChange=new p.Subject,n.position=null,n.origin=null,n.isActive=!1,n}return v(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){e.hasOwnProperty("textLabel")&&this._labelChange.next(),e.hasOwnProperty("disabled")&&this._disableChange.next()},t.prototype.ngOnDestroy=function(){this._disableChange.complete(),this._labelChange.complete()},t.prototype.ngOnInit=function(){this._contentPortal=new n.TemplatePortal(this._content,this._viewContainerRef)},t}(ke);Re.decorators=[{type:a.Component,args:[{selector:"md-tab, mat-tab",template:"<ng-template><ng-content></ng-content></ng-template>",inputs:["disabled"],changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"mdTab, matTab"}]}],Re.ctorParameters=function(){return[{type:a.ViewContainerRef}]},Re.propDecorators={templateLabel:[{type:a.ContentChild,args:[De]}],_content:[{type:a.ViewChild,args:[a.TemplateRef]}],textLabel:[{type:a.Input,args:["label"]}]};var Ie=function(){function e(e,t){this._elementRef=e,this._dir=t,this.onCentering=new a.EventEmitter,this.onCentered=new a.EventEmitter(!0)}return Object.defineProperty(e.prototype,"position",{set:function(e){this._position=e<0?"ltr"==this._getLayoutDirection()?"left":"right":e>0?"ltr"==this._getLayoutDirection()?"right":"left":"center"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{set:function(e){if(null!=e){var t=this._getLayoutDirection();this._origin="ltr"==t&&e<=0||"rtl"==t&&e>0?"left":"right"}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){"center"==this._position&&this._origin&&(this._position="left"==this._origin?"left-origin-center":"right-origin-center")},e.prototype.ngAfterViewChecked=function(){this._isCenterPosition(this._position)&&!this._portalHost.hasAttached()&&this._portalHost.attach(this._content)},e.prototype._onTranslateTabStarted=function(e){this._isCenterPosition(e.toState)&&this.onCentering.emit(this._elementRef.nativeElement.clientHeight)},e.prototype._onTranslateTabComplete=function(e){this._isCenterPosition(e.toState)||this._isCenterPosition(this._position)||this._portalHost.detach(),this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this.onCentered.emit()},e.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},e.prototype._isCenterPosition=function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e},e}();Ie.decorators=[{type:a.Component,args:[{selector:"md-tab-body, mat-tab-body",template:'<div class="mat-tab-body-content" #content [@translateTab]="_position" (@translateTab.start)="_onTranslateTabStarted($event)" (@translateTab.done)="_onTranslateTabComplete($event)"><ng-template cdkPortalHost></ng-template></div>',styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:a.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:a.ChangeDetectionStrategy.OnPush,host:{class:"mat-tab-body"},animations:[b.trigger("translateTab",[b.state("void",b.style({transform:"translate3d(0%, 0, 0)"})),b.state("left",b.style({transform:"translate3d(-100%, 0, 0)"})),b.state("left-origin-center",b.style({transform:"translate3d(0%, 0, 0)"})),b.state("right-origin-center",b.style({transform:"translate3d(0%, 0, 0)"})),b.state("center",b.style({transform:"translate3d(0%, 0, 0)"})),b.state("right",b.style({transform:"translate3d(100%, 0, 0)"})),b.transition("* => left, * => right, left => center, right => center",b.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")),b.transition("void => left-origin-center",[b.style({transform:"translate3d(-100%, 0, 0)"}),b.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")]),b.transition("void => right-origin-center",[b.style({transform:"translate3d(100%, 0, 0)"}),b.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")])])]}]}],Ie.ctorParameters=function(){return[{type:a.ElementRef},{type:s.Directionality,decorators:[{type:a.Optional}]}]},Ie.propDecorators={_portalHost:[{type:a.ViewChild,args:[n.PortalHostDirective]}],onCentering:[{type:a.Output}],onCentered:[{type:a.Output}],_content:[{type:a.Input,args:["content"]}],position:[{type:a.Input,args:["position"]}],origin:[{type:a.Input,args:["origin"]}]};var we=0,Te=function(){function e(){}return e}(),Ee=function(){function e(e,t){this._renderer=e,this._elementRef=t}return e}(),Pe=x(k(Ee),"primary"),Oe=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i._changeDetectorRef=r,i._isInitialized=!1,i._indexToSelect=0,i._tabBodyWrapperHeight=0,i._tabsSubscription=f.Subscription.EMPTY,i._tabLabelSubscription=f.Subscription.EMPTY,i._dynamicHeight=!1,i._selectedIndex=null,i.headerPosition="above",i.selectedIndexChange=new a.EventEmitter,i.focusChange=new a.EventEmitter,i.selectChange=new a.EventEmitter(!0),i._groupId=we++,i}return v(t,e),Object.defineProperty(t.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=c.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dynamicHeightDeprecated",{get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;this._renderer.removeClass(t,"mat-background-"+this.backgroundColor),e&&this._renderer.addClass(t,"mat-background-"+e),this._backgroundColor=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){var e=this,t=this._indexToSelect=Math.min(this._tabs.length-1,Math.max(this._indexToSelect||0,0));this._selectedIndex!=t&&null!=this._selectedIndex&&(this.selectChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){return e.selectedIndexChange.emit(t)})),this._tabs.forEach(function(n,r){n.position=r-t,n.isActive=r===t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())},t.prototype.ngAfterContentInit=function(){var e=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){e._subscribeToTabLabels(),e._changeDetectorRef.markForCheck()})},t.prototype.ngOnDestroy=function(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},t.prototype.ngAfterViewChecked=function(){this._isInitialized=!0},t.prototype._focusChanged=function(e){this.focusChange.emit(this._createChangeEvent(e))},t.prototype._createChangeEvent=function(e){var t=new Te;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t},t.prototype._subscribeToTabLabels=function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=g.merge.apply(void 0,this._tabs.map(function(e){return e._disableChange}).concat(this._tabs.map(function(e){return e._labelChange}))).subscribe(function(){e._changeDetectorRef.markForCheck()})},t.prototype._getTabLabelId=function(e){return"md-tab-label-"+this._groupId+"-"+e},t.prototype._getTabContentId=function(e){return"md-tab-content-"+this._groupId+"-"+e},t.prototype._setTabBodyWrapperHeight=function(e){this._dynamicHeight&&this._tabBodyWrapperHeight&&(this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height",this._tabBodyWrapperHeight+"px"),this._tabBodyWrapper.nativeElement.offsetHeight&&this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height",e+"px"))},t.prototype._removeTabBodyWrapperHeight=function(){this._tabBodyWrapperHeight=this._tabBodyWrapper.nativeElement.clientHeight,this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height","")},t}(Pe);Oe.decorators=[{type:a.Component,args:[{selector:"md-tab-group, mat-tab-group",template:'<mat-tab-header #tabHeader [selectedIndex]="selectedIndex" [disableRipple]="disableRipple" (indexFocused)="_focusChanged($event)" (selectFocusedIndex)="selectedIndex = $event"><div class="mat-tab-label" role="tab" matTabLabelWrapper mat-ripple *ngFor="let tab of _tabs; let i = index" [id]="_getTabLabelId(i)" [tabIndex]="selectedIndex == i ? 0 : -1" [attr.aria-controls]="_getTabContentId(i)" [attr.aria-selected]="selectedIndex == i" [class.mat-tab-label-active]="selectedIndex == i" [disabled]="tab.disabled" [matRippleDisabled]="disableRipple" (click)="tabHeader.focusIndex = selectedIndex = i"><ng-template [ngIf]="tab.templateLabel"><ng-template [cdkPortalHost]="tab.templateLabel"></ng-template></ng-template><ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template></div></mat-tab-header><div class="mat-tab-body-wrapper" #tabBodyWrapper><mat-tab-body role="tabpanel" *ngFor="let tab of _tabs; let i = index" [id]="_getTabContentId(i)" [attr.aria-labelledby]="_getTabLabelId(i)" [class.mat-tab-body-active]="selectedIndex == i" [content]="tab.content" [position]="tab.position" [origin]="tab.origin" (onCentered)="_removeTabBodyWrapperHeight()" (onCentering)="_setTabBodyWrapperHeight($event)"></mat-tab-body></div>',styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-label{padding:0 12px}}@media (max-width:960px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs] .mat-tab-label,.mat-tab-group[md-stretch-tabs] .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:a.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:a.ChangeDetectionStrategy.OnPush,inputs:["color","disableRipple"],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'},viewProviders:[{provide:L,useValue:!0}]}]}],Oe.ctorParameters=function(){return[{type:a.Renderer2},{type:a.ElementRef},{type:a.ChangeDetectorRef}]},Oe.propDecorators={_tabs:[{type:a.ContentChildren,args:[Re]}],_tabBodyWrapper:[{type:a.ViewChild,args:["tabBodyWrapper"]}],dynamicHeight:[{type:a.Input}],_dynamicHeightDeprecated:[{type:a.Input,args:["md-dynamic-height"]}],selectedIndex:[{type:a.Input}],headerPosition:[{type:a.Input}],backgroundColor:[{type:a.Input}],selectedIndexChange:[{type:a.Output}],focusChange:[{type:a.Output}],selectChange:[{type:a.Output}]};var Se=function(){function e(){}return e}(),Le=D(Se),Me=function(e){function t(t){var n=e.call(this)||this;return n.elementRef=t,n}return v(t,e),t.prototype.focus=function(){this.elementRef.nativeElement.focus()},t.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},t.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},t}(Le);Me.decorators=[{type:a.Directive,args:[{selector:"[mdTabLabelWrapper], [matTabLabelWrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled"}}]}],Me.ctorParameters=function(){return[{type:a.ElementRef}]};var je=function(){function e(){}return e}(),We=k(je),Ae=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._elementRef=t,o._renderer=n,o._changeDetectorRef=r,o._dir=i,o._focusIndex=0,o._scrollDistance=0,o._selectedIndexChanged=!1,o._realignInkBar=f.Subscription.EMPTY,o._showPaginationControls=!1,o._disableScrollAfter=!0,o._disableScrollBefore=!0,o._selectedIndex=0,o.selectFocusedIndex=new a.EventEmitter,o.indexFocused=new a.EventEmitter,o}return v(t,e),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){this._selectedIndexChanged=this._selectedIndex!=e,this._selectedIndex=e,this._focusIndex=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._labelWrappers.length&&(this._updatePagination(),this._tabLabelCount=this._labelWrappers.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},t.prototype._handleKeydown=function(e){switch(e.keyCode){case d.RIGHT_ARROW:this._focusNextTab();break;case d.LEFT_ARROW:this._focusPreviousTab();break;case d.ENTER:case d.SPACE:this.selectFocusedIndex.emit(this.focusIndex),e.preventDefault()}},t.prototype.ngAfterContentInit=function(){var e=this,t=this._dir?this._dir.change:_.of(null),n="undefined"!=typeof window?m.auditTime.call(y.fromEvent(window,"resize"),150):_.of(null);this._realignInkBar=m.startWith.call(g.merge(t,n),null).subscribe(function(){e._updatePagination(),e._alignInkBarToSelectedTab()})},t.prototype.ngOnDestroy=function(){this._realignInkBar.unsubscribe()},t.prototype._onContentChanges=function(){this._updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()},t.prototype._updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this._focusIndex},set:function(e){this._isValidIndex(e)&&this._focusIndex!=e&&(this._focusIndex=e,this.indexFocused.emit(e),this._setTabFocus(e))},enumerable:!0,configurable:!0}),t.prototype._isValidIndex=function(e){if(!this._labelWrappers)return!0;var t=this._labelWrappers?this._labelWrappers.toArray()[e]:null;return!!t&&!t.disabled},t.prototype._setTabFocus=function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._labelWrappers&&this._labelWrappers.length){this._labelWrappers.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}},t.prototype._moveFocus=function(e){if(this._labelWrappers)for(var t=this._labelWrappers.toArray(),n=this.focusIndex+e;n<t.length&&n>=0;n+=e)if(this._isValidIndex(n))return void(this.focusIndex=n)},t.prototype._focusNextTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?1:-1)},t.prototype._focusPreviousTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?-1:1)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._updateTabScrollPosition=function(){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._renderer.setStyle(this._tabList.nativeElement,"transform","translate3d("+t+"px, 0, 0)")},Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(e){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),e)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),t.prototype._scrollHeader=function(e){var t=this._tabListContainer.nativeElement.offsetWidth;this.scrollDistance+=("before"==e?-1:1)*t/3},t.prototype._scrollToLabel=function(e){var t=this._labelWrappers?this._labelWrappers.toArray()[e]:null;if(t){var n,r,i=this._tabListContainer.nativeElement.offsetWidth;"ltr"==this._getLayoutDirection()?(n=t.getOffsetLeft(),r=n+t.getOffsetWidth()):(r=this._tabList.nativeElement.offsetWidth-t.getOffsetLeft(),n=r-t.getOffsetWidth());var a=this.scrollDistance,o=this.scrollDistance+i;n<a?this.scrollDistance-=a-n+60:r>o&&(this.scrollDistance+=r-o+60)}},t.prototype._checkPaginationEnabled=function(){var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e},t.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var e=this._labelWrappers&&this._labelWrappers.length?this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement:null;this._inkBar.alignToElement(e)},t}(We);Ae.decorators=[{type:a.Component,args:[{selector:"md-tab-header, mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4" aria-hidden="true" mat-ripple [matRippleDisabled]="_disableScrollBefor