!function(e,t,n){"use strict";!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.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"])}(),function(){functione(e,t){if(t.has("$swipe")){varn="You are using the ngTouch module. \nAngular Material already has mobile click, tap, and swipe support... \nngTouch is not supported with Angular Material!";e.warn(n)}}functionn(e,t){e.decorator("$$rAF",["$delegate",o]),e.decorator("$q",["$delegate",i]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}functiono(e){returne.throttle=function(t){varn,o,i,r;returnfunction(){n=arguments,r=this,i=t,o||(o=!0,e(function(){i.apply(r,Array.prototype.slice.call(n)),o=!1}))}},e}functioni(e){returne.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(){functione(e){functionn(n,o,i){functionr(e){t.isUndefined(e)&&(e=!0),o.toggleClass("md-autofocus",!!e)}vara=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(){functione(){functione(e){vart="#"===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);return1===n&&(o+=o,i+=i,r+=r),"rgba("+parseInt(o,16)+","+parseInt(i,16)+","+parseInt(r,16)+",0.1)"}functiont(e){e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);vart=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):"";returnt.toUpperCase()}functionn(e){returne.replace(")",", 0.1)").replace("(","a(")}functiono(e){returne?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(){functione(){functione(e){vart=a+"-"+e,i=o(t),d=i.charAt(0).toLowerCase()+i.substring(1);returnn(r,e)?e:n(r,i)?i:n(r,d)?d:e}functionn(e,n){returnt.isDefined(e.style[n])}functiono(e){returne.replace(s,function(e,t,n,o){returno?n.toUpperCase():n})}functioni(e){vart,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(tine.style)if(n=o.exec(t))returnn[0]}varr=document.createElement("div"),a=i(r),d=/webkit/i
});returnM.splice(M.indexOf(n),1),y.push(o),n.deferred.promise}returnt=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])}functionf(e,n){vari=M.pop();if(!i)returno.when(e);varr=i.remove(e,!0,n||{})["catch"](function(e){returne})["finally"](function(){y.splice(y.indexOf(r),1)});returny.push(r),i.deferred.promise["catch"](t.noop)}functiong(e){returnfunction(){vart=arguments;returnM.length?e.apply(E,t):C.length?C[0]["finally"](function(){returne.apply(E,t)}):o.when("No interim elements currently showing up.")}}functionb(e){varn=e?null:M.shift(),i=t.element(e).length&&t.element(e)[0].parentNode;if(i){varr=M.filter(function(e){returne.options.element[0]===i});r.length&&(n=r[0],M.splice(M.indexOf(n),1))}returnn?n.remove($,!1,{$destroy:!0}):o.when($)}functionv(m){functionu(){returno(function(e,t){functionn(e){y.deferred.reject(e),t(e)}m.onCompiling&&m.onCompiling(m),f(m).then(function(t){M=g(t,m),m.cleanupElement=t.cleanup,T=$(M,m,t.controller).then(e,n)})["catch"](n)})}functionp(e,n,i){functionr(e){y.deferred.resolve(e)}functiona(e){y.deferred.reject(e)}returnM?(m=t.extend(m||{},i||{}),m.cancelAutoHide&&m.cancelAutoHide(),m.element.triggerHandler("$mdInterimElementRemove"),m.$destroy===!0?C(m.element,m).then(function(){n&&a(e)||r(e)}):(o.when(T)["finally"](function(){C(m.element,m).then(function(){n?a(e):r(e)},a)}),y.deferred.promise)):o.when(!1)}functionh(e){returne=e||{},e.template&&(e.template=s.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||i.$new(e.isolateScope),onShow:function(e,t,n){returnd.enter(t,n.parent)},onRemove:function(e,t){returnt&&d.leave(t)||o.when()}},e)}functionf(e){vart=e.skipCompile?null:l.compile(e);returnt||o(function(t){t({locals:{},link:function(){returne.element}})})}functiong(e,n){t.extend(e.locals,n);varo=e.link(n.scope);returnn.element=o,n.parent=b(o,n),n.themable&&c(o),o}functionb(n,o){vari=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){varr;returna[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)}returni}functionv(){vare,o=t.noop;m.hideDelay&&(e=r(E.hide,m.hideDelay),o=function(){r.cancel(e)}),m.cancelAutoHide=function(){o(),m.cancelAutoHide=n}}function$(e,n,i){varr=n.onShowing||t.noop,a=n.onComplete||t.noop;try{r(n.scope,e,n,i)}catch(d){returno.reject(d)}returno(function(t,r){try{o.when(n.onShow(n.scope,e,n,i)).then(function(){a(n.scope,e,n),v(),t(e)},r)}catch(d){r(d.message)}})}functionC(e,n){vari=n.onRemoving||t.noop;returno(function(t,r){try{vara=o.when(n.onRemove(n.scope,e,n)||!0);i(e,a),n.$destroy?t(e):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)},r)}catch(d){r(d.message)}})}vary,M,T=o.when(!0);returnm=h(m),y={options:m,deferred:o.defer(),show:u,remove:p}}varE,$=!1,C=[],y=[],M=[];returnE={show:p,hide:g(h),cancel:g(f),destroy:b,$injector_:m}}}returno.$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(){functione(e){functiond(e){returne.replace(m,"").replace(u,function(e,t,n,o){returno?n.toUpperCase():n})}varm=/^((?:x|data)[\:\-_])/i,u=/([\:\-\_]+(.))/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(n){t.forEach(h,function(t){varo=n?t+"-"+n:t;e.directive(d(o),r(o))}),t.forEach(f,function(t){varo=n?t+"-"+n:t;e.directive(d(o),a(o))})}),e.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:c,validateAttributeUsage:l,disableLayouts:function(e){A.enabled=e!==!0}}}).directive("mdLayoutCss",o).directive("ngCloak",i("ng-cloak")).directive("layoutWrap",a("layout-wrap")).directive("layoutNow
disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},_={}}(e.angular)}(),function(){functionn(n,o,i,r,a){vard;returnd={translate3d:function(e,t,n,o){functioni(n){returna(e,{to:n||t,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}returna(e,{from:t,to:n,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){returni})},waitTransitionEnd:function(t,n){vara=3e3;returno(function(o,d){functions(e){e&&e.target!==t[0]||(e&&i.cancel(c),t.off(r.CSS.TRANSITIONEND,s),o())}functionl(n){returnn=n||e.getComputedStyle(t[0]),"0s"==n.transitionDuration||!n.transition&&!n.transitionProperty}n=n||{},l(n.cachedTransitionStyles)&&(a=0);varc=i(s,n.timeout||a);t.on(r.CSS.TRANSITIONEND,s)})},calculateTransformValues:function(e,t){functionn(){vart=e?e.parent():null,n=t?t.parent():null;returnn?d.clientRect(n):null}varo=t.element,i=t.bounds;if(o||i){varr=o?d.clientRect(o)||n():d.copyRect(i),a=d.copyRect(e[0].getBoundingClientRect()),s=d.centerPointFor(a),l=d.centerPointFor(r);return{centerX:l.x-s.x,centerY:l.y-s.y,scaleX:Math.round(100*Math.min(.5,r.width/a.width))/100,scaleY:Math.round(100*Math.min(.5,r.height/a.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,o){vari="translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )",r=t.bind(null,n.supplant,i);returnr(d.calculateTransformValues(e,o))},calculateSlideToOrigin:function(e,o){vari="translate3d( {centerX}px, {centerY}px, 0 )",r=t.bind(null,n.supplant,i);returnr(d.calculateTransformValues(e,o))},toCss:function(e){functionn(e,n,i){t.forEach(n.split(" "),function(e){o[e]=i})}varo={},i="left top right bottom width height x y min-width min-height max-width max-height";returnt.forEach(e,function(e,a){if(!t.isUndefined(e))if(i.indexOf(a)>=0)o[a]=e+"px";elseswitch(a){case"transition":n(a,r.CSS.TRANSITION,e);break;case"transform":n(a,r.CSS.TRANSFORM,e);break;case"transformOrigin":n(a,r.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o},toTransformCss:function(e,n,o){vari={};returnt.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){returne?(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){varn=t.element(e)[0].getBoundingClientRect(),o=function(e){returne&&e.width>0&&e.height>0};returno(n)?d.copyRect(n):null},centerPointFor:function(e){returne?{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){returnfunction(r){returnn(r,e,t,o,i)}}])}(),function(){t.version.minor>=4?t.module("material.core.animate",[]):!function(){functione(e){returne.replace(/-[a-z]/g,function(e){returne.charAt(1).toUpperCase()})}varn=t.forEach,o=t.isDefined(document.documentElement.style.WebkitAppearance),i=o?"-webkit-":"",r=(o?"webkitTransitionEnd ":"")+"transitionend",a=(o?"webkitAnimationEnd ":"")+"animationend",d=["$document",function(e){returnfunction(){returne[0].body.clientWidth+1}}],s=["$$rAF",function(e){returnfunction(){vart=!1;returne(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,o){functioni(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=o(),this._state=0}varr=0,a=1,d=2;returni.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===d?e():this._doneCallbacks.push(e)},progress:t.noop,getPromise:function(){if(!this.promise){vart=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}returnthis.promise},then:function(e,t){returnthis.getPromise().then(e,t)},"catch":function(e){returnthis.getPromise()["catch"](e)},"finally":function(e){returnthis.getPromise()["finally"](e)},pause:function(){this.host.pause&
n.append(e),n},o.interceptorTypes={CLOSE:"onClose"},o.prototype.open=function(){vare=this;returnthis._$q(function(n,o){vari=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)})},o.prototype.close=function(e){varn=this;returnthis._$q(function(i,r){n._callInterceptors(o.interceptorTypes.CLOSE).then(function(){varo=n._done(i,n),a=n._simpleBind(n.detach,n),d=n.config.onCloseSuccess||t.noop;d=t.bind(n,d,n,e),n.hide().then(a).then(o).then(d)["catch"](r)},r)})},o.prototype.attach=function(){if(this.isAttached&&this.panelEl)returnthis._$q.when(this);vare=this;returnthis._$q(function(n,o){vari=e._done(n,e),r=e.config.onDomAdded||t.noop,a=function(t){returne.isAttached=!0,e._addEventListeners(),t};e._$q.all([e._createBackdrop(),e._createPanel().then(a)["catch"](o)]).then(r).then(i)["catch"](o)})},o.prototype.detach=function(){if(!this.isAttached)returnthis._$q.when(this);vare=this,n=e.config.onDomRemoved||t.noop,o=function(){returne._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)};returnthis._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,i){varr=e._done(t,e);e._$q.all([o(),!e._backdropRef||e._backdropRef.detach()]).then(n).then(r)["catch"](i)})},o.prototype.destroy=function(){vare=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},o.prototype.show=function(){if(!this.panelContainer)returnthis._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass(l))returnthis._$q.when(this);vare=this,n=function(){returne.panelContainer.removeClass(l),e._animateOpen()};returnthis._$q(function(o,i){varr=e._done(o,e),a=e.config.onOpenComplete||t.noop,d=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(d).then(r)["catch"](i)})},o.prototype.hide=function(){if(!this.panelContainer)returnthis._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass(l))returnthis._$q.when(this);vare=this;returnthis._$q(function(n,o){vari=e._done(n,e),r=e.config.onRemoving||t.noop,d=function(){e.panelContainer.addClass(l)},s=function(){if(e.config.groupName){varn;t.forEach(e.config.groupName,function(t){t=e._$mdPanel._groups[t],n=t.openPanels.indexOf(e),n>-1&&t.openPanels.splice(n,1)})}},c=function(){vart=e.config.origin;t&&a(t).focus()};e._$q.all([e._backdropRef?e._backdropRef.hide():e,e._animateClose().then(r).then(d).then(s).then(c)["catch"](o)]).then(i,o)})},o.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 Angular Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)thrownewError("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)},o.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel:TheremoveClassmethodisintheprocessofbeingdeprecated.FulldeprecationisscheduledfortheAngularMaterial1.2release.Toachievethesameresults,usethepanelCon
});i.forEach(m.deselect),o.forEach(function(t,n){m.select(t,e[n])})}}functionl(){vare=m.ngModel.$viewValue||m.ngModel.$modelValue;Object.keys(m.selected).forEach(m.deselect),m.select(m.hashGetter(e),e)}varm=this;m.isMultiple=t.isDefined(a.multiple),m.selected={},m.options={},r.$watchCollection(function(){returnm.options},function(){m.ngModel.$render()});varu,p;m.setMultiple=function(e){functionn(e,n){returnt.isArray(e||n||[])}varo=m.ngModel;p=p||o.$isEmpty,m.isMultiple=e,u&&u(),m.isMultiple?(o.$validators["md-multiple"]=n,o.$render=s,r.$watchCollection(m.modelBinding,function(e){n(e)&&s(e),m.ngModel.$setPristine()}),o.$isEmpty=function(e){return!e||0===e.length}):(deleteo.$validators["md-multiple"],o.$render=l)};varh,f,g,b="",v=300;m.optNodeForKeyboardSearch=function(e){h&&clearTimeout(h),h=setTimeout(function(){h=n,b="",g=n,f=n},v);varo=e.keyCode-(i.isNumPadKey(e)?48:0);b+=String.fromCharCode(o);varr=newRegExp("^"+b,"i");f||(f=d.find("md-option"),g=newArray(f.length),t.forEach(f,function(e,t){g[t]=e.textContent.trim()}));for(vara=0;a<g.length;++a)if(r.test(g[a]))returnf[a]},m.init=function(n,i){m.ngModel=n,m.modelBinding=i,m.ngModel.$isEmpty=function(e){return!m.options[m.hashGetter(e)]};vara=o.getModelOption(n,"trackBy");if(a){vard={},s=e(a);m.hashGetter=function(e,t){returnd.$value=e,s(t||r,d)}}elsem.hashGetter=function(e){returnt.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++c)):e};m.setMultiple(m.isMultiple)},m.selectedLabels=function(e){e=e||{};vart=e.mode||"html",n=o.nodesToArray(d[0].querySelectorAll("md-option[selected]"));if(n.length){vari;return"html"==t?i=function(e){if(e.hasAttribute("md-option-empty"))return"";vart=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));varo=e.querySelector(".md-container");returno&&(t=t.replace(o.outerHTML,"")),t}:"aria"==t&&(i=function(e){returne.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),o.uniq(n.map(i)).join(", ")}return""},m.select=function(e,t){varn=m.options[e];n&&n.setSelected(!0),m.selected[e]=t},m.deselect=function(e){vart=m.options[e];t&&t.setSelected(!1),deletem.selected[e]},m.addOption=function(e,n){if(t.isDefined(m.options[e]))thrownewError('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');m.options[e]=n,t.isDefined(m.selected[e])&&(m.select(e,n.value),t.isDefined(m.ngModel.$modelValue)&&m.hashGetter(m.ngModel.$modelValue)===e&&m.ngModel.$validate(),m.refreshViewValue())},m.removeOption=function(e){deletem.options[e]},m.refreshViewValue=function(){vare,n=[];for(variinm.selected)(e=m.options[i])?n.push(e.value):n.push(m.selected[i]);varr=o.getModelOption(m.ngModel,"trackBy"),a=m.isMultiple?n:n[0],d=m.ngModel.$modelValue;(r?t.equals(d,a):d==a)||(m.ngModel.$setViewValue(a),m.ngModel.$render())}}returnd.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:d,link:{pre:a}}}functionr(e,n){functiono(e,n){returne.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),i(n)||e.attr("md-option-empty",""),r}functioni(e){vart=e.value,n=e.ngValue;returnt||n}functionr(o,i,r,a){functiond(e,t,n){if(!c.hashGetter)returnvoid(n||o.$$postDigest(function(){d(e,t,!0)}));vari=c.hashGetter(t,o),r=c.hashGetter(e,o);l.hashKey=r,l.value=e,c.removeOption(i,l),c.addOption(r,l)}functions(){vare={role:"option","aria-selected":"false"};i[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),i.attr(e)}varl=a[0],c=a[1];c.isMultiple&&(i.addClass("md-checkbox-enabled"),i.prepend(m.clone())),t.isDefined(r.ngValue)?o.$watch(r.ngValue,d):t.isDefined(r.value)?d(r.value):o.$watch(function(){returni.text().trim()},d),r.$observe("disabled",function(e){e?i.attr("tabindex","-1"):i.attr("tabindex","0")}),o.$$postDigest(function(){r.$observe("selected",function(e){t.isDefined(e)&&("string"==typeofe&&(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(o
vare=m[0].querySelector(p.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=m[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(){returnh.isOpen?e.destroy():l.when(!1)},this.close=function(n,o){if(h.isOpen){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});vard=t.extend({},o,{skipFocus:n});if(r.$emit("$mdMenuClose",i,d),e.hide(null,o),!n){vars=h.restoreFocusTo||i.find("button")[0];sinstanceoft.element&&(s=s[0]),s&&s.focus()}}},this.positionMode=function(){vare=(o.mdPositionMode||"target").split(" ");return1==e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){vare=(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]};throwError("Invalid offsets specified. Please follow format <x, y> or <n>")},r.$mdMenu={open:this.open,close:this.close},r.$mdOpenMenu=t.bind(this,function(){returnc.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(){functione(e){functionn(n){n.addClass("md-menu");varr=n.children()[0],a=e.prefixer();if(a.hasAttribute(r,"ng-click")||(r=r.querySelector(a.buildSelector(["ng-click","ng-mouseenter"]))||r),!r||"MD-BUTTON"!=r.nodeName&&"BUTTON"!=r.nodeName||r.hasAttribute("type")||r.setAttribute("type","button"),2!=n.children().length)throwError(i+"Expected two children elements.");r&&r.setAttribute("aria-haspopup","true");vard=n[0].querySelectorAll("md-menu"),s=parseInt(n[0].getAttribute("md-nest-level"),10)||0;returnd&&t.forEach(e.nodesToArray(d),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",s+1)}),o}functiono(e,n,o,i){varr=i[0],a=!!i[1],d=t.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),s=n.children()[1];n.addClass("_md"),s.hasAttribute("role")||s.setAttribute("role","menu"),d.append(s),n.on("$destroy",function(){d.remove()}),n.append(d),d[0].style.display="none",r.init(d,{isInMenuBar:a})}vari="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(){functione(e){functiono(e,o,a,d,s,l,c,m,u){functionp(n,o,i){returni.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"),u.enter(i.backdrop,d[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}functionh(e,t,n){functiono(){returnm(t,{addClass:"md-leave"}).start()}functioni(){t.removeClass("md-active"),v(t,n),n.alreadyOpen=!1}returnn.cleanupInteraction&&n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),n.$destroy===!0?i():o().then(i)}functionf(n,i,r){functiond(){returnr.parent.append(i),i[0].style.display="",l(function(e){vart=E(i,r);i.removeClass("md-leave"),m(i,{addClass:"md-active",from:C.toCss(t),to:C.toCss({transform:""})}).start().then(e)})}functionu(){if(!r.target)throwError("$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"))})}functionh(){vare=function(e,t){returnc.throttle(function(){if(!r.isRemoved){varn=E(e,t);e.css(C.toCss(n))}})}(i,r);returns.addEventListener("resize",e),s.addEventListener("orientationchange",e),function(){s.removeEventListener("resize",e),s.removeEventListener("