/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.2.5-master-0b55529 */ !function(L,be,ge){"use strict";function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function t(e,t){e.decorator("$$rAF",["$delegate",n]),e.decorator("$q",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function n(i){return i.throttle=function(e){var t,n,o,r;return function(){t=arguments,r=this,o=e,n||(n=!0,i(function(){o.apply(r,Array.prototype.slice.call(t)),n=!1}))}},i}function o(e){return e.resolve||(e.resolve=e.when),e}function r(i){return{restrict:"A",link:{pre:function(e,t,n){var o=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;r(i(o)(e)),o&&e.$watch(o,r);function r(e){be.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}function i(e,d){function s(){return!0}e&&!be.isArray(e)&&(e=Array.prototype.slice.call(e)),d=!!d;var l=e||[];return{items:function(){return[].concat(l)},count:function(){return l.length},inRange:c,contains:t,indexOf:m,itemAt:function(e){return c(e)?l[e]:null},findBy:function(t,n){return l.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;be.isNumber(t)||(t=l.length);return l.splice(t,0,e),m(e)},remove:function(e){t(e)&&l.splice(m(e),1)},first:u,last:p,next:be.bind(null,n,!1),previous:be.bind(null,n,!0),hasPrevious:function(e){return!!e&&c(m(e)-1)},hasNext:function(e){return!!e&&c(m(e)+1)}};function c(e){return l.length&&-1").html(t.trim()).contents();return r._compileElement(e,n,o)})},i.prototype._compileElement=function(o,r,i){var a=this,d=this.$compile(r),s={element:r,cleanup:r.remove.bind(r),locals:o,link:function(e){if(o.$scope=e,i.controller){var t=be.extend({},o,{$element:r}),n=a._createController(i,t,o);be.isFunction(n.$onDestroy)&&e.$on("$destroy",function(){be.isFunction(n.$onDestroy)&&n.$onDestroy()}),r.data("$ngControllerController",n),r.children().data("$ngControllerController",n),s.controller=n}return d(e)}};return s},i.prototype._createController=function(e,t,n){var o=this.$controller(e.controller,t);return e.bindToController&&be.extend(o,n),e.controllerAs&&(t.$scope[e.controllerAs]=o),be.isFunction(o.$onInit)&&o.$onInit(),o},i.prototype._fetchContentElement=function(e){var t,n=e.contentElement;return t=be.isString(n)?o(n=document.querySelector(n)):(n=n[0]||n,document.contains(n)?o(n):function(){n.parentNode&&n.parentNode.removeChild(n)}),{element:be.element(n),restore:t};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}function H(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in L?"MSPointerDown":"PointerEvent"in L?"pointerdown":null,this.bodyElement=be.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputHandler=this.onInputEvent.bind(this),this.bufferedInputHandler=this.onBufferInputEvent.bind(this),this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents(),this.$rootScope.$on("$destroy",this.deregister.bind(this))}function I(e){return e.replace(h,"").replace(f,function(e,t,n,o){return o?n.toUpperCase():n})}function O(){var e=!!document.querySelector("[md-layouts-disabled]");T.enabled=!e}function P(){return T.enabled=!1,{restrict:"A",priority:"900"}}function R(o){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(B(o,z(o,t,""),U(e,o,t)),r(null,e),n=r),n||be.noop}}}];function r(e,t){t.addClass(o)}}function F(e,t,n,o){var r,i=n[0].nodeName.toLowerCase();switch(e.replace(E,"")){case"flex":"md-button"!==i&&"fieldset"!==i||(r="<"+i+" "+e+">","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers","Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",o.warn(l.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[r,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function B(e,t,n){var o=t;if(!j(t)){switch(e.replace(E,"")){case"layout":q(t,M)||(t=M[0]);break;case"flex":q(t,$)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var r=function(e){var t,n={main:"start",cross:"stretch"};0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e);(t=e.toLowerCase().trim().replace(v,"-").split("-")).length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]);0'+o+"":""),i=function(){var e=n.find("md-item-template").detach(),t=e.length?e.html():n.html();e.length||n.empty();return""+t+""}(),a=n.html(),d=e.tabindex;return r&&n.attr("md-has-not-found",!0),n.attr("tabindex","-1")," "+(e.mdFloatingLabel?'
'+a+"
":' ')+' '+function(e,t){if(e=e?" "+e:"",s(t))return' ":"")+"
";function s(e){return m(e)!==c}}}}function Q(e,c){return{restrict:"AE",compile:function(e,t,l){return function(n,t,e){var o,r,i=n.$mdAutocompleteCtrl,a=i.parent.$new(),d=i.itemName;function s(e,t){a[t]=n[e],n.$watch(e,function(e){c.nextTick(function(){a[t]=e})})}s("$index","$index"),s("item",d),r=o=!1,n.$watch(function(){r||o||(o=!0,n.$$postDigest(function(){r||a.$digest(),o=r=!1}))}),a.$watch(function(){r=!0}),l(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}function J(e,t,n,o){this.$scope=e,this.$element=t,this.$attrs=n,this.$mdUtil=o,this.regex=null}function ee(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var r=o(t.mdHighlightText),i=n(e.html());return function(e,t,n,o){o.init(r,i)}}}}function te(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function ne(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var u=.5,p=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(o,a,d,r,s,i,l,c){var m;return{themable:!0,onShow:function(e,t,n){if((t=d.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){c.warn("$mdBottomSheet: using `` will affect the bottom-sheet opening animations.",t[0])}n.isLockedOpen?(n.clickOutsideToClose=!1,n.escapeToClose=!1):n.cleanupGestures=function(o,e){var t=l.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",n).on("$md.drag",r).on("$md.dragend",i),function(){t(),e.off("$md.dragstart",n),e.off("$md.drag",r),e.off("$md.dragend",i)};function n(){o.css(a.CSS.TRANSITION_DURATION,"0ms")}function r(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-p,t/2)),o.css(a.CSS.TRANSFORM,"translate3d(0,"+(p+t)+"px,0)")}function i(e){if(0u)){var t=o.prop("offsetHeight")-e.pointer.distanceY,n=Math.min(t/e.pointer.velocityY*.75,500);o.css(a.CSS.TRANSITION_DURATION,n+"ms"),d.nextTick(s.cancel,!0)}else o.css(a.CSS.TRANSITION_DURATION,""),o.css(a.CSS.TRANSFORM,"")}}(t,n.parent);n.disableBackdrop||((m=d.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&m.on("click",function(){d.nextTick(s.cancel,!0)}),r.inherit(m,n.parent),o.enter(m,n.parent,null));r.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(t,n.parent));return o.enter(t,n.parent,m).then(function(){var e=d.findFocusTarget(t)||be.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(d.prefixer("ng-click",!0)))||m;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&d.nextTick(s.cancel,!0)},i.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||o.leave(m);return o.leave(t).then(function(){n.disableParentScroll&&(n.restoreScroll(),delete n.restoreScroll),n.cleanupGestures&&n.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}function oe(n){return{restrict:"E",link:function(e,t){n(t)}}}function re(o,r,i,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{return d(t)?'':''}},link:function(e,t,n){r(t),o.attach(e,t),i.expectWithoutText(t,"aria-label"),d(n)&&be.isDefined(n.ngDisabled)&&!t.hasClass("_md-nav-button")&&e.$watch(n.ngDisabled,function(e){t.attr("tabindex",e?-1:0)});t.on("click",function(e){!0===n.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),t.hasClass("md-no-focus")||(t.on("focus",function(){a.isUserInvoked()&&"keyboard"!==a.getLastInteractionType()||t.addClass("md-focused")}),t.on("blur",function(){t.removeClass("md-focused")}))}};function d(e){return be.isDefined(e.href)||be.isDefined(e.ngHref)||be.isDefined(e.ngLink)||be.isDefined(e.uiSref)}}function ie(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}function ae(h,f,b,g,E,v){return h=h[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:b.BEFORE_NG_ARIA,template:'
',compile:function(e,t){return t.$set("tabindex",t.tabindex||"0"),t.$set("type","checkbox"),t.$set("role",t.type),e.addClass("md-auto-horizontal-margin"),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(o,r,i,e){var t,n=e[0],a=e[1]||E.fakeNgModel(),d=e[2],s=0')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:he,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1],a=o[2];a.calendarCtrl=r,a.monthCtrl=i,a.arrowIcon=d.cloneNode(!0),e.$watch(function(){return a.offset},function(e){be.isNumber(e)&&a.generateContent()})}}}function he(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}function fe(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}function Ee(e,t,i){return{restrict:"E",link:function(o,r){r.addClass("_md"),t(r),e(function(){var e,t=r[0].querySelector("md-dialog-content");function n(){r.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),be.element(e).on("load",n)),o.$on("$destroy",function(){i.destroy(r)})})}}}function ve(e){var g,E,v;return n.$inject=["$mdDialog","$mdConstant"],o.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:o}).addPreset("alert",{methods:["title","htmlContent","textContent","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:t});function t(){return{template:['',' ','

{{ dialog.title }}

','
','
',"

{{::dialog.mdTextContent}}

","
",' ',' '," ","
"," ",' '," {{ dialog.cancel }}"," ",' '," {{ dialog.ok }}"," "," ","
"].join("").replace(/\s\s+/g,""),controller:n,controllerAs:"dialog",bindToController:!0}}function n(o,r){this.$onInit=function(){var n="prompt"===this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){o.hide(!n||this.result)},this.abort=function(){o.cancel()},this.keypress=function(e){var t=n&&this.required&&!be.isDefined(this.result);e.keyCode!==r.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,p,h,r,s,f,i,a,l,t,c,m){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=be.element(t.targetEvent.target));var n=e&&e.controller("mdTheme");if(t.hasTheme=!!n,!t.hasTheme)return;t.themeWatch=n.$shouldWatch;var o=t.theme||n.$mdTheme;o&&(t.scope.theme=o);var r=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||r()})}(e)},onShow:function(e,t,n){be.element(s[0].body).addClass("md-dialog-is-showing");var o=t.find("md-dialog");if(o.hasClass("ng-cloak")){a.warn("$mdDialog: using `` will affect the dialog opening animations.",t[0])}return function(e){e.origin=be.extend({element:null,bounds:null,focus:be.noop},e.origin||{}),e.parent=n(e.parent,i),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=m.getLastInteractionType());function t(e,t){var n=be.element(e||{});if(n&&n.length){var o=be.isFunction(n[0].getBoundingClientRect);return be.extend(t||{},{element:o?n:ge,bounds:o?n[0].getBoundingClientRect():be.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:be.bind(n,n.focus)})}}function n(e,t){return be.isString(e)&&(e=s[0].querySelector(e)),be.element(e||t)}}(n),function(n,t){var e="alert"===t.$type?"alertdialog":"dialog",o=n.find("md-dialog-content"),r=n.attr("id"),i="dialogContent_"+(r||p.nextUid());n.attr({role:e,tabIndex:"-1"}),0===o.length&&(o=n,r&&(i=r));o.attr("id",i),n.attr("aria-describedby",i),t.ariaLabel?d.expect(n,"aria-label",t.ariaLabel):d.expectAsync(n,"aria-label",function(){if(t.title)return t.title;var e=o.text().split(/\s+/);return 3"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?""+(n||"")+"":n||"")+""}};function b(e,t){var n="fixed"===f.getComputedStyle(s[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,r=o?Math.min(s[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,i={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:r?r+"px":"100%"}),function(){e.css(i)}}}}function $e(e){return{restrict:"E",link:e}}function Me(i){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n,o=e.children(),r=i.prefixer().hasAttribute(o,"ng-repeat");n=e.find("md-button"),be.forEach(n,function(e){e.setAttribute("tabindex",-1)}),r?o.addClass("md-fab-action-item"):o.wrap('
')}}}function ye(t,i,a,d,r,n){var o,s=this,e=0;function l(e){"click"==e.type&&function(e){var t=e.target?function(e){return d.getClosest(e,"button")||d.getClosest(e,"md-button")}(e.target):null;t&&!t.disabled&&(!function(e){return d.getClosest(e,"md-fab-trigger")}(e.target)||s.toggle());!function(e){return d.getClosest(e,"md-fab-actions")}(e.target)||s.close()}(e),"focusout"!=e.type||o||(o=n(function(){s.close()},100,!1)),"focusin"==e.type&&o&&(n.cancel(o),o=null)}function c(){s.currentActionIndex=-1}function m(){0r)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+r+")";var n=0,o=0;for(;o-n",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(e,t,n,o){t.attr("role","listitem");var r=i.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,be.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,r(),o.invalidateLayout()}),be.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function ke(){return{template:"
",transclude:!0}}function xe(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function Ne(m,u,p,h){var f=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(r,o){var e,i,t,n=r[0].querySelectorAll(".md-secondary"),a=r;if(r[0].setAttribute("role","listitem"),o.ngClick||o.ngDblclick||o.ngHref||o.href||o.uiSref||o.ngAttrUiSref)s("button");else if(!r.hasClass("md-no-proxy")){for(var d=0;d')).append(r.contents()),r.addClass("md-proxy-focus");else{a=be.element('
');var t=be.element('');if(l(r[0],t[0]),!t.attr("aria-label")){t.attr("aria-label",m.getText(r));var n=a[0].querySelector(".md-list-item-inner");n&&n.setAttribute("aria-hidden","true")}r.hasClass("md-no-focus")&&t.addClass("md-no-focus"),a.prepend(t),a.children().eq(1).append(r.contents()),r.addClass("_md-button-wrap")}r[0].setAttribute("tabindex","-1"),r.append(a)}function l(t,n,e){var o=p.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);e&&(o=o.concat(p.prefixer(e))),be.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function c(e){for(var t=e.attributes,n=0;n'),be.forEach(n,function(e){!function(e,t){if(e&&!function(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"===t||"BUTTON"===t}(e)&&e.hasAttribute("ng-click")){m.expect(e,"aria-label");var n=be.element('');l(e,n[0],["ng-if","ng-hide","ng-show"]),e.setAttribute("tabindex","-1"),n.append(e),e=n[0]}e&&(!c(e)||!o.ngClick&&function(e){return-1!==f.indexOf(e.nodeName.toLowerCase())}(e))&&be.element(e).removeClass("md-secondary"),r.addClass("md-with-secondary"),t.append(e)}(e,t)}),a.append(t),function(){for(var e,t=["md-switch","md-checkbox"],n=0;n or ")},a.$mdMenu={open:this.open,close:this.close}}function He(a){var d="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(e){e.addClass("md-menu");var t=e.children()[0],n=a.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);var o="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&o&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(d+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(d+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var r=e[0].querySelectorAll("md-menu"),i=parseInt(e[0].getAttribute("md-nest-level"),10)||0;r&&be.forEach(a.nodesToArray(r),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",i+1)});return s}};function s(e,t,n,o){var r=o[0],i=!!o[1],a=o[1],d=be.element('
'),s=t.children()[1];t.addClass("_md"),s.hasAttribute("role")||s.setAttribute("role","menu"),d.append(s),t.on("$destroy",function(){d.remove()}),t.append(d),d[0].style.display="none",r.init(d,{isInMenuBar:i,mdMenuBarCtrl:a})}}function Ie(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var w=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(y,e,s,C,T,o,r,i,l,c){var A=y.prefixer(),m=y.dom.animator;return{parent:"body",onShow:function(a,n,d){(function(){if(!d.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");be.extend(d,{alreadyOpen:!1,isRemoved:!1,target:be.element(d.target),parent:be.element(d.parent),menuContentEl:be.element(n[0].querySelector("md-menu-content"))})})(),d.menuContentEl[0]?e.inherit(d.menuContentEl,d.target):c.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return d.cleanupResizing=function(){var e=function(t,n){return r.throttle(function(){if(!d.isRemoved){var e=h(t,n);t.css(m.toCss(e))}})}(n,d);return T.addEventListener("resize",e),T.addEventListener("orientationchange",e),function(){T.removeEventListener("resize",e),T.removeEventListener("orientationchange",e)}}(),d.hideBackdrop=function(e,t,n){if(n.nestLevel)return be.noop;n.disableParentScroll&&!y.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=y.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=y.createBackdrop(e,"md-menu-backdrop md-click-catcher"),l.enter(n.backdrop,n.backdropParent||C[0].body));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll()}}(a,0,d),function(){return d.parent.append(n),n[0].style.display="",o(function(e){var t=h(n,d);n.removeClass("md-leave"),i(n,{addClass:"md-active",from:m.toCss(t),to:m.toCss({transform:""})}).start().then(e)})}().then(function(e){return d.alreadyOpen=!0,d.cleanupInteraction=function(){if(!d.menuContentEl[0])return be.noop;d.menuContentEl.on("keydown",r),d.menuContentEl[0].addEventListener("click",i,!0);var e=d.menuContentEl[0].querySelector(A.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=d.menuContentEl[0].children.length,n=0;n
'),s='';d.html(a),d.attr("tabindex","0"),be.isDefined(e.mdPreventMenuClose)&&d.attr("md-prevent-menu-close",e.mdPreventMenuClose),o.html(""),o.append(be.element(s)),o.append(d),o.addClass("md-indent").removeClass(i),l("role","checkbox"===r?"menuitemcheckbox":"menuitemradio",d),t="ng-disabled",n=c.prefixer(t),be.forEach(n,function(e){if(o[0].hasAttribute(e)){var t=o[0].getAttribute(e);d[0].setAttribute(e,t),o[0].removeAttribute(e)}})}return function(e,t,n,o){var r=o[0],i=o[1];r.init(i)};function l(e,t,n){(n=n||o)instanceof be.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}function Re(i,a,d,s){return{restrict:"E",transclude:!0,controller:Fe,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'
',link:function(e,t,n,o){function r(){o.width!==d.innerWidth&&(o.updateSelectedTabInkBar(),o.width=d.innerWidth,e.$digest())}o.width=d.innerWidth,be.element(d).on("resize",s.debounce(r,300)),e.$on("$destroy",function(){be.element(d).off("resize",r)}),a(t),o.navBarAriaLabel||i.expectAsync(t,"aria-label",be.noop)}}}function Fe(e,t,n,o){this._$timeout=n,this._$scope=t,this._$mdConstant=o,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var r=this,i=this._$scope.$watch(function(){return r._navBarEl.querySelectorAll("._md-nav-button").length},function(e){0'),'"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,o,r,i){var a,d,s,l;e(function(){if(d=i[0],s=i[1],l=be.element(o[0].querySelector("._md-nav-button")),d.name||(d.name=be.element(o[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(e){s.onKeydown(e)}),l.on("focus",function(){d._focused=!0}),l.on("click",function(){s.mdSelectedNavItem=d.name,n.$apply()}),d.disabled=m.parseAttributeBoolean(r.disabled,!1),"MutationObserver"in u){var e=o[0],t=new MutationObserver(function(e){m.nextTick(function(){d.disabled=m.parseAttributeBoolean(r[e[0].attributeName],!1)})});t.observe(e,{attributes:!0,attributeFilter:["disabled"]}),a=t.disconnect.bind(t)}else r.$observe("disabled",function(e){d.disabled=m.parseAttributeBoolean(e,!1)});d.navItemAriaLabel||c.expectWithText(l,"aria-label")}),n.$on("destroy",function(){l.off("keydown"),l.off("focus"),l.off("click"),a()})}}}function Ue(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this.isFocused=!1}function je($,M,d,y,p,e){var C=$.requestAnimationFrame||$.webkitRequestAnimationFrame||be.noop,h=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||be.noop,f="determinate",T="indeterminate",A="_md-progress-circular-disabled",w="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'',compile:function(e,t){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),be.isUndefined(t.mdMode)){var n=t.hasOwnProperty("value")?f:T;t.$set("mdMode",n)}else t.$set("mdMode",t.mdMode.trim());return o}};function o(b,s,l){var g,e,t=s[0],a=be.element(t.querySelector("svg")),E=be.element(t.querySelector("path")),n=M.startIndeterminate,o=M.endIndeterminate,r=0,v=0;function c(n,e,t,o,r,i){var a=++v,d=y.now(),s=e-n,l=N(b.mdDiameter),c=S(l),m=t||M.easeFn,u=o||M.duration,p=-90*(r||0),h=i||100;function f(e){E.attr("stroke-dashoffset",k(l,c,e,h)),E.attr("transform","rotate("+p+" "+l/2+" "+l/2+")")}e===n?f(e):g=C(function e(){var t=$.Math.max(0,$.Math.min(y.now()-d,u));f(m(t,n,s,u)),a===v&&t
',compile:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),o}};function o(e,n,t){var o;m(n);var r=t.hasOwnProperty("disabled"),i=u.dom.animator.toCss,a=be.element(n[0].querySelector(".md-bar1")),d=be.element(n[0].querySelector(".md-bar2")),s=be.element(n[0].querySelector(".md-container"));function l(){var e=(t.mdMode||"").trim();if(e)switch(e){case p:case h:case f:case b:break;default:e=h}return e}function c(e,t){if(!r&&l()){var n=u.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),o=i({transform:n});be.element(e).css(o)}}n.attr("md-mode",l()).toggleClass(g,r),function(){if(be.isUndefined(t.mdMode)){var e=be.isDefined(t.value)?p:h;n.attr("md-mode",e),t.mdMode=e}}(),t.$observe("value",function(e){var t=E(e);n.attr("aria-valuenow",t),l()!=b&&c(d,t)}),t.$observe("mdBufferValue",function(e){c(a,E(e))}),t.$observe("disabled",function(e){r=!0===e||!1===e?!!e:be.isDefined(e),n.toggleClass(g,r),s.toggleClass(o,!r)}),t.$observe("mdMode",function(e){switch(o&&s.removeClass(o),e){case b:case f:case p:case h:s.addClass(o="md-mode-"+e);break;default:s.addClass(o="md-mode-"+h)}})}function E(e){return Math.max(0,Math.min(e||0,100))}}function qe(s,l){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(o,r,t){var i=o.$on("$md-resize-enable",function(){i();var e=r[0],n=e.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(e):{};o.$watch(t[s],function(e){if(!!e===l){a.nextTick(function(){o.$broadcast("$md-resize")});var t={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(r,t).then(function(){o.$broadcast("$md-resize")})}})})}}}]}function Ve(o,r,i,a){var d="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",s={find:function(e,t){var n=o.get(e);return n||t?n:(a.error(r.supplant(d,[e||""])),ge)},waitFor:l};return function(e,t){if(be.isUndefined(e))return s;var n=!0===t,o=s.find(e,n);return!o&&n?s.waitFor(e):!o&&be.isUndefined(t)?function(e,t){function n(){return!1}function o(){return i.when(r.supplant(d,[t||""]))}return be.extend({isLockedOpen:n,isOpen:n,toggle:o,open:o,close:o,onClose:be.noop,then:function(e){return l(t).then(e||be.noop)}},e)}(s,e):o};function l(e){return o.when(e).catch(a.error)}}function We(o,g,E,v,$,M,e,y,C,T,A,w,_){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),t}};function t(r,i,e,t){var a,d,s,l,c,m=null,u=null,p=T.when(!0),n=y(e.mdIsLockedOpen),h=be.element(w);function f(e){return e.keyCode===E.KEY_CODE.ESCAPE?b(e):T.when(!0)}function b(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((m=A[0].querySelector(e.mdDisableScrollTarget))?m=be.element(m):C.warn(g.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m=m||i.parent(),e.hasOwnProperty("mdDisableBackdrop")||(d=g.createBackdrop(r,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(s=!0),i.addClass("_md"),v(i),d&&v.inherit(d,i),i.on("$destroy",function(){d&&d.remove(),t.destroy()}),r.$on("$destroy",function(){d&&d.remove()}),r.$watch(function(){return n(r.$parent,{$mdMedia:o})},function(e,t){(r.isLockedOpen=e)===t?i.toggleClass("md-locked-open",!!e):M[e?"addClass":"removeClass"](i,"md-locked-open");d&&d.toggleClass("md-locked-open",!!e)}),r.$watch("isOpen",function(e){var t,n=g.findFocusTarget(i)||i,o=i.parent();s||(o[e?"on":"off"]("keydown",f),d&&d[e?"on":"off"]("click",b));t=function(e,t){var n=i[0],o=e[0].scrollTop;if(t&&o){c={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var r={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};i.css(r),d.css(r)}if(!t&&c)return function(){n.style.top=c.top,n.style.bottom=c.bottom,n.style.height=c.height,d[0].style.top=null,d[0].style.bottom=null,d[0].style.height=null,c=null}}(o,e),e&&(u=A[0].activeElement,l=$.getLastInteractionType());return function(e){e&&!a?(a=m.css("overflow"),m.css("overflow","hidden")):be.isDefined(a)&&(m.css("overflow",a),a=ge)}(e),p=T.all([e&&d?M.enter(d,o):d?M.leave(d):T.when(!0),M[e?"removeClass":"addClass"](i,"md-closed")]).then(function(){r.isOpen&&(_(function(){h.triggerHandler("resize")}),n&&n.focus()),t&&t()})}),t.$toggleOpen=function(e){return r.isOpen===e?T.when(!0):(r.isOpen&&t.onCloseCb&&t.onCloseCb(),T(function(t){r.isOpen=e,g.nextTick(function(){p.then(function(e){!r.isOpen&&u&&"keyboard"===l&&(u.focus(),u=null),t(e)})})}))}}}function Ye(t,e,n,o,r){var i=this;i.isOpen=function(){return!!t.isOpen},i.isLockedOpen=function(){return!!t.isLockedOpen},i.onClose=function(e){return i.onCloseCb=e,i},i.open=function(){return i.$toggleOpen(!0)},i.close=function(){return i.$toggleOpen(!1)},i.toggle=function(){return i.$toggleOpen(!t.isOpen)},i.$toggleOpen=function(e){return o.when(t.isOpen=e)};var a=e.mdComponentId,d=a&&-1o?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),c.throttle(r))}e.on("scroll touchmove",function(){t||(t=!0,c.throttle(r),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),n=+m.now()})}(r),r.on("$scrollstart",i),r.on("$scroll",function e(){var t=r.prop("scrollTop");var n=(e.prevScrollTop||0)=o.next.top-o.current.height)return void s(o.current,t+(o.next.top-t-o.current.height))}o.current&&s(o.current,t)}),o={prev:null,current:null,next:null,items:[],add:function(n,e){e.addClass("md-sticky-clone");var t={element:n,clone:e};return o.items.push(t),m.nextTick(function(){r.prepend(t.clone)}),i(),function(){o.items.forEach(function(e,t){e.element[0]===n[0]&&(o.items.splice(t,1),e.clone.remove())}),i()}},refreshElements:t};function t(){var e;o.items.forEach(a),o.items=o.items.sort(function(e,t){return e.topo.items[n].top){e=o.items[n];break}d(e)}function a(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==r[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var n=m.floatingScrollbars()?"0":ge;m.bidi(e.clone,"margin-left",e.left,n),m.bidi(e.clone,"margin-right",n,e.right)}function d(e){if(o.current!==e){o.current&&(s(o.current,null),n(o.current,null)),e&&n(e,"active"),o.current=e;var t=o.items.indexOf(e);o.next=o.items[t+1],o.prev=o.items[t-1],n(o.next,"next"),n(o.prev,"prev")}}function n(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function s(e,t){e&&(null===t||t===ge?e.translateY&&(e.translateY=null,e.clone.css(l.CSS.TRANSFORM,"")):(e.translateY=t,m.bidi(e.clone,l.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)","translateY("+t+"px)")))}}(o),o.$element.data("$$sticky",r));var i=n||d(t.clone())(e),a=r.add(t,i);e.$on("$destroy",a)}}}function Ge(d,s,l,c,m){return{restrict:"E",replace:!0,transclude:!0,template:'
',link:function(n,o,e,t,r){l(o),o.addClass("_md"),c.prefixer().removeAttribute(o,"ng-repeat");var i=o[0].outerHTML;function a(e){return be.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),m.expect(o,"aria-level","2"),r(n,function(e){a(o).append(e)}),o.hasClass("md-no-sticky")||r(n,function(e){var t=s('")(n);c.nextTick(function(){a(t).append(e)}),d(n,o,t)})}}}function Xe(e){t.$inject=["$parse"];var i="md"+e,a="$md."+e.toLowerCase();return t;function t(r){return{restrict:"A",link:function(n,e,t){var o=r(t[i]);e.on(a,function(e){var t=e.currentTarget;n.$applyAsync(function(){o(n,{$event:e,$target:{current:t}})})})}}}}function Ze(e,m,u,p,h,f,b){var n=e[0];return{restrict:"E",priority:u.BEFORE_NG_ARIA,transclude:!0,template:'
',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(e,t){var c=n.compile(e,t).post;return e.addClass("md-dragging"),function(t,n,e,o){o[0];var r=o[1]||m.fakeNgModel(),i=(o[2],null);null!=e.disabled?i=function(){return!0}:e.ngDisabled&&(i=p(e.ngDisabled));var a,d=be.element(n[0].querySelector(".md-thumb-container")),s=be.element(n[0].querySelector(".md-container")),l=be.element(n[0].querySelector(".md-label"));h(function(){n.removeClass("md-dragging")}),c(t,n,e,o),i&&t.$watch(i,function(e){n.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?n.prepend(l):n.prepend(s),n.toggleClass("md-inverted",t)}),f.register(s,"drag"),s.on("$md.dragstart",function(e){if(i&&i(t))return;e.stopPropagation(),n.addClass("md-dragging"),a={width:d.prop("offsetWidth")}}).on("$md.drag",function(e){if(!a)return;e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/a.width,n=r.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),d.css(u.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),a.translate=n}).on("$md.dragend",function(e){if(!a)return;e.stopPropagation(),n.removeClass("md-dragging"),d.css(u.CSS.TRANSFORM,""),(r.$viewValue?a.translate<.5:.5 md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function H(){return p.centerTabs&&!p.shouldPaginate}function I(e){if(-1===e)return-1;var t,n,o=Math.max(p.tabs.length-e,e);for(t=0;t<=o;t++){if((n=p.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=p.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function O(e,n,o){Object.defineProperty(p,e,{get:function(){return o},set:function(e){var t=o;o=e,n&&n(e,t)}})}function P(){p.maxTabWidth=R(),p.shouldPaginate=function(){var e;if(p.noPagination||!g)return!1;var t=c.prop("clientWidth");return be.forEach(D().tabs,function(e){t-=e.offsetWidth}),e=t<0,m.msie&&(D().paging.style.width=e?"999999px":ge),e}()}function L(e){var t=0;return be.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function R(){var e=D().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function F(e,t){var n,o=t?"focusIndex":"selectedIndex",r=p[o];for(n=r+e;p.tabs[n]&&p.tabs[n].scope.disabled;n+=e);n=(r+e+p.tabs.length)%p.tabs.length,p.tabs[n]&&(p[o]=n)}function B(){p.styleTabItemFocus="keyboard"===a.getLastInteractionType();var e=D().tabs[p.focusIndex];e&&e.focus()}function U(e){var t=D();if(be.isNumber(e)||(e=p.focusIndex),t.tabs[e]&&!p.shouldCenterTabs){var n=t.tabs[e],o=n.offsetLeft,r=n.offsetWidth+o;if(0!==e)if(W()){var i=L(Array.prototype.slice.call(t.tabs,0,e)),a=L(Array.prototype.slice.call(t.tabs,0,e+1));p.offsetLeft=Math.min(p.offsetLeft,V(i)),p.offsetLeft=Math.max(p.offsetLeft,V(a-t.canvas.clientWidth))}else p.offsetLeft=Math.max(p.offsetLeft,V(r-t.canvas.clientWidth+32)),p.offsetLeft=Math.min(p.offsetLeft,V(o));else p.offsetLeft=0}}function j(){p.selectedIndex=I(p.selectedIndex),p.focusIndex=I(p.focusIndex)}function z(){if(!p.dynamicHeight)return c.css("height","");if(!p.tabs.length)return f.push(z);var e=D(),t=e.contents[p.selectedIndex],n=t?t.offsetHeight:0,o=e.wrapper.offsetHeight,r=n+o,i=c.prop("clientHeight");if(i!==r){"bottom"===c.attr("md-align-tabs")&&(i-=o,r-=o,c.attr("md-border-bottom")!==ge&&++i),h=!0;var a={height:i+"px"},d={height:r+"px"};c.css(a),s(c,{from:a,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){c.css({transition:"none",height:""}),m.nextTick(function(){c.css("transition","")}),h=!1})}}function q(e,t){if(!p.noInkBar){var n=D();if(n.tabs[p.selectedIndex])if(p.tabs.length)if(c.prop("offsetParent")){var o=p.selectedIndex,r=n.paging.offsetWidth,i=n.tabs[o],a=i.offsetLeft,d=r-a-i.offsetWidth;if(p.shouldCenterTabs){var s=L(n.tabs);sp.selectedIndex},shouldRender:function(){return p.dynamicHeight||this.isActive()},hasFocus:function(){return p.styleTabItemFocus&&p.hasFocus&&this.getIndex()===p.focusIndex},id:m.nextUid(),hasContent:!(!e.template||!e.template.trim())},r=be.extend(o,e);be.isDefined(t)?p.tabs.splice(t,0,r):p.tabs.push(r);return function(){f.forEach(function(e){m.nextTick(e)}),f=[]}(),function(){var e,t=!1;for(e=0;ee.canvas.clientWidth+p.offsetLeft},p.canPageBack=function(){return 0
'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}function tt(s,l){return{require:"^?mdTabs",link:function(e,t,n,o){if(o){var r,i,a=function(){o.updatePagination(),o.updateInkBarStyles()};if("MutationObserver"in l){(r=new MutationObserver(a)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),i=r.disconnect.bind(r)}else{var d=s.debounce(a,15,null,!1);t.on("DOMSubtreeModified",d),i=t.off.bind(t,"DOMSubtreeModified",d)}e.$on("$destroy",function(){i()})}}}}function nt(a,d){return{restrict:"A",link:function(e,t,n,o){if(!o)return;var r=o.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),a(t.contents())(r),d.nextTick(function(){e.$watch("connected",function(e){!1===e?o.enableDisconnect&&d.disconnectScope(r):i()}),e.$on("$destroy",i)});function i(){o.enableDisconnect&&d.reconnectScope(r)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}function ot(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function rt(e){n.$inject=["$mdToast","$scope","$log"],t.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document","$q"];var u,p="ok";return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:t}).addPreset("simple",{argOption:"textContent",methods:["textContent","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(e,t){return{template:'
{{ toast.content }} {{ toast.dismissHint }} {{ toast.actionHint }} {{ toast.action }}
',controller:n,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",function(e){u=e});function n(t,n,o){this.$onInit=function(){var e=this;e.highlightAction&&(n.highlightClasses=["md-highlight",e.highlightClass]),e.action&&!e.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),e.actionKey&&!e.actionHint&&(e.actionHint='Press Control-"'+e.actionKey+'" to '),e.dismissHint||(e.dismissHint="Press Escape to dismiss."),n.$watch(function(){return u},function(){e.content=u}),this.resolve=function(){t.hide(p)}}}function t(a,d,s,l,c,o){var m="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,o,r){u=r.textContent;var i=!l("gt-sm");o=s.extractElementByName(o,"md-toast",!0),r.element=o,r.onSwipe=function(e){var t=e.type.replace("$md.",""),n=t.replace("swipe","");"down"===n&&-1!==r.position.indexOf("top")&&!i||"up"===n&&(-1!==r.position.indexOf("bottom")||i)||("left"===n||"right"===n)&&i||(o.addClass("md-"+t),s.nextTick(d.cancel))},r.openClass=function(e){return l("gt-xs")?"md-toast-open-"+(-1');r.append(be.element(n.children[o].childNodes)),n.children[o].appendChild(r[0])}return n.innerHTML}return e||""}}}}function it(f,b,g,e,E,v){var $=be.bind(null,g.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(u,p,h){p.addClass("_md"),e(p),g.nextTick(function(){p.addClass("_md-toolbar-transitions")},!1),be.isDefined(h.mdScrollShrink)&&function(){var n,o,r=be.noop,i=0,a=0,d=h.mdShrinkSpeedFactor||.5,s=f.throttle(t),l=g.debounce(e,5e3);u.$on("$mdContentLoaded",c),h.$observe("mdScrollShrink",function(e){var t=g.getSiblings(p,"md-content");!o&&t.length&&c(null,t[0]);!1===(e=u.$eval(e))?r():r=m()}),h.ngShow&&u.$watch(h.ngShow,e);h.ngHide&&u.$watch(h.ngHide,e);function c(e,t){t&&p.parent()[0]===t.parent()[0]&&(o&&o.off("scroll",s),o=t,r=m())}function t(e){var t=e?e.target.scrollTop:a;l(),i=Math.min(n/d,Math.max(0,i+t-a)),p.css(b.CSS.TRANSFORM,$([-i*d])),o.css(b.CSS.TRANSFORM,$([(n-i)*d])),a=t,g.nextTick(function(){var e=p.hasClass("md-whiteframe-z1");e&&!i?E.removeClass(p,"md-whiteframe-z1"):!e&&i&&E.addClass(p,"md-whiteframe-z1")})}function m(){return o?(o.on("scroll",s),o.attr("scroll-shrink","true"),v(e),function(){o.off("scroll",s),o.attr("scroll-shrink","false"),e()}):be.noop}function e(){var e=-(n=p.prop("offsetHeight"))*d+"px";o.css({"margin-top":e,"margin-bottom":e}),t()}u.$on("$destroy",r)}()}}}function at(E,v,$,M,y,C,T,A){var w="focus touchstart mouseenter",_="blur touchcancel mouseleave",k={top:{x:T.xPosition.CENTER,y:T.yPosition.ABOVE},right:{x:T.xPosition.OFFSET_END,y:T.yPosition.CENTER},bottom:{x:T.xPosition.CENTER,y:T.yPosition.BELOW},left:{x:T.xPosition.OFFSET_START,y:T.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(a,o,d){var r,e,i,s,l,c="md-tooltip-"+C.nextUid(),m=C.getParentWithPointerEvents(o),u=$.throttle(f),p=!1,h=null;function t(){a.mdZIndex=a.mdZIndex||100,a.mdDelay=a.mdDelay||0,k[a.mdDirection]||(a.mdDirection="bottom")}function n(e){var t=e||y(o.text().trim())(a.$parent);(m.attr("aria-label")||m.attr("aria-labelledby"))&&!m.attr("md-labeled-by-tooltip")||(m.attr("aria-label",t),m.attr("md-labeled-by-tooltip")||m.attr("md-labeled-by-tooltip",c))}function f(){t(),s&&s.panelEl&&s.panelEl.removeClass(r),r="md-origin-"+a.mdDirection,e=k[a.mdDirection],i=T.newPanelPosition().relativeTo(m).addPanelPosition(e.x,e.y),s&&s.panelEl&&(s.panelEl.addClass(r),s.updatePosition(i))}function b(e){b.queued&&b.value===!!e||!b.queued&&a.mdVisible===!!e||(b.value=!!e,b.queued||(e?(b.queued=!0,l=E(function(){a.mdVisible=b.value,b.queued=!1,l=null,a.visibleWatcher||g(a.mdVisible)},a.mdDelay)):C.nextTick(function(){a.mdVisible=!1,a.visibleWatcher||g(!1)})))}function g(e){e?function(){if(!o[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!s){var e=be.element(document.body),t=T.newPanelAnimation().openFrom(m).closeTo(m).withAnimation({open:"md-show",close:"md-hide"}),n={id:c,attachTo:e,contentElement:o,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:i,zIndex:a.mdZIndex,focusOnOpen:!1,onDomAdded:function(){s.panelEl.addClass(r)}};s=T.create(n)}s.open().then(function(){s.panelEl.attr("role","tooltip")})}():s&&s.close()}t(),n(),o.detach(),f(),function(){if(m[0]&&"MutationObserver"in v){var e=new MutationObserver(function(e){!function(e){return e.some(function(e){return"disabled"===e.attributeName&&m[0].disabled}),!1}(e)||C.nextTick(function(){b(!1)})});e.observe(m[0],{attributes:!0})}function t(){b(!1)}function n(){h=document.activeElement===m[0]}function o(e){"focus"===e.type&&h?h=!1:a.mdVisible||(m.on(_,r),b(!0),"touchstart"===e.type&&m.one("touchend",function(){C.nextTick(function(){M.one("touchend",r)},!1)}))}function r(){((a.hasOwnProperty("mdAutohide")?a.mdAutohide:d.hasOwnProperty("mdAutohide"))||p||M[0].activeElement!==m[0])&&(l&&(E.cancel(l),b.queued=!1,l=null),m.off(_,r),m.triggerHandler("blur"),b(!1)),p=!1}function i(){p=!0}h=!1,A.register("scroll",t,!0),A.register("blur",n),A.register("resize",u),a.$on("$destroy",function(){A.deregister("scroll",t,!0),A.deregister("blur",n),A.deregister("resize",u),m.off(w,o).off(_,r).off("mousedown",i),r(),e&&e.disconnect()}),m.on("mousedown",i),m.on(w,o)}(),function(){if(o[0]&&"MutationObserver"in v){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||a.visibleWatcher||(a.visibleWatcher=a.$watch("mdVisible",g))})});e.observe(o[0],{attributes:!0}),d.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("mdVisible",g))}else a.visibleWatcher=a.$watch("mdVisible",g);function t(){a.$destroy()}a.$watch("mdDirection",f),o.one("$destroy",t),m.one("$destroy",t),a.$on("$destroy",function(){b(!1),s&&s.destroy(),e&&e.disconnect(),o.remove()}),-1d.clientHeight+1,a=0
'),o.append(n));function r(e){e.preventDefault()}return n.on("wheel touchmove",r),function(){n.off("wheel touchmove",r),!t.disableScrollMask&&n[0].parentNode&&n[0].parentNode.removeChild(n[0])}}(t,n);return f.disableScrollAround._restoreScroll=function(){--f.disableScrollAround._count<=0&&(delete f.disableScrollAround._viewPortTop,o(),r(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===ge){var e=be.element("
").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),s[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth===e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!1,!0,L,{},0,0,0,0,!1,!1,!1,!1,0,null),t.$material=!0,t.$focus=!0,n.dispatchEvent(t)},createBackdrop:function(e,t){return n(f.supplant('',[t]))(e)},supplant:function(e,i,t){return t=t||/\{([^{}]*)\}/g,e.replace(t,function(t,e){var n=e.split("."),o=i;try{for(var r in n)n.hasOwnProperty(r)&&(o=o[n[r]])}catch(e){o=t}return"string"==typeof o||"number"==typeof o?o:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:be.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:be.noop}},debounce:function(n,o,r,i){var a;return function(){var e=r,t=Array.prototype.slice.call(arguments);d.cancel(a),a=d(function(){a=ge,n.apply(e,t)},o||10,i)}},throttle:function(n,o){var r;return function(){var e=arguments,t=f.now();(!r||o");s[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],o=0;o=r&&i<=o&&d()},o.on(u,p),y(o,s),b(d,r+1.5*n,!1)}),e;function d(){if(!r)return r=!0,u&&p&&o.off(u,p),g(o,s),function(e,t){M(e,t),y(e,t)}(o,s),w(l,function(e){c.style[A(e[0])]=""}),e.complete(!0),e}}}}}])),S.$inject=["$$rAF","$log","$window","$interpolate"],be.module("material.core").provider("$mdAria",function(){var r={showWarnings:!0};return{disableWarnings:function(){r.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(e,t,n,o){return S.apply(r,arguments)}]}}),be.module("material.core").provider("$mdCompiler",D),D.$inject=["$compileProvider"],function(){r.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"];var i,a,s={},l=6,c=!(n.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"]),d=!1,m=null,u=!1;function e(){}function r(o,e,n,t){var r=t.getTouchAction(),i=void 0!==L.jQuery&&be.element===L.jQuery,a={handler:function(e,t){var n=new o(e);return be.extend(n,t),s[e]=n,a},register:function(e,t,n){var o=s[t.replace(/^\$md./,"")];if(o)return o.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(s).join(", "))},isAndroid:t.isAndroid,isIos:t.isIos,isHijackingClicks:(t.isIos||t.isAndroid)&&!i&&!c};function d(n){return function(e,t){t.distancethis.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){r&&(this.oldTouchAction=e[0].style[r],e[0].style[r]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction?e[0].style[r]=this.oldTouchAction:e[0].style[r]=null},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;r||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(o=this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=p(e),b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function t(e){this.name=e,this.state={}}function n(e,r,n){if(!d){!u&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=n.isIos?be.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||f(e)?(m=null,"label"===e.target.tagName.toLowerCase()&&(m={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),m=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),u=!0);be.element(document).on("mousedown touchstart pointerdown",function(e){if(i)return;var t=+Date.now();if(a&&!h(e,a)&&t-a.endTime<1500)return;i=p(e),o("start",e)}).on("mousemove touchmove pointermove",function(e){if(!i||!h(e,i))return;b(e,i),o("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!i||!h(e,i))return;b(e,i),i.endTime=+Date.now(),"pointercancel"!==e.type&&o("end",e);a=i,i=null}).on("$$mdGestureReset",function(){a=i=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||f(e)||"mousedown"===e.type&&(E(e.target)||E(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function o(e,t){var n;for(var o in s)(n=s[o])instanceof r&&("start"===e&&n.cancel(),n[e](t,i))}}function p(e){var t=g(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function h(e,t){return e&&t&&e.type.charAt(0)===t.type}function f(e){return m&&m.x===e.x&&m.y===e.y}function b(e,t){var n=g(e),o=t.x=n.pageX,r=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=r-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=0=this.$mdUtil.now()-t},be.module("material.core").provider("$$interimElement",function(){return t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=t,e;function e(r){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],i={},l={presets:{}},o={setDefaults:function(e){return l.optionsFactory=e.options,l.methods=(e.methods||[]).concat(n),o},addPreset:function(e,t){if((t=t||{}).methods=t.methods||[],t.options=t.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error("Preset '"+e+"' in "+r+" is reserved!");if(-1 body")),"#comment"===(n=n||h[0]).nodeName&&(n=m[0].body),be.element(n))}(n,t),t.themable&&b(n),n}(e,i),i.cleanupElement=e.cleanup,s=function(n,o,e){var t=o.onShowing||be.noop,r=o.onComplete||be.noop;try{t(o.scope,n,o,e)}catch(e){return u.reject(e)}return u(function(e,t){try{u.when(o.onShow(o.scope,n,o)).then(function(){r(o.scope,n,o),function(){var e,t=be.noop;i.hideDelay&&(e=p(c.hide,i.hideDelay),t=function(){p.cancel(e)}),i.cancelAutoHide=function(){t(),i.cancelAutoHide=ge}}(),e(n)},t)}catch(e){t(e.message)}})}(d,i,e.controller).then(t,o)}).catch(o)})},remove:function(e,t,n){return d?((i=be.extend(i||{},n||{})).cancelAutoHide&&i.cancelAutoHide(),i.element.triggerHandler("$mdInterimElementRemove"),!0===i.$destroy?l(i.element,i).then(function(){t&&r(e)||o(e)}):(u.when(s).finally(function(){l(i.element,i).then(function(){t?r(e):o(e)},r)}),a.deferred.promise)):u.when(!1);function o(e){a.deferred.resolve(e)}function r(e){a.deferred.reject(e)}}};function l(o,r){var i=r.onRemoving||be.noop;return u(function(e,t){try{var n=u.when(r.onRemove(r.scope,o,r)||!0);i(o,n),r.$destroy?(e(o),!r.preserveScope&&r.scope&&n.then(function(){r.scope.$destroy()})):n.then(function(){!r.preserveScope&&r.scope&&r.scope.$destroy(),e(o)},t)}catch(e){t(e.message)}})}}}}}),E=/(-gt)?-(sm|md|lg|print)/g,v=/\s+/g,$=["grow","initial","auto","none","noshrink","nogrow"],M=["row","column"],y=["","start","center","end","stretch","space-around","space-between"],C=["","start","center","end","stretch"],T={enabled:!0,breakpoints:[]},p=be.module("material.core.layout",["ng"]),h=/^((?:x|data)[:\-_])/i,f=/([:\-_]+(.))/g,b=["layout","flex","flex-order","flex-offset","layout-align"],g=["show","hide","layout-padding","layout-margin"],be.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){be.forEach(b,function(e){var t=n?e+"-"+n:e;p.directive(I(t),function(i){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(F(i,0,e,m),B(i,z(i,t,""),U(0,i,t)),n=o),n||be.noop}}}];function o(e,t,n){var o=function(n,o){var r;return function(e){var t=B(o,e||"");be.isDefined(t)&&(r&&n.removeClass(r),r=t?o+"-"+t.trim().replace(v,"-"):o,n.addClass(r))}}(t,i),r=n.$observe(n.$normalize(i),o);o(z(i,n,"")),e.$on("$destroy",function(){r()})}}(t))}),be.forEach(g,function(e){var t=n?e+"-"+n:e;p.directive(I(t),R(t))})}),p.provider("$$mdLayout",function(){return{$get:be.noop,validateAttributeValue:B,validateAttributeUsage:F,disableLayouts:function(e){T.enabled=!0!==e}}}).directive("mdLayoutCss",P).directive("ngCloak",(u="ng-cloak",["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return T.enabled?(e.addClass(u),function(e,t){n(function(){t.removeClass(u)},10,!1)}):be.noop}}}])).directive("layoutWrap",R("layout-wrap")).directive("layoutNowrap",R("layout-nowrap")).directive("layoutNoWrap",R("layout-no-wrap")).directive("layoutFill",R("layout-fill")).config(O),V.$inject=["$timeout"],be.module("material.core").service("$mdLiveAnnouncer",V),V.prototype.announce=function(e,t){t=t||"polite";var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},V.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e},be.module("material.core.meta",[]).provider("$$mdMeta",function(){var o=be.element(document.head),r={};function i(e){if(r[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(r[e]=be.element(t),!0)}var e={setMeta:function(e,t){if(i(e),r[e])r[e].attr("content",t);else{var n=be.element('');o.append(n),r[e]=n}return function(){r[e].attr("content",""),r[e].remove(),delete r[e]}},getMeta:function(e){if(!i(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return r[e].attr("content")}};return be.extend({},e,{$get:function(){return e}})}),W.$inject=["$log","$q"],be.module("material.core").factory("$mdComponentRegistry",W),Y.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdButtonInkRipple",Y),K.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdCheckboxInkRipple",K),G.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdListInkRipple",G),function(){i.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],be.module("material.core").provider("$mdInkRipple",function(){var r=!1;return{disableInkRipple:function(){r=!0},$get:["$injector",function(o){return{attach:function(e,t,n){return r||t.controller("mdNoInk")?be.noop:o.instantiate(i,{$scope:e,$element:t,rippleOptions:n})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",n).directive("mdNoBar",n).directive("mdNoStretch",n);function e(o,r){return{controller:be.noop,link:function(e,t,n){n.hasOwnProperty("mdInkRippleCheckbox")?r.attach(e,t):o.attach(e,t)}}}function i(e,t,n,o,r,i,a){this.$window=o,this.$timeout=r,this.$mdUtil=i,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,i.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=be.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=be.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(be.bind(e,t),!1))}function n(){return{controller:be.noop}}i.prototype.color=function(e){var t,n,o=this;return be.isDefined(e)&&(o._color=o._parseColor(e)),o._color||o._parseColor(o.inkRipple())||o._parseColor((t=o.options&&o.options.colorElement?o.options.colorElement:[],(n=t.length?t[0]:o.$element[0])?o.$window.getComputedStyle(n).color:"rgb(0,0,0)"))},i.prototype.calculateColor=function(){return this.color()},i.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},i.prototype.bindEvents=function(){this.$element.on("mousedown",be.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",be.bind(this,this.handleMouseup)),this.$element.on("mouseleave",be.bind(this,this.handleMouseup)),this.$element.on("touchmove",be.bind(this,this.handleTouchmove))},i.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)},i.prototype.handleMouseup=function(){this.$timeout(function(){t(this,this.clearRipples)}.bind(this))},i.prototype.handleTouchmove=function(){t(this,this.deleteRipples)},i.prototype.deleteRipples=function(){for(var e=0;e');return this.$element.append(e),e},i.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},i.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&be.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},i.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},i.prototype.createRipple=function(e,t){if(this.isRippleAllowed()){var n,o,r,i=this,a=i.$mdColorUtil,d=be.element('
'),s=this.$element.prop("clientWidth"),l=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(s-e),e),m=2*Math.max(Math.abs(l-t),t),u=(n=this.options.fitRipple,o=c,r=m,n?Math.max(o,r):Math.sqrt(Math.pow(o,2)+Math.pow(r,2))),p=this.calculateColor();d.css({left:e+"px",top:t+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:a.rgbaToRgb(p),borderColor:a.rgbaToRgb(p)}),this.lastRipple=d,this.clearTimeout(),this.timeout=this.$timeout(function(){i.clearTimeout(),i.mousedown||i.fadeInComplete(d)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:p}),this.container.append(d),this.ripples.push(d),d.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){d.addClass("md-ripple-scaled md-ripple-active"),i.$timeout(function(){i.clearRipples()},450,!1)},!1)}},i.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},i.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},i.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),X.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdTabInkRipple",X),be.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 500 600 A100 A200 A400",contrastStrongLightColors:"700 800 900 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200 A400",contrastStrongLightColors:"400 500 600 700 800 900 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 800 900 A200 A400 A700"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 500 600 A100 A200",contrastStrongLightColors:"700 800 900 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastStrongLightColors:"800 900 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastStrongLightColors:"800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastStrongLightColors:"600 700 800 900"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastStrongLightColors:"700 800 900"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastStrongLightColors:"800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastStrongLightColors:"900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"dark",contrastStrongLightColors:"800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"700 800 900 A200 A400 A700",contrastStrongLightColors:"600"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 A700"}}),function(v){function e(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}e.$inject=["$mdThemingProvider"],n.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],t.$inject=["$mdColorPalette","$$mdMetaProvider"],r.$inject=["$injector","$mdTheming"],v.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",o).directive("mdThemesDisabled",function(){return A.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(r);var p,s={},l={name:"dark"},c={name:"light"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",f="",m=x("rgba(0,0,0,0.87)"),u=x("rgba(255,255,255,0.87)"),b=x("rgb(255,255,255)"),g=["primary","accent","warn","background"],a="primary",E={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},$={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}},M={icon:.54,secondary:.54,disabled:.38,hint:.38,divider:.12},y={icon:.87,secondary:.7,disabled:.5,hint:.5,divider:.12},C={icon:1,secondary:.7,disabled:.5,hint:.5,divider:.12};g.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};E[e]||(E[e]=t),$[e]||($[e]=t)});var T=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],A={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,i){s.$inject=["$rootScope","$mdUtil","$q","$log"];var n,a={},m=!(p={}),u="default";v.extend(p,e);var t=function(e){var t=(e=v.isObject(e)?e:{}).theme||"default",n=e.hue||"800",o=p[e.palette]||p[a[t].colors[e.palette||"primary"].name],r=v.isObject(o[n])?o[n].hex:o[n];return"#"!==r.substr(0,1)&&(r="#"+r),function(e){var t=i.setMeta("theme-color",e),n=i.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}}(r)};return n={definePalette:function(e,t){return t=t||{},p[e]=o(e,t),n},extendPalette:function(e,t){return o(e,v.extend({},p[e]||{},t))},theme:d,configuration:function(){return v.extend({},A,{defaultTheme:u,alwaysWatchTheme:m,registeredStyles:[].concat(A.registeredStyles)})},disableTheming:function(e){A.disableTheming=v.isUndefined(e)||!!e},registerStyles:function(e){A.registeredStyles.push(e)},setNonce:function(e){A.nonce=e},generateThemesOnDemand:function(e){A.generateOnDemand=e},setDefaultTheme:function(e){u=e},alwaysWatchTheme:function(e){m=e},enableBrowserColor:t,$get:s,_LIGHT_DEFAULT_HUES:E,_DARK_DEFAULT_HUES:$,_PALETTES:p,_THEMES:a,_parseRules:w,_rgba:N};function o(e,t){var n=T.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function d(e,t){if(a[e])return a[e];var n="string"==typeof(t=t||"default")?a[t]:t,o=new r(e);return n&&v.forEach(n.colors,function(e,t){o.colors[t]={name:e.name,hues:v.extend({},e.hues)}}),a[e]=o}function r(e){var a=this;function t(e){if((e=0===arguments.length||!!e)!==a.isDark){a.isDark=e,a.foregroundPalette=a.isDark?c:l,a.foregroundShadow=a.isDark?h:f;var t=a.isDark?$:E,i=a.isDark?E:$;return v.forEach(t,function(e,t){var n=a.colors[t],o=i[t];if(n)for(var r in n.hues)n.hues[r]===o[r]&&(n.hues[r]=e[r])}),a}}a.name=e,a.colors={},(a.dark=t)(!1),g.forEach(function(o){var r=(a.isDark?$:E)[o];a[o+"Palette"]=function(t,e){var n=a.colors[o]={name:t,hues:v.extend({},r,e)};return Object.keys(n.hues).forEach(function(e){if(!r[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",a.name).replace("%3",t).replace("%4",Object.keys(r).join(", ")))}),Object.keys(n.hues).map(function(e){return n.hues[e]}).forEach(function(e){if(-1===T.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",a.name).replace("%3",o).replace("%4",t).replace("%5",T.join(", ")))}),a}})}function s(n,s,o,l){var r=function(e,t){t===ge&&(t=e,e=ge),e===ge&&(e=n),r.inherit(t,t)};return Object.defineProperty(r,"THEMES",{get:function(){return v.extend({},a)}}),Object.defineProperty(r,"PALETTES",{get:function(){return v.extend({},p)}}),Object.defineProperty(r,"ALWAYS_WATCH",{get:function(){return m}}),r.inherit=function(n,e){var o=e.controller("mdTheme")||n.data("$mdThemeController"),t=n.scope();if(d(o&&o.$mdTheme||("default"===u?"":u)),o){var r=m||o.$shouldWatch||s.parseAttributeBoolean(n.attr("md-theme-watch"));if(r||o.isAsyncTheme){var i=function(){a&&(a(),a=ge)},a=o.registerChanges(function(e){d(e),r||i()});t?t.$on("$destroy",i):n.on("$destroy",i)}}function d(e){if(e){c(e)||l.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),o&&n.data("$mdThemeController",o)}}},r.registered=c,r.defaultTheme=function(){return u},r.generateTheme=function(e){k(a[e],e,A.nonce)},r.defineTheme=function(e,t){t=t||{};var n=d(e);return t.primary&&n.primaryPalette(t.primary,t.primaryHues),t.accent&&n.accentPalette(t.accent,t.accentHues),t.warn&&n.warnPalette(t.warn,t.warnHues),t.background&&n.backgroundPalette(t.background,t.backgroundHues),t.dark&&n.dark(),this.generateTheme(e),o.resolve(e)},r.setBrowserColor=t,r;function c(e){return e===ge||""===e||r.THEMES[e]!==ge}}}function n(p,h,f,b,g,E){return{priority:101,link:{pre:function(t,e,n){function o(){var e=h(n.mdTheme)(t);return f(e)(t)||e}var r=[],i=h.startSymbol(),a=h.endSymbol(),d=n.mdTheme.trim(),s=d.substr(0,i.length)===i&&d.lastIndexOf(a)===d.length-a.length,l="::"===n.mdTheme.split(i).join("").split(a).join("").trim().substr(0,"::".length),c={isAsyncTheme:v.isFunction(o())||v.isFunction(o().then),registerChanges:function(t,e){return e&&(t=v.bind(e,t)),r.push(t),function(){var e=r.indexOf(t);-1|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),i.push(e)}),i}var _={};function r(e,t){var n=document.head,o=n?n.firstElementChild:null,r=!A.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(r+=A.registeredStyles.join(""),o&&0!==r.length){v.forEach(p,function(r){var i=r.contrastDefaultColor,a=r.contrastLightColors||[],d=r.contrastStrongLightColors||[],s=r.contrastDarkColors||[];"string"==typeof a&&(a=a.split(" ")),"string"==typeof d&&(d=d.split(" ")),"string"==typeof s&&(s=s.split(" ")),delete r.contrastDefaultColor,delete r.contrastLightColors,delete r.contrastStrongLightColors,delete r.contrastDarkColors,v.forEach(r,function(e,t){if(!v.isObject(e)){var n=x(e);if(!n)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",e).replace("%2",r.name).replace("%3",t));var o=function(e){return("light"===i?-1!==s.indexOf(e):-1===a.indexOf(e)&&-1===d.indexOf(e))?"dark":-1!==d.indexOf(e)?"strongLight":"light"}(t);r[t]={hex:r[t],value:n,contrastType:o,contrast:function(e){switch(e){default:case"strongLight":return b;case"light":return u;case"dark":return m}}(o),opacity:function(e){switch(e){default:case"strongLight":return C;case"light":return y;case"dark":return M}}(o)}}})});var i=function(e){for(var t=[],n="",o=0,r=0,i=0;im.matches.length-1?0:Math.min(m.index+1,m.matches.length-1),f.nextTick(H),re();break;case t.KEY_CODE.UP_ARROW:if(m.loading||Z())return;e.stopPropagation(),e.preventDefault(),m.index=m.index-1<0?m.matches.length-1:Math.max(0,m.index-1),f.nextTick(H),re();break;case t.KEY_CODE.TAB:if(R(),m.hidden||m.loading||m.index<0||m.matches.length<1)return;ee(m.index);break;case t.KEY_CODE.ENTER:if(m.hidden||m.loading||m.index<0||m.matches.length<1)return;if(Z())return;e.stopImmediatePropagation(),e.preventDefault(),ee(m.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(G("blur")||!m.hidden||m.loading||G("clear")&&p.searchText))return;e.stopPropagation(),te(),p.searchText&&G("clear")&&ne(),m.hidden=!0,G("blur")&&U(!0)}},m.blur=function(e){y=!1,$?be.isObject(e)&&e.stopImmediatePropagation():(m.hidden=Y(),le("ngBlur",{$event:e}))},m.focus=function(e){y=!0,K()&&J()&&de();m.hidden=Y(),le("ngFocus",{$event:e})},m.clear=function(e){e&&e.stopPropagation();te(),ne()},m.select=ee,m.listEnter=function(){$=!0},m.listLeave=R,m.focusInput=D,m.getCurrentDisplayValue=Q,m.registerSelectedItemWatcher=function(e){-1===M.indexOf(e)&&M.push(e)},m.unregisterSelectedItemWatcher=function(e){var t=M.indexOf(e);-1!==t&&M.splice(t,1)},m.notFoundVisible=ae,m.loadingIsVisible=function(){return m.loading&&!Z()},m.positionDropdown=S;var k,x={Count:1,Selected:2};return f.initOptionalProperties(p,b,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),e(h),k=parseInt(p.delay,10)||0,b.$observe("disabled",function(e){m.isDisabled=f.parseAttributeBoolean(e,!1)}),b.$observe("required",function(e){m.isRequired=f.parseAttributeBoolean(e,!1)}),b.$observe("readonly",function(e){m.isReadonly=f.parseAttributeBoolean(e,!1)}),p.$watch("searchText",k?f.debounce(B,k):B),p.$watch("selectedItem",F),be.element(n).on("resize",w),void p.$on("$destroy",I),void f.nextTick(function(){!function(){var e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!be.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===t.toLowerCase()?e[0]:h.find("md-autocomplete-wrap")[0]};var n=h.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}();(E={main:h[0],scrollContainer:h[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:h[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:h.find("ul")[0],input:h.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=E.ul.getElementsByTagName("li"),E.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=be.element(e[n]));return t}(E),_=E.scrollContainer.classList.contains("md-standard-list-container")?he:fe,A=E.$.input.controller("ngModel")}(),E.$.root.length&&(e(E.$.scrollContainer),E.$.scrollContainer.detach(),E.$.root.append(E.$.scrollContainer),o.pin&&o.pin(E.$.scrollContainer,r)),h.on("touchstart",D),p.autofocus&&h.on("focus",D),p.inputAriaDescribedBy&&E.input.setAttribute("aria-describedby",p.inputAriaDescribedBy),p.floatingLabel||(p.inputAriaLabel?E.input.setAttribute("aria-label",p.inputAriaLabel):p.inputAriaLabelledBy?E.input.setAttribute("aria-labelledby",p.inputAriaLabelledBy):p.placeholder&&E.input.setAttribute("aria-label",p.placeholder))});function N(){p.requireMatch&&A&&A.$setValidity("md-require-match",!!p.selectedItem||!p.searchText)}function S(){if(!E)return f.nextTick(S,!1,p);var e,t=(p.dropdownItems||me)*ce,n=E.wrap.getBoundingClientRect(),o=E.snap.getBoundingClientRect(),r=E.root.getBoundingClientRect(),i=o.bottom-r.top,a=r.bottom-o.top,d=n.left-r.left,s=n.width,l=function(){var e=0,t=h.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),c=p.dropdownPosition,m=r.bottom-o.bottom-ue+f.getViewportTop(),u=o.top-ue;c=c||(tr.right&&(t.left=n.right-e.width+"px");E.$.scrollContainer.css(t)},!1,p)}function D(){E.input.focus()}function H(){var e=E.scroller.querySelector(".selected");m.activeOption=e?e.id:null}function I(){if(m.hidden||f.enableScrolling(),be.element(n).off("resize",w),E){be.forEach(["ul","scroller","scrollContainer","input"],function(e){E.$[e].remove()})}}function O(e){e.preventDefault()}function P(e){e.stopPropagation()}function L(e){U(m.hidden=!0)}function R(){y||m.hidden||E.input.focus(),$=!1,m.hidden=Y()}function F(t,n){N(),t?z(t).then(function(e){p.searchText=e,function(t,n){M.forEach(function(e){e(t,n)})}(t,n)}):n&&p.searchText&&z(n).then(function(e){be.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),t!==n&&be.isFunction(p.itemChange)&&p.itemChange(q(p.selectedItem))}function B(t,n){m.index=V(),t!==n&&(N(),z(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&be.isFunction(p.textChange)&&p.textChange(),J()?de():(W(!(m.matches=[])),oe(!0,x.Count)))}))}function U(e){e&&(y=$=!1),E.input.blur()}function j(){return be.isNumber(p.minLength)?p.minLength:1}function z(e){return a.when(((t=e)&&p.itemText?p.itemText(q(t)):null)||e).then(function(e){return e&&!be.isString(e)&&i.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function q(e){if(!e)return ge;var t={};return m.itemName&&(t[m.itemName]=e),t}function V(){return p.autoselect?0:-1}function W(e){m.loading!==e&&(m.loading=e),m.hidden=Y()}function Y(){return!function(){{if(m.isReadonly)return!1;if(!K())return!1}return J()&&X()||ae()}()}function K(){return!(m.loading&&!X())&&(!Z()&&!!y)}function G(e){return be.isString(p.escapeOptions)?-1!==p.escapeOptions.toLowerCase().indexOf(e):-1!==m.defaultEscapeOptions.indexOf(e)}function X(){return!!m.matches.length}function Z(){return!!m.scope.selectedItem}function Q(){return z(m.matches[m.index])}function J(){return(p.searchText||"").length>=j()}function ee(e){f.nextTick(function(){z(m.matches[e]).then(function(e){var t=E.$.input.controller("ngModel");d.announce(e+" "+m.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=m.matches[e],W(!1)})},!1)}function te(){m.index=-1,f.nextTick(H),m.matches=[]}function ne(){W(!0),p.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),E.input.dispatchEvent(e),E.input.blur(),p.searchText="",E.input.focus()}function oe(e,t){var n=e?"polite":"assertive",o=[];t&x.Selected&&-1!==m.index&&o.push(Q()),t&x.Count&&o.push(a.resolve(function(){switch(m.matches.length){case 0:return m.noMatchMessage;case 1:return m.singleMatchMessage;default:return m.multipleMatchStartMessage+m.matches.length+m.multipleMatchEndMessage}}())),a.all(o).then(function(e){d.announce(e.join(" "),n)})}function re(){E.li[0]&&(_===he?function(){var e=E.li[Math.max(0,m.index)],t=E.scrollContainer.offsetHeight,n=e&&e.offsetTop||0,o=n+e.clientHeight,r=E.scrollContainer.scrollTop;n=j()&&(y||$)&&!Z()}function de(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&v[t]?se(v[t]):function(t){var e=p.$parent.$eval(g),n=t.toLowerCase(),o=be.isArray(e),r=!!e.then;function i(e){v[n]=e,(t||"")===(p.searchText||"")&&se(e)}o?i(e):r&&function(e){if(!e)return;e=a.when(e),C++,W(!0),f.nextTick(function(){e.then(i).finally(function(){0==--C&&W(!1)})},!0,p)}(e)}(e),m.hidden=Y()}function se(e){m.matches=e,m.hidden=Y(),m.loading&&W(!1),p.selectOnMatch&&function(){var n=p.searchText,e=m.matches,t=e[0];1===e.length&&z(t).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&ee(0)})}(),S(),oe(!0,x.Count)}function le(e,t){b[e]&&p.$parent.$eval(b[e],t||{})}}}(),Z.$inject=["$$mdSvgRegistry"],be.module("material.components.autocomplete").directive("mdAutocomplete",Z),Q.$inject=["$compile","$mdUtil"],be.module("material.components.autocomplete").directive("mdAutocompleteParentScope",Q),J.$inject=["$scope","$element","$attrs","$mdUtil"],be.module("material.components.autocomplete").controller("MdHighlightCtrl",J),J.prototype.init=function(t,n){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(e){return{term:t(e),contentText:n(e)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},J.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},J.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=be.element('').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},J.prototype.resolveTokens=function(o){var r=[],n=0;return o.replace(this.regex,function(e,t){i(n,t),r.push({text:e,isMatch:!0}),n=t+e.length}),i(n),r;function i(e,t){var n=o.slice(e,t);n&&r.push(n)}},J.prototype.createRegex=function(e,t){var n="",o="",r=this.$mdUtil.sanitize(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(o="$"),new RegExp(n+r+o,t.replace(/[$^]/g,""))},ee.$inject=["$interpolate","$parse"],be.module("material.components.autocomplete").directive("mdHighlightText",ee),be.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(a,d,t,s,l,c,m,u){return{restrict:"E",link:function(n,o,e){var r;function i(){var e=parseInt(r.height,10)+Math.abs(parseInt(r.top,10));o.css("height",e+"px")}t.pin&&t.pin(o,s),m(function(){if("fixed"===(r=l.getComputedStyle(u[0].body)).position){var e=d.debounce(function(){r=l.getComputedStyle(u[0].body),i()},60,null,!1);i(),be.element(l).on("resize",e),n.$on("$destroy",function(){be.element(l).off("resize",e)})}var t=o.parent();t.length&&("BODY"===t[0].nodeName&&o.css("position","fixed"),"static"===l.getComputedStyle(t[0]).position&&c.warn(" may not work properly in a scrolled, static-positioned parent container."),a.inherit(o,t))})}}}]),te.$inject=["$mdBottomSheet"],ne.$inject=["$$interimElementProvider"],be.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",te).provider("$mdBottomSheet",ne),re.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],oe.$inject=["$mdTheming"],be.module("material.components.button",["material.core"]).directive("mdButton",re).directive("a",oe),ie.$inject=["$mdTheming"],be.module("material.components.card",["material.core"]).directive("mdCard",ie),ae.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],be.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",ae),be.module("material.components.chips",["material.core","material.components.autocomplete"]),de.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],be.module("material.components.chips").controller("MdChipCtrl",de),de.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("dblclick",this.chipMouseDoubleClick.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},de.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return be.element(e[0])},de.prototype.getContentElement=function(){var e=be.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=be.element(this.getChipContent().contents()[0])),e},de.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},de.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex(),t=this.getContentElement().text();t?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},de.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):L.getSelection&&(n=L.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},de.prototype.goInEditMode=function(){this.isEditing=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},de.prototype.chipKeyDown=function(e){this.isEditing||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},de.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},se.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],be.module("material.components.chips").directive("mdChip",se),le.$inject=["$timeout"],be.module("material.components.chips").directive("mdChipRemove",le),ce.$inject=["$compile"],be.module("material.components.chips").directive("mdChipTransclude",ce),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var l=300;function e(e,t,n,o,r,i,a,d,s){this.$timeout=i,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=a,this.$log=o,this.$mdLiveAnnouncer=d,this.$exceptionHandler=s,this.$element=r,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=a.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=a.parseAttributeBoolean(t.mdAddOnBlur),this.inputClass="",this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.containerEmptyHint="Chips container. Enter the text area, then type text, and press enter to add a chip.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=l,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}be.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var t=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.$element.attr("ng-model")||this.setupStaticChips(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",function(){t.setupInputAria(),t.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(e){t.chipAppendDelay=parseInt(e)||l}))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0),this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(e.attr("aria-labelledby",this.inputAriaLabelledBy),e.removeAttr("aria-label")):e.attr("aria-label",this.inputAriaLabel))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" ")),t.attr("aria-label",this.containerHint)):(t.removeAttr("role"),t.removeAttr("aria-owns"),t.attr("aria-label",this.containerEmptyHint))},e.prototype.setupStaticChips=function(){var e,t,n=this,o=this.$element.find("md-chips-wrap");this.$timeout(function(){for(o.attr("role","list"),t=o[0].children,e=0;e=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.updateNgModel=function(e){e||this.validateModel(),be.forEach(this.ngModelCtrl.$viewChangeListeners,function(e){try{e()}catch(e){this.$exceptionHandler(e)}})},e.prototype.removeChip=function(e,t){var n=this.items.splice(e,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var o=be.isObject(n[0])?"":n[0];this.$mdLiveAnnouncer.announce(o+" "+this.removedMessage,"assertive"),n&&n.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:n[0],$index:e,$event:t})},e.prototype.removeChipAndFocusInput=function(e,t){this.removeChip(e,t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){-1<=e&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch(function(){return t.$touched},function(e){e&&n.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return t.$dirty},function(e){e&&n.ngModelCtrl.$setDirty()})))},e.prototype.configureUserInput=function(e){var t=(this.userInputElement=e).controller("ngModel");t!==this.ngModelCtrl&&(this.userInputNgModelCtrl=t);function n(e,t){o.$evalAsync(be.bind(r,t,e))}var o=this.$scope,r=this;e.attr({tabindex:0}).on("keydown",function(e){n(e,r.inputKeydown)}).on("focus",function(e){n(e,r.onInputFocus)}).on("blur",function(e){n(e,r.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,this.$element.attr("container-empty-hint")||(this.containerEmptyHint="Chips container with autocompletion. Enter the text area, type text to search, and then use the up and down arrow keys to select an option. Press enter to add the selected option as a chip.",this.setupWrapperAria()),e.registerSelectedItemWatcher(be.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",be.bind(this,this.onInputFocus)).on("blur",be.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){o.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],be.module("material.components.chips").directive("mdChips",o);var e='
',t=' ',n=" {{$chip}}",r=' ';function o(u,p,h,o,f,b){var g={chips:p.processTemplate(e),input:p.processTemplate(t),default:p.processTemplate(n),remove:p.processTemplate(r)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),g.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(e,a){var n=a.$mdUserTemplate;a.$mdUserTemplate=null;var d=t("md-chips>md-chip-template"),s=t(p.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||g.remove,l=d||g.default,c=t("md-chips>md-autocomplete")||t("md-chips>input")||g.input,m=n.find("md-chip");n[0].querySelector("md-chip-template>*[md-chip-remove]")&&o.warn("invalid placement of md-chip-remove within md-chip-template.");function t(e){if(a.ngModel){var t=n[0].querySelector(e);return t&&t.outerHTML}}return function(e,t,n,o){p.initOptionalProperties(e,a),u(t);var r=o[0];if(d&&(r.enableChipEdit=!1),r.chipContentsTemplate=l,r.chipRemoveTemplate=s,r.chipInputTemplate=c,r.mdCloseIcon=b.mdCancel,t.attr({tabindex:-1}).on("focus",function(){r.onFocus()}).on("click",function(){r.readonly||-1!==r.selectedChip||r.onFocus()}),a.ngModel&&(r.configureNgModel(t.controller("ngModel")),n.mdTransformChip&&r.useTransformChipExpression(),n.mdOnAdd&&r.useOnAddExpression(),n.mdOnRemove&&r.useOnRemoveExpression(),n.mdOnSelect&&r.useOnSelectExpression(),c!==g.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||p.nextTick(function(){if(0===c.indexOf("'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",monthFilter:"=mdMonthFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0];o[1].configureNgModel(r,i)}}}n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale","$filter","$document"],e.$inject=["inputDirective"],be.module("material.components.datepicker").directive("mdCalendar",e);var p=0,t={day:"month",month:"year"};function n(e,t,n,o,r,i,a,d,s,l,c){i(e),this.$element=e,this.$scope=t,this.$attrs=d,this.dateUtil=n,this.$mdUtil=o,this.keyCode=r.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=s,this.ngDateFilter=l("date"),this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=ge,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=p++,this.displayDate=null,this.mode=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,this.standaloneMode=!1,d.tabindex||e.attr("tabindex","-1");var m,u=be.bind(this,this.handleKeyEvent);(m=e.parent().hasClass("md-datepicker-calendar")?be.element(c[0].body):(this.standaloneMode=!0,e)).on("keydown",u),t.$on("$destroy",function(){m.off("keydown",u)}),1===be.version.major&&be.version.minor<=4&&this.$onInit()}n.prototype.$onInit=function(){this._mode&&t.hasOwnProperty(this._mode)?(this.currentView=t[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null),this.minDate&&this.minDate>this.$mdDateLocale.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=this.$mdDateLocale.firstRenderableDate,this.maxDate&&this.maxDate