text: webpackJsonp([0],[,function(e,t,n){"use strict";n(0),n(7),n(9),n(11),e.exports="ngMaterial"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),n(3),n(4),n(5);var i=n(0),r=o(i),a=n(1),s=o(a),d=n(12),l=o(d),c=n(21),u=n(24);t.default=r.default.module("app",[s.default,l.default]).component("demoTable1",c.DemoTable1).component("demoTable2",u.DemoTable2)},function(e,t){},function(e,t){},function(e,t){},,function(e,t,n){"use strict";n(8),e.exports="ngAnimate"},function(e,t,n){"use strict";/**
   * @license AngularJS v1.6.6
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(e,t){function n(e,t,n){if(!e)throw de("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function o(e,t){return e||t?e?t?(W(e)&&(e=e.join(" ")),W(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function r(e,t,n){var o="";return e=W(e)?e:e&&Q(e)&&e.length?e.split(/\s+/):[],V(e,function(e,i){e&&e.length>0&&(o+=i>0?" ":"",o+=n?t+e:e+t)}),o}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof J)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===L)return e;break;default:return J(d(e))}if(e.nodeType===L)return J(e)}function d(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===L)return n}}function l(e,t,n){V(t,function(t){e.addClass(t,n)})}function c(e,t,n){V(t,function(t){e.removeClass(t,n)})}function u(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function m(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||ee;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ee},e.$$prepared=!0}return e}function p(e,t){h(e,t),f(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function f(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var o=t.options||{},i=n.options||{},r=(o.addClass||"")+" "+(i.addClass||""),a=(o.removeClass||"")+" "+(i.removeClass||""),s=b(e.attr("class"),r,a);i.preparationClasses&&(o.preparationClasses=w(i.preparationClasses,o.preparationClasses),delete i.preparationClasses);var d=o.domOperation!==ee?o.domOperation:null;return z(o,i),d&&(o.domOperation=d),s.addClass?o.addClass=s.addClass:o.addClass=null,s.removeClass?o.removeClass=s.removeClass:o.removeClass=null,t.addClass=o.addClass,t.removeClass=o.removeClass,o}function b(e,t,n){function o(e){Q(e)&&(e=e.split(" "));var t={};return V(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=o(e),t=o(t),V(t,function(e,t){i[t]=1}),n=o(n),V(n,function(e,t){i[t]=1===i[t]?null:-1});var r={addClass:"",removeClass:""};return V(i,function(t,n){var o,i;1===t?(o="addClass",i=!e[n]||e[n+j]):-1===t&&(o="removeClass",i=e[n]||e[n+R]),i&&(r[o].length&&(r[o]+=" "),r[o]+=n)}),r}function v(e){return e instanceof J?e[0]:e}function E(e,t,n){var o="";t&&(o=r(t,F,!0)),n.addClass&&(o=w(o,r(n.addClass,R))),n.removeClass&&(o=w(o,r(n.removeClass,j))),o.length&&(n.preparationClasses=o,e.addClass(o))}function $(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function y(e,t){var n=t?"-"+t+"s":"";return M(e,[ae,n]),[ae,n]}function C(e,t){var n=t?"paused":"",o=H+oe;return M(e,[o,n]),[o,n]}function M(e,t){var n=t[0],o=t[1];e.style[n]=o}function w(e,t){return e?t?e+" "+t:e:t}function T(e){return[re,e+"s"]}function A(e,t){return[t?ie:ae,e+"s"]}function k(e,t,n){var o=Object.create(null),i=e.getComputedStyle(t)||{};return V(n,function(e,t){var n=i[e];if(n){var r=n.charAt(0);("-"===r||"+"===r||r>=0)&&(n=x(n)),0===n&&(n=null),o[t]=n}}),o}function x(e){var t=0,n=e.split(/\s*,\s*/);return V(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function _(e){return 0===e||null!=e}function S(e,t){var n=I,o=e+"s";return t?n+=te:o+=" linear all",[n,o]}function N(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function D(e,t,n){V(n,function(n){e[n]=Y(e[n])?e[n]:t.style.getPropertyValue(n)})}var I,O,H,P,L=1,R="-add",j="-remove",F="ng-",B="ng-animate",U="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",I="WebkitTransition",O="webkitTransitionEnd transitionend"):(I="transition",O="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",H="WebkitAnimation",P="webkitAnimationEnd animationend"):(H="animation",P="animationend");var q,z,V,W,Y,K,G,X,Q,Z,J,ee,te="Duration",ne="TimingFunction",oe="PlayState",ie=H+"Delay",re=H+te,ae=I+"Delay",se=I+te,de=t.$$minErr("ng"),le=["$$rAF",function(e){function t(e){o=o.concat(e),n()}function n(){if(o.length){for(var t=o.shift(),r=0;r<t.length;r++)t[r]();i||e(function(){i||n()})}}var o,i;return o=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],ce=["$interpolate",function(e){return{link:function(t,n,o){function i(e){e="on"===e||"true"===e,n.data(U,e)}var r=o.ngAnimateChildren;Q(r)&&0===r.length?n.data(U,!0):(i(e(r)(t)),o.$observe("ngAnimateChildren",i))}}}],ue="$$animateCss",me=1e3,pe=3,he=1.5,fe={transitionDuration:se,transitionDelay:ae,transitionProperty:I+"Property",animationDuration:re,animationDelay:ie,animationIterationCount:H+"IterationCount"},ge={transitionDuration:se,transitionDelay:ae,animationDuration:re,animationDelay:ie},be=["$animateProvider",function(e){var t=N(),n=N();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,o,s,d,l,c,g,b){function E(e,t){var n="$$ngAnimateParentKey",o=e.parentNode;return(o[n]||(o[n]=++B))+"-"+e.getAttribute("class")+"-"+t}function $(n,o,i,r){var a=t.get(i);return a||(a=k(e,n,r),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(i,a),a}function w(i,a,s,d){var l;if(t.count(s)>0&&!(l=n.get(s))){var c=r(a,"-stagger");o.addClass(i,c),l=k(e,i,d),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),o.removeClass(i,c),n.put(s,l)}return l||{}}function x(e){U.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),o=0;o<U.length;o++)U[o](e);U.length=0})}function N(e,t,n){var o=$(e,t,n,fe),i=o.animationDelay,r=o.transitionDelay;return o.maxDelay=i&&r?Math.max(i,r):i||r,o.maxDuration=Math.max(o.animationDuration*o.animationIterationCount,o.transitionDuration),o}var L=u(o),B=0,U=[];return function(e,n){function l(){g()}function u(){g(!0)}function g(t){if(!(G||Q&&X)){G=!0,X=!1,z.$$skipPreparationClasses||o.removeClass(e,$e),o.removeClass(e,Ce),C(K,!1),y(K,!1),V(se,function(e){K.style[e[0]]=""}),L(e,z),p(e,z),Object.keys(Y).length&&V(Y,function(e,t){e?K.style.setProperty(t,e):K.style.removeProperty(t)}),z.onDone&&z.onDone(),ce&&ce.length&&e.off(ce.join(" "),B);var n=e.data(ue);n&&(d.cancel(n[0].timer),e.removeData(ue)),Z&&Z.complete(!t)}}function $(e){He.blockTransition&&y(K,e),He.blockKeyframeAnimation&&C(K,!!e)}function k(){return Z=new s({end:l,cancel:u}),x(ee),g(),{$$willAnimate:!1,start:function(){return Z},end:l}}function B(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),o=parseFloat(t.elapsedTime.toFixed(pe));Math.max(n-ae,0)>=oe&&o>=ie&&(Q=!0,g())}function U(){function t(){if(!G){if($(!1),V(se,function(e){var t=e[0],n=e[1];K.style[t]=n}),L(e,z),o.addClass(e,Ce),He.recalculateTimingStyles){if(ye=K.getAttribute("class")+" "+$e,we=E(K,ye),Ie=N(K,ye,we),Oe=Ie.maxDelay,te=Math.max(Oe,0),0===(ie=Ie.maxDuration))return void g();He.hasTransitions=Ie.transitionDuration>0,He.hasAnimations=Ie.animationDuration>0}if(He.applyAnimationDelay&&(Oe="boolean"!=typeof z.delay&&_(z.delay)?parseFloat(z.delay):Oe,te=Math.max(Oe,0),Ie.animationDelay=Oe,Pe=A(Oe,!0),se.push(Pe),K.style[Pe[0]]=Pe[1]),oe=te*me,re=ie*me,z.easing){var t,i=z.easing;He.hasTransitions&&(t=I+ne,se.push([t,i]),K.style[t]=i),He.hasAnimations&&(t=H+ne,se.push([t,i]),K.style[t]=i)}Ie.transitionDuration&&ce.push(O),Ie.animationDuration&&ce.push(P),ae=Date.now();var r=oe+he*re,a=ae+r,s=e.data(ue)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?d.cancel(c.timer):s.push(g)}if(l){var u=d(n,r,!1);s[0]={timer:u,expectedEndTime:a},s.push(g),e.data(ue,s)}ce.length&&e.on(ce.join(" "),B),z.to&&(z.cleanupStyles&&D(Y,K,Object.keys(z.to)),f(e,z))}}function n(){var t=e.data(ue);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ue)}}if(!G){if(!K.parentNode)return void g();var i=function(e){if(Q)X&&e&&(X=!1,g());else if(X=!e,Ie.animationDuration){var t=C(K,X);X?se.push(t):a(se,t)}},r=Ne>0&&(Ie.transitionDuration&&0===Te.transitionDuration||Ie.animationDuration&&0===Te.animationDuration)&&Math.max(Te.animationDelay,Te.transitionDelay);r?d(t,Math.floor(r*Ne*me),!1):t(),J.resume=function(){i(!0)},J.pause=function(){i(!1)}}}var z=n||{};z.$$prepared||(z=m(q(z)));var Y={},K=v(e);if(!K||!K.parentNode||!b.enabled())return k();var G,X,Q,Z,J,te,oe,ie,re,ae,se=[],de=e.attr("class"),le=i(z),ce=[];if(0===z.duration||!c.animations&&!c.transitions)return k();var fe=z.event&&W(z.event)?z.event.join(" "):z.event,be=fe&&z.structural,ve="",Ee="";be?ve=r(fe,F,!0):fe&&(ve=fe),z.addClass&&(Ee+=r(z.addClass,R)),z.removeClass&&(Ee.length&&(Ee+=" "),Ee+=r(z.removeClass,j)),z.applyClassesEarly&&Ee.length&&L(e,z);var $e=[ve,Ee].join(" ").trim(),ye=de+" "+$e,Ce=r($e,"-active"),Me=le.to&&Object.keys(le.to).length>0;if(!((z.keyframeStyle||"").length>0||Me||$e))return k();var we,Te;if(z.stagger>0){var Ae=parseFloat(z.stagger);Te={transitionDelay:Ae,animationDelay:Ae,transitionDuration:0,animationDuration:0}}else we=E(K,ye),Te=w(K,$e,we,ge);z.$$skipPreparationClasses||o.addClass(e,$e);var ke;if(z.transitionStyle){var xe=[I,z.transitionStyle];M(K,xe),se.push(xe)}if(z.duration>=0){ke=K.style[I].length>0;var _e=S(z.duration,ke);M(K,_e),se.push(_e)}if(z.keyframeStyle){var Se=[H,z.keyframeStyle];M(K,Se),se.push(Se)}var Ne=Te?z.staggerIndex>=0?z.staggerIndex:t.count(we):0,De=0===Ne;De&&!z.skipBlocking&&y(K,9999);var Ie=N(K,ye,we),Oe=Ie.maxDelay;te=Math.max(Oe,0),ie=Ie.maxDuration;var He={};if(He.hasTransitions=Ie.transitionDuration>0,He.hasAnimations=Ie.animationDuration>0,He.hasTransitionAll=He.hasTransitions&&"all"===Ie.transitionProperty,He.applyTransitionDuration=Me&&(He.hasTransitions&&!He.hasTransitionAll||He.hasAnimations&&!He.hasTransitions),He.applyAnimationDuration=z.duration&&He.hasAnimations,He.applyTransitionDelay=_(z.delay)&&(He.applyTransitionDuration||He.hasTransitions),He.applyAnimationDelay=_(z.delay)&&He.hasAnimations,He.recalculateTimingStyles=Ee.length>0,(He.applyTransitionDuration||He.applyAnimationDuration)&&(ie=z.duration?parseFloat(z.duration):ie,He.applyTransitionDuration&&(He.hasTransitions=!0,Ie.transitionDuration=ie,ke=K.style[I+"Property"].length>0,se.push(S(ie,ke))),He.applyAnimationDuration&&(He.hasAnimations=!0,Ie.animationDuration=ie,se.push(T(ie)))),0===ie&&!He.recalculateTimingStyles)return k();if(null!=z.delay){var Pe;"boolean"!=typeof z.delay&&(Pe=parseFloat(z.delay),te=Math.max(Pe,0)),He.applyTransitionDelay&&se.push(A(Pe)),He.applyAnimationDelay&&se.push(A(Pe,!0))}return null==z.duration&&Ie.transitionDuration>0&&(He.recalculateTimingStyles=He.recalculateTimingStyles||De),oe=te*me,re=ie*me,z.skipBlocking||(He.blockTransition=Ie.transitionDuration>0,He.blockKeyframeAnimation=Ie.animationDuration>0&&Te.animationDelay>0&&0===Te.animationDuration),z.from&&(z.cleanupStyles&&D(Y,K,Object.keys(z.from)),h(e,z)),He.blockTransition||He.blockKeyframeAnimation?$(ie):z.skipBlocking||y(K,!1),{$$willAnimate:!0,end:l,start:function(){if(!G)return J={end:l,cancel:u,resume:null,pause:null},Z=new s(J),x(U),Z}}}}]}],ve=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",o="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,i,r,a,s,d,l){function c(e){return e.replace(/\bng-\S+\b/g,"")}function u(e,t){return Q(e)&&(e=e.split(" ")),Q(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function m(t,i,a){function s(e){var t={},n=v(e).getBoundingClientRect();return V(["width","height","top","left"],function(e){var o=n[e];switch(e){case"top":o+=f.scrollTop;break;case"left":o+=f.scrollLeft}t[e]=Math.floor(o)+"px"}),t}function d(e){return e.attr("class")||""}function l(){var t=c(d(a)),n=u(t,h),i=u(h,t),r=e(p,{to:s(a),addClass:"ng-anchor-in "+n,removeClass:o+" "+i,delay:!0});return r.$$willAnimate?r:null}function m(){p.remove(),i.removeClass(n),a.removeClass(n)}var p=J(v(i).cloneNode(!0)),h=c(d(p));i.addClass(n),a.addClass(n),p.addClass("ng-anchor"),b.append(p);var g,E=function(){var t=e(p,{addClass:o,delay:!0,from:s(i)});return t.$$willAnimate?t:null}();if(!E&&!(g=l()))return m();var $=E||g;return{start:function(){function e(){n&&n.end()}var t,n=$.start();return n.done(function(){if(n=null,!g&&(g=l()))return n=g.start(),n.done(function(){n=null,m(),t.complete()}),n;m(),t.complete()}),t=new r({end:e,cancel:e})}}}function p(e,t,n,o){var i=h(e),a=h(t),s=[];if(V(o,function(e){var t=e.out,o=e.in,i=m(n,t,o);i&&s.push(i)}),i||a||0!==s.length)return{start:function(){function e(){V(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),a&&t.push(a.start()),V(s,function(e){t.push(e.start())});var n=new r({end:e,cancel:e});return r.all(t,function(e){n.complete(e)}),n}}}function h(t){var n=t.element,o=t.options||{};t.structural&&(o.event=t.event,o.structural=!0,o.applyClassesEarly=!0,"leave"===t.event&&(o.onDone=o.domOperation)),o.preparationClasses&&(o.event=w(o.event,o.preparationClasses));var i=e(n,o);return i.$$willAnimate?i:null}if(!s.animations&&!s.transitions)return ee;var f=l[0].body,g=v(a),b=J(t(g)||f.contains(g)?g:f);return function(e){return e.from&&e.to?p(e.from,e.to,e.classes,e.anchors):h(e)}}]}],Ee=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,o){function i(n){n=W(n)?n:n.split(" ");for(var o=[],i={},r=0;r<n.length;r++){var a=n[r],s=e.$$registeredAnimations[a];s&&!i[a]&&(o.push(t.get(s)),i[a]=!0)}return o}var r=u(o);return function(e,t,o,a){function s(){a.domOperation(),r(e,a)}function d(){h=!0,s(),p(e,a)}function l(e,t,o,i,r){var a;switch(o){case"animate":a=[t,i.from,i.to,r];break;case"setClass":a=[t,b,v,r];break;case"addClass":a=[t,b,r];break;case"removeClass":a=[t,v,r];break;default:a=[t,r]}a.push(i);var s=e.apply(e,a);if(s)if(G(s.start)&&(s=s.start()),s instanceof n)s.done(r);else if(G(s))return s;return ee}function c(e,t,o,i,r){var a=[];return V(i,function(i){var s=i[r];s&&a.push(function(){var i,r,a=!1,d=function(e){a||(a=!0,(r||ee)(e),i.complete(!e))};return i=new n({end:function(){d()},cancel:function(){d(!0)}}),r=l(s,e,t,o,function(e){d(!1===e)}),i})}),a}function u(e,t,o,i,r){var a=c(e,t,o,i,r);if(0===a.length){var s,d;"beforeSetClass"===r?(s=c(e,"removeClass",o,i,"beforeRemoveClass"),d=c(e,"addClass",o,i,"beforeAddClass")):"setClass"===r&&(s=c(e,"removeClass",o,i,"removeClass"),d=c(e,"addClass",o,i,"addClass")),s&&(a=a.concat(s)),d&&(a=a.concat(d))}if(0!==a.length)return function(e){var t=[];return a.length&&V(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){V(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&X(o)&&(a=o,o=null),a=m(a),o||(o=e.attr("class")||"",a.addClass&&(o+=" "+a.addClass),a.removeClass&&(o+=" "+a.removeClass));var f,g,b=a.addClass,v=a.removeClass,E=i(o);if(E.length){var $,y;"leave"===t?(y="leave",$="afterLeave"):(y="before"+t.charAt(0).toUpperCase()+t.substr(1),$=t),"enter"!==t&&"move"!==t&&(f=u(e,t,a,E,y)),g=u(e,t,a,E,$)}if(f||g){var C;return{$$willAnimate:!0,end:function(){return C?C.end():(d(),C=new n,C.complete(!0)),C},start:function(){function e(e){d(e),C.complete(e)}function t(t){h||((o||ee)(t),e(t))}if(C)return C;C=new n;var o,i=[];return f&&i.push(function(e){o=f(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),g&&i.push(function(e){o=g(e)}),C.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),C}}}}}]}],$e=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,o=t.event,i=t.options,r=t.classes;return e(n,o,r,i)}return function(e){if(e.from&&e.to){var o=n(e.from),i=n(e.to);if(!o&&!i)return;return{start:function(){function e(){return function(){V(r,function(e){e.end()})}}function n(e){a.complete(e)}var r=[];o&&r.push(o.start()),i&&r.push(i.start()),t.all(r,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],ye="data-ng-animate",Ce="$ngAnimatePin",Me=["$animateProvider",function(t){function o(e){if(!e)return null;var t=e.split(h),n=Object.create(null);return V(t,function(e){n[e]=!0}),n}function i(e,t){if(e&&t){var n=o(t);return e.split(h).some(function(e){return n[e]})}}function r(e,t,n){return f[e].some(function(e){return e(t,n)})}function a(e,t){var n=(e.addClass||"").length>0,o=(e.removeClass||"").length>0;return t?n&&o:n||o}var l=1,c=2,h=" ",f=this.rules={skip:[],cancel:[],join:[]};f.join.push(function(e,t){return!e.structural&&a(e)}),f.skip.push(function(e,t){return!e.structural&&!a(e)}),f.skip.push(function(e,t){return"leave"===t.event&&e.structural}),f.skip.push(function(e,t){return t.structural&&t.state===c&&!e.structural}),f.cancel.push(function(e,t){return t.structural&&e.structural}),f.cancel.push(function(e,t){return t.state===c&&e.structural}),f.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,o=e.removeClass,r=t.addClass,a=t.removeClass;return!(Z(n)&&Z(o)||Z(r)&&Z(a))&&(i(n,a)||i(o,r))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(o,i,h,f,b,y,C,M,w,T,A){function k(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function x(e,t){return g(e,t,{})}function _(e,t,n){var o=[],i=G[n];return i&&V(i,function(i){ae.call(i.node,t)?o.push(i.callback):"leave"===n&&ae.call(i.node,e)&&o.push(i.callback)}),o}function S(e,t,n){var o=d(t);return e.filter(function(e){return!(e.node===o&&(!n||e.callback===n))})}function N(e,t){"close"!==e||t.parentNode||se.off(t)}function D(e,t,n){function d(e,t,n,i){T(function(){var e=_(M,b,t);e.length?o(function(){V(e,function(e){e(f,n,i)}),N(n,b)}):N(n,b)}),e.progress(t,n,i)}function u(e){$(f,h),re(f,h),p(f,h),h.domOperation(),w.complete(!e)}var h=q(n),f=s(e),b=v(f),M=b&&b.parentNode;h=m(h);var w=new C,T=k();if(W(h.addClass)&&(h.addClass=h.addClass.join(" ")),h.addClass&&!Q(h.addClass)&&(h.addClass=null),W(h.removeClass)&&(h.removeClass=h.removeClass.join(" ")),h.removeClass&&!Q(h.removeClass)&&(h.removeClass=null),h.from&&!X(h.from)&&(h.from=null),h.to&&!X(h.to)&&(h.to=null),!(F&&b&&oe(b,t,n)&&ie(b,h)))return u(),w;var S=["enter","move","leave"].indexOf(t)>=0,D=A(),L=D||j.get(b),B=!L&&R.get(b)||{},U=!!B.state;if(L||U&&B.state===l||(L=!H(b,M,t)),L)return D&&d(w,t,"start"),u(),D&&d(w,t,"close"),w;S&&I(b);var z={structural:S,element:f,event:t,addClass:h.addClass,removeClass:h.removeClass,close:u,options:h,runner:w};if(U){if(r("skip",z,B))return B.state===c?(u(),w):(g(f,B,z),B.runner);if(r("cancel",z,B))if(B.state===c)B.runner.end();else{if(!B.structural)return g(f,B,z),B.runner;B.close()}else{if(r("join",z,B)){if(B.state!==c)return E(f,S?t:null,h),t=z.event=B.event,h=g(f,B,z),B.runner;x(f,z)}}}else x(f,z);var Y=z.structural;if(Y||(Y="animate"===z.event&&Object.keys(z.options.to||{}).length>0||a(z)),!Y)return u(),O(b),w;var K=(B.counter||0)+1;return z.counter=K,P(b,l,z),i.$$postDigest(function(){f=s(e);var n=R.get(b),o=!n;n=n||{};var i=f.parent()||[],r=i.length>0&&("animate"===n.event||n.structural||a(n));if(o||n.counter!==K||!r)return o&&(re(f,h),p(f,h)),(o||S&&n.event!==t)&&(h.domOperation(),w.end()),void(r||O(b));t=!n.structural&&a(n,!0)?"setClass":n.event,P(b,c);var l=y(f,t,n.options);w.setHost(l),d(w,t,"start",{}),l.done(function(e){u(!e);var n=R.get(b);n&&n.counter===K&&O(b),d(w,t,"close",{})})}),w}function I(e){var t=e.querySelectorAll("["+ye+"]");V(t,function(e){var t=parseInt(e.getAttribute(ye),10),n=R.get(e);if(n)switch(t){case c:n.runner.end();case l:R.delete(e)}})}function O(e){e.removeAttribute(ye),R.delete(e)}function H(e,t,n){var o,i=f[0].body,r=v(h),a=e===i||"HTML"===e.nodeName,s=e===r,d=!1,l=j.get(e),c=J.data(e,Ce);for(c&&(t=v(c));t&&(s||(s=t===r),t.nodeType===L);){var u=R.get(t)||{};if(!d){var m=j.get(t);if(!0===m&&!1!==l){l=!0;break}!1===m&&(l=!1),d=u.structural}if(Z(o)||!0===o){var p=J.data(t,U);Y(p)&&(o=p)}if(d&&!1===o)break;if(a||(a=t===i),a&&s)break;t=s||!(c=J.data(t,Ce))?t.parentNode:v(c)}return(!d||o)&&!0!==l&&s&&a}function P(e,t,n){n=n||{},n.state=t,e.setAttribute(ye,t);var o=R.get(e),i=o?z(o,n):n;R.set(e,i)}var R=new b,j=new b,F=null,B=i.$watch(function(){return 0===M.totalPendingRequests},function(e){e&&(B(),i.$$postDigest(function(){i.$$postDigest(function(){null===F&&(F=!0)})}))}),G=Object.create(null),ee=t.customFilter(),te=t.classNameFilter(),ne=function(){return!0},oe=ee||ne,ie=te?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return te.test(n)}:ne,re=u(w),ae=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},se={on:function(e,t,n){var o=d(t);G[e]=G[e]||[],G[e].push({node:o,callback:n}),J(t).on("$destroy",function(){R.get(o)||se.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||Q(arguments[0])){var o=G[e];o&&(G[e]=1===arguments.length?null:S(o,t,n))}else{t=arguments[0];for(var i in G)G[i]=S(G[i],t)}},pin:function(e,t){n(K(e),"element","not an element"),n(K(t),"parentElement","not an element"),e.data(Ce,t)},push:function(e,t,n,o){return n=n||{},n.domOperation=o,D(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!F;else{if(K(e)){var o=v(e);1===n?t=!j.get(o):j.set(o,!t)}else t=F=!!e}return t}};return se}]}],we=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var r="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(e,s,d,l,c,h){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;i.set(n,e);for(var a;r;){if(a=i.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||o).children.push(e),e}var n,o={children:[]},i=new c;for(n=0;n<e.length;n++){var r=e[n];i.set(r.domNode,e[n]={domNode:r.domNode,fn:r.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],o=[];for(t=0;t<e.children.length;t++)o.push(e.children[t]);var i=o.length,r=0,a=[];for(t=0;t<o.length;t++){var s=o[t];i<=0&&(i=r,r=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){r++,o.push(e)}),i--}return a.length&&n.push(a),n}(o)}var g=[],b=u(e);return function(c,u,E){function $(e){var t="["+r+"]",n=e.hasAttribute(r)?[e]:e.querySelectorAll(t),o=[];return V(n,function(e){var t=e.getAttribute(r);t&&t.length&&o.push(e)}),o}function y(e){var t=[],n={};V(e,function(e,o){var i=e.element,a=v(i),s=e.event,d=["enter","move"].indexOf(s)>=0,l=e.structural?$(a):[];if(l.length){var c=d?"to":"from";V(l,function(e){var t=e.getAttribute(r);n[t]=n[t]||{},n[t][c]={animationID:o,element:J(e)}})}else t.push(e)});var o={},i={};return V(n,function(n,r){var a=n.from,s=n.to;if(!a||!s){var d=a?a.animationID:s.animationID,l=d.toString();return void(o[l]||(o[l]=!0,t.push(e[d])))}var c=e[a.animationID],u=e[s.animationID],m=a.animationID.toString();if(!i[m]){var p=i[m]={structural:!0,beforeStart:function(){c.beforeStart(),u.beforeStart()},close:function(){c.close(),u.close()},classes:C(c.classes,u.classes),from:c,to:u,anchors:[]};p.classes.length?t.push(p):(t.push(c),t.push(u))}i[m].anchors.push({out:a.element,in:s.element})}),t}function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],o=0;o<e.length;o++){var i=e[o];if("ng-"!==i.substring(0,3))for(var r=0;r<t.length;r++)if(i===t[r]){n.push(i);break}}return n.join(" ")}function M(e){for(var t=a.length-1;t>=0;t--){var n=a[t],o=d.get(n),i=o(e);if(i)return i}}function w(){c.addClass(B),N&&e.addClass(c,N),D&&(e.removeClass(c,D),D=null)}function T(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function A(){var e=i(c);!e||"leave"===u&&E.$$domOperationFired||e.end()}function k(t){c.off("$destroy",A),n(c),b(c,E),p(c,E),E.domOperation(),N&&e.removeClass(c,N),c.removeClass(B),_.complete(!t)}E=m(E);var x=["enter","move","leave"].indexOf(u)>=0,_=new l({end:function(){k()},cancel:function(){k(!0)}});if(!a.length)return k(),_;t(c,_);var S=o(c.attr("class"),o(E.addClass,E.removeClass)),N=E.tempClasses;N&&(S+=" "+N,E.tempClasses=null);var D;return x&&(D="ng-"+u+"-prepare",e.addClass(c,D)),g.push({element:c,classes:S,event:u,structural:x,options:E,beforeStart:w,close:k}),c.on("$destroy",A),g.length>1?_:(s.$$postDigest(function(){var e=[];V(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=y(e),n=[];V(t,function(e){n.push({domNode:v(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var o=M(e);o&&(t=o.start)}if(t){var r=t();r.done(function(e){n(!e)}),T(e,r)}else n()}})}),h(f(n))}),_)}}]}],Te=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,o,i,r){var a,s;t.$watchCollection(o.ngAnimateSwap||o.for,function(o){a&&e.leave(a),s&&(s.$destroy(),s=null),(o||0===o)&&(s=t.$new(),r(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){ee=t.noop,q=t.copy,z=t.extend,J=t.element,V=t.forEach,W=t.isArray,Q=t.isString,X=t.isObject,Z=t.isUndefined,Y=t.isDefined,G=t.isFunction,K=t.isElement}).info({angularVersion:"1.6.6"}).directive("ngAnimateSwap",Te).directive("ngAnimateChildren",ce).factory("$$rAFScheduler",le).provider("$$animateQueue",Me).provider("$$animation",we).provider("$animateCss",be).provider("$$animateCssDriver",ve).provider("$$animateJs",Ee).provider("$$animateJsDriver",$e)}(window,window.angular)},function(e,t,n){"use strict";n(10),e.exports="ngAria"},function(e,t,n){"use strict";/**
   * @license AngularJS v1.6.6
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(e,t){function n(){function e(e,t,o,i){return function(a,s,d){var l=d.$normalize(t);!n[l]||r(s,o)||d[l]||a.$watch(d[e],function(e){e=i?!e:!!e,s.attr(t,e)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}var o=t.module("ngAria",["ng"]).info({angularVersion:"1.6.6"}).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],r=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};o.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,o,a){return e.config(n)&&!o.attr(t)&&(a||!r(o,i))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&!r(t,i)}function o(e,t){var n=e.type,o=e.role;return"checkbox"===(n||o)||"menuitemcheckbox"===o?"checkbox":"radio"===(n||o)||"menuitemradio"===o?"radio":"range"===n||"progressbar"===o||"slider"===o?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,r){var a=o(r,i);return{post:function(o,i,r,s){function d(){return s.$modelValue}function l(e){var t=r.value==s.$viewValue;i.attr("aria-checked",t)}function c(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var u=t("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),t("aria-checked","ariaChecked",i,!1)&&o.$watch(d,"radio"===a?l:c),u&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),e.config("ariaValue")){var m=!i.attr("aria-valuemin")&&(r.hasOwnProperty("min")||r.hasOwnProperty("ngMin")),p=!i.attr("aria-valuemax")&&(r.hasOwnProperty("max")||r.hasOwnProperty("ngMax")),h=!i.attr("aria-valuenow");m&&r.$observe("min",function(e){i.attr("aria-valuemin",e)}),p&&r.$observe("max",function(e){i.attr("aria-valuemax",e)}),h&&o.$watch(d,function(e){i.attr("aria-valuenow",e)})}u&&i.attr("tabindex",0)}!r.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",i,!1)&&r.$observe("required",function(){i.attr("aria-required",!!r.required)}),t("aria-invalid","ariaInvalid",i,!0)&&o.$watch(function(){return s.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,o){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(n,o){var a=t(o.ngClick);return function(t,n,o){r(n,i)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!e.config("bindKeydown")||o.ngKeydown||o.ngKeypress||o.ngKeyup||n.on("keydown",function(e){function n(){a(t,{$event:e})}var o=e.which||e.keyCode;32!==o&&13!==o||t.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,o){!e.config("tabindex")||n.attr("tabindex")||r(n,i)||n.attr("tabindex",0)}}])}(window,window.angular)},function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/*!
   * AngularJS Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.5
   */
  !function(e,t,n){!function(){t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.chips","material.components.checkbox","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.icon","material.components.gridList","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.truncate","material.components.virtualRepeat","material.components.whiteframe"])}(),function(){function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function n(e,t){e.decorator("$$rAF",["$delegate",o]),e.decorator("$q",["$delegate",i]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function o(e){return e.throttle=function(t){var n,o,i,r;return function(){n=arguments,r=this,i=t,o||(o=!0,e(function(){i.apply(r,Array.prototype.slice.call(n)),o=!1}))}},e}function i(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],o.$inject=["$delegate"],i.$inject=["$delegate"],t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(e)}(),function(){function e(e){function n(n,o,i){function r(e){t.isUndefined(e)&&(e=!0),o.toggleClass("md-autofocus",!!e)}var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;r(e(a)(n)),a&&n.$watch(a,r)}return{restrict:"A",link:{pre:n}}}e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),function(){function e(){function e(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,o=t.substr(0,n),i=t.substr(n,n),r=t.substr(2*n);return 1===n&&(o+=o,i+=i,r+=r),"rgba("+parseInt(o,16)+","+parseInt(i,16)+","+parseInt(r,16)+",0.1)"}function t(e){return e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),(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()}function n(e){return e.replace(")",", 0.1)").replace("(","a(")}function o(e){return e?e.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}return{rgbaToHex:t,hexToRgba:e,rgbToRgba:n,rgbaToRgb:o}}t.module("material.core").factory("$mdColorUtil",e)}(),function(){function e(){function e(e){var t=r+"-"+e,a=o(t),s=a.charAt(0).toLowerCase()+a.substring(1);return n(i,e)?e:n(i,a)?a:n(i,s)?s:e}function n(e,n){return t.isDefined(e.style[n])}function o(e){return e.replace(s,function(e,t,n,o){return o?n.toUpperCase():n})}var i=document.createElement("div"),r=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(i),a=/webkit/i.test(r),s=/([:\-_]+(.))/g,d={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=d.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(a?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(a?" webkitAnimationEnd":""),TRANSFORM:e("transform"),TRANSFORM_ORIGIN:e("transformOrigin"),TRANSITION:e("transition"),TRANSITION_DURATION:e("transitionDuration"),ANIMATION_PLAY_STATE:e("animationPlayState"),ANIMATION_DURATION:e("animationDuration"),ANIMATION_NAME:e("animationName"),ANIMATION_TIMING:e("animationTimingFunction"),ANIMATION_DIRECTION:e("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return d}t.module("material.core").factory("$mdConstant",e)}(),function(){function e(e,n){function o(){return[].concat(v)}function i(){return v.length}function r(e){return v.length&&e>-1&&e<v.length}function a(e){return!!e&&r(m(e)+1)}function s(e){return!!e&&r(m(e)-1)}function d(e){return r(e)?v[e]:null}function l(e,t){return v.filter(function(n){return n[e]===t})}function c(e,n){return e?(t.isNumber(n)||(n=v.length),v.splice(n,0,e),m(e)):-1}function u(e){p(e)&&v.splice(m(e),1)}function m(e){return v.indexOf(e)}function p(e){return e&&m(e)>-1}function h(){return v.length?v[0]:null}function f(){return v.length?v[v.length-1]:null}function g(e,o,i,a){i=i||b;for(var s=m(o);;){if(!r(s))return null;var d=s+(e?-1:1),l=null;if(r(d)?l=v[d]:n&&(l=e?f():h(),d=m(l)),null===l||d===a)return null;if(i(l))return l;t.isUndefined(a)&&(a=d),s=d}}var b=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var v=e||[];return{items:o,count:i,inRange:r,contains:p,indexOf:m,itemAt:d,findBy:l,add:c,remove:u,first:h,last:f,next:t.bind(null,g,!1),previous:t.bind(null,g,!0),hasPrevious:s,hasNext:a}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,o){function i(e){var n=m[e];t.isUndefined(n)&&(n=m[e]=r(e));var o=h[n];return t.isUndefined(o)&&(o=a(n)),o}function r(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function a(e){var t=p[e];return t||(t=p[e]=o.matchMedia(e)),t.addListener(s),h[t.media]=!!t.matches}function s(e){n.$evalAsync(function(){h[e.media]=!!e.matches})}function d(e){return p[e]}function l(t,n){for(var o=0;o<e.MEDIA_PRIORITY.length;o++){var i=e.MEDIA_PRIORITY[o];if(p[m[i]].matches){var r=u(t,n+"-"+i);if(t[r])return t[r]}}return t[u(t,n)]}function c(n,o,i){var r=[];return n.forEach(function(n){var a=u(o,n);t.isDefined(o[a])&&r.push(o.$observe(a,t.bind(void 0,i,null)));for(var s in e.MEDIA)a=u(o,n+"-"+s),t.isDefined(o[a])&&r.push(o.$observe(a,t.bind(void 0,i,s)))}),function(){r.forEach(function(e){e()})}}function u(e,t){return f[t]||(f[t]=e.$normalize(t))}var m={},p={},h={},f={};return i.getResponsiveAttribute=l,i.getQuery=d,i.watchResponsiveAttributes=c,i}e.$inject=["$mdConstant","$rootScope","$window"],t.module("material.core").factory("$mdMedia",e)}(),function(){function e(e,n){function o(e){return e=t.isArray(e)?e:[e],e.forEach(function(t){d.forEach(function(n){e.push(n+"-"+t)})}),e}function i(e){return e=t.isArray(e)?e:[e],o(e).map(function(e){return"["+e+"]"}).join(",")}function r(e,t){if(!(e=s(e)))return!1;for(var n=o(t),i=0;i<n.length;i++)if(e.hasAttribute(n[i]))return!0;return!1}function a(e,t){(e=s(e))&&o(t).forEach(function(t){e.removeAttribute(t)})}function s(e){if(e=e[0]||e,e.nodeType)return e}var d=["data","x"];return e?n?i(e):o(e):{buildList:o,buildSelector:i,hasAttribute:r,removeAttribute:a}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.prefixer=e,t}])}])}(),function(){function o(o,r,a,s,d,l,c,u,m,p){function h(e){return e?f(e)||g(e)?e:e+"px":"0"}function f(e){return String(e).indexOf("px")>-1}function g(e){return String(e).indexOf("%")>-1}function b(e){return e[0]||e}var v=l.startSymbol(),E=l.endSymbol(),$="{{"===v&&"}}"===E,y=function(e,n,o){var i=!1;if(e&&e.length){var r=m.getComputedStyle(e[0]);i=t.isDefined(r[n])&&(!o||r[n]==o)}return i},C={dom:{},now:e.performance&&e.performance.now?t.bind(e.performance,e.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(e,n,i,r){var a=!("rtl"==o[0].dir||"rtl"==o[0].body.dir);if(0==arguments.length)return a?"ltr":"rtl";var s=t.element(e);a&&t.isDefined(i)?s.css(n,h(i)):!a&&t.isDefined(r)&&s.css(n,h(r))},bidiProperty:function(e,n,i,r){var a=!("rtl"==o[0].dir||"rtl"==o[0].body.dir),s=t.element(e);a&&t.isDefined(n)?(s.css(n,h(r)),s.css(i,"")):!a&&t.isDefined(i)&&(s.css(i,h(r)),s.css(n,""))},clientRect:function(e,t,n){var o=b(e);t=b(t||o.offsetParent||document.body);var i=o.getBoundingClientRect(),r=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-r.left,top:i.top-r.top,width:i.width,height:i.height}},offsetRect:function(e,t){return C.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return e.scrollY||e.pageYOffset||0},findFocusTarget:function(e,n){function o(e,n){var o,i=e[0].querySelectorAll(n);return i&&i.length&&i.length&&t.forEach(i,function(e){e=t.element(e),e.hasClass("md-autofocus")&&(o=e)}),o}var i,r=this.prefixer("md-autofocus",!0);return i=o(e,n||r),i||n==r||(i=o(e,this.prefixer("md-auto-focus",!0)))||(i=o(e,r)),i},disableScrollAround:function(e,n,i){if(i=i||{},C.disableScrollAround._count=Math.max(0,C.disableScrollAround._count||0),C.disableScrollAround._count++,C.disableScrollAround._restoreScroll)return C.disableScrollAround._restoreScroll;var r=o[0].body,a=function(){var e=o[0].documentElement,n=e.style.cssText||"",i=r.style.cssText||"",a=C.getViewportTop(),s=r.clientWidth,d=r.scrollHeight>r.clientHeight+1,l=e.scrollTop>0?e:r;return d&&t.element(r).css({position:"fixed",width:"100%",top:-a+"px"}),r.clientWidth<s&&(r.style.overflow="hidden"),d&&(e.style.overflowY="scroll"),function(){r.style.cssText=i,e.style.cssText=n,l.scrollTop=a}}(),s=function(e){function n(e){e.preventDefault()}e=t.element(e||r);var o;return i.disableScrollMask?o=e:(o=t.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),e.append(o)),o.on("wheel",n),o.on("touchmove",n),function(){o.off("wheel"),o.off("touchmove"),!i.disableScrollMask&&o[0].parentNode&&o[0].parentNode.removeChild(o[0])}}(n);return C.disableScrollAround._restoreScroll=function(){--C.disableScrollAround._count<=0&&(a(),s(),delete C.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),o[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),o.$material=!0,o.$focus=!0,n.dispatchEvent(o)},createBackdrop:function(e,t){return a(C.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var o=n.split("."),i=t;try{for(var r in o)o.hasOwnProperty(r)&&(i=i[o[r]])}catch(t){i=e}return"string"==typeof i||"number"==typeof i?i:e})},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,o,i){var a;return function(){var s=o,d=Array.prototype.slice.call(arguments);r.cancel(a),a=r(function(){a=n,e.apply(s,d)},t||10,i)}},throttle:function(e,t){var n;return function(){var o=this,i=arguments,r=C.now();(!n||r-n>t)&&(e.apply(o,i),n=r)}},time:function(e){var t=C.now();return e(),C.now()-t},valueOnUse:function(e,t,n){var o=null,i=Array.prototype.slice.call(arguments),r=i.length>3?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===o&&(o=n.apply(e,r)),o}})},nextUid:function(){return""+i++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,n,o){if(t.isString(n)){var i=n.toUpperCase();n=function(e){return e.nodeName.toUpperCase()===i}}if(e instanceof t.element&&(e=e[0]),o&&(e=e.parentNode),!e)return null;do{if(n(e))return e}while(e=e.parentNode);return null},elementContains:function(n,o){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,function(e){return n===o||!!(16&this.compareDocumentPosition(e))}))(o)},extractElementByName:function(e,n,o,i){function r(e){return a(e)||(o?s(e):null)}function a(e){if(e)for(var t=0,o=e.length;t<o;t++)if(e[t].nodeName.toLowerCase()===n)return e[t];return null}function s(e){var t;if(e)for(var n=0,o=e.length;n<o;n++){var i=e[n];if(!t)for(var a=0,s=i.childNodes.length;a<s;a++)t=t||r([i.childNodes[a]])}return t}var d=r(e);return!d&&i&&c.warn(C.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(d||e)},initOptionalProperties:function(e,n,o){o=o||{},t.forEach(e.$$isolateBindings,function(i,r){if(i.optional&&t.isUndefined(e[r])){var a=t.isDefined(n[i.attrName]);e[r]=t.isDefined(o[r])?o[r]:a}})},nextTick:function(e,t,n){function o(){var e=i.queue,t=i.digest;i.queue=[],i.timeout=null,i.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&s.$digest()}var i=C.nextTick,a=i.timeout,d=i.queue||[];return d.push({scope:n,callback:e}),null==t&&(t=!0),i.digest=i.digest||t,i.queue=d,a||(i.timeout=r(o,0,!1))},processTemplate:function(e){return $?e:e&&t.isString(e)?e.replace(/\{\{/g,v).replace(/}}/g,E):e},getParentWithPointerEvents:function(e){for(var t=e.parent();y(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==u[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,n=t.element("<div>");o[0].body.appendChild(n[0]);for(var i=["sticky","-webkit-sticky"],r=0;r<i.length;++r)if(n.css({position:i[r],top:0,"z-index":2}),n.css("position")==i[r]){e=i[r];break}return n.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:y,isParentFormSubmitted:function(e){var n=C.getClosest(e,"form"),o=n?t.element(n).controller("form"):null;return!!o&&o.$submitted},animateScrollTo:function(e,t,n){function o(){var n=i();e.scrollTop=n,(d?n<t:n>t)&&p(o)}function i(){var e=n||1e3;return r(C.now()-l,a,s,e)}function r(e,t,n,o){if(e>o)return t+n;var i=(e/=o)*e;return t+n*(i*e*-2+3*i)}var a=e.scrollTop,s=t-a,d=a<t,l=C.now();p(o)},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})}};return C.dom.animator=d(C),C}o.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var i=0;t.module("material.core").factory("$mdUtil",o),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function e(){function e(){t.showWarnings=!1}var t={showWarnings:!0};return{disableWarnings:e,$get:["$$rAF","$log","$window","$interpolate",function(e,o,i,r){return n.apply(t,arguments)}]}}function n(e,n,o,i){function r(e,o,i){var r=t.element(e)[0]||e;!r||r.hasAttribute(o)&&0!==r.getAttribute(o).length||c(r,o)||(i=t.isString(i)?i.trim():"",i.length?e.attr(o,i):p&&n.warn('ARIA: Attribute "',o,'", required for accessibility, is missing on node:',r))}function a(t,n,o){e(function(){r(t,n,o())})}function s(e,t){var n=l(e)||"";n.indexOf(i.startSymbol())>-1?a(e,t,function(){return l(e)}):r(e,t,n)}function d(e,t){var n=l(e);n.indexOf(i.startSymbol())>-1||n||r(e,t,n)}function l(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),o="";t=n.nextNode();)(function(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0})(t)||(o+=t.textContent);return o.trim()||""}function c(e,t){var n=e.hasChildNodes(),i=!1;if(n)for(var r=e.childNodes,a=0;a<r.length;a++){var s=r[a];1===s.nodeType&&s.hasAttribute(t)&&(function(e){return"none"===(e.currentStyle?e.currentStyle:o.getComputedStyle(e)).display}(s)||(i=!0))}return i}function u(e){var n=t.element(e)[0]||e;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}function m(e,n){n=n||1;var o=t.element(e)[0]||e;return!!o.parentNode&&(!!function(e){if(!u(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(o.parentNode)||!!--n&&m(o.parentNode,n))}var p=this.showWarnings;return{expect:r,expectAsync:a,expectWithText:s,expectWithoutText:d,getText:l,hasAriaLabel:u,parentHasAriaLabel:m}}n.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",e)}(),function(){function e(e){function n(){return!i||("function"==typeof e.preAssignBindingsEnabled?e.preAssignBindingsEnabled():1===t.version.major&&t.version.minor<6)}function o(e,t,n,o,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=o,this.$controller=i}var i=!1;this.respectPreAssignBindingsEnabled=function(e){return t.isDefined(e)?(i=e,this):i},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,i,r){return new o(e,t,n,i,r)}],o.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},o.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},o.prototype._compileTemplate=function(e){var n=this,o=e.templateUrl,i=e.template||"",r=t.extend({},e.resolve),a=t.extend({},e.locals),s=e.transformTemplate||t.identity;return t.forEach(r,function(e,o){t.isString(e)?r[o]=n.$injector.get(e):r[o]=n.$injector.invoke(e)}),t.extend(r,a),r.$$ngTemplate=o?this.$templateRequest(o):this.$q.when(i),this.$q.all(r).then(function(o){var i=s(o.$$ngTemplate,e),r=e.element||t.element("<div>").html(i.trim()).contents();return n._compileElement(o,r,e)})},o.prototype._compileElement=function(e,n,o){function i(i){if(e.$scope=i,o.controller){var d=t.extend({},e,{$element:n}),l=r._createController(o,d,e);n.data("$ngControllerController",l),n.children().data("$ngControllerController",l),s.controller=l}return a(i)}var r=this,a=this.$compile(n),s={element:n,cleanup:n.remove.bind(n),locals:e,link:i};return s},o.prototype._createController=function(e,o,i){var r=this.$controller(e.controller,o,!0,e.controllerAs);n()&&e.bindToController&&t.extend(r.instance,i);var a=r();return!n()&&e.bindToController&&t.extend(r.instance,i),t.isFunction(a.$onInit)&&a.$onInit(),a},o.prototype._fetchContentElement=function(e){function n(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}var o=e.contentElement,i=null;return t.isString(o)?(o=document.querySelector(o),i=n(o)):(o=o[0]||o,i=document.contains(o)?n(o):function(){o.parentNode&&o.parentNode.removeChild(o)}),{element:t.element(o),restore:i}}}t.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){function n(){}function o(n,o,i){function r(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}function a(e,t,n){var o=f[t.replace(/^\$md./,"")];if(!o)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(f).join(", "));return o.registerElement(e,n)}function d(e,o){var i=new n(e);return t.extend(i,o),f[e]=i,E}var l=navigator.userAgent||navigator.vendor||e.opera,u=l.match(/ipad|iphone|ipod/i),p=l.match(/android/i),h=function(){for(var e=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],o=0;o<n.length;o++){var i=n[o],r=i?i+"TouchAction":"touchAction";if(t.isDefined(e.style[r]))return r}}(),v=void 0!==e.jQuery&&t.element===e.jQuery,E={handler:d,register:a,isHijackingClicks:(u||p)&&!v&&!g};return E.isHijackingClicks&&(E.handler("click",{options:{maxDistance:b},onEnd:r("click")}),E.handler("focus",{options:{maxDistance:b},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&m(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),E.handler("mouseup",{options:{maxDistance:b},onEnd:r("mouseup")}),E.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),E.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){i.cancel(this.state.timeout)},onStart:function(e,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=i(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){h||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){h&&(this.oldTouchAction=e[0].style[h],e[0].style[h]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[h]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;h||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,o=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,o=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=s(e),c(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:o.throttle(function(e){this.state.isRunning&&(c(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(c(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function i(e){this.name=e,this.state={}}function r(){function n(e,n,o){o=o||p;var i=new t.element.Event(n);i.$material=!0,i.pointer=o,i.srcEvent=e,t.extend(i,{clientX:o.x,clientY:o.y,screenX:o.x,screenY:o.y,pageX:o.x,pageY:o.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(o.target).trigger(i)}function o(t,n,o){o=o||p;var i;"click"===n||"mouseup"==n||"mousedown"==n?(i=document.createEvent("MouseEvents"),i.initMouseEvent(n,!0,!0,e,t.detail,o.x,o.y,o.x,o.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null)):(i=document.createEvent("CustomEvent"),i.initCustomEvent(n,!0,!0,{})),i.$material=!0,i.pointer=o,i.srcEvent=t,o.target.dispatchEvent(i)}var r=void 0!==e.jQuery&&t.element===e.jQuery;return i.prototype={options:{},dispatchEvent:r?n:o,onSetup:t.noop,onCleanup:t.noop,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var o=this.getNearestParent(e.target),i=o&&o.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,i),registeredParent:o},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function n(){delete e[0].$mdGesture[o.name],e.off("$destroy",n),o.onCleanup(e,t||{})}var o=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),o.onSetup(e,t||{}),n}},i}function a(e,n){function o(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||l(e)||"mousedown"===e.type&&(m(e.target)||m(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function i(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||l(e)||n?(v=null,"label"==e.target.tagName.toLowerCase()&&(v={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),v=null)}function r(e,t){var o;for(var i in f)(o=f[i])instanceof n&&("start"===e&&o.cancel(),o[e](t,p))}function a(e){if(!p){var t=+Date.now();h&&!d(e,h)&&t-h.endTime<1500||(p=s(e),r("start",e))}}function u(e){p&&d(e,p)&&(c(e,p),r("move",e))}function g(e){p&&d(e,p)&&(c(e,p),p.endTime=+Date.now(),"pointercancel"!==e.type&&r("end",e),h=p,p=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!E&&e.isHijackingClicks&&(document.addEventListener("click",i,!0),document.addEventListener("mouseup",o,!0),document.addEventListener("mousedown",o,!0),document.addEventListener("focus",o,!0),E=!0);t.element(document).on("mousedown touchstart pointerdown",a).on("mousemove touchmove pointermove",u).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",g).on("$$mdGestureReset",function(){h=p=null})}function s(e){var t=u(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function d(e,t){return e&&t&&e.type.charAt(0)===t.type}function l(e){return v&&v.x==e.x&&v.y==e.y}function c(e,t){var n=u(e),o=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function u(e){return e=e.originalEvent||e,e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function m(e){return!!e&&"-1"!=e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}o.$inject=["$$MdGestureHandler","$$rAF","$timeout"],a.$inject=["$mdGesture","$$MdGestureHandler"];var p,h,f={},g=!1,b=6,v=null,E=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",r).run(a),n.prototype={skipClickHijack:function(){return g=!0},setMaxClickDistance:function(e){b=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new o(e,t,n)}]}}(),function(){function n(e,n){this.$timeout=e,this.$mdUtil=n,this.bodyElement=t.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents()}n.$inject=["$timeout","$mdUtil"],t.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.initializeEvents=function(){var t="MSPointerEvent"in e?"MSPointerDown":"PointerEvent"in e?"pointerdown":null;this.bodyElement.on("keydown mousedown",this.onInputEvent.bind(this)),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.onBufferInputEvent.bind(this)),t&&this.bodyElement.on(t,this.onInputEvent.bind(this))},n.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(e){var n=t.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),function(){function e(){function e(e){function n(e){return d.optionsFactory=e.options,d.methods=(e.methods||[]).concat(a),l}function o(e,t){return s[e]=t,l}function i(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return d.presets[t]={methods:n.methods.concat(a),optionsFactory:n.options,argOption:n.argOption},l}function r(n,o){function i(e){return e=e||{},e._options&&(e=e._options),u.show(t.extend({},c,e))}function r(e){return u.destroy(e)}function a(t,n){var i={};return i[e]=m,o.invoke(t||function(){return n},{},i)}var l,c,u=n(),m={hide:u.hide,cancel:u.cancel,show:i,destroy:r};return l=d.methods||[],c=a(d.optionsFactory,{}),t.forEach(s,function(e,t){m[t]=e}),t.forEach(d.presets,function(e,n){function o(e){this._options=t.extend({},i,e)}var i=a(e.optionsFactory,{}),r=(e.methods||[]).concat(l);if(t.extend(i,{$type:n}),t.forEach(r,function(e){o.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var s="show"+n.charAt(0).toUpperCase()+n.slice(1);m[s]=function(e){var t=m[n](e);return m.show(t)}}m[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new o)[e.argOption](n):new o(n)}}),m}r.$inject=["$$interimElement","$injector"];var a=["onHide","onShow","onRemove"],s={},d={presets:{}},l={setDefaults:n,addPreset:i,addMethod:o,$get:r};return l.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),l}function o(e,o,i,r,a,s,d,l,c,u,m){return function(){function p(e){e=e||{};var t=new v(e||{}),n=e.multiple?o.resolve():o.all(y);e.multiple||(n=n.then(function(){var e=C.concat(M.map(E.cancel));return o.all(e)}));var i=n.then(function(){return t.show().catch(function(e){return e}).finally(function(){y.splice(y.indexOf(i),1),M.push(t)})});return y.push(i),t.deferred.promise.catch(function(e){return e instanceof Error&&m(e),e}),t.deferred.promise}function h(e,t){function i(n){var o=n.remove(e,!1,t||{}).catch(function(e){return e}).finally(function(){C.splice(C.indexOf(o),1)});return M.splice(M.indexOf(n),1),C.push(o),n.deferred.promise}return t=t||{},t.closeAll?o.all(M.slice().reverse().map(i)):t.closeTo!==n?o.all(M.slice(t.closeTo).map(i)):i(M[M.length-1])}function f(e,n){var i=M.pop();if(!i)return o.when(e);var r=i.remove(e,!0,n||{}).catch(function(e){return e}).finally(function(){C.splice(C.indexOf(r),1)});return C.push(r),i.deferred.promise.catch(t.noop)}function g(e){return function(){var t=arguments;return M.length?e.apply(E,t):y.length?y[0].finally(function(){return e.apply(E,t)}):o.when("No interim elements currently showing up.")}}function b(e){var n=e?null:M.shift(),i=t.element(e).length&&t.element(e)[0].parentNode;if(i){var r=M.filter(function(e){return e.options.element[0]===i});r.length&&(n=r[0],M.splice(M.indexOf(n),1))}return n?n.remove($,!1,{$destroy:!0}):o.when($)}function v(u){function m(){return o(function(e,t){function n(e){y.deferred.reject(e),t(e)}u.onCompiling&&u.onCompiling(u),h(u).then(function(t){C=f(t,u),u.cleanupElement=t.cleanup,M=v(C,u,t.controller).then(e,n)}).catch(n)})}function p(e,n,i){function r(e){y.deferred.resolve(e)}function a(e){y.deferred.reject(e)}return C?(u=t.extend(u||{},i||{}),u.cancelAutoHide&&u.cancelAutoHide(),u.element.triggerHandler("$mdInterimElementRemove"),!0===u.$destroy?$(u.element,u).then(function(){n&&a(e)||r(e)}):(o.when(M).finally(function(){$(u.element,u).then(function(){n?a(e):r(e)},a)}),y.deferred.promise)):o.when(!1)}function h(e){return(e.skipCompile?null:l.compile(e))||o(function(t){t({locals:{},link:function(){return e.element}})})}function f(e,n){t.extend(e.locals,n);var o=e.link(n.scope);return n.element=o,n.parent=g(o,n),n.themable&&c(o),o}function g(n,o){var i=o.parent;if(i=t.isFunction(i)?i(o.scope,n,o):t.isString(i)?t.element(e[0].querySelector(i)):t.element(i),!(i||{}).length){var r;return a[0]&&a[0].querySelector&&(r=a[0].querySelector(":not(svg) > body")),r||(r=a[0]),"#comment"==r.nodeName&&(r=e[0].body),t.element(r)}return i}function b(){var e,o=t.noop;u.hideDelay&&(e=r(E.hide,u.hideDelay),o=function(){r.cancel(e)}),u.cancelAutoHide=function(){o(),u.cancelAutoHide=n}}function v(e,n,i){var r=n.onShowing||t.noop,a=n.onComplete||t.noop;try{r(n.scope,e,n,i)}catch(e){return o.reject(e)}return o(function(t,r){try{o.when(n.onShow(n.scope,e,n,i)).then(function(){a(n.scope,e,n),b(),t(e)},r)}catch(e){r(e.message)}})}function $(e,n){var i=n.onRemoving||t.noop;return o(function(t,r){try{var a=o.when(n.onRemove(n.scope,e,n)||!0);i(e,a),n.$destroy?(t(e),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)},r)}catch(e){r(e.message)}})}var y,C,M=o.when(!0);return u=function(e){return e=e||{},e.template&&(e.template=d.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||i.$new(e.isolateScope),onShow:function(e,t,n){return s.enter(t,n.parent)},onRemove:function(e,t){return t&&s.leave(t)||o.when()}},e)}(u),y={options:u,deferred:o.defer(),show:m,remove:p}}var E,$=!1,y=[],C=[],M=[];return E={show:p,hide:g(h),cancel:g(f),destroy:b,$injector_:u}}}return o.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=o,e}t.module("material.core").provider("$$interimElement",e)}(),function(){!function(){function e(){var e=!!document.querySelector("[md-layouts-disabled]");w.enabled=!e}function n(){return w.enabled=!1,{restrict:"A",priority:"900"}}function o(e){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(o){return w.enabled?(o.addClass(e),function(t,o){n(function(){o.removeClass(e)},10,!1)}):t.noop}}}]}function i(e){function n(t,n,o){var i=a(n,e),r=o.$observe(o.$normalize(e),i);i(m(e,o,"")),t.$on("$destroy",function(){r()})}return["$mdUtil","$interpolate","$log",function(o,i,r){return f=o,g=i,b=r,{restrict:"A",compile:function(o,i){var r;return w.enabled&&(d(e,i,o,b),l(e,m(e,i,""),c(o,e,i)),r=n),r||t.noop}}}]}function r(e){function n(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(o,i,r){return f=o,g=i,b=r,{restrict:"A",compile:function(o,i){var r;return w.enabled&&(l(e,m(e,i,""),c(o,e,i)),n(null,o),r=n),r||t.noop}}}]}function a(e,n){var o;return function(i){var r=l(n,i||"");t.isDefined(r)&&(o&&e.removeClass(o),o=r?n+"-"+r.trim().replace(E,"-"):n,e.addClass(o))}}function s(e){var n=e.split("-");return["$log",function(o){return o.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),t.noop}]}function d(e,t,n,o){var i,r,a,s=n[0].nodeName.toLowerCase();switch(e.replace(v,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(r="<"+s+" "+e+"></"+s+">",a="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",i="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",o.warn(f.supplant(i,[r,a])))}}function l(e,n,o){if(!u(n)){switch(e.replace(v,"")){case"layout":p(n,y)||(n=y[0]);break;case"flex":p(n,$)||isNaN(n)&&(n="");break;case"flex-offset":case"flex-order":n&&!isNaN(+n)||(n="0");break;case"layout-align":var i=h(n);n=f.supplant("{main}-{cross}",i);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":case"layout-nowrap":n=""}void 0!=n&&(o||t.noop)(n)}return n?n.trim():""}function c(e,t,n){return function(e){u(e)||(n[n.$normalize(t)]=e)}}function u(e){return(e||"").indexOf(g.startSymbol())>-1}function m(e,t,n){var o=t.$normalize(e);return t[o]?t[o].trim().replace(E,"-"):n||null}function p(e,t,n){e=n&&e?e.replace(E,n):e;var o=!1;return e&&t.forEach(function(t){t=n?t.replace(E,n):t,o=o||t===e}),o}function h(e){var t,n={main:"start",cross:"stretch"};return e=e||"",0!==e.indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),t=e.toLowerCase().trim().replace(E,"-").split("-"),t.length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]),t.length>0&&(n.main=t[0]||n.main),t.length>1&&(n.cross=t[1]||n.cross),C.indexOf(n.main)<0&&(n.main="start"),M.indexOf(n.cross)<0&&(n.cross="stretch"),n}var f,g,b,v=/(-gt)?-(sm|md|lg|print)/g,E=/\s+/g,$=["grow","initial","auto","none","noshrink","nogrow"],y=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],M=["","start","center","end","stretch"],w={enabled:!0,breakpoints:[]};!function(a){function c(e){return e.replace(u,"").replace(m,function(e,t,n,o){return o?n.toUpperCase():n})}var u=/^((?:x|data)[\:\-_])/i,m=/([\:\-\_]+(.))/g,p=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],h=["layout","flex","flex-order","flex-offset","layout-align"],f=["show","hide","layout-padding","layout-margin"];t.forEach(p,function(e){t.forEach(h,function(t){var n=e?t+"-"+e:t;a.directive(c(n),i(n))}),t.forEach(f,function(t){var n=e?t+"-"+e:t;a.directive(c(n),r(n))})}),a.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:l,validateAttributeUsage:d,disableLayouts:function(e){w.enabled=!0!==e}}}).directive("mdLayoutCss",n).directive("ngCloak",o("ng-cloak")).directive("layoutWrap",r("layout-wrap")).directive("layoutNowrap",r("layout-nowrap")).directive("layoutNoWrap",r("layout-no-wrap")).directive("layoutFill",r("layout-fill")).directive("layoutLtMd",s("layout-lt-md")).directive("layoutLtLg",s("layout-lt-lg")).directive("flexLtMd",s("flex-lt-md")).directive("flexLtLg",s("flex-lt-lg")).directive("layoutAlignLtMd",s("layout-align-lt-md")).directive("layoutAlignLtLg",s("layout-align-lt-lg")).directive("flexOrderLtMd",s("flex-order-lt-md")).directive("flexOrderLtLg",s("flex-order-lt-lg")).directive("offsetLtMd",s("flex-offset-lt-md")).directive("offsetLtLg",s("flex-offset-lt-lg")).directive("hideLtMd",s("hide-lt-md")).directive("hideLtLg",s("hide-lt-lg")).directive("showLtMd",s("show-lt-md")).directive("showLtLg",s("show-lt-lg")).config(e)}(t.module("material.core.layout",["ng"]))}()}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],t.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),function(){t.module("material.core.meta",[]).provider("$$mdMeta",function(){function e(e){if(r[e])return!0;var n=document.getElementsByName(e)[0];return!!n&&(r[e]=t.element(n),!0)}function n(n,o){if(e(n),r[n])r[n].attr("content",o);else{var a=t.element('<meta name="'+n+'" content="'+o+'"/>');i.append(a),r[n]=a}return function(){r[n].attr("content",""),r[n].remove(),delete r[n]}}function o(t){if(!e(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return r[t].attr("content")}var i=t.element(document.head),r={},a={setMeta:n,getMeta:o};return t.extend({},a,{$get:function(){return a}})})}(),function(){function e(e,o){function i(e){return e&&""!==e}var r,a=[],s={};return r={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return a},get:function(e){if(!i(e))return null;var t,n,o;for(t=0,n=a.length;t<n;t++)if(o=a[t],o.$$mdHandle===e)return o;return null},register:function(e,n){function o(){var t=a.indexOf(e);-1!==t&&a.splice(t,1)}return n?(e.$$mdHandle=n,a.push(e),function(){var t=s[n];t&&(t.forEach(function(t){t.resolve(e)}),delete s[n])}(),o):t.noop},when:function(e){if(i(e)){var t=o.defer(),a=r.get(e);return a?t.resolve(a):(s[e]===n&&(s[e]=[]),s[e].push(t)),t.promise}return o.reject("Invalid `md-component-id` value.")}}}e.$inject=["$log","$q"],t.module("material.core").factory("$mdComponentRegistry",e)}(),function(){!function(){function e(e){function n(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(o,i,r){return r=t.extend(n(i),r),e.attach(o,i,r)}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdButtonInkRipple",e)}()}(),function(){!function(){function e(e){function n(n,o,i){return e.attach(n,o,t.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}return{attach:n}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdCheckboxInkRipple",e)}()}(),function(){!function(){function e(e){function n(n,o,i){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}return{attach:n}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdListInkRipple",e)}()}(),function(){function e(e,n){return{controller:t.noop,link:function(t,o,i){i.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,o):e.attach(t,o)}}}function n(){function e(){n=!0}var n=!1;return{disableInkRipple:e,$get:["$injector",function(e){function i(i,r,a){return n||r.controller("mdNoInk")?t.noop:e.instantiate(o,{$scope:i,$element:r,rippleOptions:a})}return{attach:i}}]}}function o(e,n,o,i,r,a,s){this.$window=i,this.$timeout=r,this.$mdUtil=a,this.$mdColorUtil=s,this.$scope=e,this.$element=n,this.options=o,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,a.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=t.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=t.bind(this,this.color),this.bindEvents()}function i(e,n){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function r(){return{controller:t.noop}}o.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],t.module("material.core").provider("$mdInkRipple",n).directive("mdInkRipple",e).directive("mdNoInk",r).directive("mdNoBar",r).directive("mdNoStretch",r);o.prototype.color=function(e){var n=this;return t.isDefined(e)&&(n._color=n._parseColor(e)),n._color||n._parseColor(n.inkRipple())||n._parseColor(function(){var e=n.options&&n.options.colorElement?n.options.colorElement:[],t=e.length?e[0]:n.$element[0];return t?n.$window.getComputedStyle(t).color:"rgb(0,0,0)"}())},o.prototype.calculateColor=function(){return this.color()},o.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},o.prototype.bindEvents=function(){this.$element.on("mousedown",t.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",t.bind(this,this.handleMouseup)),this.$element.on("mouseleave",t.bind(this,this.handleMouseup)),this.$element.on("touchmove",t.bind(this,this.handleTouchmove))},o.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)},o.prototype.handleMouseup=function(){i(this,this.clearRipples)},o.prototype.handleTouchmove=function(){i(this,this.deleteRipples)},o.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},o.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},o.prototype.createContainer=function(){var e=t.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},o.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},o.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&t.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},o.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},o.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var o=this,i=o.$mdColorUtil,r=t.element('<div class="md-ripple"></div>'),a=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),d=2*Math.max(Math.abs(a-e),e),l=2*Math.max(Math.abs(s-n),n),c=function(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}(this.options.fitRipple,d,l),u=this.calculateColor();r.css({left:e+"px",top:n+"px",background:"black",width:c+"px",height:c+"px",backgroundColor:i.rgbaToRgb(u),borderColor:i.rgbaToRgb(u)}),this.lastRipple=r,this.clearTimeout(),this.timeout=this.$timeout(function(){o.clearTimeout(),o.mousedown||o.fadeInComplete(r)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:u}),this.container.append(r),this.ripples.push(r),r.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){r.addClass("md-ripple-scaled md-ripple-active"),o.$timeout(function(){o.clearRipples()},450,!1)},!1)}},o.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},o.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},o.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){!function(){function e(e){function n(n,o,i){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}return{attach:n}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}()}(),function(){t.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 t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}function o(t,o){function i(e,t){return t=t||{},p[e]=a(e,t),h}function r(t,n){return a(t,e.extend({},p[t]||{},n))}function a(e,t){var n=A.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function d(t,n){if(E[t])return E[t];n=n||"default";var o="string"==typeof n?E[n]:n,i=new c(t);return o&&e.forEach(o.colors,function(t,n){i.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),E[t]=i,i}function c(t){function n(t){if((t=0===arguments.length||!!t)!==o.isDark){o.isDark=t,o.foregroundPalette=o.isDark?g:f,o.foregroundShadow=o.isDark?b:v;var n=o.isDark?T:w,i=o.isDark?w:T;return e.forEach(n,function(e,t){var n=o.colors[t],r=i[t];if(n)for(var a in n.hues)n.hues[a]===r[a]&&(n.hues[a]=e[a])}),o}}var o=this;o.name=t,o.colors={},o.dark=n,n(!1),C.forEach(function(t){var n=(o.isDark?T:w)[t];o[t+"Palette"]=function(i,r){var a=o.colors[t]={name:i,hues:e.extend({},n,r)};return Object.keys(a.hues).forEach(function(e){if(!n[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",o.name).replace("%3",i).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(e){if(-1==A.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",o.name).replace("%3",t).replace("%4",i).replace("%5",A.join(", ")))}),o},o[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+t+"Color() has been deprecated. Use $mdThemingProviderTheme."+t+"Palette() instead."),o[t+"Palette"].apply(o,e)}})}function u(t,o,i,r){function a(e){return e===n||""===e||c.THEMES[e]!==n}function s(e,t){function n(t){if(t){a(t)||r.warn("Attempted to use unregistered theme '"+t+"'. Register it with $mdThemingProvider.theme().");var n=e.data("$mdThemeName");n&&e.removeClass("md-"+n+"-theme"),e.addClass("md-"+t+"-theme"),e.data("$mdThemeName",t),i&&e.data("$mdThemeController",i)}}var i=t.controller("mdTheme")||e.data("$mdThemeController");if(n(function(){return i&&i.$mdTheme||("default"==y?"":y)}()),i)var s=$||i.$shouldWatch||o.parseAttributeBoolean(e.attr("md-theme-watch")),d=i.registerChanges(function(t){n(t),s?e.on("$destroy",d):d()})}var c=function e(o,i){i===n&&(i=o,o=n),o===n&&(o=t),e.inherit(i,i)};return Object.defineProperty(c,"THEMES",{get:function(){return e.extend({},E)}}),Object.defineProperty(c,"PALETTES",{get:function(){return e.extend({},p)}}),Object.defineProperty(c,"ALWAYS_WATCH",{get:function(){return $}}),c.inherit=s,c.registered=a,c.defaultTheme=function(){return y},c.generateTheme=function(e){l(E[e],e,k.nonce)},c.defineTheme=function(e,t){t=t||{};var n=d(e);return t.primary&&n.primaryPalette(t.primary),t.accent&&n.accentPalette(t.accent),t.warn&&n.warnPalette(t.warn),t.background&&n.backgroundPalette(t.background),t.dark&&n.dark(),this.generateTheme(e),i.resolve(e)},c.setBrowserColor=x,c}u.$inject=["$rootScope","$mdUtil","$q","$log"],p={};var h,E={},$=!1,y="default";e.extend(p,t);var M=function(e){var t=o.setMeta("theme-color",e),n=o.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}},x=function(t){t=e.isObject(t)?t:{};var n=t.theme||"default",o=t.hue||"800",i=p[t.palette]||p[E[n].colors[t.palette||"primary"].name],r=e.isObject(i[o])?i[o].hex:i[o];return M(r)};return h={definePalette:i,extendPalette:r,theme:d,configuration:function(){return e.extend({},k,{defaultTheme:y,alwaysWatchTheme:$,registeredStyles:[].concat(k.registeredStyles)})},disableTheming:function(t){k.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){k.registeredStyles.push(e)},setNonce:function(e){k.nonce=e},generateThemesOnDemand:function(e){k.generateOnDemand=e},setDefaultTheme:function(e){y=e},alwaysWatchTheme:function(e){$=e},enableBrowserColor:x,$get:u,_LIGHT_DEFAULT_HUES:w,_DARK_DEFAULT_HUES:T,_PALETTES:p,_THEMES:E,_parseRules:s,_rgba:m}}function i(t,n,o,i,r,a){return{priority:101,link:{pre:function(s,d,l){var c=[],u=n.startSymbol(),m=n.endSymbol(),p=l.mdTheme.trim(),h=p.substr(0,u.length)===u&&p.lastIndexOf(m)===p.length-m.length,f="::"===l.mdTheme.split(u).join("").split(m).join("").trim().substr(0,"::".length),g={registerChanges:function(t,n){return n&&(t=e.bind(n,t)),c.push(t),function(){var e=c.indexOf(t);e>-1&&c.splice(e,1)}},$setTheme:function(e){t.registered(e)||a.warn("attempted to use unregistered theme '"+e+"'"),g.$mdTheme=e;for(var n=c.length;n--;)c[n](e)},$shouldWatch:i.parseAttributeBoolean(d.attr("md-theme-watch"))||t.ALWAYS_WATCH||h&&!f};d.data("$mdThemeController",g);var b=function(){var e=n(l.mdTheme)(s);return o(e)(s)||e},v=function(t){if("string"==typeof t)return g.$setTheme(t);r.when(e.isFunction(t)?t():t).then(function(e){g.$setTheme(e)})};v(b());var E=s.$watch(b,function(e){e&&(v(e),g.$shouldWatch||E())})}}}}function r(){return k.disableTheming=!0,{restrict:"A",priority:"900"}}function a(e){return e}function s(t,n,o){c(t,n),o=o.replace(/THEME_NAME/g,t.name);var i=[],r=t.colors[n],a=new RegExp("\\.md-"+t.name+"-theme","g"),s=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),d=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,l=p[r.name];return o=o.replace(d,function(e,n,o,i,r){return"foreground"===n?"shadow"==o?t.foregroundShadow:t.foregroundPalette[o]||t.foregroundPalette[1]:(0!==o.indexOf("hue")&&"default"!==o||(o=t.colors[n].hues[o]),m((p[t.colors[n].name][o]||"")[r?"contrast":"value"],i))}),e.forEach(r.hues,function(e,n){var r=o.replace(s,function(t,n,o,i,r){return m(l[e]["color"===i?"value":"contrast"],r)});if("default"!==n&&(r=r.replace(a,".md-"+t.name+"-theme.md-"+n)),"default"==t.name){var d=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;r=r.replace(d,function(e,t,n){return e+", "+t+n})}i.push(r)}),i}function d(t,n){function o(t,n){var o=t.contrastDefaultColor,i=t.contrastLightColors||[],r=t.contrastStrongLightColors||[],a=t.contrastDarkColors||[];"string"==typeof i&&(i=i.split(" ")),"string"==typeof r&&(r=r.split(" ")),"string"==typeof a&&(a=a.split(" ")),delete t.contrastDefaultColor,delete t.contrastLightColors,delete t.contrastStrongLightColors,delete t.contrastDarkColors,e.forEach(t,function(n,s){if(!e.isObject(n)){var d=u(n);if(!d)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",t.name).replace("%3",s));t[s]={hex:t[s],value:d,contrast:function(){return"light"===o?a.indexOf(s)>-1?E:r.indexOf(s)>-1?y:$:i.indexOf(s)>-1?r.indexOf(s)>-1?y:$:E}()}}})}var i=document.head,r=i?i.firstElementChild:null,a=!k.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(a+=k.registeredStyles.join(""),r&&0!==a.length){e.forEach(p,o);var s=a.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"}),d=new RegExp("md-("+C.join("|")+")","g");C.forEach(function(e){x[e]=""}),s.forEach(function(e){for(var t,n=(e.match(d),0);t=C[n];n++)if(e.indexOf(".md-"+t)>-1)return x[t]+=e;for(n=0;t=C[n];n++)if(e.indexOf(t)>-1)return x[t]+=e;return x[M]+=e}),k.generateOnDemand||e.forEach(n.THEMES,function(e){h[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||l(e,e.name,k.nonce)})}}function l(e,t,n){var o=document.head,i=o?o.firstElementChild:null;h[t]||(C.forEach(function(t){for(var r=s(e,t,x[t]);r.length;){var a=r.shift();if(a){var d=document.createElement("style");d.setAttribute("md-theme-style",""),n&&d.setAttribute("nonce",n),d.appendChild(document.createTextNode(a)),o.insertBefore(d,i)}}}),h[e.name]=!0)}function c(e,t){if(!p[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(p).join(", ")))}function u(t){if(e.isArray(t)&&3==t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,o=t.substr(0,n),i=t.substr(n,n),r=t.substr(2*n);return 1===n&&(o+=o,i+=i,r+=r),[parseInt(o,16),parseInt(i,16),parseInt(r,16)]}}function m(t,n){return t?(4==t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}t.$inject=["$mdThemingProvider"],i.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],a.$inject=["$mdTheming"],o.$inject=["$mdColorPalette","$$mdMetaProvider"],d.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",i).directive("mdThemable",a).directive("mdThemesDisabled",r).provider("$mdTheming",o).config(t).run(d);var p,h={},f={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)"},g={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)"},b="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",E=u("rgba(0,0,0,0.87)"),$=u("rgba(255,255,255,0.87)"),y=u("rgb(255,255,255)"),C=["primary","accent","warn","background"],M="primary",w={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},T={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};C.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};w[e]||(w[e]=t),T[e]||(T[e]=t)});var A=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],k={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},x={}}(e.angular)}(),function(){function n(n,o,i,r,a){var s;return s={translate3d:function(e,t,n,o){function i(n){return a(e,{to:n||t,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}return a(e,{from:t,to:n,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return i})},waitTransitionEnd:function(t,n){var a=3e3;return o(function(o,s){function d(e){e&&e.target!==t[0]||(e&&i.cancel(l),t.off(r.CSS.TRANSITIONEND,d),o())}n=n||{},function(n){return n=n||e.getComputedStyle(t[0]),"0s"==n.transitionDuration||!n.transition&&!n.transitionProperty}(n.cachedTransitionStyles)&&(a=0);var l=i(d,n.timeout||a);t.on(r.CSS.TRANSITIONEND,d)})},calculateTransformValues:function(e,t){var n=t.element,o=t.bounds;if(n||o){var i=n?s.clientRect(n)||function(){var t=e?e.parent():null,n=t?t.parent():null;return n?s.clientRect(n):null}():s.copyRect(o),r=s.copyRect(e[0].getBoundingClientRect()),a=s.centerPointFor(r),d=s.centerPointFor(i);return{centerX:d.x-a.x,centerY:d.y-a.y,scaleX:Math.round(100*Math.min(.5,i.width/r.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/r.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,o){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(s.calculateTransformValues(e,o))},calculateSlideToOrigin:function(e,o){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(s.calculateTransformValues(e,o))},toCss:function(e){function n(e,n,i){t.forEach(n.split(" "),function(e){o[e]=i})}var o={};return t.forEach(e,function(e,i){if(!t.isUndefined(e))if("left top right bottom width height x y min-width min-height max-width max-height".indexOf(i)>=0)o[i]=e+"px";else switch(i){case"transition":n(i,r.CSS.TRANSITION,e);break;case"transform":n(i,r.CSS.TRANSFORM,e);break;case"transformOrigin":n(i,r.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o},toTransformCss:function(e,n,o){var i={};return t.forEach(r.CSS.TRANSFORM.split(" "),function(t){i[t]=e}),n&&(o=o||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=o),i},copyRect:function(e,n){return e?(n=n||{},t.forEach("left top right bottom width height".split(" "),function(t){n[t]=Math.round(e[t])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var n=t.element(e)[0].getBoundingClientRect();return function(e){return e&&e.width>0&&e.height>0}(n)?s.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}t.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(e,t,o,i){return function(r){return n(r,e,t,o,i)}}])}(),function(){t.version.minor>=4?t.module("material.core.animate",[]):function(){function e(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var n=t.forEach,o=t.isDefined(document.documentElement.style.WebkitAppearance),i=o?"-webkit-":"",r=(o?"webkitTransitionEnd ":"")+"transitionend",a=(o?"webkitAnimationEnd ":"")+"animationend",s=["$document",function(e){return function(){return e[0].body.clientWidth+1}}],d=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,o){function i(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=o(),this._state=0}return i.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:t.noop,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(n(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},i.all=function(e,t){function o(n){r=r&&n,++i===e.length&&t(r)}var i=0,r=!0;n(e,function(e){e.done(o)})},i}];t.module("material.core.animate",[]).factory("$$forceReflow",s).factory("$$AnimateRunner",l).factory("$$rAFMutex",d).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,s,d,l,c,u,m){function p(o,s){var l=[],c=y(o),p=c&&m.enabled(),g=!1,M=!1;p&&(s.transitionStyle&&l.push([i+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([i+"animation",s.keyframeStyle]),s.delay&&l.push([i+"transition-delay",s.delay+"s"]),s.duration&&l.push([i+"transition-duration",s.duration+"s"]),g=s.keyframeStyle||s.to&&(s.duration>0||s.transitionStyle),M=!!s.addClass||!!s.removeClass,C(o,!0));var w=p&&(g||M);E(o,s);var T,A,k=!1;return{close:t.close,start:function(){function t(){if(!k)return k=!0,T&&A&&o.off(T,A),h(o,s),v(o,s),n(l,function(t){c.style[e(t[0])]=""}),m.complete(!0),m}var m=new d;return b(function(){if(C(o,!1),!w)return t();n(l,function(t){var n=t[0],o=t[1];c.style[e(n)]=o}),h(o,s);var d=f(o);if(0===d.duration)return t();var m=[];s.easing&&(d.transitionDuration&&m.push([i+"transition-timing-function",s.easing]),d.animationDuration&&m.push([i+"animation-timing-function",s.easing])),s.delay&&d.animationDelay&&m.push([i+"animation-delay",s.delay+"s"]),s.duration&&d.animationDuration&&m.push([i+"animation-duration",s.duration+"s"]),n(m,function(t){var n=t[0],o=t[1];c.style[e(n)]=o,l.push(t)});var p=d.delay,g=1e3*p,b=d.duration,v=1e3*b,E=Date.now();T=[],d.transitionDuration&&T.push(r),d.animationDuration&&T.push(a),T=T.join(" "),A=function(e){e.stopPropagation();var n=e.originalEvent||e,o=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(o-E,0)>=g&&i>=b&&t()},o.on(T,A),$(o,s),u(t,g+1.5*v,!1)}),m}}}function h(e,t){t.addClass&&(c.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(c.removeClass(e,t.removeClass),t.removeClass=null)}function f(e){function n(e){return o?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var i=y(e),r=t.getComputedStyle(i),a=g(r[n("transitionDuration")]),s=g(r[n("animationDuration")]),d=g(r[n("transitionDelay")]),l=g(r[n("animationDelay")]);return s*=parseInt(r[n("animationIterationCount")],10)||1,{duration:Math.max(s,a),delay:Math.max(l,d),animationDuration:s,transitionDuration:a,animationDelay:l,transitionDelay:d}}function g(e){var t=0,o=(e||"").split(/\s*,\s*/);return n(o,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function b(e){M&&M(),w.push(e),M=s(function(){M=null;for(var e=l(),t=0;t<w.length;t++)w[t](e);w.length=0})}function v(e,t){E(e,t),$(e,t)}function E(e,t){t.from&&(e.css(t.from),t.from=null)}function $(e,t){t.to&&(e.css(t.to),t.to=null)}function y(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function C(t,n){var o=y(t),r=e(i+"transition-delay");o.style[r]=n?"-9999s":""}var M,w=[];return p}])}()}(),function(){t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,o,i,r,a,s,d){function l(l,u,m){function p(){var e=parseInt(h.height,10)+Math.abs(parseInt(h.top,10));u.css("height",e+"px")}o.pin&&o.pin(u,i);var h;s(function(){if(h=r.getComputedStyle(d[0].body),"fixed"===h.position){var o=n.debounce(function(){h=r.getComputedStyle(d[0].body),p()},60,null,!1);p(),t.element(r).on("resize",o),l.$on("$destroy",function(){t.element(r).off("resize",o)})}var i=u.parent();if(i.length){"BODY"===i[0].nodeName&&u.css("position","fixed");"static"===r.getComputedStyle(i[0]).position&&a.warn(c),e.inherit(u,i)}})}var c="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:l}}])}(),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e,n,r,a,s,d,l,c){function u(o,i,l,u){if(i=r.extractElementByName(i,"md-bottom-sheet"),i.attr("tabindex","-1"),i.hasClass("ng-cloak")){c.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.",i[0])}l.disableBackdrop||(h=r.createBackdrop(o,"md-bottom-sheet-backdrop md-opaque"),h[0].tabIndex=-1,l.clickOutsideToClose&&h.on("click",function(){r.nextTick(s.cancel,!0)}),a.inherit(h,l.parent),e.enter(h,l.parent,null));var m=new p(i,l.parent);return l.bottomSheet=m,a.inherit(m.element,l.parent),l.disableParentScroll&&(l.restoreScroll=r.disableScrollAround(m.element,l.parent)),e.enter(m.element,l.parent,h).then(function(){var e=r.findFocusTarget(i)||t.element(i[0].querySelector("button")||i[0].querySelector("a")||i[0].querySelector(r.prefixer("ng-click",!0)))||h;l.escapeToClose&&(l.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&r.nextTick(s.cancel,!0)},d.on("keyup",l.rootElementKeyupCallback),e&&e.focus())})}function m(t,n,o){var i=o.bottomSheet;return o.disableBackdrop||e.leave(h),e.leave(i.element).then(function(){o.disableParentScroll&&(o.restoreScroll(),delete o.restoreScroll),i.cleanup()})}function p(e,t){function a(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function d(t){var o=t.pointer.distanceY;o<5&&(o=Math.max(-i,o/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(i+o)+"px,0)")}function c(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>o)){var i=e.prop("offsetHeight")-t.pointer.distanceY,a=Math.min(i/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,a+"ms"),r.nextTick(s.cancel,!0)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}var u=l.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",a).on("$md.drag",d).on("$md.dragend",c),{element:e,cleanup:function(){u(),t.off("$md.dragstart",a),t.off("$md.drag",d),t.off("$md.dragend",c)}}}var h;return{themable:!0,onShow:u,onRemove:m,disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var o=.5,i=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n})}e.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n)}(),function(){function e(e){return{restrict:"E",link:function(t,n){e(n)}}}function n(e,n,o,i){function r(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}function a(e,t){return r(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'}function s(a,s,d){n(s),e.attach(a,s),o.expectWithoutText(s,"aria-label"),r(d)&&t.isDefined(d.ngDisabled)&&a.$watch(d.ngDisabled,function(e){s.attr("tabindex",e?-1:0)}),s.on("click",function(e){!0===d.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),s.hasClass("md-no-focus")||(s.on("focus",function(){i.isUserInvoked()&&"keyboard"!==i.getLastInteractionType()||s.addClass("md-focused")}),s.on("blur",function(){s.removeClass("md-focused")}))}return{restrict:"EA",replace:!0,transclude:!0,template:a,link:s}}n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],t.module("material.components.button",["material.core"]).directive("mdButton",n).directive("a",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n,o){n.addClass("_md"),e(n)}}}e.$inject=["$mdTheming"],t.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){t.module("material.components.chips",["material.core","material.components.autocomplete"])}(),function(){function e(e,n,o,i,r,a){function s(s,d){function l(s,d,l,c){function u(e){var t=e.which||e.keyCode;t!==o.KEY_CODE.SPACE&&t!==o.KEY_CODE.ENTER||(e.preventDefault(),d.addClass("md-focused"),m(e))}function m(e){d[0].hasAttribute("disabled")||s.skipToggle||s.$apply(function(){var t=l.ngChecked&&l.ngClick?l.checked:!b.$viewValue;b.$setViewValue(t,e&&e.type),b.$render()})}function p(){d.toggleClass("md-checked",!!b.$viewValue&&!f)}function h(e){f=!1!==e,f&&d.attr("aria-checked","mixed"),d.toggleClass("md-indeterminate",f)}var f,g=c[0],b=c[1]||r.fakeNgModel(),v=c[2];if(g){var E=g.isErrorGetter||function(){return b.$invalid&&(b.$touched||v&&v.$submitted)};g.input=d,s.$watch(E,g.setInvalid)}i(d),d.children().on("focus",function(){d.focus()}),r.parseAttributeBoolean(l.mdIndeterminate)&&(h(),s.$watch(l.mdIndeterminate,h)),l.ngChecked&&s.$watch(s.$eval.bind(s,l.ngChecked),function(e){b.$setViewValue(e),b.$render()}),function(e,t,n){l[e]&&s.$watch(l[e],function(e){n[e]&&d.attr(t,n[e])})}("ngDisabled","tabindex",{true:"-1",false:l.tabindex}),n.expectWithText(d,"aria-label"),e.link.pre(s,{on:t.noop,0:{}},l,[b]),d.on("click",m).on("keypress",u).on("focus",function(){"keyboard"===a.getLastInteractionType()&&d.addClass("md-focused")}).on("blur",function(){d.removeClass("md-focused")}),b.$render=p}return d.$set("tabindex",d.tabindex||"0"),d.$set("type","checkbox"),d.$set("role",d.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:l}}return e=e[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:o.BEFORE_NG_ARIA,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:s}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),function(){!function(){function e(e,n,o){function r(e,t){try{t&&e.css(d(t))}catch(e){o.error(e.message)}}function a(e){return s(c(e))}function s(t,o){o=o||!1;var i=e.PALETTES[t.palette][t.hue];return i=o?i.contrast:i.value,n.supplant("rgba({0}, {1}, {2}, {3})",[i[0],i[1],i[2],i[3]||t.opacity])}function d(e){var n={},o=e.hasOwnProperty("color");return t.forEach(e,function(e,t){var i=c(e),r=t.indexOf("background")>-1;n[t]=s(i),r&&!o&&(n.color=s(i,!0))}),n}function l(n){return t.isDefined(e.THEMES[n.split("-")[0]])}function c(n){var o=n.split("-"),i=t.isDefined(e.THEMES[o[0]]),r=i?o.splice(0,1)[0]:e.defaultTheme();return{theme:r,palette:u(o,r),hue:m(o,r),opacity:o[2]||1}}function u(t,o){var r=t.length>1&&-1!==i.indexOf(t[1]),a=t[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(r&&(a=t[0]+"-"+t.splice(1,1)),-1===i.indexOf(a)){var s=e.THEMES[o].colors[a];if(!s)throw new Error(n.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:a}));a=s.name}return a}function m(t,o){var i=e.THEMES[o].colors;if("hue"===t[1]){var r=parseInt(t.splice(2,1)[0],10);if(r<1||r>3)throw new Error(n.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:r}));if(t[1]="hue-"+r,!(t[0]in i))throw new Error(n.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(i).join(", "),usedTheme:t[0]}));return i[t[0]].hues[t[1]]}return t[1]||i[t[0]in i?t[0]:"primary"].hues.default}return i=i||Object.keys(e.PALETTES),{applyThemeColors:r,getThemeColor:a,hasTheme:l}}function n(e,n,i,r){return{restrict:"A",require:["^?mdTheme"],compile:function(a,s){var d=function(){var e=s.mdColors,i=e.indexOf("::")>-1,r=!!i||o.test(s.mdColors);s.mdColors=e.replace("::","");var a=t.isDefined(s.mdColorsWatch);return!i&&!r&&(!a||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,o,a,s){var l=s[0],c={},u=function(t){"string"!=typeof t&&(t=""),a.mdColors||(a.mdColors="{}");var o=r(a.mdColors)(n);return l&&Object.keys(o).forEach(function(n){var i=o[n];e.hasTheme(i)||(o[n]=(t||l.$mdTheme)+"-"+i)}),m(o),o},m=function(e){if(!t.equals(e,c)){var n=Object.keys(c);c.background&&!n.color&&n.push("color"),n.forEach(function(e){o.css(e,"")})}c=e},p=t.noop;l&&(p=l.registerChanges(function(t){e.applyThemeColors(o,u(t))})),n.$on("$destroy",function(){p()});try{d?n.$watch(u,t.bind(this,e.applyThemeColors,o),!0):e.applyThemeColors(o,u())}catch(e){i.error(e.message)}}}}}n.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var o=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;t.module("material.components.colors",["material.core"]).directive("mdColors",n).service("$mdColors",e)}()}(),function(){function e(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,o){o.addClass("_md"),e(o),t.$broadcast("$mdContentLoaded",o),n(o[0])}}}function n(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&&(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&&(e.scrollTop-=1)))})}e.$inject=["$mdTheming"],t.module("material.components.content",["material.core"]).directive("mdContent",e)}(),function(){t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){function e(e,n,o){return{restrict:"E",link:function(i,r){r.addClass("_md"),n(r),e(function(){function e(){r.toggleClass("md-content-overflow",a.scrollHeight>a.clientHeight)}var n,a=r[0].querySelector("md-dialog-content");a&&(n=a.getElementsByTagName("img"),e(),t.element(n).on("load",e)),i.$on("$destroy",function(){o.destroy(r)})})}}}function o(e){function o(){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" 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}}" ng-required="dialog.required">',"    </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 md-cancel-button">',"      {{ dialog.cancel }}","    </md-button>",'    <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'"               ng-disabled="dialog.required && !dialog.result">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:i,controllerAs:"dialog",bindToController:!0}}function i(e,t){this.$onInit=function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!n||this.result)},this.abort=function(){e.cancel()},this.keypress=function(n){n.keyCode===t.KEY_CODE.ENTER&&e.hide(this.result)}}}function r(e,o,i,r,d,l,c,u,m,p,h,f,g){function b(e){e.defaultTheme=h.defaultTheme(),y(e)}function v(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",r=o.textContent||n.textContent||o.content||n.content||"";if(i&&!p.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&r)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=r}}function E(e,n,o,r){function a(){n[0].querySelector(".md-actions")&&m.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.")}function s(){if(o.focusOnOpen){(i.findFocusTarget(n)||function(){return n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")}()||d).focus()}}t.element(l[0].body).addClass("md-dialog-is-showing");var d=n.find("md-dialog");if(d.hasClass("ng-cloak")){m.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",n[0])}return C(o),T(d,o),w(e,n,o),M(n,o),x(n,o).then(function(){A(n,o),a(),s()})}function $(e,n,o){function i(){t.element(l[0].body).removeClass("md-dialog-is-showing"),o.contentElement&&o.reverseContainerStretch(),o.cleanupElement(),o.$destroy||"keyboard"!==o.originInteraction||o.origin.focus()}return o.deactivateListeners(),o.unlockScreenReader(),o.hideBackdrop(o.$destroy),a&&a.parentNode&&a.parentNode.removeChild(a),s&&s.parentNode&&s.parentNode.removeChild(s),o.$destroy?i():function(){return _(n,o)}().then(i)}function y(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var o=n&&n.controller("mdTheme");if(o){e.themeWatch=o.$shouldWatch;var i=e.theme||o.$mdTheme;i&&(e.scope.theme=i);var r=o.registerChanges(function(t){e.scope.theme=t,e.themeWatch||r()})}}function C(e){function o(e,o){var i=t.element(e||{});if(i&&i.length){var r={top:0,left:0,height:0,width:0},a=t.isFunction(i[0].getBoundingClientRect);return t.extend(o||{},{element:a?i:n,bounds:a?i[0].getBoundingClientRect():t.extend({},r,i[0]),focus:t.bind(i,i.focus)})}}function i(e,n){return t.isString(e)&&(e=l[0].querySelector(e)),t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=i(e.parent,u),e.closeTo=o(i(e.closeTo)),e.openFrom=o(i(e.openFrom)),e.targetEvent&&(e.origin=o(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType())}function M(n,o){var a=t.element(c),s=i.debounce(function(){k(n,o)},60),d=[],l=function(){var t="alert"==o.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(o.escapeToClose){var u=o.parent,m=function(e){e.keyCode===r.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),l())};n.on("keydown",m),u.on("keydown",m),d.push(function(){n.off("keydown",m),u.off("keydown",m)})}if(a.on("resize",s),d.push(function(){a.off("resize",s)}),o.clickOutsideToClose){var p,h=n,f=function(e){p=e.target},g=function(e){p===h[0]&&e.target===h[0]&&(e.stopPropagation(),e.preventDefault(),l())};h.on("mousedown",f),h.on("mouseup",g),d.push(function(){h.off("mousedown",f),h.off("mouseup",g)})}o.deactivateListeners=function(){d.forEach(function(e){e()}),o.deactivateListeners=null}}function w(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),d.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():d.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function T(e,t){var n="alert"===t.$type?"alertdialog":"dialog",r=e.find("md-dialog-content"),d=e.attr("id"),l="dialogContent_"+(d||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===r.length&&(r=e,d&&(l=d)),r.attr("id",l),e.attr("aria-describedby",l),t.ariaLabel?o.expect(e,"aria-label",t.ariaLabel):o.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=r.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),a=document.createElement("div"),a.classList.add("md-dialog-focus-trap"),a.tabIndex=0,s=a.cloneNode(!1);var c=function(){e.focus()};a.addEventListener("focus",c),s.addEventListener("focus",c),e[0].parentNode.insertBefore(a,e[0]),e.after(s)}function A(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,i=0;i<t.length;i++)e===t[i]||S(t[i],["SCRIPT","STYLE"])||t[i].hasAttribute("aria-live")||t[i].setAttribute("aria-hidden",o);n(e=e.parentNode)}}var o=!0;n(e[0]),t.unlockScreenReader=function(){o=!1,n(e[0]),t.unlockScreenReader=null}}function k(e,t){var n="fixed"==c.getComputedStyle(l[0].body).position,o=t.backdrop?c.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(l[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,r={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){e.css(r)}}function x(e,t){t.parent.append(e),t.reverseContainerStretch=k(e,t);var n=e.find("md-dialog"),o=i.dom.animator,r=o.calculateZoomToOrigin,a={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},s=o.toTransformCss(r(n,t.openFrom||t.origin)),d=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,s,d,a).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(a={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},s=d,d=o.toTransformCss(r(n,t.closeTo)),o.translate3d(n,s,d,a)):e(d=o.toTransformCss(r(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([a.transitionOutClass,a.transitionInClass].join(" ")),o.translate3d(n,d,o.toTransformCss(""),{})},!0})}function _(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}function S(e,t){if(-1!==t.indexOf(e.nodeName))return!0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:b,onShow:E,onShowing:v,onRemove:$,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n=f.startSymbol(),o=f.endSymbol();return'<div class="md-dialog-container" tabindex="-1" md-theme="'+n+(t.themeWatch?"":"::")+"theme"+o+'">'+function(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?"<md-dialog>"+(e||"")+"</md-dialog>":e||""}(e)+"</div>"}}}i.$inject=["$mdDialog","$mdConstant"],r.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var a,s;return e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:r}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:o}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:o}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:o})}e.$inject=["$$rAF","$mdTheming","$mdDialog"],o.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",o)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],t.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){!function(){function e(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,n){var o=t.children();e.prefixer().hasAttribute(o,"ng-repeat")?o.addClass("md-fab-action-item"):o.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}()}(),function(){!function(){function e(e,n,o,i,r,a){function s(){S.direction=S.direction||"down",S.isOpen=S.isOpen||!1,c(),n.addClass("md-animations-waiting")}function d(){var o=["click","focusin","focusout"];t.forEach(o,function(e){n.on(e,l)}),e.$on("$destroy",function(){t.forEach(o,function(e){n.off(e,l)}),h()})}function l(e){"click"==e.type&&k(e),"focusout"!=e.type||D||(D=a(function(){S.close()},100,!1)),"focusin"==e.type&&D&&(a.cancel(D),D=null)}function c(){S.currentActionIndex=-1}function u(){e.$watch("vm.direction",function(e,t){o.removeClass(n,"md-"+t),o.addClass(n,"md-"+e),c()});var t,i;e.$watch("vm.isOpen",function(e){c(),t&&i||(t=x(),i=_()),e?p():h();var r=e?"md-is-open":"",a=e?"":"md-is-open";t.attr("aria-haspopup",!0),t.attr("aria-expanded",e),i.attr("aria-hidden",!e),o.setClass(n,r,a)})}function m(){n[0].scrollHeight>0?o.addClass(n,"_md-animations-ready").then(function(){n.removeClass("md-animations-waiting")}):N<10&&(a(m,100),N+=1)}function p(){n.on("keydown",g),i.nextTick(function(){t.element(document).on("click touchend",f)})}function h(){n.off("keydown",g),t.element(document).off("click touchend",f)}function f(e){if(e.target){var t=i.getClosest(e.target,"md-fab-trigger"),n=i.getClosest(e.target,"md-fab-actions");t||n||S.close()}}function g(e){switch(e.which){case r.KEY_CODE.ESCAPE:return S.close(),e.preventDefault(),!1;case r.KEY_CODE.LEFT_ARROW:return y(e),!1;case r.KEY_CODE.UP_ARROW:return C(e),!1;case r.KEY_CODE.RIGHT_ARROW:return M(e),!1;case r.KEY_CODE.DOWN_ARROW:return w(e),!1}}function b(e){E(e,-1)}function v(e){E(e,1)}function E(e,n){var o=$();S.currentActionIndex=S.currentActionIndex+n,S.currentActionIndex=Math.min(o.length-1,S.currentActionIndex),S.currentActionIndex=Math.max(0,S.currentActionIndex);var i=t.element(o[S.currentActionIndex]).children()[0];t.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function $(){var e=_()[0].querySelectorAll(".md-fab-action-item");return t.forEach(e,function(e){t.element(t.element(e).children()[0]).attr("tabindex",-1)}),e}function y(e){"left"===S.direction?v(e):b(e)}function C(e){"down"===S.direction?b(e):v(e)}function M(e){"left"===S.direction?b(e):v(e)}function w(e){"up"===S.direction?b(e):v(e)}function T(e){return i.getClosest(e,"md-fab-trigger")}function A(e){return i.getClosest(e,"md-fab-actions")}function k(e){T(e.target)&&S.toggle(),A(e.target)&&S.close()}function x(){return n.find("md-fab-trigger")}function _(){return n.find("md-fab-actions")}var S=this,N=0;S.open=function(){e.$evalAsync("vm.isOpen = true")},S.close=function(){e.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},S.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},S.$onInit=function(){s(),d(),u(),m()},1===t.version.major&&t.version.minor<=4&&this.$onInit();var D}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],t.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}()}(),function(){!function(){function n(){function e(e,t){t.prepend('<div class="_md-css-variables"></div>')}return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:e}}function o(n){function o(e){n(e,r,!1)}function i(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var o=n[0],i=n.controller("mdFabSpeedDial"),r=o.querySelectorAll(".md-fab-action-item"),a=o.querySelector("md-fab-trigger"),s=o.querySelector("._md-css-variables"),d=parseInt(e.getComputedStyle(s).zIndex);t.forEach(r,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=r.length-t+d}),a.style.zIndex=d+r.length+1,i.isOpen||t.forEach(r,function(e,t){var n,o,r=e.style,s=(a.clientHeight-e.clientHeight)/2,d=(a.clientWidth-e.clientWidth)/2;switch(i.direction){case"up":n=e.scrollHeight*(t+1)+s,o="Y";break;case"down":n=-(e.scrollHeight*(t+1)+s),o="Y";break;case"left":n=e.scrollWidth*(t+1)+d,o="X";break;case"right":n=-(e.scrollWidth*(t+1)+d),o="X"}var l="translate"+o+"("+n+"px)";r.transform=r.webkitTransform=l})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(i(e),o(n)):n()},removeClass:function(e,t,n){i(e),o(n)}}}function i(n){function o(e){n(e,r,!1)}function i(n){var o=n[0],i=n.controller("mdFabSpeedDial"),r=o.querySelectorAll(".md-fab-action-item"),s=o.querySelector("._md-css-variables"),d=parseInt(e.getComputedStyle(s).zIndex);t.forEach(r,function(e,t){var n=e.style,o=t*a;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?o:r.length-o)+"ms",n.zIndex=r.length-t+d})}var a=65;return{addClass:function(e,t,n){i(e),o(n)},removeClass:function(e,t,n){i(e),o(n)}}}o.$inject=["$timeout"],i.$inject=["$timeout"];var r=300;t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",n).animation(".md-fling",o).animation(".md-scale",i).service("mdFabSpeedDialFlingAnimation",o).service("mdFabSpeedDialScaleAnimation",i)}()}(),function(){!function(){function n(){function e(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}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:e}}function o(){function n(n,o,i){if(o){var r=n[0],a=n.controller("mdFabToolbar"),s=r.querySelector(".md-fab-toolbar-background"),d=r.querySelector("md-fab-trigger button"),l=r.querySelector("md-toolbar"),c=r.querySelector("md-fab-trigger button md-icon"),u=n.find("md-fab-actions").children();if(d&&s){var m=e.getComputedStyle(d).getPropertyValue("background-color"),p=r.offsetWidth,h=(r.offsetHeight,p/d.offsetWidth*2);s.style.backgroundColor=m,s.style.borderRadius=p+"px",a.isOpen?(l.style.pointerEvents="inherit",s.style.width=d.offsetWidth+"px",s.style.height=d.offsetHeight+"px",s.style.transform="scale("+h+")",s.style.transitionDelay="0ms",c&&(c.style.transitionDelay=".3s"),t.forEach(u,function(e,t){e.style.transitionDelay=25*(u.length-t)+"ms"})):(l.style.pointerEvents="none",s.style.transform="scale(1)",s.style.top="0",n.hasClass("md-right")&&(s.style.left="0",s.style.right=null),n.hasClass("md-left")&&(s.style.right="0",s.style.left=null),s.style.transitionDelay="200ms",c&&(c.style.transitionDelay="0ms"),t.forEach(u,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,o){n(e,t,o),o()},removeClass:function(e,t,o){n(e,t,o),o()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",n).animation(".md-fab-toolbar",o).service("mdFabToolbarAnimation",o)}()}(),function(){t.module("material.components.icon",["material.core"])}(),function(){function e(e,o,i,r){function a(n,a,s,d){function l(){d.layoutDelegate=t.noop,M();for(var e in o.MEDIA)r.getQuery(o.MEDIA[e]).removeListener(C)}function c(e){null==e?d.invalidateLayout():r(e)&&d.invalidateLayout()}function u(e){var o=f(),r={tileSpans:g(o),colCount:b(),rowMode:$(),rowHeight:E(),gutter:v()};if(e||!t.equals(r,w)){var s=i(r.colCount,r.tileSpans,o).map(function(e,n){return{grid:{element:a,style:h(r.colCount,n,r.gutter,r.rowMode,r.rowHeight)},tiles:e.map(function(e,i){return{element:t.element(o[i]),style:p(e.position,e.spans,r.colCount,n,r.gutter,r.rowMode,r.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),w=r}}function m(e){return T+e+A}function p(e,t,n,o,i,r,a){var s=1/n*100,d=(n-1)/n,l=k({share:s,gutterShare:d,gutter:i}),c="rtl"!=document.dir&&"rtl"!=document.body.dir,u=c?{left:x({unit:l,offset:e.col,gutter:i}),width:_({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:x({unit:l,offset:e.col,gutter:i}),width:_({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(r){case"fixed":u.top=x({unit:a,offset:e.row,gutter:i}),u.height=_({unit:a,span:t.row,gutter:i});break;case"ratio":var m=s/a,p=k({share:m,gutterShare:d,gutter:i});u.paddingTop=_({unit:p,span:t.row,gutter:i}),u.marginTop=x({unit:p,offset:e.row,gutter:i});break;case"fit":var h=(o-1)/o,m=1/o*100,p=k({share:m,gutterShare:h,gutter:i});u.top=x({unit:p,offset:e.row,gutter:i}),u.height=_({unit:p,span:t.row,gutter:i})}return u}function h(e,t,n,o,i){var r={};switch(o){case"fixed":r.height=_({unit:i,span:t,gutter:n}),r.paddingBottom="";break;case"ratio":var a=1===e?0:(e-1)/e,s=1/e*100,d=s*(1/i),l=k({share:d,gutterShare:a,gutter:n});r.height="",r.paddingBottom=_({unit:l,span:t,gutter:n})}return r}function f(){return[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed})}function g(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(r.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(r.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function b(){var e=parseInt(r.getResponsiveAttribute(s,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}function v(){return y(r.getResponsiveAttribute(s,"md-gutter")||1)}function E(){var e=r.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch($()){case"fixed":return y(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function $(){var e=r.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function y(e){return/\D$/.test(e)?e:e+"px"}a.addClass("_md"),a.attr("role","list"),d.layoutDelegate=u;var C=t.bind(d,d.invalidateLayout),M=function(){for(var e in o.MEDIA)r(e),r.getQuery(o.MEDIA[e]).addListener(C);return r.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,c)}();n.$on("$destroy",l);var w,T=e.startSymbol(),A=e.endSymbol(),k=e(m("share")+"% - ("+m("gutter")+" * "+m("gutterShare")+")"),x=e("calc(("+m("unit")+" + "+m("gutter")+") * "+m("offset")+")"),_=e("calc(("+m("unit")+") * "+m("span")+" + ("+m("span")+" - 1) * "+m("gutter")+")")}return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:a}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function o(e){function n(t,n){var o,a,s,d,l,c;return d=e.time(function(){a=i(t,n)}),o={layoutInfo:function(){return a},map:function(t){return l=e.time(function(){var e=o.layoutInfo();s=t(e.positioning,e.rowCount)}),o},reflow:function(t){return c=e.time(function(){(t||r)(s.grid,s.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:d,mapTime:l,reflowTime:c,totalTime:d+l+c}}}}function o(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function i(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var l=0,c=0;c-l<t.col;)a>=e?o():(l=d.indexOf(0,a),-1!==l&&-1!==(c=r(l+1))?a=c+1:(l=c=0,o()));return i(l,t.col,t.row),a=l+t.col,{col:l,row:s}}function o(){a=0,s++,i(0,e,-1)}function i(e,t,n){for(var o=e;o<e+t;o++)d[o]=Math.max(d[o]+n,0)}function r(e){var t;for(t=e;t<d.length;t++)if(0!==d[t])return t;if(t===d.length)return t}var a=0,s=0,d=function(){for(var t=[],n=0;n<e;n++)t.push(0);return t}();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:s+Math.max.apply(Math,d)}}var r=o;return n.animateWith=function(e){r=t.isFunction(e)?e:o},n}function i(e){function n(n,o,i,r){o.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,t.bind(r,r.invalidateLayout));r.invalidateTiles(),n.$on("$destroy",function(){o[0].$$mdDestroyed=!0,a(),r.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&r.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function r(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],o.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],i.$inject=["$mdMedia"],t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",i).directive("mdGridTileFooter",r).directive("mdGridTileHeader",r).factory("$mdGridLayout",o),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),function(){function n(e,t){function n(t){var n=t[0].querySelector(r),o=t[0].querySelector(a);return n&&t.addClass("md-icon-left"),o&&t.addClass("md-icon-right"),function(t,n){e(n)}}function o(e,n,o,i){var r=this;r.isErrorGetter=o.mdIsError&&t(o.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=n,r.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},r.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},r.setInvalid=function(e){e?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},e.$watch(function(){return r.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}o.$inject=["$scope","$element","$attrs","$animate"];var i=["INPUT","TEXTAREA","SELECT","MD-SELECT"],r=i.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),a=i.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:n,controller:o}}function o(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){!o||n.mdNoFloat||t.hasClass("md-container-ignore")||(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}function i(e,n,o,i,r){function a(a,s,d,l){function c(e){return m.setHasValue(!h.$isEmpty(e)),e}function u(){m.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}var m=l[0],p=!!l[1],h=l[1]||e.fakeNgModel(),f=l[2],g=t.isDefined(d.readonly),b=e.parseAttributeBoolean(d.mdNoAsterisk),v=s[0].tagName.toLowerCase();if(m){if("hidden"===d.type)return void s.attr("aria-hidden","true");if(m.input){if(m.input[0].contains(s[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}m.input=s,function(){m.label&&d.$observe("required",function(e){m.label.toggleClass("md-required",e&&!b)})}();var E=t.element('<div class="md-errors-spacer">');s.after(E);var $=t.isString(d.placeholder)?d.placeholder.trim():"";m.label||$.length||o.expect(s,"aria-label"),s.addClass("md-input"),s.attr("id")||s.attr("id","input_"+e.nextUid()),"input"===v&&"number"===d.type&&d.min&&d.max&&!d.step?s.attr("step","any"):"textarea"===v&&function(){function o(){s.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=l();if(!E){var t=s[0].style.padding||"";E=s.css("padding",0).prop("offsetHeight"),s[0].style.padding=t}if(g&&E&&(e=Math.max(e,E*g)),b&&E){var n=E*b;n<e?(s.attr("md-no-autogrow",""),e=n):s.removeAttr("md-no-autogrow")}E&&s.attr("rows",Math.round(e/E)),s.css("height",e+"px").removeClass("md-no-flex")}function l(){var e=$.offsetHeight,t=$.scrollHeight-e;return e+Math.max(t,0)}function c(t){return e.nextTick(o),t}function u(){if(f&&(f=!1,t.element(n).off("resize",o),v&&v(),s.attr("md-no-autogrow","").off("input",o),p)){var e=h.$formatters.indexOf(c);e>-1&&h.$formatters.splice(e,1)}}var f=!d.hasOwnProperty("mdNoAutogrow");if(function(){function e(e){e.preventDefault(),c=!0,p=e.clientY,h=parseFloat(s.css("height"))||s.prop("offsetHeight")}function n(e){c&&(e.preventDefault(),u(),f.addClass("md-input-resized"))}function o(e){c&&s.css("height",h+e.pointer.distanceY+"px")}function i(e){c&&(c=!1,f.removeClass("md-input-resized"))}if(!d.hasOwnProperty("mdNoResize")){var l=t.element('<div class="md-resize-handle"></div>'),c=!1,p=null,h=0,f=m.element,g=r.register(l,"drag",{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(l),l.on("mousedown",e),f.on("$md.dragstart",n).on("$md.drag",o).on("$md.dragend",i),a.$on("$destroy",function(){l.off("mousedown",e).remove(),f.off("$md.dragstart",n).off("$md.drag",o).off("$md.dragend",i),g(),l=null,f=null,g=null})}}(),f){var g=d.hasOwnProperty("rows")?parseInt(d.rows):NaN,b=d.hasOwnProperty("maxRows")?parseInt(d.maxRows):NaN,v=a.$on("md-resize-textarea",o),E=null,$=s[0];if(i(function(){e.nextTick(o)},10,!1),s.on("input",o),p&&h.$formatters.push(c),g||s.attr("rows",1),t.element(n).on("resize",o),a.$on("$destroy",u),d.hasOwnProperty("mdDetectHidden")){var y=function(){var e=!1;return function(){var t=0===$.offsetHeight;!1===t&&!0===e&&o(),e=t}}();a.$watch(function(){return e.nextTick(y,!1),!0})}}}(),p||u();var y=m.isErrorGetter||function(){return h.$invalid&&(h.$touched||f&&f.$submitted)};a.$watch(y,m.setInvalid),d.ngValue&&d.$observe("value",u),h.$parsers.push(c),h.$formatters.push(c),s.on("input",u),g||s.on("focus",function(t){e.nextTick(function(){m.setFocused(!0)})}).on("blur",function(t){e.nextTick(function(){m.setFocused(!1),u()})}),a.$on("$destroy",function(){m.setFocused(!1),m.setHasValue(!1),m.input=null})}}return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:a}}function r(e,n){function o(o,i,r,a){function s(e){return l.parent?(l.text(String(i.val()||e||"").length+" / "+d),e):e}var d,l,c,u=a[0],m=a[1];n.nextTick(function(){c=t.element(m.element[0].querySelector(".md-errors-spacer")),l=t.element('<div class="md-char-counter">'),c.append(l),r.$set("ngTrim","false"),o.$watch(r.mdMaxlength,function(n){d=n,t.isNumber(n)&&n>0?(l.parent().length||e.enter(l,c),s()):e.leave(l)}),u.$validators["md-maxlength"]=function(e,n){return!t.isNumber(d)||d<0||(s(),(e||i.val()||n||"").length<=d)}})}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:o}}function a(e){function n(n,o,i,r){if(r){var a=r.element.find("label"),s=r.element.attr("md-no-float");if(a&&a.length||""===s||n.$eval(s))return void r.setHasPlaceholder(!0);if("MD-SELECT"!=o[0].nodeName){var d=t.element('<label ng-click="delegateClick()" tabindex="-1">'+i.placeholder+"</label>");i.$set("placeholder",null),r.element.addClass("md-icon-float").prepend(d),e(d)(n)}}}return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:n}}}function s(e){function t(t,n,o){function i(){a=!0,e(function(){n[0].select(),a=!1},1,!1)}function r(e){a&&e.preventDefault()}if("INPUT"===n[0].nodeName||"TEXTAREA"===n[0].nodeName){var a=!1;n.on("focus",i).on("mouseup",r),t.$on("$destroy",function(){n.off("focus",i).off("mouseup",r)})}}return{restrict:"A",link:t}}function d(){function e(e,n,o,i){i&&(n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==o.mdAutoHide||t(o))&&n.toggleClass("md-auto-hide",!1))}function t(e){return T.some(function(t){return e[t]})}return{restrict:"EA",link:e,require:"^^?mdInputContainer"}}function l(e){function t(t){function n(t){return!!e.getClosest(t,"md-input-container")}function o(e){e.toggleClass("md-input-message-animation",!0)}if(n(t))o(t);else if(function(){for(var e=t[0];e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,i){n(i)&&o(t)}}return{restrict:"EA",compile:t,priority:100}}function c(e,t,n,o){return E(e,t,n,o),{addClass:function(e,t,n){p(e,n)}}}function u(e,t,n,o){return E(e,t,n,o),{enter:function(e,t){p(e,t)},leave:function(e,t){h(e,t)},addClass:function(e,t,n){"ng-hide"==t?h(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?p(e,n):n()}}}function m(e,t,n,o){return E(e,t,n,o),{enter:function(e,t){f(e).start().done(t)},leave:function(e,t){g(e).start().done(t)}}}function p(e,n){var o,i=[],r=v(e),a=r.children();if(0==r.length||0==a.length)return w.warn("mdInput messages show animation called on invalid messages element: ",e),void n();t.forEach(a,function(e){o=f(t.element(e)),i.push(o.start())}),y.all(i,n)}function h(e,n){var o,i=[],r=v(e),a=r.children();if(0==r.length||0==a.length)return w.warn("mdInput messages hide animation called on invalid messages element: ",e),void n();t.forEach(a,function(e){o=g(t.element(e)),i.push(o.start())}),y.all(i,n)}function f(t){var n=parseInt(e.getComputedStyle(t[0]).height),o=parseInt(e.getComputedStyle(t[0]).marginTop),i=v(t),r=b(t);return o>-n||i.hasClass("md-auto-hide")&&!r.hasClass("md-input-invalid")?C(t,{}):C(t,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function g(t){var n=t[0].offsetHeight,o=e.getComputedStyle(t[0]);return 0===parseInt(o.opacity)?C(t,{}):C(t,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function b(e){return e.controller("mdInputContainer").element}function v(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?t.element(M.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):t.element(e[0].querySelector(".md-input-messages-animation"))}function E(e,t,n,o){y=e,C=t,M=n,w=o}n.$inject=["$mdTheming","$parse"],i.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],r.$inject=["$animate","$mdUtil"],a.$inject=["$compile"],l.$inject=["$mdUtil"],s.$inject=["$timeout"],c.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var $=t.module("material.components.input",["material.core"]).directive("mdInputContainer",n).directive("label",o).directive("input",i).directive("textarea",i).directive("mdMaxlength",r).directive("placeholder",a).directive("ngMessages",d).directive("ngMessage",l).directive("ngMessageExp",l).directive("mdSelectOnFocus",s).animation(".md-input-invalid",c).animation(".md-input-messages-animation",u).animation(".md-input-message-animation",m);e._mdMocksIncluded&&$.service("$$mdInput",function(){return{messages:{show:p,hide:h,getElement:v}}}).service("mdInputInvalidAnimation",c).service("mdInputMessagesAnimation",u).service("mdInputMessageAnimation",m);var y,C,M,w,T=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"]}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,o,i){var r=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(a,s){function d(n){if("div"==n)v=t.element('<div class="md-no-style md-list-item-inner">'),v.append(a.contents()),a.addClass("md-proxy-focus");else{v=t.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var o=t.element('<md-button class="md-no-style"></md-button>');c(a[0],o[0]),o.attr("aria-label")||o.attr("aria-label",e.getText(a)),a.hasClass("md-no-focus")&&o.addClass("md-no-focus"),v.prepend(o),v.children().eq(1).append(a.contents()),a.addClass("_md-button-wrap")}a[0].setAttribute("tabindex","-1"),a.append(v)}function l(n,o){if(n&&!m(n)&&n.hasAttribute("ng-click")){e.expect(n,"aria-label");var i=t.element('<md-button class="md-secondary md-icon-button">');c(n,i[0],["ng-if","ng-hide","ng-show"]),n.setAttribute("tabindex","-1"),i.append(n),n=i[0]}n&&(!p(n)||!s.ngClick&&u(n))&&t.element(n).removeClass("md-secondary"),a.addClass("md-with-secondary"),o.append(n)}function c(e,n,i){var r=o.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts"]);i&&(r=r.concat(o.prefixer(i))),t.forEach(r,function(t){e.hasAttribute(t)&&(n.setAttribute(t,e.getAttribute(t)),e.removeAttribute(t))})}function u(e){return-1!=r.indexOf(e.nodeName.toLowerCase())}function m(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}function p(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===s.$normalize(t[n].name))return!0;return!1}function h(e,a,s,d){function l(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(a.children()[0]),o=0;o<n;o++)if(-1!==t.indexOf(e.path[o].tagName.toLowerCase()))return!0}a.addClass("_md");var c=[],u=a[0].firstElementChild,m=a.hasClass("_md-button-wrap"),h=m?u.firstElementChild:u,f=h&&p(h),g=a.hasClass("md-no-proxy");!function(){u&&u.children&&!f&&!g&&t.forEach(r,function(e){t.forEach(u.querySelectorAll(e+":not(.md-secondary)"),function(e){c.push(e)})})}(),function(){(1==c.length||f)&&(a.addClass("md-clickable"),f||d.attachRipple(e,t.element(a[0].querySelector(".md-no-style"))))}(),c.length&&t.forEach(c,function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",function(){e.mouseActive=!0,i(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&a.addClass("md-focused"),n.on("blur",function e(){a.removeClass("md-focused"),n.off("blur",e)})})});var b=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){(e.which||e.keyCode)==n.KEY_CODE.SPACE&&h&&(h.click(),e.preventDefault(),e.stopPropagation())}};f||c.length||h&&h.addEventListener("keypress",b),a.off("click"),a.off("keypress"),1==c.length&&h&&a.children().eq(0).on("click",function(e){if(!l(e)){!o.getClosest(e.target,"BUTTON")&&h.contains(e.target)&&t.forEach(c,function(n){e.target===n||n.contains(e.target)||("MD-MENU"===n.nodeName&&(n=n.children[0]),t.element(n).triggerHandler("click"))})}}),e.$on("$destroy",function(){h&&h.removeEventListener("keypress",b)})}var f,g,b=a[0].querySelectorAll(".md-secondary"),v=a;if(a[0].setAttribute("role","listitem"),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)d("button");else if(!a.hasClass("md-no-proxy")){for(var E,$=0;E=r[$];++$)if(g=a[0].querySelector(E)){f=!0;break}f?d("div"):a.addClass("md-no-proxy")}return function(){var e=t.element('<div class="md-secondary-container">');t.forEach(b,function(t){l(t,e)}),v.append(e)}(),function(){for(var e,t,n=["md-switch","md-checkbox"],o=0;t=n[o];++o)if((e=a.find(t)[0])&&!e.hasAttribute("aria-label")){var i=a.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),f&&"MD-MENU"===g.nodeName&&function(){var e=t.element(g),n=e.parent().hasClass("md-secondary-container")||g.parentNode.firstElementChild!==g,o="left";n&&(o="right"),e.attr("md-position-mode")||e.attr("md-position-mode",o+" target");var i=e.children().eq(0);p(i[0])||i.attr("ng-click","$mdMenu.open($event)"),i.attr("aria-label")||i.attr("aria-label","Open List Menu")}(),h}}}function o(e,t,n){function o(e,t){var o={};n.attach(e,t,o)}this.attachRipple=o}o.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],t.module("material.components.list",["material.core"]).controller("MdListController",o).directive("mdList",e).directive("mdListItem",n)}(),function(){t.module("material.components.menu",["material.core","material.components.backdrop"])}(),function(){t.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"])}(),function(){function e(e,n){return{restrict:"E",transclude:!0,controller:o,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",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-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(o,i,r,a){n(i),a.navBarAriaLabel||e.expectAsync(i,"aria-label",t.noop)}}}function o(e,t,n,o){this._$timeout=n,this._$scope=t,this._$mdConstant=o,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,r=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){e>0&&(i._initTabs(),r())})}function i(e,n){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:r,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,o,i,r=t.mdNavClick,a=t.mdNavHref,s=t.mdNavSref,d=t.srefOpts;if((r?1:0)+(a?1:0)+(s?1:0)>1)throw Error("Must not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");return r?n='ng-click="ctrl.mdNavClick()"':a?n='ng-href="{{ctrl.mdNavHref}}"':s&&(n='ui-sref="{{ctrl.mdNavSref}}"'),o=d?'ui-sref-opts="{{ctrl.srefOpts}}" ':"",n&&(i='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" tabindex="-1" '+o+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}">'+(i||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@"},link:function(o,i,r,a){n(function(){var n=a[0],r=a[1],s=t.element(i[0].querySelector("._md-nav-button"));n.name||(n.name=t.element(i[0].querySelector("._md-nav-button-text")).text().trim()),s.on("click",function(){r.mdSelectedNavItem=n.name,o.$apply()}),e.expectWithText(i,"aria-label")})}}}function r(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this._selected=!1,this._focused=!1}o.$inject=["$element","$scope","$timeout","$mdConstant"],i.$inject=["$mdAria","$$rAF"],r.$inject=["$element"],e.$inject=["$mdAria","$mdTheming"],t.module("material.components.navBar",["material.core"]).controller("MdNavBarController",o).directive("mdNavBar",e).controller("MdNavItemController",r).directive("mdNavItem",i),o.prototype._initTabs=function(){this._inkbar=t.element(this._navBarEl.querySelector("md-nav-ink-bar"));var e=this;this._$timeout(function(){e._updateTabs(e.mdSelectedNavItem,n)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(t,n){e._$timeout(function(){e._updateTabs(t,n)})})},o.prototype._updateTabs=function(e,t){var n=this,o=this._getTabs();if(o){var i=-1,r=-1,a=this._getTabByName(e),s=this._getTabByName(t);s&&(s.setSelected(!1),i=o.indexOf(s)),a&&(a.setSelected(!0),r=o.indexOf(a)),this._$timeout(function(){n._updateInkBarStyles(a,r,i)})}},o.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",t>n),this._inkbar.css({display:t<0?"none":""}),e){var o=e.getButtonEl(),i=o.offsetLeft;this._inkbar.css({left:i+"px",width:o.offsetWidth+"px"})}},o.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return t.element(e).controller("mdNavItem")});return e.indexOf(n)?e:null},o.prototype._getTabByName=function(e){return this._findTab(function(t){return t.getName()==e})},o.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},o.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},o.prototype._findTab=function(e){for(var t=this._getTabs(),n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},o.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},o.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},o.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),o=this.getFocusedTab();if(o){var i=n.indexOf(o);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:i>0&&this._moveFocus(o,n[i-1]);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:i<n.length-1&&this._moveFocus(o,n[i+1]);break;case t.SPACE:case t.ENTER:this._$timeout(function(){o.getButtonEl().click()})}}},r.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},r.prototype.getName=function(){return this.name},r.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},r.prototype.setSelected=function(e){this._selected=e},r.prototype.isSelected=function(){return this._selected},r.prototype.setFocused=function(e){this._focused=e,e&&this.getButtonEl().focus()},r.prototype.hasFocus=function(){return this._focused}}(),function(){function e(){return{definePreset:i,getAllPresets:r,clearPresets:a,$get:s()}}function i(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(g.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,g[e]=t}function r(){return t.copy(g)}function a(){g={}}function s(){return["$rootElement","$rootScope","$injector","$window",function(e,t,n,o){return new d(g,e,t,n,o)}]}function d(e,n,o,i,r){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:t.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:h},this._config={},this._presets=e,this._$rootElement=n,this._$rootScope=o,this._$injector=i,this._$window=r,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=u.animation,this.xPosition=c.xPosition,this.yPosition=c.yPosition,this.interceptorTypes=l.interceptorTypes,this.closeReasons=l.closeReasons,this.absPosition=c.absPosition}function l(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function c(e){this._$window=e.get("$window"),this._isRTL="rtl"===e.get("$mdUtil").bidi(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function u(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function m(e){var n=t.isString(e)?document.querySelector(e):e;return t.element(n)}function p(e,t){var n=getComputedStyle(e[0]||e)[t],o=n.indexOf("("),i=n.lastIndexOf(")"),r={x:0,y:0};if(o>-1&&i>-1){var a=n.substring(o+1,i).split(", ").slice(-2);r.x=parseInt(a[0]),r.y=parseInt(a[1])}return r}d.$inject=["presets","$rootElement","$rootScope","$injector","$window"],t.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",e);var h=80,f=t.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),g={};d.prototype.create=function(e,n){if("string"==typeof e?e=this._getPresetByName(e):"object"!==(void 0===e?"undefined":o(e))||!t.isUndefined(n)&&n||(n=e,e={}),e=e||{},n=n||{},t.isDefined(n.id)&&this._trackedPanels[n.id]){var i=this._trackedPanels[n.id];return t.extend(i.config,n),i}this._config=t.extend({id:n.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,e);var r=new l(this._config,this._$injector);return this._trackedPanels[n.id]=r,this._config.groupName&&(t.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),t.forEach(this._config.groupName,function(e){r.addToGroup(e)})),this._config.scope.$on("$destroy",t.bind(r,r.detach)),r},d.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},d.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},d.prototype.newPanelPosition=function(){return new c(this._$injector)},d.prototype.newPanelAnimation=function(){return new u(this._$injector)},d.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){t=t||{};var n={panels:[],openPanels:[],maxOpen:t.maxOpen>0?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},d.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},d.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return t.maxOpen>0&&t.openPanels.length>t.maxOpen}return!1},d.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},d.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper">  <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},d.prototype._wrapContentElement=function(e){var n=t.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),n.append(e),n},l.interceptorTypes={CLOSE:"onClose"},l.prototype.open=function(){var e=this;return this._$q(function(n,o){var i=e._done(n,e),r=e._simpleBind(e.show,e),a=function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._openCountExceedsMaxOpen(t)&&e._$mdPanel._closeFirstOpenedPanel(t)})};e.attach().then(r).then(a).then(i).catch(o)})},l.prototype.close=function(e){var n=this;return this._$q(function(o,i){n._callInterceptors(l.interceptorTypes.CLOSE).then(function(){var r=n._done(o,n),a=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||t.noop;s=t.bind(n,s,n,e),n.hide().then(a).then(r).then(s).catch(i)},i)})},l.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var e=this;return this._$q(function(n,o){var i=e._done(n,e),r=e.config.onDomAdded||t.noop,a=function(t){return e.isAttached=!0,e._addEventListeners(),t};e._$q.all([e._createBackdrop(),e._createPanel().then(a).catch(o)]).then(r).then(i).catch(o)})},l.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var e=this,n=e.config.onDomRemoved||t.noop,o=function(){return e._removeEventListeners(),e._topFocusTrap&&e._topFocusTrap.parentNode&&e._topFocusTrap.parentNode.removeChild(e._topFocusTrap),e._bottomFocusTrap&&e._bottomFocusTrap.parentNode&&e._bottomFocusTrap.parentNode.removeChild(e._bottomFocusTrap),e._restoreCache.classes&&(e.panelEl[0].className=e._restoreCache.classes),e.panelEl[0].style.cssText=e._restoreCache.styles||"",e._compilerCleanup(),e.panelContainer.remove(),e.isAttached=!1,e._$q.when(e)};return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,i){var r=e._done(t,e);e._$q.all([o(),!e._backdropRef||e._backdropRef.detach()]).then(n).then(r).catch(i)})},l.prototype.destroy=function(){var e=this;this.config.groupName&&t.forEach(this.config.groupName,function(t){e.removeFromGroup(t)}),this.config.scope.$destroy(),this.config.locals=null,this._interceptors=null},l.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this,n=function(){return e.panelContainer.removeClass("_md-panel-hidden"),e._animateOpen()};return this._$q(function(o,i){var r=e._done(o,e),a=e.config.onOpenComplete||t.noop,s=function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._groups[t].openPanels.push(e)})};e._$q.all([e._backdropRef?e._backdropRef.show():e,n().then(function(){e._focusOnOpen()},i)]).then(a).then(s).then(r).catch(i)})},l.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this;return this._$q(function(n,o){var i=e._done(n,e),r=e.config.onRemoving||t.noop,a=function(){e.panelContainer.addClass("_md-panel-hidden")},s=function(){if(e.config.groupName){var n;t.forEach(e.config.groupName,function(t){t=e._$mdPanel._groups[t],(n=t.openPanels.indexOf(e))>-1&&t.openPanels.splice(n,1)})}},d=function(){var t=e.config.origin;t&&m(t).focus()};e._$q.all([e._backdropRef?e._backdropRef.hide():e,e._animateClose().then(r).then(a).then(s).then(d).catch(o)]).then(i,o)})},l.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},l.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},l.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},l.prototype._compile=function(){var e=this;return e._$mdCompiler.compile(e.config).then(function(n){var o=e.config;if(o.contentElement){var i=n.element;e._restoreCache.styles=i[0].style.cssText,e._restoreCache.classes=i[0].className,e.panelContainer=e._$mdPanel._wrapContentElement(i),e.panelEl=i}else e.panelContainer=n.link(o.scope),e.panelEl=t.element(e.panelContainer[0].querySelector(".md-panel"));return e._compilerCleanup=n.cleanup,m(e.config.attachTo).append(e.panelContainer),e})},l.prototype._createPanel=function(){var e=this;return this._$q(function(t,n){e.config.locals||(e.config.locals={}),e.config.locals.mdPanelRef=e,e._compile().then(function(){e.config.disableParentScroll&&(e._restoreScroll=e._$mdUtil.disableScrollAround(null,e.panelContainer,{disableScrollMask:!0})),e.config.panelClass&&e.panelEl.addClass(e.config.panelClass),e.config.propagateContainerEvents&&(e.panelContainer.css("pointer-events","none"),e.panelEl.css("pointer-events","all")),e._$animate.pin&&e._$animate.pin(e.panelContainer,m(e.config.attachTo)),e._configureTrapFocus(),e._addStyles().then(function(){t(e)},n)},n)})},l.prototype._addStyles=function(){var e=this;return this._$q(function(t){e.panelContainer.css("z-index",e.config.zIndex),e.panelEl.css("z-index",e.config.zIndex+1);var n=function(){e._setTheming(),e.panelEl.removeClass("_md-panel-offscreen"),e.panelContainer.addClass("_md-panel-hidden"),t(e)};return e.config.fullscreen?(e.panelEl.addClass("_md-panel-fullscreen"),void n()):e.config.position?void e._$rootScope.$$postDigest(function(){e._updatePosition(!0),e._setTheming(),t(e)}):void n()})},l.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},l.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},l.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass("_md-panel-hidden")),this.panelEl.css(c.absPosition.TOP,t.getTop()),this.panelEl.css(c.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(c.absPosition.LEFT,t.getLeft()),this.panelEl.css(c.absPosition.RIGHT,t.getRight()))},l.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},l.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},l.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},l.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},l.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=m(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(l.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},l.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?t.element(document.body):this.panelContainer,o=function(t){e=t.target},i=this,r=function(t){i.config.propagateContainerEvents?e===i.panelEl[0]||i.panelEl[0].contains(e)||i.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),i.close(l.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",o),n.on("mouseup",r),this._removeListeners.push(function(){n.off("mousedown",o),n.off("mouseup",r)})}},l.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=t.bind(this,this._updatePosition),n=this._$$rAF.throttle(e),o=this,i=function(){n()};this._$window.addEventListener("scroll",i,!0),this._removeListeners.push(function(){o._$window.removeEventListener("scroll",i,!0)})}},l.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=f.clone()[0],this._bottomFocusTrap=f.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},l.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},l.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var e=this.config.animation;if(!e)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var o=t._done(n,t),i=function(){t._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),o()};e.animateOpen(t.panelEl).then(o,i)})},l.prototype._animateClose=function(){var e=this.config.animation;if(!e)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var o=function(){t.panelContainer.removeClass("md-panel-is-showing"),n(t)},i=function(){t._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),o()};e.animateClose(t.panelEl).then(o,i)})},l.prototype.registerInterceptor=function(e,n){var i=null;if(t.isString(e)?t.isFunction(n)||(i="Interceptor callback must be a function, instead got "+(void 0===n?"undefined":o(n))):i="Interceptor type must be a string, instead got "+(void 0===e?"undefined":o(e)),i)throw new Error("MdPanel: "+i);var r=this._interceptors[e]=this._interceptors[e]||[];return-1===r.indexOf(n)&&r.push(n),this},l.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return n>-1&&this._interceptors[e].splice(n,1),this},l.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},l.prototype._callInterceptors=function(e){var n=this,o=n._$q;return(n._interceptors&&n._interceptors[e]||[]).reduceRight(function(e,i){var r=i&&t.isFunction(i.then),a=r?i:null;return e.then(function(){if(!a)try{a=i(n)}catch(e){a=o.reject(e)}return a})},o.resolve(n))},l.prototype._simpleBind=function(e,t){return function(n){return e.apply(t,n)}},l.prototype._done=function(e,t){return function(){e(t)}},l.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},l.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);n>-1&&t.panels.splice(n,1)},l.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},c.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},c.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},c.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},c.viewportMargin=8,c.prototype.absolute=function(){return this._absolute=!0,this},c.prototype._setPosition=function(e,n){if(e===c.absPosition.RIGHT||e===c.absPosition.LEFT)this._left=this._right="";else{if(e!==c.absPosition.BOTTOM&&e!==c.absPosition.TOP){var o=Object.keys(c.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+o+".")}this._top=this._bottom=""}return this["_"+e]=t.isString(n)?n:"0",this},c.prototype.top=function(e){return this._setPosition(c.absPosition.TOP,e)},c.prototype.bottom=function(e){return this._setPosition(c.absPosition.BOTTOM,e)},c.prototype.start=function(e){var t=this._isRTL?c.absPosition.RIGHT:c.absPosition.LEFT;return this._setPosition(t,e)},c.prototype.end=function(e){var t=this._isRTL?c.absPosition.LEFT:c.absPosition.RIGHT;return this._setPosition(t,e)},c.prototype.left=function(e){return this._setPosition(c.absPosition.LEFT,e)},c.prototype.right=function(e){return this._setPosition(c.absPosition.RIGHT,e)},c.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},c.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},c.prototype.center=function(){return this.centerHorizontally().centerVertically()},c.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=m(e),this},c.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},c.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(c.yPosition),o=[],i=0;t=n[i];i++){var r=c.yPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+o.join(" | "))}},c.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(c.xPosition),o=[],i=0;t=n[i];i++){var r=c.xPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+o.join(" | "))}},c.prototype.withOffsetX=function(e){return this._translateX.push(e),this},c.prototype.withOffsetY=function(e){return this._translateY.push(e),this},c.prototype.getTop=function(){return this._top},c.prototype.getBottom=function(){return this._bottom},c.prototype.getLeft=function(){return this._left},c.prototype.getRight=function(){return this._right},c.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},c.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},c.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var o=this._$mdConstant.CSS.TRANSFORM,i=p(e,o);t+=i.x,n+=i.y}var r=t+e[0].offsetWidth,a=n+e[0].offsetHeight;return t>=0&&n>=0&&a<=this._$window.innerHeight&&r<=this._$window.innerWidth},c.prototype.getActualPosition=function(){return this._actualPosition},c.prototype._reduceTranslateValues=function(e,n){return n.map(function(n){var o=t.isFunction(n)?n(this):n;return e+"("+o+")"},this).join(" ")},c.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)return void this._setTransform(e);if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)},c.prototype._constrainToViewport=function(e){var t=c.viewportMargin,n=this._top,o=this._left;if(this.getTop()){var i=parseInt(this.getTop()),r=e[0].offsetHeight+i,a=this._$window.innerHeight;i<t?this._top=t+"px":r>a&&(this._top=i-(r-a+t)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),d=e[0].offsetWidth+s,l=this._$window.innerWidth;s<t?this._left=t+"px":d>l&&(this._left=s-(d-l+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==o)},c.prototype._reverseXPosition=function(e){if(e===c.xPosition.CENTER)return e;return e.indexOf("start")>-1?e.replace("start","end"):e.replace("end","start")},c.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},c.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),o=n.width,i=n.height,r=this._relativeToEl[0].getBoundingClientRect(),a=r.left,s=r.right,d=r.width;switch(this._bidi(t.x)){case c.xPosition.OFFSET_START:this._left=a-o+"px";break;case c.xPosition.ALIGN_END:this._left=s-o+"px";break;case c.xPosition.CENTER:var l=a+.5*d-.5*o;this._left=l+"px";break;case c.xPosition.ALIGN_START:this._left=a+"px";break;case c.xPosition.OFFSET_END:this._left=s+"px"}var u=r.top,m=r.bottom,p=r.height;switch(t.y){case c.yPosition.ABOVE:this._top=u-i+"px";break;case c.yPosition.ALIGN_BOTTOMS:this._top=m-i+"px";break;case c.yPosition.CENTER:var h=u+.5*p-.5*i;this._top=h+"px";break;case c.yPosition.ALIGN_TOPS:this._top=u+"px";break;case c.yPosition.BELOW:this._top=m+"px"}},u.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},u.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},u.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},u.prototype.duration=function(e){function n(e){if(t.isNumber(e))return e/1e3}return e&&(t.isNumber(e)?this._openDuration=this._closeDuration=n(e):t.isObject(e)&&(this._openDuration=n(e.open),this._closeDuration=n(e.close))),this._rawDuration=e,this},u.prototype._getPanelAnimationTarget=function(e){return t.isDefined(e.top)||t.isDefined(e.left)?{element:n,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(m(e))},u.prototype.withAnimation=function(e){return this._animationClass=e,this},u.prototype.animateOpen=function(e){var n=this._$mdUtil.dom.animator;this._fixBounds(e);var o={},i=e[0].style.transform||"",r=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case u.animation.SLIDE:e.css("opacity","1"),o={transitionInClass:"_md-panel-animate-enter"};var s=n.calculateSlideToOrigin(e,this._openFrom)||"";r=n.toTransformCss(s+" "+i);break;case u.animation.SCALE:o={transitionInClass:"_md-panel-animate-enter"};var d=n.calculateZoomToOrigin(e,this._openFrom)||"";r=n.toTransformCss(d+" "+i);break;case u.animation.FADE:o={transitionInClass:"_md-panel-animate-enter"};break;default:o=t.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return o.duration=this._openDuration,n.translate3d(e,r,a,o)},u.prototype.animateClose=function(e){var n=this._$mdUtil.dom.animator,o={},i=e[0].style.transform||"",r=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case u.animation.SLIDE:e.css("opacity","1"),o={transitionInClass:"_md-panel-animate-leave"};var s=n.calculateSlideToOrigin(e,this._closeTo)||"";a=n.toTransformCss(s+" "+i);break;case u.animation.SCALE:o={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var d=n.calculateZoomToOrigin(e,this._closeTo)||"";a=n.toTransformCss(d+" "+i);break;case u.animation.FADE:o={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:o=t.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return o.duration=this._closeDuration,n.translate3d(e,r,a,o)},u.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},u.prototype._getBoundingClientRect=function(e){if(e instanceof t.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),function(){t.module("material.components.progressCircular",["material.core"])}(),function(){function e(e,n,o){function i(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),r}function r(o,i,r){function m(){var e=(r.mdMode||"").trim();if(e)switch(e){case s:case d:case l:case c:break;default:e=d}return e}function p(e,o){if(!f&&m()){var i=n.supplant("translateX({0}%) scale({1},1)",[(o-100)/2,o/100]),r=g({transform:i});t.element(e).css(r)}}e(i);var h,f=r.hasOwnProperty("disabled"),g=n.dom.animator.toCss,b=t.element(i[0].querySelector(".md-bar1")),v=t.element(i[0].querySelector(".md-bar2")),E=t.element(i[0].querySelector(".md-container"));i.attr("md-mode",m()).toggleClass(u,f),function(){if(t.isUndefined(r.mdMode)){var e=t.isDefined(r.value),n=e?s:d;i.attr("md-mode",n),r.mdMode=n}}(),function(){r.$observe("value",function(e){var t=a(e);i.attr("aria-valuenow",t),m()!=c&&p(v,t)}),r.$observe("mdBufferValue",function(e){p(b,a(e))}),r.$observe("disabled",function(e){f=!0===e||!1===e?!!e:t.isDefined(e),i.toggleClass(u,f),E.toggleClass(h,!f)}),r.$observe("mdMode",function(e){switch(h&&E.removeClass(h),e){case c:case l:case s:case d:E.addClass(h="md-mode-"+e);break;default:E.addClass(h="md-mode-"+d)}})}()}function a(e){return Math.max(0,Math.min(e||0,100))}var s="determinate",d="indeterminate",l="buffer",c="query",u="_md-progress-linear-disabled";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:i}}e.$inject=["$mdTheming","$mdUtil","$log"],t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(e,n,o,i){function r(r,a,s,d){function l(){a.hasClass("md-focused")||a.addClass("md-focused")}function c(o){var i=o.which||o.keyCode;if(i==n.KEY_CODE.ENTER||o.currentTarget==o.target)switch(i){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:o.preventDefault(),u.selectPrevious(),l();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:o.preventDefault(),u.selectNext(),l();break;case n.KEY_CODE.ENTER:var r=t.element(e.getClosest(a[0],"form"));r.length>0&&r.triggerHandler("submit")}}a.addClass("_md"),o(a);var u=d[0],m=d[1]||e.fakeNgModel();u.init(m),r.mouseActive=!1,a.attr({role:"radiogroup",tabIndex:a.attr("tabindex")||"0"}).on("keydown",c).on("mousedown",function(e){r.mouseActive=!0,i(function(){r.mouseActive=!1},100)}).on("focus",function(){!1===r.mouseActive&&u.$element.addClass("md-focused")}).on("blur",function(){u.$element.removeClass("md-focused")})}function a(e){this._radioButtonRenderFns=[],this.$element=e}function s(n,o){var i=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(i.count()){var r=function(e){return!t.element(e).attr("disabled")},a=n[0].querySelector("md-radio-button.md-checked"),s=i[o<0?"previous":"next"](a,r)||i.first();t.element(s).triggerHandler("click")}}return a.prototype=function(){return{init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return s(this.$element,1)},selectPrevious:function(){return s(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}}}(),{restrict:"E",controller:["$element",a],require:["mdRadioGroup","?ngModel"],link:{pre:r}}}function n(e,t,n){function o(o,r,a,s){function d(){if(!s)throw"RadioButton: No RadioGroupController could be found.";s.add(c),a.$observe("value",c),r.on("click",l).on("$destroy",function(){s.remove(c)})}function l(e){r[0].hasAttribute("disabled")||s.isDisabled()||o.$apply(function(){s.setViewValue(a.value,e&&e.type)})}function c(){var e=s.getViewValue()==a.value;e!==u&&("md-radio-group"!==r[0].parentNode.nodeName.toLowerCase()&&r.parent().toggleClass(i,e),e&&s.setActiveDescendant(r.attr("id")),u=e,r.attr("aria-checked",e).toggleClass(i,e))}var u;n(r),function(n,o){n.attr({id:a.id||"radio_"+t.nextUid(),role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}(r),a.ngValue?t.nextTick(d,!1):d()}var i="md-checked";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:o}}e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"],t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n)}(),function(){function o(e,o,i,r,a,s,d,c){function u(c,u){var m=t.element("<md-select-value><span></span></md-select-value>");m.append('<span class="md-select-icon" aria-hidden="true"></span>'),m.addClass("md-select-value"),m[0].hasAttribute("id")||m.attr("id","select_value_label_"+o.nextUid());var p=c.find("md-content");if(p.length||c.append(t.element("<md-content>").append(c.contents())),p.attr("role","presentation"),u.mdOnOpen&&(c.find("md-content").prepend(t.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),c.find("md-option").attr("ng-show","$$loadingAsyncDone")),u.name){var h=t.element('<select class="md-visually-hidden">');h.attr({name:u.name,"aria-hidden":"true",tabindex:"-1"});var f=c.find("md-option");t.forEach(f,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),h.append(n)}),h.append('<option ng-value="'+u.ngModel+'" selected></option>'),c.parent().append(h)}var g=o.parseAttributeBoolean(u.multiple),b=g?"multiple":"",v='<div class="md-select-menu-container" aria-hidden="true" role="presentation"><md-select-menu role="presentation" {0}>{1}</md-select-menu></div>';return v=o.supplant(v,[b,c.html()]),c.empty().append(m),c.append(v),u.tabindex||u.$set("tabindex",0),function(c,u,m,p){function h(){var e=u.attr("aria-label")||u.attr("placeholder");!e&&w&&w.label&&(e=w.label.text()),C=e,a.expect(u,"aria-label",e)}function f(){D&&(O=O||D.find("md-select-menu").controller("mdSelectMenu"),T.setLabelText(O.selectedLabels()))}function b(){if(C){var e=O.selectedLabels({mode:"aria"});u.attr("aria-label",e.length?C+": "+e:C)}}function v(){w&&w.setHasValue(O.selectedLabels().length>0||(u[0].validity||{}).badInput)}function E(e){if(i.isNavigationKey(e))e.preventDefault(),$();else if(l(e,i)){e.preventDefault();var n=O.optNodeForKeyboardSearch(e);if(!n||n.hasAttribute("disabled"))return;var o=t.element(n).controller("mdOption");O.isMultiple||O.deselect(Object.keys(O.selected)[0]),O.select(o.hashKey,o.value),O.refreshViewValue()}}function $(){I._mdSelectIsOpen=!0,u.attr("aria-expanded","true"),e.show({scope:I,preserveScope:!0,skipCompile:!0,element:D,target:u[0],selectCtrl:T,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!m.mdOnOpen&&(c.$eval(m.mdOnOpen)||!0)}).finally(function(){I._mdSelectIsOpen=!1,u.focus(),u.attr("aria-expanded","false"),A.$setTouched()})}var y,C,M=!0,w=p[0],T=p[1],A=p[2],k=p[3],x=u.find("md-select-value"),_=t.isDefined(m.readonly),S=o.parseAttributeBoolean(m.mdNoAsterisk);if(S&&u.addClass("md-no-asterisk"),w){var N=w.isErrorGetter||function(){return A.$invalid&&(A.$touched||k&&k.$submitted)};if(w.input&&u.find("md-select-header").find("input")[0]!==w.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");w.input=u,w.label||a.expect(u,"aria-label",u.attr("placeholder")),c.$watch(N,w.setInvalid)}var D,I,O;!function(){if(D=t.element(u[0].querySelector(".md-select-menu-container")),I=c,m.mdContainerClass){var e=D[0].getAttribute("class")+" "+m.mdContainerClass;D[0].setAttribute("class",e)}O=D.find("md-select-menu").controller("mdSelectMenu"),O.init(A,m.ngModel),u.on("$destroy",function(){D.remove()})}(),r(u),k&&t.isDefined(m.multiple)&&o.nextTick(function(){(A.$modelValue||A.$viewValue)&&k.$setPristine()});var H=A.$render;A.$render=function(){H(),f(),b(),v()},m.$observe("placeholder",A.$render),w&&w.label&&m.$observe("required",function(e){w.label.toggleClass("md-required",e&&!S)}),T.setLabelText=function(e){T.setIsPlaceholder(!e);var t=!1;if(m.mdSelectedText&&m.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(m.mdSelectedText||m.mdSelectedHtml)e=s(m.mdSelectedText||m.mdSelectedHtml)(c),t=!0;else if(!e){var n=m.placeholder||(w&&w.label?w.label.text():"");e=n||"",t=!0}var o=x.children().eq(0);m.mdSelectedHtml?o.html(d.getTrustedHtml(e)):t?o.text(e):o.html(e)},T.setIsPlaceholder=function(e){e?(x.addClass("md-select-placeholder"),w&&w.label&&w.label.addClass("md-placeholder")):(x.removeClass("md-select-placeholder"),w&&w.label&&w.label.removeClass("md-placeholder"))},_||(u.on("focus",function(e){w&&w.setFocused(!0)}),u.on("blur",function(e){M&&(M=!1,I._mdSelectIsOpen&&e.stopImmediatePropagation()),I._mdSelectIsOpen||(w&&w.setFocused(!1),v())})),T.triggerClose=function(){s(m.mdOnClose)(c)},c.$$postDigest(function(){h(),f(),b()}),c.$watch(function(){return O.selectedLabels()},f);var P;m.$observe("ngMultiple",function(e){P&&P();var t=s(e);P=c.$watch(function(){return t(c)},function(e,t){e===n&&t===n||(e?u.attr("multiple","multiple"):u.removeAttr("multiple"),u.attr("aria-multiselectable",e?"true":"false"),D&&(O.setMultiple(e),H=A.$render,A.$render=function(){H(),f(),b(),v()},A.$render()))})}),m.$observe("disabled",function(e){t.isString(e)&&(e=!0),y!==n&&y===e||(y=e,e?u.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",$).off("keydown",E):u.attr({tabindex:m.tabindex,"aria-disabled":"false"}).on("click",$).on("keydown",E))}),m.hasOwnProperty("disabled")||m.hasOwnProperty("ngDisabled")||(u.attr({"aria-disabled":"false"}),u.on("click",$),u.on("keydown",E));var L={role:"listbox","aria-expanded":"false","aria-multiselectable":g&&!m.ngMultiple?"true":"false"};u[0].hasAttribute("id")||(L.id="select_"+o.nextUid());var R="select_container_"+o.nextUid();D.attr("id",R),u.find("md-select-menu").length||(L["aria-owns"]=R),u.attr(L),c.$on("$destroy",function(){e.destroy().finally(function(){w&&(w.setFocused(!1),w.setHasValue(!1),w.input=null),A.$setTouched()})})}}var m=i.KEY_CODE;m.SPACE,m.ENTER,m.UP_ARROW,m.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:u,controller:function(){}}}function i(e,o,i,r){function a(e,n,i,a){function s(e){13!=e.keyCode&&32!=e.keyCode||d(e)}function d(n){var i=o.getClosest(n.target,"md-option"),r=i&&t.element(i).data("$mdOptionController");if(i&&r){if(i.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var a=l.hashGetter(r.value),s=t.isDefined(l.selected[a]);e.$apply(function(){l.isMultiple?s?l.deselect(a):l.select(a,r.value):s||(l.deselect(Object.keys(l.selected)[0]),l.select(a,r.value)),l.refreshViewValue()})}}var l=a[0];n.addClass("_md"),r(n),n.on("click",d),n.on("keypress",s)}function s(r,a,s){function d(){var e=c.ngModel.$modelValue||c.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(c.selected),o=e.map(c.hashGetter);n.filter(function(e){return-1===o.indexOf(e)}).forEach(c.deselect),o.forEach(function(t,n){c.select(t,e[n])})}}function l(){var e=c.ngModel.$viewValue||c.ngModel.$modelValue;Object.keys(c.selected).forEach(c.deselect),c.select(c.hashGetter(e),e)}var c=this;c.isMultiple=t.isDefined(a.multiple),c.selected={},c.options={},r.$watchCollection(function(){return c.options},function(){c.ngModel.$render()});var m,p;c.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var o=c.ngModel;p=p||o.$isEmpty,c.isMultiple=e,m&&m(),c.isMultiple?(o.$validators["md-multiple"]=n,o.$render=d,r.$watchCollection(c.modelBinding,function(e){n(e)&&d(),c.ngModel.$setPristine()}),o.$isEmpty=function(e){return!e||0===e.length}):(delete o.$validators["md-multiple"],o.$render=l)};var h,f,g,b="";c.optNodeForKeyboardSearch=function(e){h&&clearTimeout(h),h=setTimeout(function(){h=n,b="",g=n,f=n},300);var o=e.keyCode-(i.isNumPadKey(e)?48:0);b+=String.fromCharCode(o);var r=new RegExp("^"+b,"i");f||(f=s.find("md-option"),g=new Array(f.length),t.forEach(f,function(e,t){g[t]=e.textContent.trim()}));for(var a=0;a<g.length;++a)if(r.test(g[a]))return f[a]},c.init=function(n,i){c.ngModel=n,c.modelBinding=i,c.ngModel.$isEmpty=function(e){return!c.options[c.hashGetter(e)]};var a=o.getModelOption(n,"trackBy");if(a){var s={},d=e(a);c.hashGetter=function(e,t){return s.$value=e,d(t||r,s)}}else c.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++u)):e};c.setMultiple(c.isMultiple)},c.selectedLabels=function(e){e=e||{};var t=e.mode||"html",n=o.nodesToArray(s[0].querySelectorAll("md-option[selected]"));if(n.length){var i;return"html"==t?i=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var o=e.querySelector(".md-container");return o&&(t=t.replace(o.outerHTML,"")),t}:"aria"==t&&(i=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),o.uniq(n.map(i)).join(", ")}return""},c.select=function(e,t){var n=c.options[e];n&&n.setSelected(!0),c.selected[e]=t},c.deselect=function(e){var t=c.options[e];t&&t.setSelected(!1),delete c.selected[e]},c.addOption=function(e,n){if(t.isDefined(c.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');c.options[e]=n,t.isDefined(c.selected[e])&&(c.select(e,n.value),t.isDefined(c.ngModel.$modelValue)&&c.hashGetter(c.ngModel.$modelValue)===e&&c.ngModel.$validate(),c.refreshViewValue())},c.removeOption=function(e){delete c.options[e]},c.refreshViewValue=function(){var e,n=[];for(var i in c.selected)(e=c.options[i])?n.push(e.value):n.push(c.selected[i]);var r=o.getModelOption(c.ngModel,"trackBy"),a=c.isMultiple?n:n[0],s=c.ngModel.$modelValue;(r?t.equals(s,a):s+""===a)||(c.ngModel.$setViewValue(a),c.ngModel.$render())}}return s.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:s,link:{pre:a}}}function r(e,n,o){function i(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),r(n)||e.attr("md-option-empty",""),a}function r(e){var t=e.value,n=e.ngValue;return t||n}function a(i,r,a,s){function d(e,t,n){if(!c.hashGetter)return void(n||i.$$postDigest(function(){d(e,t,!0)}));var o=c.hashGetter(t,i),r=c.hashGetter(e,i);l.hashKey=r,l.value=e,c.removeOption(o,l),c.addOption(r,l)}var l=s[0],c=s[1];o(r),c.isMultiple&&(r.addClass("md-checkbox-enabled"),r.prepend(m.clone())),t.isDefined(a.ngValue)?i.$watch(a.ngValue,d):t.isDefined(a.value)?d(a.value):i.$watch(function(){return r.text().trim()},d),a.$observe("disabled",function(e){e?r.attr("tabindex","-1"):r.attr("tabindex","0")}),i.$$postDigest(function(){a.$observe("selected",function(e){t.isDefined(e)&&("string"==typeof e&&(e=!0),e?(c.isMultiple||c.deselect(Object.keys(c.selected)[0]),c.select(l.hashKey,l.value)):c.deselect(l.hashKey),c.refreshViewValue())})}),e.attach(i,r),function(){var e={role:"option","aria-selected":"false"};r[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),r.attr(e)}(),i.$on("$destroy",function(){c.removeOption(l.hashKey,l)})}function s(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return s.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:s,compile:i}}function a(){function e(e,n){(function(){return e.parent().find("md-select-header").length})()||function(){var o=e.find("label");o.length||(o=t.element("<label>"),e.prepend(o)),o.addClass("md-container-ignore"),o.attr("aria-hidden","true"),n.label&&o.text(n.label)}()}return{restrict:"E",compile:e}}function s(){return{restrict:"E"}}function d(o){function i(o,i,u,m,p,h,f,g,b){function v(e,t,n){function o(){r(),t.removeClass("md-active").attr("aria-hidden","true").css("display","none"),t.parent().find("md-select-value").removeAttr("aria-hidden"),$(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}var i=null,r=e.$on("$destroy",function(){i.end()});return n=n||{},n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?o():function(){return i=f(t,{addClass:"md-leave"}),i.start()}().then(o)}function E(e,r,a){function s(){return p(function(t){if(a.isRemoved)return p.reject(!1);var n=y(e,r,a);n.container.element.css(M.toCss(n.container.styles)),n.dropDown.element.css(M.toCss(n.dropDown.styles)),h(function(){r.addClass("md-active"),n.dropDown.element.css(M.toCss({transform:""})),t()})})}function d(e){e&&!e.hasAttribute("disabled")&&e.focus()}function c(){var n=function(e,t,n){return function(){if(!n.isRemoved){var o=y(e,t,n),i=o.container,r=o.dropDown;i.element.css(M.toCss(i.styles)),r.element.css(M.toCss(r.styles))}}}(e,r,a),o=t.element(m);return o.on("resize",n),o.on("orientationchange",n),function(){o.off("resize",n),o.off("orientationchange",n)}}function v(){function e(e){e.preventDefault(),e.stopPropagation(),a.restoreFocus=!1,u.nextTick(o.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case w.UP_ARROW:return c();case w.DOWN_ARROW:return d();case w.SPACE:case w.ENTER:var t=u.getClosest(e.target,"md-option");t&&(p.triggerHandler({type:"click",target:t}),e.preventDefault()),m(e);break;case w.TAB:case w.ESCAPE:e.stopPropagation(),e.preventDefault(),a.restoreFocus=!0,u.nextTick(o.hide,!0);break;default:if(l(e,i)){var n=p.controller("mdSelectMenu").optNodeForKeyboardSearch(e);a.focusedNode=n||a.focusedNode,n&&n.focus()}}}function s(e){var t,o=u.nodesToArray(a.optionNodes),i=o.indexOf(a.focusedNode);do{-1===i?i=0:"next"===e&&i<o.length-1?i++:"prev"===e&&i>0&&i--,t=o[i],t.hasAttribute("disabled")&&(t=n)}while(!t&&i<o.length-1&&i>0);t&&t.focus(),a.focusedNode=t}function d(){s("next")}function c(){s("prev")}function m(e){if(!(e&&"click"==e.type&&e.currentTarget!=p[0]||function(){var t=!1;if(e&&e.currentTarget.children.length>0){var n=e.currentTarget.children[0];if(n.scrollHeight>n.clientHeight&&n.children.length>0){e.pageX-e.currentTarget.getBoundingClientRect().left>n.querySelector("md-option").offsetWidth&&(t=!0)}}return t}())){var t=u.getClosest(e.target,"md-option");t&&t.hasAttribute&&!t.hasAttribute("disabled")&&(e.preventDefault(),e.stopPropagation(),h.isMultiple||(a.restoreFocus=!0,u.nextTick(function(){o.hide(h.ngModel.$viewValue)},!0)))}}if(!a.isRemoved){var p=a.selectEl,h=p.controller("mdSelectMenu")||{};return r.addClass("md-clickable"),a.backdrop&&a.backdrop.on("click",e),p.on("keydown",t),p.on("click",m),function(){a.backdrop&&a.backdrop.off("click",e),p.off("keydown",t),p.off("click",m),r.removeClass("md-clickable"),a.isRemoved=!0}}}return function(){a.loadingAsync&&!a.isRemoved&&(e.$$loadingAsyncDone=!1,p.when(a.loadingAsync).then(function(){e.$$loadingAsyncDone=!0,delete a.loadingAsync}).then(function(){h(s)}))}(),function(e,n){var o=r.find("md-select-menu");if(!n.target)throw new Error(u.supplant(C,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:o,contentEl:r.find("md-content"),optionNodes:o[0].getElementsByTagName("md-option")})}(0,a),a.hideBackdrop=function(e,t,n){return n.disableParentScroll&&!u.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=u.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=u.createBackdrop(e,"md-select-backdrop md-click-catcher"),g.enter(n.backdrop,b[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(e,r,a),function(e,t,n){return n.parent!==t.parent()&&t.parent().attr("aria-owns",t.attr("id")),t.parent().find("md-select-value").attr("aria-hidden","true"),n.parent.append(t),p(function(e,n){try{f(t,{removeClass:"md-leave",duration:0}).start().then(s).then(e)}catch(e){n(e)}})}(e,r,a).then(function(e){return r.attr("aria-hidden","false"),a.alreadyOpen=!0,a.cleanupInteraction=v(),a.cleanupResizing=c(),d(a.focusedNode),e},a.hideBackdrop)}function $(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}function y(n,o,i){var l,p=o[0],h=i.target[0].children[0],f=b[0].body,g=i.selectEl[0],v=i.contentEl[0],E=f.getBoundingClientRect(),$=h.getBoundingClientRect(),y={left:E.left+c,top:c,bottom:E.height-c,right:E.width-c-(u.floatingScrollbars()?16:0)},C={top:$.top-y.top,left:$.left-y.left,right:y.right-($.left+$.width),bottom:y.bottom-($.top+$.height)},M=E.width-2*c,w=g.querySelector("md-option[selected]"),T=g.getElementsByTagName("md-option"),A=g.getElementsByTagName("md-optgroup"),k=d(o,v);l=r(i.loadingAsync)?v.firstElementChild||v:w||(A.length?A[0]:T.length?T[0]:v.firstElementChild||v),v.offsetWidth>M?v.style["max-width"]=M+"px":v.style.maxWidth=null,k&&g.classList.add("md-overflow");var x=l;"MD-OPTGROUP"===(x.tagName||"").toUpperCase()&&(x=T[0]||v.firstElementChild||v,l=x),i.focusedNode=x,p.style.display="block";var _=g.getBoundingClientRect(),S=s(l);if(l){var N=m.getComputedStyle(l);S.paddingLeft=parseInt(N.paddingLeft,10)||0,S.paddingRight=parseInt(N.paddingRight,10)||0}if(k){var D=v.offsetHeight/2;v.scrollTop=S.top+S.height/2-D,C.top<D?v.scrollTop=Math.min(S.top,v.scrollTop+D-C.top):C.bottom<D&&(v.scrollTop=Math.max(S.top+S.height-_.height,v.scrollTop-D+C.bottom))}var I,O,H,P,L;I=$.left+S.left-S.paddingLeft+2,O=Math.floor($.top+$.height/2-S.height/2-S.top+v.scrollTop)+2,H=S.left+$.width/2+"px "+(S.top+S.height/2-v.scrollTop)+"px 0px",P=Math.min($.width+S.paddingLeft+S.paddingRight,M),L=e.getComputedStyle(h)["font-size"];var R=p.getBoundingClientRect(),j=Math.round(100*Math.min($.width/_.width,1))/100,F=Math.round(100*Math.min($.height/_.height,1))/100;return{container:{element:t.element(p),styles:{left:Math.floor(a(y.left,I,y.right-R.width)),top:Math.floor(a(y.top,O,y.bottom-R.height)),"min-width":P,"font-size":L}},dropDown:{element:t.element(g),styles:{transformOrigin:H,transform:i.alreadyOpen?"":u.supplant("scale({0},{1})",[j,F])}}}}var C="$mdSelect.show() expected a target element in options.target but got '{0}'!",M=u.dom.animator,w=i.KEY_CODE;return{parent:"body",themable:!0,onShow:E,onRemove:v,hasBackdrop:!0,disableParentScroll:!0}}function r(e){return e&&t.isFunction(e.then)}function a(e,t,n){return Math.max(e,Math.min(t,n))}function s(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}function d(e,t){var n=!1;try{var o=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=o}finally{}return n}return i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],o("$mdSelect").setDefaults({methods:["target"],options:i})}function l(e,t){var n=String.fromCharCode(e.keyCode),o=e.keyCode<=31;return n&&n.length&&!o&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}o.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],r.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],d.$inject=["$$interimElementProvider"];var c=8,u=0,m=t.element('<div class="md-container"><div class="md-icon"></div></div>');t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",o).directive("mdSelectMenu",i).directive("mdOption",r).directive("mdOptgroup",a).directive("mdSelectHeader",s).provider("$mdSelect",d)}(),function(){function e(e,t){return["$mdUtil","$window",function(n,o){return{restrict:"A",multiElement:!0,link:function(i,r,a){var s=i.$on("$md-resize-enable",function(){s();var d=r[0],l=d.nodeType===o.Node.ELEMENT_NODE?o.getComputedStyle(d):{};i.$watch(a[e],function(e){if(!!e===t){n.nextTick(function(){i.$broadcast("$md-resize")});var o={cachedTransitionStyles:l};n.dom.animator.waitTransitionEnd(r,o).then(function(){i.$broadcast("$md-resize")})}})})}}}]}t.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(e,o,i,r){function a(e,n){var r=function(){return!1},a=function(){return i.when(o.supplant(l,[n||""]))};return t.extend({isLockedOpen:r,isOpen:r,toggle:a,open:a,close:a,onClose:t.noop,then:function(e){return d(n).then(e||t.noop)}},e)}function s(t,i){var a=e.get(t);return a||i?a:(r.error(o.supplant(l,[t||""])),n)}function d(t){return e.when(t).catch(r.error)}var l="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",c={find:s,waitFor:d};return function(e,n){if(t.isUndefined(e))return c;var o=!0===n,i=c.find(e,o);return!i&&o?c.waitFor(e):!i&&t.isUndefined(n)?a(c,e):i}}function o(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){}}}function i(e,o,i,r,a,s,d,l,c,u,m,p,h){function f(d,f,g,b){function v(e,t){d.isLockedOpen=e,e===t?f.toggleClass("md-locked-open",!!e):s[e?"addClass":"removeClass"](f,"md-locked-open"),A&&A.toggleClass("md-locked-open",!!e)}function E(e){var t=o.findFocusTarget(f)||o.findFocusTarget(f,"[md-sidenav-focus]")||f,n=f.parent();n[e?"on":"off"]("keydown",M),A&&A[e?"on":"off"]("click",w);var i=$(n,e);return e&&(S=m[0].activeElement,k=a.getLastInteractionType()),y(e),N=u.all([e&&A?s.enter(A,n):A?s.leave(A):u.when(!0),s[e?"removeClass":"addClass"](f,"md-closed")]).then(function(){d.isOpen&&(h(function(){I.triggerHandler("resize")}),t&&t.focus()),i&&i()})}function $(e,t){var n=f[0],o=e[0].scrollTop;if(t&&o){x={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};f.css(i),A.css(i)}if(!t&&x)return function(){n.style.top=x.top,n.style.bottom=x.bottom,n.style.height=x.height,A[0].style.top=null,A[0].style.bottom=null,A[0].style.height=null,x=null}}function y(e){e&&!T?(T=_.css("overflow"),_.css("overflow","hidden")):t.isDefined(T)&&(_.css("overflow",T),T=n)}function C(e){return d.isOpen==e?u.when(!0):(d.isOpen&&b.onCloseCb&&b.onCloseCb(),u(function(t){d.isOpen=e,o.nextTick(function(){N.then(function(e){!d.isOpen&&S&&"keyboard"===k&&(S.focus(),S=null),t(e)})})}))}function M(e){return e.keyCode===i.KEY_CODE.ESCAPE?w(e):u.when(!0)}function w(e){return e.preventDefault(),b.close()}var T,A,k,x,_=null,S=null,N=u.when(!0),D=l(g.mdIsLockedOpen),I=t.element(p),O=function(){return D(d.$parent,{$media:function(t){return c.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})};g.mdDisableScrollTarget&&(_=m[0].querySelector(g.mdDisableScrollTarget),_?_=t.element(_):c.warn(o.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:g.mdDisableScrollTarget}))),_||(_=f.parent()),g.hasOwnProperty("mdDisableBackdrop")||(A=o.createBackdrop(d,"md-sidenav-backdrop md-opaque ng-enter")),f.addClass("_md"),r(f),A&&r.inherit(A,f),f.on("$destroy",function(){A&&A.remove(),b.destroy()}),d.$on("$destroy",function(){A&&A.remove()}),d.$watch(O,v),d.$watch("isOpen",E),b.$toggleOpen=C}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),f}}}function r(e,t,n,o,i){var r=this;r.isOpen=function(){return!!e.isOpen},r.isLockedOpen=function(){return!!e.isLockedOpen},r.onClose=function(e){return r.onCloseCb=e,r},r.open=function(){return r.$toggleOpen(!0)},r.close=function(){return r.$toggleOpen(!1)},r.toggle=function(){return r.$toggleOpen(!e.isOpen)},r.$toggleOpen=function(t){return o.when(e.isOpen=t)};var a=t.mdComponentId,s=a&&a.indexOf(i.startSymbol())>-1,d=s?i(a)(e.$parent):a;r.destroy=n.register(r,d),s&&t.$observe("mdComponentId",function(e){e&&e!==r.$$mdHandle&&(r.destroy(),r.destroy=n.register(r,e))})}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],i.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],r.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",i).directive("mdSidenavFocus",o).controller("$mdSidenavController",r)}(),function(){function e(){return{controller:function(){},compile:function(e){var o=e.find("md-slider");if(o){return o.attr("md-vertical")!==n&&e.attr("md-vertical",""),o.attr("flex")||o.attr("flex",""),function(e,n,o,i){function r(e){n.children().attr("disabled",e),n.find("input").attr("disabled",e)}n.addClass("_md");var a=t.noop;o.disabled?r(!0):o.ngDisabled&&(a=e.$watch(o.ngDisabled,function(e){r(e)})),e.$on("$destroy",function(){a()});var s;i.fitInputWidthToTextLength=function(e){var t=n[0].querySelector("md-input-container");if(t){var o=getComputedStyle(t),i=parseInt(o.minWidth),r=2*parseInt(o.padding);s=s||parseInt(o.maxWidth);var a=Math.max(s,i+r+i/2*e);t.style.maxWidth=a+"px"}}}}}}}function o(e,n,o,i,r,a,s,d,l,c){function u(e,n){var i=t.element(e[0].getElementsByClassName("md-slider-wrapper")),r=n.tabindex||0;return i.attr("tabindex",r),(n.disabled||n.ngDisabled)&&i.attr("tabindex",-1),i.attr("role","slider"),o.expect(e,"aria-label"),m}function m(o,u,m,p){function h(){C(),_()}function f(e){ae=parseFloat(e),u.attr("aria-valuemin",e),h()}function g(e){se=parseFloat(e),u.attr("aria-valuemax",e),h()}function b(e){de=parseFloat(e)}function v(e){le=S(parseInt(e),0,6)}function E(){u.attr("aria-disabled",!!Y())}function $(){if(oe&&!Y()&&!t.isUndefined(de)){if(de<=0){var e="Slider step value must be greater than zero when in discrete mode";throw l.error(e),new Error(e)}var o=Math.floor((se-ae)/de);ce||(ce=t.element("<canvas>").css("position","absolute"),J.append(ce),ue=ce[0].getContext("2d"));var i=M();!i||i.height||i.width||(C(),i=me),ce[0].width=i.width,ce[0].height=i.height;for(var r,a=0;a<=o;a++){var s=n.getComputedStyle(J[0]);ue.fillStyle=s.color||"black",r=Math.floor((ne?i.height:i.width)*(a/o)),ue.fillRect(ne?0:r-1,ne?r-1:0,ne?i.width:2,ne?2:i.height)}}}function y(){if(ce&&ue){var e=M();ue.clearRect(0,0,e.width,e.height)}}function C(){me=Q[0].getBoundingClientRect()}function M(){return te(),me}function w(e){if(!Y()){var t;(ne?e.keyCode===r.KEY_CODE.DOWN_ARROW:e.keyCode===r.KEY_CODE.LEFT_ARROW)?t=-de:(ne?e.keyCode===r.KEY_CODE.UP_ARROW:e.keyCode===r.KEY_CODE.RIGHT_ARROW)&&(t=de),t=ie?-t:t,t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),o.$evalAsync(function(){x(V.$viewValue+t)}))}}function T(){$(),o.mouseActive=!0,ee.removeClass("md-focused"),c(function(){o.mouseActive=!1},100)}function A(){!1===o.mouseActive&&ee.addClass("md-focused")}function k(){ee.removeClass("md-focused"),u.removeClass("md-active"),y()}function x(e){V.$setViewValue(S(N(e)))}function _(){isNaN(V.$viewValue)&&(V.$viewValue=V.$modelValue),V.$viewValue=S(V.$viewValue);var e=z(V.$viewValue);o.modelValue=V.$viewValue,u.attr("aria-valuenow",V.$viewValue),D(e),G.text(V.$viewValue)}function S(e,n,o){if(t.isNumber(e))return n=t.isNumber(n)?n:ae,o=t.isNumber(o)?o:se,Math.max(n,Math.min(o,e))}function N(e){if(t.isNumber(e)){var n=Math.round((e-ae)/de)*de+ae;return n=Math.round(n*Math.pow(10,le))/Math.pow(10,le),W&&W.fitInputWidthToTextLength&&i.debounce(function(){W.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function D(e){e=B(e);var t=100*e+"%",n=ie?100*(1-e)+"%":t;ne?X.css("bottom",t):i.bidiProperty(X,"left","right",t),Z.css(ne?"height":"width",n),u.toggleClass(ie?"md-max":"md-min",0===e),u.toggleClass(ie?"md-min":"md-max",1===e)}function I(e){if(!Y()){u.addClass("md-active"),u[0].focus(),C();var t=q(U(ne?e.pointer.y:e.pointer.x)),n=S(N(t));o.$apply(function(){x(n),D(z(n))})}}function O(e){if(!Y()){u.removeClass("md-dragging");var t=q(U(ne?e.pointer.y:e.pointer.x)),n=S(N(t));o.$apply(function(){x(n),_()})}}function H(e){Y()||(pe=!0,e.stopPropagation(),u.addClass("md-dragging"),R(e))}function P(e){pe&&(e.stopPropagation(),R(e))}function L(e){pe&&(e.stopPropagation(),pe=!1)}function R(e){oe?F(ne?e.pointer.y:e.pointer.x):j(ne?e.pointer.y:e.pointer.x)}function j(e){o.$evalAsync(function(){x(q(U(e)))})}function F(e){var t=q(U(e)),n=S(N(t));D(U(e)),G.text(n)}function B(e){return Math.max(0,Math.min(e||0,1))}function U(e){var t=ne?me.top:me.left,n=ne?me.height:me.width,o=(e-t)/n;return ne||"rtl"!==i.bidi()||(o=1-o),Math.max(0,Math.min(1,ne?1-o:o))}function q(e){return ae+(ie?1-e:e)*(se-ae)}function z(e){var t=(e-ae)/(se-ae);return ie?1-t:t}a(u);var V=p[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},W=p[1],Y=(t.element(i.getClosest(u,"_md-slider-container",!0)),m.ngDisabled?t.bind(null,d(m.ngDisabled),o.$parent):function(){return u[0].hasAttribute("disabled")}),K=t.element(u[0].querySelector(".md-thumb")),G=t.element(u[0].querySelector(".md-thumb-text")),X=K.parent(),Q=t.element(u[0].querySelector(".md-track-container")),Z=t.element(u[0].querySelector(".md-track-fill")),J=t.element(u[0].querySelector(".md-track-ticks")),ee=t.element(u[0].getElementsByClassName("md-slider-wrapper")),te=(t.element(u[0].getElementsByClassName("md-slider-content")),i.throttle(C,5e3)),ne=t.isDefined(m.mdVertical),oe=t.isDefined(m.mdDiscrete),ie=t.isDefined(m.mdInvert);t.isDefined(m.min)?m.$observe("min",f):f(0),t.isDefined(m.max)?m.$observe("max",g):g(100),t.isDefined(m.step)?m.$observe("step",b):b(1),t.isDefined(m.round)?m.$observe("round",v):v(3);t.noop;m.ngDisabled&&o.$parent.$watch(m.ngDisabled,E),s.register(ee,"drag",{horizontal:!ne}),o.mouseActive=!1,ee.on("keydown",w).on("mousedown",T).on("focus",A).on("blur",k).on("$md.pressdown",I).on("$md.pressup",O).on("$md.dragstart",H).on("$md.drag",P).on("$md.dragend",L),setTimeout(h,0);var re=e.throttle(h);t.element(n).on("resize",re),o.$on("$destroy",function(){t.element(n).off("resize",re)}),V.$render=_,V.$viewChangeListeners.push(_),V.$formatters.push(S),V.$formatters.push(N);var ae,se,de,le,ce,ue,me={};C();var pe=!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:u}}o.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],t.module("material.components.slider",["material.core"]).directive("mdSlider",o).directive("mdSliderContainer",e)}(),function(){function e(e,t,o,i){function r(i){function r(e,t){t.addClass("md-sticky-clone");var n={element:e,clone:t};return f.items.push(n),o.nextTick(function(){p.prepend(n.clone)}),h(),function(){f.items.forEach(function(t,n){t.element[0]===e[0]&&(f.items.splice(n,1),t.clone.remove())}),h()}}function s(){f.items.forEach(d),f.items=f.items.sort(function(e,t){return e.top<t.top?-1:1});for(var e,t=p.prop("scrollTop"),n=f.items.length-1;n>=0;n--)if(t>f.items[n].top){e=f.items[n];break}c(e)}function d(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==p[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var i=o.floatingScrollbars()?"0":n;o.bidi(e.clone,"margin-left",e.left,i),o.bidi(e.clone,"margin-right",i,e.right)}function l(){var e=p.prop("scrollTop"),t=e>(l.prevScrollTop||0);if(l.prevScrollTop=e,0===e)return void c(null);if(t){if(f.next&&f.next.top<=e)return void c(f.next);if(f.current&&f.next&&f.next.top-e<=f.next.height)return void m(f.current,e+(f.next.top-f.next.height-e))}if(!t){if(f.current&&f.prev&&e<f.current.top)return void c(f.prev);if(f.next&&f.current&&e>=f.next.top-f.current.height)return void m(f.current,e+(f.next.top-e-f.current.height))}f.current&&m(f.current,e)}function c(e){if(f.current!==e){f.current&&(m(f.current,null),u(f.current,null)),e&&u(e,"active"),f.current=e;var t=f.items.indexOf(e);f.next=f.items[t+1],f.prev=f.items[t-1],u(f.next,"next"),u(f.prev,"prev")}}function u(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function m(t,i){t&&(null===i||i===n?t.translateY&&(t.translateY=null,t.clone.css(e.CSS.TRANSFORM,"")):(t.translateY=i,o.bidi(t.clone,e.CSS.TRANSFORM,"translate3d("+t.left+"px,"+i+"px,0)","translateY("+i+"px)")))}var p=i.$element,h=t.throttle(s);a(p),p.on("$scrollstart",h),p.on("$scroll",l);var f;return f={prev:null,current:null,next:null,items:[],add:r,refreshElements:s}}function a(e){function n(){+o.now()-r>a?(i=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),t.throttle(n))}var i,r,a=200;e.on("scroll touchmove",function(){i||(i=!0,t.throttle(n),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),r=+o.now()})}var s=o.checkStickySupport();return function(e,t,n){var o=t.controller("mdContent");if(o)if(s)t.css({position:s,top:0,"z-index":2});else{var a=o.$element.data("$$sticky");a||(a=r(o),o.$element.data("$$sticky",a));var d=n||i(t.clone())(e),l=a.add(t,d);e.$on("$destroy",l)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(e,n,o,i,r){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(a,s,d,l,c){function u(e){return t.element(e[0].querySelector(".md-subheader-content"))}o(s),s.addClass("_md"),i.prefixer().removeAttribute(s,"ng-repeat");var m=s[0].outerHTML;d.$set("role","heading"),r.expect(s,"aria-level","2"),c(a,function(e){u(s).append(e)}),s.hasClass("md-no-sticky")||c(a,function(t){var o=n('<div class="md-subheader-wrapper" aria-hidden="true">'+m+"</div>")(a);i.nextTick(function(){u(o).append(t)}),e(a,s,o)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e){function t(e){function t(t,i,r){var a=e(r[n]);i.on(o,function(e){t.$applyAsync(function(){a(t,{$event:e})})})}return{restrict:"A",link:t}}t.$inject=["$parse"];var n="md"+e,o="$md."+e.toLowerCase();return t}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,n,o,i,r,a,s){function d(e,d){var c=l.compile(e,d).post;return e.addClass("md-dragging"),function(e,d,l,u){function m(t){b&&b(e)||(t.stopPropagation(),d.addClass("md-dragging"),y={width:v.prop("offsetWidth")})}function p(e){if(y){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/y.width,n=g.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),v.css(o.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),y.translate=n}}function h(t){if(y){t.stopPropagation(),d.removeClass("md-dragging"),v.css(o.CSS.TRANSFORM,"");(g.$viewValue?y.translate<.5:y.translate>.5)&&f(!g.$viewValue),y=null,e.skipToggle=!0,s(function(){e.skipToggle=!1},1)}}function f(t){e.$apply(function(){g.$setViewValue(t),g.$render()})}var g=(u[0],u[1]||n.fakeNgModel()),b=(u[2],null);null!=l.disabled?b=function(){return!0}:l.ngDisabled&&(b=i(l.ngDisabled));var v=t.element(d[0].querySelector(".md-thumb-container")),E=t.element(d[0].querySelector(".md-container")),$=t.element(d[0].querySelector(".md-label"));r(function(){d.removeClass("md-dragging")}),c(e,d,l,u),b&&e.$watch(b,function(e){d.attr("tabindex",e?-1:0)}),l.$observe("mdInvert",function(e){var t=n.parseAttributeBoolean(e);t?d.prepend($):d.prepend(E),d.toggleClass("md-inverted",t)}),a.register(E,"drag"),E.on("$md.dragstart",m).on("$md.drag",p).on("$md.dragend",h);var y}}var l=e[0];return{restrict:"E",priority:o.BEFORE_NG_ARIA,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:["^?mdInputContainer","?ngModel","?^form"],compile:d}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),function(){t.module("material.components.tabs",["material.core","material.components.icon"])}(),function(){function e(){function e(e,t){var o,i,r=e.canvas,a=n(e);for(o=0;o<a.length;o++)if(a[o]>=t){i=a[o];break}return Math.max(0,i-r.clientWidth)}function t(e,t){var i,r,a=e.canvas,s=o(e)-a.clientWidth,d=n(e);for(i=0;d.length,d[i]<=t+a.clientWidth;i++)r=d[i];return Math.min(s,r)}function n(e){var t,n,o=0,i=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],i.push(o),o+=n.offsetWidth;return i}function o(e){var t,n,o=0;for(t=0;t<e.tabs.length;t++)n=e.tabs[t],o+=n.offsetWidth;return o}return{decreasePageOffset:e,increasePageOffset:t,getTabOffsets:n,getTotalTabsWidth:o}}t.module("material.components.tabs").service("MdTabsPaginationService",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e){r=e}function o(e,t){this.$onInit=function(){var n=this;n.highlightAction&&(t.highlightClasses=["md-highlight",n.highlightClass]),t.$watch(function(){return r},function(){n.content=r}),this.resolve=function(){e.hide(a)}}}function i(e,n,o,i){function a(t,a,s){r=s.textContent||s.content;var c=!i("gt-sm");return a=o.extractElementByName(a,"md-toast",!0),s.element=a,s.onSwipe=function(e,t){var i=e.type.replace("$md.",""),r=i.replace("swipe","");"down"===r&&-1!=s.position.indexOf("top")&&!c||"up"===r&&(-1!=s.position.indexOf("bottom")||c)||("left"!==r&&"right"!==r||!c)&&(a.addClass("md-"+i),o.nextTick(n.cancel))},s.openClass=d(s.position),a.addClass(s.toastClass),s.parent.addClass(s.openClass),o.hasComputedStyle(s.parent,"position","static")&&s.parent.css("position","relative"),a.on(l,s.onSwipe),a.addClass(c?"md-bottom":s.position.split(" ").map(function(e){return"md-"+e}).join(" ")),s.parent&&s.parent.addClass("md-toast-animating"),e.enter(a,s.parent).then(function(){s.parent&&s.parent.removeClass("md-toast-animating")})}function s(t,n,i){return n.off(l,i.onSwipe),i.parent&&i.parent.addClass("md-toast-animating"),i.openClass&&i.parent.removeClass(i.openClass),(1==i.$destroy?n.remove():e.leave(n)).then(function(){i.parent&&i.parent.removeClass("md-toast-animating"),o.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","")})}function d(e){return i("gt-xs")?"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}var l="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:a,onRemove:s,toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,n){if(n.autoWrap&&e&&!/md-toast-content/g.test(e)){var o=document.createElement("md-template");o.innerHTML=e;for(var i=0;i<o.children.length;i++)if("MD-TOAST"===o.children[i].nodeName){var r=t.element('<div class="md-toast-content">');r.append(t.element(o.children[i].childNodes)),o.children[i].appendChild(r[0])}return o.innerHTML}return e||""}}}o.$inject=["$mdToast","$scope"],i.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"];var r,a="ok";return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:i}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","highlightClass","theme","parent"],options:["$mdToast","$mdTheming",function(e,t){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:o,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",n).addMethod("updateContent",n)}e.$inject=["$mdToast"],n.$inject=["$$interimElementProvider"],t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",n)}(),function(){function e(e,n,o,i,r){var a=t.bind(null,o.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(s,d,l){d.addClass("_md"),i(d),o.nextTick(function(){d.addClass("_md-toolbar-transitions")},!1),t.isDefined(l.mdScrollShrink)&&function(){function i(e){var t=d.parent().find("md-content");!f&&t.length&&c(null,t),e=s.$eval(e),!1===e?g():g=m()}function c(e,t){t&&d.parent()[0]===t.parent()[0]&&(f&&f.off("scroll",$),f=t,g=m())}function u(e){var t=e?e.target.scrollTop:v;y(),b=Math.min(h/E,Math.max(0,b+t-v)),d.css(n.CSS.TRANSFORM,a([-b*E])),f.css(n.CSS.TRANSFORM,a([(h-b)*E])),v=t,o.nextTick(function(){var e=d.hasClass("md-whiteframe-z1");e&&!b?r.removeClass(d,"md-whiteframe-z1"):!e&&b&&r.addClass(d,"md-whiteframe-z1")})}function m(){return f?(f.on("scroll",$),f.attr("scroll-shrink","true"),o.nextTick(p,!1),function(){f.off("scroll",$),f.attr("scroll-shrink","false"),p()}):t.noop}function p(){h=d.prop("offsetHeight");var e=-h*E+"px";f.css({"margin-top":e,"margin-bottom":e}),u()}var h,f,g=t.noop,b=0,v=0,E=l.mdShrinkSpeedFactor||.5,$=e.throttle(u),y=o.debounce(p,5e3);s.$on("$mdContentLoaded",c),l.$observe("mdScrollShrink",i),l.ngShow&&s.$watch(l.ngShow,p),l.ngHide&&s.$watch(l.ngHide,p),s.$on("$destroy",g)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function n(e,n,o,i,r,a,s,d){function l(l,g,b){function v(){l.mdZIndex=l.mdZIndex||m,l.mdDelay=l.mdDelay||p,f[l.mdDirection]||(l.mdDirection=h)}function E(e){var t=e||r(g.text().trim())(l.$parent);(!D.attr("aria-label")&&!D.attr("aria-labelledby")||D.attr("md-labeled-by-tooltip"))&&(D.attr("aria-label",t),D.attr("md-labeled-by-tooltip")||D.attr("md-labeled-by-tooltip",N))}function $(){v(),x&&x.panelEl&&x.panelEl.removeClass(T),T="md-origin-"+l.mdDirection,A=f[l.mdDirection],k=s.newPanelPosition().relativeTo(D).addPanelPosition(A.x,A.y),x&&x.panelEl&&(x.panelEl.addClass(T),x.updatePosition(k))}function y(t){y.queued&&y.value===!!t||!y.queued&&l.mdVisible===!!t||(y.value=!!t,y.queued||(t?(y.queued=!0,S=e(function(){l.mdVisible=y.value,y.queued=!1,S=null,l.visibleWatcher||C(l.mdVisible)},l.mdDelay)):a.nextTick(function(){l.mdVisible=!1,l.visibleWatcher||C(!1)})))}function C(e){e?M():w()}function M(){if(!g[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!x){var e=t.element(document.body),n=s.newPanelAnimation().openFrom(D).closeTo(D).withAnimation({open:"md-show",close:"md-hide"}),o={id:N,attachTo:e,contentElement:g,propagateContainerEvents:!0,panelClass:"md-tooltip "+T,animation:n,position:k,zIndex:l.mdZIndex,focusOnOpen:!1};x=s.create(o)}x.open().then(function(){x.panelEl.attr("role","tooltip")})}function w(){x&&x.close()}var T,A,k,x,_,S,N="md-tooltip-"+a.nextUid(),D=a.getParentWithPointerEvents(g),I=o.throttle($),O=!1,H=null;v(),E(),g.detach(),$(),function(){function t(e){return e.some(function(e){return"disabled"===e.attributeName&&D[0].disabled}),!1}function o(){y(!1)}function r(){H=document.activeElement===D[0]}function s(e){"focus"===e.type&&H?H=!1:l.mdVisible||(D.on(u,m),y(!0),"touchstart"===e.type&&D.one("touchend",function(){a.nextTick(function(){i.one("touchend",m)},!1)}))}function m(){_=l.hasOwnProperty("mdAutohide")?l.mdAutohide:b.hasOwnProperty("mdAutohide"),(_||O||i[0].activeElement!==D[0])&&(S&&(e.cancel(S),y.queued=!1,S=null),D.off(u,m),D.triggerHandler("blur"),y(!1)),O=!1}function p(){O=!0}function h(){d.deregister("scroll",o,!0),d.deregister("blur",r),d.deregister("resize",I),D.off(c,s).off(u,m).off("mousedown",p),m(),f&&f.disconnect()}if(D[0]&&"MutationObserver"in n){var f=new MutationObserver(function(e){t(e)&&a.nextTick(function(){y(!1)})});f.observe(D[0],{attributes:!0})}H=!1,d.register("scroll",o,!0),d.register("blur",r),d.register("resize",I),l.$on("$destroy",h),D.on("mousedown",p),D.on(c,s)}(),function(){function e(){l.$destroy()}if(g[0]&&"MutationObserver"in n){var t=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||l.visibleWatcher||(l.visibleWatcher=l.$watch("mdVisible",C))})});t.observe(g[0],{attributes:!0}),b.hasOwnProperty("mdVisible")&&(l.visibleWatcher=l.$watch("mdVisible",C))}else l.visibleWatcher=l.$watch("mdVisible",C);l.$watch("mdDirection",$),g.one("$destroy",e),D.one("$destroy",e),l.$on("$destroy",function(){y(!1),x&&x.destroy(),t&&t.disconnect(),g.remove()}),g.text().indexOf(r.startSymbol())>-1&&l.$watch(function(){return g.text().trim()},E)}()}var c="focus touchstart mouseenter",u="blur touchcancel mouseleave",m=100,p=0,h="bottom",f={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:l}}function o(){function n(e){r[e.type]&&r[e.type].forEach(function(t){t.call(this,e)},this)}function o(t,o,i){var s=r[t]=r[t]||[];s.length||(i?e.addEventListener(t,n,!0):a.on(t,n)),-1===s.indexOf(o)&&s.push(o)}function i(t,o,i){var s=r[t],d=s?s.indexOf(o):-1;d>-1&&(s.splice(d,1),0===s.length&&(i?e.removeEventListener(t,n,!0):a.off(t,n)))}var r={},a=t.element(e);return{register:o,deregister:i}}n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],t.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",n).service("$$mdTooltipRegistry",o)}(),function(){function e(){return{restrict:"AE",controller:n,controllerAs:"$ctrl",bindToController:!0}}function n(e){e.addClass("md-truncate")}n.$inject=["$element"],t.module("material.components.truncate",["material.core"]).directive("mdTruncate",e)}(),function(){function e(){return{controller:o,template:n,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}function n(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}function o(e,n,o,i,r,a,s,d,l){this.$rootScope=r,this.$scope=s,this.$element=d,this.$attrs=l,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=o.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=i(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),t.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,t.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=d[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var c=t.bind(this,this.updateSize);e(t.bind(this,function(){c();var e=n.debounce(c,10,null,!1),o=t.element(a);this.size||e(),o.on("resize",e),s.$on("$destroy",function(){o.off("resize",e)}),s.$emit("$md-resize-enable"),s.$on("$md-resize",c)}))}function i(e){return{controller:r,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,n){var o=n.mdVirtualRepeat,i=o.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),r=i[1],a=e(i[2]),s=n.mdExtraName&&e(n.mdExtraName);return function(e,t,n,o,i){o[0].link_(o[1],i,r,a,s)}}}}function r(e,n,o,i,r,a,s,d){this.$scope=e,this.$element=n,this.$attrs=o,this.$browser=i,this.$document=r,this.$mdUtil=d,this.$rootScope=a,this.$$rAF=s,this.onDemand=d.parseAttributeBoolean(o.mdOnDemand),this.browserCheckUrlChange=i.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(o.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=t.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",t.bind(this,this.cleanupBlocks_))}function a(e){if(!t.isFunction(e.getItemAtIndex)||!t.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ");this.model=e}function s(e){return{restrict:"A",link:function(e,t,n){var o=e.$eval(n.mdForceHeight)||null;o&&t&&(t[0].style.height=o)}}}o.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],r.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],i.$inject=["$parse"],t.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",e).directive("mdVirtualRepeat",i).directive("mdForceHeight",s);o.prototype.register=function(e){this.repeater=e,t.element(this.scroller).on("scroll wheel touchmove touchend",t.bind(this,this.handleScroll_))},o.prototype.isHorizontal=function(){return this.horizontal},o.prototype.getSize=function(){return this.size},o.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},o.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},o.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated())},o.prototype.getScrollSize=function(){return this.scrollSize},o.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},o.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var o=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var r=0;r<o;r++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-o*this.maxElementPixels+"px",this.sizer.appendChild(i)}},o.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var o=this.originalSize;this.originalSize=null,o||this.updateSize(),this.setSize_(o||this.size)}this.repeater.containerUpdated()}},o.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},o.prototype.getScrollOffset=function(){return this.scrollOffset},o.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},o.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;e>n&&(e=n-1),this.scrollTo(t*e)},o.prototype.resetScroll=function(){this.scrollTo(0)},o.prototype.handleScroll_=function(){var e="rtl"!=document.dir&&"rtl"!=document.body.dir;e||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var t=this.isHorizontal()?e?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(t===this.scrollOffset||t>this.scrollSize-this.size)){var n=this.repeater.getItemSize();if(n){var o=Math.max(0,Math.floor(t/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||e?o*n:-o*n)+"px)";if(this.scrollOffset=t,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var r=Math.floor(t/n);r!==this.topIndex&&r<this.repeater.getItemCount()&&(this.topIndex=r,this.bindTopIndex.assign(this.$scope,r),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},r.Block,r.prototype.link_=function(e,n,o,i,r){this.container=e,this.transclude=n,this.repeatName=o,this.rawRepeatListExpression=i,this.extraName=r,this.sized=!1,this.repeatListExpression=t.bind(this,this.repeatListExpression_),this.container.register(this)},r.prototype.cleanupBlocks_=function(){t.forEach(this.pooledBlocks,function(e){e.element.remove()})},r.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},r.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new a(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},r.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==t.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e){e&&e.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof a&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},r.prototype.getItemSize=function(){return this.itemSize},r.prototype.getItemCount=function(){return this.itemsLength},r.prototype.virtualRepeatUpdate_=function(e,n){this.isVirtualRepeatUpdating_=!0;var o=e&&e.length||0,i=!1;if(this.items&&o<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var r=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(r)}o!==this.itemsLength&&(i=!0,this.itemsLength=o),this.items=e,(e!==n||i)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,i&&this.container.setScrollSize(o*this.itemSize),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=t.noop;var a,s,d=[],l=[];for(a=this.newStartIndex;a<this.newEndIndex&&null==this.blocks[a];a++)s=this.getBlock_(a),this.updateBlock_(s,a),d.push(s);for(;null!=this.blocks[a];a++)this.updateBlock_(this.blocks[a],a);for(var c=a-1;a<this.newEndIndex;a++)s=this.getBlock_(a),this.updateBlock_(s,a),l.push(s);if(d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.$element[0].nextSibling),l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.blocks[c]&&this.blocks[c].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var u=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(u)}.bind(this))}this.isVirtualRepeatUpdating_=!1},r.prototype.getBlock_=function(e){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var n;return this.transclude(t.bind(this,function(t,o){n={element:t,new:!0,scope:o},this.updateScope_(o,e),this.parentNode.appendChild(t[0])})),n},r.prototype.updateBlock_=function(e,t){this.blocks[t]=e,(e.new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},r.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},r.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},r.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},r.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},a.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},s.$inject=["$mdUtil"]}(),function(){function e(e){function t(t,a,s){var d="";s.$observe("mdWhiteframe",function(t){(t=parseInt(t,10)||r)!=n&&(t>i||t<o)&&(e.warn("md-whiteframe attribute value is invalid. It should be a number between "+o+" and "+i,a[0]),t=r);var l=t==n?"":"md-whiteframe-"+t+"dp";s.$updateClass(l,d),d=l})}var n=-1,o=1,i=24,r=4;return{link:t}}e.$inject=["$log"],t.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),function(){function e(e,s,d,l,c,u,m,p,h,f,g,b){function v(){e.requireMatch&&Se&&Se.$setValidity("md-require-match",!!e.selectedItem||!e.searchText)}function E(){function t(){var e=Me.scrollContainer.getBoundingClientRect(),t={};e.right>m.right-r&&(t.left=c.right-e.width+"px"),Me.$.scrollContainer.css(t)}if(!Me)return d.nextTick(E,!1,e);var n,l=(e.dropdownItems||i)*o,c=Me.wrap.getBoundingClientRect(),u=Me.snap.getBoundingClientRect(),m=Me.root.getBoundingClientRect(),p=u.bottom-m.top,f=m.bottom-u.top,g=c.left-m.left,b=c.width,v=function(){var e=0,t=s.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),$=e.dropdownPosition;if($||($=p>f&&m.height-p-r<l?"top":"bottom"),h.mdFloatingLabel&&(g+=a,b-=2*a),n={left:g+"px",minWidth:b+"px",maxWidth:Math.max(c.right-m.left,m.right-c.left)-r+"px"},"top"===$)n.top="auto",n.bottom=f+"px",n.maxHeight=Math.min(l,c.top-m.top-r)+"px";else{var y=m.bottom-c.bottom-r+d.getViewportTop();n.top=p-v+"px",n.bottom="auto",n.maxHeight=Math.min(l,y)+"px"}Me.$.scrollContainer.css(n),d.nextTick(t,!1)}function $(){Me.$.root.length&&(c(Me.$.scrollContainer),Me.$.scrollContainer.detach(),Me.$.root.append(Me.$.scrollContainer),m.pin&&m.pin(Me.$.scrollContainer,p))}function y(){Me.input.focus()}function C(){var n=parseInt(e.delay,10)||0;h.$observe("disabled",function(e){$e.isDisabled=d.parseAttributeBoolean(e,!1)}),h.$observe("required",function(e){$e.isRequired=d.parseAttributeBoolean(e,!1)}),h.$observe("readonly",function(e){$e.isReadonly=d.parseAttributeBoolean(e,!1)}),e.$watch("searchText",n?d.debounce(j,n):j),e.$watch("selectedItem",I),t.element(u).on("resize",Ne),e.$on("$destroy",M)}function M(){if($e.hidden||d.enableScrolling(),t.element(u).off("resize",Ne),Me){var e=["ul","scroller","scrollContainer","input"];t.forEach(e,function(e){Me.$[e].remove()})}}function w(){$e.hidden||E()}function T(){var e=A();Me={main:s[0],scrollContainer:s[0].querySelector(".md-virtual-repeat-container"),scroller:s[0].querySelector(".md-virtual-repeat-scroller"),ul:s.find("ul")[0],input:s.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body},Me.li=Me.ul.getElementsByTagName("li"),Me.$=k(Me),Se=Me.$.input.controller("ngModel")}function A(){var e,n;for(e=s;e.length&&(n=e.attr("md-autocomplete-snap"),!t.isDefined(n));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===n.toLowerCase()?e[0]:s.find("md-autocomplete-wrap")[0]};var o=s.find("md-autocomplete-wrap")[0];return{snap:o,wrap:o}}function k(e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t.element(e[o]));return n}function x(e,n){!e&&n?(E(),ce(!0,De.Count|De.Selected),Me&&(d.disableScrollAround(Me.ul),_e=_(t.element(Me.wrap)))):e&&!n&&(d.enableScrolling(),_e&&(_e(),_e=null))}function _(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}function S(){Te=!0}function N(){ke||$e.hidden||Me.input.focus(),Te=!1,$e.hidden=G()}function D(){Me.input.focus()}function I(n,o){v(),n?V(n).then(function(t){e.searchText=t,P(n,o)}):o&&e.searchText&&V(o).then(function(n){t.isString(e.searchText)&&n.toString().toLowerCase()===e.searchText.toLowerCase()&&(e.searchText="")}),n!==o&&O()}function O(){t.isFunction(e.itemChange)&&e.itemChange(W(e.selectedItem))}function H(){t.isFunction(e.textChange)&&e.textChange()}function P(e,t){Ae.forEach(function(n){n(e,t)})}function L(e){-1==Ae.indexOf(e)&&Ae.push(e)}function R(e){var t=Ae.indexOf(e);-1!=t&&Ae.splice(t,1)}function j(t,n){$e.index=Y(),t!==n&&(v(),V(e.selectedItem).then(function(o){t!==o&&(e.selectedItem=null,t!==n&&H(),ie()?ge():($e.matches=[],K(!1),ce(!1,De.Count)))}))}function F(e){ke=!1,Te||($e.hidden=G(),Ee("ngBlur",{$event:e}))}function B(e){e&&(Te=!1,ke=!1),Me.input.blur()}function U(e){ke=!0,X()&&ie()&&ge(),$e.hidden=G(),Ee("ngFocus",{$event:e})}function q(t){switch(t.keyCode){case l.KEY_CODE.DOWN_ARROW:if($e.loading)return;t.stopPropagation(),t.preventDefault(),$e.index=Math.min($e.index+1,$e.matches.length-1),me(),ce(!1,De.Selected);break;case l.KEY_CODE.UP_ARROW:if($e.loading)return;t.stopPropagation(),t.preventDefault(),$e.index=$e.index<0?$e.matches.length-1:Math.max(0,$e.index-1),me(),ce(!1,De.Selected);break;case l.KEY_CODE.TAB:if(N(),$e.hidden||$e.loading||$e.index<0||$e.matches.length<1)return;re($e.index);break;case l.KEY_CODE.ENTER:if($e.hidden||$e.loading||$e.index<0||$e.matches.length<1)return;if(te())return;t.stopPropagation(),t.preventDefault(),re($e.index);break;case l.KEY_CODE.ESCAPE:if(t.preventDefault(),!Q())return;t.stopPropagation(),se(),e.searchText&&Z("clear")&&de(),$e.hidden=!0,Z("blur")&&B(!0)}}function z(){return t.isNumber(e.minLength)?e.minLength:1}function V(n){return f.when(function(t){return t&&e.itemText?e.itemText(W(t)):null}(n)||n).then(function(e){return e&&!t.isString(e)&&g.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e})}function W(e){if(!e)return n;var t={};return $e.itemName&&(t[$e.itemName]=e),t}function Y(){return e.autoselect?0:-1}function K(e){$e.loading!=e&&($e.loading=e),$e.hidden=G()}function G(){return!X()||!J()}function X(){return!($e.loading&&!ee())&&(!te()&&!!ke)}function Q(){return Z("blur")||!$e.hidden||$e.loading||Z("clear")&&e.searchText}function Z(t){return!e.escapeOptions||-1!==e.escapeOptions.toLowerCase().indexOf(t)}function J(){return ie()&&ee()||fe()}function ee(){return!!$e.matches.length}function te(){return!!$e.scope.selectedItem}function ne(){return $e.loading&&!te()}function oe(){return V($e.matches[$e.index])}function ie(){return(e.searchText||"").length>=z()}function re(t){d.nextTick(function(){V($e.matches[t]).then(function(e){var t=Me.$.input.controller("ngModel");t.$setViewValue(e),t.$render()}).finally(function(){e.selectedItem=$e.matches[t],K(!1)})},!1)}function ae(){se(),de()}function se(){$e.index=0,$e.matches=[]}function de(){K(!0),e.searchText="";var t=document.createEvent("CustomEvent");t.initCustomEvent("change",!0,!0,{value:""}),Me.input.dispatchEvent(t),Me.input.blur(),e.searchText="",Me.input.focus()}function le(n){function o(t){we[r]=t,(n||"")===(e.searchText||"")&&be(t)}var i=e.$parent.$eval(Ce),r=n.toLowerCase(),a=t.isArray(i),s=!!i.then;a?o(i):s&&function(t){t&&(t=f.when(t),xe++,K(!0),d.nextTick(function(){t.then(o).finally(function(){0==--xe&&K(!1)})},!0,e))}(i)}function ce(e,t){var n=e?"polite":"assertive",o=[];t&De.Selected&&-1!==$e.index&&o.push(oe()),t&De.Count&&o.push(f.resolve(ue())),f.all(o).then(function(e){b.announce(e.join(" "),n)})}function ue(){switch($e.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+$e.matches.length+" matches available."}}function me(){if(Me.li[0]){var e=Me.li[0].offsetHeight,t=e*$e.index,n=t+e,o=Me.scroller.clientHeight,i=Me.scroller.scrollTop;t<i?he(t):n>i+o&&he(n-o)}}function pe(){return 0!==xe}function he(e){Me.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function fe(){var e=($e.scope.searchText||"").length;return $e.hasNotFound&&!ee()&&(!$e.loading||pe())&&e>=z()&&(ke||Te)&&!te()}function ge(){var t=e.searchText||"",n=t.toLowerCase();!e.noCache&&we[n]?be(we[n]):le(t),$e.hidden=G()}function be(t){$e.matches=t,$e.hidden=G(),$e.loading&&K(!1),e.selectOnMatch&&ve(),E(),ce(!0,De.Count)}function ve(){var t=e.searchText,n=$e.matches,o=n[0];1===n.length&&V(o).then(function(n){var o=t==n;e.matchInsensitive&&!o&&(o=t.toLowerCase()==n.toLowerCase()),o&&re(0)})}function Ee(t,n){h[t]&&e.$parent.$eval(h[t],n||{})}var $e=this,ye=e.itemsExpr.split(/ in /i),Ce=ye[1],Me=null,we={},Te=!1,Ae=[],ke=!1,xe=0,_e=null,Se=null,Ne=d.debounce(w);!function(e,t,n){Object.defineProperty($e,e,{get:function(){return n},set:function(e){var o=n;n=e,t(e,o)}})}("hidden",x,!0),$e.scope=e,$e.parent=e.$parent,$e.itemName=ye[0],$e.matches=[],$e.loading=!1,$e.hidden=!0,$e.index=null,$e.id=d.nextUid(),$e.isDisabled=null,$e.isRequired=null,$e.isReadonly=null,$e.hasNotFound=!1,$e.keydown=q,$e.blur=F,$e.focus=U,$e.clear=ae,$e.select=re,$e.listEnter=S,$e.listLeave=N,$e.mouseUp=D,$e.getCurrentDisplayValue=oe,$e.registerSelectedItemWatcher=L,$e.unregisterSelectedItemWatcher=R,$e.notFoundVisible=fe,$e.loadingIsVisible=ne,$e.positionDropdown=E;var De={Count:1,Selected:2};return function(){d.initOptionalProperties(e,h,{searchText:"",selectedItem:null,clearButton:!1}),c(s),C(),d.nextTick(function(){T(),$(),e.autofocus&&s.on("focus",y)})}()}e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var o=48,i=5,r=8,a=2}(),function(){function e(e){return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton"},compile:function(e,n){var o=["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"],i=e.find("input");return o.forEach(function(e){var t=n[n.$normalize(e)];null!==t&&i.attr(e,t)}),function(e,n,o,i){i.hasNotFound=!!n.attr("md-has-not-found"),t.isDefined(o.mdClearButton)||e.floatingLabel||(e.clearButton=!0)}},template:function(t,n){var o=function(){var e=t.find("md-not-found").detach(),n=e.length?e.html():"";return n?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+n+"</li>":""}(),i=function(){var e=t.find("md-item-template").detach(),n=e.length?e.html():t.html();return e.length||t.empty(),"<md-autocomplete-parent-scope md-autocomplete-replace>"+n+"</md-autocomplete-parent-scope>"}(),r=t.html(),a=n.tabindex;return o&&t.attr("md-has-not-found",!0),t.attr("tabindex","-1"),"        <md-autocomplete-wrap            ng-class=\"{ 'md-whiteframe-z1': !floatingLabel,                         'md-menu-showing': !$mdAutocompleteCtrl.hidden,                         'md-show-clear-button': !!clearButton }\">          "+function(){return n.mdFloatingLabel?'            <md-input-container ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="search"                  '+(null!=a?'tabindex="'+a+'"':"")+'                  id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                  name="{{inputName}}"                  autocomplete="off"                  ng-required="$mdAutocompleteCtrl.isRequired"                  ng-readonly="$mdAutocompleteCtrl.isReadonly"                  ng-minlength="inputMinlength"                  ng-maxlength="inputMaxlength"                  ng-disabled="$mdAutocompleteCtrl.isDisabled"                  ng-model="$mdAutocompleteCtrl.scope.searchText"                  ng-model-options="{ allowInvalid: true }"                  ng-keydown="$mdAutocompleteCtrl.keydown($event)"                  ng-blur="$mdAutocompleteCtrl.blur($event)"                  ng-focus="$mdAutocompleteCtrl.focus($event)"                  aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                  aria-label="{{floatingLabel}}"                  aria-autocomplete="list"                  role="combobox"                  aria-haspopup="true"                  aria-activedescendant=""                  aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>              <div md-autocomplete-parent-scope md-autocomplete-replace>'+r+"</div>            </md-input-container>":'            <input type="search"                '+(null!=a?'tabindex="'+a+'"':"")+'                id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-if="!floatingLabel"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-readonly="$mdAutocompleteCtrl.isReadonly"                ng-minlength="inputMinlength"                ng-maxlength="inputMaxlength"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                placeholder="{{placeholder}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                aria-label="{{placeholder}}"                aria-autocomplete="list"                role="combobox"                aria-haspopup="true"                aria-activedescendant=""                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>'}()+"          "+function(){return'<button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+e.mdClose+'"></md-icon></button>'}()+'          <md-progress-linear              class="'+(n.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-mouseenter="$mdAutocompleteCtrl.listEnter()"              ng-mouseleave="$mdAutocompleteCtrl.listLeave()"              ng-mouseup="$mdAutocompleteCtrl.mouseUp()"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-autocomplete-suggestions-container md-whiteframe-z1"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              role="presentation">            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}">              <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-click="$mdAutocompleteCtrl.select($index)"                  md-extra-name="$mdAutocompleteCtrl.itemName">                  '+i+"                  </li>"+o+"            </ul>          </md-virtual-repeat-container>        </md-autocomplete-wrap>"}}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,t){function n(e,n,o){return function(e,n,i){function r(n,o){s[o]=e[n],e.$watch(n,function(e){t.nextTick(function(){s[o]=e})})}var a=e.$mdAutocompleteCtrl,s=a.parent.$new(),d=a.itemName;r("$index","$index"),r("item",d),function(){var t=!1,n=!1;e.$watch(function(){n||t||(t=!0,e.$$postDigest(function(){n||s.$digest(),t=n=!1}))}),s.$watch(function(){n=!0})}(),o(s,function(e){n.after(e)})}}return{restrict:"AE",compile:n,terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}e.$inject=["$scope","$element","$attrs"],t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(e,t){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(n){return{term:e(n),contentText:t(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var n=this.resolveTokens(e);this.$element.empty(),n.forEach(function(e){if(e.isMatch){var n=t.element('<span class="highlight">').text(e.text);this.$element.append(n)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(e){function t(t,o){var i=e.slice(t,o);i&&n.push(i)}var n=[],o=0;return e.replace(this.regex,function(e,i){t(o,i),n.push({text:e,isMatch:!0}),o=i+e.length}),t(o),n},e.prototype.createRegex=function(e,t){var n="",o="",i=this.sanitizeRegex(e);return t.indexOf("^")>=0&&(n="^"),t.indexOf("$")>=0&&(o="$"),new RegExp(n+i+o,t.replace(/[$\^]/g,""))},e.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,"\\$&")}}(),function(){function e(e,t){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,o){var i=t(o.mdHighlightText),r=e(n.html());return function(e,t,n,o){o.init(i,r)}}}}e.$inject=["$interpolate","$parse"],t.module("material.components.autocomplete").directive("mdHighlightText",e)}(),function(){function o(e,t,o,i,r){this.$scope=e,this.$element=t,this.$mdConstant=o,this.$timeout=i,this.$mdUtil=r,this.isEditting=!1,this.parentController=n,this.enableChipEdit=!1}o.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],t.module("material.components.chips").controller("MdChipCtrl",o),o.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("mousedown",this.chipMouseDown.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},o.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return t.element(e[0])},o.prototype.getContentElement=function(){return t.element(this.getChipContent().children()[0])},o.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},o.prototype.goOutOfEditMode=function(){if(this.isEditting){this.isEditting=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex();this.getContentElement().text()?(this.parentController.updateChipContents(e,this.getContentElement().text()),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},o.prototype.selectNodeContents=function(t){var n,o;document.body.createTextRange?(n=document.body.createTextRange(),n.moveToElementText(t),n.select()):e.getSelection&&(o=e.getSelection(),n=document.createRange(),n.selectNodeContents(t),o.removeAllRanges(),o.addRange(n))},o.prototype.goInEditMode=function(){this.isEditting=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},o.prototype.chipKeyDown=function(e){this.isEditting||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditting&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},o.prototype.chipMouseDown=function(){this.getChipIndex()==this.parentController.selectedChip&&this.enableChipEdit&&!this.isEditting&&this.goInEditMode()}}(),function(){function e(e,o,i,r){function a(n,o,a,d){var l=d.shift(),c=d.shift(),u=t.element(o[0].querySelector(".md-chip-content"));e(o),l&&(c.init(l),u.append(i(s)(n)),u.on("blur",function(){l.resetSelectedChip(),l.$scope.$applyAsync()})),r(function(){l&&l.shouldFocusLastChip&&l.focusLastChipThenInput()})}var s=o.processTemplate(n);return{restrict:"E",require:["^?mdChips","mdChip"],link:a,controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],t.module("material.components.chips").directive("mdChip",e);var n='    <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">      {{$mdChipsCtrl.deleteHint}}    </span>'}(),function(){function e(e){function t(t,n,o,i){n.on("click",function(e){t.$apply(function(){i.removeChip(t.$$replacedScope.$index)})}),e(function(){n.attr({tabindex:-1,"aria-hidden":!0}),n.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:t}}e.$inject=["$timeout"],t.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(e){function t(t,n,o){var i=t.$parent.$mdChipsCtrl,r=i.parent.$new(!1,i.parent);r.$$replacedScope=t,r.$chip=t.$chip,r.$index=t.$index,r.$mdChipsCtrl=i;var a=i.$scope.$eval(o.mdChipTransclude);n.html(a),e(n.contents())(r)}return{restrict:"EA",terminal:!0,link:t,scope:!1}}e.$inject=["$compile"],t.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){function e(e,t,o,i,r,a,s){this.$timeout=a,this.$mdConstant=o,this.$scope=e,this.parent=e.$parent,this.$mdUtil=s,this.$log=i,this.$element=r,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=s.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=s.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=n,this.init()}e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil"];var n=300;t.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var e=this;e.wrapperId="_md-chips-wrapper-"+e.$mdUtil.nextUid(),e.$scope.$watchCollection("$mdChipsCtrl.items",function(){e.setupInputAria(),e.setupWrapperAria()}),e.$attrs.$observe("mdChipAppendDelay",function(t){e.chipAppendDelay=parseInt(t)||n})},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" "))):(t.removeAttr("role"),t.removeAttr("aria-owns"))},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},e.prototype.updateChipContents=function(e,t){e>=0&&e<this.items.length&&(this.items[e]=t,this.ngModelCtrl.$setDirty())},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!t.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0==this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e){var t=this,n=t.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');t.removeChip(e),t.$timeout(function(){t.$timeout(function(){t.selectAndFocusChipSafe(n)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0==t?-1:e==t?e-1:e},e.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!0,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:e});t.isDefined(n)&&(e=n)}if(t.isObject(e)){if(this.items.some(function(n){return t.equals(e,n)}))return}if(!(null==e||this.items.indexOf(e)+1)){var o=this.items.push(e),i=o-1;this.ngModelCtrl.$setDirty(),this.validateModel(),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:i})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return t.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return t.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached())},e.prototype.removeChip=function(e){var t=this.items.splice(e,1);this.ngModelCtrl.$setDirty(),this.validateModel(),t&&t.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:t[0],$index:e})},e.prototype.removeChipAndFocusInput=function(e){this.removeChip(e),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){e>=-1&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!=e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var o=this.$scope,i=this,r=function(e,n){o.$evalAsync(t.bind(i,n,e))};e.attr({tabindex:0}).on("keydown",function(e){r(e,i.inputKeydown)}).on("focus",function(e){r(e,i.onInputFocus)}).on("blur",function(e){r(e,i.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,e.registerSelectedItemWatcher(t.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",t.bind(this,this.onInputFocus)).on("blur",t.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){function e(e,t,a,s,d,l){function c(n,o){function i(e){if(o.ngModel){var t=r[0].querySelector(e);return t&&t.outerHTML}}var r=o.$mdUserTemplate;o.$mdUserTemplate=null;var c=i("md-chips>md-chip-template"),m=t.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","),p=i(m)||u.remove,h=c||u.default,f=i("md-chips>md-autocomplete")||i("md-chips>input")||u.input,g=r.find("md-chip");return r[0].querySelector("md-chip-template>*[md-chip-remove]")&&s.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,i,r,s){t.initOptionalProperties(n,o),e(i);var m=s[0];if(c&&(m.enableChipEdit=!1),m.chipContentsTemplate=h,m.chipRemoveTemplate=p,m.chipInputTemplate=f,m.mdCloseIcon=l.mdClose,i.attr({tabindex:-1}).on("focus",function(){m.onFocus()}),o.ngModel&&(m.configureNgModel(i.controller("ngModel")),r.mdTransformChip&&m.useTransformChipExpression(),r.mdOnAppend&&m.useOnAppendExpression(),r.mdOnAdd&&m.useOnAddExpression(),r.mdOnRemove&&m.useOnRemoveExpression(),r.mdOnSelect&&m.useOnSelectExpression(),f!=u.input&&n.$watch("$mdChipsCtrl.readonly",function(e){e||t.nextTick(function(){if(0===f.indexOf("<md-autocomplete")){var e=i.find("md-autocomplete");m.configureAutocomplete(e.controller("mdAutocomplete"))}m.configureUserInput(i.find("input"))})}),t.nextTick(function(){var e=i.find("input");e&&e.toggleClass("md-input",!0)})),g.length>0){var b=a(g.clone())(n.$parent);d(function(){i.find("md-chips-wrap").prepend(b)})}}}var u=function(){return{chips:t.processTemplate(n),input:t.processTemplate(o),default:t.processTemplate(i),remove:t.processTemplate(r)}}();return{template:function(e,t){return t.$mdUserTemplate=e.clone(),u.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:c,scope:{readonly:"=readonly",removable:"=mdRemovable",placeholder:"@",secondaryPlaceholder:"@",maxChips:"@mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&mdOnAppend",onAdd:"&mdOnAdd",onRemove:"&mdOnRemove",onSelect:"&mdOnSelect",inputAriaLabel:"@",containerHint:"@",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],t.module("material.components.chips").directive("mdChips",e);var n='      <md-chips-wrap          id="{{$mdChipsCtrl.wrapperId}}"          tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(),                       \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly,                      \'md-removable\': $mdChipsCtrl.isRemovable() }"          aria-setsize="{{$mdChipsCtrl.items.length}}"          class="md-chips">        <span ng-if="$mdChipsCtrl.readonly" class="md-visually-hidden">          {{$mdChipsCtrl.containerHint}}        </span>        <md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"            ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}">          <div class="md-chip-content"              tabindex="{{$mdChipsCtrl.ariaTabIndex == $index ? 0 : -1}}"              id="{{$mdChipsCtrl.contentIdFor($index)}}"              role="option"              aria-selected="{{$mdChipsCtrl.selectedChip == $index}}"               aria-posinset="{{$index}}"              ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)"              ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>          <div ng-if="$mdChipsCtrl.isRemovable()"               class="md-chip-remove-container"               tabindex="-1"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>        </md-chip>        <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl">          <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>        </div>      </md-chips-wrap>',o='        <input            class="md-input"            tabindex="0"            aria-label="{{$mdChipsCtrl.inputAriaLabel}}"             placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)">',i="      <span>{{$chip}}</span>",r='      <button          class="md-chip-remove"          ng-if="$mdChipsCtrl.isRemovable()"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"          type="button"          tabindex="-1">        <md-icon md-svg-src="{{ $mdChipsCtrl.mdCloseIcon }}"></md-icon>        <span class="md-visually-hidden">          {{$mdChipsCtrl.deleteButtonLabel}}        </span>      </button>'}(),function(){function e(){this.selectedItem=null,this.searchText=""}t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.itemName=function(e){return e[this.contactName]}}(),function(){function e(e,t){function o(n,o){return function(n,i,r,a){var s=a;t.initOptionalProperties(n,o),e(i),i.attr("tabindex","-1"),r.$observe("mdChipAppendDelay",function(e){s.chipAppendDelay=e})}}return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:o,scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil"],t.module("material.components.chips").directive("mdContactChips",e);var n='      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}"           md-autocomplete-snap>          <md-autocomplete              md-menu-class="md-contact-chips-suggestions"              md-selected-item="$mdContactChipsCtrl.selectedItem"              md-search-text="$mdContactChipsCtrl.searchText"              md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"              md-item-text="$mdContactChipsCtrl.itemName(item)"              md-no-cache="true"              md-min-length="$mdContactChipsCtrl.minLength"              md-autoselect              placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">            <div class="md-contact-suggestion">              <img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" />              <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}">                {{item[$mdContactChipsCtrl.contactName]}}              </span>              <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>            </div>          </md-autocomplete>          <md-chip-template>            <div class="md-contact-avatar">              <img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" />            </div>            <div class="md-contact-name">              {{$chip[$mdContactChipsCtrl.contactName]}}            </div>          </md-chip-template>      </md-chips>'}(),function(){!function(){function e(){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].configureNgModel(i)}}}function n(e,n,i,r,a,s,d,l,c){s(e),this.$element=e,this.$scope=n,this.dateUtil=i,this.$mdUtil=r,this.keyCode=a.KEY_CODE,this.$$rAF=d,this.$mdDateLocale=c,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=o++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,l.tabindex||e.attr("tabindex","-1");var u,m=t.bind(this,this.handleKeyEvent);u=e.parent().hasClass("md-datepicker-calendar")?t.element(document.body):e,u.on("keydown",m),n.$on("$destroy",function(){u.off("keydown",m)}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendar",e);var o=0;n.prototype.$onInit=function(){this.currentView=this._currentView||"month";var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},n.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},n.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},n.prototype.setCurrentView=function(e,n){var o=this;o.$mdUtil.nextTick(function(){o.currentView=e,n&&(o.displayDate=t.isDate(n)?n:new Date(n))})},n.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector(".md-focus");t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),o=document.getElementById(n);o&&(o.classList.add(this.FOCUSED_DATE_CLASS),o.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},n.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},n.prototype.handleKeyEvent=function(e){var t=this;this.$scope.$apply(function(){if(e.which==t.keyCode.ESCAPE||e.which==t.keyCode.TAB)return t.$scope.$emit("md-calendar-close"),void(e.which==t.keyCode.TAB&&e.preventDefault());var n=t.getActionFromKeyEvent(e);n&&(e.preventDefault(),e.stopPropagation(),t.$scope.$broadcast("md-calendar-parent-action",n))})},n.prototype.hideVerticalScrollbar=function(e){function t(){var t=n.width||340,o=n.scrollbarWidth,r=e.calendarScroller;i.style.width=t+"px",r.style.width=t+o+"px",r.style.paddingRight=o+"px"}var n=this,o=e.$element[0],i=o.querySelector(".md-calendar-scroll-mask");n.width>0?t():n.$$rAF(function(){var i=e.calendarScroller;n.scrollbarWidth=i.offsetWidth-i.clientWidth,n.width=o.querySelector("table").offsetWidth,t()})},n.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},n.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}()}(),function(){!function(){function e(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(i-o)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+o+'"><tr aria-hidden="true" md-force-height="\''+o+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:n,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].initialize(i)}}}function n(e,t,n,o,i,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonth",e);var o=265,i=45;n.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},n.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.prototype.changeSelectedDate=function(e){var t=this,n=t.calendarCtrl,o=n.selectedDate;n.selectedDate=e,this.changeDisplayDate(e).then(function(){var t=n.SELECTED_DATE_CLASS;if(o){var i=document.getElementById(n.getDateId(o,"month"));i&&(i.classList.remove(t),i.setAttribute("aria-selected","false"))}if(e){var r=document.getElementById(n.getDateId(e,"month"));r&&(r.classList.add(t),r.setAttribute("aria-selected","true"))}})},n.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},n.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*o}return this.$q.when()},n.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),o=0;o<7;o++){var i=document.createElement("th");i.textContent=t[(o+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},n.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.changeSelectedDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(this,this.handleKeyEvent))},n.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,o=n.displayDate;if("select"===t)n.setNgModelValue(o);else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementDays(o,1);break;case"move-left":i=r.incrementDays(o,-1);break;case"move-page-down":i=r.incrementMonths(o,1);break;case"move-page-up":i=r.incrementMonths(o,-1);break;case"move-row-down":i=r.incrementDays(o,7);break;case"move-row-up":i=r.incrementDays(o,-7);break;case"start":i=r.getFirstDateOfMonth(o);break;case"end":i=r.getLastDateOfMonth(o)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}()}(),function(){!function(){function e(e,o){var i=e('<md-icon md-svg-src="'+o.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,n,o,r){var a=r[0],s=r[1],d=r[2];d.calendarCtrl=a,d.monthCtrl=s,d.arrowIcon=i.cloneNode(!0),e.$watch(function(){return d.offset},function(e){t.isNumber(e)&&d.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,o=document.createElement("td");if(o.tabIndex=-1,o.classList.add("md-calendar-date"),o.setAttribute("role","gridcell"),e){o.setAttribute("tabindex","-1"),o.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),o.id=n.getDateId(e,"month"),o.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&o.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(o.classList.add(n.SELECTED_DATE_CLASS),o.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var r=document.createElement("span");r.classList.add("md-calendar-date-selection-indicator"),r.textContent=i,o.appendChild(r),o.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=o)}else o.classList.add("md-calendar-date-disabled"),o.textContent=i}return o},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!t.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),o=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),a=1,s=this.buildDateRow(a);r.appendChild(s);var d=this.offset===this.monthCtrl.items.length-1,l=0,c=document.createElement("td"),u=document.createElement("span");if(u.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(u),c.classList.add("md-calendar-month-label"),this.calendarCtrl.maxDate&&n>this.calendarCtrl.maxDate?c.classList.add("md-calendar-month-label-disabled"):(c.addEventListener("click",this.monthCtrl.headerClickHandler),c.setAttribute("data-timestamp",n.getTime()),c.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),c.appendChild(this.arrowIcon.cloneNode(!0))),o<=2){c.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(c),r.insertBefore(m,s),d)return r}else l=3,c.setAttribute("colspan","3"),s.appendChild(c);for(var p=l;p<o;p++)s.appendChild(this.buildDateCell());for(var h=o,f=n,g=1;g<=i;g++){if(7===h){if(d)return r;h=0,a++,s=this.buildDateRow(a),r.appendChild(s)}f.setDate(g);var b=this.buildDateCell(f);s.appendChild(b),h++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var v=this.buildDateRow(),E=0;E<7;E++)v.appendChild(this.buildDateCell());r.appendChild(v)}return r},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}()}(),function(){!function(){function e(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+o+'"><tr aria-hidden="true" md-force-height="\''+o+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:n,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].initialize(i)}}}function n(e,t,n,o,i){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var r=this;this.cellClickHandler=function(){r.calendarCtrl.setCurrentView("month",i.getTimestampFromNode(this))}}n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil"],t.module("material.components.datepicker").directive("mdCalendarYear",e);var o=88;n.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},n.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},n.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*o}return this.$q.when()},n.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,o=n.displayDate;if("select"===t)this.changeDate(o).then(function(){n.setCurrentView("month",o),n.focus(o)});else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementMonths(o,1);break;case"move-left":i=r.incrementMonths(o,-1);break;case"move-row-down":i=r.incrementMonths(o,6);break;case"move-row-up":i=r.incrementMonths(o,-6)}if(i){var a=n.minDate?r.getFirstDateOfMonth(n.minDate):null,s=n.maxDate?r.getFirstDateOfMonth(n.maxDate):null;i=r.getFirstDateOfMonth(this.dateUtil.clampDate(i,a,s)),this.changeDate(i).then(function(){n.focus(i)})}}},n.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.changeDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(e,e.handleKeyEvent))}}()}(),function(){!function(){function e(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:n,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,n,o,i){var r=i[0],a=i[1],s=i[2];s.calendarCtrl=r,s.yearCtrl=a,e.$watch(function(){return s.offset},function(e){t.isNumber(e)&&s.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarYearBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,o=this.yearCtrl,i=this.buildBlankCell(),r=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(r)),i.id=n.getDateId(r,"year"),i.setAttribute("data-timestamp",r.getTime()),this.dateUtil.isSameMonthAndYear(r,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(r,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var a=this.dateLocale.shortMonths[t];if(this.dateUtil.isMonthWithinRange(r,n.minDate,n.maxDate)){var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=a,i.appendChild(s),i.addEventListener("click",o.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(r,n.displayDate)&&(this.focusAfterAppend=i)}else i.classList.add("md-calendar-date-disabled"),i.textContent=a;return i},n.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},n.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),o=document.createDocumentFragment(),i=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=n,i.appendChild(r),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));o.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),t=6;t<12;t++)a.appendChild(this.buildMonthCell(n,t));return o.appendChild(a),o}}()}(),function(){!function(){t.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar="",this.msgOpenCalendar=""}t.prototype.$get=function(e,t){function n(e,n){if(!e)return"";var o=e.toLocaleTimeString(),i=e;return 0!==e.getHours()||-1===o.indexOf("11:")&&-1===o.indexOf("23:")||(i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),t("date")(i,"M/d/yyyy",n)}function o(e){return new Date(e)}function i(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)}function r(e){return h.shortMonths[e.getMonth()]+" "+e.getFullYear()}function a(e){return h.months[e.getMonth()]+" "+e.getFullYear()}function s(e){return"Week "+e}function d(e){return[h.days[e.getDay()],h.months[e.getMonth()],h.dates[e.getDate()],e.getFullYear()].join(" ")}for(var l=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),c=Array(32),u=1;u<=31;u++)c[u]=u;var m=new Date(1880,0,1),p=new Date(m.getFullYear()+250,0,1),h={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||l,dates:this.dates||c,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||n,parseDate:this.parseDate||o,isDateComplete:this.isDateComplete||i,monthHeaderFormatter:this.monthHeaderFormatter||r,monthFormatter:this.monthFormatter||a,weekNumberFormatter:this.weekNumberFormatter||s,longDateFormatter:this.longDateFormatter||d,msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||m,lastRenderableDate:this.lastRenderableDate||p};return h},t.prototype.$get.$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}])}()}(),function(){!function(){t.module("material.components.datepicker").factory("$$mdDateUtil",function(){function e(e){return new Date(e.getFullYear(),e.getMonth(),1)}function n(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function i(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function r(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function a(e,t){return e.getDate()==t.getDate()&&r(e,t)}function s(e,t){return r(o(e),t)}function d(e,t){return r(t,i(e))}function l(e,t){return b((e.getTime()+t.getTime())/2)}function c(t){var n=e(t);return Math.floor((n.getDay()+t.getDate()-1)/7)}function u(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function m(e,t){var o=new Date(e.getFullYear(),e.getMonth()+t,1),i=n(o);return i<e.getDate()?o.setDate(i):o.setDate(e.getDate()),o}function p(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())}function h(e){return new Date(e.getFullYear(),e.getMonth(),n(e))}function f(e){return e&&e.getTime&&!isNaN(e.getTime())}function g(e){f(e)&&e.setHours(0,0,0,0)}function b(e){var n;return n=t.isUndefined(e)?new Date:new Date(e),g(n),n}function v(e,t,n){var o=b(e),i=f(t)?b(t):null,r=f(n)?b(n):null;return(!i||i<=o)&&(!r||r>=o)}function E(e,t){return m(e,12*t)}function $(e,t){return t.getFullYear()-e.getFullYear()}function y(e,t,n){var o=e;return t&&e<t&&(o=new Date(t.getTime())),n&&e>n&&(o=new Date(n.getTime())),o}function C(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))}function M(e,t,n){var o=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=o)&&(!n||n.getFullYear()>i||n.getMonth()>=o)}return{getFirstDateOfMonth:e,getNumberOfDaysInMonth:n,getDateInNextMonth:o,getDateInPreviousMonth:i,isInNextMonth:s,isInPreviousMonth:d,getDateMidpoint:l,isSameMonthAndYear:r,getWeekOfMonth:c,incrementDays:u,incrementMonths:m,getLastDateOfMonth:h,isSameDay:a,getMonthDistance:p,isValidDate:f,setDateTimeToMidnight:g,createDateAtMidnight:b,isDateWithinRange:v,incrementYears:E,getYearDistance:$,clampDate:y,getTimestampFromNode:C,isMonthWithinRange:M}})}()}(),function(){!function(){function n(e,n,o,r){return{template:function(t,n){var o=n.mdHideIcons,i=n.ariaLabel||n.mdPlaceholder,r="all"===o||"calendar"===o?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+e.mdCalendar+'"></md-icon></md-button>',a="";return"all"!==o&&"triangle"!==o&&(a='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',t.addClass(d)),r+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+a+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}"md-min-date="ctrl.minDate"md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:i,controllerAs:"ctrl",bindToController:!0,link:function(e,i,d,l){var c=l[0],u=l[1],m=l[2],p=l[3],h=n.parseAttributeBoolean(d.mdNoAsterisk);if(u.configureNgModel(c,m,r),m){var f=i[0].querySelector(".md-errors-spacer");f&&i.after(t.element("<div>").append(f)),m.setHasPlaceholder(d.mdPlaceholder),m.input=i,m.element.addClass(a).toggleClass(s,"calendar"!==d.mdHideIcons&&"all"!==d.mdHideIcons),m.label?h||d.$observe("required",function(e){m.label.toggleClass("md-required",!!e)}):o.expect(i,"aria-label",d.mdPlaceholder),e.$watch(m.isErrorGetter||function(){return c.$invalid&&(c.$touched||p&&p.$submitted)},m.setInvalid)}else if(p)var g=e.$watch(function(){return p.$submitted},function(e){e&&(u.updateErrorState(),g())})}}}function i(n,o,i,r,a,s,d,c,u,m,p){this.$window=r,this.dateUtil=u,this.$mdConstant=a,this.$mdUtil=d,this.$$rAF=m,this.$mdDateLocale=c,this.documentElement=t.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=o[0].querySelector("input"),this.ngInputElement=t.element(this.inputElement),this.inputContainer=o[0].querySelector(".md-datepicker-input-container"),this.calendarPane=o[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=o[0].querySelector(".md-datepicker-button"),this.inputMask=t.element(o[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=o,this.$attrs=i,this.$scope=n,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(o[0].disabled||t.isString(i.disabled)),this.isCalendarOpen=!1,this.openOnFocus=i.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+d.nextUid(),this.bodyClickHandler=t.bind(this,this.handleBodyClick),this.windowEventName=l.test(navigator.userAgent||navigator.vendor||e.opera)?"orientationchange":"resize",this.windowEventHandler=d.debounce(t.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=t.bind(this,this.handleWindowBlur),this.ngDateFilter=p("date"),this.leftMargin=20,this.topMargin=null,i.tabindex?(this.ngInputElement.attr("tabindex",i.tabindex),i.$set("tabindex",null)):i.$set("tabindex","-1"),i.$set("aria-owns",this.calendarPaneId),s(o),s(t.element(this.calendarPane));var h=this;n.$on("$destroy",function(){h.detachCalendarPane()}),i.mdIsOpen&&n.$watch("ctrl.isOpen",function(e){e?h.openCalendarPane({target:h.inputElement}):h.closeCalendarPane()}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}i.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter"],n.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],t.module("material.components.datepicker").directive("mdDatepicker",n);var r="md-datepicker-open",a="_md-datepicker-floating-label",s="_md-datepicker-has-calendar-icon",d="_md-datepicker-has-triangle-icon",l=/ipad|iphone|ipod|android/i;i.prototype.$onInit=function(){this.locale=this.dateLocale?t.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},i.prototype.configureNgModel=function(e,n,i){this.ngModelCtrl=e,this.mdInputContainer=n,this.$attrs.$set("type","date"),i[0].link.pre(this.$scope,{on:t.noop,val:t.noop,0:{}},this.$attrs,[e]);var r=this;r.ngModelCtrl.$formatters.push(function(e){var n=t.isDefined(e)?Date.parse(e):null;if(!isNaN(n)&&t.isNumber(n)&&(e=new Date(n)),e&&!(e instanceof Date))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+(void 0===e?"undefined":o(e)));return r.onExternalChange(e),e}),e.$viewChangeListeners.unshift(t.bind(this,this.updateErrorState));var a=r.$mdUtil.getModelOption(e,"updateOn");a&&this.ngInputElement.on(a,t.bind(this.$element,this.$element.triggerHandler,a))},i.prototype.attachChangeListeners=function(){var e=this;e.$scope.$on("md-calendar-change",function(t,n){e.setModelValue(n),e.onExternalChange(n),e.closeCalendarPane()}),e.ngInputElement.on("input",t.bind(e,e.resizeInputElement));var n=t.isDefined(this.debounceInterval)?this.debounceInterval:500;e.ngInputElement.on("input",e.$mdUtil.debounce(e.handleInputEvent,n,e))},i.prototype.attachInteractionListeners=function(){var e=this,n=this.$scope,o=this.$mdConstant.KEY_CODE;e.ngInputElement.on("keydown",function(t){t.altKey&&t.keyCode==o.DOWN_ARROW&&(e.openCalendarPane(t),n.$digest())}),e.openOnFocus&&(e.ngInputElement.on("focus",t.bind(e,e.openCalendarPane)),t.element(e.$window).on("blur",e.windowBlurHandler),n.$on("$destroy",function(){t.element(e.$window).off("blur",e.windowBlurHandler)})),n.$on("md-calendar-close",function(){e.closeCalendarPane()})},i.prototype.installPropertyInterceptors=function(){var e=this;if(this.$attrs.ngDisabled){var t=this.$scope.$parent;t&&t.$watch(this.$attrs.ngDisabled,function(t){e.setDisabled(t)})}Object.defineProperty(this,"placeholder",{get:function(){return e.inputElement.placeholder},set:function(t){e.inputElement.placeholder=t||""}})},i.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},i.prototype.updateErrorState=function(e){var n=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var o=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n>=o)}if(this.dateUtil.isValidDate(this.maxDate)){var i=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",n<=i)}t.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n))}else this.ngModelCtrl.$setValidity("valid",null==n);t.element(this.inputContainer).toggleClass("md-datepicker-invalid",!this.ngModelCtrl.$valid)},i.prototype.clearErrorState=function(){this.inputContainer.classList.remove("md-datepicker-invalid"),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},i.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},i.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),(""==e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t))&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},i.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!t.isFunction(this.dateFilter)||this.dateFilter(e))},i.prototype.attachCalendarPane=function(){var e=this.calendarPane,n=document.body;e.style.transform="",this.$element.addClass(r),this.mdInputContainer&&this.mdInputContainer.element.addClass(r),t.element(n).addClass("md-datepicker-is-showing");var o=this.inputContainer.getBoundingClientRect(),i=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var a=o.top-i.top-this.topMargin,s=o.left-i.left-this.leftMargin,d=i.top<0&&0==document.body.scrollTop?-i.top:document.body.scrollTop,l=i.left<0&&0==document.body.scrollLeft?-i.left:document.body.scrollLeft,c=d+this.$window.innerHeight,u=l+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:o.width-1+"px",height:o.height-2+"px"}),s+360>u){if(u-360>0)s=u-360;else{s=l;var m=this.$window.innerWidth/360;e.style.transform="scale("+m+")"}e.classList.add("md-datepicker-pos-adjusted")}a+368>c&&c-368>d&&(a=c-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=s+"px",e.style.top=a+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},i.prototype.detachCalendarPane=function(){this.$element.removeClass(r),this.mdInputContainer&&this.mdInputContainer.element.removeClass(r),t.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},i.prototype.openCalendarPane=function(t){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=t.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on("click touchstart",n.bodyClickHandler)},!1),e.addEventListener(this.windowEventName,this.windowEventHandler)}},i.prototype.closeCalendarPane=function(){function t(){n.isCalendarOpen=n.isOpen=!1}if(this.isCalendarOpen){var n=this;n.detachCalendarPane(),n.ngModelCtrl.$setTouched(),n.evalAttr("ngBlur"),n.documentElement.off("click touchstart",n.bodyClickHandler),e.removeEventListener(n.windowEventName,n.windowEventHandler),n.calendarPaneOpenedFrom.focus(),n.calendarPaneOpenedFrom=null,n.openOnFocus?n.$mdUtil.nextTick(t):t()}},i.prototype.getCalendarCtrl=function(){return t.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},i.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},i.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},i.prototype.handleBodyClick=function(e){if(this.isCalendarOpen){this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest()}},i.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},i.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},i.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},i.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}()}(),function(){function e(e,t,n,o){function i(o,i,r){function a(){if(!r.mdSvgIcon&&!r.mdSvgSrc){r.mdFontIcon&&(i.removeClass(s),i.addClass(r.mdFontIcon),s=r.mdFontIcon);var t=e.fontSet(r.mdFontSet);d!==t&&(i.removeClass(d),i.addClass(t),d=t)}}t(i);var s=r.mdFontIcon,d=e.fontSet(r.mdFontSet);!function(){r.mdSvgIcon||r.mdSvgSrc||(r.mdFontIcon&&i.addClass("md-font "+r.mdFontIcon),i.addClass(d))}(),r.$observe("mdFontIcon",a),r.$observe("mdFontSet",a);var l=(i[0].getAttribute(r.$attr.mdSvgSrc),r.$normalize(r.$attr.mdSvgIcon||r.$attr.mdSvgSrc||""));if(r.role||(n.expect(i,"role","img"),r.role="img"),"img"===r.role&&!r.ariaHidden&&!n.hasAriaLabel(i)){var c;r.alt?n.expect(i,"aria-label",r.alt):n.parentHasAriaLabel(i,2)?n.expect(i,"aria-hidden","true"):(c=r.mdFontIcon||r.mdSvgIcon||i.text())?n.expect(i,"aria-label",c):n.expect(i,"aria-hidden","true")}l&&r.$observe(l,function(t){i.empty(),t&&e(t).then(function(e){i.empty(),i.append(e)})})}return{restrict:"E",link:i}}t.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",e])}(),function(){function n(){}function o(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function i(n,o,i,r,a,s){function d(e){return e=e||"",t.isString(e)||(e=s.getTrustedUrl(e)),E[e]?i.when(c(E[e])):y.test(e)||C.test(e)?h(e).then(u(e)):(-1==e.indexOf(":")&&(e="$default:"+e),(n[e]?m:p)(e).then(u(e)))}function l(e){if(t.isUndefined(e)||!(e&&e.length))return n.defaultFontSet;var o=e;return t.forEach(n.fontSets,function(t){t.alias==e&&(o=t.fontSet||o)}),o}function c(e){var n=e.clone(),o="_cache"+a.nextUid();return n.id&&(n.id+=o),t.forEach(n.querySelectorAll("[id]"),function(e){e.id+=o}),n}function u(e){return function(t){return E[e]=f(t)?t:new g(t,n[e]),E[e].clone()}}function m(e){var t=n[e];return h(t.url).then(function(e){return new g(e,t)})}function p(e){function t(t){var n=e.slice(e.lastIndexOf(":")+1),i=t.querySelector("#"+n);return i?new g(i,s):o(e)}function o(e){var t="icon "+e+" not found";return r.warn(t),i.reject(t||e)}var a=e.substring(0,e.lastIndexOf(":"))||"$default",s=n[a];return s?h(s.url).then(t):o(e)}function h(n){return C.test(n)?function(n){var o=C.exec(n),r=/base64/i.test(n),a=r?e.atob(o[2]):o[2];return i.when(t.element(a)[0])}(n):function(e){return i(function(n,i){var a=function(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;r.warn(n),i(e)},s=function(o){$[e]||($[e]=t.element("<div>").append(o)[0].querySelector("svg")),n($[e])};o(e,!0).then(s,a)})}(n)}function f(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function g(e,n){e&&"svg"!=e.tagName&&(e=t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}function b(){var e=this.config?this.config.viewBoxSize:n.defaultViewBoxSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}function v(){return this.element.cloneNode(!0)}var E={},$={},y=/[-\w@:%\+.~#?&\/\/=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%\+.~#?&\/\/=]*)?/i,C=/^data:image\/svg\+xml[\s*;\w\-\=]*?(base64)?,(.*)$/i;return g.prototype={clone:v,prepare:b},d.fontSet=l,d}i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],t.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",n);var r={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};n.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),r[e]=new o(t,n),this},iconSet:function(e,t,n){return r[e]=new o(t,n),this},defaultIconSet:function(e,t){return r.$default||(r.$default=new o(e,t)),r.$default.viewBoxSize=t||r.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return r.defaultViewBoxSize=e,this},fontSet:function(e,t){return r.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return r.defaultFontSet=e||"",this},defaultIconSize:function(e){return r.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,o,a){return i(r,e,t,n,o,a)}]}}(),function(){function e(e,o,i,r,a,s,d,l,c){var u,m,p=a.prefixer(),h=this;this.nestLevel=parseInt(o.mdNestLevel,10)||0,this.init=function(n,o){o=o||{},u=n,m=i[0].querySelector(p.buildSelector(["ng-click","ng-mouseenter"])),m.setAttribute("aria-expanded","false"),this.isInMenuBar=o.isInMenuBar,this.nestedMenus=a.nodesToArray(u[0].querySelectorAll(".md-nested-menu")),u.on("$mdInterimElementRemove",function(){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)})}),a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s="menu_container_"+a.nextUid();u.attr("id",s),t.element(m).attr({"aria-owns":s,"aria-haspopup":"true"}),r.$on("$destroy",t.bind(this,function(){this.disableHoverListener(),e.destroy()})),u.on("$destroy",function(){e.destroy()})};var f,g,b=[];this.enableHoverListener=function(){b.push(d.$on("$mdMenuOpen",function(e,t){u[0].contains(t[0])&&(h.currentlyOpenMenu=t.controller("mdMenu"),h.isAlreadyOpening=!1,h.currentlyOpenMenu.registerContainerProxy(h.triggerContainerProxy.bind(h)))})),b.push(d.$on("$mdMenuClose",function(e,t){u[0].contains(t[0])&&(h.currentlyOpenMenu=n)})),g=t.element(a.nodesToArray(u[0].children[0].children)),g.on("mouseenter",h.handleMenuItemHover),g.on("mouseleave",h.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;b.length;)b.shift()();g&&g.off("mouseenter",h.handleMenuItemHover),g&&g.off("mouseleave",h.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!h.isAlreadyOpening){var n=e.target.querySelector("md-menu")||a.getClosest(e.target,"MD-MENU");f=s(function(){if(n&&(n=t.element(n).controller("mdMenu")),h.currentlyOpenMenu&&h.currentlyOpenMenu!=n){var e=h.nestLevel+1;h.currentlyOpenMenu.close(!0,{closeTo:e}),h.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(h.isAlreadyOpening=!!n,n&&n.open())},n?100:250);var o=e.currentTarget.querySelector(".md-button:not([disabled])");o&&o.focus()}},this.handleMenuItemMouseLeave=function(){f&&(s.cancel(f),f=n)},this.open=function(t){t&&t.stopPropagation(),t&&t.preventDefault(),h.isOpen||(h.enableHoverListener(),h.isOpen=!0,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)}),m=m||(t?t.target:i[0]),m.setAttribute("aria-expanded","true"),r.$emit("$mdMenuOpen",i),e.show({scope:r,mdMenuCtrl:h,nestLevel:h.nestLevel,element:u,target:m,preserveElement:!0,parent:"body"}).finally(function(){m.setAttribute("aria-expanded","false"),h.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(u.attr("aria-hidden","false"),i[0].classList.add("md-open"),t.forEach(h.nestedMenus,function(e){e.classList.remove("md-open")})):(u.attr("aria-hidden","true"),i[0].classList.remove("md-open")),r.$mdMenuIsOpen=h.isOpen},this.focusMenuContainer=function(){var e=u[0].querySelector(p.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=u[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return h.isOpen?e.destroy():l.when(!1)},this.close=function(n,o){if(h.isOpen){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s=t.extend({},o,{skipFocus:n});if(r.$emit("$mdMenuClose",i,s),e.hide(null,o),!n){var d=h.restoreFocusTo||i.find("button")[0];d instanceof t.element&&(d=d[0]),d&&d.focus()}}},this.positionMode=function(){var e=(o.mdPositionMode||"target").split(" ");return 1==e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(o.mdOffset||"0 0").split(" ").map(parseFloat);if(2==e.length)return{left:e[0],top:e[1]};if(1==e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},r.$mdMenu={open:this.open,close:this.close},r.$mdOpenMenu=t.bind(this,function(){return c.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],t.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(e){function n(n){n.addClass("md-menu");var r=n.children()[0],a=n.children()[1],s=e.prefixer();s.hasAttribute(r,"ng-click")||(r=r.querySelector(s.buildSelector(["ng-click","ng-mouseenter"]))||r);var d="MD-BUTTON"===r.nodeName||"BUTTON"===r.nodeName;if(r&&d&&!r.hasAttribute("type")&&r.setAttribute("type","button"),!r)throw Error(i+"Expected the menu to have a trigger element.");if(!a||"MD-MENU-CONTENT"!==a.nodeName)throw Error(i+"Expected the menu to contain a `md-menu-content` element.");r&&r.setAttribute("aria-haspopup","true");var l=n[0].querySelectorAll("md-menu"),c=parseInt(n[0].getAttribute("md-nest-level"),10)||0;return l&&t.forEach(e.nodesToArray(l),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",c+1)}),o}function o(e,n,o,i){var r=i[0],a=!!i[1],s=t.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),d=n.children()[1];n.addClass("_md"),d.hasAttribute("role")||d.setAttribute("role","menu"),s.append(d),n.on("$destroy",function(){s.remove()}),n.append(s),s[0].style.display="none",r.init(s,{isInMenuBar:a})}var i="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:n}}e.$inject=["$mdUtil"],t.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){function o(e,o,a,s,d,l,c,u,m,p){function h(n,o,i){return i.nestLevel?t.noop:(i.disableParentScroll&&!e.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=e.disableScrollAround(i.element,i.parent):i.disableParentScroll=!1,i.hasBackdrop&&(i.backdrop=e.createBackdrop(n,"md-menu-backdrop md-click-catcher"),m.enter(i.backdrop,s[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}function f(e,t,n){function o(){t.removeClass("md-active"),E(t,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?o():function(){return u(t,{addClass:"md-leave"}).start()}().then(o)}function g(n,i,r){function s(){return r.backdrop?(r.backdrop.on("click",m),function(){r.backdrop.off("click",m)}):t.noop}function m(e){e.preventDefault(),e.stopPropagation(),n.$apply(function(){r.mdMenuCtrl.close(!0,{closeAll:!0})})}function f(){function o(t){var n;switch(t.keyCode){case a.KEY_CODE.ESCAPE:r.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case a.KEY_CODE.UP_ARROW:b(t,r.menuContentEl,r,-1)||r.nestLevel||r.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.DOWN_ARROW:b(t,r.menuContentEl,r,1)||r.nestLevel||r.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.LEFT_ARROW:r.nestLevel?r.mdMenuCtrl.close():r.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.RIGHT_ARROW:var o=e.getClosest(t.target,"MD-MENU");o&&o!=r.parent[0]?t.target.click():r.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&&(t.preventDefault(),t.stopImmediatePropagation())}function i(t){function o(e,t){if(!e)return!1;for(var n,o=0;n=t[o];++o)if(y.hasAttribute(e,n))return!0;return!1}var i=t.target;do{if(i==r.menuContentEl[0])return;if((o(i,["ng-click","ng-href","ui-sref"])||"BUTTON"==i.nodeName||"MD-BUTTON"==i.nodeName)&&!o(i,["md-prevent-menu-close"])){var a=e.getClosest(i,"MD-MENU");i.hasAttribute("disabled")||a&&a!=r.parent[0]||function(){n.$apply(function(){r.mdMenuCtrl.close(!0,{closeAll:!0})})}();break}}while(i=i.parentNode)}if(!r.menuContentEl[0])return t.noop;r.menuContentEl.on("keydown",o),r.menuContentEl[0].addEventListener("click",i,!0);var s=r.menuContentEl[0].querySelector(y.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!s)for(var d=r.menuContentEl[0].children.length,l=0;l<d;l++){var c=r.menuContentEl[0].children[l];if(s=c.querySelector(".md-button:not([disabled])"))break;if(c.firstElementChild&&!c.firstElementChild.disabled){s=c.firstElementChild;break}}return s&&s.focus(),function(){r.menuContentEl.off("keydown",o),r.menuContentEl[0].removeEventListener("click",i,!0)}}return function(){if(!r.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");t.extend(r,{alreadyOpen:!1,isRemoved:!1,target:t.element(r.target),parent:t.element(r.parent),menuContentEl:t.element(i[0].querySelector("md-menu-content"))})}(),r.menuContentEl[0]?o.inherit(r.menuContentEl,r.target):p.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",i),r.cleanupResizing=function(){var e=function(e,t){return c.throttle(function(){if(!r.isRemoved){var n=$(e,t);e.css(C.toCss(n))}})}(i,r);return d.addEventListener("resize",e),d.addEventListener("orientationchange",e),function(){d.removeEventListener("resize",e),d.removeEventListener("orientationchange",e)}}(),r.hideBackdrop=h(n,i,r),function(){return r.parent.append(i),i[0].style.display="",l(function(e){var t=$(i,r);i.removeClass("md-leave"),u(i,{addClass:"md-active",from:C.toCss(t),to:C.toCss({transform:""})}).start().then(e)})}().then(function(e){return r.alreadyOpen=!0,r.cleanupInteraction=f(),r.cleanupBackdrop=s(),i.addClass("md-clickable"),e})}function b(t,n,o,i){for(var r,a=e.getClosest(t.target,"MD-MENU-ITEM"),s=e.nodesToArray(n[0].children),d=s.indexOf(a),l=d+i;l>=0&&l<s.length;l+=i){if(r=v(s[l].querySelector(".md-button")))break}return r}function v(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),s[0].activeElement==e}function E(e,t){t.preserveElement?i(e).style.display="none":i(e).parentNode===i(t.parent)&&i(t.parent).removeChild(i(e))}function $(t,o){var i,a=t[0],l=t[0].firstElementChild,c=l.getBoundingClientRect(),u=s[0].body,m=u.getBoundingClientRect(),p=d.getComputedStyle(l),h=o.target[0].querySelector(y.buildSelector("md-menu-origin"))||o.target[0],f=h.getBoundingClientRect(),g={left:m.left+r,top:Math.max(m.top,0)+r,bottom:Math.max(m.bottom,Math.max(m.top,0)+m.height)-r,right:m.right-r},b={top:0,left:0,right:0,bottom:0},v={top:0,left:0,right:0,bottom:0},E=o.mdMenuCtrl.positionMode();"target"!=E.top&&"target"!=E.left&&"target-right"!=E.left||(i=function(){for(var e=0;e<l.children.length;++e)if("none"!=d.getComputedStyle(l.children[e]).display)return l.children[e]}())&&(i=i.firstElementChild||i,i=i.querySelector(y.buildSelector("md-menu-align-target"))||i,b=i.getBoundingClientRect(),v={top:parseFloat(a.style.top||0),left:parseFloat(a.style.left||0)});var $={},C="top ";switch(E.top){case"target":$.top=v.top+f.top-b.top;break;case"cascade":$.top=f.top-parseFloat(p.paddingTop)-h.style.top;break;case"bottom":$.top=f.top+f.height;break;default:throw new Error('Invalid target mode "'+E.top+'" specified for md-menu on Y axis.')}var M="rtl"==e.bidi();switch(E.left){case"target":$.left=v.left+f.left-b.left,C+=M?"right":"left";break;case"target-left":$.left=f.left,C+="left";break;case"target-right":$.left=f.right-c.width+(c.right-b.right),C+="right";break;case"cascade":var w=M?f.left-c.width<g.left:f.right+c.width<g.right;$.left=w?f.right-h.style.left:f.left-h.style.left-c.width,C+=w?"left":"right";break;case"right":M?($.left=f.right-f.width,C+="left"):($.left=f.right-c.width,C+="right");break;case"left":M?($.left=f.right-c.width,C+="right"):($.left=f.left,C+="left");break;default:throw new Error('Invalid target mode "'+E.left+'" specified for md-menu on X axis.')}var T=o.mdMenuCtrl.offsets();$.top+=T.top,$.left+=T.left,function(e){e.top=Math.max(Math.min(e.top,g.bottom-a.offsetHeight),g.top),e.left=Math.max(Math.min(e.left,g.right-a.offsetWidth),g.left)}($);var A=Math.round(100*Math.min(f.width/a.offsetWidth,1))/100,k=Math.round(100*Math.min(f.height/a.offsetHeight,1))/100;return{top:Math.round($.top),left:Math.round($.left),transform:o.alreadyOpen?n:e.supplant("scale({0},{1})",[A,k]),transformOrigin:C}}var y=e.prefixer(),C=e.dom.animator;return{parent:"body",onShow:g,onRemove:f,hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0}}function i(e){return e instanceof t.element&&(e=e[0]),e}o.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var r=8;return e("$mdMenu").setDefaults({methods:["target"],options:o})}e.$inject=["$$interimElementProvider"],t.module("material.components.menu").provider("$mdMenu",e)}(),function(){function e(e,n,i,r,a,s,d,l){this.$element=i,this.$attrs=r,this.$mdConstant=a,this.$mdUtil=d,this.$document=s,this.$scope=e,this.$rootScope=n,this.$timeout=l;var c=this;t.forEach(o,function(e){c[e]=t.bind(c,c[e])})}e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],t.module("material.components.menuBar").controller("MenuBarController",e);var o=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];e.prototype.init=function(){var e=this.$element,t=this.$mdUtil,o=this.$scope,i=this,r=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=t.getClosest(e,"MD-TOOLBAR"),r.push(this.$rootScope.$on("$mdMenuOpen",function(t,n){-1!=i.getMenus().indexOf(n[0])&&(e[0].classList.add("md-open"),n[0].classList.add("md-open"),i.currentlyOpenMenu=n.controller("mdMenu"),i.currentlyOpenMenu.registerContainerProxy(i.handleKeyDown),i.enableOpenOnHover())})),r.push(this.$rootScope.$on("$mdMenuClose",function(o,r,a){var s=i.getMenus();if(-1!=s.indexOf(r[0])&&(e[0].classList.remove("md-open"),r[0].classList.remove("md-open")),e[0].contains(r[0])){for(var d=r[0];d&&-1==s.indexOf(d);)d=t.getClosest(d,"MD-MENU",!0);d&&(a.skipFocus||d.querySelector("button:not([disabled])").focus(),i.currentlyOpenMenu=n,i.disableOpenOnHover(),i.setKeyboardMode(!0))}})),o.$on("$destroy",function(){for(i.disableOpenOnHover();r.length;)r.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){t.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),t.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),t.element(this.parentToolbar).off("click",this.handleParentClick)),t.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var n=t.element(e.currentTarget),o=n.controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(o)},e.prototype.scheduleOpenMenu=function(e){var t=this,o=this.$timeout;e!=t.currentlyOpenMenu&&(o.cancel(t.pendingMenuOpen),t.pendingMenuOpen=o(function(){t.pendingMenuOpen=n,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var n=this.$mdConstant.KEY_CODE,o=this.currentlyOpenMenu,i=o&&o.isOpen;this.setKeyboardMode(!0);var r,a,s;switch(e.keyCode){case n.DOWN_ARROW:o?o.focusMenuContainer():this.openFocusedMenu(),r=!0;break;case n.UP_ARROW:o&&o.close(),r=!0;break;case n.LEFT_ARROW:a=this.focusMenu(-1),i&&(s=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),r=!0;break;case n.RIGHT_ARROW:a=this.focusMenu(1),i&&(s=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),r=!0}r&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var o=!1;if(-1==n?(n=0,o=!0):(e<0&&n>0||e>0&&n<t.length-e)&&(n+=e,o=!0),o)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&t.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil,t=e.getClosest(this.$document[0].activeElement,"MD-MENU");return t?this.getMenus().indexOf(t):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&t.element(n).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(o,i){return i.ariaRole||o[0].setAttribute("role","menubar"),t.forEach(o[0].children,function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var o=e.nodesToArray(n.querySelectorAll("md-menu-content"));t.forEach(o,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),o.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,o,i){t.addClass("_md"),n(e,t),i.init()}}}}e.$inject=["$mdUtil","$mdTheming"],t.module("material.components.menuBar").directive("mdMenuBar",e)}(),function(){function e(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}t.module("material.components.menuBar").directive("mdMenuDivider",e)}(),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],t.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var e=this.$element[0],n=["role","tabindex","aria-invalid","aria-checked"];t.forEach(n,function(t){e.removeAttribute(t)})},e.prototype.initClickListeners=function(){function e(){if("radio"==s){var e=a.ngValue?r.$eval(a.ngValue):a.value;return i.$modelValue==e}return i.$modelValue}function n(e){e?l.off("click",c):l.on("click",c)}var o=this,i=this.ngModel,r=this.$scope,a=this.$attrs,s=(this.$element,this.mode);this.handleClick=t.bind(this,this.handleClick);var d=this.iconEl,l=t.element(this.buttonEl),c=this.handleClick;a.$observe("disabled",n),n(a.disabled),i.$render=function(){o.clearNgAria(),e()?(d.style.display="",l.attr("aria-checked","true")):(d.style.display="none",l.attr("aria-checked","false"))},r.$$postDigest(i.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,i=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),o.$setViewValue(t),o.$render()}}(),function(){function e(e,n,o){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,i){function r(e,o,i){i=i||n,i instanceof t.element&&(i=i[0]),i.hasAttribute(e)||i.setAttribute(e,o)}var a=i.type;if("checkbox"!=a&&"radio"!=a||!n.hasClass("md-in-menu-bar"))r("role","menuitem",n[0].querySelector("md-button, button, a"));else{var s=n[0].textContent,d=t.element('<md-button type="button"></md-button>'),l='<md-icon md-svg-src="'+o.mdChecked+'"></md-icon>';d.html(s),d.attr("tabindex","0"),n.html(""),n.append(t.element(l)),n.append(d),n.addClass("md-indent").removeClass("md-in-menu-bar"),r("role","checkbox"==a?"menuitemcheckbox":"menuitemradio",d),function(o){var i=e.prefixer(o);t.forEach(i,function(e){if(n[0].hasAttribute(e)){var t=n[0].getAttribute(e);d[0].setAttribute(e,t),n[0].removeAttribute(e)}})}("ng-disabled")}return function(e,t,n,o){var i=o[0],r=o[1];i.init(r)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],t.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(e,n,o,i,r,a){function s(a,s,E){function $(t,o,r,s,d,c){function h(e){x.attr("stroke-dashoffset",l(v,E,e,M)),x.attr("transform","rotate("+C+" "+v/2+" "+v/2+")")}var f=++D,g=i.now(),b=o-t,v=u(a.mdDiameter),E=m(v),$=r||n.easeFn,y=s||n.duration,C=-90*(d||0),M=c||100;o===t?h(o):w=p(function n(){var o=e.Math.max(0,e.Math.min(i.now()-g,y));h($(o,t,b,y)),f===D&&o<y&&(w=p(n))})}function y(){$(_,S,n.easeFnIndeterminate,n.durationIndeterminate,N,75),N=++N%4}function C(){T||(T=r(y,n.durationIndeterminate,0,!1),y(),s.addClass(v).removeAttr("aria-valuenow"))}function M(){T&&(r.cancel(T),T=null,s.removeClass(v))}var w,T,A=s[0],k=t.element(A.querySelector("svg")),x=t.element(A.querySelector("path")),_=n.startIndeterminate,S=n.endIndeterminate,N=0,D=0;o(s),s.toggleClass(b,E.hasOwnProperty("disabled")),a.mdMode===g&&C(),a.$on("$destroy",function(){M(),w&&h(w)}),a.$watchGroup(["value","mdMode",function(){var e=A.disabled;return!0===e||!1===e?e:t.isDefined(s.attr("disabled"))}],function(e,t){var n=e[1],o=e[2];if(o!==t[2]&&s.toggleClass(b,!!o),o)M();else if(n!==f&&n!==g&&(n=g,E.$set("mdMode",n)),n===g)C();else{var i=c(e[0]);M(),s.attr("aria-valuenow",i),$(c(t[0]),i)}}),a.$watch("mdDiameter",function(t){var n=u(t),o=m(n),i=c(a.value),r=n/2+"px",p={width:n+"px",height:n+"px"};k[0].setAttribute("viewBox","0 0 "+n+" "+n),k.css(p).css("transform-origin",r+" "+r+" "+r),s.css(p),x.attr("stroke-width",o),x.attr("stroke-linecap","square"),a.mdMode==g?(x.attr("d",d(n,o,!0)),x.attr("stroke-dasharray",(n-o)*e.Math.PI*.75),x.attr("stroke-dashoffset",l(n,o,1,75))):(x.attr("d",d(n,o,!1)),x.attr("stroke-dasharray",(n-o)*e.Math.PI),x.attr("stroke-dashoffset",l(n,o,0,100)),$(i,i))})}function d(e,t,n){var o=e/2,i=t/2,r=o+","+i,a=i+","+o,s=o-i;return"M"+r+"A"+s+","+s+" 0 1 1 "+a+(n?"":"A"+s+","+s+" 0 0 1 "+r)}function l(t,n,o,i){return(t-n)*e.Math.PI*(3*(i||100)/100-o/100)}function c(t){return e.Math.max(0,e.Math.min(t||0,100))}function u(e){var t=n.progressSize;if(e){var o=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(o=o/100*t),o}return t}function m(e){return n.strokeWidth/100*e}var p=e.requestAnimationFrame||e.webkitRequestAnimationFrame||t.noop,h=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame||t.noop,f="determinate",g="indeterminate",b="_md-progress-circular-disabled",v="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,n){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),t.isUndefined(n.mdMode)){var o=n.hasOwnProperty("value")?f:g;n.$set("mdMode",o)}else n.$set("mdMode",n.mdMode.trim());return s}}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],t.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),function(){function e(){function e(e,t,n,o){return n*e/o+t}function n(e,t,n,o){var i=(e/=o)*e,r=i*e;return t+n*(6*r*i+-15*i*i+10*r)}var o={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return o=t.extend(o,e||{})},$get:function(){return o}}}t.module("material.components.progressCircular").provider("$mdProgressCircular",e)}(),function(){function e(){function e(e,o,i,r){if(r){var a=r.getTabElementIndex(o),s=n(o,"md-tab-body").remove(),d=n(o,"md-tab-label").remove(),l=r.insertTab({scope:e,parent:e.$parent,index:a,element:o,template:s.html(),label:d.html()},a);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&&r.select(l.getIndex(),!0)}),e.$watch("disabled",function(){r.refreshIndex()}),e.$watch(function(){return r.getTabElementIndex(o)},function(e){l.index=e,r.updateTabOrder()}),e.$on("$destroy",function(){r.removeTab(l)})}}function n(e,n){for(var o=e[0].children,i=0,r=o.length;i<r;i++){var a=o[i];if(a.tagName===n.toUpperCase())return t.element(a)}return t.element()}return{require:"^?mdTabs",terminal:!0,compile:function(o,i){var r=n(o,"md-tab-label"),a=n(o,"md-tab-body");if(0===r.length&&(r=t.element("<md-tab-label></md-tab-label>"),i.label?r.text(i.label):r.append(o.contents()),0===a.length)){var s=o.contents().detach();a=t.element("<md-tab-body></md-tab-body>"),a.append(s)}return o.append(r),a.html()&&o.append(a),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}}t.module("material.components.tabs").directive("mdTab",e)}(),function(){function e(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}t.module("material.components.tabs").directive("mdTabItem",e)}(),function(){function e(){return{terminal:!0}}t.module("material.components.tabs").directive("mdTabLabel",e)}(),function(){function e(e){return{restrict:"A",compile:function(t,n){var o=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){o(e,{$event:t})})})}}}}e.$inject=["$parse"],t.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(e,o,i,r,a,s,d,l,c,u,m,p){function h(){E("stretchTabs",C),X("focusIndex",x,he.selectedIndex||0),X("offsetLeft",k,0),X("hasContent",A,!1),X("maxTabWidth",w,J()),X("shouldPaginate",T,!1),$("noInkBar",R),$("dynamicHeight",j),$("noPagination"),$("swipeContent"),$("noDisconnect"),$("autoselect"),$("noSelectClick"),$("centerTabs",M),$("enableDisconnect"),he.scope=e,he.parent=e.$parent,he.tabs=[],he.lastSelectedIndex=null,he.hasFocus=!1,he.styleTabItemFocus=!1,he.shouldCenterTabs=Y(),he.tabContentPrefix="tab-content-",f()}function f(){he.selectedIndex=he.selectedIndex||0,g(),v(),b(),u(o),s.nextTick(function(){ge=U(),se(),oe(),de(),he.tabs[he.selectedIndex]&&he.tabs[he.selectedIndex].scope.select(),Ee=!0,Q()})}function g(){var e=l.$mdTabsTemplate,n=t.element(o[0].querySelector("md-tab-data"));n.html(e),c(n.contents())(he.parent),delete l.$mdTabsTemplate}function b(){t.element(i).on("resize",L),e.$on("$destroy",y)}function v(){e.$watch("$mdTabsCtrl.selectedIndex",_)}function E(e,t){var n=l.$normalize("md-"+e);t&&X(e,t),l.$observe(n,function(t){he[e]=t})}function $(e,t){function n(t){he[e]="false"!==t}var o=l.$normalize("md-"+e);t&&X(e,t),l.hasOwnProperty(o)&&n(l[o]),l.$observe(o,n)}function y(){ve=!0,t.element(i).off("resize",L)}function C(e){var n=U();t.element(n.wrapper).toggleClass("md-stretch-tabs",W()),de()}function M(e){he.shouldCenterTabs=Y()}function w(e,n){if(e!==n){var o=U();t.forEach(o.tabs,function(t){t.style.maxWidth=e+"px"}),t.forEach(o.dummies,function(t){t.style.maxWidth=e+"px"}),s.nextTick(he.updateInkBarStyles)}}function T(e,t){e!==t&&(he.maxTabWidth=J(),he.shouldCenterTabs=Y(),s.nextTick(function(){he.maxTabWidth=J(),oe(he.selectedIndex)}))}function A(e){o[e?"removeClass":"addClass"]("md-no-tab-content")}function k(n){var o=U(),i=(he.shouldCenterTabs||pe()?"":"-")+n+"px";i=i.replace("--",""),t.element(o.paging).css(r.CSS.TRANSFORM,"translate3d("+i+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function x(e,t){e!==t&&U().tabs[e]&&(oe(),ne())}function _(t,n){t!==n&&(he.selectedIndex=G(t),he.lastSelectedIndex=n,he.updateInkBarStyles(),se(),oe(t),e.$broadcast("$mdTabsChanged"),he.tabs[n]&&he.tabs[n].scope.deselect(),he.tabs[t]&&he.tabs[t].scope.select())}function S(e){var t=o[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])}function N(){N.watcher||(N.watcher=e.$watch(function(){s.nextTick(function(){N.watcher&&o.prop("offsetParent")&&(N.watcher(),N.watcher=null,L())},!1)}))}function D(e){switch(e.keyCode){case r.KEY_CODE.LEFT_ARROW:e.preventDefault(),te(-1,!0);break;case r.KEY_CODE.RIGHT_ARROW:e.preventDefault(),te(1,!0);break;case r.KEY_CODE.SPACE:case r.KEY_CODE.ENTER:e.preventDefault(),fe||I(he.focusIndex);break;case r.KEY_CODE.TAB:he.focusIndex!==he.selectedIndex&&(he.focusIndex=he.selectedIndex)}}function I(e,t){fe||(he.focusIndex=he.selectedIndex=e),t&&he.noSelectClick||s.nextTick(function(){he.tabs[e].element.triggerHandler("click")},!1)}function O(e){he.shouldPaginate&&(e.preventDefault(),he.offsetLeft=ce(he.offsetLeft-e.wheelDelta))}function H(){if(he.canPageForward()){var e=p.increasePageOffset(U(),he.offsetLeft);he.offsetLeft=ce(e)}}function P(){if(he.canPageBack()){var e=p.decreasePageOffset(U(),he.offsetLeft);he.offsetLeft=ce(e)}}function L(){he.lastSelectedIndex=he.selectedIndex,he.offsetLeft=ce(he.offsetLeft),s.nextTick(function(){he.updateInkBarStyles(),Q()})}function R(e){t.element(U().inkBar).toggleClass("ng-hide",e)}function j(e){o.toggleClass("md-dynamic-height",e)}function F(e){if(!ve){var t=he.selectedIndex,n=he.tabs.splice(e.getIndex(),1)[0];ae(),he.selectedIndex===t&&(n.scope.deselect(),he.tabs[he.selectedIndex]&&he.tabs[he.selectedIndex].scope.select()),s.nextTick(function(){Q(),he.offsetLeft=ce(he.offsetLeft)})}}function B(e,n){var o=Ee,i={getIndex:function(){return he.tabs.indexOf(r)},isActive:function(){return this.getIndex()===he.selectedIndex},isLeft:function(){return this.getIndex()<he.selectedIndex},isRight:function(){return this.getIndex()>he.selectedIndex},shouldRender:function(){return!he.noDisconnect||this.isActive()},hasFocus:function(){return he.styleTabItemFocus&&he.hasFocus&&this.getIndex()===he.focusIndex},id:s.nextUid(),hasContent:!(!e.template||!e.template.trim())},r=t.extend(i,e);return t.isDefined(n)?he.tabs.splice(n,0,r):he.tabs.push(r),ie(),re(),s.nextTick(function(){Q(),me(r),o&&he.autoselect&&s.nextTick(function(){s.nextTick(function(){I(he.tabs.indexOf(r))})})}),r}function U(){var e={},t=o[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function q(){return he.offsetLeft>0}function z(){var e=U(),t=e.tabs[e.tabs.length-1];return pe()?he.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth:t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+he.offsetLeft}function V(){var e=he.tabs[he.focusIndex];return e&&e.id?"tab-item-"+e.id:null}function W(){switch(he.stretchTabs){case"always":return!0;case"never":return!1;default:return!he.shouldPaginate&&i.matchMedia("(max-width: 600px)").matches}}function Y(){return he.centerTabs&&!he.shouldPaginate}function K(){if(he.noPagination||!Ee)return!1;var e=o.prop("clientWidth");return t.forEach(U().tabs,function(t){e-=t.offsetWidth}),e<0}function G(e){if(-1===e)return-1;var t,n,o=Math.max(he.tabs.length-e,e);for(t=0;t<=o;t++){if((n=he.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=he.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function X(e,t,n){Object.defineProperty(he,e,{get:function(){return n},set:function(e){var o=n;n=e,t&&t(e,o)}})}function Q(){he.maxTabWidth=J(),he.shouldPaginate=K()}function Z(e){var n=0;return t.forEach(e,function(e){n+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(n)}function J(){var e=U(),t=e.canvas.clientWidth;return Math.max(0,Math.min(t-1,264))}function ee(){var e=he.tabs[he.selectedIndex],t=he.tabs[he.focusIndex];he.tabs=he.tabs.sort(function(e,t){return e.index-t.index}),he.selectedIndex=he.tabs.indexOf(e),he.focusIndex=he.tabs.indexOf(t)}function te(e,t){var n,o=t?"focusIndex":"selectedIndex",i=he[o];for(n=i+e;he.tabs[n]&&he.tabs[n].scope.disabled;n+=e);n=(i+e+he.tabs.length)%he.tabs.length,he.tabs[n]&&(he[o]=n)}function ne(){he.styleTabItemFocus="keyboard"===m.getLastInteractionType(),U().tabs[he.focusIndex].focus()}function oe(e){var n=U();if(t.isNumber(e)||(e=he.focusIndex),n.tabs[e]&&!he.shouldCenterTabs){var o=n.tabs[e],i=o.offsetLeft,r=o.offsetWidth+i;if(0==e)return void(he.offsetLeft=0);if(pe()){var a=Z(Array.prototype.slice.call(n.tabs,0,e)),s=Z(Array.prototype.slice.call(n.tabs,0,e+1));he.offsetLeft=Math.min(he.offsetLeft,ce(a)),he.offsetLeft=Math.max(he.offsetLeft,ce(s-n.canvas.clientWidth))}else he.offsetLeft=Math.max(he.offsetLeft,ce(r-n.canvas.clientWidth+32)),he.offsetLeft=Math.min(he.offsetLeft,ce(i))}}function ie(){be.forEach(function(e){s.nextTick(e)}),be=[]}function re(){for(var e=!1,t=0;t<he.tabs.length;t++)if(he.tabs[t].hasContent){e=!0;break}he.hasContent=e}function ae(){he.selectedIndex=G(he.selectedIndex),he.focusIndex=G(he.focusIndex)}function se(){if(!he.dynamicHeight)return o.css("height","");if(!he.tabs.length)return be.push(se);var e=U(),t=e.contents[he.selectedIndex],i=t?t.offsetHeight:0,r=e.wrapper.offsetHeight,a=i+r,l=o.prop("clientHeight");if(l!==a){"bottom"===o.attr("md-align-tabs")&&(l-=r,a-=r,o.attr("md-border-bottom")!==n&&++l),fe=!0;var c={height:l+"px"},u={height:a+"px"};o.css(c),d(o,{from:c,to:u,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){o.css({transition:"none",height:""}),s.nextTick(function(){o.css("transition","")}),fe=!1})}}function de(){var e=U();if(!e.tabs[he.selectedIndex])return void t.element(e.inkBar).css({left:"auto",right:"auto"});if(!he.tabs.length)return be.push(he.updateInkBarStyles);if(!o.prop("offsetParent"))return N();var n=he.selectedIndex,i=e.paging.offsetWidth,r=e.tabs[n],a=r.offsetLeft,d=i-a-r.offsetWidth;if(he.shouldCenterTabs){i>Z(e.tabs)&&s.nextTick(de,!1)}le(),t.element(e.inkBar).css({left:a+"px",right:d+"px"})}function le(){var e=U(),n=he.selectedIndex,o=he.lastSelectedIndex,i=t.element(e.inkBar);t.isNumber(o)&&i.toggleClass("md-left",n<o).toggleClass("md-right",n>o)}function ce(e){var t=U();if(!t.tabs.length||!he.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],o=n.offsetLeft+n.offsetWidth;return pe()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),e=Math.max(0,e)):(e=Math.max(0,e),e=Math.min(o-t.canvas.clientWidth,e)),e}function ue(e,n){var o=U(),i={colorElement:t.element(o.inkBar)};a.attach(e,n,i)}function me(e){if(e.hasContent){var n=o[0].querySelectorAll('[md-tab-id="'+e.id+'"]');t.element(n).attr("aria-controls",he.tabContentPrefix+e.id)}}function pe(){return"rtl"==s.bidi()}var he=this,fe=!1,ge=U(),be=[],ve=!1,Ee=!1;he.$onInit=h,he.updatePagination=s.debounce(Q,100),he.redirectFocus=ne,he.attachRipple=ue,he.insertTab=B,he.removeTab=F,he.select=I,he.scroll=O,he.nextPage=H,he.previousPage=P,he.keydown=D,he.canPageForward=z,he.canPageBack=q,he.refreshIndex=ae,he.incrementIndex=te,he.getTabElementIndex=S,he.updateInkBarStyles=s.debounce(de,100),he.updateTabOrder=s.debounce(ee,100),he.getFocusedTabId=V,1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","MdTabsPaginationService"],t.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(e){return{scope:{selectedIndex:"=?mdSelected"},template:function(t,n){return n.$mdTabsTemplate=t.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist"> <md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-class="{ \'md-active\':    tab.isActive(), \'md-focused\':   tab.hasFocus(), \'md-disabled\':  tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\':        tab.isActive(), \'md-left\':          tab.isLeft(), \'md-right\':         tab.isRight(), \'md-no-scroll\':     $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(e,t){return{require:"^?mdTabs",link:function(n,o,i,r){if(r){var a,s,d=function(){r.updatePagination(),r.updateInkBarStyles()};if("MutationObserver"in t){var l={childList:!0,subtree:!0,characterData:!0};a=new MutationObserver(d),a.observe(o[0],l),s=a.disconnect.bind(a)}else{var c=e.debounce(d,15,null,!1);o.on("DOMSubtreeModified",c),s=o.off.bind(o,"DOMSubtreeModified",c)}n.$on("$destroy",function(){s()})}}}}e.$inject=["$mdUtil","$window"],t.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(e,t){function n(n,o,i,r){function a(){n.$watch("connected",function(e){!1===e?s():d()}),n.$on("$destroy",d)}function s(){r.enableDisconnect&&t.disconnectScope(l)}function d(){r.enableDisconnect&&t.reconnectScope(l)}if(r){var l=r.enableDisconnect?n.compileScope.$new():n.compileScope;return o.html(n.template),e(o.contents())(l),t.nextTick(a)}}return{restrict:"A",link:n,scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.tabs").directive("mdTabsTemplate",e)}(),function(){t.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-A100}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-100}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-A100}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{background-900}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight{color:"{{background-600}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-200}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-50}}";border-top-color:"{{background-300}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-50}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-calendar.md-THEME_NAME-theme{background:"{{background-A100}}";color:"{{background-A200-0.87}}"}.md-calendar.md-THEME_NAME-theme tr:last-child td{border-bottom-color:"{{background-200}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-300}}";color:"{{background-A200-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-300}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{background-A200-0.435}}"}.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-A100}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-A100}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{background-A200-0.87}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{background-A200-0.25}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{background-A200-0.11}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-2}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background:"{{background-200}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.2}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.2}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-A100}}";color:"{{background-A200}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{background-A100-0.87}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{background-A100-0.87}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked.md-primary .md-ink-ripple{color:"{{warn-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}()}(window,window.angular),window.ngMaterial={version:{full:"1.1.5"}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=o(i),a=n(1),s=o(a),d=n(13),l=o(d),c=n(15),u=o(c),m=n(16),p=o(m);t.default=r.default.module("md-dytable",[s.default,l.default,u.default,p.default]).name},function(e,t,n){"use strict";n(14),e.exports="ngSanitize"},function(e,t,n){"use strict";/**
   * @license AngularJS v1.6.6
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(e,t){function n(){function n(e,t){var n,o={},i=e.split(",");for(n=0;n<i.length;n++)o[t?d(i[n]):i[n]]=!0;return o}function o(e,t){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e);var n=H(e);if(!n)return"";var o=5;do{if(0===o)throw p("uinput","Failed to sanitize html because the input is unstable");o--,e=n.innerHTML,n=H(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),h(i.attributes));break;case 3:t.chars(i.textContent)}var r;if(!((r=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),r=v("nextSibling",i))))for(;null==r&&(i=v("parentNode",i))!==n;)r=v("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=r}for(;i=n.firstChild;)n.removeChild(i)}function h(e){for(var t={},n=0,o=e.length;n<o;n++){var i=e[n];t[i.name]=i.value}return t}function f(e){return e.replace(/&/g,"&amp;").replace($,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(y,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function g(e,t){var n=!1,o=i(e,e.push);return{start:function(e,i){e=d(e),!n&&_[e]&&(n=e),n||!0!==S[e]||(o("<"),o(e),a(i,function(n,i){var r=d(i),a="img"===e&&"src"===r||"background"===r;!0!==O[r]||!0===N[r]&&!t(n,a)||(o(" "),o(i),o('="'),o(f(n)),o('"'))}),o(">"))},end:function(e){e=d(e),n||!0!==S[e]||!0===C[e]||(o("</"),o(e),o(">")),e==n&&(n=!1)},chars:function(e){n||o(f(e))}}}function b(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,o=0,i=n.length;o<i;o++){var r=n[o],a=r.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(r),o--,i--)}var s=t.firstChild;s&&b(s),t=v("nextSibling",t)}}function v(e,t){var n=t[e];if(n&&c.call(t,n))throw p("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var E=!1;this.$get=["$$sanitizeUri",function(e){return E&&r(S,x),function(t){var n=[];return u(t,m(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?(E=e,this):E},i=t.bind,r=t.extend,a=t.forEach,s=t.isDefined,d=t.lowercase,l=t.noop,u=o,m=g,c=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var $=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y=/([^#-~ |!])/g,C=n("area,br,col,hr,img,wbr"),M=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),w=n("rp,rt"),T=r({},w,M),A=r({},M,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),k=r({},w,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),x=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),_=n("script,style"),S=r({},C,A,k,T),N=n("background,cite,href,longdesc,src,xlink:href"),D=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),I=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),O=r({},N,I,D),H=function(e,t){function n(t){t="<remove></remove>"+t;try{t=encodeURI(t)}catch(e){return}var n=new e.XMLHttpRequest;n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+t,!1),n.send(null);var o=n.response.body;return o.firstChild.remove(),o}function o(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}function i(e){return a.innerHTML=e,t.documentMode&&b(a),a}var r;if(!t||!t.implementation)throw p("noinert","Can't create an inert html document");r=t.implementation.createHTMLDocument("inert");var a=(r.documentElement||r.getDocumentElement()).querySelector("body");return a.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',a.querySelector("svg")?(a.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',a.querySelector("svg img")?o:i):n}(e,e.document)}function o(e){var t=[];return m(t,l).chars(e),t.join("")}var i,r,a,s,d,l,c,u,m,p=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n).info({angularVersion:"1.6.6"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,r=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,d=t.isObject,l=t.isString;return function(t,c,u){function m(e){e&&v.push(o(e))}if(null==t||""===t)return t;if(!l(t))throw r("notstring","Expected string but received: {0}",t);for(var p,h,f,g=s(u)?u:d(u)?function(){return u}:function(){return{}},b=t,v=[];p=b.match(n);)h=p[0],p[2]||p[4]||(h=(p[3]?"http://":"mailto:")+h),f=p.index,m(b.substr(0,f)),function(e,t){var n,o=g(e);v.push("<a ");for(n in o)v.push(n+'="'+o[n]+'" ');!a(c)||"target"in o||v.push('target="',c,'" '),v.push('href="',e.replace(/"/g,"&quot;"),'">'),m(t),v.push("</a>")}(h,p[0].replace(i,"")),b=b.substring(f+p[0].length);return m(b),e(v.join(""))}}])}(window,window.angular)},function(e,t,n){"use strict";var o,i;"function"==typeof Symbol&&Symbol.iterator;/*!
   * angular-translate - v2.15.2 - 2017-06-22
   * 
   * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
   */
  !function(n,r){o=[],void 0!==(i=function(){return r()}.apply(t,o))&&(e.exports=i)}(0,function(){function e(e){var t=e.storageKey(),n=e.storage(),o=function(){var o=e.preferredLanguage();angular.isString(o)?e.use(o):n.put(t,e.use())};o.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(o):o():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){var e,t,n,o=null,i=!1,r=!1;n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=a(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=l(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=l(e,a)),e},sce:function(e,t,n){return"text"===t?e=d(e):"params"===t&&"filter"!==n&&(e=l(e,a)),e},sceParameters:function(e,t){return"params"===t&&(e=l(e,d)),e}},n.escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return i=!0,o=e,this},this.$get=["$injector","$log",function(a,s){var d={},l=function(e,t,o,i){return angular.forEach(i,function(i){if(angular.isFunction(i))e=i(e,t,o);else if(angular.isFunction(n[i]))e=n[i](e,t,o);else{if(!angular.isString(n[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!d[n[i]])try{d[n[i]]=a.get(n[i])}catch(e){throw d[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=d[n[i]](e,t,o)}}),e},c=function(){i||r||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),r=!0)};return a.has("$sanitize")&&(e=a.get("$sanitize")),a.has("$sce")&&(t=a.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,n,i){if(o||c(),n||null===n||(n=o),!n)return e;i||(i="service");var r=angular.isArray(n)?n:[n];return l(e,t,i,r)}}}];var a=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},d=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},l=function e(t,n,o){if(angular.isDate(t))return t;if(angular.isObject(t)){var i=angular.isArray(t)?[]:{};if(o){if(o.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else o=[];return o.push(t),angular.forEach(t,function(t,r){angular.isFunction(t)||(i[r]=e(t,n,o))}),o.splice(-1,1),i}return angular.isNumber(t)?t:!0===t||!1===t?t:angular.isUndefined(t)||null===t?t:n(t)}}function n(e,t,n,o){var i,r,a,s,d,l,c,u,m,p,h,f,g,b,v,E,$={},y=[],C=e,M=[],w="translate-cloak",T=!1,A=!1,k=".",x=!1,_=!1,S=0,N=!0,D="default",I={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():t},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},O=function(){if(angular.isFunction(o.getLocale))return o.getLocale();var e,n,i=t.$get().navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((n=i.languages[e])&&n.length)return n;for(e=0;e<r.length;e++)if((n=i[r[e]])&&n.length)return n;return null};O.displayName="angular-translate/service: getFirstBrowserLanguage";var H=function(){var e=O()||"";return I[D]&&(e=I[D](e)),e};H.displayName="angular-translate/service: getLocale";var P=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},L=function(){return this.toString().replace(/^\s+|\s+$/g,"")},R=function(e){if(e){for(var t=[],n=angular.lowercase(e),o=0,i=y.length;o<i;o++)t.push(angular.lowercase(y[o]));if(P(t,n)>-1)return e;if(r){var a;for(var s in r)if(r.hasOwnProperty(s)){var d=!1,l=Object.prototype.hasOwnProperty.call(r,s)&&angular.lowercase(s)===angular.lowercase(e);if("*"===s.slice(-1)&&(d=s.slice(0,-1)===e.slice(0,s.length-1)),(l||d)&&(a=r[s],P(t,angular.lowercase(a))>-1))return a}}var c=e.split("_");return c.length>1&&P(t,angular.lowercase(c[0]))>-1?c[0]:void 0}},j=function(e,t){if(!e&&!t)return $;if(e&&!t){if(angular.isString(e))return $[e]}else angular.isObject($[e])||($[e]={}),angular.extend($[e],F(t));return this};this.translations=j,this.cloakClassName=function(e){return e?(w=e,this):w},this.nestedObjectDelimeter=function(e){return e?(k=e,this):k};var F=function e(t,n,o,i){var r,a,s,d;n||(n=[]),o||(o={});for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(d=t[r],angular.isObject(d)?e(d,n.concat(r),o,r):(a=n.length?""+n.join(k)+k+r:r,n.length&&r===i&&(s=""+n.join(k),o[s]="@:"+a),o[a]=d));return o};F.displayName="flatObject",this.addInterpolation=function(e){return M.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return p=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(B(e),this):i};var B=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(g=e,this):g},this.translationNotFoundIndicatorRight=function(e){return e?(b=e,this):b},this.fallbackLanguage=function(e){return U(e),this};var U=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(i)&&P(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(e){if(e){if(!$[e]&&!h)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return d=e,this}return d},this.resolveClientLocale=function(){return H()};var q=function(e){return e?(C=e,this):u?u+C:C};this.storageKey=q,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return h=e,f=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(u=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return m=e,this},this.usePostCompiling=function(e){return T=!!e,this},this.forceAsyncReload=function(e){return A=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},D=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():H();return i=y.length?R(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(y=e,t&&(r=t),this):y},this.useLoaderCache=function(e){return!1===e?v=void 0:!0===e?v=!0:void 0===e?v="$translationCache":e&&(v=e),this},this.directivePriority=function(e){return void 0===e?S:(S=e,this)},this.statefulFilter=function(e){return void 0===e?N:(N=e,this)},this.postProcess=function(e){return E=e||void 0,this},this.keepContent=function(e){return _=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,o){var r,u,D,I=t.get(p||"$translateDefaultInterpolation"),O=!1,z={},V={},W=function e(t,n,s,l,m){!d&&i&&(d=i);var p=m&&m!==d?R(m)||m:d;if(m&&le(m),angular.isArray(t)){return function(t){for(var i={},r=[],a=0,d=t.length;a<d;a++)r.push(function(t){var r=o.defer(),a=function(e){i[t]=e,r.resolve([t,e])};return e(t,n,s,l,m).then(a,a),r.promise}(t[a]));return o.all(r).then(function(){return i})}(t)}var h=o.defer();t&&(t=L.apply(t));var f=function(){var e=i?V[i]:V[p];if(u=0,c&&!e){var t=r.get(C);if(e=V[t],a&&a.length){var n=P(a,t);u=0===n?1:0,P(a,i)<0&&a.push(i)}}return e}();if(f){var g=function(){m||(p=d),re(t,n,s,l,p).then(h.resolve,h.reject)};g.displayName="promiseResolved",f.finally(g).catch(angular.noop)}else re(t,n,s,l,p).then(h.resolve,h.reject);return h.promise},Y=function(e){return g&&(e=[g,e].join(" ")),b&&(e=[e,b].join(" ")),e},K=function(e){d=e,c&&r.put(W.storageKey(),d),n.$emit("$translateChangeSuccess",{language:e}),I.setLocale(d);var t=function(e,t){z[t].setLocale(d)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(z,t),n.$emit("$translateChangeEnd",{language:e})},G=function(e){if(!e)throw"No language key specified for loading.";var i=o.defer();n.$emit("$translateLoadingStart",{language:e}),O=!0;var r=v;"string"==typeof r&&(r=t.get(r));var a=angular.extend({},f,{key:e,$http:angular.extend({},{cache:r},f.$http)}),s=function(t){var o={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(o,F(e))}):angular.extend(o,F(t)),O=!1,i.resolve({key:e,table:o}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var d=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return d.displayName="onLoaderError",t.get(h)(a).then(s,d),i.promise};if(c&&(r=t.get(c),!r.get||!r.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(M.length){var X=function(e){var n=t.get(e);n.setLocale(i||d),z[n.getInterpolationIdentifier()]=n};X.displayName="interpolationFactoryAdder",angular.forEach(M,X)}var Q=function(e){var t=o.defer();if(Object.prototype.hasOwnProperty.call($,e))t.resolve($[e]);else if(V[e]){var n=function(e){j(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",V[e].then(n,t.reject)}else t.reject();return t.promise},Z=function e(t,n,i,r,a){var s=o.defer(),l=function(o){if(Object.prototype.hasOwnProperty.call(o,n)&&null!==o[n]){r.setLocale(t);var l=o[n];if("@:"===l.substr(0,2))e(t,l.substr(2),i,r,a).then(s.resolve,s.reject);else{var c=r.interpolate(o[n],i,"service",a,n);c=de(n,o[n],c,i,t),s.resolve(c)}r.setLocale(d)}else s.reject()};return l.displayName="fallbackTranslationResolver",Q(t).then(l,s.reject),s.promise},J=function e(t,n,o,i,r){var a,s=$[t];if(s&&Object.prototype.hasOwnProperty.call(s,n)&&null!==s[n]){if(i.setLocale(t),a=i.interpolate(s[n],o,"filter",r,n),a=de(n,s[n],a,o,t,r),!angular.isString(a)&&angular.isFunction(a.$$unwrapTrustedValue)){var l=a.$$unwrapTrustedValue();if("@:"===l.substr(0,2))return e(t,l.substr(2),o,i,r)}else if("@:"===a.substr(0,2))return e(t,a.substr(2),o,i,r);i.setLocale(d)}return a},ee=function(e,n,o,i){return m?t.get(m)(e,d,n,o,i):e},te=function e(t,n,i,r,s,d){var l=o.defer();if(t<a.length){var c=a[t];Z(c,n,i,r,d).then(function(e){l.resolve(e)},function(){return e(t+1,n,i,r,s,d).then(l.resolve,l.reject)})}else if(s)l.resolve(s);else{var u=ee(n,i,s);m&&u?l.resolve(u):l.reject(Y(n))}return l.promise},ne=function e(t,n,o,i,r){var s;if(t<a.length){var d=a[t];s=J(d,n,o,i,r),s||""===s||(s=e(t+1,n,o,i))}return s},oe=function(e,t,n,o,i){return te(D>0?D:u,e,t,n,o,i)},ie=function(e,t,n,o){return ne(D>0?D:u,e,t,n,o)},re=function(e,t,n,i,r,s){var d=o.defer(),l=r?$[r]:$,c=n?z[n]:I;if(l&&Object.prototype.hasOwnProperty.call(l,e)&&null!==l[e]){var u=l[e];if("@:"===u.substr(0,2))W(u.substr(2),t,n,i,r).then(d.resolve,d.reject);else{var p=c.interpolate(u,t,"service",s,e);p=de(e,u,p,t,r),d.resolve(p)}}else{var h;m&&!O&&(h=ee(e,t,i)),r&&a&&a.length?oe(e,t,c,i,s).then(function(e){d.resolve(e)},function(e){d.reject(Y(e))}):m&&!O&&h?i?d.resolve(i):d.resolve(h):i?d.resolve(i):d.reject(Y(e))}return d.promise},ae=function e(t,n,o,i,r){var s,d=i?$[i]:$,l=I;if(z&&Object.prototype.hasOwnProperty.call(z,o)&&(l=z[o]),d&&Object.prototype.hasOwnProperty.call(d,t)&&null!==d[t]){var c=d[t];"@:"===c.substr(0,2)?s=e(c.substr(2),n,o,i,r):(s=l.interpolate(c,n,"filter",r,t),s=de(t,c,s,n,i,r))}else{var p;m&&!O&&(p=ee(t,n,r)),i&&a&&a.length?(u=0,s=ie(t,n,l,r)):s=m&&!O&&p?p:Y(t)}return s},se=function(e){l===e&&(l=void 0),V[e]=void 0},de=function(e,n,o,i,r,a){var s=E;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,o,i,r,a):o},le=function(e){$[e]||!h||V[e]||(V[e]=G(e).then(function(e){return j(e.key,e.table),e}))};W.preferredLanguage=function(e){return e&&B(e),i},W.cloakClassName=function(){return w},W.nestedObjectDelimeter=function(){return k},W.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(U(e),h&&a&&a.length)for(var t=0,n=a.length;t<n;t++)V[a[t]]||(V[a[t]]=G(a[t]));W.use(W.use())}return s?a[0]:a},W.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=P(a,e);t>-1&&(D=t)}else D=0},W.proposedLanguage=function(){return l},W.storage=function(){return r},W.negotiateLocale=R,W.use=function(e){if(!e)return d;var t=o.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=R(e);return y.length>0&&!i?o.reject(e):(i&&(e=i),l=e,!A&&$[e]||!h||V[e]?V[e]?V[e].then(function(e){return l===e.key&&K(e.key),t.resolve(e.key),e},function(e){return!d&&a&&a.length>0&&a[0]!==e?W.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),K(e)):(V[e]=G(e).then(function(n){return j(n.key,n.table),t.resolve(n.key),l===e&&K(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),o.reject(e)}),V[e].finally(function(){se(e)}).catch(angular.noop)),t.promise)},W.resolveClientLocale=function(){return H()},W.storageKey=function(){return q()},W.isPostCompilingEnabled=function(){return T},W.isForceAsyncReloadEnabled=function(){return A},W.isKeepContent=function(){return _},W.refresh=function(e){function t(e){var t=G(e);return V[e]=t,t.then(function(t){$[e]={},j(e,t.table),r[e]=!0},angular.noop),t}if(!h)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var i=o.defer(),r={};if(i.promise.then(function(){for(var e in $)$.hasOwnProperty(e)&&(e in r||delete $[e]);d&&K(d)},angular.noop).finally(function(){n.$emit("$translateRefreshEnd",{language:e})}),e)$[e]?t(e).then(i.resolve,i.reject):i.reject();else{var s=a&&a.slice()||[];d&&-1===s.indexOf(d)&&s.push(d),o.all(s.map(t)).then(i.resolve,i.reject)}return i.promise},W.instant=function(e,t,n,o,r){var s=o&&o!==d?R(o)||o:d;if(null===e||angular.isUndefined(e))return e;if(o&&le(o),angular.isArray(e)){for(var l={},c=0,u=e.length;c<u;c++)l[e[c]]=W.instant(e[c],t,n,o,r);return l}if(angular.isString(e)&&e.length<1)return e;e&&(e=L.apply(e));var p,h=[];i&&h.push(i),s&&h.push(s),a&&a.length&&(h=h.concat(a));for(var f=0,v=h.length;f<v;f++){var E=h[f];if($[E]&&void 0!==$[E][e]&&(p=ae(e,t,n,s,r)),void 0!==p)break}if(!p&&""!==p)if(g||b)p=Y(e);else{p=I.interpolate(e,t,"filter",r);var y;m&&!O&&(y=ee(e,t,r)),m&&!O&&y&&(p=y)}return p},W.versionInfo=function(){return"2.15.2"},W.loaderCache=function(){return v},W.directivePriority=function(){return S},W.statefulFilter=function(){return N},W.isReady=function(){return x};var ce=o.defer();ce.promise.then(function(){x=!0}),W.onReady=function(e){var t=o.defer();return angular.isFunction(e)&&t.promise.then(e),x?t.resolve():ce.promise.then(t.resolve),t.promise},W.getAvailableLanguageKeys=function(){return y.length>0?y:null},W.getTranslationTable=function(e){return e=e||W.use(),e&&$[e]?angular.copy($[e]):null};var ue=n.$on("$translateReady",function(){ce.resolve(),ue(),ue=null}),me=n.$on("$translateChangeEnd",function(){ce.resolve(),me(),me=null});if(h){if(angular.equals($,{})&&W.use()&&W.use(W.use()),a&&a.length)for(var pe=function(e){return j(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},he=0,fe=a.length;he<fe;he++){var ge=a[he];!A&&$[ge]||(V[ge]=G(ge).then(pe))}}else n.$emit("$translateReady",{language:W.use()});return W}]}function o(e,t){var n,o={};return o.setLocale=function(e){n=e},o.getInterpolationIdentifier=function(){return"default"},o.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},o.interpolate=function(n,o,i,r,a){o=o||{},o=t.sanitize(o,"params",r,i);var s;return angular.isNumber(n)?s=""+n:angular.isString(n)?(s=e(n)(o),s=t.sanitize(s,"text",r,i)):s="",s},o}function i(e,t,n,o,i){var a=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(s,d){var l=d.translateValues?d.translateValues:void 0,c=d.translateInterpolation?d.translateInterpolation:void 0,u=s[0].outerHTML.match(/translate-value-+/i),m="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",p="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(s,h,f){s.interpolateParams={},s.preText="",s.postText="",s.translateNamespace=r(s);var g={},b=function e(n){if(angular.isFunction(e._unwatchOld)&&(e._unwatchOld(),e._unwatchOld=void 0),angular.equals(n,"")||!angular.isDefined(n)){var o=a.apply(h.text()),i=o.match(m);if(angular.isArray(i)){s.preText=i[1],s.postText=i[3],g.translate=t(i[2])(s.$parent);var r=o.match(p);angular.isArray(r)&&r[2]&&r[2].length&&(e._unwatchOld=s.$watch(r[2],function(e){g.translate=e,y()}))}else g.translate=o||void 0}else g.translate=n;y()};!function(e,t,n){if(t.translateValues&&angular.extend(e,o(t.translateValues)(s.$parent)),u)for(var i in n)if(Object.prototype.hasOwnProperty.call(t,i)&&"translateValue"===i.substr(0,14)&&"translateValues"!==i){var r=angular.lowercase(i.substr(14,1))+i.substr(15);e[r]=n[i]}}(s.interpolateParams,f,d);var v=!0;f.$observe("translate",function(e){void 0===e?b(""):""===e&&v||(g.translate=e,y()),v=!1});for(var E in f)f.hasOwnProperty(E)&&"translateAttr"===E.substr(0,13)&&E.length>13&&function(e){f.$observe(e,function(t){g[e]=t,y()})}(E);if(f.$observe("translateDefault",function(e){s.defaultText=e,y()}),l&&f.$observe("translateValues",function(e){e&&s.$parent.$watch(function(){angular.extend(s.interpolateParams,o(e)(s.$parent))})}),u){for(var $ in f)Object.prototype.hasOwnProperty.call(f,$)&&"translateValue"===$.substr(0,14)&&"translateValues"!==$&&function(e){f.$observe(e,function(t){var n=angular.lowercase(e.substr(14,1))+e.substr(15);s.interpolateParams[n]=t})}($)}var y=function(){for(var e in g)g.hasOwnProperty(e)&&void 0!==g[e]&&C(e,g[e],s,s.interpolateParams,s.defaultText,s.translateNamespace)},C=function(t,n,o,i,r,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,i,c,r,o.translateLanguage).then(function(e){M(e,o,!0,t)},function(e){M(e,o,!1,t)})):M(n,o,!1,t)},M=function(t,o,i,r){if(i||void 0!==o.defaultText&&(t=o.defaultText),"translate"===r){(i||!i&&!e.isKeepContent()&&void 0===f.translateKeepContent)&&h.empty().append(o.preText+t+o.postText);var a=e.isPostCompilingEnabled(),s=void 0!==d.translateCompile,l=s&&"false"!==d.translateCompile;(a&&!s||l)&&n(h.contents())(o)}else{var c=f.$attr[r];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),h.attr(c,t)}};(l||u||f.translateDefault)&&s.$watch("interpolateParams",y,!0),s.$on("translateLanguageChanged",y);var w=i.$on("$translateChangeSuccess",y);h.text().length?b(f.translate?f.translate:""):f.translate&&b(f.translate),y(),s.$on("$destroy",w)}}}}function r(e){return e.translateNamespace?e.translateNamespace:e.$parent?r(e.$parent):void 0}function a(e,t){return{restrict:"A",priority:e.directivePriority(),link:function(n,o,i){var r,a,d={},l=function(){angular.forEach(r,function(t,r){t&&(d[r]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,a,i.translateInterpolation,void 0,n.translateLanguage).then(function(e){o.attr(r,e)},function(e){o.attr(r,e)}))}),angular.forEach(d,function(e,t){r[t]||(o.removeAttr(t),delete d[t])})};s(n,i.translateAttr,function(e){r=e},l),s(n,i.translateValues,function(e){a=e},l),i.translateValues&&n.$watch(i.translateValues,l,!0),n.$on("translateLanguageChanged",l);var c=t.$on("$translateChangeSuccess",l);l(),n.$on("$destroy",c)}}}function s(e,t,n,o){t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,function(e){n(e),o()},!0),n(e.$eval(t)))}function d(e,t){return{compile:function(n){var o=function(t){t.addClass(e.cloakClassName())},i=function(t){t.removeClass(e.cloakClassName())};return o(n),function(n,r,a){var s=i.bind(this,r),d=o.bind(this,r);a.translateCloak&&a.translateCloak.length?(a.$observe("translateCloak",function(t){e(t).then(s,d)}),t.$on("$translateChangeSuccess",function(){e(a.translateCloak).then(s,d)})):e.onReady(s)}}}}function l(){return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=r(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function r(e){return e.translateNamespace?e.translateNamespace:e.$parent?r(e.$parent):void 0}function c(){return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function u(e,t){var n=function(n,o,i,r){if(!angular.isObject(o)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};o=e(o)(a)}return t.instant(n,o,i,r)};return t.statefulFilter()&&(n.$stateful=!0),n}function m(e){return e("translations")}return e.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],o.$inject=["$interpolate","$translateSanitization"],i.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],a.$inject=["$translate","$rootScope"],d.$inject=["$translate","$rootScope"],u.$inject=["$parse","$translate"],m.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",o),o.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",a),a.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",d),d.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",l),l.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",c),c.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",u),u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",m),m.displayName="$translationCache","pascalprecht.translate"})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=o(i),a=n(17),s=o(a),d=n(19);t.default=r.default.module("md-dytable.table",[s.default]).component("mdDytable",d.TableComponent).name},function(e,t,n){"use strict";n(1),n(18),e.exports="md.data.table"},function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/*
   * Angular Material Data Table
   * https://github.com/daniel-nagy/md-data-table
   * @license MIT
   * v0.10.9
   */
  !function(e,t,n){function i(){function e(e){e.addClass("md-body")}return{compile:e,restrict:"A"}}function r(){function e(e){var t=e.find("md-select");return t.length&&t.addClass("md-table-select").attr("md-container-class","md-table-select"),e.addClass("md-cell"),n}function t(){}function n(e,t,n,o){function i(){return d.$$columns[r()]}function r(){return Array.prototype.indexOf.call(t.parent().children(),t[0])}var a=t.find("md-select"),s=o.shift(),d=o.shift();n.ngClick&&t.addClass("md-clickable"),a.length&&(a.on("click",function(e){e.stopPropagation()}),t.addClass("md-clickable").on("click",function(e){e.stopPropagation(),a[0].click()})),s.getTable=d.getElement,e.$watch(i,function(e){e&&(e.numeric?t.addClass("md-numeric"):t.removeClass("md-numeric"))})}return{controller:t,compile:e,require:["mdCell","^^mdTable"],restrict:"A"}}function a(e,n){function o(e){return e.addClass("md-column"),i}function i(o,i,r,a){function s(){var n=t.element('<md-icon md-svg-icon="arrow-up.svg">');e(n.addClass("md-sort-icon").attr("ng-class","getDirection()"))(o),i.hasClass("md-numeric")?i.prepend(n):i.append(n)}function d(){Array.prototype.some.call(i.find("md-icon"),function(e){return e.classList.contains("md-sort-icon")&&i[0].removeChild(e)})}function l(){d(),i.removeClass("md-sort").off("click",h)}function c(){s(),i.addClass("md-sort").on("click",h)}function u(){return Array.prototype.indexOf.call(i.parent().children(),i[0])}function m(){return o.orderBy&&(g.order===o.orderBy||g.order==="-"+o.orderBy)}function p(){return""===r.mdNumeric||o.numeric}function h(){o.$applyAsync(function(){m()?g.order="md-asc"===o.getDirection()?"-"+o.orderBy:o.orderBy:g.order="md-asc"===o.getDirection()?o.orderBy:"-"+o.orderBy,t.isFunction(g.onReorder)&&n.nextTick(function(){g.onReorder(g.order)})})}function f(e,t){b.$$columns[e]=t,t.numeric?i.addClass("md-numeric"):i.removeClass("md-numeric")}var g=a.shift(),b=a.shift();o.getDirection=function(){return m()?"-"===g.order.charAt(0)?"md-desc":"md-asc":""===r.mdDesc||o.$eval(r.mdDesc)?"md-desc":"md-asc"},o.$watch(m,function(e){e?i.addClass("md-active"):i.removeClass("md-active")}),o.$watch(u,function(e){f(e,{numeric:p()})}),o.$watch(p,function(e){f(u(),{numeric:e})}),o.$watch("orderBy",function(e){e?i.hasClass("md-sort")||c():i.hasClass("md-sort")&&l()})}return{compile:o,require:["^^mdHead","^^mdTable"],restrict:"A",scope:{numeric:"=?mdNumeric",orderBy:"@?mdOrderBy"}}}function s(e){return function(n,i,r,a){if(r&&"object"===(void 0===r?"undefined":o(r))){var s=e(n,i,!0,a);return t.extend(s.instance,r),s()}return e(n,i,r,a)}}function d(e,n,i,r,a,s,d,l,c){function u(n,o){var i,a=s.$new(),d=e(n)(a),l=r.createBackdrop(a,"md-edit-dialog-backdrop");return o.controller?i=p(o,a,{$element:d,$scope:a}):t.extend(a,o.scope),o.disableScroll&&m(d),C.prepend(l).append(d.addClass("md-whiteframe-1dp")),v(d,o.target),o.focusOnOpen&&b(d),o.clickOutsideToClose&&l.on("click",function(){d.remove()}),o.escToClose&&g(d),d.on("$destroy",function(){y=!1,l.remove()}),i}function m(e){var t=r.disableScrollAround(e,C);e.on("$destroy",function(){t()})}function p(e,o,i){if(e.controller)return e.resolve&&t.extend(i,e.resolve),e.locals&&t.extend(i,e.locals),e.controllerAs?(o[e.controllerAs]={},e.bindToController?t.extend(o[e.controllerAs],e.scope):t.extend(o,e.scope)):t.extend(o,e.scope),e.bindToController?n(e.controller,i,o[e.controllerAs]):n(e.controller,i)}function h(e){return a(function(n,i){var r=e.template;if(r)return t.isString(r)?n(r):function(e){i("Unexpected template value. Expected a string; received a "+e+".")}(void 0===r?"undefined":o(r));if(e.templateUrl){if(r=d.get(e.templateUrl))return n(r);var a=function(e){return n(e)},s=function(){return i("Error retrieving template from URL.")};return l(e.templateUrl).then(a,s)}i("Template not provided.")})}function f(e){y=!1,console.error(e)}function g(e){var t=function(t){t.keyCode===$&&e.remove()};C.on("keyup",t),e.on("$destroy",function(){C.off("keyup",t)})}function b(e){r.nextTick(function(){var t=r.findFocusTarget(e);t&&t.focus()},!1)}function v(e,n){var o=t.element(n).controller("mdCell").getTable(),i=function(){return e.prop("clientHeight")},r=function(){return{width:d(),height:i()}},a=function(){var e=o.parent();return"MD-TABLE-CONTAINER"===e.prop("tagName")?e[0].getBoundingClientRect():o[0].getBoundingClientRect()},d=function(){return e.prop("clientWidth")},l=function(){var t=r(),o=n.getBoundingClientRect(),i=a();t.width>i.right-o.left?e.css("left",i.right-t.width+"px"):e.css("left",o.left+"px"),t.height>i.bottom-o.top?e.css("top",i.bottom-t.height+"px"):e.css("top",o.top+1+"px"),e.css("minWidth",o.width+"px")},u=s.$watch(d,l),m=s.$watch(i,l);c.addEventListener("resize",l),e.on("$destroy",function(){u(),m(),c.removeEventListener("resize",l)})}function E(e,n){return{controller:["$element","$q","save","$scope",function(e,n,o,i){function r(){return i.editDialog.$invalid?n.reject():t.isFunction(o)?n.when(o(i.editDialog.input)):n.resolve()}this.dismiss=function(){e.remove()},this.getInput=function(){return i.editDialog.input},i.dismiss=this.dismiss,i.submit=function(){r().then(function(){i.dismiss()})}}],locals:{save:n.save},scope:{cancel:n.cancel||"Cancel",messages:n.messages,model:n.modelValue,ok:n.ok||"Save",placeholder:n.placeholder,title:n.title,size:e},template:'<md-edit-dialog><div layout="column" class="md-content"><div ng-if="size === \'large\'" class="md-title">{{title || \'Edit\'}}</div><form name="editDialog" layout="column" ng-submit="submit(model)"><md-input-container md-no-float><input name="input" ng-model="model" md-autofocus placeholder="{{placeholder}} "'+function(){var e='type="'+(n.type||"text")+'"';for(var t in n.validators)e+=" "+t+'="'+n.validators[t]+'"';return e}()+'><div ng-messages="editDialog.input.$error"><div ng-repeat="(key, message) in messages" ng-message="{{key}}">{{message}}</div></div></md-input-container></form></div><div ng-if="size === \'large\'" layout="row" layout-align="end" class="md-actions"><md-button class="md-primary" ng-click="dismiss()">{{cancel}}</md-button><md-button class="md-primary" ng-click="submit()">{{ok}}</md-button></div></md-edit-dialog>'}}var $=27,y=!1,C=t.element(i.prop("body")),M={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};return this.show=function(e){if(y)return a.reject();if(y=!0,e=t.extend({},M,e),!e.targetEvent)return f("options.targetEvent is required to align the dialog with the table cell.");if(!e.targetEvent.currentTarget.classList.contains("md-cell"))return f("The event target must be a table cell.");if(e.bindToController&&!e.controllerAs)return f("You must define options.controllerAs when options.bindToController is true.");e.target=e.targetEvent.currentTarget;var n=h(e),o=[n];for(var i in e.resolve)n=e.resolve[i],o.push(a.when(t.isFunction(n)?n():n));return n=a.all(o),n.catch(f),n.then(function(t){var n=t.shift();for(var o in e.resolve)e.resolve[o]=t.shift();return u(n,e)})},this.small=function(e){return this.show(t.extend({},e,E("small",e)))}.bind(this),this.large=function(e){return this.show(t.extend({},e,E("large",e)))}.bind(this),this}function l(){function e(e){e.addClass("md-foot")}return{compile:e,restrict:"A"}}function c(e){function n(e){return e.addClass("md-head"),i}function o(){}function i(n,o,i,r){function a(){o.children().prepend('<th class="md-column md-checkbox-column">')}function s(){o.prop("lastElementChild").firstElementChild.appendChild(e(d())(n)[0])}function d(){return t.element("<md-checkbox>").attr({"aria-label":"Select All","ng-click":"toggleAll()","ng-checked":"allSelected()","ng-disabled":"!getSelectableRows().length"})}function l(){var e=o.prop("lastElementChild").firstElementChild;e.classList.contains("md-checkbox-column")&&t.element(e).empty()}function c(){return r.$$rowSelect}function u(e){return t.element(e).controller("mdSelect")}function m(){Array.prototype.some.call(o.find("th"),function(e){return e.classList.contains("md-checkbox-column")&&e.remove()})}var p=new Array(2);n.allSelected=function(){var e=n.getSelectableRows();return e.length&&e.every(function(e){return e.isSelected()})},n.getSelectableRows=function(){return r.getBodyRows().map(u).filter(function(e){return e&&!e.disabled})},n.selectAll=function(){r.getBodyRows().map(u).forEach(function(e){e&&!e.isSelected()&&e.select()})},n.toggleAll=function(){return n.allSelected()?n.unSelectAll():n.selectAll()},n.unSelectAll=function(){r.getBodyRows().map(u).forEach(function(e){e&&e.isSelected()&&e.deselect()})},n.$watchGroup([c,r.enableMultiSelect],function(e){e[0]!==p[0]?e[0]?(a(),e[1]&&s()):m():e[0]&&e[1]!==p[1]&&(e[1]?s():l()),t.copy(e,p)})}return{bindToController:!0,compile:n,controller:o,controllerAs:"$mdHead",require:"^^mdTable",restrict:"A",scope:{order:"=?mdOrder",onReorder:"=?mdOnReorder"}}}function u(){function e(e){return e.addClass("md-row"),n}function n(e,n,o,i){function r(){return i.$$rowSelect}function a(e){return n[0].contains(e[0])}if(function(){return-1!==i.getBodyRows().indexOf(n[0])}()){var s=t.element('<td class="md-cell">');e.$watch(r,function(e){if(e&&!o.mdSelect)return void(a(s)||n.prepend(s));a(s)&&s.remove()})}}return{compile:e,require:"^^mdTable",restrict:"A"}}function m(e,n){function o(){}function i(o,i,r,a){function s(){return""===r.mdAutoSelect||h.autoSelect}function d(){var n=t.element("<md-checkbox>").attr({"aria-label":"Select Row","ng-click":"$mdSelect.toggle($event)","ng-checked":"$mdSelect.isSelected()","ng-disabled":"$mdSelect.disabled"});return t.element('<td class="md-cell md-checkbox-cell">').append(e(n)(o))}function l(){Array.prototype.some.call(i.children(),function(e){return e.classList.contains("md-checkbox-cell")&&i[0].removeChild(e)}),s()&&i.off("click",p)}function c(){i.prepend(d()),s()&&i.on("click",p)}function u(){return f.$$rowSelect}function m(e){if(h.id)return f.$$hash.has(h.id)?void(-1===e.indexOf(f.$$hash.get(h.id))&&f.$$hash.purge(h.id)):void(-1!==e.indexOf(h.model)&&f.$$hash.update(h.id,h.model))}function p(e){o.$applyAsync(function(){h.toggle(e)})}var h=a.shift(),f=a.shift(),g=n(r.mdSelectId);if(h.id=g(h.model),f.$$rowSelect&&h.id)if(f.$$hash.has(h.id)){var b=f.selected.indexOf(f.$$hash.get(h.id));-1===b?f.$$hash.purge(h.id):f.$$hash.equals(h.id,h.model)||(f.$$hash.update(h.id,h.model),f.selected.splice(b,1,h.model))}else f.selected.some(function(e,t){if(g(e)===h.id)return f.$$hash.update(h.id,h.model),f.selected.splice(t,1,h.model),!0});h.isSelected=function(){return!!f.$$rowSelect&&(h.id?f.$$hash.has(h.id):-1!==f.selected.indexOf(h.model))},h.select=function(){h.disabled||(f.enableMultiSelect()?f.selected.push(h.model):f.selected.splice(0,f.selected.length,h.model),t.isFunction(h.onSelect)&&h.onSelect(h.model))},h.deselect=function(){h.disabled||(f.selected.splice(f.selected.indexOf(h.model),1),t.isFunction(h.onDeselect)&&h.onDeselect(h.model))},h.toggle=function(e){return e&&e.stopPropagation&&e.stopPropagation(),h.isSelected()?h.deselect():h.select()},o.$watch(u,function(e){e?c():l()}),o.$watch(s,function(e,t){e!==t&&(f.$$rowSelect&&e?i.on("click",p):i.off("click",p))}),o.$watch(h.isSelected,function(e){return e?i.addClass("md-selected"):i.removeClass("md-selected")}),o.$watch(f.enableMultiSelect,function(e){f.$$rowSelect&&!e&&f.selected.splice(1)}),f.registerModelChangeListener(m),i.on("$destroy",function(){f.removeModelChangeListener(m)})}return{bindToController:!0,controller:o,controllerAs:"$mdSelect",link:i,require:["mdSelect","^^mdTable"],restrict:"A",scope:{model:"=mdSelect",disabled:"=ngDisabled",onSelect:"=?mdOnSelect",onDeselect:"=?mdOnDeselect",autoSelect:"=mdAutoSelect"}}}function p(){var e={};this.equals=function(t,n){return e[t]===n},this.get=function(t){return e[t]},this.has=function(t){return e.hasOwnProperty(t)},this.purge=function(t){delete e[t]},this.update=function(t,n){e[t]=n}}function h(){function e(e,n){if(e.addClass("md-table"),n.hasOwnProperty("mdProgress")){var o=e.find("tbody")[0],i=t.element('<thead class="md-table-progress" md-table-progress>');o&&e[0].insertBefore(i[0],o)}}function n(e,n,i,r){function a(){m.$$rowSelect=!0,u=r.$watchCollection("$mdTable.selected",function(e){f.forEach(function(t){t(e)})}),n.addClass("md-row-select")}function s(){m.$$rowSelect=!1,t.isFunction(u)&&u(),n.removeClass("md-row-select")}function d(){if(!h.length)return r.$applyAsync();h[0].finally(function(){h.shift(),d()})}function l(){return""===e.mdRowSelect||m.rowSelect}function c(){return m.selected?!!t.isArray(m.selected)||console.error("Row selection: Expected an array. Recived "+o(m.selected)+"."):console.error("Row selection: ngModel is not defined.")}var u,m=this,h=[],f=[];m.$$hash=new p,m.$$columns={},m.columnCount=function(){return m.getRows(n[0]).reduce(function(e,t){return t.cells.length>e?t.cells.length:e},0)},m.getRows=function(e){return Array.prototype.filter.call(e.rows,function(e){return!e.classList.contains("ng-leave")})},m.getBodyRows=function(){return Array.prototype.reduce.call(n.prop("tBodies"),function(e,t){return e.concat(m.getRows(t))},[])},m.getElement=function(){return n},m.getHeaderRows=function(){return m.getRows(n.prop("tHead"))},m.enableMultiSelect=function(){return""===e.multiple||r.$eval(e.multiple)},m.waitingOnPromise=function(){return!!h.length},m.queuePromise=function(e){e&&1===h.push(t.isArray(e)?i.all(e):i.when(e))&&d()},m.registerModelChangeListener=function(e){f.push(e)},m.removeModelChangeListener=function(e){var t=f.indexOf(e);-1!==t&&f.splice(t,1)},e.hasOwnProperty("mdProgress")&&r.$watch("$mdTable.progress",m.queuePromise),r.$watch(l,function(e){e&&c()?a():s()})}return n.$inject=["$attrs","$element","$q","$scope"],{bindToController:!0,compile:e,controller:n,controllerAs:"$mdTable",restrict:"A",scope:{progress:"=?mdProgress",selected:"=ngModel",rowSelect:"=mdRowSelect"}}}function f(){function e(e){e.addClass("md-table-pagination")}function n(e,n,o){function i(e){return parseInt(e,10)>0}var r=this,a={page:"Page:",rowsPerPage:"Rows per page:",of:"of"};r.label=t.copy(a),r.eval=function(e){return o.$eval(e)},r.first=function(){r.page=1,r.onPaginationChange()},r.hasNext=function(){return r.page*r.limit<r.total},r.hasPrevious=function(){return r.page>1},r.last=function(){r.page=r.pages(),r.onPaginationChange()},r.max=function(){return r.hasNext()?r.page*r.limit:r.total},r.min=function(){return i(r.total)?r.page*r.limit-r.limit+1:0},r.next=function(){r.page++,r.onPaginationChange()},r.onPaginationChange=function(){t.isFunction(r.onPaginate)&&n.nextTick(function(){r.onPaginate(r.page,r.limit)})},r.pages=function(){return i(r.total)?Math.ceil(r.total/(i(r.limit)?r.limit:1)):1},r.previous=function(){r.page--,r.onPaginationChange()},r.showBoundaryLinks=function(){return""===e.mdBoundaryLinks||r.boundaryLinks},r.showPageSelect=function(){return""===e.mdPageSelect||r.pageSelect},o.$watch("$pagination.limit",function(e,t){isNaN(e)||isNaN(t)||e===t||(r.page=Math.floor((r.page*t-t+e)/(i(e)?e:1)),r.onPaginationChange())}),e.$observe("mdLabel",function(e){t.extend(r.label,a,o.$eval(e))}),o.$watch("$pagination.total",function(e,t){isNaN(e)||e===t||r.page>r.pages()&&r.last()})}return n.$inject=["$attrs","$mdUtil","$scope"],{bindToController:{boundaryLinks:"=?mdBoundaryLinks",disabled:"=ngDisabled",limit:"=mdLimit",page:"=mdPage",pageSelect:"=?mdPageSelect",onPaginate:"=?mdOnPaginate",limitOptions:"=?mdLimitOptions",total:"@mdTotal"},compile:e,controller:n,controllerAs:"$pagination",restrict:"E",scope:{},templateUrl:"md-table-pagination.html"}}function g(){function e(e,t,n,o){e.columnCount=o.columnCount,e.deferred=o.waitingOnPromise}return{link:e,require:"^^mdTable",restrict:"A",scope:{},templateUrl:"md-table-progress.html"}}function b(){function e(e,t){function n(e,t){return Math.min(e,isFinite(t)&&o(t)?t:1)}function o(e){return e>0}function i(e){if(r.pages.length>e)return r.pages.splice(e);for(var t=r.pages.length;t<e;t++)r.pages.push(t+1)}var r=this,a=e.find("md-content");r.pages=[],a.on("scroll",function(){a.prop("clientHeight")+a.prop("scrollTop")>=a.prop("scrollHeight")&&t.$applyAsync(function(){i(n(r.pages.length+10,r.total))})}),t.$watch("$pageSelect.total",function(e){i(n(Math.max(r.pages.length,10),e))}),t.$watch("$pagination.page",function(e){for(var t=r.pages.length;t<e;t++)r.pages.push(t+1)})}return e.$inject=["$element","$scope"],{bindToController:{total:"@"},controller:e,controllerAs:"$pageSelect"}}t.module("md.table.templates",["md-table-pagination.html","md-table-progress.html","arrow-up.svg","navigate-before.svg","navigate-first.svg","navigate-last.svg","navigate-next.svg"]),t.module("md-table-pagination.html",[]).run(["$templateCache",function(e){e.put("md-table-pagination.html",'<div class="page-select" ng-if="$pagination.showPageSelect()">\n  <div class="label">{{$pagination.label.page}}</div>\n\n  <md-select virtual-page-select total="{{$pagination.pages()}}" class="md-table-select" ng-model="$pagination.page" md-container-class="md-pagination-select" ng-change="$pagination.onPaginationChange()" ng-disabled="$pagination.disabled" aria-label="Page">\n    <md-content>\n      <md-option ng-repeat="page in $pageSelect.pages" ng-value="page">{{page}}</md-option>\n    </md-content>\n  </md-select>\n</div>\n\n<div class="limit-select" ng-if="$pagination.limitOptions">\n  <div class="label">{{$pagination.label.rowsPerPage}}</div>\n\n  <md-select class="md-table-select" ng-model="$pagination.limit" md-container-class="md-pagination-select" ng-disabled="$pagination.disabled" aria-label="Rows" placeholder="{{ $pagination.limitOptions[0] }}">\n    <md-option ng-repeat="option in $pagination.limitOptions" ng-value="option.value ? $pagination.eval(option.value) : option">{{::option.label ? option.label : option}}</md-option>\n  </md-select>\n</div>\n\n<div class="buttons">\n  <div class="label">{{$pagination.min()}} - {{$pagination.max()}} {{$pagination.label.of}} {{$pagination.total}}</div>\n\n  <md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.first()" ng-disabled="$pagination.disabled || !$pagination.hasPrevious()" aria-label="First">\n    <md-icon md-svg-icon="navigate-first.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-click="$pagination.previous()" ng-disabled="$pagination.disabled || !$pagination.hasPrevious()" aria-label="Previous">\n    <md-icon md-svg-icon="navigate-before.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-click="$pagination.next()" ng-disabled="$pagination.disabled || !$pagination.hasNext()" aria-label="Next">\n    <md-icon md-svg-icon="navigate-next.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.last()" ng-disabled="$pagination.disabled || !$pagination.hasNext()" aria-label="Last">\n    <md-icon md-svg-icon="navigate-last.svg"></md-icon>\n  </md-button>\n</div>')}]),t.module("md-table-progress.html",[]).run(["$templateCache",function(e){e.put("md-table-progress.html",'<tr>\n  <th colspan="{{columnCount()}}">\n    <md-progress-linear ng-show="deferred()" md-mode="indeterminate"></md-progress-linear>\n  </th>\n</tr>')}]),t.module("arrow-up.svg",[]).run(["$templateCache",function(e){e.put("arrow-up.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>')}]),t.module("navigate-before.svg",[]).run(["$templateCache",function(e){e.put("navigate-before.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')}]),t.module("navigate-first.svg",[]).run(["$templateCache",function(e){e.put("navigate-first.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 6 v12 h2 v-12 h-2z M17.41 7.41L16 6l-6 6 6 6 1.41-1.41L12.83 12z"/></svg>')}]),t.module("navigate-last.svg",[]).run(["$templateCache",function(e){e.put("navigate-last.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 6 v12 h2 v-12 h-2z M8 6L6.59 7.41 11.17 12l-4.58 4.59L8 18l6-6z"/></svg>')}]),t.module("navigate-next.svg",[]).run(["$templateCache",function(e){e.put("navigate-next.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>')}]),t.module("md.data.table",["md.table.templates"]),t.module("md.data.table").directive("mdBody",i),t.module("md.data.table").directive("mdCell",r),t.module("md.data.table").directive("mdColumn",a),a.$inject=["$compile","$mdUtil"],t.module("md.data.table").decorator("$controller",s).factory("$mdEditDialog",d),s.$inject=["$delegate"],d.$inject=["$compile","$controller","$document","$mdUtil","$q","$rootScope","$templateCache","$templateRequest","$window"],t.module("md.data.table").directive("mdFoot",l),t.module("md.data.table").directive("mdHead",c),c.$inject=["$compile"],t.module("md.data.table").directive("mdRow",u),t.module("md.data.table").directive("mdSelect",m),m.$inject=["$compile","$parse"],t.module("md.data.table").directive("mdTable",h),t.module("md.data.table").directive("mdTablePagination",f),t.module("md.data.table").directive("mdTableProgress",g),t.module("md.data.table").directive("virtualPageSelect",b)}(window,angular)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t){o(this,e),this.$filter=t,this.arrayKey=[]}return i(e,[{key:"$onInit",value:function(){this.newConfig=[],this.order(),this.selected=[],this.pagination&&(this.prevLimit=this.pagination.limit,this.prevPage=this.pagination.page)}},{key:"order",value:function(){var e=[];for(var t in this.objectConfig){var n=[t,this.objectConfig[t]];e.push(n)}e.sort(function(e,t){return parseInt(e[1].order,10)>parseInt(t[1].order,10)?1:-1}),this.newConfig=e}},{key:"paginar",value:function(){this.prevLimit===this.pagination.limit&&this.prevPage===this.pagination.page||(this.prevLimit=this.pagination.limit,this.prevPage=this.pagination.page,this.onPaginate({page:this.pagination.page,limit:this.pagination.limit}))}},{key:"$onChanges",value:function(e){if(e.pagination&&e.pagination.currentValue&&(this.pagination=e.pagination.currentValue),e.objectConfig&&(this.objectConfig=e.objectConfig.currentValue,this.arrayKeyFill()),e.actions&&e.actions.currentValue)if(angular.isUndefined(e.actions.currentValue[0])||angular.isUndefined(e.actions.currentValue[0].order))this.actions=angular.copy(e.actions.currentValue);else{var t=[];t.sort(function(e,t){return parseInt(e[1].order,10)>parseInt(t[1].order,10)?1:-1})}if(e.objects&&!angular.isUndefined(e.objects.currentValue)){var n=e.objects.currentValue.length?e.objects.currentValue:[e.objects.currentValue];this.arrayKey.length>0?this.objects=this.arrayValueCheck(n):this.objects=n}}},{key:"arrayKeyFill",value:function(){if(this.objectConfig)for(var e in this.objectConfig)this.objectConfig.hasOwnProperty(e)&&("array-text"!==this.objectConfig[e].type&&"array-object"!==this.objectConfig[e].type||this.arrayKey.push(e))}},{key:"arrayValueCheck",value:function(e){for(var t=0;t<e.length;t++)for(var n=0;n<this.arrayKey.length;n++)if(e[t][this.arrayKey[n]]){var o=e[t][this.arrayKey[n]];e[t][this.arrayKey[n]]=o.length?o:[o]}return e}},{key:"onSelect",value:function(e){this.onSelection({object:e})}},{key:"applyFilter",value:function(e,t,n){return t?this.$filter(t)(e,n):e}}]),e}();t.TableComponent={template:n(20),controller:["$filter",r],bindings:{config:"<",headers:"<",objectConfig:"<",objects:"<",actions:"<",pagination:"<",onPaginate:"&",onAction:"&",onSelection:"&",onDeselection:"&"}}},function(e,t){e.exports='<md-table-container>\n  <table print-table="$ctrl.objects" md-table md-row-select="$ctrl.config.rowSelect" multiple="{{$ctrl.config.multiple}}" ng-model="$ctrl.selected"\n    md-progress="promise">\n    <thead md-head>\n      <tr md-row>\n        <th md-column ng-repeat="header in $ctrl.headers" md-numeric="header.numeric" flex class="table-header">\n          <p translate="{{header.name}}"></p>\n          <md-tooltip ng-if="header.tooltip" ng-class="header.tooltip.style" md-z-index="header.tooltip.zIndex" md-delay="header.tooltip.delay"\n              md-autohide="header.tooltip.autohide">\n              {{header.tooltip.text | translate}}\n            </md-tooltip>\n        </th>\n        <th md-column ng-repeat="action in $ctrl.actions" flex class="table-header">\n\n        </th>\n      </tr>\n    </thead>\n    <tbody md-body>\n      <tr md-row ng-repeat="object in $ctrl.objects track by $index" md-select="object" md-select-id="name" md-on-select="$ctrl.onSelection(object)"\n        md-on-deselect="$ctrl.onDeselection(object)" x-md-auto-select="$ctrl.config.autoSelect" ng-disabled="object[$ctrl.config.rowSelectDisable]"\n        md-auto-select>\n        <td md-cell ng-repeat="conf in $ctrl.newConfig" ng-class="conf[1].cellStyle">\n          \x3c!-- {{conf[0]}} --\x3e\n\n          <md-checkbox ng-if="(conf[1].type === \'checkbox\')" ng-model="object[conf[0]]" aria-label="{{conf[0]}}"\n            ng-change="$ctrl.onAction({name: conf[1].action, object: object})" ng-class="conf[1].style" ng-disabled="conf[1].disabled">\n          </md-checkbox>\n\n          <md-input-container ng-if="(conf[1].type === \'input-text\')" ng-model="object[conf[0]]" aria-label="{{conf[0]}}" ng-class="conf[1].style">\n            <label></label>\n            <input ng-model="object[conf[0]]" ng-change="$ctrl.onAction({name: conf[1].action, object: object})" ng-disabled="conf[1].disabled">\n          </md-input-container>\n\n          <md-input-container ng-if="(conf[1].type === \'input-number\')" ng-model="object[conf[0]]" aria-label="{{conf[0]}}" ng-class="conf[1].style">\n            <label translate="{{conf[1].text}}"></label>\n            <input ng-model="object[conf[0]]"\n            ng-change="$ctrl.onAction({name: conf[1].action, object: object})"\n            type="number"\n             ng-disabled="conf[1].disabled || object[conf[1].options.depends]"\n             min="{{conf[1].options.min}}"\n             max="{{conf[1].options.max}}">\n          </md-input-container>\n\n          <span ng-if="(conf[1].type === \'text\')" ng-class="conf[1].style" ng-disabled="conf[1].disabled" translate="{{object[conf[0]]}}">\n          </span>\n\n          <md-icon ng-if="(conf[1].type === \'icon\')" ng-class="conf[1].style">\n            {{object[conf[0]]}}\n          </md-icon>\n\n          <div ng-if="(conf[1].type === \'icon-set\')">\n            <div ng-repeat="option in conf[1].options">\n              <md-icon ng-if="object[conf[0]] == option.value" ng-class="option.style" >\n            {{option.icon}}\n            </md-icon>\n            </div>\n          </div>\n\n          <div ng-if="(conf[1].type === \'array-text\')" ng-class="conf[1].style">\n              <span ng-repeat="value in object[conf[0]]">\n                <span>\n                  {{value|translate}}\n                  <span ng-if="!$last"></span>\n                </span>\n              </span>\n          </div>\n\n          <div ng-if="(conf[1].type === \'array-object\')" layout="column">\n              <span ng-repeat="value in object[conf[0]] | limitTo: conf[1].limit">\n                  {{value[conf[1].value]}}\n              </span>\n          </div>\n\n\n          <span ng-if="(conf[1].type === \'filter\')" ng-class="conf[1].style">\n              {{$ctrl.applyFilter(object[conf[0]], conf[1].filter, conf[1].option)}}\n          </span>\n\n          <span ng-if="(conf[1].type === \'child\')" ng-class="conf[1].style" ng-disabled="conf[1].disabled">\n         {{object[conf[0]][conf[1].child]}}\n      </span>\n\n          <span ng-if="(conf[1].type === \'copy\')" ng-class="conf[1].style" ng-disabled="conf[1].disabled">\n         {{object[conf[1].copy]}}\n      </span>\n\n          <span ng-if="(conf[1].type === \'filter-copy\')" ng-class="conf[1].style" ng-disabled="conf[1].disabled">\n              {{$ctrl.applyFilter(object[conf[1].copy], conf[1].filter, conf[1].option)}}\n      </span>\n\n          <img ng-if="(conf[1].type === \'image\')" ng-src="{{object[conf[0]]}}" ng-class="conf[1].style" alt="{{conf[1].alt}}"/>\n\n          <span ng-if="(conf[1].type === \'date\')" ng-class="conf[1].style" ng-disabled="conf[1].disabled">\n         {{object[conf[0]]|date: conf[1].format}}\n      </span>\n\n        <div ng-if="conf[1].type === \'switch\'" layout="row">\n        <span  flex></span>\n          <md-switch ng-if="conf[1].type === \'switch\'" ng-model="object[conf[0]]"\n          ng-true-value="{{conf[1].trueValue}}" ng-false-value="{{conf[1].falseValue}}"\n          ng-change="$ctrl.onAction({name: conf[1].action, object: object})" aria-label="{{conf[0]}}" ng-disabled="conf[1].disabled">\n          </md-switch>\n          <span flex></span>\n        </div>\n\n        </td>\n        <td md-cell ng-if="$ctrl.actions && $ctrl.actions.length > 0" ng-repeat="action in $ctrl.actions" ng-class="action.cellStyle">\n          \x3c!-- <div ng-if="(action.type === \'switch\')" layout="row" ng-hide="object[action.hide.property] === action.hide.value"> --\x3e\n          <div ng-if="(action.type === \'switch\')" layout="row" ng-hide="(action.hide && (object[action.hide.property] === action.hide.value))">\n            <span  flex></span>\n          <md-switch ng-change="$ctrl.onAction({name: action.name, object: object})" aria-label="Switch 1"\n            ng-model="object[action.value]" translate="{{action.text|translate}}">\n            <md-tooltip ng-if="action.tooltip" ng-class="action.tooltip.style" md-z-index="action.tooltip.zIndex" md-delay="action.tooltip.delay"\n              md-autohide="action.tooltip.autohide" md-direction="{{action.tooltip.direction}}">\n              {{action.tooltip.text | translate}}\n            </md-tooltip>\n          </md-switch>\n           <span flex></span>\n          </div>\n\n\n          <md-button ng-if="(action.type === \'button\')" ng-class="action.style" ng-click="$ctrl.onAction({name: action.name, object: object})"\n            aria-label="{{action.name}}" ng-hide="(action.hide && (object[action.hide.property] === action.hide.value))">\n            <md-icon ng-if="action.icon" ng-class="action.icon.style">\n              {{action.icon.name}}\n            </md-icon>\n            <md-tooltip ng-if="action.tooltip" ng-class="action.tooltip.style" md-z-index="action.tooltip.zIndex" md-delay="action.tooltip.delay"\n              md-autohide="action.tooltip.autohide" md-direction="{{action.tooltip.direction}}">\n              {{action.tooltip.text | translate}}\n            </md-tooltip>\n            <span ng-if="action.text">\n              {{action.text|translate}}\n            </span>\n          </md-button>\n        </td>\n      </tr>\n    </tbody>\n  </table>\n</md-table-container>\n\n<md-table-pagination print-remove ng-if="$ctrl.pagination" ng-class="$ctrl.pagination.style" md-limit="$ctrl.pagination.limit"\nmd-limit-options="$ctrl.pagination.limitOptions"\n  md-page="$ctrl.pagination.page" md-total="{{$ctrl.pagination.total}}" md-page-select="$ctrl.pagination.pageSelect" md-boundary-links="$ctrl.pagination.boundaryLinks"\n  md-on-paginate="$ctrl.paginar(page, limit)" md-label="{{$ctrl.pagination.label}}" md-foot-label="$ctrl.pagination.footLabel">\n</md-table-pagination>\n'},function(e,t,n){"use strict";function o(e,t){var n=this;n.action1Value=!1,n.log=e.log,n.md=t,n.headers=i.tableConfig.headers,n.config=i.tableConfig.config,n.objectConfig=i.tableConfig.objectConfig,n.pagination=i.tableConfig.pagination;var o={key1:!0,key2:111222333,key3:"Object 1 input text",key4:1,key5:[{email:"correo@dominio.com"},{email:"correo@dominio.com"}],key7:1},r={key1:!1,key2:111222333,key3:"Object 2 input text",key4:"0",key5:[{email:"correo@dominio.com"},{email:"correo@dominio.com"}],key7:2},a={key1:!0,key2:111222333444,key3:"Object 3 input text",key4:"0",key5:[{email:"correo@dominio.com"},{email:"correo@dominio.com"}],key7:3};n.objects=[o,r,a],n.show=function(e,t){n.view(e,t),n.md.show(n.md.alert().parent(angular.element(document.querySelector("main"))).clickOutsideToClose(!0).title("Action: "+e).textContent(JSON.stringify(t)).ariaLabel("Alert Dialog Demo").ok("Roger roger!"))},n.view=function(e,t){n.actionName=e,n.object=t},n.accionTabla=function(e,t){n.view(e,t)},n.onSelect=function(e){n.selection="Selected",n.object=e},n.onDeselect=function(e){n.selection="Deselected",n.object=e},n.$onInit=function(){n.log("user admin componente")},n.onPaginate=function(e,t){console.log("page "+e+" limit: "+t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.DemoTable1=void 0;var i=n(22);t.DemoTable1={template:n(23),controller:["$log","$mdDialog",o],bindings:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.tableConfig={headers:[{name:"Checkbox",numeric:!1,tooltip:{text:"MENSAJE_TOOLTIP"}},{name:"Number",numeric:!1},{name:"Input text",numeric:!1},{name:"Switch",numeric:!1},{name:"Objects Array",numeric:!0},{name:"Copy",numeric:!0},{name:"Icon set",numeric:!0},{name:"Filter copy",numeric:!0}],config:{multiple:!1,progress:"",autoSelect:!0,rowSelect:!0,selectId:"",rowSelectDisable:""},objectConfig:{key1:{type:"checkbox",order:1,action:"checkbox"},key2:{type:"input-number",action:"input number changed"},key3:{type:"input-text",order:2,action:"input text changed"},key4:{type:"switch",trueValue:1,falseValue:0,action:"switch changed"},key5:{type:"array-object",value:"email",limit:2},key6:{type:"copy",copy:"key2"},key7:{type:"icon-set",options:[{value:1,icon:"person",style:[]},{value:2,icon:"settings"},{value:3,icon:"dashboard"}]},key8:{type:"filter-copy",copy:"key2",filter:"currency",option:"$ "}},pagination:{style:["pagination-label"],limit:2,page:1,total:5,pageSelect:1,boundaryLinks:!0,label:"{of: 'DE', page: 'PAGINA', rowsPerPage: 'FILAS_PAGINAS'}",limitOptions:[5,10,15]}}},function(e,t){e.exports='<md-toolbar layout="row" layout-align="center center">Demo table 1</md-toolbar>\n<div layout-padding>\n  <md-whiteframe class="md-whiteframe-1dp" flex layout="column">\n    <md-dytable config="$ctrl.config" pagination="$ctrl.pagination" object-config="$ctrl.objectConfig" headers="$ctrl.headers"\n      objects="$ctrl.objects" actions="$ctrl.actions" on-paginate="$ctrl.onPaginate(page, limit, total)" on-action="$ctrl.accionTabla(name, object)"\n      on-selection="$ctrl.onSelect" on-deselection="$ctrl.onDeselect"></md-dytable>\n      <span>Selection: {{$ctrl.selection}}</span>\n      <span>Action name: {{$ctrl.actionName}}</span>\n      <span>Object: {{$ctrl.object|json}}</span>\n      <span>Pagination: Page: {{$ctrl.pagination.page}}, Limit: {{$ctrl.pagination.limit}}</span>\n  </md-whiteframe>\n</div>\n\n'},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DemoTable2=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(25),a=function(){function e(t,n){o(this,e),this.action1Value=!1,this.log=t.log,this.md=n,this.headers=r.tableConfig.headers,this.config=r.tableConfig.config,this.pagination=r.tableConfig.pagination,this.actions=r.tableConfig.actions,this.objectConfig=r.tableConfig.objectConfig;var i={key1:"dashboard",key2:"Text in object 1",key3:{value:"child value"},key4:"http://lorempixel.com/50/40",key5:new Date},a={key1:"people",key2:"Text in object 2",key3:{value:"child value"},key4:"http://lorempixel.com/50/40",key5:new Date};this.objects=[i,a]}return i(e,[{key:"show",value:function(e,t){this.view(e,t),this.md.show(this.md.alert().parent(angular.element(document.querySelector("main"))).clickOutsideToClose(!0).title("Action: "+e).textContent(JSON.stringify(t)).ariaLabel("Alert Dialog Demo").ok("Roger roger!"))}},{key:"view",value:function(e,t){this.actionName=e,this.object=t}},{key:"accionTabla",value:function(e,t){this.view(e,t)}},{key:"$onInit",value:function(){this.log("user admin componente")}},{key:"quitarAcciones",value:function(){this.actions=[]}},{key:"onPaginate",value:function(e,t){console.log("page "+e+" limit: "+t)}}]),e}();t.DemoTable2={template:n(26),controller:["$log","$mdDialog",a],bindings:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.tableConfig={headers:[{name:"Icon",numeric:!1,tooltip:{text:"Header tooltip"}},{name:"Text",numeric:!1},{name:"Child",numeric:!1},{name:"Image",numeric:!1},{name:"Date",numeric:!0}],config:{multiple:!1,progress:"",autoSelect:!1,rowSelect:!1,selectId:"",rowSelectDisable:""},objectConfig:{key1:{type:"icon",order:0},key2:{type:"text",order:1},key3:{type:"child",child:"value",order:3},key4:{type:"image",order:4},key5:{type:"date",format:"dd-MM-yyyy"}},actions:[{style:["md-raised","md-primary","md-fab"],cellStyle:["action-cell-style-flat"],name:"action1",icon:{name:"people",style:[]},tooltip:{text:"ACTION1"},type:"button"},{style:["md-raised","md-primary"],cellStyle:["action-cell-style-flat"],text:"action2",name:"action2",model:"",tooltip:{style:[],zIndex:0,direction:"top",text:"action button 2"},type:"button"},{style:[],cellStyle:["action-cell-style-flat"],name:"switch-action",model:"",tooltip:{style:[],zIndex:0,direction:"top",text:"Switch action"},type:"switch"}],pagination:{style:["pagination-label"],limit:2,page:1,total:5,pageSelect:1,boundaryLinks:!0,label:"{of: 'of', page: 'Page', rowsPerPage: 'Rows per page'}",limitOptions:[5,10,15]}}},function(e,t){e.exports='<md-toolbar layout="row" layout-align="center center">Demo table 2</md-toolbar>\n<div layout-padding>\n  <md-whiteframe class="md-whiteframe-1dp" flex layout="column">\n    <md-dytable config="$ctrl.config" pagination="$ctrl.pagination" object-config="$ctrl.objectConfig" headers="$ctrl.headers"\n      objects="$ctrl.objects" actions="$ctrl.actions" on-paginate="$ctrl.onPaginate(page, limit, total)" on-action="$ctrl.accionTabla(name, object)"\n      on-selection="$ctrl.onSelect" on-deselection="$ctrl.onDeselect"></md-dytable>\n      <span>Action name: {{$ctrl.actionName}}</span>\n      <span>Object: {{$ctrl.object|json}}</span>\n      <span>Pagination: Page: {{$ctrl.pagination.page}}, Limit: {{$ctrl.pagination.limit}}</span>\n  </md-whiteframe>\n</div>\n\n\n'}],[2]);