require=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0&&(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 ne)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===P)return e;break;default:return ne(c(e))}return e.nodeType===P?ne(e):void 0}function c(e){if(!e[0])return e;for(var t=0;t=0)&&(n=z(n)),0===n&&(n=null),r[t]=n}}),r}function z(e){var t=0,n=e.split(/\s*,\s*/);return Y(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 x(e){return 0===e||null!=e}function E(e,t){var n=L,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function $(){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 N(e,t,n){Y(n,function(n){e[n]=K(e[n])?e[n]:t.style.getPropertyValue(n)})}var L,k,D,R,P=1,q="-add",B="-remove",W="ng-",j="-active",I="-prepare",X="ng-animate",F="$$ngAnimateChildren",U="";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(U="-webkit-",L="WebkitTransition",k="webkitTransitionEnd transitionend"):(L="transition",k="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(U="-webkit-",D="WebkitAnimation",R="webkitAnimationEnd animationend"):(D="animation",R="animationend");var H,V,Y,G,K,J,Q,Z,ee,te,ne,re,ie="Duration",oe="Property",ae="Delay",se="TimingFunction",ce="IterationCount",ue="PlayState",le=9999,pe=D+ae,fe=D+ie,de=L+ae,he=L+ie,be=t.$$minErr("ng"),ve=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o0&&(u=n.get(s),!u)){var l=o(a,"-stagger");r.addClass(i,l),u=T(e,i,c),u.animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),r.removeClass(i,l),n.put(s,u)}return u||{}}function z(e){X.push(e),v.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=u(),r=0;r=ne&&r>=ie&&(Q=!0,v())}function X(){function t(){if(!K){if(M(!1),Y(ue,function(e){var t=e[0],n=e[1];V.style[t]=n}),P(e,F),r.addClass(e,_e),Be.recalculateTimingStyles){if(Se=V.className+" "+we,ze=y(V,Se),Pe=$(V,Se,ze),qe=Pe.maxDelay,te=Math.max(qe,0),ie=Pe.maxDuration,0===ie)return void v();Be.hasTransitions=Pe.transitionDuration>0,Be.hasAnimations=Pe.animationDuration>0}if(Be.applyAnimationDelay&&(qe="boolean"!=typeof F.delay&&x(F.delay)?parseFloat(F.delay):qe,te=Math.max(qe,0),Pe.animationDelay=qe,We=C(qe,!0),ue.push(We),V.style[We[0]]=We[1]),ne=te*ye,ae=ie*ye,F.easing){var t,i=F.easing;Be.hasTransitions&&(t=L+se,ue.push([t,i]),V.style[t]=i),Be.hasAnimations&&(t=D+se,ue.push([t,i]),V.style[t]=i)}Pe.transitionDuration&&de.push(k),Pe.animationDuration&&de.push(R),ce=Date.now();var o=ne+Ae*ae,a=ce+o,s=e.data(ge)||[],u=!0;if(s.length){var l=s[0];u=a>l.expectedEndTime,u?c.cancel(l.timer):s.push(v)}if(u){var p=c(n,o,!1);s[0]={timer:p,expectedEndTime:a},s.push(v),e.data(ge,s)}de.length&&e.on(de.join(" "),I),F.to&&(F.cleanupStyles&&N(U,V,Object.keys(F.to)),b(e,F))}}function n(){var t=e.data(ge);if(t){for(var n=1;n0&&(Pe.transitionDuration&&0===xe.transitionDuration||Pe.animationDuration&&0===xe.animationDuration)&&Math.max(xe.animationDelay,xe.transitionDelay);o?c(t,Math.floor(o*De*ye),!1):t(),ee.resume=function(){i(!0)},ee.pause=function(){i(!1)}}}var F=n||{};F.$$prepared||(F=f(H(F)));var U={},V=g(e);if(!V||!V.parentNode||!m.enabled())return T();var K,J,Q,Z,ee,te,ne,ie,ae,ce,ue=[],pe=e.attr("class"),fe=i(F),de=[];if(0===F.duration||!l.animations&&!l.transitions)return T();var he=F.event&&G(F.event)?F.event.join(" "):F.event,be=he&&F.structural,ve="",me="";be?ve=o(he,W,!0):he&&(ve=he),F.addClass&&(me+=o(F.addClass,q)),F.removeClass&&(me.length&&(me+=" "),me+=o(F.removeClass,B)),F.applyClassesEarly&&me.length&&P(e,F);var we=[ve,me].join(" ").trim(),Se=pe+" "+we,_e=o(we,j),Ce=fe.to&&Object.keys(fe.to).length>0,Te=(F.keyframeStyle||"").length>0;if(!Te&&!Ce&&!we)return T();var ze,xe;if(F.stagger>0){var Ee=parseFloat(F.stagger);xe={transitionDelay:Ee,animationDelay:Ee,transitionDuration:0,animationDuration:0}}else ze=y(V,Se),xe=S(V,we,ze,Oe);F.$$skipPreparationClasses||r.addClass(e,we);var $e;if(F.transitionStyle){var Ne=[L,F.transitionStyle];O(V,Ne),ue.push(Ne)}if(F.duration>=0){$e=V.style[L].length>0;var Le=E(F.duration,$e);O(V,Le),ue.push(Le)}if(F.keyframeStyle){var ke=[D,F.keyframeStyle];O(V,ke),ue.push(ke)}var De=xe?F.staggerIndex>=0?F.staggerIndex:t.count(ze):0,Re=0===De;Re&&!F.skipBlocking&&A(V,le);var Pe=$(V,Se,ze),qe=Pe.maxDelay;te=Math.max(qe,0),ie=Pe.maxDuration;var Be={};if(Be.hasTransitions=Pe.transitionDuration>0,Be.hasAnimations=Pe.animationDuration>0,Be.hasTransitionAll=Be.hasTransitions&&"all"==Pe.transitionProperty,Be.applyTransitionDuration=Ce&&(Be.hasTransitions&&!Be.hasTransitionAll||Be.hasAnimations&&!Be.hasTransitions),Be.applyAnimationDuration=F.duration&&Be.hasAnimations,Be.applyTransitionDelay=x(F.delay)&&(Be.applyTransitionDuration||Be.hasTransitions),Be.applyAnimationDelay=x(F.delay)&&Be.hasAnimations,Be.recalculateTimingStyles=me.length>0,(Be.applyTransitionDuration||Be.applyAnimationDuration)&&(ie=F.duration?parseFloat(F.duration):ie,Be.applyTransitionDuration&&(Be.hasTransitions=!0,Pe.transitionDuration=ie,$e=V.style[L+oe].length>0,ue.push(E(ie,$e))),Be.applyAnimationDuration&&(Be.hasAnimations=!0,Pe.animationDuration=ie,ue.push(_(ie)))),0===ie&&!Be.recalculateTimingStyles)return T();if(null!=F.delay){var We;"boolean"!=typeof F.delay&&(We=parseFloat(F.delay),te=Math.max(We,0)),Be.applyTransitionDelay&&ue.push(C(We)),Be.applyAnimationDelay&&ue.push(C(We,!0))}return null==F.duration&&Pe.transitionDuration>0&&(Be.recalculateTimingStyles=Be.recalculateTimingStyles||Re),ne=te*ye,ae=ie*ye,F.skipBlocking||(Be.blockTransition=Pe.transitionDuration>0,Be.blockKeyframeAnimation=Pe.animationDuration>0&&xe.animationDelay>0&&0===xe.animationDuration),F.from&&(F.cleanupStyles&&N(U,V,Object.keys(F.from)),h(e,F)),Be.blockTransition||Be.blockKeyframeAnimation?M(ie):F.skipBlocking||A(V,!1),{$$willAnimate:!0,end:u,start:function(){return K?void 0:(ee={end:u,cancel:p,resume:null,pause:null},Z=new s(ee),z(X),Z)}}}}]}],_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,u,l,f){function d(e){return e.replace(/\bng-\S+\b/g,"")}function h(e,t){return ee(e)&&(e=e.split(" ")),ee(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function b(t,a,c){function u(e){var t={},n=g(e).getBoundingClientRect();return Y(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function l(){var t=e(v,{addClass:i,delay:!0,from:u(a)});return t.$$willAnimate?t:null}function p(e){return e.attr("class")||""}function f(){var t=d(p(c)),n=h(t,m),r=h(m,t),a=e(v,{to:u(c),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function b(){v.remove(),a.removeClass(n),c.removeClass(n)}var v=ne(g(a).cloneNode(!0)),m=d(p(v));a.addClass(n),c.addClass(n),v.addClass(r),A.append(v);var M,w=l();if(!w&&(M=f(),!M))return b();var O=w||M;return{start:function(){function e(){n&&n.end()}var t,n=O.start();return n.done(function(){return n=null,!M&&(M=f())?(n=M.start(),n.done(function(){n=null,b(),t.complete()}),n):(b(),void t.complete())}),t=new s({end:e,cancel:e})}}}function v(e,t,n,r){var i=m(e,re),o=m(t,re),a=[];return Y(r,function(e){var t=e.out,r=e["in"],i=b(n,t,r);i&&a.push(i)}),i||o||0!==a.length?{start:function(){function e(){Y(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),Y(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}}:void 0}function m(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=S(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!u.animations&&!u.transitions)return re;var y=f[0].body,M=g(c),A=ne(t(M)||y.contains(M)?M:y);p(l);return function(e){return e.from&&e.to?v(e.from,e.to,e.classes,e.anchors):m(e)}}]}],Ce=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=G(n)?n:n.split(" ");for(var r=[],i={},o=0;o0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var u=1,l=2,h=" ",b=this.rules={skip:[],cancel:[],join:[]};b.join.push(function(e,t,n){return!t.structural&&a(t)}),b.skip.push(function(e,t,n){return!t.structural&&!a(t)}),b.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),b.skip.push(function(e,t,n){return n.structural&&n.state===l&&!t.structural}),b.cancel.push(function(e,t,n){return n.structural&&t.structural}),b.cancel.push(function(e,t,n){return n.state===l&&t.structural}),b.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,o=t.removeClass,a=n.addClass,s=n.removeClass;return te(r)&&te(o)||te(a)&&te(s)?!1:i(r,s)||i(o,a)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,i,h,b,m,A,w,O,S,_){function C(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function T(e,t){return v(e,t,{})}function z(e,t,n){var r=g(t),i=g(e),o=[],a=I[n];return a&&Y(a,function(e){re.call(e.node,r)?o.push(e.callback):"leave"===n&&re.call(e.node,i)&&o.push(e.callback)}),o}function x(e,t,n){var r=c(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}function E(e,t){"close"!==e||t[0].parentNode||ie.off(t)}function $(e,t,n){function c(t,n,i,o){_(function(){var t=z(m,e,n);t.length?r(function(){Y(t,function(t){t(e,i,o)}),E(i,e)}):E(i,e)}),t.progress(n,i,o)}function p(t){M(e,O),Q(e,O),d(e,O),O.domOperation(),S.complete(!t)}var h,m,O=H(n);e=s(e),e&&(h=g(e),m=e.parent()),O=f(O);var S=new w,_=C();if(G(O.addClass)&&(O.addClass=O.addClass.join(" ")),O.addClass&&!ee(O.addClass)&&(O.addClass=null),G(O.removeClass)&&(O.removeClass=O.removeClass.join(" ")),O.removeClass&&!ee(O.removeClass)&&(O.removeClass=null),O.from&&!Z(O.from)&&(O.from=null),O.to&&!Z(O.to)&&(O.to=null),!h)return p(),S;var x=[h.className,O.addClass,O.removeClass].join(" ");if(!U(x))return p(),S;var $=["enter","move","leave"].indexOf(t)>=0,k=b[0].hidden,P=!W||k||B.get(h),j=!P&&q.get(h)||{},I=!!j.state;if(P||I&&j.state==u||(P=!D(e,m,t)),P)return k&&c(S,t,"start"),p(),k&&c(S,t,"close"),S;$&&N(e);var X={structural:$,element:e,event:t,addClass:O.addClass,removeClass:O.removeClass,close:p,options:O,runner:S};if(I){var F=o("skip",e,X,j);if(F)return j.state===l?(p(),S):(v(e,j,X),j.runner);var V=o("cancel",e,X,j);if(V)if(j.state===l)j.runner.end();else{if(!j.structural)return v(e,j,X),j.runner;j.close()}else{var K=o("join",e,X,j);if(K){if(j.state!==l)return y(e,$?t:null,O),t=X.event=j.event,O=v(e,j,X),j.runner;T(e,X)}}}else T(e,X);var J=X.structural;if(J||(J="animate"===X.event&&Object.keys(X.options.to||{}).length>0||a(X)),!J)return p(),L(e),S;var te=(j.counter||0)+1;return X.counter=te,R(e,u,X),i.$$postDigest(function(){var n=q.get(h),r=!n;n=n||{};var i=e.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==te||!o)return r&&(Q(e,O),d(e,O)),(r||$&&n.event!==t)&&(O.domOperation(),S.end()),void(o||L(e));t=!n.structural&&a(n,!0)?"setClass":n.event,R(e,l);var s=A(e,t,n.options);S.setHost(s),c(S,t,"start",{}),s.done(function(n){p(!n);var r=q.get(h);r&&r.counter===te&&L(g(e)),c(S,t,"close",{})})}),S}function N(e){var t=g(e),n=t.querySelectorAll("["+ze+"]");Y(n,function(e){var t=parseInt(e.getAttribute(ze)),n=q.get(e);if(n)switch(t){case l:n.runner.end();case u:q.remove(e)}})}function L(e){var t=g(e);t.removeAttribute(ze),q.remove(t)}function k(e,t){return g(e)===g(t)}function D(e,t,n){var r,i=ne(b[0].body),o=k(e,i)||"HTML"===e[0].nodeName,a=k(e,h),s=!1,c=B.get(g(e)),u=ne.data(e[0],xe);for(u&&(t=u),t=g(t);t&&(a||(a=k(t,h)),t.nodeType===P);){var l=q.get(t)||{};if(!s){var p=B.get(t);if(p===!0&&c!==!1){c=!0;break}p===!1&&(c=!1),s=l.structural}if(te(r)||r===!0){var f=ne.data(t,F);K(f)&&(r=f)}if(s&&r===!1)break;if(o||(o=k(t,i)),o&&a)break;t=a||!(u=ne.data(t,xe))?t.parentNode:g(u)}var d=(!s||r)&&c!==!0;return d&&a&&o}function R(e,t,n){n=n||{},n.state=t;var r=g(e);r.setAttribute(ze,t);var i=q.get(r),o=i?V(i,n):n;q.put(r,o)}var q=new m,B=new m,W=null,j=i.$watch(function(){return 0===O.totalPendingRequests},function(e){e&&(j(),i.$$postDigest(function(){i.$$postDigest(function(){null===W&&(W=!0)})}))}),I=Object.create(null),X=t.classNameFilter(),U=X?function(e){return X.test(e)}:function(){return!0},Q=p(S),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=c(t);I[e]=I[e]||[],I[e].push({node:r,callback:n}),ne(t).on("$destroy",function(){var i=q.get(r);i||ie.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||ee(arguments[0])){var r=I[e];r&&(I[e]=1===arguments.length?null:x(r,t,n))}else{t=arguments[0];for(var i in I)I[i]=x(I[i],t)}},pin:function(e,t){n(J(e),"element","not an element"),n(J(t),"parentElement","not an element"),e.data(xe,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,$(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!W;else{var r=J(e);if(r){var i=g(e);1===n?t=!B.get(i):B.put(i,!t)}else t=W=!!e}return t}};return ie}]}],$e=["$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","$$HashMap","$$rAFScheduler",function(e,s,c,u,l,h){function b(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t=i&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new l;for(r=0;r=0,u=e.structural?M(a):[];if(u.length){var l=c?"to":"from";Y(u,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][l]={animationID:r,element:ne(e)}})}else t.push(e)});var r={},i={};return Y(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var c=a?a.animationID:s.animationID,u=c.toString();return void(r[u]||(r[u]=!0,t.push(e[c])))}var l=e[a.animationID],p=e[s.animationID],f=a.animationID.toString();if(!i[f]){var d=i[f]={structural:!0,beforeStart:function(){l.beforeStart(),p.beforeStart()},close:function(){l.close(),p.close()},classes:w(l.classes,p.classes),from:l,to:p,anchors:[]};d.classes.length?t.push(d):(t.push(l),t.push(p))}i[f].anchors.push({out:a.element,"in":s.element})}),t}function w(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r=0;t--){var n=a[t],r=c.get(n),i=r(e);if(i)return i}}function S(){l.addClass(X),$&&e.addClass(l,$),N&&(e.removeClass(l,N),N=null)}function _(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 C(){var e=i(l);!e||"leave"===p&&y.$$domOperationFired||e.end()}function T(t){l.off("$destroy",C),n(l),m(l,y),d(l,y),y.domOperation(),$&&e.removeClass(l,$),l.removeClass(X),x.complete(!t)}y=f(y);var z=["enter","move","leave"].indexOf(p)>=0,x=new u({end:function(){T()},cancel:function(){T(!0)}});if(!a.length)return T(),x;t(l,x);var E=r(l.attr("class"),r(y.addClass,y.removeClass)),$=y.tempClasses;$&&(E+=" "+$,y.tempClasses=null);var N;return z&&(N="ng-"+p+I,e.addClass(l,N)),v.push({element:l,classes:E,event:p,structural:z,options:y,beforeStart:S,close:T}),l.on("$destroy",C),v.length>1?x:(s.$$postDigest(function(){var e=[];Y(v,function(t){i(t.element)?e.push(t):t.close()}),v.length=0;var t=A(e),n=[];Y(t,function(e){n.push({domNode:g(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close,r=e.anchors?e.from.element||e.to.element:e.element;if(i(r)){var o=O(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),_(e,a)}else n()}})}),h(b(n))}),x)}}]}],Ne=["$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(){re=t.noop,H=t.copy,V=t.extend,ne=t.element,Y=t.forEach,G=t.isArray,ee=t.isString,Z=t.isObject,te=t.isUndefined,K=t.isDefined,Q=t.isFunction,J=t.isElement}).directive("ngAnimateSwap",Ne).directive("ngAnimateChildren",me).factory("$$rAFScheduler",ve).provider("$$animateQueue",Ee).provider("$$animation",$e).provider("$animateCss",Se).provider("$$animateCssDriver",_e).provider("$$animateJs",Ce).provider("$$animateJsDriver",Te)}(window,window.angular)},{}],3:[function(e,t,n){angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","gettextFallbackLanguage","$http","$cacheFactory","$interpolate","$rootScope",function(e,t,n,r,i,o){function a(){o.$broadcast("gettextLanguageChanged")}var s,c="$$noContext",u='test',l=angular.element(""+u+"").html()!==u,p=function(e){return s.debug&&s.currentLanguage!==s.baseLanguage?s.debugPrefix+e:e},f=function(e){return s.showTranslatedMarkers?s.translatedMarkerPrefix+e+s.translatedMarkerSuffix:e};return s={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:r("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,a()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(t,n){this.strings[t]||(this.strings[t]={});var r=e(t,1);for(var i in n){var o=n[i];if(l&&(i=angular.element(""+i+"").html()),angular.isString(o)||angular.isArray(o)){var s={};s[c]=o,o=s}for(var u in o){var p=o[u];angular.isArray(p)||(o[u]=[],o[u][r]=p)}this.strings[t][i]=o}a()},getStringFormFor:function(t,n,r,i){if(!t)return null;var o=this.strings[t]||{},a=o[n]||{},s=a[i||c]||[];return s[e(t,r)]},getString:function(e,n,r){var o=t(this.currentLanguage);return e=this.getStringFormFor(this.currentLanguage,e,1,r)||this.getStringFormFor(o,e,1,r)||p(e),e=n?i(e)(n):e,f(e)},getPlural:function(e,n,r,o,a){var s=t(this.currentLanguage);return n=this.getStringFormFor(this.currentLanguage,n,e,a)||this.getStringFormFor(s,n,e,a)||p(1===e?n:r),o&&(o.$count=e,n=i(n)(o)),f(n)},loadRemote:function(e){return n({method:"GET",url:e,cache:s.cache}).then(function(e){var t=e.data;for(var n in t)s.setStrings(n,t[n]);return e})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window","gettextUtil",function(e,t,n,r,i,o){function a(e){return o.lcFirst(e.replace(u,""))}function s(e,t,n){var r=Object.keys(t).filter(function(e){return o.startsWith(e,u)&&e!==u});if(!r.length)return null;var i=angular.extend({},e),s=[];return r.forEach(function(r){var o=e.$watch(t[r],function(e){var t=a(r);i[t]=e,n(i)});s.push(o)}),e.$on("$destroy",function(){s.forEach(function(e){e()})}),i}var c=parseInt((/msie (\d+)/.exec(angular.lowercase(i.navigator.userAgent))||[])[1],10),u="translateParams";return{restrict:"AE",terminal:!0,compile:function(i,a){o.assert(!a.translatePlural||a.translateN,"translate-n","translate-plural"),o.assert(!a.translateN||a.translatePlural,"translate-plural","translate-n");var u=o.trim(i.html()),l=a.translatePlural,p=a.translateContext;return 8>=c&&""===u.slice(-13)&&(u=u.slice(0,-13)),{post:function(i,a,c){function f(t){t=t||null;var s;l?(i=h||(h=i.$new()),i.$count=d(i),s=e.getPlural(i.$count,u,l,t,p)):s=e.getString(u,t,p);var c=a.contents();if(0!==c.length){if(s===o.trim(c.html()))return void(b&&r(c)(i));var f=angular.element(""+s+"");r(f.contents())(i);var v=f.contents();n.enter(v,a),n.leave(c)}}var d=t(c.translateN),h=null,b=!0,v=s(i,c,f);f(v),b=!1,c.translateN&&i.$watch(c.translateN,function(){f(v)}),i.$on("gettextLanguageChanged",function(){f(v)})}}}}}]),angular.module("gettext").factory("gettextFallbackLanguage",function(){var e={},t=/([^_]+)_[^_]+$/;return function(n){if(e[n])return e[n];var r=t.exec(n);return r?(e[n]=r[1],r[1]):null}}),angular.module("gettext").filter("translate",["gettextCatalog",function(e){function t(t,n){return e.getString(t,null,n)}return t.$stateful=!0,t}]),angular.module("gettext").factory("gettextPlurals",function(){function e(e){return t[e]||(t[e]=e.split(/\-|_/).shift()),t[e]}var t={pt_BR:"pt_BR","pt-BR":"pt_BR"};return function(t,n){switch(e(t)){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return n%10!=1||n%100==11?1:0;case"jv":return 0!=n?1:0;case"mk":return 1==n||n%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return n>1?1:0;case"lv":return n%10==1&&n%100!=11?0:0!=n?1:2;case"lt":return n%10==1&&n%100!=11?0:n%10>=2&&(10>n%100||n%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return n%10==1&&n%100!=11?0:n%10>=2&&4>=n%10&&(10>n%100||n%100>=20)?1:2;case"mnk":return 0==n?0:1==n?1:2;case"ro":return 1==n?0:0==n||n%100>0&&20>n%100?1:2;case"pl":return 1==n?0:n%10>=2&&4>=n%10&&(10>n%100||n%100>=20)?1:2;case"cs":case"sk":return 1==n?0:n>=2&&4>=n?1:2;case"sl":return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0;case"mt":return 1==n?0:0==n||n%100>1&&11>n%100?1:n%100>10&&20>n%100?2:3;case"gd":return 1==n||11==n?0:2==n||12==n?1:n>2&&20>n?2:3;case"cy":return 1==n?0:2==n?1:8!=n&&11!=n?2:3;case"kw":return 1==n?0:2==n?1:3==n?2:3;case"ga":return 1==n?0:2==n?1:7>n?2:11>n?3:4;case"ar":return 0==n?0:1==n?1:2==n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5;default:return 1!=n?1:0}}}),angular.module("gettext").factory("gettextUtil",function(){ function e(e,t,n){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+n+" attribute.")}function t(e,t){return 0===e.indexOf(t)}function n(e){var t=e.charAt(0).toLowerCase();return t+e.substr(1)}var r=function(){return String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e}}();return{trim:r,assert:e,startsWith:t,lcFirst:n}})},{}],4:[function(e,t,n){!function(e,t){"use strict";function n(){function n(e,t){var n,r={},i=e.split(",");for(n=0;nn;n++){var i=e[n];t[i.name]=i.value}return t}function h(e){return e.replace(/&/g,"&").replace(y,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(M,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function b(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=c(e),!n&&z[e]&&(n=e),n||x[e]!==!0||(r("<"),r(e),a(i,function(n,i){var o=c(i),a="img"===e&&"src"===o||"background"===o;L[o]!==!0||E[o]===!0&&!t(n,a)||(r(" "),r(i),r('="'),r(h(n)),r('"'))}),r(">"))},end:function(e){e=c(e),n||x[e]!==!0||A[e]===!0||(r("")),e==n&&(n=!1)},chars:function(e){n||r(h(e))}}}function v(t){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;i>r;r++){var o=n[r],a=o.name.toLowerCase();("xmlns:ns1"===a||0===a.lastIndexOf("ns1:",0))&&(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&v(s),s=t.nextSibling,s&&v(s)}var m=!1;this.$get=["$$sanitizeUri",function(e){return m&&o(x,T),function(t){var n=[];return l(t,p(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?(m=e,this):m},i=t.bind,o=t.extend,a=t.forEach,s=t.isDefined,c=t.lowercase,u=t.noop,l=r,p=b;var g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/([^\#-~ |!])/g,A=n("area,br,col,hr,img,wbr"),w=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),O=n("rp,rt"),S=o({},O,w),_=o({},w,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),C=o({},O,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),T=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),z=n("script,style"),x=o({},A,_,C,S),E=n("background,cite,href,longdesc,src,xlink:href"),$=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),N=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),L=o({},E,N,$);!function(e){var t;if(!e.document||!e.document.implementation)throw f("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)g=r[0];else{var i=t.createElement("html");g=t.createElement("body"),i.appendChild(g),t.appendChild(i)}}(e)}function r(e){var t=[],n=p(t,u);return n.chars(e),t.join("")}var i,o,a,s,c,u,l,p,f=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,c=t.isObject,u=t.isString;return function(t,l,p){function f(e){e&&y.push(r(e))}function d(e,t){var n,r=m(e);y.push("'),f(t),y.push("")}if(null==t||""===t)return t;if(!u(t))throw o("notstring","Expected string but received: {0}",t);for(var h,b,v,m=s(p)?p:c(p)?function(){return p}:function(){return{}},g=t,y=[];h=g.match(n);)b=h[0],h[2]||h[4]||(b=(h[3]?"http://":"mailto:")+b),v=h.index,f(g.substr(0,v)),d(b,h[0].replace(i,"")),g=g.substring(v+h[0].length);return f(g),e(y.join(""))}}])}(window,window.angular)},{}],5:[function(e,t,n){!function(){"use strict";function e(e,t,n,r,i,o,a){function s(){return M.length}function c(e){if(1!==arguments.length||e)if(e)d(e.toastId);else for(var t=0;t=t&&M[t-1].open.resolve(),i()&&(g.remove(),g=null,O=a.defer())}))}function h(e,t,n,r){return angular.isObject(n)&&(r=n,n=null),m({iconClass:e,message:t,optionsOverride:r,title:n})}function b(){return angular.extend({},o)}function v(t){if(g)return O.promise;g=angular.element("
"),g.attr("id",t.containerId),g.addClass(t.positionClass),g.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(t.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return e.enter(g,n).then(function(){O.resolve()}),O.promise}function m(n){function o(){return f.autoDismiss&&f.maxOpened&&M.length>f.maxOpened}function s(e,t,n){function r(t){return n[t]?function(){n[t](e)}:void 0}n.allowHtml?(e.scope.allowHtml=!0,e.scope.title=i.trustAsHtml(t.title),e.scope.message=i.trustAsHtml(t.message)):(e.scope.title=t.title,e.scope.message=t.message),e.scope.toastType=e.iconClass,e.scope.toastId=e.toastId,e.scope.extraData=n.extraData,e.scope.options={extendedTimeOut:n.extendedTimeOut,messageClass:n.messageClass,onHidden:n.onHidden,onShown:r("onShown"),onTap:r("onTap"),progressBar:n.progressBar,tapToDismiss:n.tapToDismiss,timeOut:n.timeOut,titleClass:n.titleClass,toastClass:n.toastClass},n.closeButton&&(e.scope.options.closeHtml=n.closeHtml)}function c(){function e(e){for(var t=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,r=t.length;r>n;n++)delete e[t[n]];return e}var t={toastId:y++,isOpened:!1,scope:r.$new(),open:a.defer()};return t.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(f,e(n.optionsOverride)),t.iconClass=n.optionsOverride.iconClass||t.iconClass),s(t,n,f),t.el=u(t.scope),t}function u(e){var n=angular.element("
"),r=t.get("$compile");return r(n)(e)}function l(){return f.maxOpened&&M.length<=f.maxOpened||!f.maxOpened}function p(){var e=f.preventDuplicates&&n.message===A,t=f.preventOpenDuplicates&&w[n.message];return e||t?!0:(A=n.message,w[n.message]=!0,!1)}var f=b();if(!p()){var h=c();if(M.push(h),o())for(var m=M.slice(0,M.length-f.maxOpened),O=0,S=m.length;S>O;O++)d(m[O].toastId);return l()&&h.open.resolve(),h.open.promise.then(function(){v(f).then(function(){if(h.isOpened=!0,f.newestOnTop)e.enter(h.el,g).then(function(){h.scope.init()});else{var t=g[0].lastChild?angular.element(g[0].lastChild):null;e.enter(h.el,g,t).then(function(){h.scope.init()})}})}),h}}var g,y=0,M=[],A="",w={},O=a.defer(),S={active:s,clear:c,error:u,info:l,remove:d,success:p,warning:f};return S}angular.module("toastr",[]).factory("toastr",e),e.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function e(e){function t(e,t,n,r){function i(){var e=(s-(new Date).getTime())/a*100;t.css("width",e+"%")}var o,a,s;r.progressBar=e,e.start=function(e){o&&clearInterval(o),a=parseFloat(e),s=(new Date).getTime()+a,o=setInterval(i,10)},e.stop=function(){o&&clearInterval(o)},e.$on("$destroy",function(){clearInterval(o)})}return{replace:!0,require:"^toast",templateUrl:function(){return e.templates.progressbar},link:t}}angular.module("toastr").directive("progressBar",e),e.$inject=["toastrConfig"]}(),function(){"use strict";function e(){this.progressBar=null,this.startProgressBar=function(e){this.progressBar&&this.progressBar.start(e)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}angular.module("toastr").controller("ToastController",e)}(),function(){"use strict";function e(e,t,n,r){function i(n,i,o,a){function s(e){return a.startProgressBar(e),t(function(){a.stopProgressBar(),r.remove(n.toastId)},e,1)}function c(){n.progressBar=!1,a.stopProgressBar()}function u(){return n.options.closeHtml}var l;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,u()){var p=angular.element(n.options.closeHtml),f=e.get("$compile");p.addClass("toast-close-button"),p.attr("ng-click","close(true, $event)"),f(p)(n),i.prepend(p)}n.init=function(){n.options.timeOut&&(l=s(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",function(){c(),l&&t.cancel(l)}),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(e,t){t&&angular.isFunction(t.stopPropagation)&&t.stopPropagation(),r.remove(n.toastId,e)},i.on("mouseleave",function(){(0!==n.options.timeOut||0!==n.options.extendedTimeOut)&&(n.$apply(function(){n.progressBar=n.options.progressBar}),l=s(n.options.extendedTimeOut))})}return{replace:!0,templateUrl:function(){return n.templates.toast},controller:"ToastController",link:i}}angular.module("toastr").directive("toast",e),e.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(e){e.put("directives/progressbar/progressbar.html",'
\n'),e.put("directives/toast/toast.html",'
\n
\n
{{title}}
\n
{{message}}
\n
\n
\n
\n \n
\n')}])},{}],6:[function(e,t,n){!function(e,t){"use strict";function n(e){return t.lowercase(e.nodeName||e[0]&&e[0].nodeName)}function r(e,n){var r=!1,i=!1;this.ngClickOverrideEnabled=function(o){return t.isDefined(o)?(o&&!i&&(i=!0,a.$$moduleName="ngTouch",n.directive("ngClick",a),e.decorator("ngClickDirective",["$delegate",function(e){if(r)e.shift();else for(var t=e.length-1;t>=0;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),r=o,this):r},this.$get=function(){return{ngClickOverrideEnabled:function(){return r}}}}function i(e,n,r){o.directive(e,["$parse","$swipe",function(i,o){var a=75,s=.3,c=30;return function(u,l,p){function f(e){if(!d)return!1;var t=Math.abs(e.y-d.y),r=(e.x-d.x)*n;return h&&a>t&&r>0&&r>c&&s>t/r}var d,h,b=i(p[e]),v=["touch"];t.isDefined(p.ngSwipeDisableMouse)||v.push("mouse"),o.bind(l,{start:function(e,t){d=e,h=!0},cancel:function(e){h=!1},end:function(e,t){f(e)&&u.$apply(function(){l.triggerHandler(r),b(u,{$event:t})})}},v)}}])}var o=t.module("ngTouch",[]);o.provider("$touch",r),r.$inject=["$provide","$compileProvider"],o.factory("$swipe",[function(){function e(e){var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],r=t.changedTouches&&t.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(e,n){var r=[];return t.forEach(e,function(e){var t=i[e][n];t&&r.push(t)}),r.join(" ")}var r=10,i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(t,i,o){var a,s,c,u,l=!1;o=o||["mouse","touch","pointer"],t.on(n(o,"start"),function(t){c=e(t),l=!0,a=0,s=0,u=c,i.start&&i.start(c,t)});var p=n(o,"cancel");p&&t.on(p,function(e){l=!1,i.cancel&&i.cancel(e)}),t.on(n(o,"move"),function(t){if(l&&c){var n=e(t);if(a+=Math.abs(n.x-u.x),s+=Math.abs(n.y-u.y),u=n,!(r>a&&r>s))return s>a?(l=!1,void(i.cancel&&i.cancel(t))):(t.preventDefault(),void(i.move&&i.move(n,t)))}}),t.on(n(o,"end"),function(t){l&&(l=!1,i.end&&i.end(e(t),t))})}}}]);var a=["$parse","$timeout","$rootElement",function(e,r,i){function o(e,t,n,r){return Math.abs(e-n)b)){var t=e.touches&&e.touches.length?e.touches:[e],r=t[0].clientX,i=t[0].clientY;1>r&&1>i||f&&f[0]===r&&f[1]===i||(f&&(f=null),"label"===n(e.target)&&(f=[r,i]),a(p,r,i)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur()))}}function c(e){var t=e.touches&&e.touches.length?e.touches:[e],n=t[0].clientX,i=t[0].clientY;p.push(n,i),r(function(){for(var e=0;en&&h>y&&(u(m,g),a&&a.blur(),t.isDefined(i.disabled)&&i.disabled!==!1||r.triggerHandler("click",[e])),o()}),r.onclick=function(e){},r.on("click",function(e,t){n.$apply(function(){p(n,{$event:t||e})})}),r.on("mousedown",function(e){r.addClass(m)}),r.on("mousemove mouseup",function(e){r.removeClass(m)})}}];i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},{}],7:[function(e,t,n){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(e,t,n,r){var i=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,o,a){function s(){o.hasClass("collapse")&&o.hasClass("in")||t.resolve(p(r)).then(function(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(o,{addClass:"in",easing:"ease",to:{height:o[0].scrollHeight+"px"}}).start()["finally"](c):e.addClass(o,"in",{to:{height:o[0].scrollHeight+"px"}}).then(c)})}function c(){o.removeClass("collapsing").addClass("collapse").css({height:"auto"}),f(r)}function u(){return o.hasClass("collapse")||o.hasClass("in")?void t.resolve(d(r)).then(function(){o.css({height:o[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),i?i(o,{removeClass:"in",to:{height:"0"}}).start()["finally"](l):e.removeClass(o,"in",{to:{height:"0"}}).then(l)}):l()}function l(){o.css({height:"0"}),o.removeClass("collapsing").addClass("collapse"),h(r)}var p=n(a.expanding),f=n(a.expanded),d=n(a.collapsing),h=n(a.collapsed);r.$eval(a.uibCollapse)||o.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),r.$watch(a.uibCollapse,function(e){e?u():s()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){var i=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;i&&angular.forEach(this.groups,function(e){e!==r&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(n){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass||"panel-default",e.$watch("isOpen",function(n){t.toggleClass(e.openClass,!!n),n&&r.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var i="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=i+"-tab",e.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){function e(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,n,r,i){t.$watch(function(){return i[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(n[0].querySelector(e()));r.html(""),r.append(t)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,r){e.closeable=!!t.close;var i=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;i&&r(function(){e.close()},parseInt(i,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,r,i){var o=i[0],a=i[1],s=e(r.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(o.activeClass,angular.equals(a.$modelValue,t.$eval(r.uibBtnRadio)))},n.on(o.toggleEvent,function(){if(!r.disabled){var e=n.hasClass(o.activeClass);(!e||angular.isDefined(r.uncheckable))&&t.$apply(function(){a.$setViewValue(e?null:t.$eval(r.uibBtnRadio)),a.$render()})}}),r.uibUncheckable&&t.$watch(s,function(e){r.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,r){function i(){return a(n.btnCheckboxTrue,!0)}function o(){return a(n.btnCheckboxFalse,!1)}function a(t,n){return angular.isDefined(t)?e.$eval(t):n}var s=r[0],c=r[1];t.find("input").css({display:"none"}),c.$render=function(){t.toggleClass(s.activeClass,angular.equals(c.$modelValue,i()))},t.on(s.toggleEvent,function(){n.disabled||e.$apply(function(){c.$setViewValue(t.hasClass(s.activeClass)?o():i()),c.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,r,i){function o(){for(;y.length;)y.shift()}function a(e){for(var t=0;t1){v[r].element.data(m,n.direction);var u=b.getCurrentIndex();angular.isNumber(u)&&v[u].element&&v[u].element.data(m,n.direction),e.$currentTransition=!0,i.on("addClass",v[r].element,function(t,n){if("close"===n&&(e.$currentTransition=null,i.off("addClass",t),y.length)){var r=y.pop().slide,a=r.index,c=a>b.getCurrentIndex()?"next":"prev";o(),s(r,a,c)}})}e.active=n.index,g=n.index,a(r),p()}}function c(e){for(var t=0;t0&&(d=n(f,t))}function f(){var t=+e.interval;h&&!isNaN(t)&&t>0&&v.length?e.next():e.pause()}var d,h,b=this,v=b.slides=e.slides=[],m="uib-slideDirection",g=e.active,y=[],M=!1;b.addSlide=function(t,n){v.push({slide:t,element:n}),v.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===v.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),g=t.index,e.active=t.index,a(g),b.select(v[c(t)]),1===v.length&&e.play())},b.getCurrentIndex=function(){for(var e=0;e0&&g===n?n>=v.length?(g=v.length-1,e.active=g,a(g),b.select(v[v.length-1])):(g=n,e.active=g,a(g),b.select(v[n])):g>n&&(g--,e.active=g),0===v.length&&(g=null,e.active=null,o())},b.select=e.select=function(t,n){var r=c(t.slide);void 0===n&&(n=r>b.getCurrentIndex()?"next":"prev"),t.slide.index===g||e.$currentTransition?t&&t.slide.index!==g&&e.$currentTransition&&y.push(v[r]):s(t.slide,r,n)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===v.length-1&&e.noWrap()},e.pause=function(){e.noPause||(h=!1,u())},e.play=function(){h||(h=!0,p())},e.$on("$destroy",function(){M=!0,u()}),e.$watch("noTransition",function(e){i.enabled(t,!e)}),e.$watch("interval",p),e.$watchCollection("slides",l),e.$watch("active",function(e){if(angular.isNumber(e)&&g!==e){for(var t=0;t-1){var a=!1;e=e.split("");for(var s=o;s-1){e=e.split(""),i[o]="("+r.regex+")",e[o]="$";for(var a=o+1,s=o+r.key.length;s>a;a++)i[a]="",e[a]="$";e=e.join(""),n.push({index:o,key:r.key,apply:r[t],matcher:r.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:r(n,"index")}}function o(e,t,n){return 1>n?!1:1===t&&n>28?29===n&&(e%4===0&&e%100!==0||e%400===0):3===t||5===t||8===t||10===t?31>n:!0}function a(e){return parseInt(e,10)}function s(e,t){return e&&t?p(e,t):e}function c(e,t){return e&&t?p(e,t,!0):e}function u(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function l(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function p(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=u(t,r);return l(e,n*(i-r))}var f,d,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){f=t.id,this.parsers={},this.formatters={},d=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=69>e?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){ this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],r=t[2],i=t[3];this.hours+=a(n+r),this.minutes+=a(n+i)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}]},this.init(),this.filter=function(e,n){if(!angular.isDate(e)||isNaN(e)||!n)return"";n=t.DATETIME_FORMATS[n]||n,t.id!==f&&this.init(),this.formatters[n]||(this.formatters[n]=i(n,"formatter"));var r=this.formatters[n],o=r.map,a=n;return o.reduce(function(t,n,r){var i=a.match(new RegExp("(.*)"+n.key));i&&angular.isString(i[1])&&(t+=i[1],a=a.replace(i[1]+n.key,""));var s=r===o.length-1?a:"";return n.apply?t+n.apply.call(null,e)+s:t+s},"")},this.parse=function(n,r,a){if(!angular.isString(n)||!r)return n;r=t.DATETIME_FORMATS[r]||r,r=r.replace(h,"\\$&"),t.id!==f&&this.init(),this.parsers[r]||(this.parsers[r]=i(r,"apply"));var s=this.parsers[r],c=s.regex,u=s.map,l=n.match(c),p=!1;if(l&&l.length){var d,b;angular.isDate(a)&&!isNaN(a.getTime())?d={year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),milliseconds:a.getMilliseconds()}:(a&&e.warn("dateparser:","baseDate is not a valid date"),d={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var v=1,m=l.length;m>v;v++){var g=u[v-1];"Z"===g.matcher&&(p=!0),g.apply&&g.apply.call(d,l[v])}var y=p?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,M=p?Date.prototype.setUTCHours:Date.prototype.setHours;return o(d.year,d.month,d.date)&&(!angular.isDate(a)||isNaN(a.getTime())||p?(b=new Date(0),y.call(b,d.year,d.month,d.date),M.call(b,d.hours||0,d.minutes||0,d.seconds||0,d.milliseconds||0)):(b=new Date(a),y.call(b,d.year,d.month,d.date),M.call(b,d.hours,d.minutes,d.seconds,d.milliseconds))),b}},this.toTimezone=s,this.fromTimezone=c,this.timezoneToOffset=u,this.addDateMinutes=l,this.convertTimezoneToLocal=p}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,n=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,i){function o(e,t,n){c.push(e),u.push({scope:e,element:t}),h.forEach(function(t,n){a(t,e)}),e.$on("$destroy",s)}function a(t,r){var i=t.match(n),o=r.$eval(i[1]),a=i[2],s=l[t];if(!s){var c=function(t){var n=null;u.some(function(e){var r=e.scope.$eval(f);return r===t?(n=e,!0):void 0}),s.lastActivated!==n&&(s.lastActivated&&e.removeClass(s.lastActivated.element,o),n&&e.addClass(n.element,o),s.lastActivated=n)};l[t]=s={lastActivated:null,scope:r,watchFn:c,compareWithExp:a,watcher:r.$watch(a,c)}}s.watchFn(r.$eval(a))}function s(e){var t=e.targetScope,n=c.indexOf(t);if(c.splice(n,1),u.splice(n,1),c.length){var r=c[0];angular.forEach(l,function(e){e.scope===t&&(e.watcher=r.$watch(e.compareWithExp,e.watchFn),e.scope=r)})}else l={}}var c=[],u=[],l={},p=i.uibIsClass.match(t),f=p[2],d=p[1],h=d.split(",");return o}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(e,t,n,r,i,o,a,s,c,u,l){function p(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}var f=this,d={$setViewValue:angular.noop},h={},b=[];!!t.datepickerOptions;e.datepickerOptions||(e.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":e[t]=e.datepickerOptions[t]||angular.noop;break;case"datepickerMode":e.datepickerMode=angular.isDefined(e.datepickerOptions.datepickerMode)?e.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":f[t]=angular.isDefined(e.datepickerOptions[t])?r(e.datepickerOptions[t])(e.$parent):s[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":f[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:s[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?f.startingDay=e.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?f.startingDay=s.startingDay:f.startingDay=(i.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?f[t]=l.fromTimezone(new Date(e),h.timezone):(c&&o.warn("Literal date support has been deprecated, please switch to date object usage"),f[t]=new Date(a(e,"medium"))):f[t]=s[t]?l.fromTimezone(new Date(s[t]),h.timezone):null,f.refreshView()});break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch(function(){return e.datepickerOptions[t]},function(n){f[t]=e[t]=angular.isDefined(n)?n:datepickerOptions[t],("minMode"===t&&f.modes.indexOf(e.datepickerOptions.datepickerMode)f.modes.indexOf(f[t]))&&(e.datepickerMode=f[t],e.datepickerOptions.datepickerMode=f[t])}):f[t]=e[t]=s[t]||null}}),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&&b.push(e.$parent.$watch(t.ngDisabled,function(t){e.disabled=t,f.refreshView()})),e.isActive=function(t){return 0===f.compare(t.date,f.activeDate)?(e.activeDateId=t.uid,!0):!1},this.init=function(t){d=t,h=t.$options||s.ngModelOptions,e.datepickerOptions.initDate?(f.activeDate=l.fromTimezone(e.datepickerOptions.initDate,h.timezone)||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(d.$isEmpty(d.$modelValue)||d.$invalid)&&(f.activeDate=l.fromTimezone(e,h.timezone),f.refreshView())})):f.activeDate=new Date;var n=d.$modelValue?new Date(d.$modelValue):new Date;this.activeDate=isNaN(n)?l.fromTimezone(new Date,h.timezone):l.fromTimezone(n,h.timezone),d.$render=function(){f.render()}},this.render=function(){if(d.$viewValue){var e=new Date(d.$viewValue),t=!isNaN(e);t?this.activeDate=l.fromTimezone(e,h.timezone):u||o.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=d.$viewValue?new Date(d.$viewValue):null;t=l.fromTimezone(t,h.timezone),d.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var r=d.$viewValue?new Date(d.$viewValue):null;r=l.fromTimezone(r,h.timezone);var i=new Date;i=l.fromTimezone(i,h.timezone);var o=this.compare(t,i),a={date:t,label:l.filter(t,n),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:0>o,current:0===o,future:o>0,customClass:this.customClass(t)||null};return r&&0===this.compare(t,r)&&(e.selectedDt=a),f.activeDate&&0===this.compare(a.date,f.activeDate)&&(e.activeDt=a),a},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===f.minMode){var n=d.$viewValue?l.fromTimezone(new Date(d.$viewValue),h.timezone):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=l.toTimezone(n,h.timezone),d.$setViewValue(n),d.$render()}else f.activeDate=t,p(f.modes[f.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=f.activeDate.getFullYear()+e*(f.step.years||0),n=f.activeDate.getMonth()+e*(f.step.months||0);f.activeDate.setFullYear(t,n,1),f.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===f.maxMode&&1===t||e.datepickerMode===f.minMode&&-1===t||(p(f.modes[f.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var v=function(){f.element[0].focus()};e.$on("uib:datepicker.focus",v),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),f.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(f.isDisabled(f.activeDate))return;e.select(f.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(f.handleKeyDown(n,t),f.refreshView()):e.toggleMode("up"===n?1:-1)},e.$on("$destroy",function(){for(;b.length;)b.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e,t){return 1!==t||e%4!==0||e%100===0&&e%400!==0?o[t]:29}function i(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var o=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),o=0;t>o;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var t=this.activeDate.getFullYear(),r=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,r,1);var a=this.startingDay-o.getDay(),s=a>0?7-a:-a,c=new Date(o);s>0&&c.setDate(-s+1);for(var u=this.getDates(c,42),l=0;42>l;l++)u[l]=angular.extend(this.createDateObject(u[l],this.formatDay),{secondary:u[l].getMonth()!==r,uid:e.uniqueId+"-"+l});e.labels=new Array(7);for(var p=0;7>p;p++)e.labels[p]={abbr:n(u[p].date,this.formatDayHeader),full:n(u[p].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var f=(11-this.startingDay)%7,d=e.rows.length,h=0;d>h;h++)e.weekNumbers.push(i(e.rows[h][f].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(i,1),n=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,r=new Array(12),i=this.activeDate.getFullYear(),o=0;12>o;o++)t=new Date(this.activeDate),t.setFullYear(i,o,1),r[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(r,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=3;else if("right"===e)n+=1;else if("down"===e)n+=3;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e){return parseInt((e-1)/o,10)*o+1}var i,o;this.element=t,this.yearpickerInit=function(){i=this.yearColumns,o=this.yearRows*i,this.step={years:o}},this._refreshView=function(){for(var t,n=new Array(o),a=0,s=r(this.activeDate.getFullYear());o>a;a++)t=new Date(this.activeDate),t.setFullYear(s+a,0,1),n[a]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+a});e.title=[n[0].label,n[o-1].label].join(" - "),e.rows=this.split(n,i),e.columns=i},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=i:"right"===e?n+=1:"down"===e?n+=i:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*o:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+o-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,r,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},o={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){function r(e){return"static"===(t.getComputedStyle(e).position||"static")}n=this.getRawNode(n);for(var i=n.offsetParent||e[0].documentElement;i&&i!==e[0].documentElement&&r(i);)i=i.offsetParent;return i||e[0].documentElement},scrollbarWidth:function(i){if(i){if(angular.isUndefined(r)){var o=e.find("body");o.addClass("uib-position-body-scrollbar-measure"),r=t.innerWidth-o[0].clientWidth,r=isFinite(r)?r:0,o.removeClass("uib-position-body-scrollbar-measure")}return r}if(angular.isUndefined(n)){var a=angular.element('
');e.find("body").append(a),n=a[0].offsetWidth-a[0].clientWidth,n=isFinite(n)?n:0,a.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),r=this.parseStyle(n.paddingRight),i=this.parseStyle(n.paddingBottom),o=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(o,a.test(o.tagName));return{scrollbarWidth:s,widthOverflow:o.scrollWidth>o.clientWidth,right:r+s,originalRight:r,heightOverflow:o.scrollHeight>o.clientHeight,bottom:i+s,originalBottom:i}},isScrollable:function(e,n){e=this.getRawNode(e);var r=n?i.hidden:i.normal,o=t.getComputedStyle(e);return r.test(o.overflow+o.overflowY+o.overflowX)},scrollParent:function(n,r,o){n=this.getRawNode(n);var a=r?i.hidden:i.normal,s=e[0].documentElement,c=t.getComputedStyle(n);if(o&&a.test(c.overflow+c.overflowY+c.overflowX))return n;var u="absolute"===c.position,l=n.parentElement||s;if(l===s||"fixed"===c.position)return s;for(;l.parentElement&&l!==s;){var p=t.getComputedStyle(l);if(u&&"static"!==p.position&&(u=!1),!u&&a.test(p.overflow+p.overflowY+p.overflowX))break;l=l.parentElement}return l},position:function(n,r){n=this.getRawNode(n);var i=this.offset(n);if(r){var o=t.getComputedStyle(n);i.top-=this.parseStyle(o.marginTop),i.left-=this.parseStyle(o.marginLeft)}var a=this.offsetParent(n),s={top:0,left:0};return a!==e[0].documentElement&&(s=this.offset(a),s.top+=a.clientTop-a.scrollTop,s.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top-s.top),left:Math.round(i.left-s.left)}},offset:function(n){n=this.getRawNode(n);var r=n.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:n.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:n.offsetHeight),top:Math.round(r.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,r,i){n=this.getRawNode(n),i=i!==!1?!0:!1;var o=n.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},s=r?e[0].documentElement:this.scrollParent(n),c=s.getBoundingClientRect();if(a.top=c.top+s.clientTop,a.left=c.left+s.clientLeft,s===e[0].documentElement&&(a.top+=t.pageYOffset,a.left+=t.pageXOffset),a.bottom=a.top+s.clientHeight,a.right=a.left+s.clientWidth,i){var u=t.getComputedStyle(s);a.top+=this.parseStyle(u.paddingTop),a.bottom-=this.parseStyle(u.paddingBottom),a.left+=this.parseStyle(u.paddingLeft),a.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(o.top-a.top),bottom:Math.round(a.bottom-o.bottom),left:Math.round(o.left-a.left),right:Math.round(a.right-o.right)}},parsePlacement:function(e){var t=o.auto.test(e);return t&&(e=e.replace(o.auto,"")),e=e.split("-"),e[0]=e[0]||"top",o.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",o.secondary.test(e[1])||(e[1]="center"),t?e[2]=!0:e[2]=!1,e},positionElements:function(e,n,r,i){e=this.getRawNode(e),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");r=this.parsePlacement(r);var c=i?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(r[2]){var l=this.viewportOffset(e,i),p=t.getComputedStyle(n),f={width:a+Math.round(Math.abs(this.parseStyle(p.marginLeft)+this.parseStyle(p.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(p.marginTop)+this.parseStyle(p.marginBottom)))};if(r[0]="top"===r[0]&&f.height>l.top&&f.height<=l.bottom?"bottom":"bottom"===r[0]&&f.height>l.bottom&&f.height<=l.top?"top":"left"===r[0]&&f.width>l.left&&f.width<=l.right?"right":"right"===r[0]&&f.width>l.right&&f.width<=l.left?"left":r[0],r[1]="top"===r[1]&&f.height-c.height>l.bottom&&f.height-c.height<=l.top?"bottom":"bottom"===r[1]&&f.height-c.height>l.top&&f.height-c.height<=l.bottom?"top":"left"===r[1]&&f.width-c.width>l.right&&f.width-c.width<=l.left?"right":"right"===r[1]&&f.width-c.width>l.left&&f.width-c.width<=l.right?"left":r[1],"center"===r[1])if(o.vertical.test(r[0])){var d=c.width/2-a/2;l.left+d<0&&f.width-c.width<=l.right?r[1]="left":l.right+d<0&&f.width-c.width<=l.left&&(r[1]="right")}else{var h=c.height/2-f.height/2;l.top+h<0&&f.height-c.height<=l.bottom?r[1]="top":l.bottom+h<0&&f.height-c.height<=l.top&&(r[1]="bottom")}}switch(r[0]){case"top":u.top=c.top-s;break;case"bottom":u.top=c.top+c.height;break;case"left":u.left=c.left-a;break;case"right":u.left=c.left+c.width}switch(r[1]){case"top":u.top=c.top;break;case"bottom":u.top=c.top+c.height-s;break;case"left":u.left=c.left;break;case"right":u.left=c.left+c.width-a;break;case"center":o.vertical.test(r[0])?u.left=c.left+c.width/2-a/2:u.top=c.top+c.height/2-s/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===r[1]?r[0]:r[0]+"-"+r[1],u},positionArrow:function(e,n){e=this.getRawNode(e);var r=e.querySelector(".tooltip-inner, .popover-inner");if(r){var i=angular.element(r).hasClass("tooltip-inner"),a=i?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(a){var s={top:"",bottom:"",left:"",right:""};if(n=this.parsePlacement(n),"center"===n[1])return void angular.element(a).css(s);var c="border-"+n[0]+"-width",u=t.getComputedStyle(a)[c],l="border-";l+=o.vertical.test(n[0])?n[0]+"-"+n[1]:n[1]+"-"+n[0],l+="-radius";var p=t.getComputedStyle(i?r:e)[l];switch(n[0]){case"top":s.bottom=i?"0":"-"+u;break;case"bottom":s.top=i?"0":"-"+u;break;case"left":s.right=i?"0":"-"+u;break;case"right":s.left=i?"0":"-"+u}s[n[1]]=p,angular.element(a).css(s)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,n,r,i,o,a,s,c,u,l,p,f,d,h,b){function v(t){var n=p.parse(t,w,e.date);if(isNaN(n))for(var r=0;r
"),N?(D=N.timezone,e.ngModelOptions=angular.copy(N),e.ngModelOptions.timezone=null,e.ngModelOptions.updateOnDefault===!0&&(e.ngModelOptions.updateOn=e.ngModelOptions.updateOn?e.ngModelOptions.updateOn+" default":"default"),z.attr("ng-model-options","ngModelOptions")):D=null,z.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":C}),x=angular.element(z.children()[0]),x.attr("template-url",T),e.datepickerOptions||(e.datepickerOptions={}),R&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),x.attr("datepicker-options","datepickerOptions"),R?$.$formatters.push(function(t){return e.date=p.fromTimezone(t,D),t}):($.$$parserName="date",$.$validators.date=g,$.$parsers.unshift(m),$.$formatters.push(function(t){return $.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=p.fromTimezone(t,D),p.filter(e.date,w))})),$.$viewChangeListeners.push(function(){e.date=v($.$viewValue)}),t.on("keydown",M),L=r(z)(e),z.remove(),S?s.find("body").append(L):t.after(L),e.$on("$destroy",function(){for(e.isOpen===!0&&(c.$$phase||e.$apply(function(){e.isOpen=!1})),L.remove(),t.off("keydown",M),s.off("click",y),E&&E.off("scroll",A),angular.element(a).off("resize",A);P.length;)P.shift()()})},e.getText=function(t){return e[t+"Text"]||f[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=p.fromTimezone(new Date,D));var n={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=p.fromTimezone(new Date(e.datepickerOptions[t]),D):(b&&i.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(l(e.datepickerOptions[t],"medium"))):n[t]=null}),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){angular.isDefined(n)&&(e.date=n);var r=e.date?p.filter(e.date,w):null;t.val(r),$.$setViewValue(r),O&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(n.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,n){if(n.stopPropagation(),"today"===t){var r=new Date;angular.isDate(e.date)?(t=new Date(e.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):t=new Date(r.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(n){n.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&P.push(e.$parent.$watch(o(n.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(r){r?e.disabled?e.isOpen=!1:d(function(){A(),_&&e.$broadcast("uib:datepicker.focus"),s.on("click",y);var r=n.popupPlacement?n.popupPlacement:f.placement;S||u.parsePlacement(r)[2]?(E=E||angular.element(u.scrollParent(t)),E&&E.on("scroll",A)):E=null,angular.element(a).on("resize",A)},0,!1):(s.off("click",y),E&&E.off("scroll",A),angular.element(a).off("resize",A))}),e.$on("uib:datepicker.mode",function(){d(A,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,o)},n)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t,o){n||(e.on("click",r),o.on("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t,o){n===t&&(n=null,e.off("click",r),o.off("keydown",i))};var r=function(e){if(n&&!(e&&"disabled"===n.getAutoClose()||e&&3===e.which)){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(e.stopPropagation(),n.focusToggleElement(),r()):n.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,r,i,o,a,s,c,u,l){var p,f,d=this,h=e.$new(),b=i.appendToOpenClass,v=i.openClass,m=angular.noop,g=n.onToggle?r(n.onToggle):angular.noop,y=!1,M=null,A=!1,w=c.find("body");t.addClass("dropdown"),this.init=function(){if(n.isOpen&&(f=r(n.isOpen),m=f.assign,e.$watch(f,function(e){h.isOpen=!!e})),angular.isDefined(n.dropdownAppendTo)){var i=r(n.dropdownAppendTo)(h);i&&(M=angular.element(i))}y=angular.isDefined(n.dropdownAppendToBody),A=angular.isDefined(n.keyboardNav),y&&!M&&(M=w),M&&d.dropdownMenu&&(M.append(d.dropdownMenu),t.on("$destroy",function(){d.dropdownMenu.remove()}))},this.toggle=function(e){return h.isOpen=arguments.length?!!e:!h.isOpen,angular.isFunction(m)&&m(h,h.isOpen),h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return d.toggleElement},h.getAutoClose=function(){return n.autoClose||"always"},h.getElement=function(){return t},h.isKeynavEnabled=function(){return A},h.focusDropdownEntry=function(e){var n=d.dropdownMenu?angular.element(d.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===n.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0; break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=n.length-1}n[d.selectedOption].focus()},h.getDropdownElement=function(){return d.dropdownMenu},h.focusToggleElement=function(){d.toggleElement&&d.toggleElement[0].focus()},h.$watch("isOpen",function(n,r){if(M&&d.dropdownMenu){var i,c,f,A=s.positionElements(t,d.dropdownMenu,"bottom-left",!0);if(i={top:A.top+"px",display:n?"block":"none"},c=d.dropdownMenu.hasClass("dropdown-menu-right"),c?(i.left="auto",f=s.scrollbarWidth(!0),i.right=window.innerWidth-f-(A.left+t.prop("offsetWidth"))+"px"):(i.left=A.left+"px",i.right="auto"),!y){var w=s.offset(M);i.top=A.top-w.top+"px",c?i.right=window.innerWidth-(A.left-w.left+t.prop("offsetWidth"))+"px":i.left=A.left-w.left+"px"}d.dropdownMenu.css(i)}var O=M?M:t,S=O.hasClass(M?b:v);if(S===!n&&a[n?"addClass":"removeClass"](O,M?b:v).then(function(){angular.isDefined(n)&&n!==r&&g(e,{open:!!n})}),n)d.dropdownMenuTemplateUrl&&l(d.dropdownMenuTemplateUrl).then(function(e){p=h.$new(),u(e.trim())(p,function(e){var t=e;d.dropdownMenu.replaceWith(t),d.dropdownMenu=t})}),h.focusToggleElement(),o.open(h,t);else{if(d.dropdownMenuTemplateUrl){p&&p.$destroy();var _=angular.element('');d.dropdownMenu.replaceWith(_),d.dropdownMenu=_}o.close(h,t),d.selectedOption=null}angular.isFunction(m)&&m(e,n)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){r.toggle()})};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",i)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n-1&&S>e&&(e=S),e}function p(e,t){var n=A.get(e).value,r=n.appendTo;A.remove(e),_=A.top(),_&&(S=parseInt(_.value.modalDomEl.attr("index"),10)),h(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||M;w.remove(t,e);var i=w.hasKey(t);r.toggleClass(t,i),!i&&y&&y.heightOverflow&&y.scrollbarWidth&&(y.originalRight?r.css({paddingRight:y.originalRight+"px"}):r.css({paddingRight:""}),y=null),f(!0)},n.closedDeferred),d(),t&&t.focus?t.focus():r.focus&&r.focus()}function f(e){var t;A.length()>0&&(t=A.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",e))}function d(){if(m&&-1===l()){var e=g;h(m,g,function(){e=null}),m=void 0,g=void 0}}function h(t,n,r,i){function a(){a.done||(a.done=!0,e.leave(t).then(function(){t.remove(),i&&i.resolve()}),n.$destroy(),r&&r())}var s,c=null,u=function(){return s||(s=o.defer(),c=s.promise),function(){s.resolve()}};return n.$broadcast(O.NOW_CLOSING_EVENT,u),o.when(c).then(a)}function b(e){if(e.isDefaultPrevented())return e;var t=A.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),i.$apply(function(){O.dismiss(t.key,"escape key press")}));break;case 9:var n=O.loadFocusElementList(t),r=!1;e.shiftKey?(O.isFocusInFirstItem(e,n)||O.isModalFocused(e,t))&&(r=O.focusLastFocusableElement(n)):O.isFocusInLastItem(e,n)&&(r=O.focusFirstFocusableElement(n)),r&&(e.preventDefault(),e.stopPropagation())}}function v(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var m,g,y,M="modal-open",A=s.createNew(),w=a.createNew(),O={NOW_CLOSING_EVENT:"modal.stack.now-closing"},S=0,_=null,C="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return i.$watch(l,function(e){g&&(g.index=e)}),n.on("keydown",b),i.$on("$destroy",function(){n.off("keydown",b)}),O.open=function(t,o){var a=n[0].activeElement,s=o.openedClass||M;f(!1),_=A.top(),A.add(t,{deferred:o.deferred,renderDeferred:o.renderDeferred,closedDeferred:o.closedDeferred,modalScope:o.scope,backdrop:o.backdrop,keyboard:o.keyboard,openedClass:o.openedClass,windowTopClass:o.windowTopClass,animation:o.animation,appendTo:o.appendTo}),w.put(s,t);var u=o.appendTo,p=l();if(!u.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");p>=0&&!m&&(g=i.$new(!0),g.modalOptions=o,g.index=p,m=angular.element('
'),m.attr("backdrop-class",o.backdropClass),o.animation&&m.attr("modal-animation","true"),r(m)(g),e.enter(m,u),y=c.scrollbarPadding(u),y.heightOverflow&&y.scrollbarWidth&&u.css({paddingRight:y.right+"px"})),S=_?parseInt(_.value.modalDomEl.attr("index"),10)+1:0;var d=angular.element('
');d.attr({"template-url":o.windowTemplateUrl,"window-class":o.windowClass,"window-top-class":o.windowTopClass,size:o.size,index:S,animate:"animate"}).html(o.content),o.animation&&d.attr("modal-animation","true"),u.addClass(s),e.enter(r(d)(o.scope),u),A.top().value.modalDomEl=d,A.top().value.modalOpener=a},O.close=function(e,t){var n=A.get(e);return n&&v(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),p(e,n.value.modalOpener),!0):!n},O.dismiss=function(e,t){var n=A.get(e);return n&&v(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),p(e,n.value.modalOpener),!0):!n},O.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},O.getTop=function(){return A.top()},O.modalRendered=function(e){var t=A.get(e);t&&t.value.renderDeferred.resolve()},O.focusFirstFocusableElement=function(e){return e.length>0?(e[0].focus(),!0):!1},O.focusLastFocusableElement=function(e){return e.length>0?(e[e.length-1].focus(),!0):!1},O.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},O.isFocusInFirstItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[0]:!1},O.isFocusInLastItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[t.length-1]:!1},O.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll(C);return n?Array.prototype.filter.call(n,function(e){return u(e)}):n}}},O}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,r,i,o,a,s){function c(e){return e.template?n.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var u={},l=null;return u.getPromiseChain=function(){return l},u.open=function(i){function u(){return m}var p=n.defer(),f=n.defer(),d=n.defer(),h=n.defer(),b={result:p.promise,opened:f.promise,closed:d.promise,rendered:h.promise,close:function(e){return s.close(b,e)},dismiss:function(e){return s.dismiss(b,e)}};if(i=angular.extend({},e.options,i),i.resolve=i.resolve||{},i.appendTo=i.appendTo||r.find("body").eq(0),!i.template&&!i.templateUrl)throw new Error("One of template or templateUrl options is required.");var v,m=n.all([c(i),a.resolve(i.resolve,{},null,null)]);return v=l=n.all([l]).then(u,u).then(function(e){var n=i.scope||t,r=n.$new();r.$close=b.close,r.$dismiss=b.dismiss,r.$on("$destroy",function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")});var a,c,u={};i.controller&&(u.$scope=r,u.$scope.$resolve={},u.$uibModalInstance=b,angular.forEach(e[1],function(e,t){u[t]=e,u.$scope.$resolve[t]=e}),c=o(i.controller,u,!0,i.controllerAs),i.controllerAs&&i.bindToController&&(a=c.instance,a.$close=r.$close,a.$dismiss=r.$dismiss,angular.extend(a,{$resolve:u.$scope.$resolve},n)),a=c(),angular.isFunction(a.$onInit)&&a.$onInit()),s.open(b,{scope:r,deferred:p,renderDeferred:h,closedDeferred:d,content:e[0],animation:i.animation,backdrop:i.backdrop,keyboard:i.keyboard,backdropClass:i.backdropClass,windowTopClass:i.windowTopClass,windowClass:i.windowClass,windowTemplateUrl:i.windowTemplateUrl,size:i.size,openedClass:i.openedClass,appendTo:i.appendTo}),f.resolve(!0)},function(e){f.reject(e),p.reject(e)})["finally"](function(){l===v&&(l=null)}),b},u}]};return e}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,r){t.setNumPages=r.numPages?e(r.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,i){t.ngModelCtrl=e,t.config=i,e.$render=function(){t.render()},r.itemsPerPage?t._watchers.push(n.$parent.$watch(r.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=i.itemsPerPage,n.$watch("totalItems",function(e,r){(angular.isDefined(e)||e!==r)&&(n.totalPages=t.calculateTotalPages(),t.updatePage())})},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(n.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){n.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(e,r){r&&r.preventDefault();var i=!n.ngDisabled||!r;i&&n.page!==e&&e>0&&e<=n.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},n.getText=function(e){return n[e+"Text"]||t.config[e+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},t.updatePage=function(){t.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):t.ngModelCtrl.$render()},n.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,r){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):r.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,n,r,i){var o=i[0],a=i[1];a&&o.init(a,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,r,i){function o(e,t,n){return{number:e,text:t,active:n}}function a(e,t){var n=[],r=1,i=t,a=angular.isDefined(c)&&t>c;a&&(u?(r=Math.max(e-Math.floor(c/2),1),i=r+c-1,i>t&&(i=t,r=i-c+1)):(r=(Math.ceil(e/c)-1)*c+1,i=Math.min(r+c-1,t)));for(var s=r;i>=s;s++){var d=o(s,f(s),s===e);n.push(d)}if(a&&c>0&&(!u||l||p)){if(r>1){if(!p||r>3){var h=o(r-1,"...",!1);n.unshift(h)}if(p){if(3===r){var b=o(2,"2",!1);n.unshift(b)}var v=o(1,"1",!1);n.unshift(v)}}if(t>i){if(!p||t-2>i){var m=o(i+1,"...",!1);n.push(m)}if(p){if(i===t-2){var g=o(t-1,t-1,!1);n.push(g)}var y=o(t,t,!1);n.push(y)}}}return n}var s=this,c=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):i.maxSize,u=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):i.rotate,l=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):i.forceEllipses,p=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):i.boundaryLinkNumbers,f=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):i.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):i.directionLinks,r.create(this,e,t),t.maxSize&&s._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){c=parseInt(e,10),s.render()}));var d=this.render;this.render=function(){d(),e.page>0&&e.page<=e.totalPages&&(e.pages=a(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(e,n,r,i){var o=i[0],a=i[1];a&&o.init(a,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function e(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var t={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},r={};this.options=function(e){angular.extend(r,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,o,a,s,c,u,l,p,f){function d(e){if(27===e.which){var t=h.top();t&&(t.value.close(),h.removeTop(),t=null)}}var h=f.createNew();return s.on("keypress",d),l.$on("$destroy",function(){s.off("keypress",d)}),function(i,l,f,d){function b(e){var t=(e||d.trigger||f).split(" "),r=t.map(function(e){return n[e]||e});return{show:t,hide:r}}d=angular.extend({},t,r,d);var v=e(i),m=u.startSymbol(),g=u.endSymbol(),y="
';return{compile:function(e,t){var n=o(y);return function(e,t,r,o){function u(){B.isOpen?v():f()}function f(){(!q||e.$eval(r[l+"Enable"]))&&(M(),O(),B.popupDelay?N||(N=a(m,B.popupDelay,!1)):m())}function v(){g(),B.popupCloseDelay?L||(L=a(y,B.popupCloseDelay,!1)):y()}function m(){return g(),M(),B.content?(A(),void B.$evalAsync(function(){B.isOpen=!0,S(!0),F()})):angular.noop}function g(){N&&(a.cancel(N),N=null),k&&(a.cancel(k),k=null)}function y(){B&&B.$evalAsync(function(){B&&(B.isOpen=!1,S(!1),B.animation?$||($=a(w,150,!1)):w())})}function M(){L&&(a.cancel(L),L=null),$&&(a.cancel($),$=null)}function A(){x||(E=B.$new(),x=n(E,function(e){R?s.find("body").append(e):t.after(e)}),_())}function w(){g(),M(),C(),x&&(x.remove(),x=null),E&&(E.$destroy(),E=null)}function O(){B.title=r[l+"Title"],I?B.content=I(e):B.content=r[i],B.popupClass=r[l+"Class"],B.placement=angular.isDefined(r[l+"Placement"])?r[l+"Placement"]:d.placement;var t=c.parsePlacement(B.placement);D=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(r[l+"PopupDelay"],10),o=parseInt(r[l+"PopupCloseDelay"],10);B.popupDelay=isNaN(n)?d.popupDelay:n,B.popupCloseDelay=isNaN(o)?d.popupCloseDelay:o}function S(t){j&&angular.isFunction(j.assign)&&j.assign(e,t)}function _(){X.length=0,I?(X.push(e.$watch(I,function(e){B.content=e,!e&&B.isOpen&&y()})),X.push(E.$watch(function(){W||(W=!0,E.$$postDigest(function(){W=!1,B&&B.isOpen&&F()}))}))):X.push(r.$observe(i,function(e){B.content=e,!e&&B.isOpen?y():F()})),X.push(r.$observe(l+"Title",function(e){B.title=e,B.isOpen&&F()})),X.push(r.$observe(l+"Placement",function(e){B.placement=e?e:d.placement,B.isOpen&&F()}))}function C(){X.length&&(angular.forEach(X,function(e){e()}),X.length=0)}function T(e){B&&B.isOpen&&x&&(t[0].contains(e.target)||x[0].contains(e.target)||v())}function z(){var e=r[l+"Trigger"];U(),P=b(e),"none"!==P.show&&P.show.forEach(function(e,n){"outsideClick"===e?(t.on("click",u),s.on("click",T)):e===P.hide[n]?t.on(e,u):e&&(t.on(e,f),t.on(P.hide[n],v)),t.on("keypress",function(e){27===e.which&&v()})})}var x,E,$,N,L,k,D,R=angular.isDefined(d.appendToBody)?d.appendToBody:!1,P=b(void 0),q=angular.isDefined(r[l+"Enable"]),B=e.$new(!0),W=!1,j=angular.isDefined(r[l+"IsOpen"])?p(r[l+"IsOpen"]):!1,I=d.useContentExp?p(r[i]):!1,X=[],F=function(){x&&x.html()&&(k||(k=a(function(){var e=c.positionElements(t,x,B.placement,R);x.css({top:e.top+"px",left:e.left+"px"}),x.hasClass(e.placement.split("-")[0])||(x.removeClass(D.split("-")[0]),x.addClass(e.placement.split("-")[0])),x.hasClass(d.placementClassPrefix+e.placement)||(x.removeClass(d.placementClassPrefix+D),x.addClass(d.placementClassPrefix+e.placement)),x.hasClass("uib-position-measure")?(c.positionArrow(x,e.placement),x.removeClass("uib-position-measure")):D!==e.placement&&c.positionArrow(x,e.placement),D=e.placement,k=null},0,!1)))};B.origScope=e,B.isOpen=!1,h.add(B,{close:y}),B.contentExp=function(){return B.content},r.$observe("disabled",function(e){e&&g(),e&&B.isOpen&&y()}),j&&e.$watch(j,function(e){B&&!e===B.isOpen&&u()});var U=function(){P.show.forEach(function(e){"outsideClick"===e?t.off("click",u):(t.off(e,f),t.off(e,u))}),P.hide.forEach(function(e){"outsideClick"===e?s.off("click",T):t.off(e,v)})};z();var H=e.$eval(r[l+"Animation"]);B.animation=angular.isDefined(H)?!!H:d.animation;var V,Y=l+"AppendToBody";V=Y in r&&void 0===r[Y]?!0:e.$eval(r[Y]),R=angular.isDefined(V)?V:R,e.$on("$destroy",function(){U(),w(),h.remove(B),B=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,a){var s,c,u,l=i.$eval(a.tooltipTemplateTranscludeScope),p=0,f=function(){c&&(c.remove(),c=null),s&&(s.$destroy(),s=null),u&&(e.leave(u).then(function(){c=null}),c=u,u=null)};i.$watch(t.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(t){var a=++p;t?(r(t,!0).then(function(r){if(a===p){var i=l.$new(),c=r,d=n(c)(i,function(t){f(),e.enter(t,o)});s=i,u=d,s.$emit("$includeContentLoaded",t)}},function(){a===p&&(f(),i.$emit("$includeContentError",t))}),i.$emit("$includeContentRequested",t)):f()}),i.$on("$destroy",f)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,r){if(t.placement){var i=e.parsePlacement(t.placement);n.addClass(i[0])}t.popupClass&&n.addClass(t.popupClass),t.animation()&&n.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){function r(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}var i=this,o=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=r(),this.addBar=function(e,t,n){o||t.css({transition:"none"}),this.bars.push(e),e.max=r(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=i.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,i.removeBar(e)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){i.bars.forEach(function(e){e.max=r(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var r={$setViewValue:angular.noop},i=this;this.init=function(i){r=i,r.$render=this.render,r.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):n.enableReset;var o=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(o)&&o.length>0?o:n.titles;var a=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var n=i.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(n),r.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue,e.title=i.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){function t(e){for(var t=0;tt.index?1:e.index0&&13>t:t>=0&&24>t;return n&&""!==e.hours?(e.showMeridian&&(12===t&&(t=0),e.meridian===A[1]&&(t+=12)),t):void 0}function c(){var t=+e.minutes,n=t>=0&&60>t;return n&&""!==e.minutes?t:void 0}function u(){var t=+e.seconds;return t>=0&&60>t?t:void 0}function l(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function p(e){f(),M.$setViewValue(new Date(g)),d(e)}function f(){M.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function d(t){if(M.$modelValue){var n=g.getHours(),r=g.getMinutes(),i=g.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12), e.hours="h"===t?n:l(n,!w),"m"!==t&&(e.minutes=l(r)),e.meridian=g.getHours()<12?A[0]:A[1],"s"!==t&&(e.seconds=l(i)),e.meridian=g.getHours()<12?A[0]:A[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=A[0]}function h(e){g=v(g,e),p()}function b(e,t){return v(e,60*t)}function v(e,t){var n=new Date(e.getTime()+1e3*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function m(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}var g=new Date,y=[],M={$setViewValue:angular.noop},A=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS,w=angular.isDefined(n.padHours)?e.$parent.$eval(n.padHours):!0;e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,r){M=t,M.$render=this.render,M.$formatters.unshift(function(e){return e?new Date(e):null});var i=r.eq(0),o=r.eq(1),s=r.eq(2),c=angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):a.mousewheel;c&&this.setupMousewheelEvents(i,o,s);var u=angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):a.arrowkeys;u&&this.setupArrowkeyEvents(i,o,s),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(i,o,s)};var O=a.hourStep;n.hourStep&&y.push(e.$parent.$watch(r(n.hourStep),function(e){O=+e}));var S=a.minuteStep;n.minuteStep&&y.push(e.$parent.$watch(r(n.minuteStep),function(e){S=+e}));var _;y.push(e.$parent.$watch(r(n.min),function(e){var t=new Date(e);_=isNaN(t)?void 0:t}));var C;y.push(e.$parent.$watch(r(n.max),function(e){var t=new Date(e);C=isNaN(t)?void 0:t}));var T=!1;n.ngDisabled&&y.push(e.$parent.$watch(r(n.ngDisabled),function(e){T=e})),e.noIncrementHours=function(){var e=b(g,60*O);return T||e>C||g>e&&_>e},e.noDecrementHours=function(){var e=b(g,60*-O);return T||_>e||e>g&&e>C},e.noIncrementMinutes=function(){var e=b(g,S);return T||e>C||g>e&&_>e},e.noDecrementMinutes=function(){var e=b(g,-S);return T||_>e||e>g&&e>C},e.noIncrementSeconds=function(){var e=v(g,z);return T||e>C||g>e&&_>e},e.noDecrementSeconds=function(){var e=v(g,-z);return T||_>e||e>g&&e>C},e.noToggleMeridian=function(){return g.getHours()<12?T||b(g,720)>C:T||b(g,-720)<_};var z=a.secondStep;n.secondStep&&y.push(e.$parent.$watch(r(n.secondStep),function(e){z=+e})),e.showSeconds=a.showSeconds,n.showSeconds&&y.push(e.$parent.$watch(r(n.showSeconds),function(t){e.showSeconds=!!t})),e.showMeridian=a.showMeridian,n.showMeridian&&y.push(e.$parent.$watch(r(n.showMeridian),function(t){if(e.showMeridian=!!t,M.$error.time){var n=s(),r=c();angular.isDefined(n)&&angular.isDefined(r)&&(g.setHours(n),p())}else d()})),this.setupMousewheelEvents=function(t,n,r){var i=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),r.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,n,r){t.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),n.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),r.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,n,r){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var i=function(t,n,r){M.$setViewValue(null),M.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n),angular.isDefined(r)&&(e.invalidSeconds=r)};e.updateHours=function(){var e=s(),t=c();M.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(g.setHours(e),g.setMinutes(t),_>g||g>C?i(!0):p("h")):i(!0)},t.bind("blur",function(t){M.$setTouched(),m()?f():null===e.hours||""===e.hours?i(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=l(e.hours,!w)})}),e.updateMinutes=function(){var e=c(),t=s();M.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(g.setHours(t),g.setMinutes(e),_>g||g>C?i(void 0,!0):p("m")):i(void 0,!0)},n.bind("blur",function(t){M.$setTouched(),m()?f():null===e.minutes?i(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=l(e.minutes)})}),e.updateSeconds=function(){var e=u();M.$setDirty(),angular.isDefined(e)?(g.setSeconds(e),p("s")):i(void 0,void 0,!0)},r.bind("blur",function(t){m()?f():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=l(e.seconds)})})},this.render=function(){var t=M.$viewValue;isNaN(t)?(M.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(g=t),_>g||g>C?(M.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):f(),d())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):a.showSpinners,e.incrementHours=function(){e.noIncrementHours()||h(60*O*60)},e.decrementHours=function(){e.noDecrementHours()||h(60*-O*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||h(60*S)},e.decrementMinutes=function(){e.noDecrementMinutes()||h(60*-S)},e.incrementSeconds=function(){e.noIncrementSeconds()||h(z)},e.decrementSeconds=function(){e.noDecrementSeconds()||h(-z)},e.toggleMeridian=function(){var t=c(),n=s();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?h(720*(g.getHours()<12?60:-60)):e.meridian=e.meridian===A[0]?A[1]:A[0])},e.blur=function(){M.$setTouched()},e.$on("$destroy",function(){for(;y.length;)y.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,n){return n.templateUrl||e.templateUrl},link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,r,i,o,a,s,c,u,l,p,f){function d(){W.moveInProgress||(W.moveInProgress=!0,W.$digest()),J()}function h(){W.position=E?p.offset(t):p.position(t),W.position.top+=t.prop("offsetHeight")}var b,v,m=[9,13,27,38,40],g=200,y=e.$eval(n.typeaheadMinLength);y||0===y||(y=1),e.$watch(n.typeaheadMinLength,function(e){y=e||0===e?e:1});var M=e.$eval(n.typeaheadWaitMs)||0,A=e.$eval(n.typeaheadEditable)!==!1;e.$watch(n.typeaheadEditable,function(e){A=e!==!1});var w,O,S=i(n.typeaheadLoading).assign||angular.noop,_=n.typeaheadShouldSelect?i(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},C=i(n.typeaheadOnSelect),T=angular.isDefined(n.typeaheadSelectOnBlur)?e.$eval(n.typeaheadSelectOnBlur):!1,z=i(n.typeaheadNoResults).assign||angular.noop,x=n.typeaheadInputFormatter?i(n.typeaheadInputFormatter):void 0,E=n.typeaheadAppendToBody?e.$eval(n.typeaheadAppendToBody):!1,$=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,N=e.$eval(n.typeaheadFocusFirst)!==!1,L=n.typeaheadSelectOnExact?e.$eval(n.typeaheadSelectOnExact):!1,k=i(n.typeaheadIsOpen).assign||angular.noop,D=e.$eval(n.typeaheadShowHint)||!1,R=i(n.ngModel),P=i(n.ngModel+"($$$p)"),q=function(t,n){return angular.isFunction(R(e))&&v&&v.$options&&v.$options.getterSetter?P(t,{$$$p:n}):R.assign(t,n)},B=f.parse(n.uibTypeahead),W=e.$new(),j=e.$on("$destroy",function(){W.$destroy()});W.$on("$destroy",j);var I="typeahead-"+W.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":I});var X,F;D&&(X=angular.element("
"),X.css("position","relative"),t.after(X),F=t.clone(),F.attr("placeholder",""),F.attr("tabindex","-1"),F.val(""),F.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),X.append(F),F.after(t));var U=angular.element("
");U.attr({id:I,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(n.typeaheadTemplateUrl)&&U.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&U.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var H=function(){D&&F.val("")},V=function(){W.matches=[],W.activeIdx=-1,t.attr("aria-expanded",!1),H()},Y=function(e){return I+"-option-"+e};W.$watch("activeIdx",function(e){0>e?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",Y(e))});var G=function(e,t){return W.matches.length>t&&e?e.toUpperCase()===W.matches[t].label.toUpperCase():!1},K=function(n,r){var i={$viewValue:n};S(e,!0),z(e,!1),o.when(B.source(e,i)).then(function(o){var a=n===b.$viewValue;if(a&&w)if(o&&o.length>0){W.activeIdx=N?0:-1,z(e,!1),W.matches.length=0;for(var s=0;s0&&c.slice(0,n.length).toUpperCase()===n.toUpperCase()?F.val(n+c.slice(n.length)):F.val("")}}else V(),z(e,!0);a&&S(e,!1)},function(){V(),S(e,!1),z(e,!0)})};E&&(angular.element(c).on("resize",d),s.find("body").on("scroll",d));var J=l(function(){W.matches.length&&h(),W.moveInProgress=!1},g);W.moveInProgress=!1,W.query=void 0;var Q,Z=function(e){Q=a(function(){K(e)},M)},ee=function(){Q&&a.cancel(Q)};V(),W.assignIsOpen=function(t){k(e,t)},W.select=function(r,i){var o,s,c={};O=!0,c[B.itemName]=s=W.matches[r].model,o=B.modelMapper(e,c),q(e,o),b.$setValidity("editable",!0),b.$setValidity("parse",!0),C(e,{$item:s,$model:o,$label:B.viewMapper(e,c),$event:i}),V(),W.$eval(n.typeaheadFocusOnSelect)!==!1&&a(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==W.matches.length&&-1!==m.indexOf(t.which)){var n=_(e,{$event:t});if(-1===W.activeIdx&&n||9===t.which&&t.shiftKey)return V(),void W.$digest();t.preventDefault();var r;switch(t.which){case 27:t.stopPropagation(),V(),e.$digest();break;case 38:W.activeIdx=(W.activeIdx>0?W.activeIdx:W.matches.length)-1,W.$digest(),r=U.find("li")[W.activeIdx],r.parentNode.scrollTop=r.offsetTop;break;case 40:W.activeIdx=(W.activeIdx+1)%W.matches.length,W.$digest(),r=U.find("li")[W.activeIdx],r.parentNode.scrollTop=r.offsetTop;break;default:n&&W.$apply(function(){angular.isNumber(W.debounceUpdate)||angular.isObject(W.debounceUpdate)?l(function(){W.select(W.activeIdx,t)},angular.isNumber(W.debounceUpdate)?W.debounceUpdate:W.debounceUpdate["default"]):W.select(W.activeIdx,t)})}}}),t.bind("focus",function(e){w=!0,0!==y||b.$viewValue||a(function(){K(b.$viewValue,e)},0)}),t.bind("blur",function(e){T&&W.matches.length&&-1!==W.activeIdx&&!O&&(O=!0,W.$apply(function(){angular.isObject(W.debounceUpdate)&&angular.isNumber(W.debounceUpdate.blur)?l(function(){W.select(W.activeIdx,e)},W.debounceUpdate.blur):W.select(W.activeIdx,e)})),!A&&b.$error.editable&&(b.$setViewValue(),b.$setValidity("editable",!0),b.$setValidity("parse",!0),t.val("")),w=!1,O=!1});var te=function(n){t[0]!==n.target&&3!==n.which&&0!==W.matches.length&&(V(),u.$$phase||e.$digest())};s.on("click",te),e.$on("$destroy",function(){s.off("click",te),(E||$)&&ne.remove(),E&&(angular.element(c).off("resize",d),s.find("body").off("scroll",d)),U.remove(),D&&X.remove()});var ne=r(U)(W);E?s.find("body").append(ne):$?angular.element($).eq(0).append(ne):t.after(ne),this.init=function(t,n){b=t,v=n,W.debounceUpdate=b.$options&&i(b.$options.debounce)(e),b.$parsers.unshift(function(t){return w=!0,0===y||t&&t.length>=y?M>0?(ee(),Z(t)):K(t):(S(e,!1),ee(),V()),A?t:t?void b.$setValidity("editable",!1):(b.$setValidity("editable",!0),null)}),b.$formatters.push(function(t){var n,r,i={};return A||b.$setValidity("editable",!0),x?(i.$model=t,x(e,i)):(i[B.itemName]=t,n=B.viewMapper(e,i),i[B.itemName]=void 0,r=B.viewMapper(e,i),n!==r?n:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(e){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,n,r){t.templateUrl=r.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(n,r){var i=t.debounce();angular.isNumber(i)||angular.isObject(i)?e(function(){t.select({activeIdx:n,evt:r})},angular.isNumber(i)?i:i["default"]):t.select({activeIdx:n,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var a=n(o.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";e(a).then(function(e){var n=angular.element(e.trim());i.replaceWith(n),t(n)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){function r(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function i(e){return/<.*>/g.test(e)}var o;return o=t.has("$sanitize"),function(t,a){return!o&&i(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=a?(""+t).replace(new RegExp(r(a),"gi"),"$&"):t,o||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'
\n \n
\n
\n
\n
\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'
')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'
\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'
\n \n \n \n
\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{::label.abbr}}
{{ weekNumbers[$index] }}\n \n
\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'
\n \n
\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'
\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'
')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'
\n
\n
\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'\n ({{ $index < value ? \'*\' : \' \' }})\n \n\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'\n'); }]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'
\n \n
\n
\n
\n
\n
\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
  
\n \n :\n \n :\n \n
  
\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'\n')}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend(''),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend(''),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend(''),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend(''),angular.$$uibTypeaheadCss=!0})},{}],8:[function(e,t,n){!function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",c=o[1];for(s+=c.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a;if(e)if(S(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(i,e[o],o,e);else if(Gr(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;a>o;o++)(s||o in e)&&t.call(i,e[o],o,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e);else if(M(e))for(o in e)t.call(i,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e);else for(o in e)Nr.call(e,o)&&t.call(i,e[o],o,e);return e}function i(e,t,n){for(var r=Object.keys(e).sort(),i=0;ii;++i){var a=t[i];if(y(a)||S(a))for(var u=Object.keys(a),l=0,p=u.length;p>l;l++){var f=u[l],d=a[f];n&&y(d)?O(d)?e[f]=new Date(d.valueOf()):_(d)?e[f]=new RegExp(d):d.nodeName?e[f]=d.cloneNode(!0):D(d)?e[f]=d.clone():(y(e[f])||(e[f]=Gr(d)?[]:{}),c(e[f],[d],!0)):e[f]=d}}return s(e,r),e}function u(e){return c(e,jr.call(arguments,1),!1)}function l(e){return c(e,jr.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function f(e,t){return u(Object.create(e),t)}function d(){}function h(e){return e}function b(e){return function(){return e}}function v(e){return S(e.toString)&&e.toString!==Fr}function m(e){return"undefined"==typeof e}function g(e){return"undefined"!=typeof e}function y(e){return null!==e&&"object"==typeof e}function M(e){return null!==e&&"object"==typeof e&&!Ur(e)}function A(e){return"string"==typeof e}function w(e){return"number"==typeof e}function O(e){return"[object Date]"===Fr.call(e)}function S(e){return"function"==typeof e}function _(e){return"[object RegExp]"===Fr.call(e)}function C(e){return e&&e.window===e}function T(e){return e&&e.$evalAsync&&e.$watch}function z(e){return"[object File]"===Fr.call(e)}function x(e){return"[object FormData]"===Fr.call(e)}function E(e){return"[object Blob]"===Fr.call(e)}function $(e){return"boolean"==typeof e}function N(e){return e&&S(e.then)}function L(e){return e&&w(e.length)&&Kr.test(Fr.call(e))}function k(e){return"[object ArrayBuffer]"===Fr.call(e)}function D(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function R(e){var t,n={},r=e.split(",");for(t=0;t=0&&e.splice(n,1),n}function B(e,t){function n(e,t){var n,r=t.$$hashKey;if(Gr(e))for(var o=0,a=e.length;a>o;o++)t.push(i(e[o]));else if(M(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Nr.call(e,n)&&(t[n]=i(e[n]));return s(t,r),t}function i(e){if(!y(e))return e;var t=a.indexOf(e);if(-1!==t)return c[t];if(C(e)||T(e))throw Hr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(e);return void 0===i&&(i=Gr(e)?[]:Object.create(Ur(e)),r=!0),a.push(e),c.push(i),r?n(e,i):i}function o(e){switch(Fr.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(i(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}return S(e.cloneNode)?e.cloneNode(!0):void 0}var a=[],c=[];if(t){if(L(t)||k(t))throw Hr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Hr("cpi","Can't copy! Source and destination are identical.");return Gr(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),c.push(t),n(e,t)}return i(e)}function W(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Gr(e)){if(O(e))return O(t)?W(e.getTime(),t.getTime()):!1;if(_(e))return _(t)?e.toString()==t.toString():!1;if(T(e)||T(t)||C(e)||C(t)||Gr(t)||O(t)||_(t))return!1;i=he();for(r in e)if("$"!==r.charAt(0)&&!S(e[r])){if(!W(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&g(t[r])&&!S(t[r]))return!1;return!0}if(!Gr(t))return!1;if((n=e.length)==t.length){for(r=0;n>r;r++)if(!W(e[r],t[r]))return!1;return!0}}return!1}function j(e,t,n){return e.concat(jr.call(t,n))}function I(e,t){return jr.call(e,t||0)}function X(e,t){var n=arguments.length>2?I(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,j(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function F(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:C(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":T(n)&&(r="$SCOPE"),r}function U(e,t){return m(e)?void 0:(w(t)||(t=t?2:null),JSON.stringify(e,F,t))}function H(e){return A(e)?JSON.parse(e):e}function V(e,t){e=e.replace(ti,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Y(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function G(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=V(t,r);return Y(e,n*(i-r))}function K(e){e=qr(e).clone();try{e.empty()}catch(t){}var n=qr("
").append(e).html();try{return e[0].nodeType===si?Lr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Lr(t)})}catch(t){return Lr(n)}}function J(e){try{return decodeURIComponent(e)}catch(t){}}function Q(e){var t={};return r((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=J(r),g(r)&&(i=g(i)?J(i):!0,Nr.call(t,r)?Gr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function Z(e){var t=[];return r(e,function(e,n){Gr(e)?r(e,function(e){t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}):t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}),t.length?t.join("&"):""}function ee(e){return te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function te(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 ne(e,t){var n,r,i=ni.length;for(r=0;i>r;++r)if(n=ni[r]+t,A(n=e.getAttribute(n)))return n;return null}function re(e,t){var n,i,o={};r(ni,function(t){var r=t+"app";!n&&e.hasAttribute&&e.hasAttribute(r)&&(n=e,i=e.getAttribute(r))}),r(ni,function(t){var r,o=t+"app";!n&&(r=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==ne(n,"strict-di"),t(n,i?[i]:[],o))}function ie(t,n,i){y(i)||(i={});var o={strictDi:!1};i=u(o,i);var a=function(){if(t=qr(t),t.injector()){var r=t[0]===e.document?"document":K(t);throw Hr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(//,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=rt(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!c.test(e.name)?a():(e.name=e.name.replace(c,""),Vr.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),a()},void(S(Vr.resumeDeferredBootstrap)&&Vr.resumeDeferredBootstrap()))}function oe(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ae(e){var t=Vr.element(e).injector();if(!t)throw Hr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function se(e,t){return t=t||"_",e.replace(ri,function(e,n){return(n?t:"")+e.toLowerCase()})}function ce(){var t;if(!ii){var n=ei();Br=m(n)?e.jQuery:n?e[n]:void 0,Br&&Br.fn.on?(qr=Br,u(Br.fn,{scope:Ci.scope,isolateScope:Ci.isolateScope,controller:Ci.controller,injector:Ci.injector,inheritedData:Ci.inheritedData}),t=Br.cleanData,Br.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)n=Br._data(r,"events"),n&&n.$destroy&&Br(r).triggerHandler("$destroy");t(e)}):qr=xe,Vr.element=qr,ii=!0}}function ue(e,t,n){if(!e)throw Hr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function le(e,t,n){return n&&Gr(e)&&(e=e[e.length-1]),ue(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function pe(e,t){if("hasOwnProperty"===e)throw Hr("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;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&S(e)?X(o,e):e}function de(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=qr(jr.call(e,0,i))),t.push(n));return t||e}function he(){return Object.create(null)}function be(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),l}}function n(e,n){return function(r,o){return o&&S(o)&&(o.$$moduleName=t),i.push([e,n,arguments]),l}}if(!o)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);var i=[],s=[],c=[],u=e("$injector","invoke","push",s),l={_invokeQueue:i,_configBlocks:s,_runBlocks:c,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:u,run:function(e){return c.push(e),this}};return a&&u(a),l})}})}function ve(e,t){if(Gr(e)){t=t||[];for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if(y(e)){t=t||{};for(var i in e)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=e[i])}return t||e}function me(e){var t=[];return JSON.stringify(e,function(e,n){if(n=F(e,n),y(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function ge(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):m(e)?"undefined":"string"!=typeof e?me(e):e}function ye(n){u(n,{bootstrap:ie,copy:B,extend:u,merge:l,equals:W,element:qr,forEach:r,injector:rt,noop:d,bind:X,toJson:U,fromJson:H,identity:h,isUndefined:m,isDefined:g,isString:A,isFunction:S,isObject:y,isNumber:w,isElement:D,isArray:Gr,version:pi,isDate:O,lowercase:Lr,uppercase:kr,callbacks:{$$counter:0},getTestability:ae,$$minErr:t,$$csp:Zr,reloadWithDebugInfo:oe}),(Wr=be(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:_n}),e.provider("$compile",ht).directive({a:Do,input:ea,textarea:ea,form:Wo,script:Ga,select:Qa,style:es,option:Za,ngBind:ra,ngBindHtml:oa,ngBindTemplate:ia,ngClass:sa,ngClassEven:ua,ngClassOdd:ca,ngCloak:la,ngController:pa,ngForm:jo,ngHide:Ia,ngIf:ha,ngInclude:ba,ngInit:ma,ngNonBindable:La,ngPluralize:Pa,ngRepeat:qa,ngShow:ja,ngStyle:Xa,ngSwitch:Fa,ngSwitchWhen:Ua,ngSwitchDefault:Ha,ngOptions:Ra,ngTransclude:Ya,ngModel:Ea,ngList:ga,ngChange:aa,pattern:ns,ngPattern:ns,required:ts,ngRequired:ts,minlength:is,ngMinlength:is,maxlength:rs,ngMaxlength:rs,ngValue:na,ngModelOptions:Na}).directive({ngInclude:va}).directive(Ro).directive(fa),e.provider({$anchorScroll:it,$animate:Ii,$animateCss:Ui,$$animateJs:Wi,$$animateQueue:ji,$$AnimateRunner:Fi,$$animateAsyncRun:Xi,$browser:lt,$cacheFactory:pt,$controller:Mt,$document:At,$exceptionHandler:wt,$filter:Bn,$$forceReflow:Ji,$interpolate:Rt,$interval:Pt,$http:Nt,$httpParamSerializer:St,$httpParamSerializerJQLike:_t,$httpBackend:kt,$xhrFactory:Lt,$jsonpCallbacks:ao,$location:Qt,$log:Zt,$parse:yn,$rootScope:Sn,$q:Mn,$$q:An,$sce:xn,$sceDelegate:zn,$sniffer:En,$templateCache:ft,$templateRequest:$n,$$testability:Nn,$timeout:Ln,$window:Rn,$$rAF:On,$$jqLite:Ke,$$HashMap:Ei,$$cookieReader:qn})}])}function Me(){return++di}function Ae(e){return e.replace(vi,function(e,t,n,r){return r?n.toUpperCase():n}).replace(mi,"Moz$1")}function we(e){return!Ai.test(e)}function Oe(e){var t=e.nodeType;return t===oi||!t||t===ui}function Se(e){for(var t in fi[e.ng339])return!0;return!1}function _e(e){for(var t=0,n=e.length;n>t;t++)Le(e[t])}function Ce(e,t){var n,i,o,a,s=t.createDocumentFragment(),c=[];if(we(e))c.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),i=(wi.exec(e)||["",""])[1].toLowerCase(),o=Si[i]||Si._default,n.innerHTML=o[1]+e.replace(Oi,"<$1>")+o[2],a=o[0];a--;)n=n.lastChild;c=j(c,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(c,function(e){s.appendChild(e)}),s}function Te(t,n){n=n||e.document;var r;return(r=Mi.exec(t))?[n.createElement(r[1])]:(r=Ce(t,n))?r.childNodes:[]}function ze(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function xe(e){if(e instanceof xe)return e;var t;if(A(e)&&(e=Jr(e),t=!0),!(this instanceof xe)){if(t&&"<"!=e.charAt(0))throw yi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new xe(e)}t?Be(this,Te(e)):Be(this,e)}function Ee(e){return e.cloneNode(!0)}function $e(e,t){if(t||Le(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Le(n[r])}function Ne(e,t,n,i){if(g(i))throw yi("offargs","jqLite#off() does not support the `selector` argument");var o=ke(e),a=o&&o.events,s=o&&o.handle;if(s)if(t){var c=function(t){var r=a[t];g(n)&&q(r||[],n),g(n)&&r&&r.length>0||(bi(e,t,s),delete a[t])};r(t.split(" "),function(e){c(e),gi[e]&&c(gi[e])})}else for(t in a)"$destroy"!==t&&bi(e,t,s),delete a[t]}function Le(e,t){var n=e.ng339,r=n&&fi[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Ne(e)),delete fi[n],e.ng339=void 0}}function ke(e,t){var n=e.ng339,r=n&&fi[n];return t&&!r&&(e.ng339=n=Me(),r=fi[n]={events:{},data:{},handle:void 0}),r}function De(e,t,n){if(Oe(e)){var r=g(n),i=!r&&t&&!y(t),o=!t,a=ke(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];u(s,t)}}}function Re(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function Pe(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",Jr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Jr(t)+" "," ")))})}function qe(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=Jr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Jr(n))}}function Be(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;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function We(e,t){return je(e,"$"+(t||"ngController")+"Controller")}function je(e,t,n){e.nodeType==ui&&(e=e.documentElement);for(var r=Gr(t)?t:[t];e;){for(var i=0,o=r.length;o>i;i++)if(g(n=qr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===li&&e.host}}function Ie(e){for($e(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Xe(e,t){t||$e(e);var n=e.parentNode;n&&n.removeChild(e)}function Fe(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):qr(n).on("load",t)}function Ue(e,t){var n=Ti[t.toLowerCase()];return n&&zi[P(e)]&&n}function He(e){return xi[e]}function Ve(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(m(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Ye;o>1&&(i=ve(i));for(var c=0;o>c;c++)n.isImmediatePropagationStopped()||s(e,n,i[c])}};return n.elem=e,n}function Ye(e,t,n){n.call(e,t)}function Ge(e,t,n){var r=t.relatedTarget;(!r||r!==e&&!_i.call(e,r))&&n.call(e,t)}function Ke(){this.$get=function(){return u(xe,{hasClass:function(e,t){return e.attr&&(e=e[0]),Re(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),qe(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Pe(e,t)}})}}function Je(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||a)():r+":"+e}function Qe(e,t){if(t){var n=0;this.nextUid=function(){return++n}}r(e,this.put,this)}function Ze(e){return Function.prototype.toString.call(e)+" "}function et(e){var t=Ze(e).replace(Di,""),n=t.match($i)||t.match(Ni);return n}function tt(e){var t=et(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function nt(e,t,n){var i,o,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw A(n)&&n||(n=e.name||tt(e)),Ri("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=et(e),r(o[1].split(Li),function(e){e.replace(ki,function(e,t,n){i.push(n)})})}e.$inject=i}}else Gr(e)?(a=e.length-1,le(e[a],"fn"),i=e.slice(0,a)):le(e,"fn",!0);return i}function rt(e,t){function n(e){return function(t,n){return y(t)?void r(t,o(e)):e(t,n)}}function i(e,t){if(pe(e,"service"),(S(t)||Gr(t))&&(t=O.instantiate(t)),!t.$get)throw Ri("pget","Provider '{0}' must define $get factory method.",e);return w[e+v]=t}function a(e,t){return function(){var n=T.invoke(t,this);if(m(n))throw Ri("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function c(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return s(e,b(t),!1)}function l(e,t){pe(e,"constant"),w[e]=t,_[e]=t}function p(e,t){var n=O.get(e+v),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function f(e){ue(m(e)||Gr(e),"modulesToLoad","not an array");var t,n=[];return r(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=O.get(r[0]);i[r[1]].apply(i,r[2])}}if(!M.get(e)){M.put(e,!0);try{A(e)?(t=Wr(e),n=n.concat(f(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):S(e)?n.push(O.invoke(e)):Gr(e)?n.push(O.invoke(e)):le(e,"module")}catch(i){throw Gr(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Ri("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function d(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===h)throw Ri("cdep","Circular dependency found: {0}",t+" <- "+g.join(" <- "));return e[t]}try{return g.unshift(t),e[t]=h,e[t]=n(t,r)}catch(i){throw e[t]===h&&delete e[t],i}finally{g.shift()}}function i(e,n,i){for(var o=[],a=rt.$$annotate(e,t,i),s=0,c=a.length;c>s;s++){var u=a[s];if("string"!=typeof u)throw Ri("itkn","Incorrect injection token! Expected service name as string, got {0}",u);o.push(n&&n.hasOwnProperty(u)?n[u]:r(u,i))}return o}function o(e){return 11>=Pr?!1:"function"==typeof e&&/^(?:class\b|constructor\()/.test(Ze(e))}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return Gr(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=Gr(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:rt.$$annotate,has:function(t){return w.hasOwnProperty(t+v)||e.hasOwnProperty(t)}}}t=t===!0;var h={},v="Provider",g=[],M=new Qe([],!0),w={$provide:{provider:n(i),factory:n(s),service:n(c),value:n(u),constant:n(l),decorator:p}},O=w.$injector=d(w,function(e,t){throw Vr.isString(t)&&g.push(t),Ri("unpr","Unknown provider: {0}",g.join(" <- "))}),_={},C=d(_,function(e,t){var n=O.get(e+v,t);return T.invoke(n.$get,n,void 0,e)}),T=C;w["$injector"+v]={$get:b(C)};var z=f(e);return T=C.get("$injector"),T.strictDi=t,r(z,function(e){e&&T.invoke(e)}),T}function it(){var e=!0;this.disableAutoScrolling=function(){ e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===P(e)?(t=e,!0):void 0}),t}function o(){var e=s.yOffset;if(S(e))e=e();else if(D(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else w(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=A(e)?e:n.hash();var t;e?(t=c.getElementById(e))?a(t):(t=i(c.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var c=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){(e!==t||""!==e)&&Fe(function(){r.$evalAsync(s)})}),s}]}function ot(e,t){return e||t?e?t?(Gr(e)&&(e=e.join(" ")),Gr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function at(e){for(var t=0;tl&&this.remove(d.key),t}},get:function(e){if(lt;++t)try{ye[t]()}catch(r){e.push(r)}if(ye=void 0,e.length)throw e})}finally{Oe++}}function k(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function D(e,t,n){Ae.innerHTML="";var r=Ae.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function R(e,t){try{e.addClass(t)}catch(n){}}function B(t,n,r,i,o){t instanceof qr||(t=qr(t));for(var a=/\S+/,s=0,c=t.length;c>s;s++){var u=t[s];u.nodeType===si&&u.nodeValue.match(a)&&ze(u,t[s]=e.document.createElement("span"))}var l=F(t,n,t,r,i,o);B.$$addScopeClass(t);var p=null;return function(e,n,r){ue(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),p||(p=j(s));var c;if(c="html"!==p?qr(pe(p,qr("
").append(t).html())):n?Ci.clone.call(t):t,a)for(var u in a)c.data("$"+u+"Controller",a[u].instance);return B.$$addScopeInfo(c,e),n&&n(c,e),l&&l(e,c,c,i),c}}function j(e){var t=e&&e[0];return t&&"foreignobject"!==P(t)&&Fr.call(t).match(/SVG/)?"svg":"html"}function F(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,c,u,l,p,f,b;if(d){var v=n.length;for(b=new Array(v),u=0;uu;)s=b[h[u++]],o=h[u++],a=h[u++],o?(o.scope?(c=e.$new(),B.$$addScopeInfo(qr(s),c)):c=e,f=o.transcludeOnThisElement?U(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?U(e,t):null,o(a,c,s,r,f)):a&&a(e,s.childNodes,void 0,i)}for(var s,c,u,l,p,f,d,h=[],b=0;bv;v++){var g=!1,w=!1;u=b[v],l=u.name,d=Jr(u.value),f=vt(l),(h=Te.test(f))&&(l=l.replace(Yi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var O=f.match(xe);O&&re(O[1])&&(g=l,w=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),p=vt(l.toLowerCase()),c[p]=l,(h||!n.hasOwnProperty(p))&&(n[p]=d,Ue(e,p)&&(n[p]=!0)),de(e,t,d,p,h),ne(t,p,"A",r,i,g,w)}if(a=e.className,y(a)&&(a=a.animVal),A(a)&&""!==a)for(;o=M.exec(a);)p=vt(o[2]),ne(t,p,"C",r,i)&&(n[p]=Jr(o[3])),a=a.substr(o.index+o[0].length);break;case si:if(11===Pr)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===si;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);le(t,e.nodeValue);break;case ci:V(e,t,n,r,i)}return t.sort(ae),t}function V(e,t,n,r,i){try{var o=v.exec(e.nodeValue);if(o){var a=vt(o[1]);ne(t,a,"M",r,i)&&(n[a]=Jr(o[2]))}}catch(s){}}function Y(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Hi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==oi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return qr(r)}function G(e,t,n){return function(r,i,o,a,s){return i=Y(i[0],t,n),e(r,i,o,a,s)}}function J(e,t,n,r,i,o){var a;return e?B(t,n,r,i,o):function(){return a||(a=B(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function Q(e,t,n,o,a,s,c,l,p){function f(e,t,n,r){e&&(n&&(e=G(e,n,r)),e.require=h.require,e.directiveName=b,(_===h||h.$$isolateScope)&&(e=ve(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=G(t,n,r)),t.require=h.require,t.directiveName=b,(_===h||h.$$isolateScope)&&(t=ve(t,{isolateScope:!0})),l.push(t))}function d(e,o,a,s,p){function f(e,t,n,r){var i;if(T(e)||(r=n,n=t,t=e,e=void 0),$&&(i=M),n||(n=$?z.parent():z),!r)return p(e,t,i,n,q);var o=p.$$slots[r];if(o)return o(e,t,i,n,q);if(m(o))throw Hi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,K(z))}var d,h,b,v,g,M,A,z,x,E;t===a?(x=n,z=n.$$element):(z=qr(a),x=new k(z,n)),g=o,_?v=o.$new(!0):w&&(g=o.$parent),p&&(A=f,A.$$boundTransclude=p,A.isSlotFilled=function(e){return!!p.$$slots[e]}),O&&(M=ee(z,x,A,O,v,o,_)),_&&(B.$$addScopeInfo(z,v,!0,!(C&&(C===_||C===_.$$originalDirective))),B.$$addScopeClass(z,!0),v.$$isolateBindings=_.$$isolateBindings,E=ge(o,x,v,v.$$isolateBindings,_),E.removeWatches&&v.$on("$destroy",E.removeWatches));for(var N in M){var L=O[N],D=M[N],R=L.$$bindings.bindToController;D.identifier&&R?D.bindingInfo=ge(g,x,D.instance,R,L):D.bindingInfo={};var P=D();P!==D.instance&&(D.instance=P,z.data("$"+L.name+"Controller",P),D.bindingInfo.removeWatches&&D.bindingInfo.removeWatches(),D.bindingInfo=ge(g,x,D.instance,R,L))}for(r(O,function(e,t){var n=e.require;e.bindToController&&!Gr(n)&&y(n)&&u(M[t].instance,Z(t,n,z,M))}),r(M,function(e){var t=e.instance;if(S(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(n){i(n)}if(S(t.$onInit))try{t.$onInit()}catch(n){i(n)}S(t.$doCheck)&&(g.$watch(function(){t.$doCheck()}),t.$doCheck()),S(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),d=0,h=c.length;h>d;d++)b=c[d],me(b,b.isolateScope?v:o,z,x,b.require&&Z(b.directiveName,b.require,z,M),A);var q=o;for(_&&(_.template||null===_.templateUrl)&&(q=v),e&&e(q,a.childNodes,void 0,p),d=l.length-1;d>=0;d--)b=l[d],me(b,b.isolateScope?v:o,z,x,b.require&&Z(b.directiveName,b.require,z,M),A);r(M,function(e){var t=e.instance;S(t.$postLink)&&t.$postLink()})}p=p||{};for(var h,b,v,g,M,A=-Number.MAX_VALUE,w=p.newScopeDirective,O=p.controllerDirectives,_=p.newIsolateScopeDirective,C=p.templateDirective,z=p.nonTlbTranscludeDirective,x=!1,E=!1,$=p.hasElementTranscludeDirective,N=n.$$element=qr(t),L=s,D=o,R=!1,q=!1,W=0,j=e.length;j>W;W++){h=e[W];var F=h.$$start,U=h.$$end;if(F&&(N=Y(t,F,U)),v=void 0,A>h.priority)break;if((M=h.scope)&&(h.templateUrl||(y(M)?(ce("new/isolated scope",_||w,h,N),_=h):ce("new/isolated scope",_,h,N)),w=w||h),b=h.name,!R&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var V,Q=W+1;V=e[Q++];)if(V.transclude&&!V.$$tlb||V.replace&&(V.templateUrl||V.template)){q=!0;break}R=!0}if(!h.templateUrl&&h.controller&&(M=h.controller,O=O||he(),ce("'"+b+"' controller",O[b],h,N),O[b]=h),M=h.transclude)if(x=!0,h.$$tlb||(ce("transclusion",z,h,N),z=h),"element"==M)$=!0,A=h.priority,v=N,N=n.$$element=qr(B.$$createComment(b,n[b])),t=N[0],be(a,I(v),t),v[0].$$parentNode=v[0].parentNode,D=J(q,v,o,A,L&&L.name,{nonTlbTranscludeDirective:z});else{var ne=he();if(v=qr(Ee(t)).contents(),y(M)){v=[];var re=he(),ae=he();r(M,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,re[e]=t,ne[t]=null,ae[t]=n}),r(N.contents(),function(e){var t=re[vt(P(e))];t?(ae[t]=!0,ne[t]=ne[t]||[],ne[t].push(e)):v.push(e)}),r(ae,function(e,t){if(!e)throw Hi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var se in ne)ne[se]&&(ne[se]=J(q,ne[se],o))}N.empty(),D=J(q,v,o,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),D.$$slots=ne}if(h.template)if(E=!0,ce("template",C,h,N),C=h,M=S(h.template)?h.template(N,n):h.template,M=Ce(M),h.replace){if(L=h,v=we(M)?[]:gt(pe(h.templateNamespace,Jr(M))),t=v[0],1!=v.length||t.nodeType!==oi)throw Hi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",b,"");be(a,N,t);var ue={$attr:{}},le=H(t,[],ue),fe=e.splice(W+1,e.length-(W+1));(_||w)&&te(le,_,w),e=e.concat(le).concat(fe),ie(n,ue),j=e.length}else N.html(M);if(h.templateUrl)E=!0,ce("template",C,h,N),C=h,h.replace&&(L=h),d=oe(e.splice(W,e.length-W),N,n,a,x&&D,c,l,{controllerDirectives:O,newScopeDirective:w!==h&&w,newIsolateScopeDirective:_,templateDirective:C,nonTlbTranscludeDirective:z}),j=e.length;else if(h.compile)try{g=h.compile(N,n,D);var de=h.$$originalDirective||h;S(g)?f(null,X(de,g),F,U):g&&f(X(de,g.pre),X(de,g.post),F,U)}catch(ye){i(ye,K(N))}h.terminal&&(d.terminal=!0,A=Math.max(A,h.priority))}return d.scope=w&&w.scope===!0,d.transcludeOnThisElement=x,d.templateOnThisElement=E,d.transclude=D,p.hasElementTranscludeDirective=$,d}function Z(e,t,n,i){var o;if(A(t)){var a=t.match(O),s=t.substring(a[0].length),c=a[1]||a[3],u="?"===a[2];if("^^"===c?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var l="$"+s+"Controller";o=c?n.inheritedData(l):n.data(l)}if(!o&&!u)throw Hi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Gr(t)){o=[];for(var p=0,f=t.length;f>p;p++)o[p]=Z(e,t[p],n,i)}else y(t)&&(o={},r(t,function(t,r){o[r]=Z(e,t,n,i)}));return o||null}function ee(e,t,n,r,i,o,a){var s=he();for(var u in r){var l=r[u],p={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]);var d=c(f,p,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}function te(e,t,n){for(var r=0,i=e.length;i>r;r++)e[r]=f(e[r],{$$isolateScope:t,$$newScope:n})}function ne(e,n,r,o,s,c,u){if(n===s)return null;var d=null;if(l.hasOwnProperty(n))for(var h,b=t.get(n+p),v=0,g=b.length;g>v;v++)try{if(h=b[v],(m(o)||o>h.priority)&&-1!=h.restrict.indexOf(r)){if(c&&(h=f(h,{$$start:c,$$end:u})),!h.$$bindings){var M=h.$$bindings=a(h,h.name);y(M.isolateScope)&&(h.$$isolateBindings=M.isolateScope)}e.push(h),d=h}}catch(A){i(A)}return d}function re(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+p),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function ie(e,t){var n=t.$attr,i=e.$attr;e.$$element;r(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){e.hasOwnProperty(r)||"$"===r.charAt(0)||(e[r]=t,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function oe(e,t,n,i,a,s,c,u){var l,p,d=[],h=t[0],b=e.shift(),v=f(b,{templateUrl:null,transclude:null,replace:null,$$originalDirective:b}),m=S(b.templateUrl)?b.templateUrl(t,n):b.templateUrl,g=b.templateNamespace;return t.empty(),o(m).then(function(o){var f,M,A,w;if(o=Ce(o),b.replace){if(A=we(o)?[]:gt(pe(g,Jr(o))),f=A[0],1!=A.length||f.nodeType!==oi)throw Hi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",b.name,m);M={$attr:{}},be(i,t,f);var O=H(f,[],M);y(b.scope)&&te(O,!0),e=O.concat(e),ie(n,M)}else f=h,t.html(o);for(e.unshift(v),l=Q(e,f,n,a,t,b,s,c,u),r(i,function(e,n){e==f&&(i[n]=t[0])}),p=F(t[0].childNodes,a);d.length;){var S=d.shift(),_=d.shift(),C=d.shift(),T=d.shift(),z=t[0];if(!S.$$destroyed){if(_!==h){var x=_.className;u.hasElementTranscludeDirective&&b.replace||(z=Ee(f)),be(C,qr(_),z),R(qr(z),x)}w=l.transcludeOnThisElement?U(S,l.transclude,T):T,l(p,S,z,i,w)}}d=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(l.transcludeOnThisElement&&(o=U(t,l.transclude,i)),l(p,t,n,r,o)))}}function ae(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name"+n+"",r.childNodes[0].childNodes;default:return n}}function fe(e,t){if("srcdoc"==t)return C.HTML;var n=P(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?C.RESOURCE_URL:void 0}function de(e,t,r,i,o){var a=fe(e,i);o=w[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===P(e))throw Hi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",K(e));t.push({priority:100,compile:function(){return{pre:function(e,t,c){var u=c.$$observers||(c.$$observers=he());if(_.test(i))throw Hi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=c[i];l!==r&&(s=l&&n(l,!0,a,o),r=l),s&&(c[i]=s(e),(u[i]||(u[i]=[])).$$inter=!0,(c.$$observers&&c.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?c.$updateClass(e,t):c.$set(i,e)}))}}}})}}function be(t,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(t)for(i=0,o=t.length;o>i;i++)if(t[i]==a){t[i++]=r;for(var u=i,l=u+s-1,p=t.length;p>u;u++,l++)p>l?t[u]=t[l]:delete t[u];t.length-=s-1,t.context===a&&(t.context=r);break}c&&c.replaceChild(r,a);var f=e.document.createDocumentFragment();for(i=0;s>i;i++)f.appendChild(n[i]);for(qr.hasData(a)&&(qr.data(r,qr.data(a)),qr(a).off("$destroy")),qr.cleanData(f.querySelectorAll("*")),i=1;s>i;i++)delete n[i];n[0]=r,n.length=1}function ve(e,t){return u(function(){return e.apply(null,arguments)},e,t)}function me(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,K(n))}}function ge(e,t,i,o,a){function c(t,n,r){S(i.$onChanges)&&n!==r&&(ye||(e.$$postDigest(L),ye=[]),l||(l={},ye.push(u)),l[t]&&(r=l[t].previousValue),l[t]=new bt(r,n))}function u(){i.$onChanges(l),l=void 0}var l,p=[],f={};return r(o,function(r,o){var u,l,h,b,v,m=r.attrName,g=r.optional,y=r.mode;switch(y){case"@":g||Nr.call(t,m)||(i[o]=t[m]=void 0),t.$observe(m,function(e){if(A(e)||$(e)){var t=i[o];c(o,e,t),i[o]=e}}),t.$$observers[m].$$scope=e,u=t[m],A(u)?i[o]=n(u)(e):$(u)&&(i[o]=u),f[o]=new bt(Vi,i[o]);break;case"=":if(!Nr.call(t,m)){if(g)break;t[m]=void 0}if(g&&!t[m])break;l=s(t[m]),b=l.literal?W:function(e,t){return e===t||e!==e&&t!==t},h=l.assign||function(){throw u=i[o]=l(e),Hi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,a.name)},u=i[o]=l(e);var M=function(t){return b(t,i[o])||(b(t,u)?h(e,t=i[o]):i[o]=t),u=t};M.$stateful=!0,v=r.collection?e.$watchCollection(t[m],M):e.$watch(s(t[m],M),null,l.literal),p.push(v);break;case"<":if(!Nr.call(t,m)){if(g)break;t[m]=void 0}if(g&&!t[m])break;l=s(t[m]);var w=i[o]=l(e);f[o]=new bt(Vi,i[o]),v=e.$watch(l,function(e,t){if(t===e){if(t===w)return;t=w}c(o,e,t),i[o]=e},l.literal),p.push(v);break;case"&":if(l=t.hasOwnProperty(m)?s(t[m]):d,l===d&&g)break;i[o]=function(t){return l(e,t)}}}),{initialChanges:f,removeWatches:p.length&&function(){for(var e=0,t=p.length;t>e;++e)p[e]()}}}var ye,Me=/^\w/,Ae=e.document.createElement("div"),Oe=x;k.prototype={$normalize:vt,$addClass:function(e){e&&e.length>0&&E.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&E.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=mt(e,t);n&&n.length&&E.addClass(this.$$element,n);var r=mt(t,e);r&&r.length&&E.removeClass(this.$$element,r)},$set:function(e,t,n,o){var a,s=this.$$element[0],c=Ue(s,e),u=He(e),l=e;if(c?(this.$$element.prop(e,t),o=c):u&&(this[u]=t,l=u),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=se(e,"-"))),a=P(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=N(t,"src"===e);else if("img"===a&&"srcset"===e&&g(t)){for(var p="",f=Jr(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(f)?d:/(,)/,b=f.split(h),v=Math.floor(b.length/2),y=0;v>y;y++){var M=2*y;p+=N(Jr(b[M]),!0),p+=" "+Jr(b[M+1])}var A=Jr(b[2*y]).split(/\s/);p+=N(Jr(A[0]),!0),2===A.length&&(p+=" "+Jr(A[1])),this[e]=t=p}n!==!1&&(null===t||m(t)?this.$$element.removeAttr(o):Me.test(o)?this.$$element.attr(o,t):D(this.$$element[0],o,t));var w=this.$$observers;w&&r(w[l],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=he()),i=r[e]||(r[e]=[]);return i.push(t),b.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||m(n[e])||t(n[e])}),function(){q(i,t)}}};var Se=n.startSymbol(),_e=n.endSymbol(),Ce="{{"==Se&&"}}"==_e?h:function(e){return e.replace(/\{\{/g,Se).replace(/}}/g,_e)},Te=/^ngAttr[A-Z]/,xe=/^(.+)Start$/;return B.$$addBindingInfo=z?function(e,t){var n=e.data("$binding")||[];Gr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:d,B.$$addBindingClass=z?function(e){R(e,"ng-binding")}:d,B.$$addScopeInfo=z?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:d,B.$$addScopeClass=z?function(e,t){R(e,t?"ng-isolate-scope":"ng-scope")}:d,B.$$createComment=function(t,n){var r="";return z&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},B}]}function bt(e,t){this.previousValue=e,this.currentValue=t}function vt(e){return Ae(e.replace(Yi,""))}function mt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o0?" ":"")+a}return n}function gt(e){e=qr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===ci&&Ir.call(e,t,1)}return e}function yt(e,t){if(t&&A(t))return t;if(A(e)){var n=Ki.exec(e);if(n)return n[3]}}function Mt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){pe(t,"controller"),y(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||!y(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,p,f,d;if(s=s===!0,c&&A(c)&&(d=c),A(t)){if(p=t.match(Ki),!p)throw Gi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);f=p[1],d=d||p[3],t=e.hasOwnProperty(f)?e[f]:fe(a.$scope,f,!0)||(n?fe(i,f,!0):void 0),le(t,f,!0)}if(s){var h=(Gr(t)?t[t.length-1]:t).prototype;l=Object.create(h||null),d&&o(a,d,l,f||t.name);var b;return b=u(function(){var e=r.invoke(t,l,a,f);return e!==l&&(y(e)||S(e))&&(l=e,d&&o(a,d,l,f||t.name)),l},{instance:l,identifier:d})}return l=r.instantiate(t,a,f),d&&o(a,d,l,f||t.name),l}}]}function At(){this.$get=["$window",function(e){return qr(e.document)}]}function wt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Ot(e){return y(e)?O(e)?e.toISOString():U(e):e}function St(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||m(e)||(Gr(e)?r(e,function(e){t.push(te(n)+"="+te(Ot(e)))}):t.push(te(n)+"="+te(Ot(e))))}),t.join("&")}}}function _t(){this.$get=function(){return function(e){function t(e,o,a){null===e||m(e)||(Gr(e)?r(e,function(e,n){t(e,o+"["+(y(e)?n:"")+"]")}):y(e)&&!O(e)?i(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(te(o)+"="+te(Ot(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Ct(e,t){if(A(e)){var n=e.replace(no,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Qi)||Tt(n))&&(e=H(n))}}return e}function Tt(e){var t=e.match(eo);return t&&to[t[0]].test(e)}function zt(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=he();return A(e)?r(e.split("\n"),function(e){n=e.indexOf(":"),t(Lr(Jr(e.substr(0,n))),Jr(e.substr(n+1)))}):y(e)&&r(e,function(e,n){t(Lr(n),Jr(e))}),i}function xt(e){var t;return function(n){if(t||(t=zt(e)),n){var r=t[Lr(n)];return void 0===r&&(r=null),r}return t}}function Et(e,t,n,i){return S(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function $t(e){return e>=200&&300>e}function Nt(){var e=this.defaults={transformResponse:[Ct],transformRequest:[function(e){return!y(e)||z(e)||E(e)||x(e)?e:U(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ve(Zi),put:ve(Zi),patch:ve(Zi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return g(e)?(n=!!e,this):n};var i=!0;this.useLegacyPromiseExtensions=function(e){return g(e)?(i=!!e,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,c,l,p,f){function d(n){function o(e,t){for(var n=0,r=t.length;r>n;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function a(e,t){var n,i={};return r(e,function(e,r){S(e)?(n=e(t),null!=n&&(i[r]=n)):i[r]=e}),i}function s(t){var n,r,i,o=e.headers,s=u({},t.headers);o=u({},o.common,o[Lr(t.method)]);e:for(n in o){r=Lr(n);for(i in s)if(Lr(i)===r)continue e;s[n]=o[n]}return a(s,ve(t))}function c(t){var n=t.headers,i=Et(t.data,xt(n),void 0,t.transformRequest);return m(i)&&r(n,function(e,t){"content-type"===Lr(t)&&delete n[t]}),m(t.withCredentials)&&!m(e.withCredentials)&&(t.withCredentials=e.withCredentials),v(t,i).then(l,l)}function l(e){var t=u({},e);return t.data=Et(e.data,e.headers,e.status,d.transformResponse),$t(e.status)?t:p.reject(t)}if(!y(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!A(n.url))throw t("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var d=u({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);d.headers=s(n),d.method=kr(d.method),d.paramSerializer=A(d.paramSerializer)?f.get(d.paramSerializer):d.paramSerializer;var h=[],b=[],g=p.when(d);return r(O,function(e){(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&b.push(e.response,e.responseError)}),g=o(g,h),g=g.then(c),g=o(g,b),i?(g.success=function(e){return le(e,"fn"),g.then(function(t){e(t.data,t.status,t.headers,d)}),g},g.error=function(e){return le(e,"fn"),g.then(null,function(t){e(t.data,t.status,t.headers,d)}),g}):(g.success=io("success"),g.error=io("error")),g}function h(e){r(arguments,function(e){d[e]=function(t,n){return d(u({},n||{},{method:e,url:t}))}})}function b(e){r(arguments,function(e){d[e]=function(t,n,r){return d(u({},r||{},{method:e,url:t,data:n}))}})}function v(t,i){function o(e){if(e){var t={};return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),t}}function c(e,t,r,i){function o(){u(t,e,r,i)}b&&($t(e)?b.put(_,[e,t,zt(r),i]):b.remove(_)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function u(e,n,r,i){n=n>=-1?n:0,($t(n)?A.resolve:A.reject)({data:e,status:n,headers:xt(r),config:t,statusText:i})}function f(e){u(e.data,e.status,ve(e.headers()),e.statusText)}function h(){var e=d.pendingRequests.indexOf(t);-1!==e&&d.pendingRequests.splice(e,1)}var b,v,A=p.defer(),O=A.promise,S=t.headers,_=M(t.url,t.paramSerializer(t.params));if(d.pendingRequests.push(t),O.then(h,h),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(b=y(t.cache)?t.cache:y(e.cache)?e.cache:w),b&&(v=b.get(_),g(v)?N(v)?v.then(f,f):Gr(v)?u(v[1],v[0],ve(v[2]),v[3]):u(v,200,{},"OK"):b.put(_,O)),m(v)){var C=Dn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;C&&(S[t.xsrfHeaderName||e.xsrfHeaderName]=C),a(t.method,_,i,c,S,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))}return O}function M(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var w=c("$http");e.paramSerializer=A(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var O=[];return r(o,function(e){O.unshift(A(e)?f.get(e):f.invoke(e))}),d.pendingRequests=[],h("get","delete","head","jsonp"),b("post","put","patch"),d.defaults=e,d}]}function Lt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function kt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Dt(e,r,e.defer,t,n[0])}]}function Dt(e,t,n,i,o){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=e,r.async=!0,a=function(e){bi(r,"load",a),bi(r,"error",a),o.body.removeChild(r),r=null;var s=-1,c="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},hi(r,"load",a),hi(r,"error",a),o.body.appendChild(r),a}return function(o,s,c,u,l,p,f,h,b,v){function y(){w&&w(),O&&O.abort()}function M(t,r,i,o,a){g(C)&&n.cancel(C),w=O=null,t(r,i,o,a),e.$$completeOutstandingRequest(d)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"===Lr(o))var A=i.createCallback(s),w=a(s,A,function(e,t){var n=200===e&&i.getResponse(A);M(u,e,n,"",t),i.removeCallback(A)});else{var O=t(o,s);O.open(o,s,!0),r(l,function(e,t){g(e)&&O.setRequestHeader(t,e)}),O.onload=function(){var e=O.statusText||"",t="response"in O?O.response:O.responseText,n=1223===O.status?204:O.status;0===n&&(n=t?200:"file"==kn(s).protocol?404:0),M(u,n,t,O.getAllResponseHeaders(),e)};var S=function(){M(u,-1,null,null,""); };if(O.onerror=S,O.onabort=S,r(b,function(e,t){O.addEventListener(t,e)}),r(v,function(e,t){O.upload.addEventListener(t,e)}),f&&(O.withCredentials=!0),h)try{O.responseType=h}catch(_){if("json"!==h)throw _}O.send(m(c)?null:c)}if(p>0)var C=n(y,p);else N(p)&&p.then(y)}}function Rt(){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(d,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=U(e)}return e}function c(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function l(o,l,d,h){function v(e){try{return e=N(e),h&&!g(e)?e:s(e)}catch(t){r(oo.interr(o,t))}}if(!o.length||-1===o.indexOf(e)){var y;if(!l){var M=a(o);y=b(M),y.exp=o,y.expressions=[],y.$$watchDelegate=c}return y}h=!!h;for(var A,w,O,_=0,C=[],T=[],z=o.length,x=[],E=[];z>_;){if(-1==(A=o.indexOf(e,_))||-1==(w=o.indexOf(t,A+p))){_!==z&&x.push(a(o.substring(_)));break}_!==A&&x.push(a(o.substring(_,A))),O=o.substring(A+p,w),C.push(O),T.push(n(O,v)),_=w+f,E.push(x.length),x.push("")}if(d&&x.length>1&&oo.throwNoconcat(o),!l||C.length){var $=function(e){for(var t=0,n=C.length;n>t;t++){if(h&&m(e[t]))return;x[E[t]]=e[t]}return x.join("")},N=function(e){return d?i.getTrusted(d,e):i.valueOf(e)};return u(function(e){var t=0,n=C.length,i=new Array(n);try{for(;n>t;t++)i[t]=T[t](e);return $(i)}catch(a){r(oo.interr(o,a))}},{exp:o,expressions:C,$$watchDelegate:function(e,t){var n;return e.$watchGroup(T,function(r,i){var o=$(r);S(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var p=e.length,f=t.length,d=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function Pt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,c,u){function l(){p?o.apply(null,f):o(b)}var p=arguments.length>4,f=p?I(arguments,4):[],d=t.setInterval,h=t.clearInterval,b=0,v=g(u)&&!u,m=(v?r:n).defer(),y=m.promise;return c=g(c)?c:0,y.$$intervalId=d(function(){v?i.defer(l):e.$evalAsync(l),m.notify(b++),c>0&&b>=c&&(m.resolve(b),h(y.$$intervalId),delete a[y.$$intervalId]),v||e.$apply()},s),a[y.$$intervalId]=m,y}var a={};return o.cancel=function(e){return e&&e.$$intervalId in a?(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0):!1},o}]}function qt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ee(t[n]);return t.join("/")}function Bt(e,t){var n=kn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||co[n.protocol]||null}function Wt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=kn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Q(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function jt(e,t){return 0===e.lastIndexOf(t,0)}function It(e,t){return jt(t,e)?t.substr(e.length):void 0}function Xt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Ft(e){return e.replace(/(#.+)|#$/,"$1")}function Ut(e){return e.substr(0,Xt(e).lastIndexOf("/")+1)}function Ht(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Vt(e,t,n){this.$$html5=!0,n=n||"",Bt(e,this),this.$$parse=function(e){var n=It(t,e);if(!A(n))throw uo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Wt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Z(this.$$search),n=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=qt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return g(o=It(e,r))?(a=o,s=g(o=It(n,o))?t+(It("/",o)||o):e+a):g(o=It(t,r))?s=t+o:t==r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Yt(e,t,n){Bt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return jt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=It(e,r)||It(t,r);m(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",m(a)&&(e=r,this.replace())):(o=It(n,a),m(o)&&(o=a)),Wt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=Z(this.$$search),r=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=qt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Xt(e)==Xt(t)?(this.$$parse(t),!0):!1}}function Gt(e,t,n){this.$$html5=!0,Yt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Xt(r)?o=r:(a=It(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=Z(this.$$search),r=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=qt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Kt(e){return function(){return this[e]}}function Jt(e,t){return function(n){return m(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Qt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return g(t)?(e=t,this):e},this.html5Mode=function(e){return $(e)?(t.enabled=e,this):y(e)?($(e.enabled)&&(t.enabled=e.enabled),$(e.requireBase)&&(t.requireBase=e.requireBase),$(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=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(a){throw u.url(i),u.$$state=o,a}}function c(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,l,p,f=r.baseHref(),d=r.url();if(t.enabled){if(!f&&t.requireBase)throw uo("nobase","$location in HTML5 mode requires a tag to be present!");p=Ht(d)+(f||"/"),l=i.history?Vt:Gt}else p=Xt(d),l=Yt;var h=Ut(p);u=new l(p,h,"#"+e),u.$$parseLinkUrl(d,d),u.$$state=r.state();var b=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=qr(e.target);"a"!==P(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),c=i.attr("href")||i.attr("xlink:href");y(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=kn(s.animVal).href),b.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(s,c)&&(e.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Ft(u.absUrl())!=Ft(d)&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange(function(e,t){return m(It(h,e))?void(a.location.href=e):(n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state;e=Ft(e),u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(v=!1,c(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Ft(r.url()),t=Ft(u.absUrl()),o=r.state(),a=u.$$replace,l=e!==t||u.$$html5&&i.history&&o!==u.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(l&&s(t,a,o===u.$$state?null:u.$$state),c(e,o)))})),u.$$replace=!1}),u}]}function Zt(){var e=!0,t=this;this.debugEnabled=function(t){return g(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?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 o(e){var t=n.console||{},o=t[e]||t.log||d,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return r(arguments,function(t){e.push(i(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function en(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw po("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function tn(e){return e+""}function nn(e,t){if(e){if(e.constructor===e)throw po("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw po("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw po("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw po("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function rn(e,t){if(e){if(e.constructor===e)throw po("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===fo||e===ho||e===bo)throw po("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function on(e,t){if(e&&(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw po("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function an(e,t){return"undefined"!=typeof e?e:t}function sn(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function cn(e,t){var n=e(t);return!n.$stateful}function un(e,t){var n,i;switch(e.type){case yo.Program:n=!0,r(e.body,function(e){un(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case yo.Literal:e.constant=!0,e.toWatch=[];break;case yo.UnaryExpression:un(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case yo.BinaryExpression:un(e.left,t),un(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case yo.LogicalExpression:un(e.left,t),un(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case yo.ConditionalExpression:un(e.test,t),un(e.alternate,t),un(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case yo.Identifier:e.constant=!1,e.toWatch=[e];break;case yo.MemberExpression:un(e.object,t),e.computed&&un(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case yo.CallExpression:n=e.filter?cn(t,e.callee.name):!1,i=[],r(e.arguments,function(e){un(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&cn(t,e.callee.name)?i:[e];break;case yo.AssignmentExpression:un(e.left,t),un(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case yo.ArrayExpression:n=!0,i=[],r(e.elements,function(e){un(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case yo.ObjectExpression:n=!0,i=[],r(e.properties,function(e){un(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case yo.ThisExpression:e.constant=!1,e.toWatch=[];break;case yo.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 pn(e){return e.type===yo.Identifier||e.type===yo.MemberExpression}function fn(e){return 1===e.body.length&&pn(e.body[0].expression)?{type:yo.AssignmentExpression,left:e.body[0].expression,right:{type:yo.NGValueParameter},operator:"="}:void 0}function dn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===yo.Literal||e.body[0].expression.type===yo.ArrayExpression||e.body[0].expression.type===yo.ObjectExpression)}function hn(e){return e.constant}function bn(e,t){this.astBuilder=e,this.$filter=t}function vn(e,t){this.astBuilder=e,this.$filter=t}function mn(e){return"constructor"==e}function gn(e){return S(e.valueOf)?e.valueOf():Ao.call(e)}function yn(){var e,t,n=he(),i=he(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(a){function s(e,t,r){var o,s,u;switch(r=r||M,typeof e){case"string":e=e.trim(),u=e;var v=r?i:n;if(o=v[u],!o){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var g=r?y:m,A=new go(g),w=new Mo(A,a,g);o=w.parse(e),o.constant?o.$$watchDelegate=h:s?o.$$watchDelegate=o.literal?f:p:o.inputs&&(o.$$watchDelegate=l),r&&(o=c(o)),v[u]=o}return b(o,t);case"function":return b(e,t);default:return b(d,t)}}function c(e){function t(t,n,r,i){var o=M;M=!0;try{return e(t,n,r,i)}finally{M=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=c(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&np;p++)c[p]=u,l[p]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;i>n;n++){var s=a[n](e);(t||(t=!u(s,c[n])))&&(l[n]=s,c[n]=s&&gn(s))}return t&&(o=r(e,void 0,void 0,l)),o},t,n,i)}function p(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,S(t)&&t.apply(this,arguments),g(e)&&r.$$postDigest(function(){g(o)&&i()})},n)}function f(e,t,n,i){function o(e){var t=!0;return r(e,function(e){g(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return i(e)},function(e,n,r){s=e,S(t)&&t.call(this,e,n,r),o(e)&&r.$$postDigest(function(){o(s)&&a()})},n)}function h(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function b(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==f&&n!==p,o=i?function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return g(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==l?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=l,r=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var v=Zr().noUnsafeEval,m={csp:v,expensiveChecks:!1,literals:B(o),isIdentifierStart:S(e)&&e,isIdentifierContinue:S(t)&&t},y={csp:v,expensiveChecks:!0,literals:B(o),isIdentifierStart:S(e)&&e,isIdentifierContinue:S(t)&&t},M=!1;return s.$$runningExpensiveChecks=function(){return M},s}]}function Mn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return wn(function(t){e.$evalAsync(t)},t)}]}function An(){this.$get=["$browser","$exceptionHandler",function(e,t){return wn(function(t){e.defer(t)},t)}]}function wn(e,n){function i(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(e){var t,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=i.length;a>o;++o){r=i[o][0],t=i[o][e.status];try{S(t)?r.resolve(t(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(s){r.reject(s),n(s)}}}function s(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){a(t)}))}function c(){this.promise=new i}function l(e){var t=new c,n=0,i=Gr(e)?[]:{};return r(e,function(e,r){n++,g(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise}function p(e){var t=d();return r(e,function(e){g(e).then(t.resolve,t.reject)}),t.promise}var f=t("$q",TypeError),d=function(){var e=new c;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e};u(i.prototype,{then:function(e,t,n){if(m(e)&&m(t)&&m(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&s(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return v(t,!0,e)},function(t){return v(t,!1,e)},t)}}),u(c.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){c||(c=!0,a.$$resolve(e))}function r(e){c||(c=!0,a.$$reject(e))}var i,a=this,c=!1;try{(y(e)||S(e))&&(i=e&&e.then),S(i)?(this.promise.$$state.status=-1,i.call(e,t,r,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(u){r(u),n(u)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(S(e)?e(t):t)}catch(s){n(s)}}})}});var h=function(e){var t=new c;return t.reject(e),t.promise},b=function(e,t){var n=new c;return t?n.resolve(e):n.reject(e),n.promise},v=function(e,t,n){var r=null;try{S(n)&&(r=n())}catch(i){return b(i,!1)}return N(r)?r.then(function(){return b(e,t)},function(e){return b(e,!1)}):b(e,t)},g=function(e,t,n,r){var i=new c;return i.resolve(e),i.promise.then(t,n,r)},M=g,A=function(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!S(e))throw f("norslvr","Expected resolverFn, got '{0}'",e);var r=new c;return e(t,n),r.promise};return A.prototype=i.prototype,A.defer=d,A.reject=h,A.when=g,A.resolve=M,A.all=l,A.race=p,A}function On(){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 Sn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return t.prototype=e,t}var i=10,o=t("$rootScope"),s=null,c=null;this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,u,l){function p(e){e.currentScope.$$destroyed=!0}function f(e){9===Pr&&(e.$$childHead&&f(e.$$childHead),e.$$nextSibling&&f(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function h(){this.$id=a(),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 b(e){if(_.$$phase)throw o("inprog","{0} already in progress",_.$$phase);_.$$phase=e}function v(){_.$$phase=null}function g(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function M(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function A(){}function w(){for(;z.length;)try{z.shift()()}catch(e){t(e)}c=null}function O(){null===c&&(c=l.defer(function(){_.$apply(w)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,r.$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",p),r},$watch:function(e,t,n,r){var i=u(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,a=o.$$watchers,c={fn:t,last:A,get:i,exp:r||e,eq:!!n};return s=null,S(t)||(c.fn=d),a||(a=o.$$watchers=[]),a.unshift(c),g(this,1),function(){q(a,c)>=0&&g(o,-1),s=null}},$watchGroup:function(e,t){function n(){c=!1,u?(u=!1,t(o,o,s)):t(o,i,s)}var i=new Array(e.length),o=new Array(e.length),a=[],s=this,c=!1,u=!0;if(!e.length){var l=!0;return s.$evalAsync(function(){l&&t(o,o,s)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){o[0]=e,i[0]=n,t(o,e===n?o:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){o[t]=e,i[t]=r,c||(c=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function r(e){o=e;var t,r,i,s,c;if(!m(o)){if(y(o))if(n(o)){a!==d&&(a=d,v=a.length=0,p++),t=o.length,v!==t&&(p++,a.length=v=t);for(var u=0;t>u;u++)c=a[u],s=o[u],i=c!==c&&s!==s,i||c===s||(p++,a[u]=s)}else{a!==h&&(a=h={},v=0,p++),t=0;for(r in o)Nr.call(o,r)&&(t++,s=o[r],c=a[r],r in a?(i=c!==c&&s!==s,i||c===s||(p++,a[r]=s)):(v++,a[r]=s,p++));if(v>t){p++;for(r in a)Nr.call(o,r)||(v--,delete a[r])}}else a!==o&&(a=o,p++);return p}}function i(){if(b?(b=!1,t(o,o,c)):t(o,s,c),l)if(y(o))if(n(o)){s=new Array(o.length);for(var e=0;e1,p=0,f=u(e,r),d=[],h={},b=!0,v=0;return this.$watch(f,i)},$digest:function(){var e,n,r,a,u,p,f,d,h,m,g,y,M=i,O=this,z=[];b("$digest"),l.$$checkUrlChange(),this===_&&null!==c&&(l.defer.cancel(c),w()),s=null;do{d=!1,m=O;for(var E=0;EM&&(g=4-M,z[g]||(z[g]=[]),z[g].push({msg:S(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:n,oldVal:r}))}catch($){t($)}if(!(h=m.$$watchersCount&&m.$$childHead||m!==O&&m.$$nextSibling))for(;m!==O&&!(h=m.$$nextSibling);)m=m.$parent}while(m=h);if((d||C.length)&&!M--)throw v(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,z)}while(d||C.length);for(v();xi;i++)if(r[i])try{r[i].apply(null,l)}catch(p){t(p)}else r.splice(i,1),i--,o--;if(c)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,n){var r=this,i=r,o=r,a={name:e,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return a;for(var s,c,u,l=j([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[e]||[],c=0,u=s.length;u>c;c++)if(s[c])try{s[c].apply(null,l)}catch(p){t(p)}else s.splice(c,1),c--,u--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var _=new h,C=_.$$asyncQueue=[],T=_.$$postDigestQueue=[],z=_.$$applyAsyncQueue=[],x=0;return _}]}function _n(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return g(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return g(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=kn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Cn(e){if("self"===e)return e;if(A(e)){if(e.indexOf("***")>-1)throw wo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Qr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(_(e))return new RegExp("^"+e.source+"$");throw wo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Tn(e){var t=[];return g(e)&&r(e,function(e){t.push(Cn(e))}),t}function zn(){this.SCE_CONTEXTS=Oo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Tn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Tn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Dn(t):!!e.exec(t.href)}function i(n){var i,o,a=kn(n.toString()),s=!1;for(i=0,o=e.length;o>i;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;o>i;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=p.hasOwnProperty(e)?p[e]:null;if(!n)throw wo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||m(t)||""===t)return t;if("string"!=typeof t)throw wo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof l?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||m(t)||""===t)return t;var n=p.hasOwnProperty(e)?p[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===Oo.RESOURCE_URL){if(i(t))return t;throw wo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===Oo.HTML)return u(t);throw wo("unsafe","Attempting to use an unsafe value in a safe context.")}var u=function(e){throw wo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(u=n.get("$sanitize"));var l=o(),p={};return p[Oo.HTML]=o(l),p[Oo.CSS]=o(l),p[Oo.URL]=o(l),p[Oo.JS]=o(l),p[Oo.RESOURCE_URL]=o(p[Oo.URL]),{trustAs:a,getTrusted:c,valueOf:s}}]}function xn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Pr)throw wo("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=ve(Oo);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=h),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(Oo,function(e,t){var n=Lr(t);i[Ae("parse_as_"+n)]=function(t){return o(e,t)},i[Ae("get_trusted_"+n)]=function(t){return a(e,t)},i[Ae("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function En(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=p((/android (\d+)/.exec(Lr((e.navigator||{}).userAgent))||[])[1]),c=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,f=u.body&&u.body.style,d=!1,h=!1;if(f){for(var b in f)if(r=l.exec(b)){n=r[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in f&&"webkit"),d=!!("transition"in f||n+"Transition"in f),h=!!("animation"in f||n+"Animation"in f),!s||d&&h||(d=A(f.webkitTransition),h=A(f.webkitAnimation))}return{history:!(!a||4>s||c),hasEvent:function(e){if("input"===e&&11>=Pr)return!1;if(m(i[e])){var t=u.createElement("div");i[e]="on"+e in t}return i[e]},csp:Zr(),vendorPrefix:n,transitions:d,animations:h,android:s}}]}function $n(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){function c(e){if(!s)throw So("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return r.reject(e)}o.totalPendingRequests++,(!A(a)||m(t.get(a)))&&(a=i.getTrustedResourceUrl(a));var l=n.defaults&&n.defaults.transformResponse;return Gr(l)?l=l.filter(function(e){return e!==Ct}):l===Ct&&(l=null),n.get(a,u({cache:t,transformResponse:l},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},c)}return o.totalPendingRequests=0,o}]}function Nn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),o=[];return r(i,function(e){var i=Vr.element(e).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Qr(t)+"(\\s|\\||$)");i.test(r)&&o.push(e)}else-1!=r.indexOf(t)&&o.push(e)})}),o},i.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(c=t(o.substring(0,s)),m(r[c])&&(r[c]=t(o.substring(s+1))));return r}}function qn(){this.$get=Pn}function Bn(e){function t(i,o){if(y(i)){var a={};return r(i,function(e,n){a[n]=t(n,e)}),a}return e.factory(i+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Fn),t("date",or),t("filter",Wn),t("json",ar),t("limitTo",sr),t("lowercase",Lo),t("number",Un),t("orderBy",ur),t("uppercase",ko)}function Wn(){ return function(e,r,i,o){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,c=Xn(r);switch(c){case"function":a=r;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=jn(r,i,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function jn(e,t,n,r){var i,o=y(e)&&n in e;return t===!0?t=W:S(t)||(t=function(e,t){return m(e)?!1:null===e||null===t?e===t:y(t)||y(e)&&!v(e)?!1:(e=Lr(""+e),t=Lr(""+t),-1!==e.indexOf(t))}),i=function(i){return o&&!y(i)?In(i,e[n],t,n,!1):In(i,e,t,n,r)}}function In(e,t,n,r,i,o){var a=Xn(e),s=Xn(t);if("string"===s&&"!"===t.charAt(0))return!In(e,t.substring(1),n,r,i);if(Gr(e))return e.some(function(e){return In(e,t,n,r,i)});switch(a){case"object":var c;if(i){for(c in e)if("$"!==c.charAt(0)&&In(e[c],t,n,r,!0))return!0;return o?!1:In(e,t,n,r,!1)}if("object"===s){for(c in t){var u=t[c];if(!S(u)&&!m(u)){var l=c===r,p=l?e:e[c];if(!In(p,u,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Xn(e){return null===e?"null":typeof e}function Fn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return m(n)&&(n=t.CURRENCY_SYM),m(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Yn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Un(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Yn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Hn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(zo))>-1&&(e=e.replace(zo,"")),(r=e.search(/e/i))>0?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==xo;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==xo;)o--;for(n-=r,t=[],i=0;o>=r;r++,i++)t[i]=+e.charAt(r)}return n>To&&(t=t.splice(0,To-1),a=n-1,n=1),{d:t,e:a,i:n}}function Vn(e,t,n,r){var i=e.d,o=i.length-e.i;t=m(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var c=a;cu;u++)i[u]=0}if(s>=5)if(0>a-1){for(var l=0;l>a;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;op;)l.unshift(0),p++;p>0?d=l.splice(p,l.length):(d=l,l=[0]);var h=[];for(l.length>=t.lgSize&&h.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)h.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&h.unshift(l.join("")),u=h.join(n),d.length&&(u+=r+d.join("")),f&&(u+="e+"+f)}return 0>e&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function Gn(e,t,n,r){var i="";for((0>e||r&&0>=e)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),Gn(a,t,r,i)}}function Jn(e,t,n){return function(r,i){var o=r["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=kr(a+e);return i[s][o]}}function Qn(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)}function Zn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function er(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function tr(e){return function(t){var n=Zn(t.getFullYear()),r=er(t),i=+r-+n,o=1+Math.round(i/6048e5);return Gn(o,e)}}function nr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function rr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ir(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function or(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,u=p(t[5]||0)-o,l=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,c,u,l,f),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,i,o){var a,s,c="",u=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,A(n)&&(n=No.test(n)?p(n):t(n)),w(n)&&(n=new Date(n)),!O(n)||!isFinite(n.getTime()))return n;for(;i;)s=$o.exec(i),s?(u=j(u,s,1),i=u.pop()):(u.push(i),i=null);var l=n.getTimezoneOffset();return o&&(l=V(o,l),n=G(n,o,!0)),r(u,function(t){a=Eo[t],c+=a?a(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function ar(){return function(e,t){return m(t)&&(t=2),U(e,t)}}function sr(){return function(e,t,r){return t=Math.abs(Number(t))===1/0?Number(t):p(t),isNaN(t)?e:(w(e)&&(e=e.toString()),n(e)?(r=!r||isNaN(r)?0:p(r),r=0>r?Math.max(0,e.length+r):r,t>=0?cr(e,r,r+t):0===r?cr(e,t,e.length):cr(e,Math.max(0,r+t),r)):e)}}function cr(e,t,n){return A(e)?e.slice(t,n):jr.call(e,t,n)}function ur(e){function r(t){return t.map(function(t){var n=1,r=h;if(S(t))r=t;else if(A(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return S(e.valueOf)&&(e=e.valueOf(),i(e))?e:v(e)&&(e=e.toString(),i(e))?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&&(y(o)&&(o=e.index),y(a)&&(a=t.index)),o!==a&&(n=a>o?-1:1)}else n=i>r?-1:1;return n}return function(e,i,o,c){function u(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:p.map(function(n){return a(n.get(e),t)})}}function l(e,t){for(var n=0,r=p.length;r>n;n++){var i=d(e.predicateValues[n],t.predicateValues[n]);if(i)return i*p[n].descending*f}return d(e.tieBreaker,t.tieBreaker)*f}if(null==e)return e;if(!n(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);Gr(i)||(i=[i]),0===i.length&&(i=["+"]);var p=r(i),f=o?-1:1,d=S(c)?c:s,h=Array.prototype.map.call(e,u);return h.sort(l),e=h.map(function(e){return e.value})}}function lr(e){return S(e)&&(e={link:e}),e.restrict=e.restrict||"AC",b(e)}function pr(e,t){e.$name=t}function fr(e,t,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Po,a.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){pe(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],r(a.$pending,function(t,n){a.$setValidity(n,null,e)}),r(a.$error,function(t,n){a.$setValidity(n,null,e)}),r(a.$$success,function(t,n){a.$setValidity(n,null,e)}),q(s,e),e.$$parentForm=Po},Tr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(q(r,n),0===r.length&&delete e[t])},$animate:i}),a.$setDirty=function(){i.removeClass(e,Aa),i.addClass(e,wa),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(e,Aa,wa+" "+qo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(e){e.$setPristine()})},a.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){i.addClass(e,qo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function dr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function hr(e,t,n,r,i,o){br(e,t,n,r,i,o),dr(r)}function br(e,t,n,r,i,o){var a=Lr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,u()})}var c,u=function(e){if(c&&(o.defer.cancel(c),c=null),!s){var i=t.val(),u=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Jr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))t.on("input",u);else{var l=function(e,t,n){c||(c=o.defer(function(){c=null,t&&t.value===n||u(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",l)}t.on("change",u),Qo[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Jo,function(e){if(!c){var t=this[$r],n=t.badInput,r=t.typeMismatch;c=o.defer(function(){c=null,(t.badInput!==n||t.typeMismatch!==r)&&u(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function vr(e,t){if(O(e))return e;if(A(e)){Yo.lastIndex=0;var n=Yo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,u=Zn(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,u.getDate()+l,o,a,s,c)}}return NaN}function mr(e,t){return function(n,i){var o,a;if(O(n))return n;if(A(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Io.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(e,n){n=b},a.$observe("min",function(e){b=f(e),s.$validate()})}if(g(a.max)||a.ngMax){var v;s.$validators.max=function(e){return!p(e)||m(v)||n(e)<=v},a.$observe("max",function(e){v=f(e),s.$validate()})}}}function yr(e,t,n,r){var i=t[0],o=r.$$hasNativeValidators=y(i.validity);o&&r.$parsers.push(function(e){var n=t.prop($r)||{};return n.badInput||n.typeMismatch?void 0:e})}function Mr(e,t,n,r,i,o){if(yr(e,t,n,r),br(e,t,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:Uo.test(e)?parseFloat(e):void 0}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!w(e))throw za("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),g(n.min)||n.ngMin){var a;r.$validators.min=function(e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",function(e){g(e)&&!w(e)&&(e=parseFloat(e)),a=w(e)&&!isNaN(e)?e:void 0,r.$validate()})}if(g(n.max)||n.ngMax){var s;r.$validators.max=function(e){return r.$isEmpty(e)||m(s)||s>=e},n.$observe("max",function(e){g(e)&&!w(e)&&(e=parseFloat(e)),s=w(e)&&!isNaN(e)?e:void 0,r.$validate()})}}function Ar(e,t,n,r,i,o){br(e,t,n,r,i,o),dr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Xo.test(n)}}function wr(e,t,n,r,i,o){br(e,t,n,r,i,o),dr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Fo.test(n)}}function Or(e,t,n,r){m(n.name)&&t.attr("name",a());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function Sr(e,t,n,r,i){var o;if(g(r)){if(o=e(r),!o.constant)throw za("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function _r(e,t,n,r,i,o,a,s){var c=Sr(s,e,"ngTrueValue",n.ngTrueValue,!0),u=Sr(s,e,"ngFalseValue",n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return W(e,c)}),r.$parsers.push(function(e){return e?c:u})}function Cr(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[];e:for(var r=0;r0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function f(e,t){var r=i(t,e),o=i(e,t);r=p(r,1),o=p(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function d(e){if(t===!0||(1&a.$index)===t){var n=o(e||[]);if(h){if(!W(e,h)){var r=o(h);f(r,n)}}else u(n)}h=Gr(e)?e.map(function(e){return ve(e)}):ve(e)}var h;a.$watch(c[e],d,!0),c.$observe("class",function(t){d(a.$eval(c[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(c[e]));i===t?u(s):l(s)}})}}}]}function Tr(e){function t(e,t,s){m(t)?n("$pending",e,s):r("$pending",e,s),$(t)?t?(l(a.$error,e,s),u(a.$$success,e,s)):(u(a.$error,e,s),l(a.$$success,e,s)):(l(a.$error,e,s),l(a.$$success,e,s)),a.$pending?(i(_a,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(_a,!1),a.$valid=zr(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var c;c=a.$pending&&a.$pending[e]?void 0:a.$error[e]?!1:a.$$success[e]?!0:null,o(e,c),a.$$parentForm.$setValidity(e,c,a)}function n(e,t,n){a[e]||(a[e]={}),u(a[e],t,n)}function r(e,t,n){a[e]&&l(a[e],t,n),zr(a[e])&&(a[e]=void 0)}function i(e,t){t&&!c[e]?(p.addClass(s,e),c[e]=!0):!t&&c[e]&&(p.removeClass(s,e),c[e]=!1)}function o(e,t){e=e?"-"+se(e,"-"):"",i(ya+e,t===!0),i(Ma+e,t===!1)}var a=e.ctrl,s=e.$element,c={},u=e.set,l=e.unset,p=e.$animate;c[Ma]=!(c[ya]=s.hasClass(ya)),a.$setValidity=t}function zr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function xr(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Er=/^\/(.+)\/([a-z]*)$/,$r="validity",Nr=Object.prototype.hasOwnProperty,Lr=function(e){return A(e)?e.toLowerCase():e},kr=function(e){return A(e)?e.toUpperCase():e},Dr=function(e){return A(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Rr=function(e){return A(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Lr=Dr,kr=Rr);var Pr,qr,Br,Wr,jr=[].slice,Ir=[].splice,Xr=[].push,Fr=Object.prototype.toString,Ur=Object.getPrototypeOf,Hr=t("ng"),Vr=e.angular||(e.angular={}),Yr=0;Pr=e.document.documentMode,d.$inject=[],h.$inject=[];var Gr=Array.isArray,Kr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Jr=function(e){return A(e)?e.trim():e},Qr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#n;++n)if(r=ni[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return ei.name_=i},ti=/:/g,ni=["ng-","data-ng-","ng:","x-ng-"],ri=/[A-Z]/g,ii=!1,oi=1,ai=2,si=3,ci=8,ui=9,li=11,pi={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};xe.expando="ng339";var fi=xe.cache={},di=1,hi=function(e,t,n){e.addEventListener(t,n,!1)},bi=function(e,t,n){e.removeEventListener(t,n,!1)};xe._data=function(e){return this.cache[e[this.expando]]||{}};var vi=/([\:\-\_]+(.))/g,mi=/^moz([A-Z])/,gi={mouseleave:"mouseout",mouseenter:"mouseover"},yi=t("jqLite"),Mi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ai=/<|&#?\w+;/,wi=/<([\w:-]+)/,Oi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Si={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Si.optgroup=Si.option,Si.tbody=Si.tfoot=Si.colgroup=Si.caption=Si.thead,Si.th=Si.td;var _i=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Ci=xe.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),xe(e).on("load",n))},toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return qr(e>=0?this[e]:this[this.length+e])},length:0,push:Xr,sort:[].sort,splice:[].splice},Ti={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ti[Lr(e)]=e});var zi={};r("input,select,option,textarea,button,form,details".split(","),function(e){zi[e]=!0});var xi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:De,removeData:Le,hasData:Se,cleanData:_e},function(e,t){xe[t]=e}),r({data:De,inheritedData:je,scope:function(e){return qr.data(e,"$scope")||je(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return qr.data(e,"$isolateScope")||qr.data(e,"$isolateScopeNoTemplate")},controller:We,injector:function(e){return je(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Re,css:function(e,t,n){return t=Ae(t),g(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var r=e.nodeType;if(r!==si&&r!==ai&&r!==ci){var i=Lr(t);if(Ti[i]){if(!g(n))return e[t]||(e.attributes.getNamedItem(t)||d).specified?i:void 0;n?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(g(n))e.setAttribute(t,n);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?void 0:o}}},prop:function(e,t,n){return g(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(m(t)){var n=e.nodeType;return n===oi||n===si?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(m(t)){if(e.multiple&&"select"===P(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return m(t)?e.innerHTML:($e(e,!0),void(e.innerHTML=t))},empty:Ie},function(e,t){xe.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Ie&&m(2==e.length&&e!==Re&&e!==We?t:n)){if(y(t)){for(r=0;o>r;r++)if(e===De)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=m(a)?Math.min(o,1):o,c=0;s>c;c++){var u=e(this[c],t,n);a=a?a+u:u}return a}for(r=0;o>r;r++)e(this[r],t,n);return this}}),r({removeData:Le,on:function(e,t,n,r){if(g(r))throw yi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Oe(e)){var i=ke(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Ve(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],c=s.length,u=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||hi(e,t,a)),s.push(n)};c--;)t=s[c],gi[t]?(u(gi[t],Ge),u(t,void 0,!0)):u(t)}},off:Ne,one:function(e,t,n){e=qr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;$e(e),r(new xe(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return r(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){t=new xe(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===oi){var n=e.firstChild;r(new xe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){ze(e,qr(t).eq(0).clone()[0])},remove:Xe,detach:function(e){Xe(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new xe(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:qe,removeClass:Pe,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n;m(r)&&(r=!Re(e,t)),(r?qe:Pe)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==li?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ee,triggerHandler:function(e,t,n){var i,o,a,s=t.type||t,c=ke(e),l=c&&c.events,p=l&&l[s];p&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:d,type:s,target:e},t.type&&(i=u(i,t)),o=ve(p),a=n?[i].concat(n):[i],r(o,function(t){i.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){xe.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)m(i)?(i=e(this[o],t,n,r),g(i)&&(i=qr(i))):Be(i,e(this[o],t,n,r));return g(i)?i:this},xe.prototype.bind=xe.prototype.on,xe.prototype.unbind=xe.prototype.off}),Qe.prototype={put:function(e,t){this[Je(e,this.nextUid)]=t},get:function(e){return this[Je(e,this.nextUid)]},remove:function(e){var t=this[e=Je(e,this.nextUid)];return delete this[e],t}};var Ei=[function(){this.$get=[function(){return Qe}]}],$i=/^([^\(]+?)=>/,Ni=/^[^\(]*\(\s*([^\)]*)\)/m,Li=/,/,ki=/^\s*(_?)(\S+?)\1\s*$/,Di=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ri=t("$injector");rt.$$annotate=nt;var Pi=t("$animate"),qi=1,Bi="ng-animate",Wi=function(){this.$get=d},ji=function(){var e=new Qe,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1;return t&&(t=A(t)?t.split(" "):Gr(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){r(t,function(t){var n=e.get(t);if(n){var i=st(t.attr("class")),o="",a="";r(n,function(e,t){var n=!!i[t];e!==n&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&qe(e,o),a&&Pe(e,a)}),e.remove(t)}}),t.length=0}function s(n,r,s){var c=e.get(n)||{},u=o(c,r,!0),l=o(c,s,!1);(u||l)&&(e.put(n,c),t.push(n),1===t.length&&i.$$postDigest(a))}return{enabled:d,on:d,off:d,pin:d,push:function(e,t,r,i){i&&i(),r=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}}}]},Ii=["$provide",function(e){var t=this;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&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Bi+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Pi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Bi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=at(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&&qr(r),i=i&&qr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",ct(o))},move:function(n,r,i,o){return r=r&&qr(r),i=i&&qr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",ct(o))},leave:function(t,n){return e.push(t,"leave",ct(n),function(){t.remove()})},addClass:function(t,n,r){return r=ct(r),r.addClass=ot(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=ct(r),r.removeClass=ot(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=ct(i),i.addClass=ot(i.addClass,n),i.removeClass=ot(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=ct(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=ot(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Xi=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){vo[e]=!0});var mo={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},go=function(e){this.options=e};go.prototype={constructor:go,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||" "===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&56319>=n&&r>=56320&&57343>=r?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=g(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n; throw po("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:yo.Program,body:e}},expressionStatement:function(){return{type:yo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:yo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:yo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:yo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:yo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:yo.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=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:yo.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:yo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:yo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:yo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:yo.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:yo.Identifier,name:e.text}},constant:function(){return{type:yo.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:yo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:yo.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:yo.ObjectExpression,properties:t}},throwError:function(e,t){throw po("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 po("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 po("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):!1},selfReferential:{"this":{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},bn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},un(i,n.$filter);var o,a="";if(this.stage="assign",o=fn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var c=ln(i.body);n.stage="inputs",r(c,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",u)(this.$filter,en,nn,rn,tn,on,an,sn,e);return this.state=this.stage=void 0,l.literal=dn(i),l.constant=hn(i),l},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(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 r(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,i,o,a){var s,c,u,l,p,f=this;if(i=i||d,!a&&g(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));switch(e.type){case yo.Program:r(e.body,function(t,n){f.recurse(t.expression,void 0,void 0,function(e){c=e}),n!==e.body.length-1?f.current().body.push(c,";"):f.return_(c)});break;case yo.Literal:l=this.escape(e.value),this.assign(t,l),i(l);break;case yo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){c=e}),l=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,l),i(l);break;case yo.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}),l="+"===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,l),i(l);break;case yo.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),i(t);break;case yo.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),i(t);break;case yo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),en(e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_("inputs"===f.stage||"s",function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||mn(e.name))&&f.addEnsureSafeObject(t),i(t);break;case yo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,s,void 0,function(){f.if_(f.notNull(s),function(){o&&1!==o&&f.addEnsureSafeAssignContext(s),e.computed?(c=f.nextId(),f.recurse(e.property,c),f.getStringValue(c),f.addEnsureSafeMemberName(c),o&&1!==o&&f.if_(f.not(f.computedMember(s,c)),f.lazyAssign(f.computedMember(s,c),"{}")),l=f.ensureSafeObject(f.computedMember(s,c)),f.assign(t,l),n&&(n.computed=!0,n.name=c)):(en(e.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(s,e.property.name)),f.lazyAssign(f.nonComputedMember(s,e.property.name),"{}")),l=f.nonComputedMember(s,e.property.name),(f.state.expensiveChecks||mn(e.property.name))&&(l=f.ensureSafeObject(l)),f.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))},function(){f.assign(t,"undefined")}),i(t)},!!o);break;case yo.CallExpression:t=t||this.nextId(),e.filter?(c=f.filter(e.callee.name),u=[],r(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),u.push(t)}),l=c+"("+u.join(",")+")",f.assign(t,l),i(t)):(c=f.nextId(),s={},u=[],f.recurse(e.callee,c,s,function(){f.if_(f.notNull(c),function(){f.addEnsureSafeFunction(c),r(e.arguments,function(e){f.recurse(e,f.nextId(),void 0,function(e){u.push(f.ensureSafeObject(e))})}),s.name?(f.state.expensiveChecks||f.addEnsureSafeObject(s.context),l=f.member(s.context,s.name,s.computed)+"("+u.join(",")+")"):l=c+"("+u.join(",")+")",l=f.ensureSafeObject(l),f.assign(t,l)},function(){f.assign(t,"undefined")}),i(t)}));break;case yo.AssignmentExpression:if(c=this.nextId(),s={},!pn(e.left))throw po("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(e.right,c),f.addEnsureSafeObject(f.member(s.context,s.name,s.computed)),f.addEnsureSafeAssignContext(s.context),l=f.member(s.context,s.name,s.computed)+e.operator+c,f.assign(t,l),i(t||l)})},1);break;case yo.ArrayExpression:u=[],r(e.elements,function(e){f.recurse(e,f.nextId(),void 0,function(e){u.push(e)})}),l="["+u.join(",")+"]",this.assign(t,l),i(l);break;case yo.ObjectExpression:u=[],p=!1,r(e.properties,function(e){e.computed&&(p=!0)}),p?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=f.nextId(),f.recurse(e.key,s)):s=e.key.type===yo.Identifier?e.key.name:""+e.key.value,c=f.nextId(),f.recurse(e.value,c),f.assign(f.member(t,s,e.computed),c)})):(r(e.properties,function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,function(e){u.push(f.escape(t.key.type===yo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+u.join(",")+"}",this.assign(t,l)),i(t||l);break;case yo.ThisExpression:this.assign(t,"s"),i("s");break;case yo.LocalsExpression:this.assign(t,"l"),i("l");break;case yo.NGValueParameter:this.assign(t,"v"),i("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){return e?(this.current().body.push(e,"=",t,";"),e):void 0},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(e===!0)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+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},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(A(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw po("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]}},vn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,un(i,n.$filter);var o,a;(o=fn(i))&&(a=this.recurse(o));var s,c=ln(i.body);c&&(s=[],r(c,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var u=[];r(i.body,function(e){u.push(n.recurse(e.expression))});var l=0===i.body.length?d:1===i.body.length?u[0]:function(e,t){var n;return r(u,function(r){n=r(e,t)}),n};return a&&(l.assign=function(e,t,n){return a(e,n,t)}),s&&(l.inputs=s),l.literal=dn(i),l.constant=hn(i),l},recurse:function(e,t,n){var i,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case yo.Literal:return this.value(e.value,t);case yo.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case yo.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case yo.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case yo.Identifier:return en(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||mn(e.name),t,n,s.expression);case yo.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(en(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression);case yo.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){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,r,i){return function(o,a,s,c){var u=a&&e in a?a:o;r&&1!==r&&u&&!u[e]&&(u[e]={});var l=u?u[e]:void 0;return t&&nn(l,i),n?{context:u,name:e,value:l}:l}},computedMember:function(e,t,n,r,i){return function(o,a,s,c){var u,l,p=e(o,a,s,c);return null!=p&&(u=t(o,a,s,c),u=tn(u),en(u,i),r&&1!==r&&(on(p),p&&!p[u]&&(p[u]={})),l=p[u],nn(l,i)),n?{context:p,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,c,u){var l=e(a,s,c,u);i&&1!==i&&(on(l),l&&!l[t]&&(l[t]={}));var p=null!=l?l[t]:void 0;return(n||mn(t))&&nn(p,o),r?{context:l,name:t,value:p}:p}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Mo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new yo(e,n),this.astCompiler=n.csp?new vn(this.ast,t):new bn(this.ast,t)};Mo.prototype={constructor:Mo,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Ao=Object.prototype.valueOf,wo=t("$sce"),Oo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},So=t("$compile"),_o=e.document.createElement("a"),Co=kn(e.location.href);Pn.$inject=["$document"],Bn.$inject=["$provide"];var To=22,zo=".",xo="0";Fn.$inject=["$locale"],Un.$inject=["$locale"];var Eo={yyyy:Kn("FullYear",4,0,!1,!0),yy:Kn("FullYear",2,0,!0,!0),y:Kn("FullYear",1,0,!1,!0),MMMM:Jn("Month"),MMM:Jn("Month",!0),MM:Kn("Month",2,1),M:Kn("Month",1,1),LLLL:Jn("Month",!1,!0),dd:Kn("Date",2),d:Kn("Date",1),HH:Kn("Hours",2),H:Kn("Hours",1),hh:Kn("Hours",2,-12),h:Kn("Hours",1,-12),mm:Kn("Minutes",2),m:Kn("Minutes",1),ss:Kn("Seconds",2),s:Kn("Seconds",1),sss:Kn("Milliseconds",3),EEEE:Jn("Day"),EEE:Jn("Day",!0),a:nr,Z:Qn,ww:tr(2),w:tr(1),G:rr,GG:rr,GGG:rr,GGGG:ir},$o=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,No=/^\-?\d+$/;or.$inject=["$locale"];var Lo=b(Lr),ko=b(kr);ur.$inject=["$parse"];var Do=b({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Fr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Ro={};r(Ti,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=vt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Ro[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(xi,function(e,t){Ro[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Er);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=vt("ng-"+e);Ro[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Fr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Pr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var Po={$addControl:d,$$renameControl:pr,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d,$setSubmitted:d},qo="ng-submitted";fr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Bo=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||d}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:fr,compile:function(n,i){n.addClass(Aa).addClass(ya);var o=i.name?"name":e&&i.ngForm?"ngForm":!1;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()};hi(n[0],"submit",c),n.on("$destroy",function(){t(function(){bi(n[0],"submit",c)},0,!1)})}var l=a[1]||s.$$parentForm;l.$addControl(s);var p=o?r(s.$name):d;o&&(p(e,s),i.$observe(o,function(t){s.$name!==t&&(p(e,void 0),s.$$parentForm.$$renameControl(s,t),(p=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),p(e,void 0),u(s,Po)})}}}};return i}]},Wo=Bo(),jo=Bo(!0),Io=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Xo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Fo=/^(?=.{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])?)*$/,Uo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ho=/^(\d{4,})-(\d{2})-(\d{2})$/,Vo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo=/^(\d{4,})-W(\d\d)$/,Go=/^(\d{4,})-(\d\d)$/,Ko=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Jo="keydown wheel mousedown",Qo=he();r("date,datetime-local,month,time,week".split(","),function(e){Qo[e]=!0});var Zo={text:hr,date:gr("date",Ho,mr(Ho,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gr("datetimelocal",Vo,mr(Vo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gr("time",Ko,mr(Ko,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gr("week",Yo,vr,"yyyy-Www"),month:gr("month",Go,mr(Go,["yyyy","MM"]),"yyyy-MM"),number:Mr,url:Ar,email:wr,radio:Or,checkbox:_r,hidden:d,button:d,submit:d,reset:d,file:d},ea=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Zo[Lr(a.type)]||Zo.text)(i,o,a,s[0],t,e,n,r)}}}}],ta=/^(true|false|\d+)$/,na=function(){return{restrict:"A",priority:100,compile:function(e,t){return ta.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},ra=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=m(e)?"":e})}}}}],ia=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=m(e)?"":e})}}}}],oa=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],aa=b({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),sa=Cr("",!0),ca=Cr("Odd",0),ua=Cr("Even",1),la=lr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),pa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],fa={},da={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=vt("ng-"+e);fa[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};da[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var ha=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,c,u;n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),s&&(u=de(s.clone),e.leave(u).then(function(){u=null}),s=null))})}}}],ba=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Vr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,c,u,l){var p,f,d,h=0,b=function(){f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),d&&(n.leave(d).then(function(){f=null}),f=d,d=null)};r.$watch(o,function(o){var c=function(){!g(s)||s&&!r.$eval(s)||t()},f=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&f===h){var t=r.$new();u.template=e;var s=l(t,function(e){b(),n.enter(e,null,i).then(c)});p=t,d=s,p.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||f===h&&(b(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(b(),u.template=null)})}}}}],va=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return Fr.call(r[0]).match(/SVG/)?(r.empty(),void t(Ce(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],ma=lr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),ga=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Jr(o):o,c=function(e){if(!m(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?Jr(e):e)}),t}};i.$parsers.push(c),i.$formatters.push(function(e){return Gr(e)?e.join(o):void 0}),i.$isEmpty=function(e){return!e||!e.length}}}},ya="ng-valid",Ma="ng-invalid",Aa="ng-pristine",wa="ng-dirty",Oa="ng-untouched",Sa="ng-touched",_a="ng-pending",Ca="ng-empty",Ta="ng-not-empty",za=t("ngModel"),xa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,c,u,l){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=l(n.name||"",!1)(e),this.$$parentForm=Po;var p,f=o(n.ngModel),h=f.assign,b=f,v=h,y=null,M=this;this.$$setOptions=function(e){if(M.$options=e,e&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");b=function(e){var n=f(e);return S(n)&&(n=t(e)),n},v=function(e,t){S(f(e))?r(e,{$$$p:t}):h(e,t)}}else if(!f.assign)throw za("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,K(i))},this.$render=d,this.$isEmpty=function(e){return m(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){M.$isEmpty(e)?(a.removeClass(i,Ta),a.addClass(i,Ca)):(a.removeClass(i,Ca),a.addClass(i,Ta))};var A=0;Tr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){M.$dirty=!1,M.$pristine=!0,a.removeClass(i,wa),a.addClass(i,Aa)}, this.$setDirty=function(){M.$dirty=!0,M.$pristine=!1,a.removeClass(i,Aa),a.addClass(i,wa),M.$$parentForm.$setDirty()},this.$setUntouched=function(){M.$touched=!1,M.$untouched=!0,a.setClass(i,Oa,Sa)},this.$setTouched=function(){M.$touched=!0,M.$untouched=!1,a.setClass(i,Sa,Oa)},this.$rollbackViewValue=function(){s.cancel(y),M.$viewValue=M.$$lastCommittedViewValue,M.$render()},this.$validate=function(){if(!w(M.$modelValue)||!isNaN(M.$modelValue)){var e=M.$$lastCommittedViewValue,t=M.$$rawModelValue,n=M.$valid,r=M.$modelValue,i=M.$options&&M.$options.allowInvalid;M.$$runValidators(t,e,function(e){i||n===e||(M.$modelValue=e?t:void 0,M.$modelValue!==r&&M.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(){var e=M.$$parserName||"parse";return m(p)?(s(e,null),!0):(p||(r(M.$validators,function(e,t){s(t,null)}),r(M.$asyncValidators,function(e,t){s(t,null)})),s(e,p),p)}function o(){var n=!0;return r(M.$validators,function(r,i){var o=r(e,t);n=n&&o,s(i,o)}),n?!0:(r(M.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],i=!0;r(M.$asyncValidators,function(r,o){var a=r(e,t);if(!N(a))throw za("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?u.all(n).then(function(){c(i)},d):c(!0)}function s(e,t){l===A&&M.$setValidity(e,t)}function c(e){l===A&&n(e)}A++;var l=A;return i()&&o()?void a():void c(!1)},this.$commitViewValue=function(){var e=M.$viewValue;s.cancel(y),(M.$$lastCommittedViewValue!==e||""===e&&M.$$hasNativeValidators)&&(M.$$updateEmptyClasses(e),M.$$lastCommittedViewValue=e,M.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){M.$modelValue!==o&&M.$$writeModelToScope()}var n=M.$$lastCommittedViewValue,r=n;if(p=m(r)?void 0:!0)for(var i=0;io;o++){var c=e===n?o:n[o],u=e[c],l=O(u,c),p=v(u,l);if(t.push(p),s[2]||s[1]){var f=g(r,l);t.push(f)}if(s[4]){var d=M(r,l);t.push(d)}}return t}),getOptions:function(){for(var e=[],t={},n=A(r)||[],o=a(n),s=o.length,c=0;s>c;c++){var u=n===o?c:o[c],l=n[u],f=O(l,u),d=h(r,f),b=v(d,f),w=g(r,f),S=y(r,f),_=M(r,f),C=new i(b,d,w,S,_);e.push(C),t[b]=C}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[m(e)]},getViewValueFromOption:function(e){return p?Vr.copy(e.viewValue):e.viewValue}}}}}function s(e,n,o,s){function l(e,t){var n=c.cloneNode(!1);t.appendChild(n),p(e,n)}function p(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function f(){var e=O&&h.readValue();if(O)for(var t=O.items.length-1;t>=0;t--){var r=O.items[t];Xe(g(r.group)?r.element.parentNode:r.element)}O=S.getOptions();var i={};if(A&&n.prepend(d),O.items.forEach(function(e){var t;g(e.group)?(t=i[e.group],t||(t=u.cloneNode(!1),_.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),l(e,t)):l(e,_)}),n[0].appendChild(_),b.$render(),!b.$isEmpty(e)){var o=h.readValue(),a=S.trackBy||v;(a?W(e,o):e===o)||(b.$setViewValue(o),b.$render())}}for(var d,h=s[0],b=s[1],v=o.multiple,m=0,y=n.children(),M=y.length;M>m;m++)if(""===y[m].value){d=y.eq(m);break}var A=!!d,w=qr(c.cloneNode(!1));w.val("?");var O,S=a(o.ngOptions,n,e),_=i[0].createDocumentFragment(),C=function(){A||n.prepend(d),n.val(""),d.prop("selected",!0),d.attr("selected",!0)},T=function(){A||d.remove()},z=function(){n.prepend(w),n.val("?"),w.prop("selected",!0),w.attr("selected",!0)},x=function(){w.remove()};v?(b.$isEmpty=function(e){return!e||0===e.length},h.writeValue=function(e){O.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=O.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},h.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){var n=O.selectValueMap[e];n&&!n.disabled&&t.push(O.getViewValueFromOption(n))}),t},S.trackBy&&e.$watchCollection(function(){return Gr(b.$viewValue)?b.$viewValue.map(function(e){return S.getTrackByValue(e)}):void 0},function(){b.$render()})):(h.writeValue=function(e){var t=O.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(x(),T(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||A?(x(),C()):(T(),z())},h.readValue=function(){var e=O.selectValueMap[n.val()];return e&&!e.disabled?(T(),x(),O.getViewValueFromOption(e)):null},S.trackBy&&e.$watch(function(){return S.getTrackByValue(b.$viewValue)},function(){b.$render()})),A?(d.remove(),t(d)(e),d.removeClass("ng-scope")):d=qr(c.cloneNode(!1)),n.empty(),f(),e.$watchCollection(S.getWatchables,f)}var c=e.document.createElement("option"),u=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=d},post:s}}}],Pa=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,c){function u(e){s.text(e||"")}var l,p=c.count,f=c.$attr.when&&s.attr(c.$attr.when),h=c.offset||0,b=a.$eval(f)||{},v={},g=t.startSymbol(),y=t.endSymbol(),M=g+p+"-"+h+y,A=Vr.noop;r(c,function(e,t){var n=o.exec(t);if(n){var r=(n[1]?"-":"")+Lr(n[2]);b[r]=s.attr(c.$attr[t])}}),r(b,function(e,n){v[n]=t(e.replace(i,M))}),a.$watch(p,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in b||(r=e.pluralCat(r-h)),r!==l&&!(i&&w(l)&&isNaN(l))){A();var o=v[r];m(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+f),A=d,u()):A=a.$watch(o,u),l=r}})}}}],qa=["$parse","$animate","$compile",function(e,i,o){var a="$$NG_REMOVED",s=t("ngRepeat"),c=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},u=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,p){var f=p.ngRepeat,d=o.$$createComment("end ngRepeat",f),h=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var b=h[1],v=h[2],m=h[3],g=h[4];if(h=b.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!h)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",b);var y=h[3]||h[1],M=h[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var A,w,O,S,_={$id:Je};return g?A=e(g):(O=function(e,t){return Je(t)},S=function(e){return e}),function(e,t,o,p,h){A&&(w=function(t,n,r){return M&&(_[M]=t),_[y]=n,_.$index=r,A(e,_)});var b=he();e.$watchCollection(v,function(o){var p,v,g,A,_,C,T,z,x,E,$,N,L=t[0],k=he();if(m&&(e[m]=o),n(o))x=o,z=w||O;else{z=w||S,x=[];for(var D in o)Nr.call(o,D)&&"$"!==D.charAt(0)&&x.push(D)}for(A=x.length,$=new Array(A),p=0;A>p;p++)if(_=o===x?p:x[p],C=o[_],T=z(_,C,p),b[T])E=b[T],delete b[T],k[T]=E,$[p]=E;else{if(k[T])throw r($,function(e){e&&e.scope&&(b[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,T,C);$[p]={id:T,scope:void 0,clone:void 0},k[T]=!0}for(var R in b){if(E=b[R],N=de(E.clone),i.leave(N),N[0].parentNode)for(p=0,v=N.length;v>p;p++)N[p][a]=!0;E.scope.$destroy()}for(p=0;A>p;p++)if(_=o===x?p:x[p],C=o[_],E=$[p],E.scope){g=L;do g=g.nextSibling;while(g&&g[a]);u(E)!=g&&i.move(de(E.clone),null,L),L=l(E),c(E.scope,p,y,C,M,_,A)}else h(function(e,t){E.scope=t;var n=d.cloneNode(!1);e[e.length++]=n,i.enter(e,null,L),L=n,E.clone=e,k[E.id]=E,c(E.scope,p,y,C,M,_,A)});b=k})}}}}],Ba="ng-hide",Wa="ng-hide-animate",ja=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,Ba,{tempClasses:Wa})})}}}],Ia=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,Ba,{tempClasses:Wa})})}}}],Xa=lr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Fa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,c=[],u=[],l=[],p=[],f=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=l.length;o>i;++i)e.cancel(l[i]);for(l.length=0,i=0,o=p.length;o>i;++i){var s=de(u[i].clone);p[i].$destroy();var d=l[i]=e.leave(s);d.then(f(l,i))}u.length=0,p.length=0,(c=a.cases["!"+n]||a.cases["?"])&&r(c,function(n){n.transclude(function(r,i){p.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)})})})}}}],Ua=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Ha=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Va=t("ngTransclude"),Ya=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(e,n){e.length?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}if(!o)throw Va("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",K(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(a,null,c),c&&!o.isSlotFilled(c)&&s()}}}}],Ga=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Ka={$setViewValue:d,$render:d},Ja=["$element","$scope",function(t,n){var r=this,i=new Qe;r.ngModelCtrl=Ka,r.unknownOption=qr(e.document.createElement("option")),r.renderUnknownOption=function(e){var n="? "+Je(e)+" ?";r.unknownOption.val(n),t.prepend(r.unknownOption),t.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=d}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==ci){pe(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),xr(t)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a;n.$observe("value",function(e){g(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Qa=function(){function e(e,t,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Qe(e);r(t.find("option"),function(e){e.selected=g(n.get(e.value))})};var s,c=NaN;e.$watch(function(){c!==o.$viewValue||W(s,o.$viewValue)||(s=ve(o.$viewValue),o.$render()),c=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ja,priority:1,link:{pre:e,post:t}}},Za=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(g(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],es=b({restrict:"E",terminal:!1}),ts=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},ns=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(A(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,K(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||m(o)||o.test(t)}}}}},rs=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=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},is=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}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(ce(),ye(Vr),Vr.module("ngLocale",[],["$provide",function(e){function t(e){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),o=(e*i|0)%i;return{v:r,f:o}}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}})}]),void qr(e.document).ready(function(){re(e.document,ie)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('')},{}],9:[function(e,t,n){t.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(0>t&&(t+=r),0>n&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;n>a;a++,s++)o[s]=i[a];return o.buffer}},{}],10:[function(e,t,n){!function(e){"use strict";n.encode=function(t){var n,r=new Uint8Array(t),i=r.length,o="";for(n=0;i>n;n+=3)o+=e[r[n]>>2],o+=e[(3&r[n])<<4|r[n+1]>>4],o+=e[(15&r[n+1])<<2|r[n+2]>>6],o+=e[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},n.decode=function(t){var n,r,i,o,a,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),p=new Uint8Array(l);for(n=0;c>n;n+=4)r=e.indexOf(t[n]),i=e.indexOf(t[n+1]),o=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),p[u++]=r<<2|i>>4,p[u++]=(15&i)<<4|o>>2,p[u++]=(3&o)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],11:[function(e,t,n){(function(e){function n(e){for(var t=0;ti;i++)t[i]&&(e=t[i].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=i,n.coerce=c,n.disable=a,n.enable=o,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var u,l=0},{ms:81}],16:[function(e,t,n){t.exports=e("./socket"),t.exports.parser=e("engine.io-parser")},{"./socket":17,"engine.io-parser":25}],17:[function(e,t,n){(function(n){function r(e,t){if(!(this instanceof r))return new r(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=l(e),t.hostname=e.host,t.secure="https"==e.protocol||"wss"==e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l(t.host).host),this.secure=null!=t.secure?t.secure:n.location&&"https:"==location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(n.location?location.hostname:"localhost"),this.port=t.port||(n.location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate?t.perMessageDeflate||{}:!1,!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized?!0:t.rejectUnauthorized;var i="object"==typeof n&&n;i.global===i&&t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),this.open()}function i(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o=e("./transports"),a=e("component-emitter"),s=e("debug")("engine.io-client:socket"),c=e("indexof"),u=e("engine.io-parser"),l=e("parseuri"),p=e("parsejson"),f=e("parseqs");t.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=e("./transport"),r.transports=e("./transports"),r.parser=e("engine.io-parser"),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=i(this.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);var n=new o[e]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:t,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders});return n},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(f.onlyBinaryUpgrades){var t=!this.supportsBinary&&f.transport.supportsBinary;p=p||t}p||(s('probe transport "%s" opened',e),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(t){if(!p)if("pong"==t.type&&"probe"==t.data){if(s('probe transport "%s" pong',e),f.upgrading=!0,f.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"==l.name,s('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){p||"closed"!=f.readyState&&(s("changing transport and sending upgrade packet"),u(),f.setTransport(l),l.send([{type:"upgrade"}]),f.emit("upgrade",l),l=null,f.upgrading=!1,f.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=l.name,f.emit("upgradeError",n)}}))}function n(){p||(p=!0,u(),l.close(),l=null)}function i(t){var r=new Error("probe error: "+t);r.transport=l.name,n(),s('probe transport "%s" failed because of error: %s',e,t),f.emit("upgradeError",r)}function o(){i("transport closed")}function a(){i("socket closed")}function c(e){l&&e.name!=l.name&&(s('"%s" works - aborting "%s"',e.name,l.name),n())}function u(){l.removeListener("open",t),l.removeListener("error",i),l.removeListener("close",o),f.removeListener("close",a),f.removeListener("upgrading",c)}s('probing transport "%s"',e);var l=this.createTransport(e,{probe:1}),p=!1,f=this;r.priorWebsocketSuccess=!1,l.once("open",t),l.once("error",i),l.once("close",o),this.once("close",a),this.once("upgrading",c),l.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;t>e;e++)this.probe(this.upgrades[e])}},r.prototype.onPacket=function(e){if("opening"==this.readyState||"open"==this.readyState)switch(s('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(p(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!=t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},r.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},r.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!=this.readyState&&"closed"!=this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function e(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},r.prototype.onError=function(e){s("socket error %j",e),r.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},r.prototype.onClose=function(e,t){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){s('socket close with reason: "%s"',e);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(), this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;r>n;n++)~c(this.transports,e[n])&&t.push(e[n]);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transport":18,"./transports":19,"component-emitter":"component-emitter",debug:"debug","engine.io-parser":25,indexof:"indexof",parsejson:134,parseqs:135,parseuri:"parseuri"}],18:[function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders}var i=e("engine.io-parser"),o=e("component-emitter");t.exports=r,o(r.prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!=this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=i.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":"component-emitter","engine.io-parser":25}],19:[function(e,t,n){(function(t){function r(e){var n,r=!1,s=!1,c=!1!==e.jsonp;if(t.location){var u="https:"==location.protocol,l=location.port;l||(l=u?443:80),r=e.hostname!=location.hostname||l!=e.port,s=e.secure!=u}if(e.xdomain=r,e.xscheme=s,n=new i(e),"open"in n&&!e.forceJSONP)return new o(e);if(!c)throw new Error("JSONP disabled");return new a(e)}var i=e("xmlhttprequest-ssl"),o=e("./polling-xhr"),a=e("./polling-jsonp"),s=e("./websocket");n.polling=r,n.websocket=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling-jsonp":20,"./polling-xhr":21,"./websocket":23,"xmlhttprequest-ssl":24}],20:[function(e,t,n){(function(n){function r(){}function i(e){o.call(this,e),this.query=this.query||{},s||(n.___eio||(n.___eio=[]),s=n.___eio),this.index=s.length;var t=this;s.push(function(e){t.onData(e)}),this.query.j=this.index,n.document&&n.addEventListener&&n.addEventListener("beforeunload",function(){t.script&&(t.script.onerror=r)},!1)}var o=e("./polling"),a=e("component-inherit");t.exports=i;var s,c=/\n/g,u=/\\n/g;a(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},i.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(e){i.onError("jsonp polling iframe removal error",e)}try{var t='