text: !function(a,b,c){"use strict";function d(a,b,c){if(!a)throw X("areq",b||"?",c||"required");return a}function e(a,b){return a||b?a?b?(N(a)&&(a=a.join(" ")),N(b)&&(b=b.join(" ")),a+" "+b):a:b:""}function f(a){var b={};return a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from),b}function g(a,b,c){var d="";return a=N(a)?a:a&&O(a)&&a.length?a.split(/\s+/):[],M(a,function(a,e){a&&0<a.length&&(d+=e>0?" ":"",d+=c?b+a:a+b)}),d}function h(a){if(a instanceof L)switch(a.length){case 0:return[];case 1:if(1===a[0].nodeType)return a;break;default:return L(i(a))}return 1===a.nodeType?L(a):void 0}function i(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1==c.nodeType)return c}}function j(a,b,c){M(b,function(b){a.addClass(b,c)})}function k(a,b,c){M(b,function(b){a.removeClass(b,c)})}function l(a){return function(b,c){c.addClass&&(j(a,b,c.addClass),c.addClass=null),c.removeClass&&(k(a,b,c.removeClass),c.removeClass=null)}}function m(a){if(a=a||{},!a.$$prepared){var b=a.domOperation||I;a.domOperation=function(){a.$$domOperationFired=!0,b(),b=I},a.$$prepared=!0}return a}function n(a,b){o(a,b),p(a,b)}function o(a,b){b.from&&(a.css(b.from),b.from=null)}function p(a,b){b.to&&(a.css(b.to),b.to=null)}function q(a,b,c){var d=(b.addClass||"")+" "+(c.addClass||""),e=(b.removeClass||"")+" "+(c.removeClass||"");return a=r(a.attr("class"),d,e),c.preparationClasses&&(b.preparationClasses=x(c.preparationClasses,b.preparationClasses),delete c.preparationClasses),d=b.domOperation!==I?b.domOperation:null,K(b,c),d&&(b.domOperation=d),b.addClass=a.addClass?a.addClass:null,b.removeClass=a.removeClass?a.removeClass:null,b}function r(a,b,c){function d(a){O(a)&&(a=a.split(" "));var b={};return M(a,function(a){a.length&&(b[a]=!0)}),b}var e={};a=d(a),b=d(b),M(b,function(a,b){e[b]=1}),c=d(c),M(c,function(a,b){e[b]=1===e[b]?null:-1});var f={addClass:"",removeClass:""};return M(e,function(b,c){var d,e;1===b?(d="addClass",e=!a[c]):-1===b&&(d="removeClass",e=a[c]),e&&(f[d].length&&(f[d]+=" "),f[d]+=c)}),f}function s(a){return a instanceof b.element?a[0]:a}function t(a,b,c){var d="";b&&(d=g(b,"ng-",!0)),c.addClass&&(d=x(d,g(c.addClass,"-add"))),c.removeClass&&(d=x(d,g(c.removeClass,"-remove"))),d.length&&(c.preparationClasses=d,a.addClass(d))}function u(a,b){var c=b?"-"+b+"s":"";return w(a,[W,c]),[W,c]}function v(a,b){var c=b?"paused":"",d=G+"PlayState";return w(a,[d,c]),[d,c]}function w(a,b){a.style[b[0]]=b[1]}function x(a,b){return a?b?a+" "+b:a:b}function y(a,b,c){var d=Object.create(null),e=a.getComputedStyle(b)||{};return M(c,function(a,b){var c=e[a];if(c){var f=c.charAt(0);("-"===f||"+"===f||f>=0)&&(c=z(c)),0===c&&(c=null),d[b]=c}}),d}function z(a){var b=0;return a=a.split(/\s*,\s*/),M(a,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1)),a=parseFloat(a)||0,b=b?Math.max(a,b):a}),b}function A(a){return 0===a||null!=a}function B(a,b){var c=E,d=a+"s";return b?c+="Duration":d+=" linear all",[c,d]}function C(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function D(a,b,c){M(c,function(c){a[c]=R(a[c])?a[c]:b.style.getPropertyValue(c)})}var E,F,G,H,I=b.noop,J=b.copy,K=b.extend,L=b.element,M=b.forEach,N=b.isArray,O=b.isString,P=b.isObject,Q=b.isUndefined,R=b.isDefined,S=b.isFunction,T=b.isElement;Q(a.ontransitionend)&&R(a.onwebkittransitionend)?(E="WebkitTransition",F="webkitTransitionEnd transitionend"):(E="transition",F="transitionend"),Q(a.onanimationend)&&R(a.onwebkitanimationend)?(G="WebkitAnimation",H="webkitAnimationEnd animationend"):(G="animation",H="animationend");var U=G+"Delay",V=G+"Duration",W=E+"Delay";a=E+"Duration";var X=b.$$minErr("ng"),Y={transitionDuration:a,transitionDelay:W,transitionProperty:E+"Property",animationDuration:V,animationDelay:U,animationIterationCount:G+"IterationCount"},Z={transitionDuration:a,transitionDelay:W,animationDuration:V,animationDelay:U};b.module("ngAnimate",[]).directive("ngAnimateChildren",[function(){return function(a,c,d){a=d.ngAnimateChildren,b.isString(a)&&0===a.length?c.data("$$ngAnimateChildren",!0):d.$observe("ngAnimateChildren",function(a){c.data("$$ngAnimateChildren","on"===a||"true"===a)})}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a),c()}function c(){if(d.length){for(var b=d.shift(),f=0;f<b.length;f++)b[f]();e||a(function(){e||c()})}}var d,e;return d=b.queue=[],b.waitUntilQuiet=function(b){e&&e(),e=a(function(){e=null,b(),c()})},b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);return M(a,function(a){b[a]=!0}),b}function c(a,c){if(a&&c){var d=b(c);return a.split(" ").some(function(a){return d[a]})}}function e(a,b,c,d){return g[a].some(function(a){return a(b,c,d)})}function f(a,b){a=a||{};var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(a,b,c){return!b.structural&&f(b.options)}),g.skip.push(function(a,b,c){return!b.structural&&!f(b.options)}),g.skip.push(function(a,b,c){return"leave"==c.event&&b.structural}),g.skip.push(function(a,b,c){return c.structural&&2===c.state&&!b.structural}),g.cancel.push(function(a,b,c){return c.structural&&b.structural}),g.cancel.push(function(a,b,c){return 2===c.state&&b.structural}),g.cancel.push(function(a,b,d){a=b.options.addClass,b=b.options.removeClass;var e=d.options.addClass;return d=d.options.removeClass,Q(a)&&Q(b)||Q(e)&&Q(d)?!1:c(a,d)||c(b,e)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(b,c,g,j,k,o,p,r,u,v){function w(){var a=!1;return function(b){a?b():c.$$postDigest(function(){a=!0,b()})}}function x(a,b,c){var d=s(b),e=s(a),f=[];return(a=I[c])&&M(a,function(a){W.call(a.node,d)?f.push(a.callback):"leave"===c&&W.call(a.node,e)&&f.push(a.callback)}),f}function y(a,d,g){function i(c,d,e,f){y(function(){var c=x(r,a,d);c.length&&b(function(){M(c,function(b){b(a,e,f)})})}),c.progress(d,e,f)}function k(b){var c=a,d=u;d.preparationClasses&&(c.removeClass(d.preparationClasses),d.preparationClasses=null),d.activeClasses&&(c.removeClass(d.activeClasses),d.activeClasses=null),V(a,u),n(a,u),u.domOperation(),v.complete(!b)}var l,r,u=J(g);(a=h(a))&&(l=s(a),r=a.parent());var u=m(u),v=new p,y=w();if(N(u.addClass)&&(u.addClass=u.addClass.join(" ")),u.addClass&&!O(u.addClass)&&(u.addClass=null),N(u.removeClass)&&(u.removeClass=u.removeClass.join(" ")),u.removeClass&&!O(u.removeClass)&&(u.removeClass=null),u.from&&!P(u.from)&&(u.from=null),u.to&&!P(u.to)&&(u.to=null),!l)return k(),v;if(g=[l.className,u.addClass,u.removeClass].join(" "),!U(g))return k(),v;var B=0<=["enter","move","leave"].indexOf(d),H=!G||j[0].hidden||F.get(l);g=!H&&E.get(l)||{};var I=!!g.state;if(H||I&&1==g.state||(H=!C(a,r,d)),H)return k(),v;if(B&&z(a),H={structural:B,element:a,event:d,close:k,options:u,runner:v},I){if(e("skip",a,H,g))return 2===g.state?(k(),v):(q(a,g.options,u),g.runner);if(e("cancel",a,H,g))if(2===g.state)g.runner.end();else{if(!g.structural)return q(a,g.options,H.options),g.runner;g.close()}else if(e("join",a,H,g)){if(2!==g.state)return t(a,B?d:null,u),d=H.event=g.event,u=q(a,g.options,H.options),g.runner;q(a,u,{})}}else q(a,u,{});if((I=H.structural)||(I="animate"===H.event&&0<Object.keys(H.options.to||{}).length||f(H.options)),!I)return k(),A(a),v;var K=(g.counter||0)+1;return H.counter=K,D(a,1,H),c.$$postDigest(function(){var b=E.get(l),c=!b,b=b||{},e=0<(a.parent()||[]).length&&("animate"===b.event||b.structural||f(b.options));c||b.counter!==K||!e?(c&&(V(a,u),n(a,u)),(c||B&&b.event!==d)&&(u.domOperation(),v.end()),e||A(a)):(d=!b.structural&&f(b.options,!0)?"setClass":b.event,D(a,2),b=o(a,d,b.options),b.done(function(b){k(!b),(b=E.get(l))&&b.counter===K&&A(s(a)),i(v,d,"close",{})}),v.setHost(b),i(v,d,"start",{}))}),v}function z(a){a=s(a).querySelectorAll("[data-ng-animate]"),M(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate")),c=E.get(a);if(c)switch(b){case 2:c.runner.end();case 1:E.remove(a)}})}function A(a){a=s(a),a.removeAttribute("data-ng-animate"),E.remove(a)}function B(a,b){return s(a)===s(b)}function C(a,b,c){c=L(j[0].body);var d,e=B(a,c)||"HTML"===a[0].nodeName,f=B(a,g),h=!1,i=F.get(s(a));for((a=a.data("$ngAnimatePin"))&&(b=a);b&&b.length;){f||(f=B(b,g));var k=b[0];if(1!==k.nodeType)break;if(a=E.get(k)||{},!h){if(k=F.get(k),!0===k&&!1!==i){i=!0;break}!1===k&&(i=!1),h=a.structural}if((Q(d)||!0===d)&&(a=b.data("$$ngAnimateChildren"),R(a)&&(d=a)),h&&!1===d)break;if(e||(e=B(b,c)),e&&f)break;b=f||!(a=b.data("$ngAnimatePin"))?b.parent():a}return(!h||d)&&!0!==i&&f&&e}function D(a,b,c){c=c||{},c.state=b,a=s(a),a.setAttribute("data-ng-animate",b),c=(b=E.get(a))?K(b,c):c,E.put(a,c)}var E=new k,F=new k,G=null,H=c.$watch(function(){return 0===r.totalPendingRequests},function(a){a&&(H(),c.$$postDigest(function(){c.$$postDigest(function(){null===G&&(G=!0)})}))}),I={},S=a.classNameFilter(),U=S?function(a){return S.test(a)}:function(){return!0},V=l(u),W=Node.prototype.contains||function(a){return this===a||!!(16&this.compareDocumentPosition(a))};return{on:function(a,b,c){b=i(b),I[a]=I[a]||[],I[a].push({node:b,callback:c})},off:function(a,b,c){function d(a,b,c){var d=i(b);return a.filter(function(a){return!(a.node===d&&(!c||a.callback===c))})}var e=I[a];e&&(I[a]=1===arguments.length?null:d(e,b,c))},pin:function(a,b){d(T(a),"element","not an element"),d(T(b),"parentElement","not an element"),a.data("$ngAnimatePin",b)},push:function(a,b,c,d){return c=c||{},c.domOperation=d,y(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!G;else if(T(a)){var d=s(a),e=F.get(d);1===c?b=!e:F.put(d,!b)}else b=G=!!a;return b}}}]}]).provider("$$animation",["$animateProvider",function(a){function b(a){return a.data("$$animationRunner")}var c=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,d,f,g,h,i){function j(a){function b(a){if(a.processed)return a;a.processed=!0;var c=a.domNode,f=c.parentNode;e.put(c,a);for(var g;f;){if(g=e.get(f)){g.processed||(g=b(g));break}f=f.parentNode}return(g||d).children.push(a),a}var c,d={children:[]},e=new h;for(c=0;c<a.length;c++){var f=a[c];e.put(f.domNode,a[c]={domNode:f.domNode,fn:f.fn,children:[]})}for(c=0;c<a.length;c++)b(a[c]);return function(a){var b,c=[],d=[];for(b=0;b<a.children.length;b++)d.push(a.children[b]);a=d.length;var e=0,f=[];for(b=0;b<d.length;b++){var g=d[b];0>=a&&(a=e,e=0,c.push(f),f=[]),f.push(g.fn),g.children.forEach(function(a){e++,d.push(a)}),a--}return f.length&&c.push(f),c}(d)}var k=[],o=l(a);return function(h,l,p){function q(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];return M(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)}),b}function r(a){var b=[],c={};M(a,function(a,d){var e=s(a.element),f=0<=["enter","move"].indexOf(a.event),e=a.structural?q(e):[];if(e.length){var g=f?"to":"from";M(e,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{},c[b][g]={animationID:d,element:L(a)}})}else b.push(a)});var d={},e={};return M(c,function(c,f){var g=c.from,h=c.to;if(g&&h){var i=a[g.animationID],j=a[h.animationID],k=g.animationID.toString();if(!e[k]){var l=e[k]={structural:!0,beforeStart:function(){i.beforeStart(),j.beforeStart()},close:function(){i.close(),j.close()},classes:t(i.classes,j.classes),from:i,to:j,anchors:[]};l.classes.length?b.push(l):(b.push(i),b.push(j))}e[k].anchors.push({out:g.element,"in":h.element})}else g=g?g.animationID:h.animationID,h=g.toString(),d[h]||(d[h]=!0,b.push(a[g]))}),b}function t(a,b){a=a.split(" "),b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var e=a[d];if("ng-"!==e.substring(0,3))for(var f=0;f<b.length;f++)if(e===b[f]){c.push(e);break}}return c.join(" ")}function u(a){for(var b=c.length-1;b>=0;b--){var d=c[b];if(f.has(d)&&(d=f.get(d)(a)))return d}}function v(a,c){a.from&&a.to?(b(a.from.element).setHost(c),b(a.to.element).setHost(c)):b(a.element).setHost(c)}function w(){var a=b(h);!a||"leave"===l&&p.$$domOperationFired||a.end()}function x(b){h.off("$destroy",w),h.removeData("$$animationRunner"),o(h,p),n(h,p),p.domOperation(),B&&a.removeClass(h,B),h.removeClass("ng-animate"),z.complete(!b)}p=m(p);var y=0<=["enter","move","leave"].indexOf(l),z=new g({end:function(){x()},cancel:function(){x(!0)}});if(!c.length)return x(),z;h.data("$$animationRunner",z);var A=e(h.attr("class"),e(p.addClass,p.removeClass)),B=p.tempClasses;return B&&(A+=" "+B,p.tempClasses=null),k.push({element:h,classes:A,event:l,structural:y,options:p,beforeStart:function(){h.addClass("ng-animate"),B&&a.addClass(h,B)},close:x}),h.on("$destroy",w),1<k.length?z:(d.$$postDigest(function(){var a=[];M(k,function(c){b(c.element)?a.push(c):c.close()}),k.length=0;var c=r(a),d=[];M(c,function(a){d.push({domNode:s(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var c,d=a.close;if(b(a.anchors?a.from.element||a.to.element:a.element)){var e=u(a);e&&(c=e.start)}c?(c=c(),c.done(function(a){d(!a)}),v(a,c)):d()}})}),i(j(d))}),z)}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=C(),c=C();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,d,e,h,i,j,k,q){function r(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++K))+"-"+a.getAttribute("class")+"-"+b}function t(e,f,h,i){var j;return 0<b.count(h)&&(j=c.get(h),j||(f=g(f,"-stagger"),d.addClass(e,f),j=y(a,e,i),j.animationDuration=Math.max(j.animationDuration,0),j.transitionDuration=Math.max(j.transitionDuration,0),d.removeClass(e,f),c.put(h,j))),j||{}}function x(a){L.push(a),k.waitUntilQuiet(function(){b.flush(),c.flush();for(var a=i(),d=0;d<L.length;d++)L[d](a);L.length=0})}function z(c,d,e){return d=b.get(e),d||(d=y(a,c,Y),"infinite"===d.animationIterationCount&&(d.animationIterationCount=1)),b.put(e,d),c=d,e=c.animationDelay,d=c.transitionDelay,c.maxDelay=e&&d?Math.max(e,d):e||d,c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration),c}var C=l(d),K=0,L=[];return function(a,c){function i(){l()}function k(){l(!0)}function l(b){S||X&&T||(S=!0,T=!1,P.$$skipPreparationClasses||d.removeClass(a,la),d.removeClass(a,na),v(R,!1),u(R,!1),M(ea,function(a){R.style[a[0]]=""}),C(a,P),n(a,P),Object.keys(Q).length&&M(Q,function(a,b){a?R.style.setProperty(b,a):R.style.removeProperty(b)}),P.onDone&&P.onDone(),ha&&ha.length&&a.off(ha.join(" "),L),Y&&Y.complete(!b))}function y(a){ta.blockTransition&&u(R,a),ta.blockKeyframeAnimation&&v(R,!!a)}function K(){return Y=new e({end:i,cancel:k}),x(I),l(),{$$willAnimate:!1,start:function(){return Y},end:i}}function L(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||Date.now(),b=parseFloat(b.elapsedTime.toFixed(3)),Math.max(a-da,0)>=aa&&b>=ba&&(X=!0,l())}function O(){function b(){if(!S){if(y(!1),M(ea,function(a){R.style[a[0]]=a[1]}),C(a,P),d.addClass(a,na),ta.recalculateTimingStyles){if(ma=R.className+" "+la,oa=r(R,ma),ra=z(R,ma,oa),sa=ra.maxDelay,_=Math.max(sa,0),ba=ra.maxDuration,0===ba)return void l();ta.hasTransitions=0<ra.transitionDuration,ta.hasAnimations=0<ra.animationDuration}if(ta.applyAnimationDelay&&(sa="boolean"!=typeof P.delay&&A(P.delay)?parseFloat(P.delay):sa,_=Math.max(sa,0),ra.animationDelay=sa,ua=[U,sa+"s"],ea.push(ua),R.style[ua[0]]=ua[1]),aa=1e3*_,ca=1e3*ba,P.easing){var b,e=P.easing;ta.hasTransitions&&(b=E+"TimingFunction",ea.push([b,e]),R.style[b]=e),ta.hasAnimations&&(b=G+"TimingFunction",ea.push([b,e]),R.style[b]=e)}ra.transitionDuration&&ha.push(F),ra.animationDuration&&ha.push(H),da=Date.now();var f=aa+1.5*ca;b=da+f;var e=a.data("$$animateCss")||[],g=!0;if(e.length){var i=e[0];(g=b>i.expectedEndTime)?h.cancel(i.timer):e.push(l)}g&&(f=h(c,f,!1),e[0]={timer:f,expectedEndTime:b},e.push(l),a.data("$$animateCss",e)),ha.length&&a.on(ha.join(" "),L),P.to&&(P.cleanupStyles&&D(Q,R,Object.keys(P.to)),p(a,P))}}function c(){var b=a.data("$$animateCss");if(b){for(var c=1;c<b.length;c++)b[c]();a.removeData("$$animateCss")}}if(!S)if(R.parentNode){var e=function(a){if(X)T&&a&&(T=!1,l());else if(T=!a,ra.animationDuration)if(a=v(R,T),T)ea.push(a);else{var b=ea,c=b.indexOf(a);a>=0&&b.splice(c,1)}},f=qa>0&&(ra.transitionDuration&&0===pa.transitionDuration||ra.animationDuration&&0===pa.animationDuration)&&Math.max(pa.animationDelay,pa.transitionDelay);f?h(b,Math.floor(f*qa*1e3),!1):b(),$.resume=function(){e(!0)},$.pause=function(){e(!1)}}else l()}var P=c||{};P.$$prepared||(P=m(J(P)));var Q={},R=s(a);if(!R||!R.parentNode||!q.enabled())return K();var S,T,X,Y,$,_,aa,ba,ca,da,ea=[],fa=a.attr("class"),ga=f(P),ha=[];if(0===P.duration||!j.animations&&!j.transitions)return K();var ia=P.event&&N(P.event)?P.event.join(" "):P.event,ja="",ka="";ia&&P.structural?ja=g(ia,"ng-",!0):ia&&(ja=ia),P.addClass&&(ka+=g(P.addClass,"-add")),P.removeClass&&(ka.length&&(ka+=" "),ka+=g(P.removeClass,"-remove")),P.applyClassesEarly&&ka.length&&C(a,P);var la=[ja,ka].join(" ").trim(),ma=fa+" "+la,na=g(la,"-active"),fa=ga.to&&0<Object.keys(ga.to).length;if(!(0<(P.keyframeStyle||"").length||fa||la))return K();var oa,pa;0<P.stagger?(ga=parseFloat(P.stagger),pa={transitionDelay:ga,animationDelay:ga,transitionDuration:0,animationDuration:0}):(oa=r(R,ma),pa=t(R,la,oa,Z)),P.$$skipPreparationClasses||d.addClass(a,la),P.transitionStyle&&(ga=[E,P.transitionStyle],w(R,ga),ea.push(ga)),0<=P.duration&&(ga=0<R.style[E].length,ga=B(P.duration,ga),w(R,ga),ea.push(ga)),P.keyframeStyle&&(ga=[G,P.keyframeStyle],w(R,ga),ea.push(ga));var qa=pa?0<=P.staggerIndex?P.staggerIndex:b.count(oa):0;(ia=0===qa)&&!P.skipBlocking&&u(R,9999);var ra=z(R,ma,oa),sa=ra.maxDelay;_=Math.max(sa,0),ba=ra.maxDuration;var ta={};if(ta.hasTransitions=0<ra.transitionDuration,ta.hasAnimations=0<ra.animationDuration,ta.hasTransitionAll=ta.hasTransitions&&"all"==ra.transitionProperty,ta.applyTransitionDuration=fa&&(ta.hasTransitions&&!ta.hasTransitionAll||ta.hasAnimations&&!ta.hasTransitions),ta.applyAnimationDuration=P.duration&&ta.hasAnimations,ta.applyTransitionDelay=A(P.delay)&&(ta.applyTransitionDuration||ta.hasTransitions),ta.applyAnimationDelay=A(P.delay)&&ta.hasAnimations,ta.recalculateTimingStyles=0<ka.length,(ta.applyTransitionDuration||ta.applyAnimationDuration)&&(ba=P.duration?parseFloat(P.duration):ba,ta.applyTransitionDuration&&(ta.hasTransitions=!0,ra.transitionDuration=ba,ga=0<R.style[E+"Property"].length,ea.push(B(ba,ga))),ta.applyAnimationDuration&&(ta.hasAnimations=!0,ra.animationDuration=ba,ea.push([V,ba+"s"]))),0===ba&&!ta.recalculateTimingStyles)return K();if(null!=P.delay){var ua;"boolean"!=typeof P.delay&&(ua=parseFloat(P.delay),_=Math.max(ua,0)),ta.applyTransitionDelay&&ea.push([W,ua+"s"]),ta.applyAnimationDelay&&ea.push([U,ua+"s"])}return null==P.duration&&0<ra.transitionDuration&&(ta.recalculateTimingStyles=ta.recalculateTimingStyles||ia),aa=1e3*_,ca=1e3*ba,P.skipBlocking||(ta.blockTransition=0<ra.transitionDuration,ta.blockKeyframeAnimation=0<ra.animationDuration&&0<pa.animationDelay&&0===pa.animationDuration),P.from&&(P.cleanupStyles&&D(Q,R,Object.keys(P.from)),o(a,P)),ta.blockTransition||ta.blockKeyframeAnimation?y(ba):P.skipBlocking||u(R,!1),{$$willAnimate:!0,end:i,start:function(){return S?void 0:($={end:i,cancel:k,resume:null,pause:null},Y=new e($),x(O),Y)}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,b,c,d,e,f,g){function h(a){return a.replace(/\bng-\S+\b/g,"")}function i(a,b){return O(a)&&(a=a.split(" ")),O(b)&&(b=b.split(" ")),a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function j(b,d,e){function f(a){var b={},c=s(a).getBoundingClientRect();return M(["width","height","top","left"],function(a){var d=c[a];switch(a){case"top":d+=n.scrollTop;break;case"left":d+=n.scrollLeft}b[a]=Math.floor(d)+"px"}),b}function g(){var b=h(e.attr("class")||""),c=i(b,l),b=i(l,b),c=a(k,{to:f(e),addClass:"ng-anchor-in "+c,removeClass:"ng-anchor-out "+b,delay:!0});return c.$$willAnimate?c:null}function j(){k.remove(),d.removeClass("ng-animate-shim"),e.removeClass("ng-animate-shim")}var k=L(s(d).cloneNode(!0)),l=h(k.attr("class")||"");d.addClass("ng-animate-shim"),e.addClass("ng-animate-shim"),k.addClass("ng-anchor"),o.append(k);var m;if(b=function(){var b=a(k,{addClass:"ng-anchor-out",delay:!0,from:f(d)});return b.$$willAnimate?b:null}(),!b&&(m=g(),!m))return j();var p=b||m;return{start:function(){function a(){d&&d.end()}var b,d=p.start();return d.done(function(){return d=null,!m&&(m=g())?(d=m.start(),d.done(function(){d=null,j(),b.complete()}),d):(j(),void b.complete())}),b=new c({end:a,cancel:a})}}}function k(a,b,d,e){var f=m(a,I),g=m(b,I),h=[];return M(e,function(a){(a=j(d,a.out,a["in"]))&&h.push(a)}),f||g||0!==h.length?{start:function(){function a(){M(b,function(a){a.end()})}var b=[];f&&b.push(f.start()),g&&b.push(g.start()),M(h,function(a){b.push(a.start())});var d=new c({end:a,cancel:a});return c.all(b,function(a){d.complete(a)}),d}}:void 0}function m(b){var c=b.element,d=b.options||{};return b.structural&&(d.event=b.event,d.structural=!0,d.applyClassesEarly=!0,"leave"===b.event&&(d.onDone=d.domOperation)),d.preparationClasses&&(d.event=x(d.event,d.preparationClasses)),b=a(c,d),b.$$willAnimate?b:null}if(!e.animations&&!e.transitions)return I;var n=g[0].body;b=s(d);var o=L(b.parentNode&&11===b.parentNode.nodeType||n.contains(b)?b:n);return l(f),function(a){return a.from&&a.to?k(a.from,a.to,a.classes,a.anchors):m(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function e(c){c=N(c)?c:c.split(" ");for(var d=[],e={},f=0;f<c.length;f++){var g=c[f],h=a.$$registeredAnimations[g];h&&!e[g]&&(d.push(b.get(h)),e[g]=!0)}return d}var f=l(d);return function(a,b,d,g){function h(){g.domOperation(),f(a,g)}function i(a,b,d,e,f){switch(d){case"animate":b=[b,e.from,e.to,f];break;case"setClass":b=[b,q,r,f];break;case"addClass":b=[b,q,f];break;case"removeClass":b=[b,r,f];break;default:b=[b,f]}if(b.push(e),a=a.apply(a,b))if(S(a.start)&&(a=a.start()),a instanceof c)a.done(f);else if(S(a))return a;return I}function j(a,b,d,e,f){var g=[];return M(e,function(e){var h=e[f];h&&g.push(function(){var e,f,g=!1,j=function(a){g||(g=!0,(f||I)(a),e.complete(!a))};return e=new c({end:function(){j()},cancel:function(){j(!0)}}),f=i(h,a,b,d,function(a){j(!1===a)}),e})}),g}function k(a,b,d,e,f){var g=j(a,b,d,e,f);if(0===g.length){var h,i;"beforeSetClass"===f?(h=j(a,"removeClass",d,e,"beforeRemoveClass"),i=j(a,"addClass",d,e,"beforeAddClass")):"setClass"===f&&(h=j(a,"removeClass",d,e,"removeClass"),i=j(a,"addClass",d,e,"addClass")),h&&(g=g.concat(h)),i&&(g=g.concat(i))}return 0!==g.length?function(a){var b=[];return g.length&&M(g,function(a){b.push(a())}),b.length?c.all(b,a):a(),function(a){M(b,function(b){a?b.cancel():b.end()})}}:void 0}var l=!1;3===arguments.length&&P(d)&&(g=d,d=null),g=m(g),d||(d=a.attr("class")||"",g.addClass&&(d+=" "+g.addClass),g.removeClass&&(d+=" "+g.removeClass));var o,p,q=g.addClass,r=g.removeClass,s=e(d);if(s.length){var t,u;"leave"==b?(u="leave",t="afterLeave"):(u="before"+b.charAt(0).toUpperCase()+b.substr(1),t=b),"enter"!==b&&"move"!==b&&(o=k(a,b,g,s,u)),p=k(a,b,g,s,t)}if(o||p){var v;return{$$willAnimate:!0,end:function(){return v?v.end():(l=!0,h(),n(a,g),v=new c,v.complete(!0)),v},start:function(){function b(b){l=!0,h(),n(a,g),v.complete(b)}if(v)return v;v=new c;var d,e=[];return o&&e.push(function(a){d=o(a)}),e.length?e.push(function(a){h(),a(!0)}):h(),p&&e.push(function(a){d=p(a)}),v.setHost({end:function(){l||((d||I)(void 0),b(void 0))},cancel:function(){l||((d||I)(!0),b(!0))}}),c.chain(e,b),v}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(a,b){function c(b){return a(b.element,b.event,b.classes,b.options)}return function(a){if(!a.from||!a.to)return c(a);var d=c(a.from),e=c(a.to);return d||e?{start:function(){function a(){return function(){M(c,function(a){a.end()})}}var c=[];d&&c.push(d.start()),e&&c.push(e.start()),b.all(c,function(a){f.complete(a)});var f=new b({end:a(),cancel:a()});return f}}:void 0}}]}])}(window,window.angular),function(){var a=angular.module("myApp",["ngAnimate"]);a.service("quiz",["$http",function(a){var b=this;b.quizData,a.get("data/quiz.json").then(function(a){b.quizData=a.data})}]),a.directive("quizSection",["quiz","$timeout",function(a,b){return{restrict:"E",templateUrl:"templates/quiz.html",replace:!0,link:function(c,d,e){c.quiz=a,c.inProgress=!1,c.quizOver=!1,c.clicked=!1,c.startQuiz=function(){c.inProgress=!0,c.quizNum=0,c.audioNum=0,c.score=0,c.maxNum=a.quizData.data.length-1,c.state=function(){return a.quizData.data[c.quizNum]}},c.checkAnswer=function(a){c.clicked=!0,c.correct=a.correct,c.correct&&c.score++,b(function(){c.nextSound()},1e3),c.quizNum>=c.maxNum&&b(function(){c.quizOver=!0},1600)},c.nextSound=function(){c.quizNum<c.maxNum&&(c.clicked=!1),c.quizNum++},c.getQuizNum=function(){return c.quizNum}}}}])}();