From: Daniele Cinti Date: Tue, 18 Jul 2017 08:35:33 +0000 (+0200) Subject: Built xcally-motion-dialpad from commit 7f8e441.|1.0.13 X-Git-Tag: 1.0.13 X-Git-Url: http://repos.xcallymotion.com/base/%22./banner.jpg//%22avatar.png/%22?a=commitdiff_plain;h=b212920dc920131ca4eef3e585fc2466a75c3974;p=dialpad.git Built xcally-motion-dialpad from commit 7f8e441.|1.0.13 --- diff --git a/index.html b/index.html index 73b7cc3..ef7f296 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,7 @@ - + diff --git a/vendor.621f9edf.js b/vendor.621f9edf.js deleted file mode 100644 index 2e14802..0000000 --- a/vendor.621f9edf.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(e?e+":":"")+i+"] ",s=W(arguments,2).map(function(e){return Ce(e,Dr.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t0}function i(e){if(null==e||T(e))return!1;if(Kr(e)||w(e)||Pr&&e instanceof Pr)return!0;var t="length"in Object(e)&&e.length;return M(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(x(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(Kr(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r=0&&e.splice(n,1),n}function U(e,t,n){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(Kr(e))for(var o=0,s=e.length;o2?W(arguments,2):[];return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,z(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function K(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:T(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":_(n)&&(r="$SCOPE"),r}function G(e,t){if(!b(e))return M(t)||(t=t?2:null),JSON.stringify(e,K,t)}function X(e){return w(e)?JSON.parse(e):e}function Z(e,t){e=e.replace(ei,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Yr(n)?t:n}function J(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function Q(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return J(e,n*(Z(t,r)-r))}function ee(e){e=Pr(e).clone();try{e.empty()}catch(e){}var t=Pr("
").append(e).html();try{return e[0].nodeType===ai?Or(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Or(t)})}catch(e){return Or(t)}}function te(e){try{return decodeURIComponent(e)}catch(e){}}function ne(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),y(r=te(r))&&(i=!y(i)||te(i),Nr.call(t,r)?Kr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function re(e){var t=[];return o(e,function(e,n){Kr(e)?o(e,function(e){t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}):t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}),t.length?t.join("&"):""}function ie(e){return oe(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function oe(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ae(e,t){var n,r,i=ti.length;for(r=0;r protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==ae(r,"strict-di"),n(r,i?[i]:[],a)}}function ce(t,n,r){E(r)||(r={}),r=u({strictDi:!1},r);var i=function(){if((t=Pr(t)).injector()){var i=t[0]===e.document?"document":ee(t);throw Vr("btstrpd","App already bootstrapped with this element '{0}'",i.replace(//,">"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=at(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),zr.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},x(zr.resumeDeferredBootstrap)&&zr.resumeDeferredBootstrap()}function le(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function de(e){var t=zr.element(e).injector();if(!t)throw Vr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(ri,function(e,n){return(n?t:"")+e.toLowerCase()})}function me(e,t,n){if(!e)throw Vr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function pe(e,t,n){return n&&Kr(e)&&(e=e[e.length-1]),me(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw Vr("badname","hasOwnProperty is not a valid {0} name",t)}function fe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s=0)return"...";n.push(t)}return t})}function Ce(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):b(e)?"undefined":"string"!=typeof e?Ee(e,t):e}function we(){return++mi}function Me(e){return xe(e.replace(hi,"ms-"))}function Ae(e,t){return t.toUpperCase()}function xe(e){return e.replace(pi,Ae)}function ke(e){return!$i.test(e)}function Te(e){var t=e.nodeType;return t===oi||!t||t===ci}function _e(e,t){var n,r,i,a,s=t.createDocumentFragment(),c=[];if(ke(e))c.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(bi.exec(e)||["",""])[1].toLowerCase(),i=Ei[r]||Ei._default,n.innerHTML=i[1]+e.replace(yi,"<$1>")+i[2],a=i[0];a--;)n=n.lastChild;c=z(c,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",o(c,function(e){s.appendChild(e)}),s}function Se(t,n){n=n||e.document;var r;return(r=vi.exec(t))?[n.createElement(r[1])]:(r=_e(t,n))?r.childNodes:[]}function Ne(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function De(e){if(e instanceof De)return e;var t;if(w(e)&&(e=Xr(e),t=!0),!(this instanceof De)){if(t&&"<"!==e.charAt(0))throw gi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new De(e)}t?Ue(this,Se(e)):x(e)?Ke(e):Ue(this,e)}function Oe(e){return e.cloneNode(!0)}function Ie(e,t){!t&&Te(e)&&Pr.cleanData([e]),e.querySelectorAll&&Pr.cleanData(e.querySelectorAll("*"))}function He(e,t,n,r){if(y(r))throw gi("offargs","jqLite#off() does not support the `selector` argument");var i=Re(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var c=function(t){var r=a[t];y(n)&&F(r||[],n),y(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){c(e),fi[e]&&c(fi[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Pe(e,t){var n=e.ng339,r=n&&ui[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),He(e)),delete ui[n],e.ng339=void 0}}function Re(e,t){var n=e.ng339,r=n&&ui[n];return t&&!r&&(e.ng339=n=we(),r=ui[n]={events:{},data:{},handle:void 0}),r}function Le(e,t,n){if(Te(e)){var r,i=y(n),o=!i&&t&&!E(t),a=!t,s=Re(e,!o),c=s&&s.data;if(i)c[xe(t)]=n;else{if(a)return c;if(o)return c&&c[xe(t)];for(r in t)c[xe(r)]=t[r]}}}function je(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Be(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Xr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(t)+" "," ")))})}function Fe(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Xr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Xr(n))}}function Ue(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r1&&(i=ye(i));for(var c=0;cl&&this.remove(p.key),t},get:function(e){if(l";var r=xe.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function B(e,t){try{e.addClass(t)}catch(e){}}function U(e,t,n,r,i){e instanceof Pr||(e=Pr(e));var o=K(e,t,e,n,r,i);U.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw Vi("multilink","This element has already been linked.");me(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var s=(r=r||{}).parentBoundTranscludeFn,c=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=z(l));var d;if(d="html"!==a?Pr(ge(a,Pr("
").append(e).html())):n?wi.clone.call(e):e,c)for(var u in c)d.data("$"+u+"Controller",c[u].instance);return U.$$addScopeInfo(d,t),n&&n(d,t),o&&o(t,d,d,s),n||(e=o=null),d}}function z(e){var t=e&&e[0];return t&&"foreignobject"!==j(t)&&Ur.call(t).match(/SVG/)?"svg":"html"}function K(e,t,n,r,i,o){for(var a,s,c,l,d,u,m,p=[],h=Kr(e)||e instanceof Pr,f=0;f0);else r.push(e);return Pr(r)}function te(e,t,n){return function(r,i,o,a,s){return i=Q(i[0],t,n),e(r,i,o,a,s)}}function ne(e,t,n,r,i,o){var a;return e?U(t,n,r,i,o):function(){return a||(a=U(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function re(e,t,n,i,a,s,c,l,d){function m(e,t,n,r){e&&(n&&(e=te(e,n,r)),e.require=h.require,e.directiveName=f,(M===h||h.$$isolateScope)&&(e=Ee(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=te(t,n,r)),t.require=h.require,t.directiveName=f,(M===h||h.$$isolateScope)&&(t=Ee(t,{isolateScope:!0})),l.push(t))}function p(e,i,a,s,d){var m,p,h,f,g,v,$,y,k,T;t===a?(k=n,y=n.$$element):k=new R(y=Pr(a),n),g=i,M?f=i.$new(!0):C&&(g=i.$parent),d&&(($=function(e,t,n,r){var i;if(_(e)||(r=n,n=t,t=e,e=void 0),D&&(i=v),n||(n=D?y.parent():y),!r)return d(e,t,i,n,L);var o=d.$$slots[r];if(o)return o(e,t,i,n,L);if(b(o))throw Vi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ee(y))}).$$boundTransclude=d,$.isSlotFilled=function(e){return!!d.$$slots[e]}),w&&(v=oe(y,k,$,w,f,i,M)),M&&(U.$$addScopeInfo(y,f,!0,!(A&&(A===M||A===M.$$originalDirective))),U.$$addScopeClass(y,!0),f.$$isolateBindings=M.$$isolateBindings,(T=we(i,k,f,f.$$isolateBindings,M)).removeWatches&&f.$on("$destroy",T.removeWatches));for(var N in v){var O=w[N],I=v[N],H=O.$$bindings.bindToController;if(S){I.bindingInfo=H?we(g,k,I.instance,H,O):{};var P=I();P!==I.instance&&(I.instance=P,y.data("$"+O.name+"Controller",P),I.bindingInfo.removeWatches&&I.bindingInfo.removeWatches(),I.bindingInfo=we(g,k,I.instance,H,O))}else I.instance=I(),y.data("$"+O.name+"Controller",I.instance),I.bindingInfo=we(g,k,I.instance,H,O)}for(o(w,function(e,t){var n=e.require;e.bindToController&&!Kr(n)&&E(n)&&u(v[t].instance,ie(t,n,y,v))}),o(v,function(e){var t=e.instance;if(x(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(x(t.$onInit))try{t.$onInit()}catch(e){r(e)}x(t.$doCheck)&&(g.$watch(function(){t.$doCheck()}),t.$doCheck()),x(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),m=0,p=c.length;m=0;m--)Ce(h=l[m],h.isolateScope?f:i,y,k,h.require&&ie(h.directiveName,h.require,y,v),$);o(v,function(e){var t=e.instance;x(t.$postLink)&&t.$postLink()})}d=d||{};for(var h,f,g,v,$,y=-Number.MAX_VALUE,C=d.newScopeDirective,w=d.controllerDirectives,M=d.newIsolateScopeDirective,A=d.templateDirective,k=d.nonTlbTranscludeDirective,T=!1,N=!1,D=d.hasElementTranscludeDirective,O=n.$$element=Pr(t),I=s,H=i,P=!1,L=!1,B=0,F=e.length;Bh.priority)break;if(($=h.scope)&&(h.templateUrl||(E($)?(he("new/isolated scope",M||C,h,O),M=h):he("new/isolated scope",M,h,O)),C=C||h),f=h.name,!P&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var z,K=B+1;z=e[K++];)if(z.transclude&&!z.$$tlb||z.replace&&(z.templateUrl||z.template)){L=!0;break}P=!0}if(!h.templateUrl&&h.controller&&(w=w||ve(),he("'"+f+"' controller",w[f],h,O),w[f]=h),$=h.transclude)if(T=!0,h.$$tlb||(he("transclusion",k,h,O),k=h),"element"===$)D=!0,y=h.priority,g=O,O=n.$$element=Pr(U.$$createComment(f,n[f])),t=O[0],ye(a,W(g),t),g[0].$$parentNode=g[0].parentNode,H=ne(L,g,i,y,I&&I.name,{nonTlbTranscludeDirective:k});else{var G=ve();if(E($)){g=[];var X=ve(),J=ve();o($,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,G[t]=null,J[t]=n}),o(O.contents(),function(e){var t=X[$t(j(e))];t?(J[t]=!0,G[t]=G[t]||[],G[t].push(e)):g.push(e)}),o(J,function(e,t){if(!e)throw Vi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var re in G)G[re]&&(G[re]=ne(L,G[re],i))}else g=Pr(Oe(t)).contents();O.empty(),(H=ne(L,g,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope})).$$slots=G}if(h.template)if(N=!0,he("template",A,h,O),A=h,$=x(h.template)?h.template(O,n):h.template,$=Ie($),h.replace){if(I=h,g=ke($)?[]:yt(ge(h.templateNamespace,Xr($))),t=g[0],1!==g.length||t.nodeType!==oi)throw Vi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");ye(a,O,t);var se={$attr:{}},ce=Z(t,[],se),ue=e.splice(B+1,e.length-(B+1));(M||C)&&ae(ce,M,C),e=e.concat(ce).concat(ue),le(n,se),F=e.length}else O.html($);if(h.templateUrl)N=!0,he("template",A,h,O),A=h,h.replace&&(I=h),p=de(e.splice(B,e.length-B),O,n,a,T&&H,c,l,{controllerDirectives:w,newScopeDirective:C!==h&&C,newIsolateScopeDirective:M,templateDirective:A,nonTlbTranscludeDirective:k}),F=e.length;else if(h.compile)try{v=h.compile(O,n,H);var me=h.$$originalDirective||h;x(v)?m(null,Y(me,v),q,V):v&&m(Y(me,v.pre),Y(me,v.post),q,V)}catch(e){r(e,ee(O))}h.terminal&&(p.terminal=!0,y=Math.max(y,h.priority))}return p.scope=C&&!0===C.scope,p.transcludeOnThisElement=T,p.templateOnThisElement=N,p.transclude=H,d.hasElementTranscludeDirective=D,p}function ie(e,t,n,r){var i;if(w(t)){var a=t.match(M),s=t.substring(a[0].length),c=a[1]||a[3],l="?"===a[2];if("^^"===c?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var d="$"+s+"Controller";i=c?n.inheritedData(d):n.data(d)}if(!i&&!l)throw Vi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Kr(t)){i=[];for(var u=0,m=t.length;uu.priority)&&-1!==u.restrict.indexOf(r)){if(s&&(u=h(u,{$$start:s,$$end:c})),!u.$$bindings){var v=u.$$bindings=i(u,u.name);E(v.isolateScope)&&(u.$$isolateBindings=v.isolateScope)}e.push(u),l=u}return l}function ce(e){if(d.hasOwnProperty(e))for(var n=t.get(e+m),r=0,i=n.length;r"+n+"",r.childNodes[0].childNodes;default:return n}}function $e(e,t){if("srcdoc"===t)return v.HTML;var n=j(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function be(e,t,r,i,o){var a=$e(e,i),s=!o,c=C[i]||o,l=n(r,s,a,c);if(l){if("multiple"===i&&"select"===j(e))throw Vi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ee(e));if(A.test(i))throw Vi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ve()),d=o[i];d!==r&&(l=d&&n(d,!0,a,c),r=d),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function ye(t,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(t)for(i=0,o=t.length;i0&&k.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&k.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=bt(e,t);n&&n.length&&k.addClass(this.$$element,n);var r=bt(t,e);r&&r.length&&k.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=Ge(this.$$element[0],e),c=Xe(e),l=e;if(s?(this.$$element.prop(e,t),i=s):c&&(this[c]=t,l=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=ue(e,"-")),"a"===(a=j(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=H(t,"src"===e);else if("img"===a&&"srcset"===e&&y(t)){for(var d="",u=Xr(t),m=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(u)?m:/(,)/,h=u.split(p),f=Math.floor(h.length/2),g=0;g0?" ":"")+a}return n}function yt(e){var t=(e=Pr(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===si||n.nodeType===ai&&""===n.nodeValue.trim())&&Br.call(e,t,1)}return e}function Et(e,t){if(t&&w(t))return t;if(w(e)){var n=Gi.exec(e);if(n)return n[3]}}function Ct(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),E(t)?u(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!E(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,c){var l,d,m,p;if(s=!0===s,c&&w(c)&&(p=c),w(t)){if(!(d=t.match(Gi)))throw Ki("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(m=d[1],p=p||d[3],!(t=e.hasOwnProperty(m)?e[m]:fe(a.$scope,m,!0)||(n?fe(i,m,!0):void 0)))throw Ki("ctrlreg","The controller with the name '{0}' is not registered.",m);pe(t,m,!0)}if(s){var h=(Kr(t)?t[t.length-1]:t).prototype;return l=Object.create(h||null),p&&o(a,p,l,m||t.name),u(function(){var e=r.invoke(t,l,a,m);return e!==l&&(E(e)||x(e))&&(l=e,p&&o(a,p,l,m||t.name)),l},{instance:l,identifier:p})}return l=r.instantiate(t,a,m),p&&o(a,p,l,m||t.name),l}}]}function wt(){this.$get=["$window",function(e){return Pr(e.document)}]}function Mt(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function At(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function xt(e){return E(e)?A(e)?e.toISOString():G(e):e}function kt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||b(e)||(Kr(e)?o(e,function(e){t.push(oe(n)+"="+oe(xt(e)))}):t.push(oe(n)+"="+oe(xt(e))))}),t.join("&")}}}function Tt(){this.$get=function(){return function(e){function t(e,r,i){null===e||b(e)||(Kr(e)?o(e,function(e,n){t(e,r+"["+(E(e)?n:"")+"]")}):E(e)&&!A(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(oe(r)+"="+oe(xt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function _t(e,t){if(w(e)){var n=e.replace(to,"").trim();if(n){var r=t("Content-Type");if(r&&0===r.indexOf(Zi)||St(n))try{e=X(n)}catch(t){throw no("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function St(e){var t=e.match(Qi);return t&&eo[t[0]].test(e)}function Nt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ve();return w(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Or(Xr(e.substr(0,n))),Xr(e.substr(n+1)))}):E(e)&&o(e,function(e,n){t(Or(n),Xr(e))}),r}function Dt(e){var t;return function(n){if(t||(t=Nt(e)),n){var r=t[Or(n)];return void 0===r&&(r=null),r}return t}}function Ot(e,t,n,r){return x(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function It(e){return 200<=e&&e<300}function Ht(){var e=this.defaults={transformResponse:[_t],transformRequest:[function(e){return!E(e)||S(e)||D(e)||N(e)?e:G(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(Ji),put:ye(Ji),patch:ye(Ji)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return y(e)?(n=!!e,this):n};var r=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,c,l,d,m,p){function h(n){function r(e,t){for(var n=0,r=t.length;n=-1?n:0)?M.resolve:M.reject)({data:e,status:n,headers:Dt(r),config:t,statusText:i})}function u(e){c(e.data,e.status,ye(e.headers()),e.statusText)}function m(){var e=h.pendingRequests.indexOf(t);-1!==e&&h.pendingRequests.splice(e,1)}var f,g,M=d.defer(),A=M.promise,x=t.headers,k="jsonp"===Or(t.method),T=t.url;if(k?T=p.getTrustedResourceUrl(T):w(T)||(T=p.valueOf(T)),T=v(T,t.paramSerializer(t.params)),k&&(T=$(T,t.jsonpCallbackParam)),h.pendingRequests.push(t),A.then(m,m),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(f=E(t.cache)?t.cache:E(e.cache)?e.cache:C),f&&(y(g=f.get(T))?I(g)?g.then(u,u):Kr(g)?c(g[1],g[0],ye(g[2]),g[3]):c(g,200,{},"OK"):f.put(T,A)),b(g)){var _=Hn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;_&&(x[t.xsrfHeaderName||e.xsrfHeaderName]=_),a(t.method,T,r,function(e,t,r,i){function o(){c(t,e,r,i)}f&&(It(e)?f.put(T,[e,t,Nt(r),i]):f.remove(T)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())},x,t.timeout,t.withCredentials,t.responseType,i(t.eventHandlers),i(t.uploadEventHandlers))}return A}function v(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function $(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw no("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(new RegExp("[&?]"+t+"=").test(e))throw no("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var C=c("$http");e.paramSerializer=w(e.paramSerializer)?m.get(e.paramSerializer):e.paramSerializer;var M=[];return o(r,function(e){M.unshift(w(e)?m.get(e):m.invoke(e))}),h.pendingRequests=[],function(e){o(arguments,function(e){h[e]=function(t,n){return h(u({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){h[e]=function(t,n,r){return h(u({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function Pt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Rt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Lt(e,r,e.defer,t,n[0])}]}function Lt(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,c="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,c,l,d,u,m,p,h,f){function g(){E&&E(),C&&C.abort()}function v(e,t,r,i,o){y(M)&&n.cancel(M),E=C=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Or(i))var $=r.createCallback(s),E=a(s,$,function(e,t){var n=200===e&&r.getResponse($);v(l,e,n,"",t),r.removeCallback($)});else{var C=t(i,s);C.open(i,s,!0),o(d,function(e,t){y(e)&&C.setRequestHeader(t,e)}),C.onload=function(){var e=C.statusText||"",t="response"in C?C.response:C.responseText,n=1223===C.status?204:C.status;0===n&&(n=t?200:"file"===In(s).protocol?404:0),v(l,n,t,C.getAllResponseHeaders(),e)};var w=function(){v(l,-1,null,null,"")};if(C.onerror=w,C.onabort=w,C.ontimeout=w,o(h,function(e,t){C.addEventListener(t,e)}),o(f,function(e,t){C.upload.addEventListener(t,e)}),m&&(C.withCredentials=!0),p)try{C.responseType=p}catch(e){if("json"!==p)throw e}C.send(b(c)?null:c)}if(u>0)var M=n(g,u);else I(u)&&u.then(g)}}function jt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(m,e).replace(p,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function c(o,c,m,p){if(!o.length||-1===o.indexOf(e)){var h;return c||((h=v(a(o))).exp=o,h.expressions=[],h.$$watchDelegate=s),h}p=!!p;for(var f,g,$,E=0,C=[],w=[],M=o.length,A=[],k=[];E1&&ro.throwNoconcat(o),!c||C.length){var T=function(e){for(var t=0,n=C.length;t4,m=u?W(arguments,4):[],p=t.setInterval,h=t.clearInterval,f=0,g=y(l)&&!l,v=(g?r:n).defer(),$=v.promise;return c=y(c)?c:0,$.$$intervalId=p(function(){g?i.defer(d):e.$evalAsync(d),v.notify(f++),c>0&&f>=c&&(v.resolve(f),h($.$$intervalId),delete a[$.$$intervalId]),g||e.$apply()},s),a[$.$$intervalId]=v,$}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise.catch(f),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Ft(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ie(t[n]);return t.join("/")}function Ut(e,t){var n=In(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||ao[n.protocol]||null}function qt(e,t){if(co.test(e))throw so("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=In(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ne(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Vt(e,t){return e.slice(0,t.length)===t}function zt(e,t){if(Vt(t,e))return t.substr(e.length)}function Wt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Yt(e){return e.replace(/(#.+)|#$/,"$1")}function Kt(e){return e.substr(0,Wt(e).lastIndexOf("/")+1)}function Gt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Xt(e,t,n){this.$$html5=!0,n=n||"",Ut(e,this),this.$$parse=function(e){var n=zt(t,e);if(!w(n))throw so("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);qt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=re(this.$$search),n=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=zt(e,r))?(a=o,s=n&&y(o=zt(n,o))?t+(zt("/",o)||o):e+a):y(o=zt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Zt(e,t,n){Ut(e,this),this.$$parse=function(r){var i,o=zt(e,r)||zt(t,r);b(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",b(o)&&(e=r,this.replace())):b(i=zt(n,o))&&(i=o),qt(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Vt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Wt(e)===Wt(t)&&(this.$$parse(t),!0)}}function Jt(e,t,n){this.$$html5=!0,Zt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Wt(r)?o=r:(a=zt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function Qt(e){return function(){return this[e]}}function en(e,t){return function(n){return b(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function tn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return O(e)?(t.enabled=e,this):E(e)?(O(e.enabled)&&(t.enabled=e.enabled),O(e.requireBase)&&(t.requireBase=e.requireBase),(O(e.rewriteLinks)||w(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,d,u,m=r.baseHref(),p=r.url();if(t.enabled){if(!m&&t.requireBase)throw so("nobase","$location in HTML5 mode requires a tag to be present!");u=Gt(p)+(m||"/"),d=i.history?Xt:Jt}else u=Wt(p),d=Zt;var h=Kt(u);(l=new d(u,h,"#"+e)).$$parseLinkUrl(p,p),l.$$state=r.state();var f=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Pr(e.target);"a"!==j(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!w(i)||!b(s.attr(i))){var c=s.prop("href"),d=s.attr("href")||s.attr("xlink:href");E(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=In(c.animVal).href),f.test(c)||!c||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(c,d)&&(e.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Yt(l.absUrl())!==Yt(p)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(e,t){Vt(e,h)?(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Yt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,c(i,o)))}),n.$$phase||n.$digest()):a.location.href=e}),n.$watch(function(){if(g||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=Yt(r.url()),t=Yt(l.absUrl()),o=r.state(),a=l.$$replace,d=e!==t||l.$$html5&&i.history&&o!==l.$$state;(g||d)&&(g=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(d&&s(t,a,o===l.$$state?null:l.$$state),c(e,o)))}))}l.$$replace=!1}),l}]}function nn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack&&a?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||f,a=!1;try{a=!!i.apply}catch(e){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}var a=Hr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function rn(e){return e+""}function on(e,t){return void 0!==e?e:t}function an(e,t){return void 0===e?t:void 0===t?e:e+t}function sn(e,t){return!e(t).$stateful}function cn(e,t){var n,r,i;switch(e.type){case go.Program:n=!0,o(e.body,function(e){cn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case go.Literal:e.constant=!0,e.toWatch=[];break;case go.UnaryExpression:cn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case go.BinaryExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case go.LogicalExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case go.ConditionalExpression:cn(e.test,t),cn(e.alternate,t),cn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case go.Identifier:e.constant=!1,e.toWatch=[e];break;case go.MemberExpression:cn(e.object,t),e.computed&&cn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case go.CallExpression:i=!!e.filter&&sn(t,e.callee.name),n=i,r=[],o(e.arguments,function(e){cn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case go.AssignmentExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case go.ArrayExpression:n=!0,r=[],o(e.elements,function(e){cn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case go.ObjectExpression:n=!0,r=[],o(e.properties,function(e){cn(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch),e.computed&&(cn(e.key,t),e.key.constant||r.push.apply(r,e.key.toWatch))}),e.constant=n,e.toWatch=r;break;case go.ThisExpression:case go.LocalsExpression:e.constant=!1,e.toWatch=[]}}function ln(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function dn(e){return e.type===go.Identifier||e.type===go.MemberExpression}function un(e){if(1===e.body.length&&dn(e.body[0].expression))return{type:go.AssignmentExpression,left:e.body[0].expression,right:{type:go.NGValueParameter},operator:"="}}function mn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===go.Literal||e.body[0].expression.type===go.ArrayExpression||e.body[0].expression.type===go.ObjectExpression)}function pn(e){return e.constant}function hn(e){this.$filter=e}function fn(e){this.$filter=e}function gn(e,t,n){this.ast=new go(e,n),this.astCompiler=n.csp?new fn(t):new hn(t)}function vn(e){return x(e.valueOf)?e.valueOf():mo.call(e)}function $n(){var e,t,n=ve(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=vn(e))&&!n)&&(e===t||e!==e&&t!==t)}function s(e,t,n,r,i){var o,s=r.inputs;if(1===s.length){var c=a;return s=s[0],e.$watch(function(e){var t=s(e);return a(t,c,r.literal)||(o=r(e,void 0,void 0,[t]),c=t&&vn(t)),o},t,n,i)}for(var l=[],d=[],u=0,m=s.length;u0&&d(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return $(t,k,e)},function(t){return $(t,v,e)},t)}});var k=y;return C.prototype=s.prototype,C.defer=i,C.reject=v,C.when=y,C.resolve=k,C.all=function(e){var t=new s,n=0,r=Kr(e)?[]:{};return o(e,function(e,i){n++,y(e).then(function(e){r[i]=e,--n||m(t,r)},function(e){h(t,e)})}),0===n&&m(t,r),t},C.race=function(e){var t=i();return o(e,function(e){y(e).then(t.resolve,t.reject)}),t.promise},C}function Cn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function wn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return t.prototype=e,t}var n=10,r=t("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(n=e),n},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,d){function u(e){e.currentScope.$$destroyed=!0}function m(e){9===Hr&&(e.$$childHead&&m(e.$$childHead),e.$$nextSibling&&m(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(M.$$phase)throw r("inprog","{0} already in progress",M.$$phase);M.$$phase=e}function g(){M.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function $(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function y(){}function C(){for(;T.length;)try{T.shift()()}catch(e){t(e)}s=null}function w(){null===s&&(s=d.defer(function(){M.$apply(C)}))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",u),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,c={fn:t,last:y,get:i,exp:r||e,eq:!!n};return a=null,x(t)||(c.fn=f),s||((s=o.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,v(this,1),function(){var e=F(s,c);e>=0&&(v(o,-1),et){d++;for(n in o)Nr.call(r,n)||(f--,delete o[n])}}else o!==r&&(o=r,d++);return d}}n.$stateful=!0;var r,o,a,s=this,c=t.length>1,d=0,u=l(e,n),m=[],p={},h=!0,f=0;return this.$watch(u,function(){if(h?(h=!1,t(r,r,s)):t(r,a,s),c)if(E(r))if(i(r)){a=new Array(r.length);for(var e=0;e-1)throw vo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Zr(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw vo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function kn(e){var t=[];return y(e)&&o(e,function(e){t.push(xn(e))}),t}function Tn(){this.SCE_CONTEXTS=$o;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=kn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=kn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Hn(t):!!e.exec(t.href)}function i(n){var i,o,a=In(n.toString()),s=!1;for(i=0,o=e.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=ye($o);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=g),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o($o,function(e,t){var n=Or(t);r[An("parse_as_"+n)]=function(t){return i(e,t)},r[An("get_trusted_"+n)]=function(t){return a(e,t)},r[An("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Sn(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=p((/android (\d+)/.exec(Or((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s=a.body&&a.body.style,c=!1,l=!1;return s&&(c=!!("transition"in s||"webkitTransition"in s),l=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&Hr)return!1;if(b(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:Jr(),transitions:c,animations:l,android:i}}]}function Nn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,c){a.totalPendingRequests++,w(s)&&!b(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return Kr(l)?l=l.filter(function(e){return e!==_t}):l===_t&&(l=null),r.get(s,u({cache:n,transformResponse:l},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},function(e){return c||(e=yo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)})}return a.totalPendingRequests=0,a}]}function Dn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=[];return o(e.getElementsByClassName("ng-binding"),function(e){var i=zr.element(e).data("$binding");i&&o(i,function(i){n?new RegExp("(^|\\s)"+Zr(t)+"(\\s|\\||$)").test(i)&&r.push(e):-1!==i.indexOf(t)&&r.push(e)})}),r},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(l=n(a.substring(0,c)),b(i[l])&&(i[l]=n(a.substring(c+1))));return i}}function Ln(){this.$get=Rn}function jn(e){function t(r,i){if(E(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Vn),t("date",nr),t("filter",Bn),t("json",rr),t("limitTo",ir),t("lowercase",_o),t("number",zn),t("orderBy",ar),t("uppercase",So)}function Bn(){return function(e,n,r,o){if(!i(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s;switch(qn(n)){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Fn(n,r,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function Fn(e,t,n,r){var i=E(e)&&n in e;return!0===t?t=V:x(t)||(t=function(e,t){return!b(e)&&(null===e||null===t?e===t:!(E(t)||E(e)&&!$(e))&&(e=Or(""+e),t=Or(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!E(o)?Un(o,e[n],t,n,!1):Un(o,e,t,n,r)}}function Un(e,t,n,r,i,o){var a=qn(e),s=qn(t);if("string"===s&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r,i);if(Kr(e))return e.some(function(e){return Un(e,t,n,r,i)});switch(a){case"object":var c;if(i){for(c in e)if(c.charAt&&"$"!==c.charAt(0)&&Un(e[c],t,n,r,!0))return!0;return!o&&Un(e,t,n,r,!1)}if("object"===s){for(c in t){var l=t[c];if(!x(l)&&!b(l)){var d=c===r;if(!Un(d?e:e[c],l,n,r,d,d))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function qn(e){return null===e?"null":typeof e}function Vn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return b(n)&&(n=t.CURRENCY_SYM),b(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Kn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Kn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Wn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Mo))>-1&&(e=e.replace(Mo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Ao;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ao;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>wo&&(t=t.splice(0,wo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Yn(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=b(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var c=a;c=5)if(a-1<0){for(var d=0;d>a;d--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o0?p=d.splice(u,d.length):(p=d,d=[0]);var h=[];for(d.length>=t.lgSize&&h.unshift(d.splice(-t.lgSize,d.length).join(""));d.length>t.gSize;)h.unshift(d.splice(-t.gSize,d.length).join(""));d.length&&h.unshift(d.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),m&&(l+="e+"+m)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Gn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Gn(a,t,r,i)}}function Zn(e,t,n){return function(r,i){var o=r["get"+e]();return i[Ir((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Jn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Qn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function er(e){return function(t){var n=Jn(t.getFullYear()),r=+Qn(t)-+n;return Gn(1+Math.round(r/6048e5),e)}}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var c=p(t[4]||0)-i,l=p(t[5]||0)-o,d=p(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,c,l,d,u),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,c="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,w(n)&&(n=To.test(n)?p(n):t(n)),M(n)&&(n=new Date(n)),!A(n)||!isFinite(n.getTime()))return n;for(;r;)(s=ko.exec(r))?r=(l=z(l,s,1)).pop():(l.push(r),r=null);var d=n.getTimezoneOffset();return i&&(d=Z(i,d),n=Q(n,i,!0)),o(l,function(t){a=xo[t],c+=a?a(n,e.DATETIME_FORMATS,d):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function rr(){return function(e,t){return b(t)&&(t=2),G(e,t)}}function ir(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),Yr(t)?e:(M(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,e.length+n):n,t>=0?or(e,n,n+t):0===n?or(e,t,e.length):or(e,Math.max(0,n+t),n)):e)}}function or(e,t,n){return w(e)?e.slice(t,n):jr.call(e,t,n)}function ar(e){function n(t){return t.map(function(t){var n=1,r=g;if(x(t))r=t;else if(w(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function r(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return x(e.valueOf)&&(e=e.valueOf(),r(e))?e:($(e)&&(e=e.toString(),r(e)),e)}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(E(o)&&(o=e.index),E(a)&&(a=t.index)),o!==a&&(n=o=f},a.$observe("min",function(e){f=m(e),s.$validate()})}if(y(a.max)||a.ngMax){var g;s.$validators.max=function(e){return!u(e)||b(g)||n(e)<=g},a.$observe("max",function(e){g=m(e),s.$validate()})}}}function gr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=E(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Sr)||{};return n.badInput||n.typeMismatch?void 0:e})}function vr(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:Fo.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!M(t))throw ba("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function $r(e){return y(e)&&!M(e)&&(e=parseFloat(e)),Yr(e)?void 0:e}function br(e){return(0|e)===e}function yr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-10||g[e])&&(g[e]=(g[e]||0)+t,g[e]===+(t>0)&&n.push(e))}),n.join(" ")}var f,g=l.data("$classCounts"),v=!0;g||(g=ve(),l.data("$classCounts",g)),"ngClass"!==e&&(a||(a=s("$index",function(e){return 1&e})),c.$watch(a,function(e){e===t?u(f):m(f),v=e})),c.$watch(s(d[e],i),function(e){w(e)||(e=i(e)),v===t&&p(f,e),f=e})}}}]}function Mr(e,t,n,r,i,o,a,s,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=Oo,this.$options=ya,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,lr(this),Ar(this)}function Ar(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);if(n!==e.$modelValue&&(e.$modelValue===e.$modelValue||n===n)){e.$modelValue=e.$$rawModelValue=n,e.$$parserValid=void 0;for(var r=e.$formatters,i=r.length,o=n;i--;)o=r[i](o);e.$viewValue!==o&&(e.$$updateEmptyClasses(o),e.$viewValue=e.$$lastCommittedViewValue=o,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,f))}return n})}function xr(e){this.$$options=e}function kr(e,t){o(t,function(t,n){y(e[n])||(e[n]=t)})}function Tr(e,t){e.prop("selected",t),e.attr("selected",t)}var _r=/^\/(.+)\/([a-z]*)$/,Sr="validity",Nr=Object.prototype.hasOwnProperty,Dr={objectMaxDepth:5},Or=function(e){return w(e)?e.toLowerCase():e},Ir=function(e){return w(e)?e.toUpperCase():e};"i"!=="I".toLowerCase()&&(Or=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Ir=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e});var Hr,Pr,Rr,Lr,jr=[].slice,Br=[].splice,Fr=[].push,Ur=Object.prototype.toString,qr=Object.getPrototypeOf,Vr=t("ng"),zr=e.angular||(e.angular={}),Wr=0;Hr=e.document.documentMode;var Yr=Number.isNaN||function(e){return e!==e};f.$inject=[],g.$inject=[];var Kr=Array.isArray,Gr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Xr=function(e){return w(e)?e.trim():e},Zr=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#(?:<\/\1>|)$/,$i=/<|&#?\w+;/,bi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ei={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ei.optgroup=Ei.option,Ei.tbody=Ei.tfoot=Ei.colgroup=Ei.caption=Ei.thead,Ei.th=Ei.td;var Ci=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},wi=De.prototype={ready:Ke,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Pr(e>=0?this[e]:this[this.length+e])},length:0,push:Fr,sort:[].sort,splice:[].splice},Mi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Mi[Or(e)]=e});var Ai={};o("input,select,option,textarea,button,form,details".split(","),function(e){Ai[e]=!0});var xi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Le,removeData:Pe,hasData:function(e){for(var t in ui[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t=0?t.split(" "):[t],c=s.length,l=function(t,r,i){var s=o[t];s||((s=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};c--;)t=s[c],fi[t]?(l(fi[t],Qe),l(t,void 0,!0)):l(t)}},off:He,one:function(e,t,n){(e=Pr(e)).on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Ie(e),o(new De(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===oi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===oi||n===li)for(var r=0,i=(t=new De(t)).length;r/,Ni=/^[^(]*\(\s*([^)]*)\)/m,Di=/,/,Oi=/^\s*(_?)(\S+?)\1\s*$/,Ii=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Hi=t("$injector");at.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw w(n)&&n||(n=e.name||ot(e)),Hi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o(it(e)[1].split(Di),function(e){e.replace(Oi,function(e,t,n){r.push(n)})})}e.$inject=r}}else Kr(e)?(pe(e[i=e.length-1],"fn"),r=e.slice(0,i)):pe(e,"fn",!0);return r};var Pi=t("$animate"),Ri=1,Li=function(){this.$get=f},ji=function(){var e=new Ti,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&o(t=w(t)?t.split(" "):Kr(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=dt(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Fe(e,i),a&&Be(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var c=e.get(n)||{},l=i(c,o,!0),d=i(c,s,!1);(l||d)&&(e.set(n,c),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:f,on:f,off:f,pin:f,push:function(e,t,r,i){i&&i(),(r=r||{}).from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Bi=["$provide",function(e){var t=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Pi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Pi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=lt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",ut(o))},move:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",ut(o))},leave:function(t,n){return e.push(t,"leave",ut(n),function(){t.remove()})},addClass:function(t,n,r){return r=ut(r),r.addClass=ct(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=ut(r),r.removeClass=ct(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=ut(i),i.addClass=ct(i.addClass,n),i.removeClass=ct(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=ut(o),o.from=o.from?u(o.from,n):n,o.to=o.to?u(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ct(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Fi=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e <= >= && || ! = |".split(" "),function(e){po[e]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},fo=function(e){this.options=e};fo.prototype={constructor:fo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw uo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:go.Program,body:e}},expressionStatement:function(){return{type:go.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!dn(e))throw uo("lval","Trying to assign a value to a non l-value");e={type:go.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:go.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:go.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:go.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:go.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=U(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:go.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:go.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:go.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:go.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:go.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:go.Identifier,name:e.text}},constant:function(){return{type:go.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:go.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:go.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:go.ObjectExpression,properties:t}},throwError:function(e,t){throw uo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw uo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw uo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:go.ThisExpression},$locals:{type:go.LocalsExpression}}},hn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},cn(e,t.$filter);var n,r="";if(this.stage="assign",n=un(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=ln(e.body);t.stage="inputs",o(a,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push(r),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",c=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,rn,on,an);return this.state=this.stage=void 0,c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,c,l,d,u,m=this;if(r=r||f,!a&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case go.Program:o(e.body,function(t,n){m.recurse(t.expression,void 0,void 0,function(e){c=e}),n!==e.body.length-1?m.current().body.push(c,";"):m.return_(c)});break;case go.Literal:d=this.escape(e.value),this.assign(t,d),r(t||d);break;case go.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){c=e}),d=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,d),r(d);break;case go.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){c=e}),d="+"===e.operator?this.plus(s,c):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(c,0):"("+s+")"+e.operator+"("+c+")",this.assign(t,d),r(d);break;case go.LogicalExpression:t=t||this.nextId(),m.recurse(e.left,t),m.if_("&&"===e.operator?t:m.not(t),m.lazyRecurse(e.right,t)),r(t);break;case go.ConditionalExpression:t=t||this.nextId(),m.recurse(e.test,t),m.if_(t,m.lazyRecurse(e.alternate,t),m.lazyRecurse(e.consequent,t)),r(t);break;case go.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",e.name)),function(){m.if_("inputs"===m.stage||"s",function(){i&&1!==i&&m.if_(m.isNull(m.nonComputedMember("s",e.name)),m.lazyAssign(m.nonComputedMember("s",e.name),"{}")),m.assign(t,m.nonComputedMember("s",e.name))})},t&&m.lazyAssign(t,m.nonComputedMember("l",e.name))),r(t);break;case go.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),m.recurse(e.object,s,void 0,function(){m.if_(m.notNull(s),function(){e.computed?(c=m.nextId(),m.recurse(e.property,c),m.getStringValue(c),i&&1!==i&&m.if_(m.not(m.computedMember(s,c)),m.lazyAssign(m.computedMember(s,c),"{}")),d=m.computedMember(s,c),m.assign(t,d),n&&(n.computed=!0,n.name=c)):(i&&1!==i&&m.if_(m.isNull(m.nonComputedMember(s,e.property.name)),m.lazyAssign(m.nonComputedMember(s,e.property.name),"{}")),d=m.nonComputedMember(s,e.property.name),m.assign(t,d),n&&(n.computed=!1,n.name=e.property.name))},function(){m.assign(t,"undefined")}),r(t)},!!i);break;case go.CallExpression:t=t||this.nextId(),e.filter?(c=m.filter(e.callee.name),l=[],o(e.arguments,function(e){var t=m.nextId();m.recurse(e,t),l.push(t)}),d=c+"("+l.join(",")+")",m.assign(t,d),r(t)):(c=m.nextId(),s={},l=[],m.recurse(e.callee,c,s,function(){m.if_(m.notNull(c),function(){o(e.arguments,function(t){m.recurse(t,e.constant?void 0:m.nextId(),void 0,function(e){l.push(e)})}),d=s.name?m.member(s.context,s.name,s.computed)+"("+l.join(",")+")":c+"("+l.join(",")+")",m.assign(t,d)},function(){m.assign(t,"undefined")}),r(t)}));break;case go.AssignmentExpression:c=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){m.if_(m.notNull(s.context),function(){m.recurse(e.right,c),d=m.member(s.context,s.name,s.computed)+e.operator+c,m.assign(t,d),r(t||d)})},1);break;case go.ArrayExpression:l=[],o(e.elements,function(t){m.recurse(t,e.constant?void 0:m.nextId(),void 0,function(e){l.push(e)})}),d="["+l.join(",")+"]",this.assign(t,d),r(t||d);break;case go.ObjectExpression:l=[],u=!1,o(e.properties,function(e){e.computed&&(u=!0)}),u?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=m.nextId(),m.recurse(e.key,s)):s=e.key.type===go.Identifier?e.key.name:""+e.key.value,c=m.nextId(),m.recurse(e.value,c),m.assign(m.member(t,s,e.computed),c)})):(o(e.properties,function(t){m.recurse(t.value,e.constant?void 0:m.nextId(),void 0,function(e){l.push(m.escape(t.key.type===go.Identifier?t.key.name:""+t.key.value)+":"+e)})}),d="{"+l.join(",")+"}",this.assign(t,d)),r(t||d);break;case go.ThisExpression:this.assign(t,"s"),r(t||"s");break;case go.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case go.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(n,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(M(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw uo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},fn.prototype={compile:function(e){var t=this;cn(e,t.$filter);var n,r;(n=un(e))&&(r=this.recurse(n));var i,a=ln(e.body);a&&(i=[],o(a,function(e,n){var r=t.recurse(e);e.input=r,i.push(r),e.watchId=n}));var s=[];o(e.body,function(e){s.push(t.recurse(e.expression))});var c=0===e.body.length?f:1===e.body.length?s[0]:function(e,t){var n;return o(s,function(r){n=r(e,t)}),n};return r&&(c.assign=function(e,t,n){return r(e,n,t)}),i&&(c.inputs=i),c},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case go.Literal:return this.value(e.value,t);case go.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case go.BinaryExpression:case go.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case go.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case go.Identifier:return s.identifier(e.name,t,n);case go.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case go.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],c=0;c":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var c=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:c}:c}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var c=s?s[e]:void 0;return t?{context:s,name:e,value:c}:c}},computedMember:function(e,t,n,r){return function(i,o,a,s){var c,l,d=e(i,o,a,s);return null!=d&&(c=rn(c=t(i,o,a,s)),r&&1!==r&&d&&!d[c]&&(d[c]={}),l=d[c]),n?{context:d,name:c,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var c=e(i,o,a,s);r&&1!==r&&c&&null==c[t]&&(c[t]={});var l=null!=c?c[t]:void 0;return n?{context:c,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},gn.prototype={constructor:gn,parse:function(e){var t=this.ast.ast(e),n=this.astCompiler.compile(t);return n.literal=mn(t),n.constant=pn(t),n}};var vo=t("$sce"),$o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bo=/_([a-z])/g,yo=t("$compile"),Eo=e.document.createElement("a"),Co=In(e.location.href);Rn.$inject=["$document"],jn.$inject=["$provide"];var wo=22,Mo=".",Ao="0";Vn.$inject=["$locale"],zn.$inject=["$locale"];var xo={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Zn("Month"),MMM:Zn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Zn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Zn("Day"),EEE:Zn("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Gn(Math[r>0?"floor":"ceil"](r/60),2)+Gn(Math.abs(r%60),2)},ww:er(2),w:er(1),G:tr,GG:tr,GGG:tr,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},ko=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,To=/^-?\d+$/;nr.$inject=["$locale"];var _o=v(Or),So=v(Ir);ar.$inject=["$parse"];var No=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Ur.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Do={};o(Mi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=$t("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,0,i)}),Do[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(xi,function(e,t){Do[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(_r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=$t("ng-"+e);Do[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Ur.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){t?(i.$set(a,t),Hr&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)})}}}});var Oo={$addControl:f,$$renameControl:function(e,t){e.$name=t},$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},Io="ng-pending";cr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],cr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){he(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),F(this.$$controls,e),e.$$parentForm=Oo},$setDirty:function(){this.$$animate.removeClass(this.$$element,va),this.$$animate.addClass(this.$$element,$a),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,va,$a+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},dr({clazz:cr,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(F(r,n),0===r.length&&delete e[t])}});var Ho=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||f}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:cr,compile:function(n,i){n.addClass(va).addClass(fa);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var c=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",c),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",c)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):f;o&&(l(e,s),i.$observe(o,function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(e,void 0),u(s,Oo)})}}}}}]},Po=Ho(),Ro=Ho(!0),Lo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,jo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Bo=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Fo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Uo=/^(\d{4,})-(\d{2})-(\d{2})$/,qo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Vo=/^(\d{4,})-W(\d\d)$/,zo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Ko=ve();o("date,datetime-local,month,time,week".split(","),function(e){Ko[e]=!0});var Go={text:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r)},date:fr("date",Uo,hr(Uo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fr("datetimelocal",qo,hr(qo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fr("time",Wo,hr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fr("week",Vo,function(e,t){if(A(e))return e;if(w(e)){Vo.lastIndex=0;var n=Vo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,l=Jn(r),d=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,l.getDate()+d,o,a,s,c)}}return NaN},"yyyy-Www"),month:fr("month",zo,hr(zo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o){gr(e,t,n,r),vr(r),pr(e,t,n,r,i,o);var a,s;if((y(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||b(a)||e>=a},n.$observe("min",function(e){a=$r(e),r.$validate()})),(y(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||b(s)||e<=s},n.$observe("max",function(e){s=$r(e),r.$validate()})),y(n.step)||n.ngStep){var c;r.$validators.step=function(e,t){return r.$isEmpty(t)||b(c)||Er(t,a||0,c)},n.$observe("step",function(e){c=$r(e),r.$validate()})}},url:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||jo.test(n)}},email:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Bo.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Xr(n.ngTrim);b(n.name)&&t.attr("name",c());t.on("click",function(e){var o;t[0].checked&&(o=n.value,i&&(o=Xr(o)),r.$setViewValue(o,e&&e.type))}),r.$render=function(){var e=n.value;i&&(e=Xr(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}gr(e,t,n,r),vr(r),pr(e,t,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===t[0].type,c=s?0:void 0,l=s?100:void 0,d=s?1:void 0,u=t[0].validity,m=y(n.min),p=y(n.max),h=y(n.step),f=r.$render;r.$render=s&&y(u.rangeUnderflow)&&y(u.rangeOverflow)?function(){f(),r.$setViewValue(t.val())}:f,m&&(r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||b(c)||t>=c},a("min",function(e){if(c=$r(e),!Yr(r.$modelValue))if(s){var n=t.val();c>n&&(n=c,t.val(n)),r.$setViewValue(n)}else r.$validate()})),p&&(r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||b(l)||t<=l},a("max",function(e){if(l=$r(e),!Yr(r.$modelValue))if(s){var n=t.val();l0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},dr({clazz:Mr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ya,Ea=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Mr,priority:1,compile:function(t){return t.addClass(va).addClass("ng-untouched").addClass(fa),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],Ca=/(\s+|^)default(\s+|$)/;xr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=u({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Xr(n.replace(Ca,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],kr(e,this.$$options)),kr(e,ya.$$options),new xr(e)}},ya=new xr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var wa=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:ya,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Ma=sr({terminal:!0,priority:1e3}),Aa=t("ngOptions"),xa=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ka=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(xa);if(!s)throw Aa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ee(t));var c=s[5]||s[7],l=s[6],d=/ as /.test(s[0])&&s[1],u=s[9],m=r(s[2]?s[1]:c),p=d&&r(d)||m,h=u&&r(u),f=u?function(e,t){return h(n,t)}:function(e){return tt(e)},g=function(e,t){return f(e,C(e,t))},v=r(s[2]||s[1]),$=r(s[3]||""),b=r(s[4]||""),y=r(s[8]),E={},C=l?function(e,t){return E[l]=t,E[c]=e,E}:function(e){return E[c]=e,E};return{trackBy:u,getTrackByValue:g,getWatchables:r(y,function(e){for(var t=[],r=a(e=e||[]),i=r.length,o=0;o=0;t--){var n=C.items[t];We(y(n.group)?n.element.parentNode:n.element)}C=w.getOptions();var i={};if(E&&r.prepend(h.emptyOption),C.items.forEach(function(e){var t;y(e.group)?((t=i[e.group])||(t=c.cloneNode(!1),M.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),d(e,t)):d(e,M)}),r[0].appendChild(M),f.$render(),!f.$isEmpty(e)){var o=h.readValue();(w.trackBy||g?V(e,o):e===o)||(f.$setViewValue(o),f.$render())}}for(var h=l[0],f=l[1],g=i.multiple,v=0,$=r.children(),b=$.length;v0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,ee(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||b(o)||o.test(t)}}}}},za=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=p(e);i=Yr(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},Wa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=p(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var t;if(!ii){var n=Qr();(Rr=b(n)?e.jQuery:n?e[n]:void 0)&&Rr.fn.on?(Pr=Rr,u(Rr.fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),t=Rr.cleanData,Rr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Rr._data(r,"events"))&&n.$destroy&&Rr(r).triggerHandler("$destroy");t(e)}):Pr=De,zr.element=Pr,ii=!0}}(),function(r){u(r,{errorHandlingConfig:n,bootstrap:ce,copy:U,extend:u,merge:m,equals:V,element:Pr,forEach:o,injector:at,noop:f,bind:Y,toJson:G,fromJson:X,identity:g,isUndefined:b,isDefined:y,isString:w,isFunction:x,isObject:E,isNumber:M,isElement:R,isArray:Kr,version:di,isDate:A,lowercase:Or,uppercase:Ir,callbacks:{$$counter:0},getTestability:de,reloadWithDebugInfo:le,$$minErr:t,$$csp:Jr,$$encodeUriSegment:ie,$$encodeUriQuery:oe,$$stringify:$e}),(Lr=be(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Mn}),e.provider("$compile",gt).directive({a:No,input:Xo,textarea:Xo,form:Po,script:La,select:Fa,option:Ua,ngBind:Qo,ngBindHtml:ta,ngBindTemplate:ea,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:Ro,ngHide:Na,ngIf:da,ngInclude:ua,ngInit:pa,ngNonBindable:Ma,ngPluralize:Ta,ngRepeat:_a,ngShow:Sa,ngStyle:Da,ngSwitch:Oa,ngSwitchWhen:Ia,ngSwitchDefault:Ha,ngOptions:ka,ngTransclude:Ra,ngModel:Ea,ngList:ha,ngChange:na,pattern:Va,ngPattern:Va,required:qa,ngRequired:qa,minlength:Wa,ngMinlength:Wa,maxlength:za,ngMaxlength:za,ngValue:Jo,ngModelOptions:wa}).directive({ngInclude:ma}).directive(Do).directive(ca),e.provider({$anchorScroll:st,$animate:Bi,$animateCss:qi,$$animateJs:Li,$$animateQueue:ji,$$AnimateRunner:Ui,$$animateAsyncRun:Fi,$browser:pt,$cacheFactory:ht,$controller:Ct,$document:wt,$$isDocumentHidden:Mt,$exceptionHandler:At,$filter:jn,$$forceReflow:Xi,$interpolate:jt,$interval:Bt,$http:Ht,$httpParamSerializer:kt,$httpParamSerializerJQLike:Tt,$httpBackend:Rt,$xhrFactory:Pt,$jsonpCallbacks:io,$location:tn,$log:nn,$parse:$n,$rootScope:wn,$q:bn,$$q:yn,$sce:_n,$sceDelegate:Tn,$sniffer:Sn,$templateCache:ft,$templateRequest:Nn,$$testability:Dn,$timeout:On,$window:Pn,$$rAF:Cn,$$jqLite:et,$$Map:_i,$$cookieReader:Ln})}]).info({angularVersion:"1.6.4"})}(zr),zr.module("ngLocale",[],["$provide",function(e){function t(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Pr(function(){se(e.document,ce)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(''),function(e,t){"use strict";function n(e,t,n){if(!e)throw ce("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(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 o(e,t,n){var r="";return e=W(e)?e:e&&Z(e)&&e.length?e.split(/\s+/):[],z(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof Q)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===R)return e;break;default:return Q(c(e))}if(e.nodeType===R)return Q(e)}function c(e){if(!e[0])return e;for(var t=0;t=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}function T(e){var t=0,n=e.split(/\s*,\s*/);return z(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=O,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}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){z(n,function(n){e[n]=Y(e[n])?e[n]:t.style.getPropertyValue(n)})}var O,I,H,P,R=1,L="-add",j="-remove",B="ng-",F="ng-animate",U="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",O="WebkitTransition",I="webkitTransitionEnd transitionend"):(O="transition",I="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",H="WebkitAnimation",P="webkitAnimationEnd animationend"):(H="animation",P="animationend");var q,V,z,W,Y,K,G,X,Z,J,Q,ee,te="Duration",ne="TimingFunction",re="PlayState",ie=H+"Delay",oe=H+te,ae=O+"Delay",se=O+te,ce=t.$$minErr("ng"),le=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o0&&!(l=n.get(s))){var d=o(a,"-stagger");r.addClass(i,d),(l=k(e,i,c)).animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,d),n.put(s,l)}return l||{}}function T(e){U.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r=re&&r>=ie&&(Z=!0,g())}function U(){function t(){if(!G){if(y(!1),z(se,function(e){var t=e[0],n=e[1];K.style[t]=n}),R(e,V),r.addClass(e,Ee),Ie.recalculateTimingStyles){if(ye=K.getAttribute("class")+" "+be,we=b(K,ye),De=N(K,ye,we),Oe=De.maxDelay,te=Math.max(Oe,0),0===(ie=De.maxDuration))return void g();Ie.hasTransitions=De.transitionDuration>0,Ie.hasAnimations=De.animationDuration>0}if(Ie.applyAnimationDelay&&(Oe="boolean"!=typeof V.delay&&_(V.delay)?parseFloat(V.delay):Oe,te=Math.max(Oe,0),De.animationDelay=Oe,He=x(Oe,!0),se.push(He),K.style[He[0]]=He[1]),re=te*me,oe=ie*me,V.easing){var t,i=V.easing;Ie.hasTransitions&&(t=O+ne,se.push([t,i]),K.style[t]=i),Ie.hasAnimations&&(t=H+ne,se.push([t,i]),K.style[t]=i)}De.transitionDuration&&de.push(I),De.animationDuration&&de.push(P),ae=Date.now();var o=re+he*oe,a=ae+o,s=e.data(ue)||[],l=!0;if(s.length){var d=s[0];(l=a>d.expectedEndTime)?c.cancel(d.timer):s.push(g)}if(l){var u=c(n,o,!1);s[0]={timer:u,expectedEndTime:a},s.push(g),e.data(ue,s)}de.length&&e.on(de.join(" "),F),V.to&&(V.cleanupStyles&&D(Y,K,Object.keys(V.to)),f(e,V))}}function n(){var t=e.data(ue);if(t){for(var n=1;n0&&(De.transitionDuration&&0===Me.transitionDuration||De.animationDuration&&0===Me.animationDuration)&&Math.max(Me.animationDelay,Me.transitionDelay);o?c(t,Math.floor(o*Se*me),!1):t(),Q.resume=function(){i(!0)},Q.pause=function(){i(!1)}}else g()}var V=n||{};V.$$prepared||(V=m(q(V)));var Y={},K=$(e);if(!K||!K.parentNode||!v.enabled())return k();var G,X,Z,J,Q,te,re,ie,oe,ae,se=[],ce=e.attr("class"),le=i(V),de=[];if(0===V.duration||!d.animations&&!d.transitions)return k();var fe=V.event&&W(V.event)?V.event.join(" "):V.event,ve="",$e="";fe&&V.structural?ve=o(fe,B,!0):fe&&(ve=fe),V.addClass&&($e+=o(V.addClass,L)),V.removeClass&&($e.length&&($e+=" "),$e+=o(V.removeClass,j)),V.applyClassesEarly&&$e.length&&R(e,V);var be=[ve,$e].join(" ").trim(),ye=ce+" "+be,Ee=o(be,"-active"),Ce=le.to&&Object.keys(le.to).length>0;if(!((V.keyframeStyle||"").length>0)&&!Ce&&!be)return k();var we,Me;if(V.stagger>0){var Ae=parseFloat(V.stagger);Me={transitionDelay:Ae,animationDelay:Ae,transitionDuration:0,animationDuration:0}}else we=b(K,ye),Me=M(K,be,we,ge);V.$$skipPreparationClasses||r.addClass(e,be);var xe;if(V.transitionStyle){var ke=[O,V.transitionStyle];w(K,ke),se.push(ke)}if(V.duration>=0){xe=K.style[O].length>0;var Te=S(V.duration,xe);w(K,Te),se.push(Te)}if(V.keyframeStyle){var _e=[H,V.keyframeStyle];w(K,_e),se.push(_e)}var Se=Me?V.staggerIndex>=0?V.staggerIndex:t.count(we):0,Ne=0===Se;Ne&&!V.skipBlocking&&E(K,9999);var De=N(K,ye,we),Oe=De.maxDelay;te=Math.max(Oe,0),ie=De.maxDuration;var Ie={};if(Ie.hasTransitions=De.transitionDuration>0,Ie.hasAnimations=De.animationDuration>0,Ie.hasTransitionAll=Ie.hasTransitions&&"all"===De.transitionProperty,Ie.applyTransitionDuration=Ce&&(Ie.hasTransitions&&!Ie.hasTransitionAll||Ie.hasAnimations&&!Ie.hasTransitions),Ie.applyAnimationDuration=V.duration&&Ie.hasAnimations,Ie.applyTransitionDelay=_(V.delay)&&(Ie.applyTransitionDuration||Ie.hasTransitions),Ie.applyAnimationDelay=_(V.delay)&&Ie.hasAnimations,Ie.recalculateTimingStyles=$e.length>0,(Ie.applyTransitionDuration||Ie.applyAnimationDuration)&&(ie=V.duration?parseFloat(V.duration):ie,Ie.applyTransitionDuration&&(Ie.hasTransitions=!0,De.transitionDuration=ie,xe=K.style[O+"Property"].length>0,se.push(S(ie,xe))),Ie.applyAnimationDuration&&(Ie.hasAnimations=!0,De.animationDuration=ie,se.push(A(ie)))),0===ie&&!Ie.recalculateTimingStyles)return k();if(null!=V.delay){var He;"boolean"!=typeof V.delay&&(He=parseFloat(V.delay),te=Math.max(He,0)),Ie.applyTransitionDelay&&se.push(x(He)),Ie.applyAnimationDelay&&se.push(x(He,!0))}return null==V.duration&&De.transitionDuration>0&&(Ie.recalculateTimingStyles=Ie.recalculateTimingStyles||Ne),re=te*me,oe=ie*me,V.skipBlocking||(Ie.blockTransition=De.transitionDuration>0,Ie.blockKeyframeAnimation=De.animationDuration>0&&Me.animationDelay>0&&0===Me.animationDuration),V.from&&(V.cleanupStyles&&D(Y,K,Object.keys(V.from)),h(e,V)),Ie.blockTransition||Ie.blockKeyframeAnimation?y(ie):V.skipBlocking||E(K,!1),{$$willAnimate:!0,end:l,start:function(){if(!G)return Q={end:l,cancel:u,resume:null,pause:null},J=new s(Q),T(U),J}}}}]}],$e=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,c,l,d,u){function m(e){return e.replace(/\bng-\S+\b/g,"")}function p(e,t){return Z(e)&&(e=e.split(" ")),Z(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function h(t,a,c){function l(e){var t={},n=$(e).getBoundingClientRect();return z(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function d(e){return e.attr("class")||""}function u(){var t=m(d(c)),n=p(t,g),r=p(g,t),a=e(f,{to:l(c),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function h(){f.remove(),a.removeClass(n),c.removeClass(n)}var f=Q($(a).cloneNode(!0)),g=m(d(f));a.addClass(n),c.addClass(n),f.addClass(r),y.append(f);var b,E=function(){var t=e(f,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}();if(!E&&!(b=u()))return h();var C=E||b;return{start:function(){function e(){n&&n.end()}var t,n=C.start();return n.done(function(){if(n=null,!b&&(b=u()))return(n=b.start()).done(function(){n=null,h(),t.complete()}),n;h(),t.complete()}),t=new s({end:e,cancel:e})}}}function f(e,t,n,r){var i=g(e),o=g(t),a=[];if(z(r,function(e){var t=e.out,r=e.in,i=h(n,t,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function e(){z(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),z(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}}function g(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=M(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return ee;var v=u[0].body,b=$(c),y=Q(t(b)||v.contains(b)?b:v);return function(e){return e.from&&e.to?f(e.from,e.to,e.classes,e.anchors):g(e)}}]}],be=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=W(n)?n:n.split(" ");for(var r=[],i={},o=0;o0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var l=1,d=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===d&&!e.structural}),f.cancel.push(function(e,t){return t.structural&&e.structural}),f.cancel.push(function(e,t){return t.state===d&&e.structural}),f.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,o=t.addClass,a=t.removeClass;return!(J(n)&&J(r)||J(o)&&J(a))&&(i(n,a)||i(r,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,h,f,v,E,C,w,M,A,x){function k(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function T(e,t){return g(e,t,{})}function _(e,t,n){var r=[],i=G[n];return i&&z(i,function(i){re.call(i.node,t)?r.push(i.callback):"leave"===n&&re.call(i.node,e)&&r.push(i.callback)}),r}function S(e,t,n){var r=c(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function N(e,t){"close"!==e||t.parentNode||ie.off(t)}function D(e,t,n){function c(e,t,n,i){A(function(){var e=_(w,v,t);e.length?r(function(){z(e,function(e){e(f,n,i)}),N(n,v)}):N(n,v)}),e.progress(t,n,i)}function u(e){y(f,h),ne(f,h),p(f,h),h.domOperation(),M.complete(!e)}var h=q(n),f=s(e),v=$(f),w=v&&v.parentNode;h=m(h);var M=new C,A=k();if(W(h.addClass)&&(h.addClass=h.addClass.join(" ")),h.addClass&&!Z(h.addClass)&&(h.addClass=null),W(h.removeClass)&&(h.removeClass=h.removeClass.join(" ")),h.removeClass&&!Z(h.removeClass)&&(h.removeClass=null),h.from&&!X(h.from)&&(h.from=null),h.to&&!X(h.to)&&(h.to=null),!v)return u(),M;var S=[v.getAttribute("class"),h.addClass,h.removeClass].join(" ");if(!te(S))return u(),M;var D=["enter","move","leave"].indexOf(t)>=0,R=x(),F=!B||R||j.get(v),U=!F&&L.get(v)||{},V=!!U.state;if(F||V&&U.state===l||(F=!H(v,w,t)),F)return R&&c(M,t,"start"),u(),R&&c(M,t,"close"),M;D&&O(v);var Y={structural:D,element:f,event:t,addClass:h.addClass,removeClass:h.removeClass,close:u,options:h,runner:M};if(V){if(o("skip",Y,U))return U.state===d?(u(),M):(g(f,U,Y),U.runner);if(o("cancel",Y,U))if(U.state===d)U.runner.end();else{if(!U.structural)return g(f,U,Y),U.runner;U.close()}else if(o("join",Y,U)){if(U.state!==d)return b(f,D?t:null,h),t=Y.event=U.event,h=g(f,U,Y),U.runner;T(f,Y)}}else T(f,Y);var K=Y.structural;if(K||(K="animate"===Y.event&&Object.keys(Y.options.to||{}).length>0||a(Y)),!K)return u(),I(v),M;var G=(U.counter||0)+1;return Y.counter=G,P(v,l,Y),i.$$postDigest(function(){f=s(e);var n=L.get(v),r=!n;n=n||{};var i=(f.parent()||[]).length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==G||!i)return r&&(ne(f,h),p(f,h)),(r||D&&n.event!==t)&&(h.domOperation(),M.end()),void(i||I(v));t=!n.structural&&a(n,!0)?"setClass":n.event,P(v,d);var o=E(f,t,n.options);M.setHost(o),c(M,t,"start",{}),o.done(function(e){u(!e);var n=L.get(v);n&&n.counter===G&&I(v),c(M,t,"close",{})})}),M}function O(e){var t=e.querySelectorAll("["+Ee+"]");z(t,function(e){var t=parseInt(e.getAttribute(Ee),10),n=L.get(e);if(n)switch(t){case d:n.runner.end();case l:L.delete(e)}})}function I(e){e.removeAttribute(Ee),L.delete(e)}function H(e,t,n){var r,i=f[0].body,o=$(h),a=e===i||"HTML"===e.nodeName,s=e===o,c=!1,l=j.get(e),d=Q.data(e,Ce);for(d&&(t=$(d));t&&(s||(s=t===o),t.nodeType===R);){var u=L.get(t)||{};if(!c){var m=j.get(t);if(!0===m&&!1!==l){l=!0;break}!1===m&&(l=!1),c=u.structural}if(J(r)||!0===r){var p=Q.data(t,U);Y(p)&&(r=p)}if(c&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(d=Q.data(t,Ce))?t.parentNode:$(d)}return(!c||r)&&!0!==l&&s&&a}function P(e,t,n){(n=n||{}).state=t,e.setAttribute(Ee,t);var r=L.get(e),i=r?V(r,n):n;L.set(e,i)}var L=new v,j=new v,B=null,F=i.$watch(function(){return 0===w.totalPendingRequests},function(e){e&&(F(),i.$$postDigest(function(){i.$$postDigest(function(){null===B&&(B=!0)})}))}),G=Object.create(null),ee=t.classNameFilter(),te=ee?function(e){return ee.test(e)}:function(){return!0},ne=u(M),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=c(t);G[e]=G[e]||[],G[e].push({node:r,callback:n}),Q(t).on("$destroy",function(){L.get(r)||ie.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||Z(arguments[0])){var r=G[e];r&&(G[e]=1===arguments.length?null:S(r,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,r){return n=n||{},n.domOperation=r,D(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!B;else if(K(e)){var r=$(e);1===n?t=!j.get(r):j.set(r,!t)}else t=B=!!e;return t}};return ie}]}],Me=["$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 o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(e,s,c,l,d,h){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,o=n.parentNode;i.set(n,e);for(var a;o;){if(a=i.get(o)){a.processed||(a=t(a));break}o=o.parentNode}return(a||r).children.push(e),e}var n,r={children:[]},i=new d;for(n=0;n=0,c=e.structural?y(i):[];if(c.length){var l=s?"to":"from";z(c,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][l]={animationID:r,element:Q(e)}})}else t.push(e)});var r={},i={};return z(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var c=e[a.animationID],l=e[s.animationID],d=a.animationID.toString();if(!i[d]){var u=i[d]={structural:!0,beforeStart:function(){c.beforeStart(),l.beforeStart()},close:function(){c.close(),l.close()},classes:C(c.classes,l.classes),from:c,to:l,anchors:[]};u.classes.length?t.push(u):(t.push(c),t.push(l))}i[d].anchors.push({out:a.element,in:s.element})}else{var m=a?a.animationID:s.animationID,p=m.toString();r[p]||(r[p]=!0,t.push(e[m]))}}),t}function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r=0;t--){var n=a[t],r=c.get(n)(e);if(r)return r}}function M(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(d);!e||"leave"===u&&b.$$domOperationFired||e.end()}function x(t){d.off("$destroy",A),n(d),v(d,b),p(d,b),b.domOperation(),S&&e.removeClass(d,S),d.removeClass(F),T.complete(!t)}b=m(b);var k=["enter","move","leave"].indexOf(u)>=0,T=new l({end:function(){x()},cancel:function(){x(!0)}});if(!a.length)return x(),T;t(d,T);var _=r(d.attr("class"),r(b.addClass,b.removeClass)),S=b.tempClasses;S&&(_+=" "+S,b.tempClasses=null);var N;return k&&(N="ng-"+u+"-prepare",e.addClass(d,N)),g.push({element:d,classes:_,event:u,structural:k,options:b,beforeStart:function(){d.addClass(F),S&&e.addClass(d,S),N&&(e.removeClass(d,N),N=null)},close:x}),d.on("$destroy",A),g.length>1?T:(s.$$postDigest(function(){var e=[];z(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=E(e),n=[];z(t,function(e){n.push({domNode:$(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 r=w(e);r&&(t=r.start)}if(t){var o=t();o.done(function(e){n(!e)}),M(e,o)}else n()}})}),h(f(n))}),T)}}]}],Ae=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){ee=t.noop,q=t.copy,V=t.extend,Q=t.element,z=t.forEach,W=t.isArray,Z=t.isString,X=t.isObject,J=t.isUndefined,Y=t.isDefined,G=t.isFunction,K=t.isElement}).info({angularVersion:"1.6.4"}).directive("ngAnimateSwap",Ae).directive("ngAnimateChildren",de).factory("$$rAFScheduler",le).provider("$$animateQueue",we).provider("$$animation",Me).provider("$animateCss",ve).provider("$$animateCssDriver",$e).provider("$$animateJs",be).provider("$$animateJsDriver",ye)}(window,window.angular),function(e,t){"use strict";var n=t.module("ngAria",["ng"]).info({angularVersion:"1.6.4"}).provider("$aria",function(){function e(e,t,r,o){return function(a,s,c){var l=c.$normalize(t);!n[l]||i(s,r)||c[l]||a.$watch(c[e],function(e){e=o?!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}}}),r=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],i=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};n.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",r,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",r,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",r,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",r,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,o,a){return e.config(n)&&!o.attr(t)&&(a||!i(o,r))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&!i(t,r)}function o(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(r,i){var a=o(i);return{post:function(r,i,o,s){function c(){return s.$modelValue}var l=t("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),t("aria-checked","ariaChecked",i,!1)&&r.$watch(c,"radio"===a?function(e){var t=o.value==s.$viewValue;i.attr("aria-checked",t)}:function(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}),l&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),e.config("ariaValue")){var d=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),u=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),m=!i.attr("aria-valuenow");d&&o.$observe("min",function(e){i.attr("aria-valuemin",e)}),u&&o.$observe("max",function(e){i.attr("aria-valuemax",e)}),m&&r.$watch(c,function(e){i.attr("aria-valuenow",e)})}l&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),t("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",r,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){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){i(n,r)||(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){var n=e.which||e.keyCode;32!==n&&13!==n||t.$apply(function(){a(t,{$event:e})})}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,o){!e.config("tabindex")||n.attr("tabindex")||i(n,r)||n.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"use strict";function n(){function e(e,t){if(e)return i(e)?e.indexOf(t)>=0:e.hasOwnProperty(t)}return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,r,o,a,s){var c,l=r[0],d=o.ngMessage||o.when,u=o.ngMessageExp||o.whenExp,m=function(e){c=e?i(e)?e:e.split(/[\s,]+/):null,a.reRender()};u?(m(n.$eval(u)),n.$watchCollection(u,m)):m(d);var p,h;a.register(l,h={test:function(t){return e(c,t)},attach:function(){p||s(function(e,n){t.enter(e,null,r);var i=(p=e).$$attachId=a.getAttachId();p.on("$destroy",function(){p&&p.$$attachId===i&&(a.deregister(l),h.detach()),n.$destroy()})})},detach:function(){if(p){var e=p;p=null,t.leave(e)}}})}}}]}var r,i,o,a;t.module("ngMessages",[],function(){r=t.forEach,i=t.isArray,o=t.isString,a=t.element}).info({angularVersion:"1.6.4"}).directive("ngMessages",["$animate",function(e){function t(e,t){return o(t)&&0===t.length||n(e.$eval(t))}function n(e){return o(e)?e.length:!!e}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(i,o,a){function s(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return f[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}function c(e,t,n){var r=f[n];if(d.head){var i=s(e,t);i?(r.next=i.next,i.next=r):(r.next=d.head,d.head=r)}else d.head=r}function l(e,t,n){var r=f[n],i=s(e,t);i?i.next=r.next:d.head=r.next}var d=this,u=0,m=0;this.getAttachId=function(){return m++};var p,h,f=this.messages={};this.render=function(s){p=!1,h=s=s||{};for(var c=t(o,a.ngMessagesMultiple)||t(o,a.multiple),l=[],u={},m=d.head,f=!1,g=0;null!=m;){g++;var v=m.message,$=!1;f||r(s,function(e,t){if(!$&&n(e)&&v.test(t)){if(u[t])return;u[t]=!0,$=!0,v.attach()}}),$?f=!c:l.push(v),m=m.next}r(l,function(e){e.detach()}),l.length!==g?e.setClass(i,"ng-active","ng-inactive"):e.setClass(i,"ng-inactive","ng-active")},o.$watchCollection(a.ngMessages||a.for,d.render),i.on("$destroy",function(){r(f,function(e){e.message.detach()})}),this.reRender=function(){p||(p=!0,o.$evalAsync(function(){p&&h&&d.render(h)}))},this.register=function(e,t){var n=u.toString();f[n]={message:t},c(i[0],e,n),e.$$ngMessageNode=n,u++,d.reRender()},this.deregister=function(e){var t=e.$$ngMessageNode;delete e.$$ngMessageNode,l(i[0],e,t),delete f[t],d.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){function r(e,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):t[0].createComment(" ngMessagesInclude: "+r+" "),o=a(i);e.after(o),e.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(t,i,a){var s=a.ngMessagesInclude||a.src;e(s).then(function(e){t.$$destroyed||(o(e)&&!e.trim()?r(i,s):n(e)(t,function(e){i.after(e),r(i,s)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n())}(window,window.angular),function(e,t,n){"use strict";t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.interaction","material.core.gestures","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.progressCircular","material.components.panel","material.components.progressLinear","material.components.radioButton","material.components.showHide","material.components.sidenav","material.components.select","material.components.slider","material.components.sticky","material.components.subheader","material.components.switch","material.components.swipe","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",r]),e.decorator("$q",["$delegate",i]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function r(e){return e.throttle=function(t){var n,r,i,o;return function(){n=arguments,o=this,i=t,r||(r=!0,e(function(){i.apply(o,Array.prototype.slice.call(n)),r=!1}))}},e}function i(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],r.$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){return{restrict:"A",link:{pre:function(n,r,i){function o(e){t.isUndefined(e)&&(e=!0),r.toggleClass("md-autofocus",!!e)}var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;o(e(a)(n)),a&&n.$watch(a,o)}}}}e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),function(){t.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),o=t.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(o,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}}})}(),function(){t.module("material.core").factory("$mdConstant",function(){function e(e){var t=r(o+"-"+e),a=t.charAt(0).toLowerCase()+t.substring(1);return n(i,e)?e:n(i,t)?t:n(i,a)?a:e}function n(e,n){return t.isDefined(e.style[n])}function r(e){return e.replace(s,function(e,t,n,r){return r?n.toUpperCase():n})}var i=document.createElement("div"),o=function(e){var t,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=r.exec(t))return n[0]}(i),a=/webkit/i.test(o),s=/([:\-_]+(.))/g,c={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=c.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 c})}(),function(){function e(e,n){function r(e){return d.length&&e>-1&&e-1}function a(){return d.length?d[0]:null}function s(){return d.length?d[d.length-1]:null}function c(e,o,c,u){c=c||l;for(var m=i(o);;){if(!r(m))return null;var p=m+(e?-1:1),h=null;if(r(p)?h=d[p]:n&&(p=i(h=e?s():a())),null===h||p===u)return null;if(c(h))return h;t.isUndefined(u)&&(u=p),m=p}}var l=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var d=e||[];return{items:function(){return[].concat(d)},count:function(){return d.length},inRange:r,contains:o,indexOf:i,itemAt:function(e){return r(e)?d[e]:null},findBy:function(e,t){return d.filter(function(n){return n[e]===t})},add:function(e,n){return e?(t.isNumber(n)||(n=d.length),d.splice(n,0,e),i(e)):-1},remove:function(e){o(e)&&d.splice(i(e),1)},first:a,last:s,next:t.bind(null,c,!1),previous:t.bind(null,c,!0),hasPrevious:function(e){return!!e&&r(i(e)-1)},hasNext:function(e){return!!e&&r(i(e)+1)}}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,r){function i(e){var n=l[e];t.isUndefined(n)&&(n=l[e]=o(e));var r=u[n];return t.isUndefined(r)&&(r=a(n)),r}function o(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function a(e){var t=d[e];return t||(t=d[e]=r.matchMedia(e)),t.addListener(s),u[t.media]=!!t.matches}function s(e){n.$evalAsync(function(){u[e.media]=!!e.matches})}function c(e,t){return m[t]||(m[t]=e.$normalize(t))}var l={},d={},u={},m={};return i.getResponsiveAttribute=function(t,n){for(var r=0;r-1}function g(e){return String(e).indexOf("%")>-1}function v(e){return e[0]||e}var $=l.startSymbol(),b=l.endSymbol(),y="{{"===$&&"}}"===b,E=function(e,n,r){var i=!1;if(e&&e.length){var o=m.getComputedStyle(e[0]);i=t.isDefined(o[n])&&(!r||o[n]==r)}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,o){var a=!("rtl"==r[0].dir||"rtl"==r[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(o)&&s.css(n,h(o))},bidiProperty:function(e,n,i,o){var a=!("rtl"==r[0].dir||"rtl"==r[0].body.dir),s=t.element(e);a&&t.isDefined(n)?(s.css(n,h(o)),s.css(i,"")):!a&&t.isDefined(i)&&(s.css(i,h(o)),s.css(n,""))},clientRect:function(e,t,n){var r=v(e);t=v(t||r.offsetParent||document.body);var i=r.getBoundingClientRect(),o=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-o.left,top:i.top-o.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;no.clientHeight+1;return c&&t.element(o).css({position:"fixed",width:"100%",top:-a+"px"}),o.clientWidth
'),e.append(r)),r.on("wheel",n),r.on("touchmove",n),function(){r.off("wheel"),r.off("touchmove"),i.disableScrollMask||r[0].parentNode.removeChild(r[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("
").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),r[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 r=document.createEvent("MouseEvents");r.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),r.$material=!0,r.$focus=!0,n.dispatchEvent(r)},createBackdrop:function(e,t){return a(C.supplant('',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var r=n.split("."),i=t;try{for(var o in r)r.hasOwnProperty(o)&&(i=i[r[o]])}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,r,i){var a;return function(){var s=r,c=Array.prototype.slice.call(arguments);o.cancel(a),a=o(function(){a=n,e.apply(s,c)},t||10,i)}},throttle:function(e,t){var n;return function(){var r=this,i=arguments,o=C.now();(!n||o-n>t)&&(e.apply(r,i),n=o)}},time:function(e){var t=C.now();return e(),C.now()-t},valueOnUse:function(e,t,n){var r=null,i=Array.prototype.slice.call(arguments),o=i.length>3?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===r&&(r=n.apply(e,o)),r}})},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,r){if(t.isString(n)){var i=n.toUpperCase();n=function(e){return e.nodeName.toUpperCase()===i}}if(e instanceof t.element&&(e=e[0]),r&&(e=e.parentNode),!e)return null;do{if(n(e))return e}while(e=e.parentNode);return null},elementContains:function(n,r){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,function(e){return n===r||!!(16&this.compareDocumentPosition(e))}))(r)},extractElementByName:function(e,n,r,i){function o(e){return a(e)||(r?s(e):null)}function a(e){if(e)for(var t=0,r=e.length;t");r[0].body.appendChild(n[0]);for(var i=["sticky","-webkit-sticky"],o=0;ot)&&p(r)}function i(){var e=n||1e3;return o(C.now()-l,a,s,e)}function o(e,t,n,r){if(e>r)return t+n;var i=(e/=r)*e;return t+n*(-2*(i*e)+3*i)}var a=e.scrollTop,s=t-a,c=a").html(i.trim()).contents();return n._compileElement(r,o,e)})},e.prototype._compileElement=function(e,n,r){var i=this,o=this.$compile(n),a={element:n,cleanup:n.remove.bind(n),locals:e,link:function(s){if(e.$scope=s,r.controller){var c=t.extend(e,{$element:n}),l=i.$controller(r.controller,c,!0,r.controllerAs);r.bindToController&&t.extend(l.instance,e);var d=l();n.data("$ngControllerController",d),n.children().data("$ngControllerController",d),a.controller=d}return o(s)}};return a},e.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 r=e.contentElement,i=null;return t.isString(r)?i=n(r=document.querySelector(r)):(r=r[0]||r,i=document.contains(r)?n(r):function(){r.parentNode&&r.parentNode.removeChild(r)}),{element:t.element(r),restore:i}}}(),function(){function e(e,n,r,i){function o(e,r,i){var o=t.element(e)[0]||e;!o||o.hasAttribute(r)&&0!==o.getAttribute(r).length||c(o,r)||((i=t.isString(i)?i.trim():"").length?e.attr(r,i):u&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',o))}function a(t,n,r){e(function(){o(t,n,r())})}function s(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r="";t=n.nextNode();)(function(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0})(t)||(r+=t.textContent);return r.trim()||""}function c(e,t){var n=!1;if(e.hasChildNodes())for(var i=e.childNodes,o=0;o-1?a(e,t,function(){return s(e)}):o(e,t,n)},expectWithoutText:function(e,t){var n=s(e);n.indexOf(i.startSymbol())>-1||n||o(e,t,n)},getText:s,hasAriaLabel:l,parentHasAriaLabel:d}}e.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",function(){var t={showWarnings:!0};return{disableWarnings:function(){t.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(n,r,i,o){return e.apply(t,arguments)}]}})}(),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 n(){}function r(n,r,i){function o(e){return function(t,n){n.distancethis.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){u&&(this.oldTouchAction=e[0].style[u],e[0].style[u]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[u]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,r;u||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,r=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,r=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=a(e),l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:r.throttle(function(e){this.state.isRunning&&(l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(l(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 o(e,n){function r(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||c(e)||(e.preventDefault(),e.stopPropagation())}function i(e,t){var r;for(var i in p)(r=p[i])instanceof n&&("start"===e&&r.cancel(),r[e](t,u))}document.contains||(document.contains=function(e){return document.body.contains(e)}),!g&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||c(e)||n?(f=null,"label"==e.target.tagName.toLowerCase()&&(f={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),f=null)},!0),document.addEventListener("mouseup",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("focus",r,!0),g=!0);t.element(document).on("mousedown touchstart pointerdown",function(e){if(!u){var t=+Date.now();m&&!s(e,m)&&t-m.endTime<1500||(u=a(e),i("start",e))}}).on("mousemove touchmove pointermove",function(e){u&&s(e,u)&&(l(e,u),i("move",e))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){u&&s(e,u)&&(l(e,u),u.endTime=+Date.now(),i("end",e),m=u,u=null)}).on("$$mdGestureReset",function(){m=u=null})}function a(e){var t=d(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 s(e,t){return e&&t&&e.type.charAt(0)===t.type}function c(e){return f&&f.x==e.x&&f.y==e.y}function l(e,t){var n=d(e),r=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=r-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 d(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}r.$inject=["$$MdGestureHandler","$$rAF","$timeout"],o.$inject=["$mdGesture","$$MdGestureHandler"];var u,m,p={},h=!1,f=null,g=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",function(){var n=void 0!==e.jQuery&&t.element===e.jQuery;return i.prototype={options:{},dispatchEvent:n?function(e,n,r){r=r||u;var i=new t.element.Event(n);i.$material=!0,i.pointer=r,i.srcEvent=e,t.extend(i,{clientX:r.x,clientY:r.y,screenX:r.x,screenY:r.y,pageX:r.x,pageY:r.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(r.target).trigger(i)}:function(t,n,r){r=r||u;var i;"click"===n||"mouseup"==n||"mousedown"==n?(i=document.createEvent("MouseEvents")).initMouseEvent(n,!0,!0,e,t.detail,r.x,r.y,r.x,r.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null):(i=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,{}),i.$material=!0,i.pointer=r,i.srcEvent=t,r.target.dispatchEvent(i)},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 r=this.getNearestParent(e.target),i=r&&r.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,i),registeredParent:r},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[r.name],e.off("$destroy",n),r.onCleanup(e,t||{})}var r=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),r.onSetup(e,t||{}),n}},i}).run(o),n.prototype={skipClickHijack:function(){return h=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new r(e,t,n)}]}}(),function(){t.module("material.core").provider("$$interimElement",function(){function e(e){function n(n,r){function a(t,n){var i={};return i[e]=d,r.invoke(t||function(){return n},{},i)}var s,c,l=n(),d={hide:l.hide,cancel:l.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),l.show(t.extend({},c,e))},destroy:function(e){return l.destroy(e)}};return s=o.methods||[],c=a(o.optionsFactory,{}),t.forEach(i,function(e,t){d[t]=e}),t.forEach(o.presets,function(e,n){function r(e){this._options=t.extend({},i,e)}var i=a(e.optionsFactory,{}),o=(e.methods||[]).concat(s);if(t.extend(i,{$type:n}),t.forEach(o,function(e){r.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var c="show"+n.charAt(0).toUpperCase()+n.slice(1);d[c]=function(e){var t=d[n](e);return d.show(t)}}d[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new r)[e.argOption](n):new r(n)}}),d}n.$inject=["$$interimElement","$injector"];var r=["onHide","onShow","onRemove"],i={},o={presets:{}},a={setDefaults:function(e){return o.optionsFactory=e.options,o.methods=(e.methods||[]).concat(r),a},addPreset:function(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 o.presets[t]={methods:n.methods.concat(r),optionsFactory:n.options,argOption:n.argOption},a},addMethod:function(e,t){return i[e]=t,a},$get:n};return a.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),a}function r(e,r,i,o,a,s,c,l,d,u,m){return function(){function p(e){return function(){var t=arguments;return b.length?e.apply(f,t):v.length?v[0].finally(function(){return e.apply(f,t)}):r.when("No interim elements currently showing up.")}}function h(u){function m(e){return(e.skipCompile?null:l.compile(e))||r(function(t){t({locals:{},link:function(){return e.element}})})}function p(e,n){t.extend(e.locals,n);var r=e.link(n.scope);return n.element=r,n.parent=h(r,n),n.themable&&d(r),r}function h(n,r){var i=r.parent;if(!((i=t.isFunction(i)?i(r.scope,n,r):t.isString(i)?t.element(e[0].querySelector(i)):t.element(i))||{}).length){var o;return a[0]&&a[0].querySelector&&(o=a[0].querySelector(":not(svg) > body")),o||(o=a[0]),"#comment"==o.nodeName&&(o=e[0].body),t.element(o)}return i}function g(){var e,r=t.noop;u.hideDelay&&(e=o(f.hide,u.hideDelay),r=function(){o.cancel(e)}),u.cancelAutoHide=function(){r(),u.cancelAutoHide=n}}function v(e,n,i){var o=n.onShowing||t.noop,a=n.onComplete||t.noop;try{o(n.scope,e,n,i)}catch(e){return r.reject(e)}return r(function(t,o){try{r.when(n.onShow(n.scope,e,n,i)).then(function(){a(n.scope,e,n),g(),t(e)},o)}catch(e){o(e.message)}})}function $(e,n){var i=n.onRemoving||t.noop;return r(function(t,o){try{var a=r.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)},o)}catch(e){o(e.message)}})}var b,y,E=r.when(!0);return u=function(e){return(e=e||{}).template&&(e.template=c.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)||r.when()}},e)}(u),b={options:u,deferred:r.defer(),show:function(){return r(function(e,t){function n(e){b.deferred.reject(e),t(e)}u.onCompiling&&u.onCompiling(u),m(u).then(function(t){y=p(t,u),u.cleanupElement=t.cleanup,E=v(y,u,t.controller).then(e,n)}).catch(n)})},remove:function(e,n,i){function o(e){b.deferred.resolve(e)}function a(e){b.deferred.reject(e)}return y?((u=t.extend(u||{},i||{})).cancelAutoHide&&u.cancelAutoHide(),u.element.triggerHandler("$mdInterimElementRemove"),!0===u.$destroy?$(u.element,u).then(function(){n&&a(e)||o(e)}):(r.when(E).finally(function(){$(u.element,u).then(function(){n?a(e):o(e)},a)}),b.deferred.promise)):r.when(!1)}}}var f,g=!1,v=[],$=[],b=[];return f={show:function(e){var t=new h((e=e||{})||{}),n=e.multiple?r.resolve():r.all(v);e.multiple||(n=n.then(function(){var e=$.concat(b.map(f.cancel));return r.all(e)}));var i=n.then(function(){return t.show().catch(function(e){return e}).finally(function(){v.splice(v.indexOf(i),1),b.push(t)})});return v.push(i),t.deferred.promise.catch(function(e){return e instanceof Error&&m(e),e}),t.deferred.promise},hide:p(function(e,t){function i(n){var r=n.remove(e,!1,t||{}).catch(function(e){return e}).finally(function(){$.splice($.indexOf(r),1)});return b.splice(b.indexOf(n),1),$.push(r),n.deferred.promise}return(t=t||{}).closeAll?r.all(b.slice().reverse().map(i)):t.closeTo!==n?r.all(b.slice(t.closeTo).map(i)):i(b[b.length-1])}),cancel:p(function(e,n){var i=b.pop();if(!i)return r.when(e);var o=i.remove(e,!0,n||{}).catch(function(e){return e}).finally(function(){$.splice($.indexOf(o),1)});return $.push(o),i.deferred.promise.catch(t.noop)}),destroy:function(e){var n=e?null:b.shift(),i=t.element(e).length&&t.element(e)[0].parentNode;if(i){var o=b.filter(function(e){return e.options.element[0]===i});o.length&&(n=o[0],b.splice(b.indexOf(n),1))}return n?n.remove(g,!1,{$destroy:!0}):r.when(g)},$injector_:u}}}return r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=r,e})}(),function(){function e(){var e=!!document.querySelector("[md-layouts-disabled]");M.enabled=!e}function n(){return M.enabled=!1,{restrict:"A",priority:"900"}}function r(e){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(r){return M.enabled?(r.addClass(e),function(t,r){n(function(){r.removeClass(e)},10,!1)}):t.noop}}}]}function i(e){function n(t,n,r){var i=a(n,e),o=r.$observe(r.$normalize(e),i);i(m(e,r,"")),t.$on("$destroy",function(){o()})}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(c(e,i,r,v),l(e,m(e,i,""),d(r,e,i)),o=n),o||t.noop}}}]}function o(e){function n(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(l(e,m(e,i,""),d(r,e,i)),n(0,r),o=n),o||t.noop}}}]}function a(e,n){var r;return function(i){var o=l(n,i||"");t.isDefined(o)&&(r&&e.removeClass(r),r=o?n+"-"+o.trim().replace(b,"-"):n,e.addClass(r))}}function s(e){var n=e.split("-");return["$log",function(r){return r.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-` variant."),t.noop}]}function c(e,t,n,r){var i,o,a,s=n[0].nodeName.toLowerCase();switch(e.replace($,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(o="<"+s+" "+e+">",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.",r.warn(f.supplant(i,[o,a])))}}function l(e,n,r){if(!u(n)){switch(e.replace($,"")){case"layout":p(n,E)||(n=E[0]);break;case"flex":p(n,y)||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&&(r||t.noop)(n)}return n?n.trim():""}function d(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 r=t.$normalize(e);return t[r]?t[r].trim().replace(b,"-"):n||null}function p(e,t,n){var r=!1;return(e=n&&e?e.replace(b,n):e)&&t.forEach(function(t){t=n?t.replace(b,n):t,r=r||t===e}),r}function h(e){var t,n={main:"start",cross:"stretch"};return 0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),(t=e.toLowerCase().trim().replace(b,"-").split("-")).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"),w.indexOf(n.cross)<0&&(n.cross="stretch"),n}var f,g,v,$=/(-gt)?-(sm|md|lg|print)/g,b=/\s+/g,y=["grow","initial","auto","none","noshrink","nogrow"],E=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],w=["","start","center","end","stretch"],M={enabled:!0,breakpoints:[]};!function(a){function d(e){return e.replace(u,"").replace(m,function(e,t,n,r){return r?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(d(n),i(n))}),t.forEach(f,function(t){var n=e?t+"-"+e:t;a.directive(d(n),o(n))})}),a.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:l,validateAttributeUsage:c,disableLayouts:function(e){M.enabled=!0!==e}}}).directive("mdLayoutCss",n).directive("ngCloak",r("ng-cloak")).directive("layoutWrap",o("layout-wrap")).directive("layoutNowrap",o("layout-nowrap")).directive("layoutNoWrap",o("layout-no-wrap")).directive("layoutFill",o("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}}(),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)}var n=t.element(document.head),r={},i={setMeta:function(i,o){if(e(i),r[i])r[i].attr("content",o);else{var a=t.element('');n.append(a),r[i]=a}return function(){r[i].attr("content",""),r[i].remove(),delete r[i]}},getMeta:function(t){if(!e(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return r[t].attr("content")}};return t.extend({},i,{$get:function(){return i}})}),function(){function e(e,r){function i(e){return e&&""!==e}var o,a=[],s={};return o={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,r;for(t=0,n=a.length;t
');return this.$element.append(e),e},n.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},n.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},n.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},n.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var r=this,i=r.$mdColorUtil,o=t.element('
'),a=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(a-e),e),l=2*Math.max(Math.abs(s-n),n),d=function(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}(this.options.fitRipple,c,l),u=this.calculateColor();o.css({left:e+"px",top:n+"px",background:"black",width:d+"px",height:d+"px",backgroundColor:i.rgbaToRgb(u),borderColor:i.rgbaToRgb(u)}),this.lastRipple=o,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(o)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:u}),this.container.append(o),this.ripples.push(o),o.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){o.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},n.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},n.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))},n.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(e){return{attach:function(n,r,i){return e.attach(n,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}(),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(e){function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}function r(t,r){function i(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 o(t,n){if(p[t])return p[t];var r="string"==typeof(n=n||"default")?p[n]:n,i=new s(t);return r&&e.forEach(r.colors,function(t,n){i.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),p[t]=i,i}function s(t){function n(t){if((t=0===arguments.length||!!t)!==r.isDark){r.isDark=t,r.foregroundPalette=r.isDark?f:h,r.foregroundShadow=r.isDark?g:v;var n=r.isDark?M:w,i=r.isDark?w:M;return e.forEach(n,function(e,t){var n=r.colors[t],o=i[t];if(n)for(var a in n.hues)n.hues[a]===o[a]&&(n.hues[a]=e[a])}),r}}var r=this;r.name=t,r.colors={},r.dark=n,n(!1),E.forEach(function(t){var n=(r.isDark?M:w)[t];r[t+"Palette"]=function(i,o){var a=r.colors[t]={name:i,hues:e.extend({},n,o)};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",r.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",r.name).replace("%3",t).replace("%4",i).replace("%5",A.join(", ")))}),r},r[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+t+"Color() has been deprecated. Use $mdThemingProviderTheme."+t+"Palette() instead."),r[t+"Palette"].apply(r,e)}})}function l(t,r,i,a){function s(e){return e===n||""===e||l.THEMES[e]!==n}var l=function(e,r){r===n&&(r=e,e=n),e===n&&(e=t),l.inherit(r,r)};return Object.defineProperty(l,"THEMES",{get:function(){return e.extend({},p)}}),Object.defineProperty(l,"PALETTES",{get:function(){return e.extend({},m)}}),Object.defineProperty(l,"ALWAYS_WATCH",{get:function(){return $}}),l.inherit=function(e,t){function n(t){if(t){s(t)||a.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(i&&i.$mdTheme||("default"==b?"":b)),i)var o=$||i.$shouldWatch||r.parseAttributeBoolean(e.attr("md-theme-watch")),c=i.registerChanges(function(t){n(t),o?e.on("$destroy",c):c()})},l.registered=s,l.defaultTheme=function(){return b},l.generateTheme=function(e){c(p[e],e,x.nonce)},l.defineTheme=function(e,t){t=t||{};var n=o(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)},l.setBrowserColor=C,l}l.$inject=["$rootScope","$mdUtil","$q","$log"],m={};var d,p={},$=!1,b="default";e.extend(m,t);var y=function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}},C=function(t){var n=(t=e.isObject(t)?t:{}).theme||"default",r=t.hue||"800",i=m[t.palette]||m[p[n].colors[t.palette||"primary"].name],o=e.isObject(i[r])?i[r].hex:i[r];return y(o)};return d={definePalette:function(e,t){return t=t||{},m[e]=i(e,t),d},extendPalette:function(t,n){return i(t,e.extend({},m[t]||{},n))},theme:o,configuration:function(){return e.extend({},x,{defaultTheme:b,alwaysWatchTheme:$,registeredStyles:[].concat(x.registeredStyles)})},disableTheming:function(t){x.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){x.registeredStyles.push(e)},setNonce:function(e){x.nonce=e},generateThemesOnDemand:function(e){x.generateOnDemand=e},setDefaultTheme:function(e){b=e},alwaysWatchTheme:function(e){$=e},enableBrowserColor:C,$get:l,_LIGHT_DEFAULT_HUES:w,_DARK_DEFAULT_HUES:M,_PALETTES:m,_THEMES:p,_parseRules:a,_rgba:u}}function i(t,n,r,i,o,a){return{priority:101,link:{pre:function(s,c,l){var d=[],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)),d.push(t),function(){var e=d.indexOf(t);e>-1&&d.splice(e,1)}},$setTheme:function(e){t.registered(e)||a.warn("attempted to use unregistered theme '"+e+"'"),g.$mdTheme=e;for(var n=d.length;n--;)d[n](e)},$shouldWatch:i.parseAttributeBoolean(c.attr("md-theme-watch"))||t.ALWAYS_WATCH||h&&!f};c.data("$mdThemeController",g);var v=function(){var e=n(l.mdTheme)(s);return r(e)(s)||e},$=function(t){if("string"==typeof t)return g.$setTheme(t);o.when(e.isFunction(t)?t():t).then(function(e){g.$setTheme(e)})};$(v());var b=s.$watch(v,function(e){e&&($(e),g.$shouldWatch||b())})}}}}function o(e){return e}function a(t,n,r){l(t,n),r=r.replace(/THEME_NAME/g,t.name);var i=[],o=t.colors[n],a=new RegExp("\\.md-"+t.name+"-theme","g"),s=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),c=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,d=m[o.name];return r=r.replace(c,function(e,n,r,i,o){return"foreground"===n?"shadow"==r?t.foregroundShadow:t.foregroundPalette[r]||t.foregroundPalette[1]:(0!==r.indexOf("hue")&&"default"!==r||(r=t.colors[n].hues[r]),u((m[t.colors[n].name][r]||"")[o?"contrast":"value"],i))}),e.forEach(o.hues,function(e,n){var o=r.replace(s,function(t,n,r,i,o){return u(d[e]["color"===i?"value":"contrast"],o)});if("default"!==n&&(o=o.replace(a,".md-"+t.name+"-theme.md-"+n)),"default"==t.name){var c=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;o=o.replace(c,function(e,t,n){return e+", "+t+n})}i.push(o)}),i}function s(t,n){var r=document.head,i=r?r.firstElementChild:null,o=!x.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(o+=x.registeredStyles.join(""),i&&0!==o.length){e.forEach(m,function(t,n){var r=t.contrastDefaultColor,i=t.contrastLightColors||[],o=t.contrastStrongLightColors||[],a=t.contrastDarkColors||[];"string"==typeof i&&(i=i.split(" ")),"string"==typeof o&&(o=o.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 c=d(n);if(!c)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:c,contrast:"light"===r?a.indexOf(s)>-1?$:o.indexOf(s)>-1?y:b:i.indexOf(s)>-1?o.indexOf(s)>-1?y:b:$}}})});var a=o.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"}),s=new RegExp("md-("+E.join("|")+")","g");E.forEach(function(e){k[e]=""}),a.forEach(function(e){e.match(s);for(var t,n=0;t=E[n];n++)if(e.indexOf(".md-"+t)>-1)return k[t]+=e;for(n=0;t=E[n];n++)if(e.indexOf(t)>-1)return k[t]+=e;return k[C]+=e}),x.generateOnDemand||e.forEach(n.THEMES,function(e){p[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||c(e,e.name,x.nonce)})}}function c(e,t,n){var r=document.head,i=r?r.firstElementChild:null;p[t]||(E.forEach(function(t){for(var o=a(e,t,k[t]);o.length;){var s=o.shift();if(s){var c=document.createElement("style");c.setAttribute("md-theme-style",""),n&&c.setAttribute("nonce",n),c.appendChild(document.createTextNode(s)),r.insertBefore(c,i)}}}),p[e.name]=!0)}function l(e,t){if(!m[(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(m).join(", ")))}function d(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,r=t.substr(0,n),i=t.substr(n,n),o=t.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),[parseInt(r,16),parseInt(i,16),parseInt(o,16)]}}function u(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"],o.$inject=["$mdTheming"],r.$inject=["$mdColorPalette","$$mdMetaProvider"],s.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",i).directive("mdThemable",o).directive("mdThemesDisabled",function(){return x.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",r).config(t).run(s);var m,p={},h={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)"},f={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)"},g="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",$=d("rgba(0,0,0,0.87)"),b=d("rgba(255,255,255,0.87)"),y=d("rgb(255,255,255)"),E=["primary","accent","warn","background"],C="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"}},M={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};E.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};w[e]||(w[e]=t),M[e]||(M[e]=t)});var A=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],x={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},k={}}(e.angular),function(){function n(n,r,i,o,a){var s;return s={translate3d:function(e,t,n,r){function i(n){return a(e,{to:n||t,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return a(e,{from:t,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(t,n){var a=3e3;return r(function(r,s){function c(e){e&&e.target!==t[0]||(e&&i.cancel(l),t.off(o.CSS.TRANSITIONEND,c),r())}(function(n){return"0s"==(n=n||e.getComputedStyle(t[0])).transitionDuration||!n.transition&&!n.transitionProperty})((n=n||{}).cachedTransitionStyles)&&(a=0);var l=i(c,n.timeout||a);t.on(o.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(e,t){var n=t.element,r=t.bounds;if(n||r){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(r),o=s.copyRect(e[0].getBoundingClientRect()),a=s.centerPointFor(o),c=s.centerPointFor(i);return{centerX:c.x-a.x,centerY:c.y-a.y,scaleX:Math.round(100*Math.min(.5,i.width/o.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/o.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(s.calculateTransformValues(e,r))},calculateSlideToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(s.calculateTransformValues(e,r))},toCss:function(e){function n(e,n,i){t.forEach(n.split(" "),function(e){r[e]=i})}var r={};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)r[i]=e+"px";else switch(i){case"transition":n(0,o.CSS.TRANSITION,e);break;case"transform":n(0,o.CSS.TRANSFORM,e);break;case"transformOrigin":n(0,o.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":r["font-size"]=e}}),r},toTransformCss:function(e,n,r){var i={};return t.forEach(o.CSS.TRANSFORM.split(" "),function(t){i[t]=e}),n&&(r=r||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=r),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,r,i){return function(o){return n(o,e,t,r,i)}}])}(),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,r=t.isDefined(document.documentElement.style.WebkitAppearance),i=r?"-webkit-":"",o=(r?"webkitTransitionEnd ":"")+"transitionend",a=(r?"webkitAnimationEnd ":"")+"animationend",s=["$document",function(e){return function(){return e[0].body.clientWidth+1}}],c=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,r){function i(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=r(),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 r(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0;n(e,function(e){e.done(r)})},i}];t.module("material.core.animate",[]).factory("$$forceReflow",s).factory("$$AnimateRunner",l).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,s,c,l,d,u,m){function p(e,t){t.addClass&&(d.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(d.removeClass(e,t.removeClass),t.removeClass=null)}function h(e){function n(e){return r?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var i=y(e),o=t.getComputedStyle(i),a=f(o[n("transitionDuration")]),s=f(o[n("animationDuration")]),c=f(o[n("transitionDelay")]),l=f(o[n("animationDelay")]);return s*=parseInt(o[n("animationIterationCount")],10)||1,{duration:Math.max(s,a),delay:Math.max(l,c),animationDuration:s,transitionDuration:a,animationDelay:l,transitionDelay:c}}function f(e){var t=0,r=(e||"").split(/\s*,\s*/);return n(r,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 g(e){C&&C(),w.push(e),C=s(function(){C=null;for(var e=l(),t=0;t0||s.transitionStyle),w=!!s.addClass||!!s.removeClass,E(r,!0));var M=f&&(C||w);$(r,s);var A,x,k=!1;return{close:t.close,start:function(){function t(){if(!k)return k=!0,A&&x&&r.off(A,x),p(r,s),v(r,s),n(l,function(t){d.style[e(t[0])]=""}),m.complete(!0),m}var m=new c;return g(function(){if(E(r,!1),!M)return t();n(l,function(t){var n=t[0],r=t[1];d.style[e(n)]=r}),p(r,s);var c=h(r);if(0===c.duration)return t();var m=[];s.easing&&(c.transitionDuration&&m.push([i+"transition-timing-function",s.easing]),c.animationDuration&&m.push([i+"animation-timing-function",s.easing])),s.delay&&c.animationDelay&&m.push([i+"animation-delay",s.delay+"s"]),s.duration&&c.animationDuration&&m.push([i+"animation-duration",s.duration+"s"]),n(m,function(t){var n=t[0],r=t[1];d.style[e(n)]=r,l.push(t)});var f=1e3*c.delay,g=c.duration,v=1e3*g,$=Date.now();A=[],c.transitionDuration&&A.push(o),c.animationDuration&&A.push(a),A=A.join(" "),x=function(e){e.stopPropagation();var n=e.originalEvent||e,r=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(r-$,0)>=f&&i>=g&&t()},r.on(A,x),b(r,s),u(t,f+1.5*v,!1)}),m}}}}])}(),t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,r,i,o,a,s,c){var l=" may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:function(d,u,m){function p(){var e=parseInt(h.height,10)+Math.abs(parseInt(h.top,10));u.css("height",e+"px")}r.pin&&r.pin(u,i);var h;s(function(){if("fixed"===(h=o.getComputedStyle(c[0].body)).position){var r=n.debounce(function(){h=o.getComputedStyle(c[0].body),p()},60,null,!1);p(),t.element(o).on("resize",r),d.$on("$destroy",function(){t.element(o).off("resize",r)})}var i=u.parent();i.length&&("BODY"===i[0].nodeName&&u.css("position","fixed"),"static"===o.getComputedStyle(i[0]).position&&a.warn(l),e.inherit(u,i))})}}}]),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,o,a,s,c,l,d){function u(e,t){function a(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(t){var r=t.pointer.distanceY;r<5&&(r=Math.max(-i,r/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(i+r)+"px,0)")}function d(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>r)){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"),o.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",c).on("$md.dragend",d),{element:e,cleanup:function(){u(),t.off("$md.dragstart",a),t.off("$md.drag",c),t.off("$md.dragend",d)}}}var m;return{themable:!0,onShow:function(r,i,l,p){(i=o.extractElementByName(i,"md-bottom-sheet")).attr("tabindex","-1"),i.hasClass("ng-cloak")&&d.warn("$mdBottomSheet: using `` will affect the bottom-sheet opening animations.",i[0]);l.disableBackdrop||((m=o.createBackdrop(r,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,l.clickOutsideToClose&&m.on("click",function(){o.nextTick(s.cancel,!0)}),a.inherit(m,l.parent),e.enter(m,l.parent,null));var h=new u(i,l.parent);return l.bottomSheet=h,a.inherit(h.element,l.parent),l.disableParentScroll&&(l.restoreScroll=o.disableScrollAround(h.element,l.parent)),e.enter(h.element,l.parent,m).then(function(){var e=o.findFocusTarget(i)||t.element(i[0].querySelector("button")||i[0].querySelector("a")||i[0].querySelector(o.prefixer("ng-click",!0)))||m;l.escapeToClose&&(l.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&o.nextTick(s.cancel,!0)},c.on("keyup",l.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(t,n,r){var i=r.bottomSheet;return r.disableBackdrop||e.leave(m),e.leave(i.element).then(function(){r.disableParentScroll&&(r.restoreScroll(),delete r.restoreScroll),i.cleanup()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var r=.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,r,i){function o(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){return o(t)?'':''},link:function(a,s,c){n(s),e.attach(a,s),r.expectWithoutText(s,"aria-label"),o(c)&&t.isDefined(c.ngDisabled)&&a.$watch(c.ngDisabled,function(e){s.attr("tabindex",e?-1:0)}),s.on("click",function(e){!0===c.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")}))}}}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,r){n.addClass("_md"),e(n)}}}e.$inject=["$mdTheming"],t.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(e,n,r,i,o,a){return e=e[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:r.BEFORE_NG_ARIA,template:'
',compile:function(s,c){return c.$set("tabindex",c.tabindex||"0"),c.$set("type","checkbox"),c.$set("role",c.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(s,c,l,d){function u(e){c[0].hasAttribute("disabled")||s.skipToggle||s.$apply(function(){var t=l.ngChecked&&l.ngClick?l.checked:!f.$viewValue;f.$setViewValue(t,e&&e.type),f.$render()})}function m(e){(p=!1!==e)&&c.attr("aria-checked","mixed"),c.toggleClass("md-indeterminate",p)}var p,h=d[0],f=d[1]||o.fakeNgModel(),g=d[2];if(h){var v=h.isErrorGetter||function(){return f.$invalid&&(f.$touched||g&&g.$submitted)};h.input=c,s.$watch(v,h.setInvalid)}i(c),c.children().on("focus",function(){c.focus()}),o.parseAttributeBoolean(l.mdIndeterminate)&&(m(),s.$watch(l.mdIndeterminate,m)),l.ngChecked&&s.$watch(s.$eval.bind(s,l.ngChecked),function(e){f.$setViewValue(e),f.$render()}),function(e,t,n){l[e]&&s.$watch(l[e],function(e){n[e]&&c.attr(t,n[e])})}("ngDisabled","tabindex",{true:"-1",false:l.tabindex}),n.expectWithText(c,"aria-label"),e.link.pre(s,{on:t.noop,0:{}},l,[f]),c.on("click",u).on("keypress",function(e){var t=e.which||e.keyCode;t!==r.KEY_CODE.SPACE&&t!==r.KEY_CODE.ENTER||(e.preventDefault(),c.addClass("md-focused"),u(e))}).on("focus",function(){"keyboard"===a.getLastInteractionType()&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")}),f.$render=function(){c.toggleClass("md-checked",!!f.$viewValue&&!p)}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),t.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function e(e,n,r){function o(t,r){r=r||!1;var i=e.PALETTES[t.palette][t.hue];return i=r?i.contrast:i.value,n.supplant("rgba({0}, {1}, {2}, {3})",[i[0],i[1],i[2],i[3]||t.opacity])}function a(e){var n={},r=e.hasOwnProperty("color");return t.forEach(e,function(e,t){var i=s(e),a=t.indexOf("background")>-1;n[t]=o(i),a&&!r&&(n.color=o(i,!0))}),n}function s(n){var r=n.split("-"),i=t.isDefined(e.THEMES[r[0]])?r.splice(0,1)[0]:e.defaultTheme();return{theme:i,palette:c(r,i),hue:l(r,i),opacity:r[2]||1}}function c(t,r){var o=t.length>1&&-1!==i.indexOf(t[1]),a=t[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(o&&(a=t[0]+"-"+t.splice(1,1)),-1===i.indexOf(a)){var s=e.THEMES[r].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 l(t,r){var i=e.THEMES[r].colors;if("hue"===t[1]){var o=parseInt(t.splice(2,1)[0],10);if(o<1||o>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:o}));if(t[1]="hue-"+o,!(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:function(e,t){try{t&&e.css(a(t))}catch(e){r.error(e.message)}},getThemeColor:function(e){return o(s(e))},hasTheme:function(n){return t.isDefined(e.THEMES[n.split("-")[0]])}}}function n(e,n,i,o){return{restrict:"A",require:["^?mdTheme"],compile:function(a,s){var c=function(){var e=s.mdColors,i=e.indexOf("::")>-1,o=!!i||r.test(s.mdColors);s.mdColors=e.replace("::","");var a=t.isDefined(s.mdColorsWatch);return!i&&!o&&(!a||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,r,a,s){var l=s[0],d={},u=function(t){"string"!=typeof t&&(t=""),a.mdColors||(a.mdColors="{}");var r=o(a.mdColors)(n);return l&&Object.keys(r).forEach(function(n){var i=r[n];e.hasTheme(i)||(r[n]=(t||l.$mdTheme)+"-"+i)}),m(r),r},m=function(e){if(!t.equals(e,d)){var n=Object.keys(d);d.background&&!n.color&&n.push("color"),n.forEach(function(e){r.css(e,"")})}d=e},p=t.noop;l&&(p=l.registerChanges(function(t){e.applyThemeColors(r,u(t))})),n.$on("$destroy",function(){p()});try{c?n.$watch(u,t.bind(this,e.applyThemeColors,r),!0):e.applyThemeColors(r,u())}catch(e){i.error(e.message)}}}}}n.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var r=/^{((\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){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(t,r){r.addClass("_md"),e(r),t.$broadcast("$mdContentLoaded",r),n(r[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)}(),t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function e(e,n,r){return{restrict:"E",link:function(i,o){o.addClass("_md"),n(o),e(function(){function e(){o.toggleClass("md-content-overflow",a.scrollHeight>a.clientHeight)}var n,a=o[0].querySelector("md-dialog-content");a&&(n=a.getElementsByTagName("img"),e(),t.element(n).on("load",e)),i.$on("$destroy",function(){r.destroy(o)})})}}}function r(e){function r(e,t){return{template:['',' ','

{{ dialog.title }}

','
','
',"

{{::dialog.mdTextContent}}

","
",' ',' '," ","
"," ",' '," {{ dialog.cancel }}"," ",' '," {{ dialog.ok }}"," "," ","
"].join("").replace(/\s\s+/g,""),controller: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)}},controllerAs:"dialog",bindToController:!0}}function i(e,r,i,s,c,l,d,u,m,p,h,f,g){function v(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var r=n&&n.controller("mdTheme");if(r){e.themeWatch=r.$shouldWatch;var i=e.theme||r.$mdTheme;i&&(e.scope.theme=i);var o=r.registerChanges(function(t){e.scope.theme=t,e.themeWatch||o()})}}function $(e){function r(e,r){var i=t.element(e||{});if(i&&i.length){var o={top:0,left:0,height:0,width:0},a=t.isFunction(i[0].getBoundingClientRect);return t.extend(r||{},{element:a?i:n,bounds:a?i[0].getBoundingClientRect():t.extend({},o,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=r(i(e.closeTo)),e.openFrom=r(i(e.openFrom)),e.targetEvent&&(e.origin=r(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType())}function b(n,r){var o=t.element(d),a=i.debounce(function(){w(n,r)},60),c=[],l=function(){var t="alert"==r.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(r.escapeToClose){var u=r.parent,m=function(e){e.keyCode===s.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),l())};n.on("keydown",m),u.on("keydown",m),c.push(function(){n.off("keydown",m),u.off("keydown",m)})}if(o.on("resize",a),c.push(function(){o.off("resize",a)}),r.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),c.push(function(){h.off("mousedown",f),h.off("mouseup",g)})}r.deactivateListeners=function(){c.forEach(function(e){e()}),r.deactivateListeners=null}}function y(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function E(e,t){var n="alert"===t.$type?"alertdialog":"dialog",s=e.find("md-dialog-content"),c=e.attr("id"),l="dialogContent_"+(c||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===s.length&&(s=e,c&&(l=c)),s.attr("id",l),e.attr("aria-describedby",l),t.ariaLabel?r.expect(e,"aria-label",t.ariaLabel):r.expectAsync(e,"aria-label",function(){var e=s.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),(o=document.createElement("div")).classList.add("md-dialog-focus-trap"),o.tabIndex=0,a=o.cloneNode(!1);var d=function(){e.focus()};o.addEventListener("focus",d),a.addEventListener("focus",d),e[0].parentNode.insertBefore(o,e[0]),e.after(a)}function C(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,i=0;i.")}function s(){r.focusOnOpen&&(i.findFocusTarget(n)||n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||c).focus()}t.element(l[0].body).addClass("md-dialog-is-showing");var c=n.find("md-dialog");c.hasClass("ng-cloak")&&m.warn("$mdDialog: using `` will affect the dialog opening animations.",n[0]);return $(r),E(c,r),y(e,n,r),b(n,r),M(n,r).then(function(){C(n,r),a(),s()})},onShowing:function(e,t,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",o=r.textContent||n.textContent||r.content||n.content||"";if(i&&!p.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&o)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");r.mdHtmlContent=i,r.mdTextContent=o}},onRemove:function(e,n,r){function i(){t.element(l[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),a&&a.parentNode&&a.parentNode.removeChild(a),r.$destroy?i():A(0,r).then(i)},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(),r=f.endSymbol();return'
'+function(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?""+(e||"")+"":e||""}(e)+"
"}}}r.$inject=["$mdDialog","$mdConstant"],i.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var o,a;return e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:i}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:r}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:r}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css"],options:r})}e.$inject=["$$rAF","$mdTheming","$mdDialog"],r.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",r)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],t.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,n){var r=t.children();e.prefixer().hasAttribute(r,"ng-repeat")?r.addClass("md-fab-action-item"):r.wrap('
')}}}e.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(e,n,r,i,o,a){function s(){S.direction=S.direction||"down",S.isOpen=S.isOpen||!1,d(),n.addClass("md-animations-waiting")}function c(){var r=["click","focusin","focusout"];t.forEach(r,function(e){n.on(e,l)}),e.$on("$destroy",function(){t.forEach(r,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 d(){S.currentActionIndex=-1}function u(){e.$watch("vm.direction",function(e,t){r.removeClass(n,"md-"+t),r.addClass(n,"md-"+e),d()});var t,i;e.$watch("vm.isOpen",function(e){d(),t&&i||(t=T(),i=_()),e?p():h();var o=e?"md-is-open":"",a=e?"":"md-is-open";t.attr("aria-haspopup",!0),t.attr("aria-expanded",e),i.attr("aria-hidden",!e),r.setClass(n,o,a)})}function m(){n[0].scrollHeight>0?r.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 o.KEY_CODE.ESCAPE:return S.close(),e.preventDefault(),!1;case o.KEY_CODE.LEFT_ARROW:return E(e),!1;case o.KEY_CODE.UP_ARROW:return C(e),!1;case o.KEY_CODE.RIGHT_ARROW:return w(e),!1;case o.KEY_CODE.DOWN_ARROW:return M(e),!1}}function v(e){b(e,-1)}function $(e){b(e,1)}function b(e,n){var r=y();S.currentActionIndex=S.currentActionIndex+n,S.currentActionIndex=Math.min(r.length-1,S.currentActionIndex),S.currentActionIndex=Math.max(0,S.currentActionIndex);var i=t.element(r[S.currentActionIndex]).children()[0];t.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function y(){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 E(e){"left"===S.direction?$(e):v(e)}function C(e){"down"===S.direction?v(e):$(e)}function w(e){"left"===S.direction?v(e):$(e)}function M(e){"up"===S.direction?v(e):$(e)}function A(e){return i.getClosest(e,"md-fab-trigger")}function x(e){return i.getClosest(e,"md-fab-actions")}function k(e){A(e.target)&&S.toggle(),x(e.target)&&S.close()}function T(){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(),c(),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 n(n){function r(e){n(e,i,!1)}function o(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),a=r.querySelector("md-fab-trigger"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(o,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=o.length-t+c}),a.style.zIndex=c+o.length+1,i.isOpen||t.forEach(o,function(e,t){var n,r,o=e.style,s=(a.clientHeight-e.clientHeight)/2,c=(a.clientWidth-e.clientWidth)/2;switch(i.direction){case"up":n=e.scrollHeight*(t+1)+s,r="Y";break;case"down":n=-(e.scrollHeight*(t+1)+s),r="Y";break;case"left":n=e.scrollWidth*(t+1)+c,r="X";break;case"right":n=-(e.scrollWidth*(t+1)+c),r="X"}var l="translate"+r+"("+n+"px)";o.transform=o.webkitTransform=l})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(o(e),r(n)):n()},removeClass:function(e,t,n){o(e),r(n)}}}function r(n){function r(e){n(e,i,!1)}function o(n){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(o,function(e,t){var n=e.style,r=t*a;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?r:o.length-r)+"ms",n.zIndex=o.length-t+c})}var a=65;return{addClass:function(e,t,n){o(e),r(n)},removeClass:function(e,t,n){o(e),r(n)}}}n.$inject=["$timeout"],r.$inject=["$timeout"];var i=300;t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('
')}}}).animation(".md-fling",n).animation(".md-scale",r).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",r)}(),function(){function n(){function n(n,r,i){if(r){var o=n[0],a=n.controller("mdFabToolbar"),s=o.querySelector(".md-fab-toolbar-background"),c=o.querySelector("md-fab-trigger button"),l=o.querySelector("md-toolbar"),d=o.querySelector("md-fab-trigger button md-icon"),u=n.find("md-fab-actions").children();if(c&&s){var m=e.getComputedStyle(c).getPropertyValue("background-color"),p=o.offsetWidth,h=(o.offsetHeight,p/c.offsetWidth*2);s.style.backgroundColor=m,s.style.borderRadius=p+"px",a.isOpen?(l.style.pointerEvents="inherit",s.style.width=c.offsetWidth+"px",s.style.height=c.offsetHeight+"px",s.style.transform="scale("+h+")",s.style.transitionDelay="0ms",d&&(d.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",d&&(d.style.transitionDelay="0ms"),t.forEach(u,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,r){n(e,t),r()},removeClass:function(e,t,r){n(e,t),r()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'
',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('
')}}}).animation(".md-fab-toolbar",n).service("mdFabToolbarAnimation",n)}(),function(){function e(e,r,i,o){return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:function(n,a,s,c){function l(e){null==e?c.invalidateLayout():o(e)&&c.invalidateLayout()}function d(e){return w+e+M}function u(e,t,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,l=A({share:s,gutterShare:c,gutter:i}),d="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:x({unit:l,offset:e.col,gutter:i}),width:k({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:x({unit:l,offset:e.col,gutter:i}),width:k({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":d.top=x({unit:a,offset:e.row,gutter:i}),d.height=k({unit:a,span:t.row,gutter:i});break;case"ratio":m=A({share:u=s/a,gutterShare:c,gutter:i}),d.paddingTop=k({unit:m,span:t.row,gutter:i}),d.marginTop=x({unit:m,offset:e.row,gutter:i});break;case"fit":var u=1/r*100,m=A({share:u,gutterShare:(r-1)/r,gutter:i});d.top=x({unit:m,offset:e.row,gutter:i}),d.height=k({unit:m,span:t.row,gutter:i})}return d}function m(e,t,n,r,i){var o={};switch(r){case"fixed":o.height=k({unit:i,span:t,gutter:n}),o.paddingBottom="";break;case"ratio":var a=A({share:1/e*100*(1/i),gutterShare:1===e?0:(e-1)/e,gutter:n});o.height="",o.paddingBottom=k({unit:a,span:t,gutter:n})}return o}function p(){return[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed})}function h(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(o.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(o.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function f(){var e=parseInt(o.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 g(){return b(o.getResponsiveAttribute(s,"md-gutter")||1)}function v(){var e=o.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch($()){case"fixed":return b(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function $(){var e=o.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 b(e){return/\D$/.test(e)?e:e+"px"}a.addClass("_md"),a.attr("role","list"),c.layoutDelegate=function(e){var r=p(),o={tileSpans:h(r),colCount:f(),rowMode:$(),rowHeight:v(),gutter:g()};if(e||!t.equals(o,C)){var s=i(o.colCount,o.tileSpans,r).map(function(e,n){return{grid:{element:a,style:m(o.colCount,n,o.gutter,o.rowMode,o.rowHeight)},tiles:e.map(function(e,i){return{element:t.element(r[i]),style:u(e.position,e.spans,o.colCount,n,o.gutter,o.rowMode,o.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),C=o}};var y=t.bind(c,c.invalidateLayout),E=function(){for(var e in r.MEDIA)o(e),o.getQuery(r.MEDIA[e]).addListener(y);return o.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,l)}();n.$on("$destroy",function(){c.layoutDelegate=t.noop,E();for(var e in r.MEDIA)o.getQuery(r.MEDIA[e]).removeListener(y)});var C,w=e.startSymbol(),M=e.endSymbol(),A=e(d("share")+"% - ("+d("gutter")+" * "+d("gutterShare")+")"),x=e("calc(("+d("unit")+" + "+d("gutter")+") * "+d("offset")+")"),k=e("calc(("+d("unit")+") * "+d("span")+" + ("+d("span")+" - 1) * "+d("gutter")+")")}}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function r(e){function n(t,n){var r,a,s,c,l,d;return c=e.time(function(){a=i(t,n)}),r={layoutInfo:function(){return a},map:function(t){return l=e.time(function(){var e=r.layoutInfo();s=t(e.positioning,e.rowCount)}),r},reflow:function(t){return d=e.time(function(){(t||o)(s.grid,s.tiles)}),r},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:d,totalTime:c+l+d}}}}function r(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,d=0;d-l=e?r():-1!==(l=c.indexOf(0,a))&&-1!==(d=o(l+1))?a=d+1:(l=d=0,r());return i(l,t.col,t.row),a=l+t.col,{col:l,row:s}}function r(){a=0,s++,i(0,e,-1)}function i(e,t,n){for(var r=e;r",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(n,r,i,o){r.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,t.bind(o,o.invalidateLayout));o.invalidateTiles(),n.$on("$destroy",function(){r[0].$$mdDestroyed=!0,a(),o.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function o(){return{template:"
",transclude:!0}}n.$inject=["$mdUtil"],r.$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",o).directive("mdGridTileHeader",o).factory("$mdGridLayout",r),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}}}}(),t.module("material.components.icon",["material.core"]),function(){function n(e,t){function n(e,n,r,i){var o=this;o.isErrorGetter=r.mdIsError&&t(r.mdIsError),o.delegateClick=function(){o.input.focus()},o.element=n,o.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},o.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},o.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},o.setInvalid=function(e){e?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},e.$watch(function(){return o.label&&o.input},function(e){e&&!o.label.attr("for")&&o.label.attr("for",o.input.attr("id"))})}n.$inject=["$scope","$element","$attrs","$animate"];var r=["INPUT","TEXTAREA","SELECT","MD-SELECT"],i=r.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),o=r.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(t){var n=t[0].querySelector(i),r=t[0].querySelector(o);return n&&t.addClass("md-icon-left"),r&&t.addClass("md-icon-right"),function(t,n){e(n)}},controller:n}}function r(e,n,r,i,o){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(a,s,c,l){function d(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(c.readonly),v=e.parseAttributeBoolean(c.mdNoAsterisk),$=s[0].tagName.toLowerCase();if(m)if("hidden"!==c.type){if(m.input){if(m.input[0].contains(s[0]))return;throw new Error(" can only have *one* ,