text: /*!
   * Angular Material Design
   * https://github.com/angular/material
   * @license MIT
   * v0.6.1
   */
  !function(){"use strict";function t(t,e){return{restrict:"E",link:function(n,o){e(o),t(function(){var t=o[0].querySelector("md-content");t&&t.scrollHeight>t.clientHeight&&o.addClass("md-content-overflow")})}}}function e(t){function e(t){return{template:['<md-dialog aria-label="{{dialog.label}}">',"<md-content>","<h2>{{ dialog.title }}</h2>","<p>{{ dialog.content }}</p>","</md-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){t.hide(!0)},this.abort=function(){t.cancel()}},controllerAs:"dialog",bindToController:!0}}function n(t,e,n,o,a,i,l,r,c,d,s,u){function m(n,a,i){function l(){var t=a[0].querySelector(".dialog-close");if(!t){var e=a[0].querySelectorAll(".md-actions button");t=e[e.length-1]}return angular.element(t)}i.parent=angular.element(i.parent),i.popInTarget=angular.element((i.targetEvent||{}).target);var d=l();return p(a.find("md-dialog")),i.hasBackdrop&&(i.backdrop=angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),c.inherit(i.backdrop,i.parent),o.enter(i.backdrop,i.parent)),f(a,i.parent,i.popInTarget.length&&i.popInTarget).then(function(){i.escapeToClose&&(i.rootElementKeyupCallback=function(e){e.keyCode===r.KEY_CODE.ESCAPE&&t(u.cancel)},e.on("keyup",i.rootElementKeyupCallback)),i.clickOutsideToClose&&(i.dialogClickOutsideCallback=function(e){e.target===a[0]&&t(u.cancel)},a.on("click",i.dialogClickOutsideCallback)),d.focus()})}function g(t,n,a){return a.backdrop&&o.leave(a.backdrop),a.escapeToClose&&e.off("keyup",a.rootElementKeyupCallback),a.clickOutsideToClose&&n.off("click",a.dialogClickOutsideCallback),h(n,a.parent,a.popInTarget.length&&a.popInTarget).then(function(){a.scope.$destroy(),n.remove(),a.popInTarget&&a.popInTarget.focus()})}function p(t){t.attr({role:"dialog"});var e=t.find("md-content");0===e.length&&(e=t),a.expectAsync(t,"aria-label",function(){var t=e.text().split(/\s+/);return t.length>3&&(t=t.slice(0,3).concat("...")),t.join(" ")})}function f(t,e,n){var o=t.find("md-dialog");return e.append(t),k(o,n),d(function(){o.addClass("transition-in").css(r.CSS.TRANSFORM,"")}),C(o)}function h(t,e,n){var o=t.find("md-dialog");return o.addClass("transition-out").removeClass("transition-in"),k(o,n),C(o)}function k(t,e){if(e){var n=e[0].getBoundingClientRect(),o=t[0].getBoundingClientRect(),a=Math.min(.5,n.width/o.width),i=Math.min(.5,n.height/o.height);t.css(r.CSS.TRANSFORM,"translate3d("+(-o.left+n.left+n.width/2-o.width/2)+"px,"+(-o.top+n.top+n.height/2-o.height/2)+"px,0) scale("+a+","+i+")")}}function C(t){function e(o){o.target===t[0]&&(t.off(r.CSS.TRANSITIONEND,e),n.resolve())}var n=s.defer();return t.on(r.CSS.TRANSITIONEND,e),n.promise}return{hasBackdrop:!0,isolateScope:!0,onShow:m,onRemove:g,clickOutsideToClose:!0,escapeToClose:!0,targetEvent:null,transformTemplate:function(t){return'<div class="md-dialog-container">'+t+"</div>"}}}return e.$inject=["$mdDialog"],n.$inject=["$timeout","$rootElement","$compile","$animate","$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$$rAF","$q","$mdDialog"],t("$mdDialog").setDefaults({methods:["hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent"],options:n}).addPreset("alert",{methods:["title","content","ariaLabel","ok"],options:e}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel"],options:e})}angular.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",t).provider("$mdDialog",e),t.$inject=["$$rAF","$mdTheming"],e.$inject=["$$interimElementProvider"]}();