Skip to content

Instantly share code, notes, and snippets.

@Raafet Raafet/arb-md.js
Created Mar 20, 2017

Embed
What would you like to do?
/*
Angular Material Design
https://github.com/angular/material
@license MIT
v1.1.0
*/
(function(E,e,I){e.module("ngMaterial","ng ngAnimate ngAria material.core material.core.gestures material.core.layout 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.menu material.components.menuBar material.components.navBar material.components.panel material.components.progressCircular material.components.progressLinear material.components.radioButton 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.virtualRepeat material.components.whiteframe".split(" "));
(function(){function l(d,a){a.has("$swipe")&&d.warn("You are using the ngTouch module. \nAngular Material already has mobile click, tap, and swipe support... \nngTouch is not supported with Angular Material!")}function k(f,a){f.decorator("$$rAF",["$delegate",d]);a.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function d(d){d.throttle=function(a){var c,g,b,h;return function(){c=arguments;h=this;b=a;g||(g=!0,d(function(){b.apply(h,
Array.prototype.slice.call(c));g=!1}))}};return d}e.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.gestures","material.core.theming"]).config(k).run(l);l.$inject=["$log","$injector"];k.$inject=["$provide","$mdThemingProvider"];d.$inject=["$delegate"]})();(function(){function l(){return{restrict:"A",link:k}}function k(d,f,a){d.$watch(a.mdAutoFocus||a.mdAutofocus||a.mdSidenavFocus,function(a){f.toggleClass("md-autofocus",a)})}e.module("material.core").directive("mdAutofocus",
l).directive("mdAutoFocus",l).directive("mdSidenavFocus",l)})();(function(){e.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return(e&&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 k="#"===e[0]?e.substr(1):e;e=k.length/3;var d=
k.substr(0,e),f=k.substr(e,e),k=k.substr(2*e);1===e&&(d+=d,f+=f,k+=k);return"rgba("+parseInt(d,16)+","+parseInt(f,16)+","+parseInt(k,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)"}}})})();(function(){function l(k,d,f){function a(b){var a=c(g+"-"+b),d=a.charAt(0).toLowerCase()+a.substring(1);return e.isDefined(h.style[b])?b:e.isDefined(h.style[a])?a:e.isDefined(h.style[d])?
d:b}function c(a){return a.replace(b,function(b,a,c,g){return g?c.toUpperCase():c})}var g=k.vendorPrefix;k=/webkit/i.test(g);var b=/([:\-_]+(.))/g,h=document.createElement("div"),m={isInputKey:function(b){return 31<=b.keyCode&&90>=b.keyCode},isNumPadKey:function(b){return 3===b.location&&97<=b.keyCode&&105>=b.keyCode},isNavigationKey:function(b){var a=m.KEY_CODE;return-1!=[a.SPACE,a.ENTER,a.UP_ARROW,a.DOWN_ARROW].indexOf(b.keyCode)},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"+(k?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(k?" webkitAnimationEnd":""),TRANSFORM:a("transform"),TRANSFORM_ORIGIN:a("transformOrigin"),TRANSITION:a("transition"),TRANSITION_DURATION:a("transitionDuration"),ANIMATION_PLAY_STATE:a("animationPlayState"),ANIMATION_DURATION:a("animationDuration"),ANIMATION_NAME:a("animationName"),ANIMATION_TIMING:a("animationTimingFunction"),
ANIMATION_DIRECTION:a("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".split(" ")};
return m}e.module("material.core").factory("$mdConstant",l);l.$inject=["$sniffer","$window","$document"]})();(function(){function l(k,d){function f(b){return p.length&&-1<b&&b<p.length}function a(b){return p.indexOf(b)}function c(b){return b&&-1<a(b)}function g(){return p.length?p[0]:null}function b(){return p.length?p[p.length-1]:null}function h(c,h,k,l){k=k||m;for(h=a(h);;){if(!f(h))return null;h+=c?-1:1;var q=null;f(h)?q=p[h]:d&&(q=c?b():g(),h=a(q));if(null===q||h===l)return null;if(k(q))return q;
e.isUndefined(l)&&(l=h)}}var m=function(){return!0};k&&!e.isArray(k)&&(k=Array.prototype.slice.call(k));d=!!d;var p=k||[];return{items:function(){return[].concat(p)},count:function(){return p.length},inRange:f,contains:c,indexOf:a,itemAt:function(b){return f(b)?p[b]:null},findBy:function(b,a){return p.filter(function(c){return c[b]===a})},add:function(b,c){if(!b)return-1;e.isNumber(c)||(c=p.length);p.splice(c,0,b);return a(b)},remove:function(b){c(b)&&p.splice(a(b),1)},first:g,last:b,next:e.bind(null,
h,!1),previous:e.bind(null,h,!0),hasPrevious:function(b){return b?f(a(b)-1):!1},hasNext:function(b){return b?f(a(b)+1):!1}}}e.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(d){d.iterator=l;return d}])}])})();(function(){function l(k,d,f){function a(a){var g=b[a];e.isUndefined(g)&&(g=k.MEDIA[a]||("("!==a.charAt(0)?"("+a+")":a),g=b[a]=g);a=m[g];e.isUndefined(a)&&((a=h[g])||(a=h[g]=f.matchMedia(g)),a.addListener(c),a=m[a.media]=!!a.matches);return a}
function c(b){d.$evalAsync(function(){m[b.media]=!!b.matches})}function g(b,a){return p[a]||(p[a]=b.$normalize(a))}var b={},h={},m={},p={};a.getResponsiveAttribute=function(a,c){for(var d=0;d<k.MEDIA_PRIORITY.length;d++){var e=k.MEDIA_PRIORITY[d];if(h[b[e]].matches&&(e=g(a,c+"-"+e),a[e]))return a[e]}return a[g(a,c)]};a.getQuery=function(b){return h[b]};a.watchResponsiveAttributes=function(b,a,c){var d=[];b.forEach(function(b){var h=g(a,b);e.isDefined(a[h])&&d.push(a.$observe(h,e.bind(void 0,c,null)));
for(var f in k.MEDIA)h=g(a,b+"-"+f),e.isDefined(a[h])&&d.push(a.$observe(h,e.bind(void 0,c,f)))});return function(){d.forEach(function(b){b()})}};return a}e.module("material.core").factory("$mdMedia",l);l.$inject=["$mdConstant","$rootScope","$window"]})();(function(){function l(k,d){function f(a){a=e.isArray(a)?a:[a];a.forEach(function(b){c.forEach(function(c){a.push(c+"-"+b)})});return a}function a(a){a=e.isArray(a)?a:[a];return f(a).map(function(a){return"["+a+"]"}).join(",")}var c=["data","x"];
return k?d?a(k):f(k):{buildList:f,buildSelector:a,hasAttribute:function(a,b){a=a[0]||a;for(var c=f(b),d=0;d<c.length;d++)if(a.hasAttribute(c[d]))return!0;return!1},removeAttribute:function(a,b){a=a[0]||a;f(b).forEach(function(b){a.removeAttribute(b)})}}}e.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(d){d.prefixer=l;return d}])}])})();(function(){function l(d,f,a,c,g,b,h,m,p,q){function n(a){return a?-1<String(a).indexOf("px")||-1<String(a).indexOf("%")?
a:a+"px":"0"}var l=b.startSymbol(),y=b.endSymbol(),w="{{"===l&&"}}"===y,v=function(a,b,c){var d=!1;a&&a.length&&(a=p.getComputedStyle(a[0]),d=e.isDefined(a[b])&&(c?a[b]==c:!0));return d},t={dom:{},now:E.performance?e.bind(E.performance,E.performance.now):Date.now||function(){return(new Date).getTime()},bidi:function(a,b,c,g){var h=!("rtl"==d[0].dir||"rtl"==d[0].body.dir);if(0==arguments.length)return h?"ltr":"rtl";var f=e.element(a);h&&e.isDefined(c)?f.css(b,n(c)):!h&&e.isDefined(g)&&f.css(b,n(g))},
bidiProperty:function(a,b,c,g){var h=!("rtl"==d[0].dir||"rtl"==d[0].body.dir);a=e.element(a);h&&e.isDefined(b)?(a.css(b,n(g)),a.css(c,"")):!h&&e.isDefined(c)&&(a.css(c,n(g)),a.css(b,""))},clientRect:function(a,b,c){a=a[0]||a;b=b||a.offsetParent||document.body;b=b[0]||b;a=a.getBoundingClientRect();c=c?b.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:a.left-c.left,top:a.top-c.top,width:a.width,height:a.height}},offsetRect:function(a,b){return t.clientRect(a,b,!0)},nodesToArray:function(a){a=
a||[];for(var b=[],c=0;c<a.length;++c)b.push(a.item(c));return b},scrollTop:function(a){a=e.element(a||d[0].body);var b=a[0]==d[0].body?d[0].body:I;return(b?b.scrollTop+b.parentElement.scrollTop:0)||Math.abs(a[0].getBoundingClientRect().top)},findFocusTarget:function(a,b){function c(a,b){var c,d=a[0].querySelectorAll(b);d&&d.length&&d.length&&e.forEach(d,function(a){a=e.element(a);a.hasClass("md-autofocus")&&(c=a)});return c}var d=this.prefixer("md-autofocus",!0),g;g=c(a,b||d);g||b==d||(g=c(a,this.prefixer("md-auto-focus",
!0)))||(g=c(a,d));return g},disableScrollAround:function(a,b,c){function g(a,b){for(var c in b)a.style[c]=b[c]}t.disableScrollAround._count=t.disableScrollAround._count||0;++t.disableScrollAround._count;if(t.disableScrollAround._enableScrolling)return t.disableScrollAround._enableScrolling;var h=d[0].body,f=function(){var a=h.parentNode,b=a.style.cssText||"",c=h.style.cssText||"",d=t.scrollTop(h),e=h.clientWidth;h.scrollHeight>h.clientHeight+1&&(g(h,{position:"fixed",width:"100%",top:-d+"px"}),a.style.overflowY=
"scroll");h.clientWidth<e&&g(h,{overflow:"hidden"});return function(){h.style.cssText=c;a.style.cssText=b;h.scrollTop=d;a.scrollTop=d}}(),m=function(a){function b(a){a.preventDefault()}a=e.element(a||h);var d;c&&c.disableScrollMask?d=a:(a=a[0],d=e.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),a.appendChild(d[0]));d.on("wheel",b);d.on("touchmove",b);return function(){d.off("wheel");d.off("touchmove");d[0].parentNode.removeChild(d[0]);delete t.disableScrollAround._enableScrolling}}(b);
return t.disableScrollAround._enableScrolling=function(){--t.disableScrollAround._count||(f(),m(),delete t.disableScrollAround._enableScrolling)}},enableScrolling:function(){var a=this.disableScrollAround._enableScrolling;a&&a()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===I){var a=e.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});a.children().css("height","60px");d[0].body.appendChild(a[0]);this.floatingScrollbars.cached=
a[0].offsetWidth==a[0].childNodes[0].offsetWidth;a.remove()}return this.floatingScrollbars.cached},forceFocus:function(a){var b=a[0]||a;document.addEventListener("click",function C(a){a.target===b&&a.$focus&&(b.focus(),a.stopImmediatePropagation(),a.preventDefault(),b.removeEventListener("click",C))},!0);a=document.createEvent("MouseEvents");a.initMouseEvent("click",!1,!0,E,{},0,0,0,0,!1,!1,!1,!1,0,null);a.$material=!0;a.$focus=!0;b.dispatchEvent(a)},createBackdrop:function(b,c){return a(t.supplant('<md-backdrop class="{0}">',
[c]))(b)},supplant:function(a,b,c){c=c||/\{([^\{\}]*)\}/g;return a.replace(c,function(a,c){var d=c.split("."),h=b;try{for(var g in d)d.hasOwnProperty(g)&&(h=h[d[g]])}catch(J){h=a}return"string"===typeof h||"number"===typeof h?h:a})},fakeNgModel:function(){return{$fake:!0,$setTouched:e.noop,$setViewValue:function(a){this.$viewValue=a;this.$render(a);this.$viewChangeListeners.forEach(function(a){a()})},$isEmpty:function(a){return 0===(""+a).length},$parsers:[],$formatters:[],$viewChangeListeners:[],
$render:e.noop}},debounce:function(a,b,c,d){var h;return function(){var g=Array.prototype.slice.call(arguments);f.cancel(h);h=f(function(){h=I;a.apply(c,g)},b||10,d)}},throttle:function(a,b){var c;return function(){var d=arguments,h=t.now();if(!c||h-c>b)a.apply(this,d),c=h}},time:function(a){var b=t.now();a();return t.now()-b},valueOnUse:function(a,b,c){var d=null,h=Array.prototype.slice.call(arguments),g=3<h.length?h.slice(3):[];Object.defineProperty(a,b,{get:function(){null===d&&(d=c.apply(a,g));
return d}})},nextUid:function(){return""+k++},disconnectScope:function(a){if(a&&a.$root!==a&&!a.$$destroyed){var b=a.$parent;a.$$disconnected=!0;b.$$childHead===a&&(b.$$childHead=a.$$nextSibling);b.$$childTail===a&&(b.$$childTail=a.$$prevSibling);a.$$prevSibling&&(a.$$prevSibling.$$nextSibling=a.$$nextSibling);a.$$nextSibling&&(a.$$nextSibling.$$prevSibling=a.$$prevSibling);a.$$nextSibling=a.$$prevSibling=null}},reconnectScope:function(a){if(a&&a.$root!==a&&a.$$disconnected){var b=a.$parent;a.$$disconnected=
!1;a.$$prevSibling=b.$$childTail;b.$$childHead?(b.$$childTail.$$nextSibling=a,b.$$childTail=a):b.$$childHead=b.$$childTail=a}},getClosest:function(a,b,c){if(e.isString(b)){var d=b.toUpperCase();b=function(a){return a.nodeName===d}}a instanceof e.element&&(a=a[0]);c&&(a=a.parentNode);if(!a)return null;do if(b(a))return a;while(a=a.parentNode);return null},elementContains:function(a,b){return(E.Node&&E.Node.prototype&&Node.prototype.contains?e.bind(a,a.contains):e.bind(a,function(c){return a===b||!!(this.compareDocumentPosition(c)&
16)}))(b)},extractElementByName:function(a,b,c,d){function g(a){var d;a:{if(a){d=0;for(var h=a.length;d<h;d++)if(a[d].nodeName.toLowerCase()===b){d=a[d];break a}}d=null}if(!d){if(c){var e;if(a)for(d=0,h=a.length;d<h;d++){var f=a[d];if(!e)for(var m=0,p=f.childNodes.length;m<p;m++)e=e||g([f.childNodes[m]])}a=e}else a=null;d=a}return d}var f=g(a);!f&&d&&h.warn(t.supplant("Unable to find node '{0}' in element '{1}'.",[b,a[0].outerHTML]));return e.element(f||a)},initOptionalProperties:function(a,b,c){c=
c||{};e.forEach(a.$$isolateBindings,function(d,h){if(d.optional&&e.isUndefined(a[h])){var g=e.isDefined(b[d.attrName]);a[h]=e.isDefined(c[h])?c[h]:g}})},nextTick:function(a,b,d){function h(){var a=g.queue,b=g.digest;g.queue=[];g.timeout=null;g.digest=!1;a.forEach(function(a){a.scope&&a.scope.$$destroyed||a.callback()});b&&c.$digest()}var g=t.nextTick,e=g.timeout,m=g.queue||[];m.push({scope:d,callback:a});null==b&&(b=!0);g.digest=g.digest||b;g.queue=m;return e||(g.timeout=f(h,0,!1))},processTemplate:function(a){return w?
a:a&&e.isString(a)?a.replace(/\{\{/g,l).replace(/}}/g,y):a},getParentWithPointerEvents:function(a){for(a=a.parent();v(a,"pointer-events","none");)a=a.parent();return a},getNearestContentElement:function(a){for(a=a.parent()[0];a&&a!==m[0]&&a!==document.body&&"MD-CONTENT"!==a.nodeName.toUpperCase();)a=a.parentNode;return a},checkStickySupport:function(){var a,b=e.element("<div>");d[0].body.appendChild(b[0]);for(var c=["sticky","-webkit-sticky"],h=0;h<c.length;++h)if(b.css({position:c[h],top:0,"z-index":2}),
b.css("position")==c[h]){a=c[h];break}b.remove();return a},parseAttributeBoolean:function(a,b){return""===a||!!a&&(!1===b||"false"!==a&&"0"!==a)},hasComputedStyle:v,isParentFormSubmitted:function(a){return(a=(a=t.getClosest(a,"form"))?e.element(a).controller("form"):null)?a.$submitted:!1},animateScrollTo:function(a,b){function c(){var f;f=t.now()-e;if(1E3<f)f=d+h;else{var m=(f/=1E3)*f;f=d+h*(-2*m*f+3*m)}a.scrollTop=f;(g?f<b:f>b)&&q(c)}var d=a.scrollTop,h=b-d,g=d<b,e=t.now();q(c)}};t.dom.animator=
g(t);return t}var k=0;e.module("material.core").factory("$mdUtil",l);l.$inject="$document $timeout $compile $rootScope $$mdAnimate $interpolate $log $rootElement $window $$rAF".split(" ");e.element.prototype.focus=e.element.prototype.focus||function(){this.length&&this[0].focus();return this};e.element.prototype.blur=e.element.prototype.blur||function(){this.length&&this[0].blur();return this}})();(function(){function l(k,d,f,a){function c(a,b,c){var g=e.element(a)[0]||a,m;if(m=g){if(!(m=g.hasAttribute(b)&&
0!==g.getAttribute(b).length)&&(m=!1,g.hasChildNodes()))for(var p=g.childNodes,k=0;k<p.length;k++){var v=p[k];1===v.nodeType&&v.hasAttribute(b)&&"none"!==(v.currentStyle?v.currentStyle:f.getComputedStyle(v)).display&&(m=!0)}m=!m}m&&(c=e.isString(c)?c.trim():"",c.length?a.attr(b,c):h&&d.warn('ARIA: Attribute "',b,'", required for accessibility, is missing on node:',g))}function g(a,b,d){k(function(){c(a,b,d())})}function b(a){a=a[0]||a;for(var b=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,
!1),c="",d;d=b.nextNode();){var h;a:{for(h=d;h.parentNode&&(h=h.parentNode)!==a;)if(h.getAttribute&&"true"===h.getAttribute("aria-hidden")){h=!0;break a}h=void 0}h||(c+=d.textContent)}return c.trim()||""}var h=this.showWarnings;return{expect:c,expectAsync:g,expectWithText:function(d,h){var e=b(d)||"";-1<e.indexOf(a.startSymbol())?g(d,h,function(){return b(d)}):c(d,h,e)},expectWithoutText:function(d,h){var g=b(d);-1<g.indexOf(a.startSymbol())||g||c(d,h,g)}}}e.module("material.core").provider("$mdAria",
function(){var e=this;e.showWarnings=!0;return{disableWarnings:function(){e.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(d,f,a,c){return l.apply(e,arguments)}]}});l.$inject=["$$rAF","$log","$window","$interpolate"]})();(function(){function l(k,d,f,a,c){this.compile=function(g){var b=g.templateUrl,h=g.template||"",m=g.controller,p=g.controllerAs,q=e.extend({},g.resolve||{}),n=e.extend({},g.locals||{}),l=g.transformTemplate||e.identity,y=g.bindToController;e.forEach(q,function(a,
b){e.isString(a)?q[b]=f.get(a):q[b]=f.invoke(a)});e.extend(q,n);q.$template=b?d(b).then(function(a){return a}):k.when(h);return k.all(q).then(function(b){var d,h=l(b.$template,g),f=g.element||e.element("<div>").html(h.trim()).contents(),k=a(f);return d={locals:b,element:f,link:function(a){b.$scope=a;if(m){var h=c(m,b,!0);y&&e.extend(h.instance,b);h=h();f.data("$ngControllerController",h);f.children().data("$ngControllerController",h);p&&(a[p]=h);d.controller=h}return k(a)}}})}}e.module("material.core").service("$mdCompiler",
l);l.$inject=["$q","$templateRequest","$injector","$compile","$controller"]})();(function(){function l(){}function k(b,c,d){function f(a){return function(b,c){c.distance<this.state.options.maxDistance&&this.dispatchEvent(b,a,c)}}var m=navigator.userAgent||navigator.vendor||E.opera,p=m.match(/ipad|iphone|ipod/i),m=m.match(/android/i),k=function(){for(var a=document.createElement("div"),b=" webkit Moz MS ms o".split(" "),c=0;c<b.length;c++){var d=b[c],d=d?d+"TouchAction":"touchAction";if(e.isDefined(a.style[d]))return d}}(),
v="undefined"!==typeof E.jQuery&&e.element===E.jQuery,n={handler:function(a,c){var d=new b(a);e.extend(d,c);h[a]=d;return n},register:function(a,b,c){var d=h[b.replace(/^\$md./,"")];if(!d)throw Error("Failed to register element with handler "+b+". Available handlers: "+Object.keys(h).join(", "));return d.registerElement(a,c)},isIos:p,isAndroid:m,isHijackingClicks:(p||m)&&!v&&!q};n.isHijackingClicks&&(n.handler("click",{options:{maxDistance:6},onEnd:f("click")}),n.handler("focus",{options:{maxDistance:6},
onEnd:function(a,b){if(b.distance<this.state.options.maxDistance){var c=a.target,d="INPUT SELECT BUTTON TEXTAREA VIDEO AUDIO".split(" ");"-1"!=c.getAttribute("tabindex")&&!c.hasAttribute("DISABLED")&&(c.hasAttribute("tabindex")||c.hasAttribute("href")||c.isContentEditable||-1!=d.indexOf(c.nodeName))&&(this.dispatchEvent(a,"focus",b),a.target.focus())}}}),n.handler("mouseup",{options:{maxDistance:6},onEnd:f("mouseup")}),n.handler("mousedown",{onStart:function(a){this.dispatchEvent(a,"mousedown")}}));
return n.handler("press",{onStart:function(a,b){this.dispatchEvent(a,"$md.pressdown")},onEnd:function(a,b){this.dispatchEvent(a,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){d.cancel(this.state.timeout)},onStart:function(a,b){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:b.x,y:b.y};this.state.timeout=d(e.bind(this,function(){this.dispatchEvent(a,"$md.hold");this.cancel()}),this.state.options.delay,!1)},onMove:function(a,b){k||"touchmove"!==
a.type||a.preventDefault();var c=this.state.pos.x-b.x,d=this.state.pos.y-b.y;Math.sqrt(c*c+d*d)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(a,b){k&&(this.oldTouchAction=a[0].style[k],a[0].style[k]=!1===b.horizontal?"pan-y":"pan-x")},onCleanup:function(a){this.oldTouchAction&&(a[0].style[k]=this.oldTouchAction)},onStart:function(a){this.state.registeredParent||this.cancel()},
onMove:function(b,c){var d,h;k||"touchmove"!==b.type||b.preventDefault();this.state.dragPointer?this.dispatchDragMove(b):(this.state.options.horizontal?(d=Math.abs(c.distanceX)>this.state.options.minDistance,h=Math.abs(c.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(d=Math.abs(c.distanceY)>this.state.options.minDistance,h=Math.abs(c.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),d?(this.state.dragPointer=a(b),g(b,this.state.dragPointer),
this.dispatchEvent(b,"$md.dragstart",this.state.dragPointer)):h&&this.cancel())},dispatchDragMove:c.throttle(function(a){this.state.isRunning&&(g(a,this.state.dragPointer),this.dispatchEvent(a,"$md.drag",this.state.dragPointer))}),onEnd:function(a,b){this.state.dragPointer&&(g(a,this.state.dragPointer),this.dispatchEvent(a,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(a,b){var c;Math.abs(b.velocityX)>this.state.options.minVelocity&&
Math.abs(b.distanceX)>this.state.options.minDistance?(c="left"==b.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(a,c)):Math.abs(b.velocityY)>this.state.options.minVelocity&&Math.abs(b.distanceY)>this.state.options.minDistance&&(c="up"==b.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(a,c))}})}function d(a){this.name=a;this.state={}}function f(b,d){function f(a){!a.clientX&&!a.clientY||a.$material||a.isIonicTap||n&&n.x==a.x&&n.y==a.y||(a.preventDefault(),a.stopPropagation())}
function k(a){0===a.clientX&&0===a.clientY||a.$material||a.isIonicTap||n&&n.x==a.x&&n.y==a.y?(n=null,"label"==a.target.tagName.toLowerCase()&&(n={x:a.x,y:a.y})):(a.preventDefault(),a.stopPropagation(),n=null)}function q(a,b){var c,g;for(g in h)c=h[g],c instanceof d&&("start"===a&&c.cancel(),c[a](b,m))}document.contains||(document.contains=function(a){return document.body.contains(a)});!u&&b.isHijackingClicks&&(document.addEventListener("click",k,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("mousedown",
f,!0),document.addEventListener("focus",f,!0),u=!0);e.element(document).on("mousedown touchstart pointerdown",function(b){if(!m){var d=+Date.now();p&&!c(b,p)&&1500>d-p.endTime||(m=a(b),q("start",b))}}).on("mousemove touchmove pointermove",function(a){m&&c(a,m)&&(g(a,m),q("move",a))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(a){m&&c(a,m)&&(g(a,m),m.endTime=+Date.now(),q("end",a),p=m,m=null)}).on("$$mdGestureReset",function(){p=m=null})}function a(a){var c=b(a);
a={startTime:+Date.now(),target:a.target,type:a.type.charAt(0)};a.startX=a.x=c.pageX;a.startY=a.y=c.pageY;return a}function c(a,b){return a&&b&&a.type.charAt(0)===b.type}function g(a,c){var d=b(a),h=c.x=d.pageX,d=c.y=d.pageY;c.distanceX=h-c.startX;c.distanceY=d-c.startY;c.distance=Math.sqrt(c.distanceX*c.distanceX+c.distanceY*c.distanceY);c.directionX=0<c.distanceX?"right":0>c.distanceX?"left":"";c.directionY=0<c.distanceY?"down":0>c.distanceY?"up":"";c.duration=+Date.now()-c.startTime;c.velocityX=
c.distanceX/c.duration;c.velocityY=c.distanceY/c.duration}function b(a){a=a.originalEvent||a;return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a}var h={},m,p,q=!1,n=null,u=!1;e.module("material.core.gestures",[]).provider("$mdGesture",l).factory("$$MdGestureHandler",function(){function a(a,b,c){c=c||m;b=new e.element.Event(b);b.$material=!0;b.pointer=c;b.srcEvent=a;e.extend(b,{clientX:c.x,clientY:c.y,screenX:c.x,screenY:c.y,pageX:c.x,pageY:c.y,ctrlKey:a.ctrlKey,altKey:a.altKey,
shiftKey:a.shiftKey,metaKey:a.metaKey});e.element(c.target).trigger(b)}function b(a,b,c){c=c||m;var d;"click"===b||"mouseup"==b||"mousedown"==b?(d=document.createEvent("MouseEvents"),d.initMouseEvent(b,!0,!0,E,a.detail,c.x,c.y,c.x,c.y,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget||null)):(d=document.createEvent("CustomEvent"),d.initCustomEvent(b,!0,!0,{}));d.$material=!0;d.pointer=c;d.srcEvent=a;c.target.dispatchEvent(d)}d.prototype={options:{},dispatchEvent:"undefined"!==typeof E.jQuery&&
e.element===E.jQuery?a:b,onSetup:e.noop,onCleanup:e.noop,onStart:e.noop,onMove:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(a,b){if(!this.state.isRunning){var c=this.getNearestParent(a.target);this.state={isRunning:!0,options:e.extend({},this.options,c&&c.$mdGesture[this.name]||{}),registeredParent:c};this.onStart(a,b)}},move:function(a,b){if(this.state.isRunning)this.onMove(a,b)},end:function(a,b){this.state.isRunning&&(this.onEnd(a,b),this.state.isRunning=!1)},cancel:function(a,b){this.onCancel(a,
b);this.state={}},getNearestParent:function(a){for(;a;){if((a.$mdGesture||{})[this.name])return a;a=a.parentNode}return null},registerElement:function(a,b){function c(){delete a[0].$mdGesture[d.name];a.off("$destroy",c);d.onCleanup(a,b||{})}var d=this;a[0].$mdGesture=a[0].$mdGesture||{};a[0].$mdGesture[this.name]=b||{};a.on("$destroy",c);d.onSetup(a,b||{});return c}};return d}).run(f);l.prototype={skipClickHijack:function(){return q=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(a,b,c){return new k(a,
b,c)}]};k.$inject=["$$MdGestureHandler","$$rAF","$timeout"];f.$inject=["$mdGesture","$$MdGestureHandler"]})();(function(){e.module("material.core").provider("$$interimElement",function(){function l(d){function f(a,b){function h(a,c){var h={};h[d]=l;return b.invoke(a||function(){return c},{},h)}var f,m,k=a(),l={hide:k.hide,cancel:k.cancel,show:function(a){a=a||{};a._options&&(a=a._options);return k.show(e.extend({},m,a))},destroy:function(a){return k.destroy(a)}};f=g.methods||[];m=h(g.optionsFactory,
{});e.forEach(c,function(a,b){l[b]=a});e.forEach(g.presets,function(a,b){function c(a){this._options=e.extend({},d,a)}var d=h(a.optionsFactory,{}),g=(a.methods||[]).concat(f);e.extend(d,{$type:b});e.forEach(g,function(a){c.prototype[a]=function(b){this._options[a]=b;return this}});a.argOption&&(g="show"+b.charAt(0).toUpperCase()+b.slice(1),l[g]=function(a){a=l[b](a);return l.show(a)});l[b]=function(b){return arguments.length&&a.argOption&&!e.isObject(b)&&!e.isArray(b)?(new c)[a.argOption](b):new c(b)}});
return l}var a=["onHide","onShow","onRemove"],c={},g={presets:{}},b={setDefaults:function(c){g.optionsFactory=c.options;g.methods=(c.methods||[]).concat(a);return b},addPreset:function(c,e){e=e||{};e.methods=e.methods||[];e.options=e.options||function(){return{}};if(/^cancel|hide|show$/.test(c))throw Error("Preset '"+c+"' in "+d+" is reserved!");if(-1<e.methods.indexOf("_options"))throw Error("Method '_options' in "+d+" is reserved!");g.presets[c]={methods:e.methods.concat(a),optionsFactory:e.options,
argOption:e.argOption};return b},addMethod:function(a,d){c[a]=d;return b},$get:f};b.addPreset("build",{methods:"controller controllerAs resolve template templateUrl themable transformTemplate parent".split(" ")});f.$inject=["$$interimElement","$injector"];return b}function k(d,f,a,c,g,b,h,m,p,k,n){return function(){function q(n){function q(a){return(a.skipCompile?null:p.compile(a))||f(function(b){b({locals:{},link:function(){return a.element}})})}function v(){var a,b=e.noop;n.hideDelay&&(a=g(l.hide,
n.hideDelay),b=function(){g.cancel(a)});n.cancelAutoHide=function(){b();n.cancelAutoHide=I}}function u(a,b,c){var d=b.onComplete||e.noop;(b.onShowing||e.noop)(b.scope,a,b,c);return f(function(h,g){try{f.when(b.onShow(b.scope,a,b,c)).then(function(){d(b.scope,a,b);v();h(a)},g)}catch(X){g(X.message)}})}function D(b,c){var d=c.onRemoving||e.noop;return a(function(h,g){try{var e=a.when(c.onRemove(c.scope,b,c)||!0);d(b,e);1==c.$destroy?h(b):e.then(function(){!c.preserveScope&&c.scope&&c.scope.$destroy();
h(b)},g)}catch(X){g(X)}})}var C,B,z=f.when(!0);n=function(a){a=a||{};a.template&&(a.template=m.processTemplate(a.template));return e.extend({preserveScope:!1,cancelAutoHide:e.noop,scope:a.scope||c.$new(a.isolateScope),onShow:function(a,b,c){return h.enter(b,c.parent)},onRemove:function(a,b){return b&&h.leave(b)||f.when()}},a)}(n);return C={options:n,deferred:f.defer(),show:function(){return f(function(a,c){function h(a){C.deferred.reject(a);c(a)}n.onCompiling&&n.onCompiling(n);q(n).then(function(c){var g=
n;e.extend(c.locals,g);var f=c.link(g.scope);g.element=f;var m;m=g.parent;m=e.isFunction(m)?m(g.scope,f,g):e.isString(m)?e.element(d[0].querySelector(m)):e.element(m);if(!(m||{}).length){var p;b[0]&&b[0].querySelector&&(p=b[0].querySelector(":not(svg) > body"));p||(p=b[0]);"#comment"==p.nodeName&&(p=d[0].body);m=e.element(p)}g.parent=m;g.themable&&k(f);B=f;z=u(B,n,c.controller).then(a,h)},h)})},remove:function(a,b,c){function d(a){C.deferred.reject(a)}if(!B)return f.when(!1);n=e.extend(n||{},c||{});
n.cancelAutoHide&&n.cancelAutoHide();n.element.triggerHandler("$mdInterimElementRemove");if(!0===n.$destroy)return D(n.element,n).then(function(){b&&d(a)||C.deferred.resolve(a)});f.when(z)["finally"](function(){D(n.element,n).then(function(){b&&d(a)||C.deferred.resolve(a)},d)});return C.deferred.promise}}}var l,w=[];return l={show:function(a){a=a||{};var b=new q(a||{});(!a.skipHide&&w.length?l.cancel():f.when(!0))["finally"](function(){w.push(b);b.show()["catch"](function(a){return a})});return b.deferred.promise},
hide:function(a,b){function c(c){c.remove(a,!1,b||{})["catch"](function(a){return a});return c.deferred.promise}if(!w.length)return f.when(a);b=b||{};if(b.closeAll){var d=f.all(w.reverse().map(c));w=[];return d}if(b.closeTo!==I)return f.all(w.splice(b.closeTo).map(c));d=w.pop();return c(d)},cancel:function(a,b){var c=w.pop();if(!c)return f.when(a);c.remove(a,!0,b||{})["catch"](function(a){return a});return c.deferred.promise["catch"](e.noop)},destroy:function(a){var b=a?null:w.shift(),c=e.element(a).length?
e.element(a)[0].parentNode:null;c&&(a=w.filter(function(a){return a.options.element[0]===c}),0<a.length&&(b=a[0],w.splice(w.indexOf(b),1)));return b?b.remove(!1,!1,{$destroy:!0}):f.when(!1)},$injector_:n}}}l.$get=k;k.$inject="$document $q $$q $rootScope $timeout $rootElement $animate $mdUtil $mdCompiler $mdTheming $injector".split(" ");return l})})();(function(){(function(){var l;function k(){l=!document.querySelector("[md-layouts-disabled]")}function d(){l=!1;return{restrict:"A",priority:"900"}}
function f(a){return["$timeout",function(b){return{restrict:"A",priority:-10,compile:function(c){if(!l)return e.noop;c.addClass(a);return function(c,d){b(function(){d.removeClass(a)},10,!1)}}}}]}function a(a){function b(b,c,d){c=g(c,a,d);var h=d.$observe(d.$normalize(a),c);c(q(a,d,""));b.$on("$destroy",function(){h()})}return["$mdUtil","$interpolate","$log",function(c,d,g){u=c;y=d;w=g;return{restrict:"A",compile:function(c,d){var g;l&&(h(a,d,c,w),m(a,q(a,d,""),p(c,a,d)),g=b);return g||e.noop}}}]}
function c(a){function b(b,c){c.addClass(a)}return["$mdUtil","$interpolate","$log",function(c,d,h){u=c;y=d;w=h;return{restrict:"A",compile:function(c,d){var h;l&&(m(a,q(a,d,""),p(c,a,d)),c.addClass(a),h=b);return h||e.noop}}}]}function g(a,b){var c;return function(d){d=m(b,d||"");e.isDefined(d)&&(c&&a.removeClass(c),c=d?b+"-"+d.replace(t,"-"):b,a.addClass(c))}}function b(a){var b=a.split("-");return["$log",function(c){c.warn(a+"has been deprecated. Please use a `"+b[0]+"-gt-<xxx>` variant.");return e.noop}]}
function h(a,b,c,d){b=c[0].nodeName.toLowerCase();switch(a.replace(v,"")){case "flex":"md-button"!=b&&"fieldset"!=b||d.warn(u.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",["<"+b+" "+a+"></"+b+">","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"]))}}function m(a,b,c){var d=b;if(!(-1<(b||"").indexOf(y.startSymbol()))){switch(a.replace(v,"")){case "layout":n(b,K)||(b=K[0]);break;case "flex":n(b,A)||isNaN(b)&&(b="");
break;case "flex-offset":case "flex-order":if(!b||isNaN(+b))b="0";break;case "layout-align":a={main:"start",cross:"stretch"};b=b||"";if(0==b.indexOf("-")||0==b.indexOf(" "))b="none"+b;b=b.toLowerCase().trim().replace(t,"-").split("-");b.length&&"space"===b[0]&&(b=[b[0]+"-"+b[1],b[2]]);0<b.length&&(a.main=b[0]||a.main);1<b.length&&(a.cross=b[1]||a.cross);0>D.indexOf(a.main)&&(a.main="start");0>C.indexOf(a.cross)&&(a.cross="stretch");b=u.supplant("{main}-{cross}",a);break;case "layout-padding":case "layout-margin":case "layout-fill":case "layout-wrap":case "layout-nowrap":case "layout-nowrap":b=
""}b!=d&&(c||e.noop)(b)}return b}function p(a,b,c){return function(a){-1<(a||"").indexOf(y.startSymbol())||(c[c.$normalize(b)]=a)}}function q(a,b,c){a=b.$normalize(a);return b[a]?b[a].replace(t,"-"):c||null}function n(a,b,c){a=c&&a?a.replace(t,c):a;var d=!1;a&&b.forEach(function(b){b=c?b.replace(t,c):b;d=d||b===a});return d}var u,y,w,v=/(-gt)?-(sm|md|lg|print)/g,t=/\s+/g,A="grow initial auto none noshrink nogrow".split(" "),K=["row","column"],D=" start center end stretch space-around space-between".split(" "),
C=["","start","center","end","stretch"];l=!0;(function(g){function p(a){return a.replace(n,"").replace(q,function(a,b,c,d){return d?c.toUpperCase():c})}var n=/^((?:x|data)[\:\-_])/i,q=/([\:\-\_]+(.))/g,v=["layout","flex","flex-order","flex-offset","layout-align"],C=["show","hide","layout-padding","layout-margin"];e.forEach(" xs gt-xs sm gt-sm md gt-md lg gt-lg xl print".split(" "),function(b){e.forEach(v,function(c){c=b?c+"-"+b:c;g.directive(p(c),a(c))});e.forEach(C,function(a){a=b?a+"-"+b:a;g.directive(p(a),
c(a))})});g.provider("$$mdLayout",function(){return{$get:e.noop,validateAttributeValue:m,validateAttributeUsage:h,disableLayouts:function(a){l=!0!==a}}}).directive("mdLayoutCss",d).directive("ngCloak",f("ng-cloak")).directive("layoutWrap",c("layout-wrap")).directive("layoutNowrap",c("layout-nowrap")).directive("layoutNoWrap",c("layout-no-wrap")).directive("layoutFill",c("layout-fill")).directive("layoutLtMd",b("layout-lt-md",!0)).directive("layoutLtLg",b("layout-lt-lg",!0)).directive("flexLtMd",b("flex-lt-md",
!0)).directive("flexLtLg",b("flex-lt-lg",!0)).directive("layoutAlignLtMd",b("layout-align-lt-md")).directive("layoutAlignLtLg",b("layout-align-lt-lg")).directive("flexOrderLtMd",b("flex-order-lt-md")).directive("flexOrderLtLg",b("flex-order-lt-lg")).directive("offsetLtMd",b("flex-offset-lt-md")).directive("offsetLtLg",b("flex-offset-lt-lg")).directive("hideLtMd",b("hide-lt-md")).directive("hideLtLg",b("hide-lt-lg")).directive("showLtMd",b("show-lt-md")).directive("showLtLg",b("show-lt-lg")).config(k)})(e.module("material.core.layout",
["ng"]))})()})();(function(){function l(k,d){var f,a=[],c={};return f={notFoundError:function(a,b){k.error((b||"")+"No instance found for handle",a)},getInstances:function(){return a},get:function(c){if(!c||""===c)return null;var b,d,g;b=0;for(d=a.length;b<d;b++)if(g=a[b],g.$$mdHandle===c)return g;return null},register:function(d,b){if(!b)return e.noop;d.$$mdHandle=b;a.push(d);(function(){var a=c[b];a&&(a.forEach(function(a){a.resolve(d)}),delete c[b])})();return function(){var b=a.indexOf(d);-1!==
b&&a.splice(b,1)}},when:function(a){if(a&&""!==a){var b=d.defer(),h=f.get(a);h?b.resolve(h):(c[a]===I&&(c[a]=[]),c[a].push(b));return b.promise}return d.reject("Invalid `md-component-id` value.")}}}e.module("material.core").factory("$mdComponentRegistry",l);l.$inject=["$log","$q"]})();(function(){(function(){function l(k){function d(d){return d.hasClass("md-icon-button")?{isMenuItem:d.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:d.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(f,
a,c){c=e.extend(d(a),c);return k.attach(f,a,c)}}}e.module("material.core").factory("$mdButtonInkRipple",l);l.$inject=["$mdInkRipple"]})()})();(function(){(function(){function l(k){return{attach:function(d,f,a){return k.attach(d,f,e.extend({center:!0,dimBackground:!1,fitRipple:!0},a))}}}e.module("material.core").factory("$mdCheckboxInkRipple",l);l.$inject=["$mdInkRipple"]})()})();(function(){(function(){function l(k){return{attach:function(d,f,a){return k.attach(d,f,e.extend({center:!1,dimBackground:!0,
outline:!1,rippleSize:"full"},a))}}}e.module("material.core").factory("$mdListInkRipple",l);l.$inject=["$mdInkRipple"]})()})();(function(){function l(a,c){return{controller:e.noop,link:function(d,b,h){h.hasOwnProperty("mdInkRippleCheckbox")?c.attach(d,b):a.attach(d,b)}}}function k(a,c,d,b,h,f,p){this.$window=b;this.$timeout=h;this.$mdUtil=f;this.$mdColorUtil=p;this.$scope=a;this.$element=c;this.options=d;this.mousedown=!1;this.ripples=[];this.lastRipple=this.timeout=null;f.valueOnUse(this,"container",
this.createContainer);this.$element.addClass("md-ink-ripple");(c.controller("mdInkRipple")||{}).createRipple=e.bind(this,this.createRipple);(c.controller("mdInkRipple")||{}).setColor=e.bind(this,this.color);this.bindEvents()}function d(a,c){if(a.mousedown||a.lastRipple)a.mousedown=!1,a.$mdUtil.nextTick(e.bind(a,c),!1)}function f(){return{controller:e.noop}}e.module("material.core").provider("$mdInkRipple",function(){var a=!1;return{disableInkRipple:function(){a=!0},$get:["$injector",function(c){return{attach:function(d,
b,h){return a||b.controller("mdNoInk")?e.noop:c.instantiate(k,{$scope:d,$element:b,rippleOptions:h})}}}]}}).directive("mdInkRipple",l).directive("mdNoInk",f).directive("mdNoBar",f).directive("mdNoStretch",f);l.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"];k.$inject="$scope $element rippleOptions $window $timeout $mdUtil $mdColorUtil".split(" ");k.prototype.color=function(a){function c(){var a=d.options&&d.options.colorElement?d.options.colorElement:[];return(a=a.length?a[0]:d.$element[0])?
d.$window.getComputedStyle(a).color:"rgb(0,0,0)"}var d=this;e.isDefined(a)&&(d._color=d._parseColor(a));return d._color||d._parseColor(d.inkRipple())||d._parseColor(c())};k.prototype.calculateColor=function(){return this.color()};k.prototype._parseColor=function(a,c){c=c||1;var d=this.$mdColorUtil;if(a){if(0===a.indexOf("rgba"))return a.replace(/\d?\.?\d*\s*\)\s*$/,(.1*c).toString()+")");if(0===a.indexOf("rgb"))return d.rgbToRgba(a);if(0===a.indexOf("#"))return d.hexToRgba(a)}};k.prototype.bindEvents=
function(){this.$element.on("mousedown",e.bind(this,this.handleMousedown));this.$element.on("mouseup touchend",e.bind(this,this.handleMouseup));this.$element.on("mouseleave",e.bind(this,this.handleMouseup));this.$element.on("touchmove",e.bind(this,this.handleTouchmove))};k.prototype.handleMousedown=function(a){if(!this.mousedown)if(a.hasOwnProperty("originalEvent")&&(a=a.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/
2);else if(a.srcElement!==this.$element[0]){var c=this.$element[0].getBoundingClientRect();this.createRipple(a.clientX-c.left,a.clientY-c.top)}else this.createRipple(a.offsetX,a.offsetY)};k.prototype.handleMouseup=function(){d(this,this.clearRipples)};k.prototype.handleTouchmove=function(){d(this,this.deleteRipples)};k.prototype.deleteRipples=function(){for(var a=0;a<this.ripples.length;a++)this.ripples[a].remove()};k.prototype.clearRipples=function(){for(var a=0;a<this.ripples.length;a++)this.fadeInComplete(this.ripples[a])};
k.prototype.createContainer=function(){var a=e.element('<div class="md-ripple-container"></div>');this.$element.append(a);return a};k.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)};k.prototype.isRippleAllowed=function(){var a=this.$element[0];do{if(!a.tagName||"BODY"===a.tagName)break;if(a&&e.isFunction(a.hasAttribute)&&(a.hasAttribute("disabled")||"false"===this.inkRipple()||"0"===this.inkRipple()))return!1}while(a=a.parentNode);return!0};
k.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")};k.prototype.createRipple=function(a,c){if(this.isRippleAllowed()){var d=this,b=d.$mdColorUtil,h=e.element('<div class="md-ripple"></div>'),f=this.$element.prop("clientWidth"),p=this.$element.prop("clientHeight"),f=2*Math.max(Math.abs(f-a),a),p=2*Math.max(Math.abs(p-c),c),p=this.options.fitRipple?Math.max(f,p):Math.sqrt(Math.pow(f,2)+Math.pow(p,2)),f=this.calculateColor();h.css({left:a+"px",top:c+"px",background:"black",width:p+
"px",height:p+"px",backgroundColor:b.rgbaToRgb(f),borderColor:b.rgbaToRgb(f)});this.lastRipple=h;this.clearTimeout();this.timeout=this.$timeout(function(){d.clearTimeout();d.mousedown||d.fadeInComplete(h)},157.5,!1);this.options.dimBackground&&this.container.css({backgroundColor:f});this.container.append(h);this.ripples.push(h);h.addClass("md-ripple-placed");this.$mdUtil.nextTick(function(){h.addClass("md-ripple-scaled md-ripple-active");d.$timeout(function(){d.clearRipples()},450,!1)},!1)}};k.prototype.fadeInComplete=
function(a){this.lastRipple===a?this.timeout||this.mousedown||this.removeRipple(a):this.removeRipple(a)};k.prototype.removeRipple=function(a){var c=this;0>this.ripples.indexOf(a)||(this.ripples.splice(this.ripples.indexOf(a),1),a.removeClass("md-ripple-active"),a.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){c.fadeOutComplete(a)},450,!1))};k.prototype.fadeOutComplete=function(a){a.remove();this.lastRipple=null}})();(function(){(function(){function l(k){return{attach:function(d,
f,a){return k.attach(d,f,e.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},a))}}}e.module("material.core").factory("$mdTabInkRipple",l);l.$inject=["$mdInkRipple"]})()})();e.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 A100",
contrastStrongLightColors:"400 500 600 700 A200 A400 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 A100",contrastStrongLightColors:"500 600 A200 A400 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 A100",contrastStrongLightColors:"300 400 A200 A400 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 A100",contrastStrongLightColors:"300 400 A200"},
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 A100",contrastStrongLightColors:"300 400 A200 A400"},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 A100",contrastStrongLightColors:"500 600 700 A200 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",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 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",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 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",
contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},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",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"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",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 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",contrastLightColors:"900",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",contrastLightColors:"800 900",contrastStrongLightColors:"800 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:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",
contrastStrongLightColors:"500 600 700 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 A100 A200",contrastStrongLightColors:"300 400"},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:"600 700 800 900 A200 A400 A700"},"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 A100 A200",contrastStrongLightColors:"400 500 700"}});(function(){(function(e){function k(a){var b=
!!document.querySelector("[md-themes-disabled]");a.disableTheming(b)}function d(a){function d(a,b){var c=G.filter(function(a){return!b[a]});if(c.length)throw Error("Missing colors %1 in palette %2!".replace("%1",c.join(", ")).replace("%2",a));return b}function h(a){function b(a){a=0===arguments.length?!0:!!a;if(a!==c.isDark){c.isDark=a;c.foregroundPalette=c.isDark?y:l;c.foregroundShadow=c.isDark?w:v;var b=c.isDark?B:z;e.forEach(c.isDark?z:B,function(a,d){var h=c.colors[d],g=b[d];if(h)for(var e in h.hues)h.hues[e]===
g[e]&&(h.hues[e]=a[e])});return c}}var c=this;c.name=a;c.colors={};c.dark=b;b(!1);D.forEach(function(a){var b=(c.isDark?z:B)[a];c[a+"Palette"]=function(d,h){var g=c.colors[a]={name:d,hues:e.extend({},b,h)};Object.keys(g.hues).forEach(function(a){if(!b[a])throw Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",a).replace("%2",c.name).replace("%3",d).replace("%4",Object.keys(b).join(", ")));});Object.keys(g.hues).map(function(a){return g.hues[a]}).forEach(function(b){if(-1==
G.indexOf(b))throw Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",b).replace("%2",c.name).replace("%3",a).replace("%4",d).replace("%5",G.join(", ")));});return c};c[a+"Color"]=function(){var b=Array.prototype.slice.call(arguments);console.warn("$mdThemingProviderTheme."+a+"Color() has been deprecated. Use $mdThemingProviderTheme."+a+"Palette() instead.");return c[a+"Palette"].apply(c,b)}})}function g(a,c){function d(a){return a===I||""===a?!0:h.THEMES[a]!==
I}var h=function(a,b){b===I&&(b=a);h.inherit(b,b)};h.THEMES=e.extend({},f);h.PALETTES=e.extend({},n);h.inherit=function(b,h){function g(){return(p=h.controller("mdTheme")||b.data("$mdThemeController"))&&p.$mdTheme||("default"==q?"":q)}function f(a){if(a){d(a)||c.warn("Attempted to use unregistered theme '"+a+"'. Register it with $mdThemingProvider.theme().");var h=b.data("$mdThemeName");h&&b.removeClass("md-"+h+"-theme");b.addClass("md-"+a+"-theme");b.data("$mdThemeName",a);p&&b.data("$mdThemeController",
p)}}function m(){var a=h.controller("mdTheme");if(!a)return!1;b.on("$destroy",a.registerChanges(function(){f(g())}));return!0}var p=h.controller("mdTheme"),n=b.attr("md-theme-watch"),n=(k||e.isDefined(n))&&"false"!=n;f(g());if(k&&!m()||!k&&n)b.on("$destroy",a.$watch(g,f))};h.registered=d;h.defaultTheme=function(){return q};h.generateTheme=function(a){b(f[a],a,F.nonce)};return h}n={};var f={},m,k=!1,q="default";e.extend(n,a);g.$inject=["$rootScope","$log"];return m={definePalette:function(a,b){b=b||
{};n[a]=d(a,b);return m},extendPalette:function(a,b){return d(a,e.extend({},n[a]||{},b))},theme:function(a,b){if(f[a])return f[a];b=b||"default";var c="string"===typeof b?f[b]:b,d=new h(a);c&&e.forEach(c.colors,function(a,b){d.colors[b]={name:a.name,hues:e.extend({},a.hues)}});return f[a]=d},configuration:function(){return e.extend({},config,{defaultTheme:q,alwaysWatchTheme:k})},disableTheming:function(a){F.disableTheming=e.isUndefined(a)||!!a},registerStyles:function(a){F.registeredStyles.push(a)},
setNonce:function(a){F.nonce=a},generateThemesOnDemand:function(a){F.generateOnDemand=a},setDefaultTheme:function(a){q=a},alwaysWatchTheme:function(a){k=a},$get:g,_LIGHT_DEFAULT_HUES:B,_DARK_DEFAULT_HUES:z,_PALETTES:n,_THEMES:f,_parseRules:c,_rgba:p}}function f(a,b,c){return{priority:100,link:{pre:function(d,h,g){var f=[],m={registerChanges:function(a,b){b&&(a=e.bind(b,a));f.push(a);return function(){var b=f.indexOf(a);-1<b&&f.splice(b,1)}},$setTheme:function(b){a.registered(b)||c.warn("attempted to use unregistered theme '"+
b+"'");m.$mdTheme=b;f.forEach(function(a){a()})}};h.data("$mdThemeController",m);m.$setTheme(b(g.mdTheme)(d));g.$observe("mdTheme",m.$setTheme)}}}}function a(a){return a}function c(a,b,c){h(a,b);c=c.replace(/THEME_NAME/g,a.name);var d=[],g=a.colors[b],f=new RegExp("\\.md-"+a.name+"-theme","g"),m=new RegExp("('|\")?{{\\s*("+b+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),k=n[g.name];c=c.replace(/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,
function(b,c,d,h,g){if("foreground"===c)return"shadow"==d?a.foregroundShadow:a.foregroundPalette[d]||a.foregroundPalette["1"];if(0===d.indexOf("hue")||"default"===d)d=a.colors[c].hues[d];return p((n[a.colors[c].name][d]||"")[g?"contrast":"value"],h)});e.forEach(g.hues,function(b,h){var g=c.replace(m,function(a,c,d,h,g){return p(k[b]["color"===h?"value":"contrast"],g)});"default"!==h&&(g=g.replace(f,".md-"+a.name+"-theme.md-"+h));"default"==a.name&&(g=g.replace(/((?:(?:(?: |>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)+) )?)((?:(?:\w|\.|-)+)?)\.md-default-theme((?: |>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,
function(a,b,c,d){return a+", "+b+c+d}));d.push(g)});return d}function g(a,c){var d=document.head,d=d?d.firstElementChild:null,h=!F.disableTheming&&a.has("$MD_THEME_CSS")?a.get("$MD_THEME_CSS"):"",h=h+F.registeredStyles.join("");if(d&&0!==h.length){e.forEach(n,function(a,b){var c=a.contrastDefaultColor,d=a.contrastLightColors||[],h=a.contrastStrongLightColors||[],g=a.contrastDarkColors||[];"string"===typeof d&&(d=d.split(" "));"string"===typeof h&&(h=h.split(" "));"string"===typeof g&&(g=g.split(" "));
delete a.contrastDefaultColor;delete a.contrastLightColors;delete a.contrastStrongLightColors;delete a.contrastDarkColors;e.forEach(a,function(b,f){if(!e.isObject(b)){var p=m(b);if(!p)throw Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",b).replace("%2",a.name).replace("%3",f));a[f]={value:p,contrast:"light"===c?-1<g.indexOf(f)?t:-1<h.indexOf(f)?K:A:-1<d.indexOf(f)?-1<h.indexOf(f)?K:A:t}}})});var d=h.split(/\}(?!(\}|'|"|;))/).filter(function(a){return a&&
a.trim().length}).map(function(a){return a.trim()+"}"}),g=new RegExp("md-("+D.join("|")+")","g");D.forEach(function(a){J[a]=""});d.forEach(function(a){a.match(g);for(var b=0,c;c=D[b];b++)if(-1<a.indexOf(".md-"+c))return J[c]+=a;for(b=0;c=D[b];b++)if(-1<a.indexOf(c))return J[c]+=a;return J[C]+=a});F.generateOnDemand||e.forEach(c.THEMES,function(a){q[a.name]||"default"!==c.defaultTheme()&&"default"===a.name||b(a,a.name,F.nonce)})}}function b(a,b,d){var h=document.head,g=h?h.firstElementChild:null;q[b]||
(D.forEach(function(b){for(b=c(a,b,J[b]);b.length;){var e=b.shift();if(e){var f=document.createElement("style");f.setAttribute("md-theme-style","");d&&f.setAttribute("nonce",d);f.appendChild(document.createTextNode(e));h.insertBefore(f,g)}}}),q[a.name]=!0)}function h(a,b){if(!n[(a.colors[b]||{}).name])throw Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",a.name).replace("%2",b).replace("%3",Object.keys(n).join(", ")));}function m(a){if(e.isArray(a)&&
3==a.length)return a;if(/^rgb/.test(a))return a.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(a,b){return 3==b?parseFloat(a,10):parseInt(a,10)});"#"==a.charAt(0)&&(a=a.substring(1));if(/^([a-fA-F0-9]{3}){1,2}$/g.test(a)){var b=a.length/3,c=a.substr(0,b),d=a.substr(b,b);a=a.substr(2*b);1===b&&(c+=c,d+=d,a+=a);return[parseInt(c,16),parseInt(d,16),parseInt(a,16)]}}function p(a,b){if(!a)return"rgb('0,0,0')";4==a.length&&(a=e.copy(a),b?a.pop():b=a.pop());return b&&("number"==typeof b||"string"==
typeof b&&b.length)?"rgba("+a.join(",")+","+b+")":"rgb("+a.join(",")+")"}e.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",f).directive("mdThemable",a).directive("mdThemesDisabled",function(){F.disableTheming=!0;return{restrict:"A",priority:"900"}}).provider("$mdTheming",d).config(k).run(g);k.$inject=["$mdThemingProvider"];var q={},n,l={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},y={name:"light",1:"rgba(255,255,255,1.0)",
2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},w="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",t=m("rgba(0,0,0,0.87)"),A=m("rgba(255,255,255,0.87)"),K=m("rgb(255,255,255)"),D=["primary","accent","warn","background"],C="primary",B={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},z={background:{"default":"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};
D.forEach(function(a){var b={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};B[a]||(B[a]=b);z[a]||(z[a]=b)});var G="50 100 200 300 400 500 600 700 800 900 A100 A200 A400 A700".split(" "),F={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};d.$inject=["$mdColorPalette"];f.$inject=["$mdTheming","$interpolate","$log"];a.$inject=["$mdTheming"];var J={};g.$inject=["$injector","$mdTheming"]})(E.angular)})();(function(){function l(k,d,f,a,c){var g;return g={translate3d:function(a,
d,g,f){function b(b){return c(a,{to:b||d,addClass:f.transitionOutClass,removeClass:f.transitionInClass}).start()}return c(a,{from:d,to:g,addClass:f.transitionInClass,removeClass:f.transitionOutClass}).start().then(function(){return b})},waitTransitionEnd:function(b,c){var h=3E3;return d(function(d,g){function e(c){c&&c.target!==b[0]||(c&&f.cancel(m),b.off(a.CSS.TRANSITIONEND,e),d())}c=c||{};(function(a){a=a||E.getComputedStyle(b[0]);return"0s"==a.transitionDuration||!a.transition&&!a.transitionProperty})(c.cachedTransitionStyles)&&
(h=0);var m=f(e,c.timeout||h);b.on(a.CSS.TRANSITIONEND,e)})},calculateTransformValues:function(a,c){var b=c.element,d=c.bounds;if(b||d){b?(b=g.clientRect(b))||(b=(b=(b=a?a.parent():null)?b.parent():null)?g.clientRect(b):null):b=g.copyRect(d);var d=g.copyRect(a[0].getBoundingClientRect()),h=g.centerPointFor(d),f=g.centerPointFor(b);return{centerX:f.x-h.x,centerY:f.y-h.y,scaleX:Math.round(100*Math.min(.5,b.width/d.width))/100,scaleY:Math.round(100*Math.min(.5,b.height/d.height))/100}}return{centerX:0,
centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(a,c){return e.bind(null,k.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(g.calculateTransformValues(a,c))},calculateSlideToOrigin:function(a,c){return e.bind(null,k.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(g.calculateTransformValues(a,c))},toCss:function(b){function c(a,b,c){e.forEach(b.split(" "),function(a){d[a]=c})}var d={};e.forEach(b,function(b,h){if(!e.isUndefined(b))if(0<="left top right bottom width height x y min-width min-height max-width max-height".indexOf(h))d[h]=
b+"px";else switch(h){case "transition":c(h,a.CSS.TRANSITION,b);break;case "transform":c(h,a.CSS.TRANSFORM,b);break;case "transformOrigin":c(h,a.CSS.TRANSFORM_ORIGIN,b);break;case "font-size":d["font-size"]=b}});return d},toTransformCss:function(b,c,d){var h={};e.forEach(a.CSS.TRANSFORM.split(" "),function(a){h[a]=b});c&&(h.transition=d||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important");return h},copyRect:function(a,c){if(!a)return null;c=c||{};e.forEach("left top right bottom width height".split(" "),
function(b){c[b]=Math.round(a[b])});c.width=c.width||c.right-c.left;c.height=c.height||c.bottom-c.top;return c},clientRect:function(a){return(a=e.element(a)[0].getBoundingClientRect())&&0<a.width&&0<a.height?g.copyRect(a):null},centerPointFor:function(a){return a?{x:Math.round(a.left+a.width/2),y:Math.round(a.top+a.height/2)}:{x:0,y:0}}}}e.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(e,d,f,a){return function(c){return l(c,e,d,f,a)}}])})();(function(){4<=
e.version.minor?e.module("material.core.animate",[]):function(){function l(a){return a.replace(/-[a-z]/g,function(a){return a.charAt(1).toUpperCase()})}var k=e.forEach,d=e.isDefined(document.documentElement.style.WebkitAppearance),f=d?"-webkit-":"",a=(d?"webkitTransitionEnd ":"")+"transitionend",c=(d?"webkitAnimationEnd ":"")+"animationend";e.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(a){return function(){return a[0].body.clientWidth+1}}]).factory("$$AnimateRunner",
["$q","$$rAFMutex",function(a,b){function c(a){this.setHost(a);this._doneCallbacks=[];this._runInAnimationFrame=b();this._state=0}c.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:e.noop,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},
"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._runInAnimationFrame(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(k(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=
0,this._state=2)}};c.all=function(a,b){function c(c){h=h&&c;++d===a.length&&b(h)}var d=0,h=!0;k(a,function(a){a.done(c)})};return c}]).factory("$$rAFMutex",["$$rAF",function(a){return function(){var b=!1;a(function(){b=!0});return function(c){b?c():a(c)}}}]).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(g,b,h,e,p,q,n){function m(a,b){b.addClass&&(p.addClass(a,b.addClass),b.addClass=null);b.removeClass&&(p.removeClass(a,b.removeClass),
b.removeClass=null)}function y(a){function b(a){return d?"Webkit"+a.charAt(0).toUpperCase()+a.substr(1):a}a=D(a);a=g.getComputedStyle(a);var c=w(a[b("transitionDuration")]),h=w(a[b("animationDuration")]),f=w(a[b("transitionDelay")]),e=w(a[b("animationDelay")]),h=h*(parseInt(a[b("animationIterationCount")],10)||1);return{duration:Math.max(h,c),delay:Math.max(e,f),animationDuration:h,transitionDuration:c,animationDelay:e,transitionDelay:f}}function w(a){var b=0;a=(a||"").split(/\s*,\s*/);k(a,function(a){"s"==
a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function v(a){B&&B();z.push(a);B=b(function(){B=null;for(var a=e(),b=0;b<z.length;b++)z[b](a);z.length=0})}function t(a,b){A(a,b);K(a,b)}function A(a,b){b.from&&(a.css(b.from),b.from=null)}function K(a,b){b.to&&(a.css(b.to),b.to=null)}function D(a){for(var b=0;b<a.length;b++)if(1===a[b].nodeType)return a[b]}function C(a,b){var c=D(a),d=l(f+"transition-delay");c.style[d]=b?"-9999s":""}var B,z=[];return function(b,
d){var e=[],p=D(b),u=p&&n.enabled(),B=!1,w=!1;u&&(d.transitionStyle&&e.push([f+"transition",d.transitionStyle]),d.keyframeStyle&&e.push([f+"animation",d.keyframeStyle]),d.delay&&e.push([f+"transition-delay",d.delay+"s"]),d.duration&&e.push([f+"transition-duration",d.duration+"s"]),B=d.keyframeStyle||d.to&&(0<d.duration||d.transitionStyle),w=!!d.addClass||!!d.removeClass,C(b,!0));var z=u&&(B||w);A(b,d);var F=!1,G,Q;return{close:g.close,start:function(){function g(){if(!F)return F=!0,G&&Q&&b.off(G,
Q),m(b,d),t(b,d),k(e,function(a){p.style[l(a[0])]=""}),n.complete(!0),n}var n=new h;v(function(){C(b,!1);if(!z)return g();k(e,function(a){var b=a[1];p.style[l(a[0])]=b});m(b,d);var h=y(b);if(0===h.duration)return g();var n=[];d.easing&&(h.transitionDuration&&n.push([f+"transition-timing-function",d.easing]),h.animationDuration&&n.push([f+"animation-timing-function",d.easing]));d.delay&&h.animationDelay&&n.push([f+"animation-delay",d.delay+"s"]);d.duration&&h.animationDuration&&n.push([f+"animation-duration",
d.duration+"s"]);k(n,function(a){var b=a[1];p.style[l(a[0])]=b;e.push(a)});var v=1E3*h.delay,D=h.duration,n=1E3*D,u=Date.now();G=[];h.transitionDuration&&G.push(a);h.animationDuration&&G.push(c);G=G.join(" ");Q=function(a){a.stopPropagation();var b=a.originalEvent||a;a=b.timeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(3));Math.max(a-u,0)>=v&&b>=D&&g()};b.on(G,Q);K(b,d);q(g,v+1.5*n,!1)});return n}}}}])}()})();e.module("material.components.autocomplete",["material.core","material.components.icon",
"material.components.virtualRepeat"]);(function(){e.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(l,k,d,f,a,c,g,b){return{restrict:"E",link:function(h,m,p){function q(){var a=parseInt(n.height,10)+Math.abs(parseInt(n.top,10));m.css("height",a+"px")}d.pin&&d.pin(m,f);var n;g(function(){n=a.getComputedStyle(b[0].body);if("fixed"===n.position){var d=k.debounce(function(){n=
a.getComputedStyle(b[0].body);q()},60,null,!1);q();e.element(a).on("resize",d);h.$on("$destroy",function(){e.element(a).off("resize",d)})}var g=m.parent();g.length&&("BODY"===g[0].nodeName&&m.css("position","fixed"),"static"===a.getComputedStyle(g[0]).position&&c.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),l.inherit(m,g))})}}}])})();(function(){function l(d){return{restrict:"E",link:function(e,a){a.addClass("_md");e.$on("$destroy",function(){d.destroy()})}}}
function k(d){function f(a,c,d,b,h,f,k,q){function g(a,b){function g(b){a.css(c.CSS.TRANSITION_DURATION,"0ms")}function e(b){b=b.pointer.distanceY;5>b&&(b=Math.max(-80,b/2));a.css(c.CSS.TRANSFORM,"translate3d(0,"+(80+b)+"px,0)")}function f(b){if(0<b.pointer.distanceY&&(20<b.pointer.distanceY||.5<Math.abs(b.pointer.velocityY))){var g=a.prop("offsetHeight")-b.pointer.distanceY;a.css(c.CSS.TRANSITION_DURATION,Math.min(g/b.pointer.velocityY*.75,500)+"ms");d.nextTick(h.cancel,!0)}else a.css(c.CSS.TRANSITION_DURATION,
""),a.css(c.CSS.TRANSFORM,"")}var m=k.register(b,"drag",{horizontal:!1});b.on("$md.dragstart",g).on("$md.drag",e).on("$md.dragend",f);return{element:a,cleanup:function(){m();b.off("$md.dragstart",g);b.off("$md.drag",e);b.off("$md.dragend",f)}}}var m;return{themable:!0,onShow:function(k,p,n,l){p=d.extractElementByName(p,"md-bottom-sheet");p.attr("tabindex","-1");p.hasClass("ng-cloak")&&q.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.",p[0]);
if(!n.disableBackdrop){m=d.createBackdrop(k,"md-bottom-sheet-backdrop md-opaque");m[0].tabIndex=-1;if(n.clickOutsideToClose)m.on("click",function(){d.nextTick(h.cancel,!0)});b.inherit(m,n.parent);a.enter(m,n.parent,null)}k=new g(p,n.parent);n.bottomSheet=k;b.inherit(k.element,n.parent);n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(k.element,n.parent));return a.enter(k.element,n.parent,m).then(function(){var a=d.findFocusTarget(p)||e.element(p[0].querySelector("button")||p[0].querySelector("a")||
p[0].querySelector(d.prefixer("ng-click",!0)))||m;n.escapeToClose&&(n.rootElementKeyupCallback=function(a){a.keyCode===c.KEY_CODE.ESCAPE&&d.nextTick(h.cancel,!0)},f.on("keyup",n.rootElementKeyupCallback),a&&a.focus())})},onRemove:function(b,c,d){var h=d.bottomSheet;d.disableBackdrop||a.leave(m);return a.leave(h.element).then(function(){d.disableParentScroll&&(d.restoreScroll(),delete d.restoreScroll);h.cleanup()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}
f.$inject="$animate $mdConstant $mdUtil $mdTheming $mdBottomSheet $rootElement $mdGesture $log".split(" ");return d("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:f})}e.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",l).provider("$mdBottomSheet",k);l.$inject=["$mdBottomSheet"];k.$inject=["$$interimElementProvider"]})();(function(){function l(d){return{restrict:"E",link:function(e,
a){d(a)}}}function k(d,f,a,c){function g(a){return e.isDefined(a.href)||e.isDefined(a.ngHref)||e.isDefined(a.ngLink)||e.isDefined(a.uiSref)}return{restrict:"EA",replace:!0,transclude:!0,template:function(a,c){return g(c)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+("undefined"===typeof c.type?"button":c.type)+'" ng-transclude></button>'},link:function(b,h,k){f(h);d.attach(b,h);a.expectWithoutText(h,"aria-label");g(k)&&e.isDefined(k.ngDisabled)&&b.$watch(k.ngDisabled,
function(a){h.attr("tabindex",a?-1:0)});h.on("click",function(a){!0===k.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});h.hasClass("md-no-focus")||(b.mouseActive=!1,h.on("mousedown",function(){b.mouseActive=!0;c(function(){b.mouseActive=!1},100)}).on("focus",function(){!1===b.mouseActive&&h.addClass("md-focused")}).on("blur",function(a){h.removeClass("md-focused")}))}}}e.module("material.components.button",["material.core"]).directive("mdButton",k).directive("a",l);l.$inject=["$mdTheming"];
k.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$timeout"]})();(function(){function l(e){return{restrict:"E",link:function(d,f,a){f.addClass("_md");e(f)}}}e.module("material.components.card",["material.core"]).directive("mdCard",l);l.$inject=["$mdTheming"]})();(function(){function l(k,d,f,a,c,g){k=k[0];return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',
compile:function(b,h){h.$set("tabindex",h.tabindex||"0");h.$set("type","checkbox");h.$set("role",h.type);return{pre:function(a,b){b.on("click",function(a){this.hasAttribute("disabled")&&a.stopImmediatePropagation()})},post:function(b,h,q,n){function m(a){h[0].hasAttribute("disabled")||b.skipToggle||b.$apply(function(){n.$setViewValue(q.ngChecked?q.checked:!n.$viewValue,a&&a.type);n.$render()})}function p(a){(l=!1!==a)&&h.attr("aria-checked","mixed");h.toggleClass("md-indeterminate",l)}var l;n=n||
c.fakeNgModel();a(h);h.children().on("focus",function(){h.focus()});c.parseAttributeBoolean(q.mdIndeterminate)&&(p(),b.$watch(q.mdIndeterminate,p));q.ngChecked&&b.$watch(b.$eval.bind(b,q.ngChecked),n.$setViewValue.bind(n));(function(a,c,d){q[a]&&b.$watch(q[a],function(a){d[a]&&h.attr(c,d[a])})})("ngDisabled","tabindex",{"true":"-1","false":q.tabindex});d.expectWithText(h,"aria-label");k.link.pre(b,{on:e.noop,0:{}},q,[n]);b.mouseActive=!1;h.on("click",m).on("keypress",function(a){var b=a.which||a.keyCode;
if(b===f.KEY_CODE.SPACE||b===f.KEY_CODE.ENTER)a.preventDefault(),h.addClass("md-focused"),m(a)}).on("mousedown",function(){b.mouseActive=!0;g(function(){b.mouseActive=!1},100)}).on("focus",function(){!1===b.mouseActive&&h.addClass("md-focused")}).on("blur",function(){h.removeClass("md-focused")});n.$render=function(){h.toggleClass("md-checked",!!n.$viewValue&&!l)}}}}}}e.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",l);l.$inject="inputDirective $mdAria $mdConstant $mdTheming $mdUtil $timeout".split(" ")})();
e.module("material.components.chips",["material.core","material.components.autocomplete"]);(function(){(function(){function l(a,c,d){function b(b,d){var h=a.PALETTES[b.palette][b.hue],h=d?h.contrast:h.value;return c.supplant("rgba({0}, {1}, {2}, {3})",[h[0],h[1],h[2],h[3]||b.opacity])}function h(a){var c={},d=a.hasOwnProperty("color");e.forEach(a,function(a,h){var e=g(a),f=-1<h.indexOf("background");c[h]=b(e);f&&!d&&(c.color=b(e,!0))});return c}function g(b){b=b.split("-");var d=e.isDefined(a.THEMES[b[0]])?
b.splice(0,1)[0]:a.defaultTheme(),h=1<b.length&&-1!==f.indexOf(b[1]),g=b[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();h&&(g=b[0]+"-"+b.splice(1,1));if(-1===f.indexOf(g)){h=a.THEMES[d].colors[g];if(!h)throw Error(c.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:g}));g=h.name}h=a.THEMES[d].colors;if("hue"===b[1]){var k=parseInt(b.splice(2,1)[0],10);if(1>k||3<k)throw Error(c.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",
{hueNumber:k}));b[1]="hue-"+k;if(!(b[0]in h))throw Error(c.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(h).join(", "),usedTheme:b[0]}));h=h[b[0]].hues[b[1]]}else h=b[1]||h[b[0]in h?b[0]:"primary"].hues["default"];return{theme:d,palette:g,hue:h,opacity:b[2]||1}}f=f||Object.keys(a.PALETTES);return{applyThemeColors:function(a,b){try{b&&a.css(h(b))}catch(n){d.error(n.message)}},getThemeColor:function(a){a=g(a);return b(a)},
hasTheme:function(b){return e.isDefined(a.THEMES[b.split("-")[0]])}}}function k(a,c,g,b){return{restrict:"A",require:["^?mdTheme"],compile:function(h,f){var k=function(){var a=f.mdColors,b=-1<a.indexOf("::"),h=b?!0:d.test(f.mdColors);f.mdColors=a.replace("::","");a=e.isDefined(f.mdColorsWatch);return b||h?!1:a?c.parseAttributeBoolean(f.mdColorsWatch):!0}();return function(c,d,h,f){var m=f[0],p={},n=function(d){"string"!==typeof d&&(d="");h.mdColors||(h.mdColors="{}");var g=b(h.mdColors)(c);m&&Object.keys(g).forEach(function(b){var c=
g[b];a.hasTheme(c)||(g[b]=(d||m.$mdTheme)+"-"+c)});l(g);return g},l=function(a){if(!e.equals(a,p)){var b=Object.keys(p);p.background&&!b.color&&b.push("color");b.forEach(function(a){d.css(a,"")})}p=a},q=e.noop;m&&(q=m.registerChanges(function(b){a.applyThemeColors(d,n(b))}));c.$on("$destroy",function(){q()});try{k?c.$watch(n,e.bind(this,a.applyThemeColors,d),!0):a.applyThemeColors(d,n())}catch(D){g.error(D.message)}}}}}var d=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,f=I;e.module("material.components.colors",
["material.core"]).directive("mdColors",k).service("$mdColors",l);l.$inject=["$mdTheming","$mdUtil","$log"];k.$inject=["$mdColors","$mdUtil","$log","$parse"]})()})();(function(){function l(d){return{restrict:"E",controller:["$scope","$element",function(d,a){this.$scope=d;this.$element=a}],link:function(e,a){a.addClass("_md");d(a);e.$broadcast("$mdContentLoaded",a);k(a[0])}}}function k(d){e.element(d).on("$md.pressdown",function(e){"t"!==e.pointer.type||e.$materialScrollFixed||(e.$materialScrollFixed=
!0,0===d.scrollTop?d.scrollTop=1:d.scrollHeight===d.scrollTop+d.offsetHeight&&--d.scrollTop)})}e.module("material.components.content",["material.core"]).directive("mdContent",l);l.$inject=["$mdTheming"]})();e.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]);(function(){function l(d,f,a){return{restrict:"E",link:function(c,g){g.addClass("_md");f(g);d(function(){function b(){g.toggleClass("md-content-overflow",f.scrollHeight>f.clientHeight)}
var d,f=g[0].querySelector("md-dialog-content");f&&(d=f.getElementsByTagName("img"),b(),e.element(d).on("load",b));c.$on("$destroy",function(){a.destroy(g)})})}}}function k(d){function f(a,c){return{template:'<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css"> <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1"> <h2 class="md-title">{{ dialog.title }}</h2> <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ng-bind-html="::dialog.mdHtmlContent"></div> <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body"> <p>{{::dialog.mdTextContent}}</p> </div> <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container"> <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder="{{::dialog.placeholder}}"> </md-input-container> </md-dialog-content> <md-dialog-actions> <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'" ng-click="dialog.abort()" class="md-primary"> {{ dialog.cancel }} </md-button> <md-button ng-click="dialog.hide()" class="md-primary" md-autofocus="dialog.$type===\'alert\'"> {{ dialog.ok }} </md-button> </md-dialog-actions></md-dialog>'.replace(/\s\s+/g,
""),controller:function(){var b="prompt"==this.$type;b&&this.initialValue&&(this.result=this.initialValue);this.hide=function(){a.hide(b?this.result:!0)};this.abort=function(){a.cancel()};this.keypress=function(b){b.keyCode===c.KEY_CODE.ENTER&&a.hide(this.result)}},controllerAs:"dialog",bindToController:!0}}function a(a,d,f,k,l,n,u,y,w,v,t){function b(a){function b(a,b){var c=e.element(a||{});if(c&&c.length){var d={top:0,left:0,height:0,width:0},h=e.isFunction(c[0].getBoundingClientRect);return e.extend(b||
{},{element:h?c:I,bounds:h?c[0].getBoundingClientRect():e.extend({},d,c[0]),focus:e.bind(c,c.focus)})}}function c(a,b){e.isString(a)&&(a=n[0].querySelector(a));return e.element(a||b)}a.origin=e.extend({element:null,bounds:null,focus:e.noop},a.origin||{});a.parent=c(a.parent,y);a.closeTo=b(c(a.closeTo));a.openFrom=b(c(a.openFrom));a.targetEvent&&(a.origin=b(a.targetEvent.target,a.origin))}function h(b,c){var d=e.element(u),h=f.debounce(function(){z(b,c)},60),g=[],m=function(){f.nextTick("alert"==c.$type?
a.hide:a.cancel,!0)};if(c.escapeToClose){var p=c.parent,n=function(a){a.keyCode===k.KEY_CODE.ESCAPE&&(a.stopPropagation(),a.preventDefault(),m())};b.on("keydown",n);p.on("keydown",n);g.push(function(){b.off("keydown",n);p.off("keydown",n)})}d.on("resize",h);g.push(function(){d.off("resize",h)});if(c.clickOutsideToClose){var l,q=function(a){l=a.target},C=function(a){l===b[0]&&a.target===b[0]&&(a.stopPropagation(),a.preventDefault(),m())};b.on("mousedown",q);b.on("mouseup",C);g.push(function(){b.off("mousedown",
q);b.off("mouseup",C)})}c.deactivateListeners=function(){g.forEach(function(a){a()});c.deactivateListeners=null}}function m(a,b,c){c.disableParentScroll&&(c.restoreScroll=f.disableScrollAround(b,c.parent));c.hasBackdrop&&(c.backdrop=f.createBackdrop(a,"md-dialog-backdrop md-opaque"),l.enter(c.backdrop,c.parent));c.hideBackdrop=function(a){c.backdrop&&(a?c.backdrop.remove():l.leave(c.backdrop));c.disableParentScroll&&(c.restoreScroll(),delete c.restoreScroll);c.hideBackdrop=null}}function p(a,b){var h=
"alert"===b.$type?"alertdialog":"dialog",e=a.find("md-dialog-content"),k=a.attr("id"),m="dialogContent_"+(k||f.nextUid());a.attr({role:h,tabIndex:"-1"});0===e.length&&(e=a,k&&(m=k));e.attr("id",m);a.attr("aria-describedby",m);b.ariaLabel?d.expect(a,"aria-label",b.ariaLabel):d.expectAsync(a,"aria-label",function(){var a=e.text().split(/\s+/);3<a.length&&(a=a.slice(0,3).concat("..."));return a.join(" ")});c=document.createElement("div");c.classList.add("md-dialog-focus-trap");c.tabIndex=0;g=c.cloneNode(!1);
h=function(){a.focus()};c.addEventListener("focus",h);g.addEventListener("focus",h);a[0].parentNode.insertBefore(c,a[0]);a.after(g)}function q(a,b){function c(a){for(;a.parentNode&&a!==document.body;){for(var b=a.parentNode.children,h=0;h<b.length;h++){var g;if(g=a!==b[h])g=-1!==["SCRIPT","STYLE"].indexOf(b[h].nodeName)?!0:void 0,g=!g;g&&b[h].setAttribute("aria-hidden",d)}c(a=a.parentNode)}}var d=!0;c(a[0]);b.unlockScreenReader=function(){d=!1;c(a[0]);b.unlockScreenReader=null}}function z(a,b){var c=
"fixed"==u.getComputedStyle(n[0].body).position,d=b.backdrop?u.getComputedStyle(b.backdrop[0]):null,d=d?Math.min(n[0].body.clientHeight,Math.ceil(Math.abs(parseInt(d.height,10)))):0,h={top:a.css("top"),height:a.css("height")};a.css({top:(c?f.scrollTop(b.parent):0)+"px",height:d?d+"px":"100%"});return function(){a.css(h)}}function G(a,b){b.parent.append(a);b.reverseContainerStretch=z(a,b);var c=a.find("md-dialog"),d=f.dom.animator,h=d.calculateZoomToOrigin,g={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},
e=d.toTransformCss(h(c,b.openFrom||b.origin)),k=d.toTransformCss("");b.fullscreen&&c.addClass("md-dialog-fullscreen");return d.translate3d(c,e,k,g).then(function(a){b.reverseAnimate=function(){delete b.reverseAnimate;return b.closeTo?(g={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},e=k,k=d.toTransformCss(h(c,b.closeTo)),d.translate3d(c,e,k,g)):a(k=d.toTransformCss(h(c,b.origin)))};b.clearAnimate=function(){delete b.clearAnimate;return d.translate3d(c,k,d.toTransformCss(""),
{})};return!0})}function F(a,b){return b.reverseAnimate().then(function(){b.contentElement&&b.clearAnimate()})}return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(a){if(!a.theme&&(a.theme=t.defaultTheme(),a.targetEvent&&a.targetEvent.target)){var b=e.element(a.targetEvent.target);a.theme=(b.controller("mdTheme")||{}).$mdTheme||a.theme}},onShow:function(a,c,d,g){e.element(n[0].body).addClass("md-dialog-is-showing");d.contentElement&&(g=d.contentElement,e.isString(g)?(g=document.querySelector(g),
d.elementInsertionSibling=g.nextElementSibling,d.elementInsertionParent=g.parentNode):(g=g[0]||g,document.contains(g)&&(d.elementInsertionSibling=g.nextElementSibling,d.elementInsertionParent=g.parentNode)),d.elementInsertionEntry=g,c=e.element(g));g=c.find("md-dialog");g.hasClass("ng-cloak")&&w.warn("$mdDialog: using `<md-dialog ng-cloak >` will affect the dialog opening animations.",c[0]);b(d);p(g,d);m(a,c,d);h(c,d);return G(c,d).then(function(){q(c,d);c[0].querySelector(".md-actions")&&w.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.");
if(d.focusOnOpen){var a;(a=f.findFocusTarget(c))||(a=c[0].querySelector(".dialog-close"),a||(a=c[0].querySelectorAll(".md-actions button, md-dialog-actions button"),a=a[a.length-1]),a=e.element(a));a.focus()}})},onShowing:function(a,b,c,d){if(d){d.mdHtmlContent=d.htmlContent||c.htmlContent||"";d.mdTextContent=d.textContent||c.textContent||d.content||c.content||"";if(d.mdHtmlContent&&!v.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(d.mdHtmlContent&&
d.mdTextContent)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");}},onRemove:function(a,b,d){function h(){e.element(n[0].body).removeClass("md-dialog-is-showing");d.contentElement?d.contentElement&&(d.reverseContainerStretch(),d.elementInsertionParent?d.elementInsertionSibling?d.elementInsertionParent.insertBefore(d.elementInsertionEntry,d.elementInsertionSibling):d.elementInsertionParent.appendChild(d.elementInsertionEntry):d.elementInsertionEntry.parentNode.removeChild(d.elementInsertionEntry)):
b.remove();d.$destroy||d.origin.focus()}d.deactivateListeners();d.unlockScreenReader();d.hideBackdrop(d.$destroy);c&&c.parentNode&&c.parentNode.removeChild(c);g&&g.parentNode&&g.parentNode.removeChild(g);return d.$destroy?h():F(b,d).then(h)},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,contentElement:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(a,b){var c;c=b.autoWrap&&!/<\/md-dialog>/g.test(a)?"<md-dialog>"+
(a||"")+"</md-dialog>":a||"";return'<div class="md-dialog-container" tabindex="-1">'+c+"</div>"}}}var c,g;f.$inject=["$mdDialog","$mdConstant"];a.$inject="$mdDialog $mdAria $mdUtil $mdConstant $animate $document $window $rootElement $log $injector $mdTheming".split(" ");return d("$mdDialog").setDefaults({methods:"disableParentScroll hasBackdrop clickOutsideToClose escapeToClose targetEvent closeTo openFrom parent fullscreen contentElement".split(" "),options:a}).addPreset("alert",{methods:"title htmlContent textContent content ariaLabel ok theme css".split(" "),
options:f}).addPreset("confirm",{methods:"title htmlContent textContent content ariaLabel ok cancel theme css".split(" "),options:f}).addPreset("prompt",{methods:"title htmlContent textContent initialValue content placeholder ariaLabel ok cancel theme css".split(" "),options:f})}e.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",l).provider("$mdDialog",k);l.$inject=["$$rAF","$mdTheming","$mdDialog"];k.$inject=["$$interimElementProvider"]})();
(function(){function l(e){return{restrict:"E",link:e}}e.module("material.components.divider",["material.core"]).directive("mdDivider",l);l.$inject=["$mdTheming"]})();(function(){(function(){function l(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(d,f){var a=d.children();e.prefixer().hasAttribute(a,"ng-repeat")?a.addClass("md-fab-action-item"):a.wrap('<div class="md-fab-action-item">')}}}e.module("material.components.fabActions",["material.core"]).directive("mdFabActions",
l);l.$inject=["$mdUtil"]})()})();(function(){(function(){function l(k,d,f,a,c,g){function b(a){"click"==a.type&&w(a);"focusout"!=a.type||A||(A=g(function(){v.close()},100,!1));"focusin"==a.type&&A&&(g.cancel(A),A=null)}function h(){0<d[0].scrollHeight?f.addClass(d,"_md-animations-ready").then(function(){d.removeClass("md-animations-waiting")}):10>t&&(g(h,100),t+=1)}function m(){d.on("keydown",n);a.nextTick(function(){e.element(document).on("click touchend",l)})}function p(){d.off("keydown",n);e.element(document).off("click touchend",
l)}function l(b){if(b.target){var c=a.getClosest(b.target,"md-fab-trigger");b=a.getClosest(b.target,"md-fab-actions");c||b||v.close()}}function n(a){switch(a.which){case c.KEY_CODE.ESCAPE:return v.close(),a.preventDefault(),!1;case c.KEY_CODE.LEFT_ARROW:return"left"===v.direction?u(a,1):u(a,-1),!1;case c.KEY_CODE.UP_ARROW:return"down"===v.direction?u(a,-1):u(a,1),!1;case c.KEY_CODE.RIGHT_ARROW:return"left"===v.direction?u(a,-1):u(a,1),!1;case c.KEY_CODE.DOWN_ARROW:return"up"===v.direction?u(a,-1):
u(a,1),!1}}function u(a,b){var c=y();v.currentActionIndex+=b;v.currentActionIndex=Math.min(c.length-1,v.currentActionIndex);v.currentActionIndex=Math.max(0,v.currentActionIndex);c=e.element(c[v.currentActionIndex]).children()[0];e.element(c).attr("tabindex",0);c.focus();a.preventDefault();a.stopImmediatePropagation()}function y(){var a=d.find("md-fab-actions")[0].querySelectorAll(".md-fab-action-item");e.forEach(a,function(a){e.element(e.element(a).children()[0]).attr("tabindex",-1)});return a}function w(b){a.getClosest(b.target,
"md-fab-trigger")&&v.toggle();a.getClosest(b.target,"md-fab-actions")&&v.close()}var v=this;v.open=function(){k.$evalAsync("vm.isOpen = true")};v.close=function(){k.$evalAsync("vm.isOpen = false");d.find("md-fab-trigger")[0].focus()};v.toggle=function(){k.$evalAsync("vm.isOpen = !vm.isOpen")};v.direction=v.direction||"down";v.isOpen=v.isOpen||!1;v.currentActionIndex=-1;d.addClass("md-animations-waiting");(function(){var a=["click","focusin","focusout"];e.forEach(a,function(a){d.on(a,b)});k.$on("$destroy",
function(){e.forEach(a,function(a){d.off(a,b)});p()})})();(function(){k.$watch("vm.direction",function(a,b){f.removeClass(d,"md-"+b);f.addClass(d,"md-"+a);v.currentActionIndex=-1});var a,b;k.$watch("vm.isOpen",function(c){v.currentActionIndex=-1;a&&b||(a=d.find("md-fab-trigger"),b=d.find("md-fab-actions"));c?m():p();var h=c?"md-is-open":"",g=c?"":"md-is-open";a.attr("aria-haspopup",!0);a.attr("aria-expanded",c);b.attr("aria-hidden",!c);f.setClass(d,h,g)})})();var t=0;h();var A}e.module("material.components.fabShared",
["material.core"]).controller("MdFabController",l);l.$inject="$scope $element $animate $mdUtil $mdConstant $timeout".split(" ")})()})();(function(){(function(){function l(d){function f(a){if(!a.hasClass("md-animations-waiting")||a.hasClass("_md-animations-ready")){var c=a[0],d=a.controller("mdFabSpeedDial"),b=c.querySelectorAll(".md-fab-action-item"),h=c.querySelector("md-fab-trigger");a=c.querySelector("._md-css-variables");var f=parseInt(E.getComputedStyle(a).zIndex);e.forEach(b,function(a,c){var d=
a.style;d.transform=d.webkitTransform="";d.transitionDelay="";d.opacity=1;d.zIndex=b.length-c+f});h.style.zIndex=f+b.length+1;d.isOpen||e.forEach(b,function(a,b){var c,g,e=a.style,f=(h.clientHeight-a.clientHeight)/2,k=(h.clientWidth-a.clientWidth)/2;switch(d.direction){case "up":c=a.scrollHeight*(b+1)+f;g="Y";break;case "down":c=-(a.scrollHeight*(b+1)+f);g="Y";break;case "left":c=a.scrollWidth*(b+1)+k;g="X";break;case "right":c=-(a.scrollWidth*(b+1)+k),g="X"}e.transform=e.webkitTransform="translate"+
g+"("+c+"px)"})}}return{addClass:function(a,c,g){a.hasClass("md-fling")?(f(a),d(g,300,!1)):g()},removeClass:function(a,c,g){f(a);d(g,300,!1)}}}function k(d){function f(a){var c=a[0],d=a.controller("mdFabSpeedDial"),b=c.querySelectorAll(".md-fab-action-item");a=c.querySelector("._md-css-variables");var h=parseInt(E.getComputedStyle(a).zIndex);e.forEach(b,function(a,c){var g=a.style,e=65*c;g.opacity=d.isOpen?1:0;g.transform=g.webkitTransform=d.isOpen?"scale(1)":"scale(0)";g.transitionDelay=(d.isOpen?
e:b.length-e)+"ms";g.zIndex=b.length-c+h})}return{addClass:function(a,c,g){f(a);d(g,300,!1)},removeClass:function(a,c,g){f(a);d(g,300,!1)}}}e.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(d,e){e.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",
l).animation(".md-scale",k).service("mdFabSpeedDialFlingAnimation",l).service("mdFabSpeedDialScaleAnimation",k);l.$inject=["$timeout"];k.$inject=["$timeout"]})()})();(function(){(function(){function l(){function k(d,f,a){if(f){var c=d[0];f=d.controller("mdFabToolbar");a=c.querySelector(".md-fab-toolbar-background");var g=c.querySelector("md-fab-trigger button"),b=c.querySelector("md-toolbar"),h=c.querySelector("md-fab-trigger button md-icon"),k=d.find("md-fab-actions").children();if(g&&a){var p=E.getComputedStyle(g).getPropertyValue("background-color"),
c=c.offsetWidth,l=c/g.offsetWidth*2;a.style.backgroundColor=p;a.style.borderRadius=c+"px";f.isOpen?(b.style.pointerEvents="inherit",a.style.width=g.offsetWidth+"px",a.style.height=g.offsetHeight+"px",a.style.transform="scale("+l+")",a.style.transitionDelay="0ms",h&&(h.style.transitionDelay=".3s"),e.forEach(k,function(a,b){a.style.transitionDelay=25*(k.length-b)+"ms"})):(b.style.pointerEvents="none",a.style.transform="scale(1)",a.style.top="0",d.hasClass("md-right")&&(a.style.left="0",a.style.right=
null),d.hasClass("md-left")&&(a.style.right="0",a.style.left=null),a.style.transitionDelay="200ms",h&&(h.style.transitionDelay="0ms"),e.forEach(k,function(a,b){a.style.transitionDelay=200+25*b+"ms"}))}}}return{addClass:function(d,e,a){k(d,e,a);a()},removeClass:function(d,e,a){k(d,e,a);a()}}}e.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper"> <div class="md-fab-toolbar-content" ng-transclude></div></div>',
scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,d,f){d.addClass("md-fab-toolbar");d.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",l).service("mdFabToolbarAnimation",l)})()})();(function(){function l(a,d,b,h){return{restrict:"E",controller:k,scope:{mdOnLayout:"&"},link:function(c,g,f,k){function m(a){null==a?k.invalidateLayout():h(a)&&
k.invalidateLayout()}function p(a,b,c,d,h){var g={};switch(d){case "fixed":g.height=M({unit:h,span:b,gutter:c});g.paddingBottom="";break;case "ratio":a=J({share:1/a*100*(1/h),gutterShare:1===a?0:(a-1)/a,gutter:c}),g.height="",g.paddingBottom=M({unit:a,span:b,gutter:c})}return g}function n(){return[].filter.call(g.children(),function(a){return"MD-GRID-TILE"==a.tagName&&!a.$$mdDestroyed})}function l(a){return[].map.call(a,function(a){a=e.element(a).controller("mdGridTile");return{row:parseInt(h.getResponsiveAttribute(a.$attrs,
"md-rowspan"),10)||1,col:parseInt(h.getResponsiveAttribute(a.$attrs,"md-colspan"),10)||1}})}function q(){var a=parseInt(h.getResponsiveAttribute(f,"md-cols"),10);if(isNaN(a))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return a}function A(){var a=h.getResponsiveAttribute(f,"md-row-height");if(!a)throw"md-grid-list: md-row-height attribute was not found";switch(K()){case "fixed":return D(a);case "ratio":return a=a.split(":"),parseFloat(a[0])/parseFloat(a[1]);
case "fit":return 0}}function K(){var a=h.getResponsiveAttribute(f,"md-row-height");if(!a)throw"md-grid-list: md-row-height attribute was not found";return"fit"==a?"fit":-1!==a.indexOf(":")?"ratio":"fixed"}function D(a){return/\D$/.test(a)?a:a+"px"}g.addClass("_md");g.attr("role","list");k.layoutDelegate=function(a){var d=n(),k={tileSpans:l(d),colCount:q(),rowMode:K(),rowHeight:A(),gutter:D(h.getResponsiveAttribute(f,"md-gutter")||1)};if(a||!e.equals(k,z))a=b(k.colCount,k.tileSpans,d).map(function(a,
b){return{grid:{element:g,style:p(k.colCount,b,k.gutter,k.rowMode,k.rowHeight)},tiles:a.map(function(a,c){var h=e.element(d[c]),g=a.position,f=a.spans,m=k.colCount,p=k.gutter,n=k.rowMode,l=k.rowHeight,q=1/m*100,m=(m-1)/m,C=J({share:q,gutterShare:m,gutter:p}),C="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:L({unit:C,offset:g.col,gutter:p}),width:M({unit:C,span:f.col,gutter:p}),paddingTop:"",marginTop:"",top:"",height:""}:{right:L({unit:C,offset:g.col,gutter:p}),width:M({unit:C,span:f.col,gutter:p}),
paddingTop:"",marginTop:"",top:"",height:""};switch(n){case "fixed":C.top=L({unit:l,offset:g.row,gutter:p});C.height=M({unit:l,span:f.row,gutter:p});break;case "ratio":n=J({share:q/l,gutterShare:m,gutter:p});C.paddingTop=M({unit:n,span:f.row,gutter:p});C.marginTop=L({unit:n,offset:g.row,gutter:p});break;case "fit":n=J({share:1/b*100,gutterShare:(b-1)/b,gutter:p}),C.top=L({unit:n,offset:g.row,gutter:p}),C.height=M({unit:n,span:f.row,gutter:p})}return{element:h,style:C}})}}).reflow().performance(),
c.mdOnLayout({$event:{performance:a}}),z=k};var C=e.bind(k,k.invalidateLayout),B=function(){for(var a in d.MEDIA)h(a),h.getQuery(d.MEDIA[a]).addListener(C);return h.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],f,m)}();c.$on("$destroy",function(){k.layoutDelegate=e.noop;B();for(var a in d.MEDIA)h.getQuery(d.MEDIA[a]).removeListener(C)});var z,G=a.startSymbol(),F=a.endSymbol(),J=a(G+"share"+F+"% - ("+(G+"gutter"+F)+" * "+(G+"gutterShare"+F)+")"),L=a("calc(("+(G+"unit"+F)+" + "+
(G+"gutter"+F)+") * "+(G+"offset"+F)+")"),M=a("calc(("+(G+"unit"+F)+") * "+(G+"span"+F)+" + ("+(G+"span"+F)+" - 1) * "+(G+"gutter"+F)+")")}}}function k(a){this.tilesInvalidated=this.layoutInvalidated=!1;this.$timeout_=a.nextTick;this.layoutDelegate=e.noop}function d(a){function c(b,c){var h,g,e,k,m,p;k=a.time(function(){g=d(b,c)});return h={layoutInfo:function(){return g},map:function(b){m=a.time(function(){var a=h.layoutInfo();e=b(a.positioning,a.rowCount)});return h},reflow:function(b){p=a.time(function(){(b||
f)(e.grid,e.tiles)});return h},performance:function(){return{tileCount:c.length,layoutTime:k,mapTime:m,reflowTime:p,totalTime:k+m+p}}}}function b(a,b){a.element.css(a.style);b.forEach(function(a){a.element.css(a.style)})}function d(a,b){function c(a,b,c){for(var d=a;d<a+b;d++)g[d]=Math.max(g[d]+c,0)}var d=0,h=0,g=function(){for(var b=[],c=0;c<a;c++)b.push(0);return b}();return{positioning:b.map(function(b,e){if(b.col>a)throw"md-grid-list: Tile at position "+e+" has a colspan ("+b.col+") that exceeds the column count ("+
a+")";for(var f=0,k=0;k-f<b.col;)if(d>=a)d=0,h++,c(0,a,-1);else{var f=g.indexOf(0,d),m;if(!(m=-1===f)){a:{for(k=f+1;k<g.length;k++)if(0!==g[k])break a;k=k===g.length?k:void 0}m=-1===k}m?(d=f=k=0,h++,c(0,a,-1)):d=k+1}c(f,b.col,b.row);d=f+b.col;return{spans:b,position:{col:f,row:h}}}),rowCount:h+Math.max.apply(Math,g)}}var f=b;c.animateWith=function(a){f=e.isFunction(a)?a:b};return c}function f(a){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},
controller:["$attrs",function(a){this.$attrs=a}],link:function(c,b,d,f){b.attr("role","listitem");var h=a.watchResponsiveAttributes(["md-colspan","md-rowspan"],d,e.bind(f,f.invalidateLayout));f.invalidateTiles();c.$on("$destroy",function(){b[0].$$mdDestroyed=!0;h();f.invalidateLayout()});e.isDefined(c.$parent.$index)&&c.$watch(function(){return c.$parent.$index},function(a,b){a!==b&&f.invalidateTiles()})}}}function a(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}e.module("material.components.gridList",
["material.core"]).directive("mdGridList",l).directive("mdGridTile",f).directive("mdGridTileFooter",a).directive("mdGridTileHeader",a).factory("$mdGridLayout",d);l.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"];k.$inject=["$mdUtil"];k.prototype={invalidateTiles:function(){this.tilesInvalidated=!0;this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(e.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.tilesInvalidated=
this.layoutInvalidated=!1}}};d.$inject=["$mdUtil"];f.$inject=["$mdMedia"]})();e.module("material.components.icon",["material.core"]);(function(){function l(a,b){function c(a,c,d,h){var g=this;g.isErrorGetter=d.mdIsError&&b(d.mdIsError);g.delegateClick=function(){g.input.focus()};g.element=c;g.setFocused=function(a){c.toggleClass("md-input-focused",!!a)};g.setHasValue=function(a){c.toggleClass("md-input-has-value",!!a)};g.setHasPlaceholder=function(a){c.toggleClass("md-input-has-placeholder",!!a)};
g.setInvalid=function(a){a?h.addClass(c,"md-input-invalid"):h.removeClass(c,"md-input-invalid")};a.$watch(function(){return g.label&&g.input},function(a){a&&!g.label.attr("for")&&g.label.attr("for",g.input.attr("id"))})}var d=["INPUT","TEXTAREA","SELECT","MD-SELECT"],h=d.reduce(function(a,b){return a.concat(["md-icon ~ "+b,".md-icon ~ "+b])},[]).join(","),g=d.reduce(function(a,b){return a.concat([b+" ~ md-icon",b+" ~ .md-icon"])},[]).join(",");c.$inject=["$scope","$element","$attrs","$animate"];return{restrict:"E",
link:function(b,c){a(c);var d=c[0].querySelector(h),e=c[0].querySelector(g);d&&c.addClass("md-icon-left");e&&c.addClass("md-icon-right")},controller:c}}function k(a,b,c,d,h){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(g,f,k,m){function p(a){q.setHasValue(!v.$isEmpty(a));return a}function n(){q.setHasValue(0<f.val().length||(f[0].validity||{}).badInput)}function l(){function c(){f.attr("rows",1).css("height","auto").addClass("md-no-flex");var a;a=z.offsetHeight;
a+=Math.max(z.scrollHeight-a,0);if(!u){var b=f[0].style.padding||"";u=f.css("padding",0).prop("offsetHeight");f[0].style.padding=b}l&&u&&(a=Math.max(a,u*l));D&&u&&(b=u*D,b<a?(f.attr("md-no-autogrow",""),a=b):f.removeAttr("md-no-autogrow"));u&&f.attr("rows",Math.round(a/u));f.css("height",a+"px").removeClass("md-no-flex")}function m(b){a.nextTick(c);return b}function p(){if(n&&(n=!1,e.element(b).off("resize",c),B&&B(),f.attr("md-no-autogrow","").off("input",c),C)){var a=v.$formatters.indexOf(m);-1<
a&&v.$formatters.splice(a,1)}}var n=!k.hasOwnProperty("mdNoAutogrow");(function(){function b(a){a.preventDefault();l=!0;C=a.clientY;v=parseFloat(f.css("height"))||f.prop("offsetHeight")}function c(a){l&&(a.preventDefault(),p(),D.addClass("md-input-resized"))}function d(b){l&&f.css("height",v+(b.pointer.y-C)-a.scrollTop()+"px")}function m(a){l&&(l=!1,D.removeClass("md-input-resized"))}if(!k.hasOwnProperty("mdNoResize")){var n=e.element('<div class="md-resize-handle"></div>'),l=!1,C=null,v=0,D=q.element,
u=h.register(n,"drag",{horizontal:!1});f.after(n);n.on("mousedown",b);D.on("$md.dragstart",c).on("$md.drag",d).on("$md.dragend",m);g.$on("$destroy",function(){n.off("mousedown",b).remove();D.off("$md.dragstart",c).off("$md.drag",d).off("$md.dragend",m);u();u=D=n=null})}})();if(n){var l=k.hasOwnProperty("rows")?parseInt(k.rows):NaN,D=k.hasOwnProperty("maxRows")?parseInt(k.maxRows):NaN,B=g.$on("md-resize-textarea",c),u=null,z=f[0];d(function(){a.nextTick(c)},10,!1);f.on("input",c);C&&v.$formatters.push(m);
l||f.attr("rows",1);e.element(b).on("resize",c);g.$on("$destroy",p);if(k.hasOwnProperty("mdDetectHidden")){var t=function(){var a=!1;return function(){var b=0===z.offsetHeight;!1===b&&!0===a&&c();a=b}}();g.$watch(function(){a.nextTick(t,!1);return!0})}}}var q=m[0],C=!!m[1],v=m[1]||a.fakeNgModel(),D=m[2];m=e.isDefined(k.readonly);var B=a.parseAttributeBoolean(k.mdNoAsterisk),u=f[0].tagName.toLowerCase();if(q)if("hidden"===k.type)f.attr("aria-hidden","true");else{if(q.input){if(q.input[0].contains(f[0]))return;
throw Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!");}q.input=f;(function(){q.label&&k.$observe("required",function(a){q.label.toggleClass("md-required",a&&!B)})})();var z=e.element('<div class="md-errors-spacer">');f.after(z);q.label||c.expect(f,"aria-label",k.placeholder);f.addClass("md-input");f.attr("id")||f.attr("id","input_"+a.nextUid());"input"===u&&"number"===k.type&&k.min&&k.max&&!k.step?f.attr("step","any"):"textarea"===u&&l();C||n();
g.$watch(q.isErrorGetter||function(){return v.$invalid&&(v.$touched||D&&D.$submitted)},q.setInvalid);k.ngValue&&k.$observe("value",n);v.$parsers.push(p);v.$formatters.push(p);f.on("input",n);if(!m)f.on("focus",function(b){a.nextTick(function(){q.setFocused(!0)})}).on("blur",function(b){a.nextTick(function(){q.setFocused(!1);n()})});g.$on("$destroy",function(){q.setFocused(!1);q.setHasValue(!1);q.input=null})}}}}function d(a,b){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(c,
d,h,g){function f(a){if(!n.parent)return a;n.text(String(d.val()||a||"").length+" / "+k);return a}var k,m=g[0],p=g[1],n,l;b.nextTick(function(){l=e.element(p.element[0].querySelector(".md-errors-spacer"));n=e.element('<div class="md-char-counter">');l.append(n);h.$set("ngTrim","false");m.$formatters.push(f);m.$viewChangeListeners.push(f);d.on("input keydown keyup",function(){f()});c.$watch(h.mdMaxlength,function(b){k=b;e.isNumber(b)&&0<b?(n.parent().length||a.enter(n,l),f()):a.leave(n)});m.$validators["md-maxlength"]=
function(a,b){return!e.isNumber(k)||0>k?!0:(a||d.val()||b||"").length<=k}})}}}function f(a){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(b,c,d,h){if(h){var g=h.element.find("label"),f=h.element.attr("md-no-float");g&&g.length||""===f||b.$eval(f)?h.setHasPlaceholder(!0):"MD-SELECT"!=c[0].nodeName&&(c=e.element('<label ng-click="delegateClick()" tabindex="-1">'+d.placeholder+"</label>"),d.$set("placeholder",null),h.element.addClass("md-icon-float").prepend(c),a(c)(b))}}}}}
function a(a){return{restrict:"A",link:function(b,c,d){function h(){f=!0;a(function(){c[0].select();f=!1},1,!1)}function g(a){f&&a.preventDefault()}if("INPUT"===c[0].nodeName||"TEXTAREA"===c[0].nodeName){var f=!1;c.on("focus",h).on("mouseup",g);b.$on("$destroy",function(){c.off("focus",h).off("mouseup",g)})}}}}function c(a){return{restrict:"EA",compile:function(b){function c(){for(var a=b[0];a=a.parentNode;)if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}function d(a){a.toggleClass("md-input-message-animation",
!0)}if(a.getClosest(b,"md-input-container"))d(b);else if(c())return function(c,h){a.getClosest(h,"md-input-container")&&d(b)}},priority:100}}function g(a,b,c){y(a,b,c);return{addClass:function(a,b,c){m(a,c)}}}function b(a,b,c){y(a,b,c);return{enter:function(a,b){m(a,b)},leave:function(a,b){p(a,b)},addClass:function(a,b,c){"ng-hide"==b?p(a,c):c()},removeClass:function(a,b,c){"ng-hide"==b?m(a,c):c()}}}function h(a,b,c){y(a,b,c);return{enter:function(a,b){return q(a)},leave:function(a,b){return n(a)}}}
function m(a,b){var c=[],d,h=u(a);e.forEach(h.children(),function(a){d=q(e.element(a));c.push(d.start())});v.all(c,b)}function p(a,b){var c=[],d,h=u(a);e.forEach(h.children(),function(a){d=n(e.element(a));c.push(d.start())});v.all(c,b)}function q(a){var b=parseInt(E.getComputedStyle(a[0]).height),c=parseInt(E.getComputedStyle(a[0]).marginTop),d=u(a),h;h=a.controller("mdInputContainer").element;return c>-b||d.hasClass("md-auto-hide")&&!h.hasClass("md-input-invalid")?t(a,{}):t(a,{event:"enter",structural:!0,
from:{opacity:0,"margin-top":-b+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function n(a){var b=a[0].offsetHeight;return 0==E.getComputedStyle(a[0]).opacity?t(a,{}):t(a,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-b+"px"},duration:.3})}function u(a){return a.hasClass("md-input-message-animation")?e.element(A.getClosest(a,function(a){return a.classList.contains("md-input-messages-animation")})):e.element(a[0].querySelector(".md-input-messages-animation"))}
function y(a,b,c){v=a;t=b;A=c}e.module("material.components.input",["material.core"]).directive("mdInputContainer",l).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(a,b,c,d){!d||c.mdNoFloat||b.hasClass("md-container-ignore")||(d.label=b,a.$on("$destroy",function(){d.label=null}))}}}).directive("input",k).directive("textarea",k).directive("mdMaxlength",d).directive("placeholder",f).directive("ngMessages",function(){function a(a){return w.some(function(b){return a[b]})}
return{restrict:"EA",link:function(b,c,d,h){h&&(c.toggleClass("md-input-messages-animation",!0),c.toggleClass("md-auto-hide",!0),("false"==d.mdAutoHide||a(d))&&c.toggleClass("md-auto-hide",!1))},require:"^^?mdInputContainer"}}).directive("ngMessage",c).directive("ngMessageExp",c).directive("mdSelectOnFocus",a).animation(".md-input-invalid",g).animation(".md-input-messages-animation",b).animation(".md-input-message-animation",h).service("mdInputInvalidAnimation",g).service("mdInputMessagesAnimation",
b).service("mdInputMessageAnimation",h);l.$inject=["$mdTheming","$parse"];k.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"];d.$inject=["$animate","$mdUtil"];f.$inject=["$compile"];a.$inject=["$timeout"];var w=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];c.$inject=["$mdUtil"];var v,t,A;g.$inject=["$$AnimateRunner","$animateCss","$mdUtil"];b.$inject=["$$AnimateRunner","$animateCss","$mdUtil"];h.$inject=["$$AnimateRunner","$animateCss","$mdUtil"]})();(function(){function l(d){return{restrict:"E",
compile:function(a){a[0].setAttribute("role","list");return d}}}function k(d,a,c,g){var b=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(h,f){function k(){var a=e.element(v),b="left";if(a.parent().hasClass("md-secondary-container")||v.parentNode.firstElementChild!==v)b="right";a.attr("md-position-mode")||a.attr("md-position-mode",b+" target");a=a.children().eq(0);l(a[0])||a.attr("ng-click","$mdOpenMenu($event)");a.attr("aria-label")||a.attr("aria-label",
"Open List Menu")}function m(a){"div"==a?(t=e.element('<div class="md-no-style md-list-item-inner">'),t.append(h.contents()),h.addClass("md-proxy-focus")):(t=e.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>'),a=e.element('<md-button class="md-no-style"></md-button>'),a[0].setAttribute("aria-label",h[0].textContent),n(h[0],a[0]),h.hasClass("md-no-focus")&&a.addClass("md-no-focus"),t.prepend(a),t.children().eq(1).append(h.contents()),h.addClass("_md-button-wrap"));
h[0].setAttribute("tabindex","-1");h.append(t)}function n(a,b,d){var h=c.prefixer("ng-if ng-click ng-dblclick aria-label ng-disabled ui-sref href ng-href target ng-attr-ui-sref ui-sref-opts".split(" "));d&&(h=h.concat(c.prefixer(d)));e.forEach(h,function(c){a.hasAttribute(c)&&(b.setAttribute(c,a.getAttribute(c)),a.removeAttribute(c))})}function l(a){a=a.attributes;for(var b=0;b<a.length;b++)if("ngClick"===f.$normalize(a[b].name))return!0;return!1}var y=h[0].querySelectorAll(".md-secondary"),w,v,t=
h;h[0].setAttribute("role","listitem");if(f.ngClick||f.ngDblclick||f.ngHref||f.href||f.uiSref||f.ngAttrUiSref)m("button");else{for(var A=0,K;K=b[A];++A)if(v=h[0].querySelector(K)){w=!0;break}w?m("div"):h[0].querySelector("md-button:not(.md-secondary):not(.md-exclude)")||h.addClass("md-no-proxy")}(function(){var a=e.element('<div class="md-secondary-container">');e.forEach(y,function(c){var g;if(g=c)g=c.nodeName.toUpperCase(),g=!("MD-BUTTON"==g||"BUTTON"==g);g&&c.hasAttribute("ng-click")&&(d.expect(c,
"aria-label"),g=e.element('<md-button class="md-secondary md-icon-button">'),n(c,g[0],["ng-if","ng-hide","ng-show"]),c.setAttribute("tabindex","-1"),g.append(c),c=g[0]);c&&(!l(c)||!f.ngClick&&-1!=b.indexOf(c.nodeName.toLowerCase()))&&e.element(c).removeClass("md-secondary");h.addClass("md-with-secondary");a.append(c)});t.append(a)})();(function(){for(var a=["md-switch","md-checkbox"],b,c=0,d;d=a[c];++c)if((b=h.find(d)[0])&&!b.hasAttribute("aria-label")){d=h.find("p")[0];if(!d)break;b.setAttribute("aria-label",
"Toggle "+d.textContent)}})();w&&"MD-MENU"===v.nodeName&&k();return function(d,h,f,k){function m(a){var b=["md-slider"];if(!a.path)return-1!==b.indexOf(a.target.tagName.toLowerCase());for(var c=a.path.indexOf(h.children()[0]),d=0;d<c;d++)if(-1!==b.indexOf(a.path[d].tagName.toLowerCase()))return!0}h.addClass("_md");var p=[],n=h[0].firstElementChild,q=h.hasClass("_md-button-wrap")?n.firstElementChild:n,v=q&&l(q);(function(){n&&n.children&&!v&&e.forEach(b,function(a){e.forEach(n.querySelectorAll(a+":not(.md-secondary)"),
function(a){p.push(a)})})})();if(1==p.length||v)h.addClass("md-clickable"),v||k.attachRipple(d,e.element(h[0].querySelector(".md-no-style")));h.hasClass("md-proxy-focus")&&p.length&&e.forEach(p,function(a){a=e.element(a);d.mouseActive=!1;a.on("mousedown",function(){d.mouseActive=!0;g(function(){d.mouseActive=!1},100)}).on("focus",function(){!1===d.mouseActive&&h.addClass("md-focused");a.on("blur",function S(){h.removeClass("md-focused");a.off("blur",S)})})});var C=function(b){"INPUT"!=b.target.nodeName&&
"TEXTAREA"!=b.target.nodeName&&!b.target.isContentEditable&&(b.which||b.keyCode)==a.KEY_CODE.SPACE&&q&&(q.click(),b.preventDefault(),b.stopPropagation())};v||p.length||q&&q.addEventListener("keypress",C);h.off("click");h.off("keypress");if(1==p.length&&q)h.children().eq(0).on("click",function(a){m(a)||!c.getClosest(a.target,"BUTTON")&&q.contains(a.target)&&e.forEach(p,function(b){a.target===b||b.contains(a.target)||("MD-MENU"===b.nodeName&&(b=b.children[0]),e.element(b).triggerHandler("click"))})});
d.$on("$destroy",function(){q&&q.removeEventListener("keypress",C)})}}}}function d(d,a,c){this.attachRipple=function(a,b){c.attach(a,b,{})}}e.module("material.components.list",["material.core"]).controller("MdListController",d).directive("mdList",l).directive("mdListItem",k);l.$inject=["$mdTheming"];k.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"];d.$inject=["$scope","$element","$mdListInkRipple"]})();e.module("material.components.menu",["material.core","material.components.backdrop"]);e.module("material.components.menuBar",
["material.core","material.components.menu"]);(function(){function l(a){return{restrict:"E",transclude:!0,controller:k,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="listbox"tabindex="0"ng-focus="ctrl.onFocus()"ng-blur="ctrl.onBlur()"ng-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar></md-nav-ink-bar></div>',
link:function(c,d,b,h){h.navBarAriaLabel||a.expectAsync(d,"aria-label",e.noop)}}}function k(a,c,d,b){this._$timeout=d;this._$scope=c;this._$mdConstant=b;this._navBarEl=a[0];var h=this,g=this._$scope.$watch(function(){return h._navBarEl.querySelectorAll("._md-nav-button").length},function(a){0<a&&(h._initTabs(),g())})}function d(a){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:f,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}"><md-button ng-if="ctrl.mdNavSref" class="_md-nav-button md-accent"ng-class="ctrl.getNgClassMap()"tabindex="-1"ui-sref="{{ctrl.mdNavSref}}"><span ng-transclude class="_md-nav-button-text"></span></md-button><md-button ng-if="ctrl.mdNavHref" class="_md-nav-button md-accent"ng-class="ctrl.getNgClassMap()"tabindex="-1"ng-href="{{ctrl.mdNavHref}}"><span ng-transclude class="_md-nav-button-text"></span></md-button><md-button ng-if="ctrl.mdNavClick" class="_md-nav-button md-accent"ng-class="ctrl.getNgClassMap()"tabindex="-1"ng-click="ctrl.mdNavClick()"><span ng-transclude class="_md-nav-button-text"></span></md-button></li>',
scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",name:"@"},link:function(c,d,b,h){var g=h[0],f=h[1];a(function(){g.name||(g.name=e.element(d[0].querySelector("._md-nav-button-text")).text().trim());e.element(d[0].querySelector("._md-nav-button")).on("click",function(){f.mdSelectedNavItem=g.name;c.$apply()})})}}}function f(a){this._$element=a;this._focused=this._selected=!1;var c=!!a.attr("md-nav-click"),d=!!a.attr("md-nav-href");a=!!a.attr("md-nav-sref");if(1<(c?1:0)+(d?1:0)+(a?1:0))throw Error("Must specify exactly one of md-nav-click, md-nav-href, md-nav-sref for nav-item directive");
}e.module("material.components.navBar",["material.core"]).controller("MdNavBarController",k).directive("mdNavBar",l).controller("MdNavItemController",f).directive("mdNavItem",d);l.$inject=["$mdAria"];k.$inject=["$element","$scope","$timeout","$mdConstant"];k.prototype._initTabs=function(){this._inkbar=e.element(this._navBarEl.getElementsByTagName("md-nav-ink-bar")[0]);var a=this;this._$timeout(function(){a._updateTabs(a.mdSelectedNavItem,I)});this._$scope.$watch("ctrl.mdSelectedNavItem",function(c,
d){a._$timeout(function(){a._updateTabs(c,d)})})};k.prototype._updateTabs=function(a,c){var d=this,b=this._getTabs(),h=-1,f=-1,e=this._getTabByName(a),k=this._getTabByName(c);k&&(k.setSelected(!1),h=b.indexOf(k));e&&(e.setSelected(!0),f=b.indexOf(e));this._$timeout(function(){d._updateInkBarStyles(e,f,h)})};k.prototype._updateInkBarStyles=function(a,c,d){this._inkbar.toggleClass("_md-left",c<d).toggleClass("_md-right",c>d);this._inkbar.css({display:0>c?"none":""});a&&(a=a.getButtonEl(),this._inkbar.css({left:a.offsetLeft+
"px",width:a.offsetWidth+"px"}))};k.prototype._getTabs=function(){return Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(a){return e.element(a).controller("mdNavItem")})};k.prototype._getTabByName=function(a){return this._findTab(function(c){return c.getName()==a})};k.prototype._getSelectedTab=function(){return this._findTab(function(a){return a.isSelected()})};k.prototype.getFocusedTab=function(){return this._findTab(function(a){return a.hasFocus()})};k.prototype._findTab=
function(a){for(var c=this._getTabs(),d=0;d<c.length;d++)if(a(c[d]))return c[d];return null};k.prototype.onFocus=function(){var a=this._getSelectedTab();a&&a.setFocused(!0)};k.prototype.onBlur=function(){var a=this.getFocusedTab();a&&a.setFocused(!1)};k.prototype._moveFocus=function(a,c){a.setFocused(!1);c.setFocused(!0)};k.prototype.onKeydown=function(a){var c=this._$mdConstant.KEY_CODE,d=this._getTabs(),b=this.getFocusedTab();if(b){var h=d.indexOf(b);switch(a.keyCode){case c.UP_ARROW:case c.LEFT_ARROW:0<
h&&this._moveFocus(b,d[h-1]);break;case c.DOWN_ARROW:case c.RIGHT_ARROW:h<d.length-1&&this._moveFocus(b,d[h+1]);break;case c.SPACE:case c.ENTER:this._$timeout(function(){b.getButtonEl().click()})}}};d.$inject=["$$rAF"];f.$inject=["$element"];f.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}};f.prototype.getName=function(){return this.name};f.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")};
f.prototype.setSelected=function(a){this._selected=a};f.prototype.isSelected=function(){return this._selected};f.prototype.setFocused=function(a){this._focused=a};f.prototype.hasFocus=function(){return this._focused}})();(function(){function l(a,h,g,k){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:e.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:c};
this._config={};this._$rootElement=a;this._$rootScope=h;this._$injector=g;this._$window=k;this.animation=f.animation;this.xPosition=d.xPosition;this.yPosition=d.yPosition}function k(a,c){this._$q=c.get("$q");this._$mdCompiler=c.get("$mdCompiler");this._$mdConstant=c.get("$mdConstant");this._$mdUtil=c.get("$mdUtil");this._$rootScope=c.get("$rootScope");this._$animate=c.get("$animate");this._$mdPanel=c.get("$mdPanel");this._$log=c.get("$log");this._$window=c.get("$window");this._$$rAF=c.get("$$rAF");
this.id=a.id;this.config=a;this.isAttached=!1;this._removeListeners=[];this._restoreScroll=null}function d(a){this._$window=a.get("$window");this._isRTL="rtl"===a.get("$mdUtil").bidi();this._absolute=!1;this._right=this._left=this._bottom=this._top="";this._translateX=[];this._translateY=[];this._positions=[]}function f(a){this._$mdUtil=a.get("$mdUtil");this._animationClass=""}function a(a){a=e.isString(a)?document.querySelector(a):a;return e.element(a)}e.module("material.components.panel",["material.core",
"material.components.backdrop"]).service("$mdPanel",l);var c=80,g=e.element('<div class="_md-panel-focus-trap" tabindex="0"></div>');l.$inject=["$rootElement","$rootScope","$injector","$window"];l.prototype.create=function(a){a=a||{};this._config={scope:this._$rootScope.$new(!0),attachTo:this._$rootElement};e.extend(this._config,this._defaultConfigOptions,a);a="panel_"+this._$injector.get("$mdUtil").nextUid();a=e.extend({id:a},this._config);return new k(a,this._$injector)};l.prototype.open=function(a){var b=
this.create(a);return b.open().then(function(){return b})};l.prototype.newPanelPosition=function(){return new d(this._$injector)};l.prototype.newPanelAnimation=function(){return new f(this._$injector)};l.prototype._wrapTemplate=function(a){return'<div class="md-panel-outer-wrapper"> <div class="md-panel" style="left: -9999px;">'+(a||"")+"</div></div>"};k.prototype.open=function(){var a=this;return this._$q(function(b,c){var d=a._done(b,a),h=a._simpleBind(a.show,a);a.attach().then(h).then(d)["catch"](c)})};
k.prototype.close=function(){var a=this;return this._$q(function(b,c){var d=a._done(b,a),h=a._simpleBind(a.detach,a);a.hide().then(h).then(d)["catch"](c)})};k.prototype.attach=function(){if(this.isAttached&&this._panelEl)return this._$q.when(this);var a=this;return this._$q(function(b,c){var d=a._done(b,a),h=a.config.onDomAdded||e.noop;a._$q.all([a._createBackdrop(),a._createPanel().then(function(b){a.isAttached=!0;a._addEventListeners();return b})["catch"](c)]).then(h).then(d)["catch"](c)})};k.prototype.detach=
function(){if(!this.isAttached)return this._$q.when(this);var a=this,c=a.config.onDomRemoved||e.noop,d=function(){a._removeEventListeners();a._topFocusTrap&&a._topFocusTrap.parentNode&&a._topFocusTrap.parentNode.removeChild(a._topFocusTrap);a._bottomFocusTrap&&a._bottomFocusTrap.parentNode&&a._bottomFocusTrap.parentNode.removeChild(a._bottomFocusTrap);a._panelContainer.remove();a.isAttached=!1;return a._$q.when(a)};this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null);return this._$q(function(b,
h){var g=a._done(b,a);a._$q.all([d(),a._backdropRef?a._backdropRef.detach():!0]).then(c).then(g)["catch"](h)})};k.prototype.destroy=function(){this.config.scope.$destroy();this.config.locals=null};k.prototype.show=function(){if(!this._panelContainer)return this._$q(function(a,b){b("Panel does not exist yet. Call open() or attach().")});if(!this._panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var a=this,c=function(){a.removeClass("_md-panel-hidden");return a._animateOpen()};
return this._$q(function(b,d){var h=a._done(b,a),g=a.config.onOpenComplete||e.noop;a._$q.all([a._backdropRef?a._backdropRef.show():a,c().then(function(){a._focusOnOpen()},d)]).then(g).then(h)["catch"](d)})};k.prototype.hide=function(){if(!this._panelContainer)return this._$q(function(a,b){b("Panel does not exist yet. Call open() or attach().")});if(this._panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var b=this;return this._$q(function(c,d){var h=b._done(c,b),g=b.config.onRemoving||
e.noop;b._$q.all([b._backdropRef?b._backdropRef.hide():b,b._animateClose().then(g).then(function(){b.addClass("_md-panel-hidden")}).then(function(){var c=b.config.origin;c&&a(c).focus()})["catch"](d)]).then(h,d)})};k.prototype.addClass=function(a,c){if(!this._panelContainer)throw Error("Panel does not exist yet. Call open() or attach().");c||this._panelContainer.hasClass(a)?c&&!this._panelEl.hasClass(a)&&this._panelEl.addClass(a):this._panelContainer.addClass(a)};k.prototype.removeClass=function(a,
c){if(!this._panelContainer)throw Error("Panel does not exist yet. Call open() or attach().");!c&&this._panelContainer.hasClass(a)?this._panelContainer.removeClass(a):c&&this._panelEl.hasClass(a)&&this._panelEl.removeClass(a)};k.prototype.toggleClass=function(a,c){if(!this._panelContainer)throw Error("Panel does not exist yet. Call open() or attach().");c?this._panelEl.toggleClass(a):this._panelContainer.toggleClass(a)};k.prototype._createPanel=function(){var b=this;return this._$q(function(c,d){b.config.locals||
(b.config.locals={});b.config.locals.mdPanelRef=b;b._$mdCompiler.compile(b.config).then(function(h){b._panelContainer=h.link(b.config.scope);a(b.config.attachTo).append(b._panelContainer);b.config.disableParentScroll&&(b._restoreScroll=b._$mdUtil.disableScrollAround(null,b._panelContainer,{disableScrollMask:!0}));b._panelEl=e.element(b._panelContainer[0].querySelector(".md-panel"));b.config.panelClass&&b._panelEl.addClass(b.config.panelClass);b.config.propagateContainerEvents&&b._panelContainer.css("pointer-events",
"none");b._$animate.pin&&b._$animate.pin(b._panelContainer,a(b.config.attachTo));b._configureTrapFocus();b._addStyles().then(function(){c(b)},d)},d)})};k.prototype._addStyles=function(){var a=this;return this._$q(function(b){a._panelContainer.css("z-index",a.config.zIndex);a._panelEl.css("z-index",a.config.zIndex+1);var c=function(){a._panelEl.css("left","");a._panelContainer.addClass("_md-panel-hidden");b(a)};a.config.fullscreen?(a._panelEl.addClass("_md-panel-fullscreen"),c()):a.config.position?
a._$rootScope.$$postDigest(function(){a._updatePosition(!0);b(a)}):c()})};k.prototype.updatePosition=function(a){if(!this._panelContainer)throw Error("Panel does not exist yet. Call open() or attach().");this.config.position=a;this._updatePosition()};k.prototype._updatePosition=function(a){var b=this.config.position;b&&(b._setPanelPosition(this._panelEl),a&&this._panelContainer.addClass("_md-panel-hidden"),this._panelEl.css(d.absPosition.TOP,b.getTop()),this._panelEl.css(d.absPosition.BOTTOM,b.getBottom()),
this._panelEl.css(d.absPosition.LEFT,b.getLeft()),this._panelEl.css(d.absPosition.RIGHT,b.getRight()),this._panelEl.css(this._$mdConstant.CSS.TRANSFORM,b.getTransform()))};k.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var a=this;this._$rootScope.$$postDigest(function(){(a._$mdUtil.findFocusTarget(a._panelEl)||a._panelEl).focus()})}};k.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var a={animation:this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",
close:"_md-opaque-leave"}),attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(a)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}};k.prototype._addEventListeners=function(){this._configureEscapeToClose();this._configureClickOutsideToClose();this._configureScrollListener()};k.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(a){a()});
this._removeListeners=[]};k.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var b=a(this.config.attachTo),c=this,d=function(a){a.keyCode===c._$mdConstant.KEY_CODE.ESCAPE&&(a.stopPropagation(),a.preventDefault(),c.close())};this._panelContainer.on("keydown",d);b.on("keydown",d);this._removeListeners.push(function(){c._panelContainer.off("keydown",d);b.off("keydown",d)})}};k.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var a=this._panelContainer,
c,d=function(a){c=a.target},g=this,f=function(b){c===a[0]&&b.target===a[0]&&(b.stopPropagation(),b.preventDefault(),g.close())};a.on("mousedown",d);a.on("mouseup",f);this._removeListeners.push(function(){a.off("mousedown",d);a.off("mouseup",f)})}};k.prototype._configureScrollListener=function(){var a=e.bind(this,this._updatePosition),c=this._$$rAF.throttle(a),d=this,g=function(){d.config.disableParentScroll||c()};this._$window.addEventListener("scroll",g,!0);this._removeListeners.push(function(){d._$window.removeEventListener("scroll",
g,!0)})};k.prototype._configureTrapFocus=function(){this._panelEl.attr("tabIndex","-1");if(this.config.trapFocus){var a=this._panelEl;this._topFocusTrap=g.clone()[0];this._bottomFocusTrap=g.clone()[0];var c=function(){a.focus()};this._topFocusTrap.addEventListener("focus",c);this._bottomFocusTrap.addEventListener("focus",c);this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",c);this._bottomFocusTrap.removeEventListener("focus",c)},this));a[0].parentNode.insertBefore(this._topFocusTrap,
a[0]);a.after(this._bottomFocusTrap)}};k.prototype._animateOpen=function(){this.addClass("md-panel-is-showing");var a=this.config.animation;if(!a)return this.addClass("_md-panel-shown"),this._$q.when(this);var c=this;return this._$q(function(b){var d=c._done(b,c);a.animateOpen(c._panelEl).then(d,function(){c._$log.warn("MdPanel Animations failed. Showing panel without animating.");d()})})};k.prototype._animateClose=function(){var a=this.config.animation;if(!a)return this.removeClass("md-panel-is-showing"),
this.removeClass("_md-panel-shown"),this._$q.when(this);var c=this;return this._$q(function(b){var d=function(){c.removeClass("md-panel-is-showing");b(c)};a.animateClose(c._panelEl).then(d,function(){c._$log.warn("MdPanel Animations failed. Hiding panel without animating.");d()})})};k.prototype._simpleBind=function(a,c){return function(b){return a.apply(c,b)}};k.prototype._done=function(a,c){return function(){a(c)}};d.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",
OFFSET_END:"offset-end"};d.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"};d.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"};d.prototype.absolute=function(){this._absolute=!0;return this};d.prototype._setPosition=function(a,c){if(a===d.absPosition.RIGHT||a===d.absPosition.LEFT)this._left=this._right="";else if(a===d.absPosition.BOTTOM||a===d.absPosition.TOP)this._top=this._bottom="";else{var b=Object.keys(d.absPosition).join().toLowerCase();
throw Error("Position must be one of "+b+".");}this["_"+a]=e.isString(c)?c:"0";return this};d.prototype.top=function(a){return this._setPosition(d.absPosition.TOP,a)};d.prototype.bottom=function(a){return this._setPosition(d.absPosition.BOTTOM,a)};d.prototype.start=function(a){return this._setPosition(this._isRTL?d.absPosition.RIGHT:d.absPosition.LEFT,a)};d.prototype.end=function(a){return this._setPosition(this._isRTL?d.absPosition.LEFT:d.absPosition.RIGHT,a)};d.prototype.left=function(a){return this._setPosition(d.absPosition.LEFT,
a)};d.prototype.right=function(a){return this._setPosition(d.absPosition.RIGHT,a)};d.prototype.centerHorizontally=function(){this._left="50%";this._right="";this._translateX=["-50%"];return this};d.prototype.centerVertically=function(){this._top="50%";this._bottom="";this._translateY=["-50%"];return this};d.prototype.center=function(){return this.centerHorizontally().centerVertically()};d.prototype.relativeTo=function(b){this._absolute=!1;this._relativeToEl=a(b);return this};d.prototype.addPanelPosition=
function(a,c){if(!this._relativeToEl)throw Error("addPanelPosition can only be used with relative positioning. Set relativeTo first.");this._validateXPosition(a);this._validateYPosition(c);this._positions.push({x:a,y:c});return this};d.prototype._validateYPosition=function(a){if(null!=a){for(var b=Object.keys(d.yPosition),c=[],g,f=0;g=b[f];f++)if(g=d.yPosition[g],c.push(g),g===a)return;throw Error("Panel y position only accepts the following values:\n"+c.join(" | "));}};d.prototype._validateXPosition=
function(a){if(null!=a){for(var b=Object.keys(d.xPosition),c=[],g,f=0;g=b[f];f++)if(g=d.xPosition[g],c.push(g),g===a)return;throw Error("Panel x Position only accepts the following values:\n"+c.join(" | "));}};d.prototype.withOffsetX=function(a){this._translateX.push(a);return this};d.prototype.withOffsetY=function(a){this._translateY.push(a);return this};d.prototype.getTop=function(){return this._top};d.prototype.getBottom=function(){return this._bottom};d.prototype.getLeft=function(){return this._left};
d.prototype.getRight=function(){return this._right};d.prototype.getTransform=function(){var a=this._reduceTranslateValues("translateX",this._translateX),c=this._reduceTranslateValues("translateY",this._translateY);return(a+" "+c).trim()};d.prototype._isOnscreen=function(a){var b=parseInt(this.getLeft()),c=parseInt(this.getTop()),d=b+a[0].offsetWidth;a=c+a[0].offsetHeight;return 0<=b&&0<=c&&a<=this._$window.innerHeight&&d<=this._$window.innerWidth};d.prototype.getActualPosition=function(){return this._actualPosition};
d.prototype._reduceTranslateValues=function(a,c){return c.map(function(b){return a+"("+b+")"}).join(" ")};d.prototype._setPanelPosition=function(a){if(!this._absolute)if(this._actualPosition)this._calculatePanelPosition(a,this._actualPosition);else for(var b=0;b<this._positions.length&&(this._actualPosition=this._positions[b],this._calculatePanelPosition(a,this._actualPosition),!this._isOnscreen(a));b++);};d.prototype._reverseXPosition=function(a){if(a!==d.xPosition.CENTER)return-1<a.indexOf("start")?
a.replace("start","end"):a.replace("end","start")};d.prototype._bidi=function(a){return this._isRTL?this._reverseXPosition(a):a};d.prototype._calculatePanelPosition=function(a,c){var b=a[0].getBoundingClientRect(),g=b.width,b=b.height,h=this._relativeToEl[0].getBoundingClientRect(),f=h.left,e=h.right,k=h.width;switch(this._bidi(c.x)){case d.xPosition.OFFSET_START:this._left=f-g+"px";break;case d.xPosition.ALIGN_END:this._left=e-g+"px";break;case d.xPosition.CENTER:this._left=f+.5*k-.5*g+"px";break;
case d.xPosition.ALIGN_START:this._left=f+"px";break;case d.xPosition.OFFSET_END:this._left=e+"px"}g=h.top;f=h.bottom;h=h.height;switch(c.y){case d.yPosition.ABOVE:this._top=g-b+"px";break;case d.yPosition.ALIGN_BOTTOMS:this._top=f-b+"px";break;case d.yPosition.CENTER:this._top=g+.5*h-.5*b+"px";break;case d.yPosition.ALIGN_TOPS:this._top=g+"px";break;case d.yPosition.BELOW:this._top=f+"px"}};f.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"};f.prototype.openFrom=
function(a){a=a.target?a.target:a;this._openFrom=this._getPanelAnimationTarget(a);this._closeTo||(this._closeTo=this._openFrom);return this};f.prototype.closeTo=function(a){this._closeTo=this._getPanelAnimationTarget(a);return this};f.prototype._getPanelAnimationTarget=function(b){return e.isDefined(b.top)||e.isDefined(b.left)?{element:I,bounds:{top:b.top||0,left:b.left||0}}:this._getBoundingClientRect(a(b))};f.prototype.withAnimation=function(a){this._animationClass=a;return this};f.prototype.animateOpen=
function(a){var b=this._$mdUtil.dom.animator;this._fixBounds(a);var c,d=a[0].style.transform||"",g=b.toTransformCss(d),k=b.toTransformCss(d);switch(this._animationClass){case f.animation.SLIDE:a.css("opacity","1");c={transitionInClass:"_md-panel-animate-enter"};g=b.calculateSlideToOrigin(a,this._openFrom)||"";g=b.toTransformCss(g+" "+d);break;case f.animation.SCALE:c={transitionInClass:"_md-panel-animate-enter"};g=b.calculateZoomToOrigin(a,this._openFrom)||"";g=b.toTransformCss(g+" "+d);break;case f.animation.FADE:c=
{transitionInClass:"_md-panel-animate-enter"};break;default:c=e.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return b.translate3d(a,g,k,c)};f.prototype.animateClose=function(a){var b=this._$mdUtil.dom.animator,c,d=a[0].style.transform||"",g=b.toTransformCss(d),k=b.toTransformCss(d);switch(this._animationClass){case f.animation.SLIDE:a.css("opacity","1");c={transitionInClass:"_md-panel-animate-leave"};
k=b.calculateSlideToOrigin(a,this._closeTo)||"";k=b.toTransformCss(k+" "+d);break;case f.animation.SCALE:c={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};k=b.calculateZoomToOrigin(a,this._closeTo)||"";k=b.toTransformCss(k+" "+d);break;case f.animation.FADE:c={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:c=e.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return b.translate3d(a,
g,k,c)};f.prototype._fixBounds=function(a){var b=a[0].offsetWidth;a=a[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=a);this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=b);this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=a);this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=b)};f.prototype._getBoundingClientRect=function(a){if(a instanceof e.element)return{element:a,
bounds:a[0].getBoundingClientRect()}}})();e.module("material.components.progressCircular",["material.core"]);(function(){function l(k,d,f){function a(a,g,b){function c(){var a=(b.mdMode||"").trim();if(a)switch(a){case "determinate":case "indeterminate":case "buffer":case "query":break;default:a="indeterminate"}return a}function f(a,b){if(!q&&c()){var g=d.supplant("translateX({0}%) scale({1},1)",[(b-100)/2,b/100]),g=n({transform:g});e.element(a).css(g)}}k(g);var l,q=b.hasOwnProperty("disabled"),n=
d.dom.animator.toCss,u=e.element(g[0].querySelector(".md-bar1")),y=e.element(g[0].querySelector(".md-bar2")),w=e.element(g[0].querySelector(".md-container"));g.attr("md-mode",c()).toggleClass("_md-progress-linear-disabled",q);(function(){if(e.isUndefined(b.mdMode)){var a=e.isDefined(b.value)?"determinate":"indeterminate";g.attr("md-mode",a);b.mdMode=a}})();(function(){b.$observe("value",function(a){a=Math.max(0,Math.min(a||0,100));g.attr("aria-valuenow",a);"query"!=c()&&f(y,a)});b.$observe("mdBufferValue",
function(a){f(u,Math.max(0,Math.min(a||0,100)))});b.$observe("disabled",function(a){q=!0===a||!1===a?!!a:e.isDefined(a);g.toggleClass("_md-progress-linear-disabled",q);w.toggleClass(l,!q)});b.$observe("mdMode",function(a){l&&w.removeClass(l);switch(a){case "query":case "buffer":case "determinate":case "indeterminate":w.addClass(l="md-mode-"+a);break;default:w.addClass(l="md-mode-indeterminate")}})})()}return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',
compile:function(c,d,b){c.attr("aria-valuemin",0);c.attr("aria-valuemax",100);c.attr("role","progressbar");return a}}}e.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",l);l.$inject=["$mdTheming","$mdUtil","$log"]})();(function(){function l(d,f,a,c){function g(a){this._radioButtonRenderFns=[];this.$element=a}function b(a,b){var c=d.iterator(a[0].querySelectorAll("md-radio-button"),!0);if(c.count()){var g=a[0].querySelector("md-radio-button.md-checked"),c=
c[0>b?"previous":"next"](g,function(a){return!e.element(a).attr("disabled")})||c.first();e.element(c).triggerHandler("click")}}g.prototype=function(){return{init:function(a){this._ngModelCtrl=a;this._ngModelCtrl.$render=e.bind(this,this.render)},add:function(a){this._radioButtonRenderFns.push(a)},remove:function(a){a=this._radioButtonRenderFns.indexOf(a);-1!==a&&this._radioButtonRenderFns.splice(a,1)},render:function(){this._radioButtonRenderFns.forEach(function(a){a()})},setViewValue:function(a,
b){this._ngModelCtrl.$setViewValue(a,b);this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return b(this.$element,1)},selectPrevious:function(){return b(this.$element,-1)},setActiveDescendant:function(a){this.$element.attr("aria-activedescendant",a)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}}}();return{restrict:"E",controller:["$element",g],require:["mdRadioGroup","?ngModel"],link:{pre:function(b,g,k,l){function h(){g.hasClass("md-focused")||
g.addClass("md-focused")}g.addClass("_md");a(g);var m=l[0];k=l[1]||d.fakeNgModel();m.init(k);b.mouseActive=!1;g.attr({role:"radiogroup",tabIndex:g.attr("tabindex")||"0"}).on("keydown",function(a){var b=a.which||a.keyCode;if(b==f.KEY_CODE.ENTER||a.currentTarget==a.target)switch(b){case f.KEY_CODE.LEFT_ARROW:case f.KEY_CODE.UP_ARROW:a.preventDefault();m.selectPrevious();h();break;case f.KEY_CODE.RIGHT_ARROW:case f.KEY_CODE.DOWN_ARROW:a.preventDefault();m.selectNext();h();break;case f.KEY_CODE.ENTER:a=
e.element(d.getClosest(g[0],"form")),0<a.length&&a.triggerHandler("submit")}}).on("mousedown",function(a){b.mouseActive=!0;c(function(){b.mouseActive=!1},100)}).on("focus",function(){!1===b.mouseActive&&m.$element.addClass("md-focused")}).on("blur",function(){m.$element.removeClass("md-focused")})}}}}function k(d,f,a){return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',
link:function(c,g,b,h){function e(a){g[0].hasAttribute("disabled")||h.isDisabled()||c.$apply(function(){h.setViewValue(b.value,a&&a.type)})}function k(){function a(a){if("MD-RADIO-GROUP"!=g.parent()[0].nodeName)g.parent()[a?"addClass":"removeClass"]("md-checked")}var c=h.getViewValue()==b.value;c!==l&&(l=c,g.attr("aria-checked",c),c?(a(!0),g.addClass("md-checked"),h.setActiveDescendant(g.attr("id"))):(a(!1),g.removeClass("md-checked")))}var l;a(g);(function(a,c){c.ariaId=b.id||"radio_"+f.nextUid();
a.attr({id:c.ariaId,role:"radio","aria-checked":"false"});d.expectWithText(a,"aria-label")})(g,c);(function(){if(!h)throw"RadioButton: No RadioGroupController could be found.";h.add(k);b.$observe("value",k);g.on("click",e).on("$destroy",function(){h.remove(k)})})()}}}e.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",l).directive("mdRadioButton",k);l.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"];k.$inject=["$mdAria","$mdUtil","$mdTheming"]})();(function(){function l(a,
b,c,d,f,k,l){return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(g,h){var k=e.element("<md-select-value><span></span></md-select-value>");k.append('<span class="md-select-icon" aria-hidden="true"></span>');k.addClass("md-select-value");k[0].hasAttribute("id")||k.attr("id","select_value_label_"+b.nextUid());g.find("md-content").length||g.append(e.element("<md-content>").append(g.contents()));h.mdOnOpen&&(g.find("md-content").prepend(e.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),
g.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(h.name){var m=e.element('<select class="md-visually-hidden">');m.attr({name:h.name,"aria-hidden":"true",tabindex:"-1"});var n=g.find("md-option");e.forEach(n,function(a){var b=e.element("<option>"+a.innerHTML+"</option>");a.hasAttribute("ng-value")?b.attr("ng-value",a.getAttribute("ng-value")):a.hasAttribute("value")&&b.attr("value",a.getAttribute("value"));m.append(b)});m.append('<option ng-value="'+h.ngModel+'" selected></option>');g.parent().append(m)}var p=
b.parseAttributeBoolean(h.multiple),n=b.supplant('<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>',[p?"multiple":"",g.html()]);g.empty().append(k);g.append(n);h.tabindex||h.$set("tabindex",0);return function(g,h,k,m){function n(){E&&(N=N||E.find("md-select-menu").controller("mdSelectMenu"),D.setLabelText(N.selectedLabels()))}function q(){if(A){var a=N.selectedLabels({mode:"aria"});h.attr("aria-label",a.length?A+": "+a:A)}}function v(){B&&B.setHasValue(0<
N.selectedLabels().length||(h[0].validity||{}).badInput)}function C(a){if(c.isNavigationKey(a))a.preventDefault(),u(a);else if(c.isInputKey(a)||c.isNumPadKey(a))a.preventDefault(),(a=N.optNodeForKeyboardSearch(a))&&!a.hasAttribute("disabled")&&(a=e.element(a).controller("mdOption"),N.isMultiple||N.deselect(Object.keys(N.selected)[0]),N.select(a.hashKey,a.value),N.refreshViewValue())}function u(){T._mdSelectIsOpen=!0;h.attr("aria-expanded","true");a.show({scope:T,preserveScope:!0,skipCompile:!0,element:E,
target:h[0],selectCtrl:D,preserveElement:!0,hasBackdrop:!0,loadingAsync:k.mdOnOpen?g.$eval(k.mdOnOpen)||!0:!1})["finally"](function(){T._mdSelectIsOpen=!1;h.focus();h.attr("aria-expanded","false");y.$setTouched()})}var t=!0,w,A,B=m[0],D=m[1],y=m[2],K=m[3],r=h.find("md-select-value");m=e.isDefined(k.readonly);var ca=b.parseAttributeBoolean(k.mdNoAsterisk);if(B){var P=B.isErrorGetter||function(){return y.$invalid&&(y.$touched||K&&K.$submitted)};if(B.input&&h.find("md-select-header").find("input")[0]!==
B.input[0])throw Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");B.input=h;B.label||f.expect(h,"aria-label",h.attr("placeholder"));g.$watch(P,B.setInvalid)}var E,T,N;(function(){E=e.element(h[0].querySelector(".md-select-menu-container"));T=g;if(k.mdContainerClass){var a=E[0].getAttribute("class")+" "+k.mdContainerClass;E[0].setAttribute("class",a)}N=E.find("md-select-menu").controller("mdSelectMenu");N.init(y,k.ngModel);h.on("$destroy",function(){E.remove()})})();
d(h);K&&e.isDefined(k.multiple)&&b.nextTick(function(){(y.$modelValue||y.$viewValue)&&K.$setPristine()});var ea=y.$render;y.$render=function(){ea();n();q();v()};k.$observe("placeholder",y.$render);B&&B.label&&k.$observe("required",function(a){B.label.toggleClass("md-required",a&&!ca)});D.setLabelText=function(a){D.setIsPlaceholder(!a);if(k.mdSelectedText)a=l(k.mdSelectedText)(g);else{var b=k.placeholder||(B&&B.label?B.label.text():"");a=a||b||""}r.children().eq(0).html(a)};D.setIsPlaceholder=function(a){a?
(r.addClass("md-select-placeholder"),B&&B.label&&B.label.addClass("md-placeholder")):(r.removeClass("md-select-placeholder"),B&&B.label&&B.label.removeClass("md-placeholder"))};m||(h.on("focus",function(a){B&&B.setFocused(!0)}),h.on("blur",function(a){t&&(t=!1,T._mdSelectIsOpen&&a.stopImmediatePropagation());T._mdSelectIsOpen||(B&&B.setFocused(!1),v())}));D.triggerClose=function(){l(k.mdOnClose)(g)};g.$$postDigest(function(){var a=h.attr("aria-label")||h.attr("placeholder");!a&&B&&B.label&&(a=B.label.text());
A=a;f.expect(h,"aria-label",a);n();q()});g.$watch(function(){return N.selectedLabels()},n);var fa;k.$observe("ngMultiple",function(a){fa&&fa();var b=l(a);fa=g.$watch(function(){return b(g)},function(a,b){if(a!==I||b!==I)a?h.attr("multiple","multiple"):h.removeAttr("multiple"),h.attr("aria-multiselectable",a?"true":"false"),E&&(N.setMultiple(a),ea=y.$render,y.$render=function(){ea();n();q();v()},y.$render())})});k.$observe("disabled",function(a){e.isString(a)&&(a=!0);if(w===I||w!==a)if(w=a)h.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",
u).off("keydown",C);else h.attr({tabindex:k.tabindex,"aria-disabled":"false"}).on("click",u).on("keydown",C)});k.hasOwnProperty("disabled")||k.hasOwnProperty("ngDisabled")||(h.attr({"aria-disabled":"false"}),h.on("click",u),h.on("keydown",C));m={role:"listbox","aria-expanded":"false","aria-multiselectable":p&&!k.ngMultiple?"true":"false"};h[0].hasAttribute("id")||(m.id="select_"+b.nextUid());P="select_container_"+b.nextUid();E.attr("id",P);m["aria-owns"]=P;h.attr(m);g.$on("$destroy",function(){a.destroy()["finally"](function(){B&&
(B.setFocused(!1),B.setHasValue(!1),B.input=null);y.$setTouched()})})}},controller:function(){}}}function k(c,b,d,f){function g(g,f,h){function k(){var a=m.ngModel.$modelValue||m.ngModel.$viewValue||[];if(e.isArray(a)){var b=Object.keys(m.selected),c=a.map(m.hashGetter);b.filter(function(a){return-1===c.indexOf(a)}).forEach(m.deselect);c.forEach(function(b,c){m.select(b,a[c])})}}function l(){var a=m.ngModel.$viewValue||m.ngModel.$modelValue;Object.keys(m.selected).forEach(m.deselect);m.select(m.hashGetter(a),
a)}var m=this;m.isMultiple=e.isDefined(f.multiple);m.selected={};m.options={};g.$watchCollection(function(){return m.options},function(){m.ngModel.$render()});m.setMultiple=function(a){function b(a,b){return e.isArray(a||b||[])}var c=m.ngModel;m.isMultiple=a;m.isMultiple?(c.$validators["md-multiple"]=b,c.$render=k,g.$watchCollection(m.modelBinding,function(a){b(a)&&k(a);m.ngModel.$setPristine()}),c.$isEmpty=function(a){return!a||0===a.length}):(delete c.$validators["md-multiple"],c.$render=l)};var n=
"",p,q,u;m.optNodeForKeyboardSearch=function(a){p&&clearTimeout(p);p=setTimeout(function(){p=I;n="";q=u=I},300);a=a.keyCode-(d.isNumPadKey(a)?48:0);n+=String.fromCharCode(a);a=new RegExp("^"+n,"i");q||(q=h.find("md-option"),u=Array(q.length),e.forEach(q,function(a,b){u[b]=a.textContent.trim()}));for(var b=0;b<u.length;++b)if(a.test(u[b]))return q[b]};m.init=function(b,d){m.ngModel=b;m.modelBinding=d;m.ngModel.$isEmpty=function(a){return!m.options[m.hashGetter(a)]};if(b.$options&&b.$options.trackBy){var f=
{},h=c(b.$options.trackBy);m.hashGetter=function(a,b){f.$value=a;return h(b||g,f)}}else m.hashGetter=function(b){return e.isObject(b)?"object_"+(b.$$mdSelectId||(b.$$mdSelectId=++a)):b};m.setMultiple(m.isMultiple)};m.selectedLabels=function(a){a=a||{};a=a.mode||"html";var c=b.nodesToArray(h[0].querySelectorAll("md-option[selected]"));if(c.length){var d;"html"==a?d=function(a){if(a.hasAttribute("md-option-empty"))return"";var b=a.innerHTML,c=a.querySelector(".md-ripple-container");c&&(b=b.replace(c.outerHTML,
""));(a=a.querySelector(".md-container"))&&(b=b.replace(a.outerHTML,""));return b}:"aria"==a&&(d=function(a){return a.hasAttribute("aria-label")?a.getAttribute("aria-label"):a.textContent});return c.map(d).join(", ")}return""};m.select=function(a,b){var c=m.options[a];c&&c.setSelected(!0);m.selected[a]=b};m.deselect=function(a){var b=m.options[a];b&&b.setSelected(!1);delete m.selected[a]};m.addOption=function(a,b){if(e.isDefined(m.options[a]))throw Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+
b.value+'" found.');m.options[a]=b;e.isDefined(m.selected[a])&&(m.select(a,b.value),e.isDefined(m.ngModel.$modelValue)&&m.hashGetter(m.ngModel.$modelValue)===a&&m.ngModel.$validate(),m.refreshViewValue())};m.removeOption=function(a){delete m.options[a]};m.refreshViewValue=function(){var a=[],b,c;for(c in m.selected)(b=m.options[c])?a.push(b.value):a.push(m.selected[c]);a=m.isMultiple?a:a[0];b=m.ngModel.$modelValue;(m.ngModel.$options&&m.ngModel.$options.trackBy?e.equals(b,a):b==a)||(m.ngModel.$setViewValue(a),
m.ngModel.$render())}}g.$inject=["$scope","$attrs","$element"];return{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:g,link:{pre:function(a,c,d,g){function h(c){var d=b.getClosest(c.target,"md-option"),g=d&&e.element(d).data("$mdOptionController");if(d&&g){if(d.hasAttribute("disabled"))return c.stopImmediatePropagation(),!1;var h=k.hashGetter(g.value),f=e.isDefined(k.selected[h]);a.$apply(function(){k.isMultiple?f?k.deselect(h):k.select(h,g.value):f||(k.deselect(Object.keys(k.selected)[0]),
k.select(h,g.value));k.refreshViewValue()})}}var k=g[0];c.addClass("_md");f(c);c.on("click",h);c.on("keypress",function(a){13!=a.keyCode&&32!=a.keyCode||h(a)})}}}}function d(a,b){function d(d,g,h,f){function k(a,b,c){if(l.hashGetter){c=l.hashGetter(b,d);var g=l.hashGetter(a,d);m.hashKey=g;m.value=a;l.removeOption(c,m);l.addOption(g,m)}else c||d.$$postDigest(function(){k(a,b,!0)})}var m=f[0],l=f[1];l.isMultiple&&(g.addClass("md-checkbox-enabled"),g.prepend(c.clone()));e.isDefined(h.ngValue)?d.$watch(h.ngValue,
k):e.isDefined(h.value)?k(h.value):d.$watch(function(){return g.text().trim()},k);h.$observe("disabled",function(a){a?g.attr("tabindex","-1"):g.attr("tabindex","0")});d.$$postDigest(function(){h.$observe("selected",function(a){e.isDefined(a)&&("string"==typeof a&&(a=!0),a?(l.isMultiple||l.deselect(Object.keys(l.selected)[0]),l.select(m.hashKey,m.value)):l.deselect(m.hashKey),l.refreshViewValue())})});a.attach(d,g);(function(){var a={role:"option","aria-selected":"false"};g[0].hasAttribute("id")||
(a.id="select_option_"+b.nextUid());g.attr(a)})();d.$on("$destroy",function(){l.removeOption(m.hashKey,m)})}function g(a){this.selected=!1;this.setSelected=function(b){b&&!this.selected?a.attr({selected:"selected","aria-selected":"true"}):!b&&this.selected&&(a.removeAttr("selected"),a.attr("aria-selected","false"));this.selected=b}}g.$inject=["$element"];return{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:g,compile:function(a,b){a.append(e.element('<div class="md-text">').append(a.contents()));
a.attr("tabindex",b.tabindex||"0");var c=b.ngValue;b.value||c||a.attr("md-option-empty","");return d}}}function f(a){function b(a,b,c,d,g,f,k,l,v){function h(a,b,g){a=b[0];var h=g.target[0].children[0],f=g.selectEl[0],k=g.contentEl[0],m=v[0].body.getBoundingClientRect(),l=h.getBoundingClientRect(),n=m.left+8,p=m.height-8,q=m.width-8-(c.floatingScrollbars()?16:0),u=l.top-8,w=p-(l.top+l.height),m=m.width-16,t=f.querySelector("md-option[selected]"),C=f.getElementsByTagName("md-option"),r=f.getElementsByTagName("md-optgroup"),
A,B=b[0].style.display;b[0].style.display="block";A=k.scrollHeight>k.offsetHeight;b[0].style.display=B;t=(b=g.loadingAsync)&&e.isFunction(b.then)?k.firstElementChild||k:t?t:r.length?r[0]:C.length?C[0]:k.firstElementChild||k;k.offsetWidth>m?k.style["max-width"]=m+"px":k.style.maxWidth=null;A&&f.classList.add("md-overflow");b=t;"MD-OPTGROUP"===(b.tagName||"").toUpperCase()&&(t=b=C[0]||k.firstElementChild||k);g.focusedNode=b;a.style.display="block";C=f.getBoundingClientRect();b=t?{left:t.offsetLeft,
top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}:{left:0,top:0,width:0,height:0};t&&(t=d.getComputedStyle(t),b.paddingLeft=parseInt(t.paddingLeft,10)||0,b.paddingRight=parseInt(t.paddingRight,10)||0);A&&(A=k.offsetHeight/2,k.scrollTop=b.top+b.height/2-A,u<A?k.scrollTop=Math.min(b.top,k.scrollTop+A-u):w<A&&(k.scrollTop=Math.max(b.top+b.height-C.height,k.scrollTop-A+w)));u=l.left+b.left-b.paddingLeft+2;w=Math.floor(l.top+l.height/2-b.height/2-b.top+k.scrollTop)+2;k=b.left+l.width/2+"px "+
(b.top+b.height/2-k.scrollTop)+"px 0px";m=Math.min(l.width+b.paddingLeft+b.paddingRight,m);h=E.getComputedStyle(h)["font-size"];A=a.getBoundingClientRect();b=Math.round(100*Math.min(l.width/C.width,1))/100;l=Math.round(100*Math.min(l.height/C.height,1))/100;return{container:{element:e.element(a),styles:{left:Math.floor(Math.max(n,Math.min(u,q-A.width))),top:Math.floor(Math.max(8,Math.min(w,p-A.height))),"min-width":m,"font-size":h}},dropDown:{element:e.element(f),styles:{transformOrigin:k,transform:g.alreadyOpen?
"":c.supplant("scale({0},{1})",[b,l])}}}}var m=c.dom.animator,n=b.KEY_CODE;return{parent:"body",themable:!0,onShow:function(p,q,u){function t(){return g(function(a){if(u.isRemoved)return g.reject(!1);var b=h(p,q,u);b.container.element.css(m.toCss(b.container.styles));b.dropDown.element.css(m.toCss(b.dropDown.styles));f(function(){q.addClass("md-active");b.dropDown.element.css(m.toCss({transform:""}));var c=u.focusedNode;c&&!c.hasAttribute("disabled")&&c.focus();a()})})}function A(){var a=function(a,
b,c){return function(){if(!c.isRemoved){var d=h(a,b,c),g=d.container,d=d.dropDown;g.element.css(m.toCss(g.styles));d.element.css(m.toCss(d.styles))}}}(p,q,u),b=e.element(d);b.on("resize",a);b.on("orientationchange",a);return function(){b.off("resize",a);b.off("orientationchange",a)}}function w(){function d(b){b.preventDefault();b.stopPropagation();u.restoreFocus=!1;c.nextTick(a.hide,!0)}function g(d){d.preventDefault();d.stopPropagation();switch(d.keyCode){case n.UP_ARROW:f("prev");break;case n.DOWN_ARROW:f("next");
break;case n.SPACE:case n.ENTER:var g=c.getClosest(d.target,"md-option");g&&(e.triggerHandler({type:"click",target:g}),d.preventDefault());h(d);break;case n.TAB:case n.ESCAPE:d.stopPropagation();d.preventDefault();u.restoreFocus=!0;c.nextTick(a.hide,!0);break;default:if(b.isInputKey(d)||b.isNumPadKey(d))d=e.controller("mdSelectMenu").optNodeForKeyboardSearch(d),u.focusedNode=d||u.focusedNode,d&&d.focus()}}function f(a){var b=c.nodesToArray(u.optionNodes),d=b.indexOf(u.focusedNode),g;do-1===d?d=0:
"next"===a&&d<b.length-1?d++:"prev"===a&&0<d&&d--,g=b[d],g.hasAttribute("disabled")&&(g=I);while(!g&&d<b.length-1&&0<d);g&&g.focus();u.focusedNode=g}function h(b){if(!(b&&"click"==b.type&&b.currentTarget!=e[0]||function(){var a=!1;if(b&&0<b.currentTarget.children.length){var c=b.currentTarget.children[0];c.scrollHeight>c.clientHeight&&0<c.children.length&&b.pageX-b.currentTarget.getBoundingClientRect().left>c.querySelector("md-option").offsetWidth&&(a=!0)}return a}())){var d=c.getClosest(b.target,
"md-option");d&&d.hasAttribute&&!d.hasAttribute("disabled")&&(b.preventDefault(),b.stopPropagation(),k.isMultiple||(u.restoreFocus=!0,c.nextTick(function(){a.hide(k.ngModel.$viewValue)},!0)))}}if(!u.isRemoved){var e=u.selectEl,k=e.controller("mdSelectMenu")||{};q.addClass("md-clickable");u.backdrop&&u.backdrop.on("click",d);e.on("keydown",g);e.on("click",h);return function(){u.backdrop&&u.backdrop.off("click",d);e.off("keydown",g);e.off("click",h);q.removeClass("md-clickable");u.isRemoved=!0}}}(function(){u.loadingAsync&&
!u.isRemoved&&(p.$$loadingAsyncDone=!1,g.when(u.loadingAsync).then(function(){p.$$loadingAsyncDone=!0;delete u.loadingAsync}).then(function(){f(t)}))})();(function(a,b){var d=q.find("md-select-menu");if(!b.target)throw Error(c.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[b.target]));e.extend(b,{isRemoved:!1,target:e.element(b.target),parent:e.element(b.parent),selectEl:d,contentEl:q.find("md-content"),optionNodes:d[0].getElementsByTagName("md-option")})})(p,
u);u.hideBackdrop=function(a,b,d){d.disableParentScroll&&!c.getClosest(d.target,"MD-DIALOG")?d.restoreScroll=c.disableScrollAround(d.element,d.parent):d.disableParentScroll=!1;d.hasBackdrop&&(d.backdrop=c.createBackdrop(a,"md-select-backdrop md-click-catcher"),l.enter(d.backdrop,v[0].body,null,{duration:0}));return function(){d.backdrop&&d.backdrop.remove();d.disableParentScroll&&d.restoreScroll();delete d.restoreScroll}}(p,q,u);return function(a,b,c){c.parent.append(b);return g(function(a,c){try{k(b,
{removeClass:"md-leave",duration:0}).start().then(t).then(a)}catch(aa){c(aa)}})}(p,q,u).then(function(a){q.attr("aria-hidden","false");u.alreadyOpen=!0;u.cleanupInteraction=w();u.cleanupResizing=A();return a},u.hideBackdrop)},onRemove:function(a,b,c){function d(){b.removeClass("md-active");b.attr("aria-hidden","true");b[0].style.display="none";var a=c.selectCtrl;if(a){var d=c.selectEl.controller("mdSelectMenu");a.setLabelText(d?d.selectedLabels():"");a.triggerClose()}!c.$destroy&&c.restoreFocus&&
c.target.focus()}c=c||{};c.cleanupInteraction();c.cleanupResizing();c.hideBackdrop();return!0===c.$destroy?d():k(b,{addClass:"md-leave"}).start().then(d)},hasBackdrop:!0,disableParentScroll:!0}}b.$inject="$mdSelect $mdConstant $mdUtil $window $q $$rAF $animateCss $animate $document".split(" ");return a("$mdSelect").setDefaults({methods:["target"],options:b})}var a=0,c=e.element('<div class="md-container"><div class="md-icon"></div></div>');e.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",
l).directive("mdSelectMenu",k).directive("mdOption",d).directive("mdOptgroup",function(){return{restrict:"E",compile:function(a,b){if(!a.parent().find("md-select-header").length){var c=a.find("label");c.length||(c=e.element("<label>"),a.prepend(c));c.addClass("md-container-ignore");b.label&&c.text(b.label)}}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",f);l.$inject="$mdSelect $mdUtil $mdConstant $mdTheming $mdAria $compile $parse".split(" ");k.$inject=["$parse",
"$mdUtil","$mdConstant","$mdTheming"];d.$inject=["$mdButtonInkRipple","$mdUtil"];f.$inject=["$$interimElementProvider"]})();(function(){function l(e,d){return["$mdUtil","$window",function(f,a){return{restrict:"A",multiElement:!0,link:function(c,g,b){var h=c.$on("$md-resize-enable",function(){h();var k=g[0],l=k.nodeType===a.Node.ELEMENT_NODE?a.getComputedStyle(k):{};c.$watch(b[e],function(a){!!a===d&&(f.nextTick(function(){c.$broadcast("$md-resize")}),f.dom.animator.waitTransitionEnd(g,{cachedTransitionStyles:l}).then(function(){c.$broadcast("$md-resize")}))})})}}}]}
e.module("material.components.showHide",["material.core"]).directive("ngShow",l("ngShow",!0)).directive("ngHide",l("ngHide",!1))})();(function(){function l(d,a,c,g){function b(b,d){var g=function(){return!1},h=function(){return c.when(a.supplant("SideNav '{0}' is not available! Did you use md-component-id='{0}'?",[d||""]))};return e.extend({isLockedOpen:g,isOpen:g,toggle:h,open:h,close:h,onClose:e.noop,then:function(a){return f(d).then(a||e.noop)}},b)}function f(a){return d.when(a)["catch"](g.error)}
var k={find:function(b,c){var f=d.get(b);return f||c?f:(g.error(a.supplant("SideNav '{0}' is not available! Did you use md-component-id='{0}'?",[b||""])),I)},waitFor:f};return function(a,c){if(e.isUndefined(a))return k;var d=!0===c,g=k.find(a,d);return!g&&d?k.waitFor(a):!g&&e.isUndefined(c)?b(k,a):g}}function k(d,a,c,g,b,h,k,l,q,n){function f(f,h,m,p){function u(a,b){var c=h[0],d=a[0].scrollTop;b&&d&&(F={top:c.style.top,bottom:c.style.bottom,height:c.style.height},d={top:d+"px",bottom:"auto",height:a[0].clientHeight+
"px"},h.css(d),z.css(d));if(!b&&F)return function(){c.style.top=F.top;c.style.bottom=F.bottom;c.style.height=F.height;z[0].style.top=null;z[0].style.bottom=null;F=z[0].style.height=null}}function v(a){var b=h.parent();a&&!y?(y=b.css("overflow"),b.css("overflow","hidden")):e.isDefined(y)&&(b.css("overflow",y),y=I)}function t(a){return a.keyCode===c.KEY_CODE.ESCAPE?w(a):q.when(!0)}function w(a){a.preventDefault();return p.close()}var y,z,G=null,F,J=q.when(!0),L=k(m.mdIsLockedOpen);e.isDefined(m.mdDisableBackdrop)||
(z=a.createBackdrop(f,"md-sidenav-backdrop md-opaque ng-enter"));h.addClass("_md");g(h);z&&g.inherit(z,h);h.on("$destroy",function(){z&&z.remove();p.destroy()});f.$on("$destroy",function(){z&&z.remove()});f.$watch(function(){return L(f.$parent,{$media:function(a){l.warn("$media is deprecated for is-locked-open. Use $mdMedia instead.");return d(a)},$mdMedia:d})},function(a,c){f.isLockedOpen=a;if(a===c)h.toggleClass("md-locked-open",!!a);else b[a?"addClass":"removeClass"](h,"md-locked-open");z&&z.toggleClass("md-locked-open",
!!a)});f.$watch("isOpen",function(c){var d=a.findFocusTarget(h)||a.findFocusTarget(h,"[md-sidenav-focus]")||h,g=h.parent();g[c?"on":"off"]("keydown",t);if(z)z[c?"on":"off"]("click",w);var e=u(g,c);c&&(G=n[0].activeElement);v(c);return J=q.all([c&&z?b.enter(z,g):z?b.leave(z):q.when(!0),b[c?"removeClass":"addClass"](h,"md-closed")]).then(function(){f.isOpen&&d&&d.focus();e&&e()})});p.$toggleOpen=function(b){if(f.isOpen==b)return q.when(!0);if(f.isOpen&&p.onCloseCb)p.onCloseCb();return q(function(c){f.isOpen=
b;a.nextTick(function(){J.then(function(a){f.isOpen||(G&&G.focus(),G=null);c(a)})})})}}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(a){a.addClass("md-closed");a.attr("tabIndex","-1");return f}}}function d(d,a,c,g,b){var h=this;h.isOpen=function(){return!!d.isOpen};h.isLockedOpen=function(){return!!d.isLockedOpen};h.onClose=function(a){h.onCloseCb=a;return h};h.open=function(){return h.$toggleOpen(!0)};h.close=function(){return h.$toggleOpen(!1)};
h.toggle=function(){return h.$toggleOpen(!d.isOpen)};h.$toggleOpen=function(a){return b.when(d.isOpen=a)};h.destroy=g.register(h,c.mdComponentId)}e.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",l).directive("mdSidenav",k).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(d,a,c,g){}}}).controller("$mdSidenavController",d);l.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"];k.$inject="$mdMedia $mdUtil $mdConstant $mdTheming $animate $compile $parse $log $q $document".split(" ");
d.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]})();(function(){function l(k,d,f,a,c,g,b,h,m,l){function p(f,p,q,w){function n(){z();J()}function u(a){U=parseFloat(a);p.attr("aria-valuemin",a);n()}function A(a){W=parseFloat(a);p.attr("aria-valuemax",a);n()}function y(a){Y=parseFloat(a)}function D(a){ja=L(parseInt(a),0,6)}function C(){p.attr("aria-disabled",!!P())}function B(){if(H&&!P()&&!e.isUndefined(Y)){if(0>=Y)throw m.error("Slider step value must be greater than zero when in discrete mode"),
Error("Slider step value must be greater than zero when in discrete mode");var a=Math.floor((W-U)/Y);V||(V=e.element("<canvas>").css("position","absolute"),fa.append(V),ba=V[0].getContext("2d"));var b=G();!b||b.height||b.width||(z(),b=ia);V[0].width=b.width;V[0].height=b.height;for(var c,g=0;g<=a;g++)c=d.getComputedStyle(fa[0]),ba.fillStyle=c.color||"black",c=Math.floor(g/a*(O?b.height:b.width)),ba.fillRect(O?0:c-1,O?c-1:0,O?b.width:2,O?2:b.height)}}function z(){ia=N[0].getBoundingClientRect()}function G(){ka();
return ia}function F(a){r.$setViewValue(L(M(a)))}function J(){isNaN(r.$viewValue)&&(r.$viewValue=r.$modelValue);r.$viewValue=L(r.$viewValue);var a=Q(r.$viewValue);f.modelValue=r.$viewValue;p.attr("aria-valuenow",r.$viewValue);R(a);da.text(r.$viewValue)}function L(a,b,c){if(e.isNumber(a))return b=e.isNumber(b)?b:U,c=e.isNumber(c)?c:W,Math.max(b,Math.min(c,a))}function M(b){if(e.isNumber(b)){var c=Math.round((b-U)/Y)*Y+U,c=Math.round(c*Math.pow(10,ja))/Math.pow(10,ja);I&&I.fitInputWidthToTextLength&&
a.debounce(function(){I.fitInputWidthToTextLength(c.toString().length)},100)();return c}}function R(b){b=Math.max(0,Math.min(b||0,1));var c=100*b+"%",d=Z?100*(1-b)+"%":c;O?T.css("bottom",c):a.bidiProperty(T,"left","right",c);ea.css(O?"height":"width",d);p.toggleClass(Z?"md-max":"md-min",0===b);p.toggleClass(Z?"md-min":"md-max",1===b)}function X(a){if(H){a=O?a.pointer.y:a.pointer.x;var b=E(S(a)),b=L(M(b));R(S(a));da.text(b)}else aa(O?a.pointer.y:a.pointer.x)}function aa(a){f.$evalAsync(function(){F(E(S(a)))})}
function S(b){b=(b-(O?ia.top:ia.left))/(O?ia.height:ia.width);O||"rtl"!==a.bidi()||(b=1-b);return Math.max(0,Math.min(1,O?1-b:b))}function E(a){return U+(Z?1-a:a)*(W-U)}function Q(a){a=(a-U)/(W-U);return Z?1-a:a}g(p);var r=w[0]||{$setViewValue:function(a){this.$viewValue=a;this.$viewChangeListeners.forEach(function(a){a()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},I=w[1];e.element(a.getClosest(p,"_md-slider-container",!0));var P=q.ngDisabled?e.bind(null,h(q.ngDisabled),f.$parent):function(){return p[0].hasAttribute("disabled")};
w=e.element(p[0].querySelector(".md-thumb"));var da=e.element(p[0].querySelector(".md-thumb-text")),T=w.parent(),N=e.element(p[0].querySelector(".md-track-container")),ea=e.element(p[0].querySelector(".md-track-fill")),fa=e.element(p[0].querySelector(".md-track-ticks")),x=e.element(p[0].getElementsByClassName("md-slider-wrapper"));e.element(p[0].getElementsByClassName("md-slider-content"));var ka=a.throttle(z,5E3),O=e.isDefined(q.mdVertical),H=e.isDefined(q.mdDiscrete),Z=e.isDefined(q.mdInvert);e.isDefined(q.min)?
q.$observe("min",u):u(0);e.isDefined(q.max)?q.$observe("max",A):A(100);e.isDefined(q.step)?q.$observe("step",y):y(1);e.isDefined(q.round)?q.$observe("round",D):D(3);q.ngDisabled&&f.$parent.$watch(q.ngDisabled,C);b.register(x,"drag",{horizontal:!O});f.mouseActive=!1;x.on("keydown",function(a){if(!P()){var b;if(O?a.keyCode===c.KEY_CODE.DOWN_ARROW:a.keyCode===c.KEY_CODE.LEFT_ARROW)b=-Y;else if(O?a.keyCode===c.KEY_CODE.UP_ARROW:a.keyCode===c.KEY_CODE.RIGHT_ARROW)b=Y;if(b=Z?-b:b){if(a.metaKey||a.ctrlKey||
a.altKey)b*=4;a.preventDefault();a.stopPropagation();f.$evalAsync(function(){F(r.$viewValue+b)})}}}).on("mousedown",function(){B();f.mouseActive=!0;x.removeClass("md-focused");l(function(){f.mouseActive=!1},100)}).on("focus",function(){!1===f.mouseActive&&x.addClass("md-focused")}).on("blur",function(){x.removeClass("md-focused");p.removeClass("md-active");if(V&&ba){var a=G();ba.clearRect(0,0,a.width,a.height)}}).on("$md.pressdown",function(a){if(!P()){p.addClass("md-active");p[0].focus();z();a=E(S(O?
a.pointer.y:a.pointer.x));var b=L(M(a));f.$apply(function(){F(b);R(Q(b))})}}).on("$md.pressup",function(a){if(!P()){p.removeClass("md-dragging");a=E(S(O?a.pointer.y:a.pointer.x));var b=L(M(a));f.$apply(function(){F(b);J()})}}).on("$md.dragstart",function(a){P()||(la=!0,a.stopPropagation(),p.addClass("md-dragging"),X(a))}).on("$md.drag",function(a){la&&(a.stopPropagation(),X(a))}).on("$md.dragend",function(a){la&&(a.stopPropagation(),la=!1)});setTimeout(n,0);var ga=k.throttle(n);e.element(d).on("resize",
ga);f.$on("$destroy",function(){e.element(d).off("resize",ga)});r.$render=J;r.$viewChangeListeners.push(J);r.$formatters.push(L);r.$formatters.push(M);var U,W,Y,ja,V,ba,ia={};z();var la=!1}return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',
compile:function(a,b){var c=e.element(a[0].getElementsByClassName("md-slider-wrapper"));c.attr("tabindex",b.tabindex||0);(b.disabled||b.ngDisabled)&&c.attr("tabindex",-1);c.attr("role","slider");f.expect(a,"aria-label");return p}}}e.module("material.components.slider",["material.core"]).directive("mdSlider",l).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(k){var d=k.find("md-slider");if(d)return d.attr("md-vertical")!==I&&k.attr("md-vertical",""),d.attr("flex")||
d.attr("flex",""),function(d,a,c,g){function b(b){a.children().attr("disabled",b);a.find("input").attr("disabled",b)}a.addClass("_md");var f=e.noop;c.disabled?b(!0):c.ngDisabled&&(f=d.$watch(c.ngDisabled,function(a){b(a)}));d.$on("$destroy",function(){f()});var k;g.fitInputWidthToTextLength=function(b){var c=a[0].querySelector("md-input-container");if(c){var d=getComputedStyle(c),g=parseInt(d.minWidth),f=2*parseInt(d.padding);k=k||parseInt(d.maxWidth);c.style.maxWidth=Math.max(k,g+f+g/2*b)+"px"}}}}}});
l.$inject="$$rAF $window $mdAria $mdUtil $mdConstant $mdTheming $mdGesture $parse $log $timeout".split(" ")})();(function(){function l(e,d,f,a){function c(a){function b(){t.items.forEach(c);t.items=t.items.sort(function(a,b){return a.top<b.top?-1:1});for(var a,b=w.prop("scrollTop"),d=t.items.length-1;0<=d;d--)if(b>t.items[d].top){a=t.items[d];break}k(a)}function c(a){var b=a.element[0];a.top=0;a.left=0;for(a.right=0;b&&b!==w[0];)a.top+=b.offsetTop,a.left+=b.offsetLeft,b.offsetParent&&(a.right+=b.offsetParent.offsetWidth-
b.offsetWidth-b.offsetLeft),b=b.offsetParent;a.height=a.element.prop("offsetHeight");b=f.floatingScrollbars()?"0":I;f.bidi(a.clone,"margin-left",a.left,b);f.bidi(a.clone,"margin-right",b,a.right)}function h(){var a=w.prop("scrollTop"),b=a>(h.prevScrollTop||0);h.prevScrollTop=a;if(0===a)k(null);else{if(b){if(t.next&&t.next.top<=a){k(t.next);return}if(t.current&&t.next&&t.next.top-a<=t.next.height){y(t.current,a+(t.next.top-t.next.height-a));return}}if(!b){if(t.current&&t.prev&&a<t.current.top){k(t.prev);
return}if(t.next&&t.current&&a>=t.next.top-t.current.height){y(t.current,a+(t.next.top-a-t.current.height));return}}t.current&&y(t.current,a)}}function k(a){t.current!==a&&(t.current&&(y(t.current,null),l(t.current,null)),a&&l(a,"active"),t.current=a,a=t.items.indexOf(a),t.next=t.items[a+1],t.prev=t.items[a-1],l(t.next,"next"),l(t.prev,"prev"))}function l(a,b){a&&a.state!==b&&(a.state&&(a.clone.attr("sticky-prev-state",a.state),a.element.attr("sticky-prev-state",a.state)),a.clone.attr("sticky-state",
b),a.element.attr("sticky-state",b),a.state=b)}function y(a,b){a&&(null===b||b===I?a.translateY&&(a.translateY=null,a.clone.css(e.CSS.TRANSFORM,"")):(a.translateY=b,f.bidi(a.clone,e.CSS.TRANSFORM,"translate3d("+a.left+"px,"+b+"px,0)","translateY("+b+"px)")))}var w=a.$element,v=d.throttle(b);g(w);w.on("$scrollstart",v);w.on("$scroll",h);var t;return t={prev:null,current:null,next:null,items:[],add:function(a,b){b.addClass("md-sticky-clone");var c={element:a,clone:b};t.items.push(c);f.nextTick(function(){w.prepend(c.clone)});
v();return function(){t.items.forEach(function(b,c){b.element[0]===a[0]&&(t.items.splice(c,1),b.clone.remove())});v()}},refreshElements:b}}function g(a){function b(){200<+f.now()-g?(c=!1,a.triggerHandler("$scrollend")):(a.triggerHandler("$scroll"),d.throttle(b))}var c,g;a.on("scroll touchmove",function(){c||(c=!0,d.throttle(b),a.triggerHandler("$scrollstart"));a.triggerHandler("$scroll");g=+f.now()})}var b=f.checkStickySupport();return function(d,g,f){var h=g.controller("mdContent");if(h)if(b)g.css({position:b,
top:0,"z-index":2});else{var e=h.$element.data("$$sticky");e||(e=c(h),h.$element.data("$$sticky",e));f=f||a(g.clone())(d);g=e.add(g,f);d.$on("$destroy",g)}}}e.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",l);l.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"]})();(function(){function l(k,d,f,a){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',
link:function(c,g,b,h,m){function l(a){return e.element(a[0].querySelector(".md-subheader-content"))}f(g);g.addClass("_md");a.prefixer().removeAttribute(g,"ng-repeat");var q=g[0].outerHTML;m(c,function(a){l(g).append(a)});g.hasClass("md-no-sticky")||m(c,function(b){var f=d('<div class="md-subheader-wrapper">'+q+"</div>")(c);a.nextTick(function(){l(f).append(b)});k(c,g,f)})}}}e.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",l);l.$inject=
["$mdSticky","$compile","$mdTheming","$mdUtil"]})();(function(){function l(e){function d(c){return{restrict:"A",link:function(d,b,h){var g=c(h[f]);b.on(a,function(a){d.$applyAsync(function(){g(d,{$event:a})})})}}}var f="md"+e,a="$md."+e.toLowerCase();d.$inject=["$parse"];return d}e.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",l("SwipeLeft")).directive("mdSwipeRight",l("SwipeRight")).directive("mdSwipeUp",l("SwipeUp")).directive("mdSwipeDown",l("SwipeDown"))})();(function(){function l(k,
d,f,a,c,g,b){var h=k[0];return{restrict:"E",priority:210,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:"?ngModel",compile:function(k,l){var m=h.compile(k,l).post;k.addClass("md-dragging");return function(h,k,l,p){function n(a){h.$apply(function(){p.$setViewValue(a);p.$render()})}p=p||d.fakeNgModel();var q=null;
null!=l.disabled?q=function(){return!0}:l.ngDisabled&&(q=a(l.ngDisabled));var u=e.element(k[0].querySelector(".md-thumb-container")),w=e.element(k[0].querySelector(".md-container"));c(function(){k.removeClass("md-dragging")});m(h,k,l,p);q&&h.$watch(q,function(a){k.attr("tabindex",a?-1:0)});g.register(w,"drag");w.on("$md.dragstart",function(a){q&&q(h)||(a.stopPropagation(),k.addClass("md-dragging"),D={width:u.prop("offsetWidth")})}).on("$md.drag",function(a){D&&(a.stopPropagation(),a.srcEvent&&a.srcEvent.preventDefault(),
a=a.pointer.distanceX/D.width,a=p.$viewValue?1+a:a,a=Math.max(0,Math.min(1,a)),u.css(f.CSS.TRANSFORM,"translate3d("+100*a+"%,0,0)"),D.translate=a)}).on("$md.dragend",function(a){D&&(a.stopPropagation(),k.removeClass("md-dragging"),u.css(f.CSS.TRANSFORM,""),(p.$viewValue?.5>D.translate:.5<D.translate)&&n(!p.$viewValue),D=null,h.skipToggle=!0,b(function(){h.skipToggle=!1},1))});var D}}}}e.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",l);l.$inject=
"mdCheckboxDirective $mdUtil $mdConstant $parse $$rAF $mdGesture $timeout".split(" ")})();e.module("material.components.tabs",["material.core","material.components.icon"]);(function(){function l(d){return{restrict:"E",link:function(f,a){a.addClass("_md");f.$on("$destroy",function(){d.destroy()})}}}function k(d){function f(a){c=a}function a(a,b,d,f){function g(a){return f("gt-xs")?"md-toast-open-"+(-1<a.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"}return{onShow:function(h,e,k){c=k.textContent||
k.content;var l=!f("gt-sm");e=d.extractElementByName(e,"md-toast",!0);k.element=e;k.onSwipe=function(a,c){var g=a.type.replace("$md.",""),f=g.replace("swipe","");"down"===f&&-1!=k.position.indexOf("top")&&!l||"up"===f&&(-1!=k.position.indexOf("bottom")||l)||("left"===f||"right"===f)&&l||(e.addClass("md-"+g),d.nextTick(b.cancel))};k.openClass=g(k.position);e.addClass(k.toastClass);k.parent.addClass(k.openClass);d.hasComputedStyle(k.parent,"position","static")&&k.parent.css("position","relative");e.on("$md.swipeleft $md.swiperight $md.swipeup $md.swipedown",
k.onSwipe);e.addClass(l?"md-bottom":k.position.split(" ").map(function(a){return"md-"+a}).join(" "));k.parent&&k.parent.addClass("md-toast-animating");return a.enter(e,k.parent).then(function(){k.parent&&k.parent.removeClass("md-toast-animating")})},onRemove:function(b,c,g){c.off("$md.swipeleft $md.swiperight $md.swipeup $md.swipedown",g.onSwipe);g.parent&&g.parent.addClass("md-toast-animating");g.openClass&&g.parent.removeClass(g.openClass);return(1==g.$destroy?c.remove():a.leave(c)).then(function(){g.parent&&
g.parent.removeClass("md-toast-animating");d.hasComputedStyle(g.parent,"position","static")&&g.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3E3,autoWrap:!0,transformTemplate:function(a,b){if(b.autoWrap&&a&&!/md-toast-content/g.test(a)){var c=document.createElement("md-template");c.innerHTML=a;for(var d=0;d<c.children.length;d++)if("MD-TOAST"===c.children[d].nodeName){var g=e.element('<div class="md-toast-content">');g.append(e.element(c.children[d].childNodes));
c.children[d].appendChild(g[0])}return c.innerHTML}return a||""}}}var c;d=d("$mdToast").setDefaults({methods:"position hideDelay capsule parent position toastClass".split(" "),options:a}).addPreset("simple",{argOption:"textContent",methods:"textContent content action highlightAction highlightClass theme parent".split(" "),options:["$mdToast","$mdTheming",function(a,b){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"> <div class="md-toast-content"> <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true"> {{ toast.content }} </span> <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="highlightClasses"> {{ toast.action }} </md-button> </div></md-toast>',
controller:["$scope",function(b){var d=this;d.highlightAction&&(b.highlightClasses