/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.12 */ !function(B,de,se){"use strict";de.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menuBar","material.components.menu","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.radioButton","material.components.progressLinear","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){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(r){return r.throttle=function(e){var t,n,o,i;return function(){t=arguments,i=this,o=e,n||(n=!0,r(function(){o.apply(i,Array.prototype.slice.call(t)),n=!1}))}},r}function o(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],t.$inject=["$provide","$mdThemingProvider"],n.$inject=["$delegate"],o.$inject=["$delegate"],de.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e)}(),function(){function e(r){return{restrict:"A",link:{pre:function(e,t,n){var o=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;i(r(o)(e)),o&&e.$watch(o,i);function i(e){de.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}e.$inject=["$parse"],de.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),de.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,o=t.substr(0,n),i=t.substr(n,n),r=t.substr(2*n);return 1===n&&(o+=o,i+=i,r+=r),"rgba("+parseInt(o,16)+","+parseInt(i,16)+","+parseInt(r,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}}),de.module("material.core").factory("$mdConstant",function(){var i=document.createElement("div"),r=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(i),e=/webkit/i.test(r),a=/([:\-_]+(.))/g;function t(e){var t=r+"-"+e,n=t.replace(a,function(e,t,n,o){return o?n.toUpperCase():n}),o=n.charAt(0).toLowerCase()+n.substring(1);return d(i,e)?e:d(i,n)?n:d(i,o)?o:e}function d(e,t){return de.isDefined(e.style[t])}var o={isInputKey:function(e){return 31<=e.keyCode&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&97<=e.keyCode&&e.keyCode<=105},isMetaKey:function(e){return 91<=e.keyCode&&e.keyCode<=93},isFnLockKey:function(e){return 112<=e.keyCode&&e.keyCode<=145},isNavigationKey:function(e){var t=o.KEY_CODE,n=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW];return-1!=n.indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(e?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(e?" webkitAnimationEnd":""),TRANSFORM:t("transform"),TRANSFORM_ORIGIN:t("transformOrigin"),TRANSITION:t("transition"),TRANSITION_DURATION:t("transitionDuration"),ANIMATION_PLAY_STATE:t("animationPlayState"),ANIMATION_DURATION:t("animationDuration"),ANIMATION_NAME:t("animationName"),ANIMATION_TIMING:t("animationTimingFunction"),ANIMATION_DIRECTION:t("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return o}),function(){function t(e,d){var s=function(){return!0};e&&!de.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;de.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:de.bind(null,n,!1),previous:de.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&&-1d.clientHeight+1,a=0
'),e.append(t));return t.on("wheel",n),t.on("touchmove",n),function(){t.off("wheel"),t.off("touchmove"),!o.disableScrollMask&&t[0].parentNode&&t[0].parentNode.removeChild(t[0])};function n(e){e.preventDefault()}}(t);return f.disableScrollAround._restoreScroll=function(){--f.disableScrollAround._count<=0&&(n(),i(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===se){var e=de.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,B,{},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,r,t){return t=t||/\{([^{}]*)\}/g,e.replace(t,function(t,e){var n=e.split("."),o=r;try{for(var i in n)n.hasOwnProperty(i)&&(o=o[n[i]])}catch(e){o=t}return"string"==typeof o||"number"==typeof o?o:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:de.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:de.noop}},debounce:function(n,o,i,r){var a;return function(){var e=i,t=Array.prototype.slice.call(arguments);d.cancel(a),a=d(function(){a=se,n.apply(e,t)},o||10,r)}},throttle:function(n,o){var i;return function(){var e=arguments,t=f.now();(!i||o");s[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],o=0;o").html(t.trim()).contents();return i._compileElement(e,n,o)})},d.prototype._compileElement=function(o,i,r){var a=this,d=this.$compile(i),s={element:i,cleanup:i.remove.bind(i),locals:o,link:function(e){if(o.$scope=e,r.controller){var t=de.extend({},o,{$element:i}),n=a._createController(r,t,o);i.data("$ngControllerController",n),i.children().data("$ngControllerController",n),s.controller=n}return d(e)}};return s},d.prototype._createController=function(e,t,n){var o;if(!a||("function"==typeof r.preAssignBindingsEnabled?r.preAssignBindingsEnabled():1===de.version.major&&de.version.minor<6)){var i=this.$controller(e.controller,t,!0);e.bindToController&&de.extend(i.instance,n),o=i()}else o=this.$controller(e.controller,t),e.bindToController&&de.extend(o,n);return e.controllerAs&&(t.$scope[e.controllerAs]=o),de.isFunction(o.$onInit)&&o.$onInit(),o},d.prototype._fetchContentElement=function(e){var t=e.contentElement,n=null;return de.isString(t)?n=o(t=document.querySelector(t)):(t=t[0]||t,n=document.contains(t)?o(t):function(){t.parentNode&&t.parentNode.removeChild(t)}),{element:de.element(t),restore:n};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}de.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout"];var r,o,c={},m=6,u=!(n.$inject=["$mdGesture","$$MdGestureHandler"]),a=!1,d=null,s=!1;function e(){}function i(o,e,n){var t=navigator.userAgent||navigator.vendor||B.opera,i=t.match(/ipad|iphone|ipod/i),r=t.match(/android/i),a=function(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;nthis.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){a&&(this.oldTouchAction=e[0].style[a],e[0].style[a]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[a]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;a||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,o=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,o=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=p(e),f(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(f(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(f(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,i){if(!a){document.contains||(document.contains=function(e){return document.body.contains(e)}),!s&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||h(e)||n?(d=null,"label"==e.target.tagName.toLowerCase()&&(d={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),d=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),s=!0);de.element(document).on("mousedown touchstart pointerdown",function(e){if(r)return;var t=+Date.now();if(o&&!l(e,o)&&t-o.endTime<1500)return;r=p(e),n("start",e)}).on("mousemove touchmove pointermove",function(e){if(!r||!l(e,r))return;f(e,r),n("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!r||!l(e,r))return;f(e,r),r.endTime=+Date.now(),"pointercancel"!==e.type&&n("end",e);o=r,r=null}).on("$$mdGestureReset",function(){o=r=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||h(e)||"mousedown"===e.type&&(b(e.target)||b(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function n(e,t){var n;for(var o in c)(n=c[o])instanceof i&&("start"===e&&n.cancel(),n[e](t,r))}}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 l(e,t){return e&&t&&e.type.charAt(0)===t.type}function h(e){return d&&d.x==e.x&&d.y==e.y}function f(e,t){var n=g(e),o=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=0=this.$mdUtil.now()-t}}(),de.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(i){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],r={},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 "+i+" is reserved!");if(-1 body")),i||(i=h[0]),"#comment"==i.nodeName&&(i=m[0].body),de.element(i))),t.themable&&g(a),a}(e,a),a.cleanupElement=e.cleanup,s=function(o,i,e){var t=i.onShowing||de.noop,r=i.onComplete||de.noop;try{t(i.scope,o,i,e)}catch(e){return u.reject(e)}return u(function(n,t){try{u.when(i.onShow(i.scope,o,i,e)).then(function(){var e,t;r(i.scope,o,i),t=de.noop,a.hideDelay&&(e=p(c.hide,a.hideDelay),t=function(){p.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=se},n(o)},t)}catch(e){t(e.message)}})}(d,a,e.controller).then(t,i)}).catch(i)})},remove:function(e,t,n){return d?((a=de.extend(a||{},n||{})).cancelAutoHide&&a.cancelAutoHide(),a.element.triggerHandler("$mdInterimElementRemove"),!0===a.$destroy?l(a.element,a).then(function(){t&&i(e)||o(e)}):(u.when(s).finally(function(){l(a.element,a).then(function(){t?i(e):o(e)},i)}),r.deferred.promise)):u.when(!1);function o(e){r.deferred.resolve(e)}function i(e){r.deferred.reject(e)}}};function l(o,i){var r=i.onRemoving||de.noop;return u(function(e,t){try{var n=u.when(i.onRemove(i.scope,o,i)||!0);r(o,n),i.$destroy?(e(o),!i.preserveScope&&i.scope&&n.then(function(){i.scope.$destroy()})):n.then(function(){!i.preserveScope&&i.scope&&i.scope.$destroy(),e(o)},t)}catch(e){t(e.message)}})}}}}}),function(){var d,l,c,s=/(-gt)?-(sm|md|lg|print)/g,m=/\s+/g,u=["grow","initial","auto","none","noshrink","nogrow"],p=["row","column"],h=["","start","center","end","stretch","space-around","space-between"],f=["","start","center","end","stretch"],g={enabled:!0,breakpoints:[]};function b(){var e=!!document.querySelector("[md-layouts-disabled]");g.enabled=!e}function v(){return g.enabled=!1,{restrict:"A",priority:"900"}}function E(o){return["$mdUtil","$interpolate","$log",function(e,t,n){return d=e,l=t,c=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(C(o,A(o,t,""),M(0,o,t)),i(0,e),n=i),n||de.noop}}}];function i(e,t){t.addClass(o)}}function $(t){var n=t.split("-");return["$log",function(e){return e.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-` variant."),de.noop}]}function y(e,t,n,o){var i,r=n[0].nodeName.toLowerCase();switch(e.replace(s,"")){case"flex":"md-button"!=r&&"fieldset"!=r||(i="<"+r+" "+e+">",o.warn(d.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[i,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function C(e,t,n){if(!T(t)){switch(e.replace(s,"")){case"layout":w(t,p)||(t=p[0]);break;case"flex":w(t,u)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var o=(a={main:"start",cross:"stretch"},0!==(i=(i=t)||"").indexOf("-")&&0!==i.indexOf(" ")||(i="none"+i),(r=i.toLowerCase().trim().replace(m,"-").split("-")).length&&"space"===r[0]&&(r=[r[0]+"-"+r[1],r[2]]),0');o.append(n),i[e]=n}return function(){i[e].attr("content",""),i[e].remove(),delete i[e]}},getMeta:function(e){if(!r(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return i[e].attr("content")}};return de.extend({},e,{$get:function(){return e}})}),function(){function e(n,o){var i,r=[],a={};return i={notFoundError:function(e,t){n.error((t||"")+"No instance found for handle",e)},getInstances:function(){return r},get:function(e){if(!d(e))return null;var t,n,o;for(t=0,n=r.length;t|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),i.push(e)}),i}var M={};function i(e,t){var n=document.head,o=n?n.firstElementChild:null,i=!y.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=y.registeredStyles.join(""),o&&0!==i.length){E.forEach(h,function(o,e){var i=o.contrastDefaultColor,r=o.contrastLightColors||[],a=o.contrastStrongLightColors||[],d=o.contrastDarkColors||[];"string"==typeof r&&(r=r.split(" ")),"string"==typeof a&&(a=a.split(" ")),"string"==typeof d&&(d=d.split(" ")),delete o.contrastDefaultColor,delete o.contrastLightColors,delete o.contrastStrongLightColors,delete o.contrastDarkColors,E.forEach(o,function(e,t){if(!E.isObject(e)){var n=A(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",o.name).replace("%3",t));o[t]={hex:o[t],value:n,contrast:"light"===i?-1');return this.$element.append(e),e},r.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},r.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&de.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},r.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},r.prototype.createRipple=function(e,t){if(this.isRippleAllowed()){var n,o,i,r=this,a=r.$mdColorUtil,d=de.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,i=m,n?Math.max(o,i):Math.sqrt(Math.pow(o,2)+Math.pow(i,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(){r.clearTimeout(),r.mousedown||r.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"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},r.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},r.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))},r.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(o){return{attach:function(e,t,n){return o.attach(e,t,de.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],de.module("material.core").factory("$mdTabInkRipple",e)}(),de.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,i,a,d){return function(e){return o=e,t=n,s=i,l=a,r=d,c={translate3d:function(t,n,e,o){return r(t,{from:n,to:e,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return i});function i(e){return r(t,{to:e||n,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}},waitTransitionEnd:function(r,a){var d=3e3;return t(function(t,e){var n;("0s"==(n=(n=(a=a||{}).cachedTransitionStyles)||B.getComputedStyle(r[0])).transitionDuration||!n.transition&&!n.transitionProperty)&&(d=0);var o=s(i,a.timeout||d);function i(e){e&&e.target!==r[0]||(e&&s.cancel(o),r.off(l.CSS.TRANSITIONEND,i),t())}r.on(l.CSS.TRANSITIONEND,i)})},calculateTransformValues:function(e,t){var n,o,i=t.element,r=t.bounds;if(i||r){var a=i?c.clientRect(i)||(n=e?e.parent():null,(o=n?n.parent():null)?c.clientRect(o):null):c.copyRect(r),d=c.copyRect(e[0].getBoundingClientRect()),s=c.centerPointFor(d),l=c.centerPointFor(a);return{centerX:l.x-s.x,centerY:l.y-s.y,scaleX:Math.round(100*Math.min(.5,a.width/d.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/d.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,t){var n=de.bind(null,o.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )");return n(c.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){var n=de.bind(null,o.supplant,"translate3d( {centerX}px, {centerY}px, 0 )");return n(c.calculateTransformValues(e,t))},toCss:function(e){var o={};return de.forEach(e,function(e,t){if(!de.isUndefined(e))if(0<="left top right bottom width height x y min-width min-height max-width max-height".indexOf(t))o[t]=e+"px";else switch(t){case"transition":n(t,l.CSS.TRANSITION,e);break;case"transform":n(t,l.CSS.TRANSFORM,e);break;case"transformOrigin":n(t,l.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o;function n(e,t,n){de.forEach(t.split(" "),function(e){o[e]=n})}},toTransformCss:function(t,e,n){var o={};return de.forEach(l.CSS.TRANSFORM.split(" "),function(e){o[e]=t}),e&&(n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",o.transition=n),o},copyRect:function(t,n){return t?(n=n||{},de.forEach("left top right bottom width height".split(" "),function(e){n[e]=Math.round(t[e])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var t,n=de.element(e)[0].getBoundingClientRect();return(t=n)&&0=i&&r<=o&&d()},o.on(u,p),C(o,s),g(d,i+1.5*n,!1)},E&&E(),$.push(e),E=r(function(){E=null;for(var e=f(),t=0;t<$.length;t++)$[t](e);$.length=0}),n;function d(){var e,t;if(!i)return i=!0,u&&p&&o.off(u,p),b(o,s),y(e=o,t=s),C(e,t),A(l,function(e){c.style[N(e[0])]=""}),n.complete(!0),n}}}}}])}(),de.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),de.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(d,s,t,n,l,c,m,u){return{restrict:"E",link:function(o,i,e){var r;function a(){var e=parseInt(r.height,10)+Math.abs(parseInt(r.top,10));i.css("height",e+"px")}t.pin&&t.pin(i,n),m(function(){if("fixed"===(r=l.getComputedStyle(u[0].body)).position){var e=s.debounce(function(){r=l.getComputedStyle(u[0].body),a()},60,null,!1);a(),de.element(l).on("resize",e),o.$on("$destroy",function(){de.element(l).off("resize",e)})}var t=i.parent();if(t.length){"BODY"===t[0].nodeName&&i.css("position","fixed");var n=l.getComputedStyle(t[0]);"static"===n.position&&c.warn(" may not work properly in a scrolled, static-positioned parent container."),d.inherit(i,t)}})}}}]),function(){function e(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function t(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var p=.5,h=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(i,a,d,r,s,l,c,m){var u;return{themable:!0,onShow:function(e,t,n,o){if((t=d.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){m.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=c.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",n).on("$md.drag",i).on("$md.dragend",r),function(){t(),e.off("$md.dragstart",n),e.off("$md.drag",i),e.off("$md.dragend",r)};function n(){o.css(a.CSS.TRANSITION_DURATION,"0ms")}function i(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-h,t/2)),o.css(a.CSS.TRANSFORM,"translate3d(0,"+(h+t)+"px,0)")}function r(e){if(0p)){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||((u=d.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&u.on("click",function(){d.nextTick(s.cancel,!0)}),r.inherit(u,n.parent),i.enter(u,n.parent,null));r.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(t,n.parent));return i.enter(t,n.parent,u).then(function(){var e=d.findFocusTarget(t)||de.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(d.prefixer("ng-click",!0)))||u;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&d.nextTick(s.cancel,!0)},l.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||i.leave(u);return i.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}}}e.$inject=["$mdBottomSheet"],t.$inject=["$$interimElementProvider"],de.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",t)}(),function(){function e(n){return{restrict:"E",link:function(e,t){n(t)}}}function t(o,i,r,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{if(d(t))return'';var n=void 0===t.type?"button":t.type;return''}},link:function(e,t,n){i(t),o.attach(e,t),r.expectWithoutText(t,"aria-label"),d(n)&&de.isDefined(n.ngDisabled)&&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 de.isDefined(e.href)||de.isDefined(e.ngHref)||de.isDefined(e.ngLink)||de.isDefined(e.uiSref)}}t.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],de.module("material.components.button",["material.core"]).directive("mdButton",t).directive("a",e)}(),function(){function e(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}e.$inject=["$mdTheming"],de.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(h,f,g,b,v,E){return h=h[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:g.BEFORE_NG_ARIA,template:'
',compile:function(e,t){return t.$set("tabindex",t.tabindex||"0"),t.$set("type","checkbox"),t.$set("role",t.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(e,n,o,t){var i,r,a,d,s=t[0],l=t[1]||v.fakeNgModel(),c=t[2];if(s){var m=s.isErrorGetter||function(){return l.$invalid&&(l.$touched||c&&c.$submitted)};s.input=n,e.$watch(m,s.setInvalid)}function u(t){n[0].hasAttribute("disabled")||e.skipToggle||e.$apply(function(){var e=o.ngChecked&&o.ngClick?o.checked:!l.$viewValue;l.$setViewValue(e,t&&t.type),l.$render()})}function p(e){(i=!1!==e)&&n.attr("aria-checked","mixed"),n.toggleClass("md-indeterminate",i)}b(n),n.children().on("focus",function(){n.focus()}),v.parseAttributeBoolean(o.mdIndeterminate)&&(p(),e.$watch(o.mdIndeterminate,p)),o.ngChecked&&e.$watch(e.$eval.bind(e,o.ngChecked),function(e){l.$setViewValue(e),l.$render()}),r="ngDisabled",a="tabindex",d={true:"-1",false:o.tabindex},o[r]&&e.$watch(o[r],function(e){d[e]&&n.attr(a,d[e])}),f.expectWithText(n,"aria-label"),h.link.pre(e,{on:de.noop,0:{}},o,[l]),n.on("click",u).on("keypress",function(e){var t=e.which||e.keyCode;t!==g.KEY_CODE.SPACE&&t!==g.KEY_CODE.ENTER||(e.preventDefault(),n.addClass("md-focused"),u(e))}).on("focus",function(){"keyboard"===E.getLastInteractionType()&&n.addClass("md-focused")}).on("blur",function(){n.removeClass("md-focused")}),l.$render=function(){n.toggleClass("md-checked",!!l.$viewValue&&!i)}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],de.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),de.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){t.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var a=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,l=null;function e(r,a,o){return l=l||Object.keys(r.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css((i={},r=(n=t).hasOwnProperty("color"),de.forEach(n,function(e,t){var n=s(e),o=-1t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),de.element(e).on("load",n)),o.$on("$destroy",function(){r.destroy(i)})})}}}function t(e){var $,y;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","content","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","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,i){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&&!de.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,s,p,h,l,c,f,m,g,a,t,d,b){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=de.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 i=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||i()})}(e)},onShow:function(e,t,n,o){de.element(c[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){g.warn("$mdDialog: using `` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=de.element(e||{});if(n&&n.length){var o=de.isFunction(n[0].getBoundingClientRect);return de.extend(t||{},{element:o?n:se,bounds:o?n[0].getBoundingClientRect():de.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:de.bind(n,n.focus)})}}function n(e,t){return de.isString(e)&&(e=c[0].querySelector(e)),de.element(e||t)}e.origin=de.extend({element:null,bounds:null,focus:de.noop},e.origin||{}),e.parent=n(e.parent,m),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=b.getLastInteractionType())}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",o=e.find("md-dialog-content"),i=e.attr("id"),r="dialogContent_"+(i||p.nextUid());e.attr({role:n,tabIndex:"-1"}),0===o.length&&(o=e,i&&(r=i)),o.attr("id",r),e.attr("aria-describedby",r),t.ariaLabel?s.expect(e,"aria-label",t.ariaLabel):s.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=o.text().split(/\s+/);return 3."),function(){if(n.focusOnOpen){var e=p.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i;e.focus()}}()});var r,a,d},onShowing:function(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",r=o.textContent||n.textContent||o.content||n.content||"";if(i&&!a.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&r)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=r}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),$&&$.parentNode&&$.parentNode.removeChild($);y&&y.parentNode&&y.parentNode.removeChild(y);return n.$destroy?i():(o=n,o.reverseAnimate().then(function(){o.contentElement&&o.clearAnimate()})).then(i);var o;function i(){de.element(c[0].body).removeClass("md-dialog-is-showing"),n.contentElement&&n.reverseContainerStretch(),n.cleanupElement(),n.$destroy||"keyboard"!==n.originInteraction||n.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n,o=d.startSymbol(),i=d.endSymbol(),r=o+(t.themeWatch?"":"::")+"theme"+i;return'
"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?""+(n||"")+"":n||"")+"
"}};function v(e,t){var n="fixed"==f.getComputedStyle(c[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(c[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,r={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:i?i+"px":"100%"}),function(){e.css(r)}}function E(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],t.$inject=["$$interimElementProvider"],de.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",t)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],de.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(o){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n=e.children();o.prefixer().hasAttribute(n,"ng-repeat")?n.addClass("md-fab-action-item"):n.wrap('
')}}}e.$inject=["$mdUtil"],de.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(t,r,a,d,s,i){var l,c=this,e=0;function n(e){var t,n,o;"click"==e.type&&(n=(t=e).target,d.getClosest(n,"md-fab-trigger")&&c.toggle(),o=t.target,d.getClosest(o,"md-fab-actions")&&c.close()),"focusout"!=e.type||l||(l=i(function(){c.close()},100,!1)),"focusin"==e.type&&l&&(i.cancel(l),l=null)}function m(){c.currentActionIndex=-1}function u(){0
')}}}).animation(".md-fling",e).animation(".md-scale",t).service("mdFabSpeedDialFlingAnimation",e).service("mdFabSpeedDialScaleAnimation",t)}(),function(){function e(){function o(e,t,n){if(t){var o=e[0],i=e.controller("mdFabToolbar"),r=o.querySelector(".md-fab-toolbar-background"),a=o.querySelector("md-fab-trigger button"),d=o.querySelector("md-toolbar"),s=o.querySelector("md-fab-trigger button md-icon"),l=e.find("md-fab-actions").children();if(a&&r){var c=B.getComputedStyle(a).getPropertyValue("background-color"),m=o.offsetWidth,u=(o.offsetHeight,m/a.offsetWidth*2);r.style.backgroundColor=c,r.style.borderRadius=m+"px",i.isOpen?(d.style.pointerEvents="inherit",r.style.width=a.offsetWidth+"px",r.style.height=a.offsetHeight+"px",r.style.transform="scale("+u+")",r.style.transitionDelay="0ms",s&&(s.style.transitionDelay=".3s"),de.forEach(l,function(e,t){e.style.transitionDelay=25*(l.length-t)+"ms"})):(d.style.pointerEvents="none",r.style.transform="scale(1)",r.style.top="0",e.hasClass("md-right")&&(r.style.left="0",r.style.right=null),e.hasClass("md-left")&&(r.style.right="0",r.style.left=null),r.style.transitionDelay="200ms",s&&(s.style.transitionDelay="0ms"),de.forEach(l,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,n){o(e,t),n()},removeClass:function(e,t,n){o(e,t),n()}}}de.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'
',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('
')}}}).animation(".md-fab-toolbar",e).service("mdFabToolbarAnimation",e)}(),function(){function e(p,b,v,E){return{restrict:"E",controller:t,scope:{mdOnLayout:"&"},link:function(r,a,d,t){a.addClass("_md"),a.attr("role","list"),t.layoutDelegate=function(e){var o=[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),i={tileSpans:(t=o,[].map.call(t,function(e){var t=de.element(e).controller("mdGridTile");return{row:parseInt(E.getResponsiveAttribute(t.$attrs,"md-rowspan"),10)||1,col:parseInt(E.getResponsiveAttribute(t.$attrs,"md-colspan"),10)||1}})),colCount:function(){var e=parseInt(E.getResponsiveAttribute(d,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}(),rowMode:m(),rowHeight:function(){var e=E.getResponsiveAttribute(d,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(m()){case"fixed":return u(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:u(E.getResponsiveAttribute(d,"md-gutter")||1)};var t;if(!e&&de.equals(i,s))return;var n=v(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:a,style:function(e,t,n,o,i){var r={};switch(o){case"fixed":r.height=g({unit:i,span:t,gutter:n}),r.paddingBottom="";break;case"ratio":var a=1===e?0:(e-1)/e,d=1/e*100,s=d*(1/i),l=h({share:s,gutterShare:a,gutter:n});r.height="",r.paddingBottom=g({unit:l,span:t,gutter:n})}return r}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:de.element(o[t]),style:function(e,t,n,o,i,r,a){var d=1/n*100,s=(n-1)/n,l=h({share:d,gutterShare:s,gutter:i}),c="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(r){case"fixed":c.top=f({unit:a,offset:e.row,gutter:i}),c.height=g({unit:a,span:t.row,gutter:i});break;case"ratio":var m=d/a,u=h({share:m,gutterShare:s,gutter:i});c.paddingTop=g({unit:u,span:t.row,gutter:i}),c.marginTop=f({unit:u,offset:e.row,gutter:i});break;case"fit":var p=(o-1)/o;u=h({share:m=1/o*100,gutterShare:p,gutter:i}),c.top=f({unit:u,offset:e.row,gutter:i}),c.height=g({unit:u,span:t.row,gutter:i})}return c}(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();r.mdOnLayout({$event:{performance:n}}),s=i};var s,n=de.bind(t,t.invalidateLayout),o=function(){for(var e in b.MEDIA)E(e),E.getQuery(b.MEDIA[e]).addListener(n);return E.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],d,i)}();function i(e){null==e?t.invalidateLayout():E(e)&&t.invalidateLayout()}r.$on("$destroy",function(){for(var e in t.layoutDelegate=de.noop,o(),b.MEDIA)E.getQuery(b.MEDIA[e]).removeListener(n)});var l=p.startSymbol(),c=p.endSymbol();function e(e){return l+e+c}var h=p(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),f=p("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),g=p("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function m(){var e=E.getResponsiveAttribute(d,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function u(e){return/\D$/.test(e)?e:e+"px"}}}}function t(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=de.noop}function n(s){var l=t;return e.animateWith=function(e){l=de.isFunction(e)?e:t},e;function e(e,t){var n,o,i,r,a,d;return r=s.time(function(){o=function(i,e){var r=0,a=0,d=function(){for(var e=[],t=0;ti)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+i+")";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 i=r.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,de.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),o.invalidateLayout()}),de.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function i(){return{template:"
",transclude:!0}}t.$inject=["$mdUtil"],n.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],o.$inject=["$mdMedia"],de.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",o).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",n),t.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(de.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),de.module("material.components.icon",["material.core"]),function(){t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],o.$inject=["$animate","$mdUtil"],i.$inject=["$compile"],c.$inject=["$mdUtil"],r.$inject=["$document","$timeout"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=de.module("material.components.input",["material.core"]).directive("mdInputContainer",t).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){!o||n.mdNoFloat||t.hasClass("md-container-ignore")||(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}).directive("input",n).directive("textarea",n).directive("mdMaxlength",o).directive("placeholder",i).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,o){if(!o)return;t.toggleClass("md-input-messages-animation",!0),t.toggleClass("md-auto-hide",!0),("false"==n.mdAutoHide||(i=n,l.some(function(e){return i[e]})))&&t.toggleClass("md-auto-hide",!1);var i},require:"^^?mdInputContainer"}}).directive("ngMessage",c).directive("ngMessageExp",c).directive("mdSelectOnFocus",r).animation(".md-input-invalid",m).animation(".md-input-messages-animation",u).animation(".md-input-message-animation",p);function t(i,r,a){n.$inject=["$scope","$element","$attrs","$animate"];var e=["INPUT","TEXTAREA","SELECT","MD-SELECT"],t=e.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),d=e.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var n=e[0].querySelector(t),o=e[0].querySelector(d);return function(e,t){i(t),(n||o)&&a(function(){var e=t[0].querySelector("md-icon")||t[0].querySelector(".md-icon");n&&e&&t.addClass("md-icon-left"),o&&e&&t.addClass("md-icon-right")})}},controller:n};function n(e,t,n,o){var i=this;i.isErrorGetter=n.mdIsError&&r(n.mdIsError),i.delegateClick=function(){i.input.focus()},i.element=t,i.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},i.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},i.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},i.setInvalid=function(e){e?o.addClass(t,"md-input-invalid"):o.removeClass(t,"md-input-invalid")},e.$watch(function(){return i.label&&i.input},function(e){e&&!i.label.attr("for")&&i.label.attr("for",i.input.attr("id"))})}}function n(b,v,c,E,$){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(m,u,p,e){var h=e[0],f=!!e[1],g=e[1]||b.fakeNgModel(),t=e[2],n=de.isDefined(p.readonly),o=b.parseAttributeBoolean(p.mdNoAsterisk),i=u[0].tagName.toLowerCase();if(!h)return;{if("hidden"===p.type)return void u.attr("aria-hidden","true");if(h.input){if(h.input[0].contains(u[0]))return;throw new Error(" can only have *one* ,