text: !function(e,t,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o="["+(e?e+":":"")+i+"] ",a=arguments[1],s=arguments;for(n=o+a.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t+2<s.length?ce(s[t+2]):e}),n=n+"\nhttp://errors.angularjs.org/1.3.5/"+(e?e+"/":"")+i,r=2;r<arguments.length;r++)n=n+(2==r?"?":"&")+"p"+(r-2)+"="+encodeURIComponent(ce(arguments[r]));return new t(n)}}function i(e){if(null==e||D(e))return!1;var t=e.length;return!(e.nodeType!==lr||!t)||(w(e)||tr(e)||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t,n){var r,a;if(e)if(x(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(tr(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);return e}function a(e){return Object.keys(e).sort()}function s(e,t,n){for(var r=a(e),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function l(e){return function(t,n){e(n,t)}}function u(){return++Qn}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function d(e){for(var t=e.$$hashKey,n=1,r=arguments.length;n<r;n++){var i=arguments[n];if(i)for(var o=Object.keys(i),a=0,s=o.length;a<s;a++){var l=o[a];e[l]=i[l]}}return c(e,t),e}function f(e){return parseInt(e,10)}function h(e,t){return d(Object.create(e),t)}function p(){}function m(e){return e}function $(e){return function(){return e}}function g(e){return void 0===e}function v(e){return void 0!==e}function y(e){return null!==e&&"object"==typeof e}function w(e){return"string"==typeof e}function b(e){return"number"==typeof e}function S(e){return"[object Date]"===Kn.call(e)}function x(e){return"function"==typeof e}function k(e){return"[object RegExp]"===Kn.call(e)}function D(e){return e&&e.window===e}function C(e){return e&&e.$evalAsync&&e.$watch}function M(e){return"[object File]"===Kn.call(e)}function _(e){return"[object Blob]"===Kn.call(e)}function T(e){return"boolean"==typeof e}function A(e){return e&&x(e.then)}function E(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function O(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function P(e){return Rn(e.nodeName||e[0]&&e[0].nodeName)}function V(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),t}function F(e,t,n,r){if(D(e)||C(e))throw Jn("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw Jn("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],y(e)){var i=n.indexOf(e);if(-1!==i)return r[i];n.push(e),r.push(t)}var a;if(tr(e)){t.length=0;for(var s=0;s<e.length;s++)a=F(e[s],null,n,r),y(e[s])&&(n.push(e[s]),r.push(a)),t.push(a)}else{var l=t.$$hashKey;tr(t)?t.length=0:o(t,function(e,n){delete t[n]});for(var u in e)e.hasOwnProperty(u)&&(a=F(e[u],null,n,r),y(e[u])&&(n.push(e[u]),r.push(a)),t[u]=a);c(t,l)}}else if(t=e,e)if(tr(e))t=F(e,[],n,r);else if(S(e))t=new Date(e.getTime());else if(k(e))t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex;else if(y(e)){var d=Object.create(Object.getPrototypeOf(e));t=F(e,d,n,r)}return t}function N(e,t){if(tr(e)){t=t||[];for(var n=0,r=e.length;n<r;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 H(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!tr(e)){if(S(e))return!!S(t)&&H(e.getTime(),t.getTime());if(k(e)&&k(t))return e.toString()==t.toString();if(C(e)||C(t)||D(e)||D(t)||tr(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!x(e[i])){if(!H(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t[i]!==n&&!x(t[i]))return!1;return!0}if(!tr(t))return!1;if((r=e.length)==t.length){for(i=0;i<r;i++)if(!H(e[i],t[i]))return!1;return!0}}return!1}function R(e,t,n){return e.concat(zn.call(t,n))}function U(e,t){return zn.call(e,t||0)}function Y(e,t){var n=arguments.length>2?U(arguments,2):[];return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,R(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function I(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:D(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":C(r)&&(i="$SCOPE"),i}function j(e,t){return void 0===e?n:JSON.stringify(e,I,t?"  ":null)}function L(e){return w(e)?JSON.parse(e):e}function q(e){e=qn(e).clone();try{e.empty()}catch(e){}var t=qn("<div>").append(e).html();try{return e[0].nodeType===ur?Rn(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Rn(t)})}catch(e){return Rn(t)}}function W(e){try{return decodeURIComponent(e)}catch(e){}}function B(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=W(t[0]),v(n))){var i=!v(t[1])||W(t[1]);Un.call(r,n)?tr(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function z(e){var t=[];return o(e,function(e,n){tr(e)?o(e,function(e){t.push(Z(n,!0)+(!0===e?"":"="+Z(e,!0)))}):t.push(Z(n,!0)+(!0===e?"":"="+Z(e,!0)))}),t.length?t.join("&"):""}function G(e){return Z(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(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 K(e,t){var n,r,i=or.length;for(e=qn(e),r=0;r<i;++r)if(n=or[r]+t,w(n=e.attr(n)))return n;return null}function J(e,t){var n,r,i={};o(or,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(or,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==K(n,"strict-di"),t(n,r?[r]:[],i))}function X(n,r,i){y(i)||(i={}),i=d({strictDi:!1},i);var a=function(){if(n=qn(n),n.injector()){var e=n[0]===t?"document":q(n);throw Jn("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Ye(r,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!/,l=/^NG_DEFER_BOOTSTRAP!/;if(e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!l.test(e.name))return a();e.name=e.name.replace(l,""),Xn.resumeBootstrap=function(e){o(e,function(e){r.push(e)}),a()}}function Q(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ee(e){return Xn.element(e).injector().get("$$testability")}function te(e,t){return t=t||"_",e.replace(ar,function(e,n){return(n?t:"")+e.toLowerCase()})}function ne(e,t,n){if(!e)throw Jn("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function re(e,t,n){return n&&tr(e)&&(e=e[e.length-1]),ne(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function ie(e,t){if("hasOwnProperty"===e)throw Jn("badname","hasOwnProperty is not a valid {0} name",t)}function oe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&x(e)?Y(o,e):e}function ae(e){var t=e[0],n=e[e.length-1],r=[t];do{if(!(t=t.nextSibling))break;r.push(t)}while(t!==n);return qn(r)}function se(){return Object.create(null)}function le(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),u}}if(!o)throw n("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.",r);var t=[],i=[],s=[],l=e("$injector","invoke","push",i),u={_invokeQueue:t,_configBlocks:i,_runBlocks:s,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:l,run:function(e){return s.push(e),this}};return a&&l(a),u})}})}function ue(e){var t=[];return JSON.stringify(e,function(e,n){if(n=I(e,n),y(n)){if(t.indexOf(n)>=0)return"<<already seen>>";t.push(n)}return n})}function ce(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):void 0===e?"undefined":"string"!=typeof e?ue(e):e}function de(){return++mr}function fe(e){return e.replace(vr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(yr,"Moz$1")}function he(e){return!xr.test(e)}function pe(e){var t=e.nodeType;return t===lr||!t||t===dr}function me(e,t){var n,r,i,a,s=t.createDocumentFragment(),l=[];if(he(e))l.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(kr.exec(e)||["",""])[1].toLowerCase(),i=Cr[r]||Cr._default,n.innerHTML=i[1]+e.replace(Dr,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;l=R(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(l,function(e){s.appendChild(e)}),s}function $e(e,n){n=n||t;var r;return(r=Sr.exec(e))?[n.createElement(r[1])]:(r=me(e,n))?r.childNodes:[]}function ge(e){if(e instanceof ge)return e;var t;if(w(e)&&(e=nr(e),t=!0),!(this instanceof ge)){if(t&&"<"!=e.charAt(0))throw br("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ge(e)}t?Me(this,$e(e)):Me(this,e)}function ve(e){return e.cloneNode(!0)}function ye(e,t){if(t||be(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)be(n[r])}function we(e,t,n,r){if(v(r))throw br("offargs","jqLite#off() does not support the `selector` argument");var i=Se(e),a=i&&i.events,s=i&&i.handle;if(s)if(t)o(t.split(" "),function(t){if(v(n)){var r=a[t];if(V(r||[],n),r&&r.length>0)return}gr(e,t,s),delete a[t]});else for(t in a)"$destroy"!==t&&gr(e,t,s),delete a[t]}function be(e,t){var r=e.ng339,i=r&&pr[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),we(e)),delete pr[r],e.ng339=n}}function Se(e,t){var r=e.ng339,i=r&&pr[r];return t&&!i&&(e.ng339=r=de(),i=pr[r]={events:{},data:{},handle:n}),i}function xe(e,t,n){if(pe(e)){var r=v(n),i=!r&&t&&!y(t),o=!t,a=Se(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];d(s,t)}}}function ke(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function De(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",nr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+nr(t)+" "," ")))})}function Ce(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=nr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",nr(n))}}function Me(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;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function _e(e,t){return Te(e,"$"+(t||"ngController")+"Controller")}function Te(e,t,r){e.nodeType==dr&&(e=e.documentElement);for(var i=tr(t)?t:[t];e;){for(var o=0,a=i.length;o<a;o++)if((r=qn.data(e,i[o]))!==n)return r;e=e.parentNode||e.nodeType===fr&&e.host}}function Ae(e){for(ye(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ee(e,t){t||ye(e);var n=e.parentNode;n&&n.removeChild(e)}function Oe(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):qn(n).on("load",t)}function Pe(e,t){var n=_r[t.toLowerCase()];return n&&Tr[P(e)]&&n}function Ve(e,t){var n=e.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&Ar[t]}function Fe(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(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped},o>1&&(i=N(i));for(var s=0;s<o;s++)n.isImmediatePropagationStopped()||i[s].call(e,n)}};return n.elem=e,n}function Ne(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||u)():r+":"+e}function He(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Re(e){var t=e.toString().replace(Vr,""),n=t.match(Er);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Ue(e,t,n){var r,i,a,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw w(n)&&n||(n=e.name||Re(e)),Fr("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=e.toString().replace(Vr,""),a=i.match(Er),o(a[1].split(Or),function(e){e.replace(Pr,function(e,t,n){r.push(n)})})}e.$inject=r}}else tr(e)?(s=e.length-1,re(e[s],"fn"),r=e.slice(0,s)):re(e,"fn",!0);return r}function Ye(e,t){function r(e){return function(t,n){if(!y(t))return e(t,n);o(t,l(e))}}function i(e,t){if(ie(e,"service"),(x(t)||tr(t))&&(t=C.instantiate(t)),!t.$get)throw Fr("pget","Provider '{0}' must define $get factory method.",e);return D[e+b]=t}function a(e,t){return function(){var r=_.invoke(t,this,n,e);if(g(r))throw Fr("undef","Provider '{0}' must return a value from $get factory method.",e);return r}}function s(e,t,n){return i(e,{$get:!1!==n?a(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return s(e,$(t),!1)}function d(e,t){ie(e,"constant"),D[e]=t,M[e]=t}function f(e,t){var n=C.get(e+b),r=n.$get;n.$get=function(){var e=_.invoke(r,n);return _.invoke(t,null,{$delegate:e})}}function h(e){var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=C.get(r[0]);i[r[1]].apply(i,r[2])}}if(!k.get(e)){k.put(e,!0);try{w(e)?(t=Bn(e),n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):x(e)?n.push(C.invoke(e)):tr(e)?n.push(C.invoke(e)):re(e,"module")}catch(t){throw tr(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Fr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function m(e,n){function r(t){if(e.hasOwnProperty(t)){if(e[t]===v)throw Fr("cdep","Circular dependency found: {0}",t+" <- "+S.join(" <- "));return e[t]}try{return S.unshift(t),e[t]=v,e[t]=n(t)}catch(n){throw e[t]===v&&delete e[t],n}finally{S.shift()}}function i(e,n,i,o){"string"==typeof i&&(o=i,i=null);var a,s,l,u=[],c=Ue(e,t,o);for(s=0,a=c.length;s<a;s++){if("string"!=typeof(l=c[s]))throw Fr("itkn","Incorrect injection token! Expected service name as string, got {0}",l);u.push(i&&i.hasOwnProperty(l)?i[l]:r(l))}return tr(e)&&(e=e[a]),e.apply(n,u)}function o(e,t,n){var r=Object.create((tr(e)?e[e.length-1]:e).prototype),o=i(e,r,t,n);return y(o)||x(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Ue,has:function(t){return D.hasOwnProperty(t+b)||e.hasOwnProperty(t)}}}t=!0===t;var v={},b="Provider",S=[],k=new He([],!0),D={$provide:{provider:r(i),factory:r(s),service:r(u),value:r(c),constant:r(d),decorator:f}},C=D.$injector=m(D,function(){throw Fr("unpr","Unknown provider: {0}",S.join(" <- "))}),M={},_=M.$injector=m(M,function(e){var t=C.get(e+b);return _.invoke(t.$get,t,n,e)});return o(h(e),function(e){_.invoke(e||p)}),_}function Ie(){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){if("a"===P(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(x(e))e=e();else if(E(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else b(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(){var e,t=n.hash();t?(e=l.getElementById(t))?a(e):(e=i(l.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var l=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Oe(function(){r.$evalAsync(s)})}),s}]}function je(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function Le(e,t,r,i){function a(e){try{e.apply(null,U(arguments,1))}finally{if(0===--S)for(;x.length;)try{x.pop()()}catch(e){r.error(e)}}}function s(e,t){!function n(){o(D,function(e){e()}),k=t(n,e)}()}function l(){u(),c()}function u(){C=e.history.state,C=g(C)?null:C,H(C,P)&&(C=P),P=C}function c(){_===f.url()&&M===C||(_=f.url(),M=C,o(E,function(e){e(f.url(),C)}))}function d(e){try{return decodeURIComponent(e)}catch(t){return e}}var f=this,h=t[0],m=e.location,$=e.history,v=e.setTimeout,y=e.clearTimeout,b={};f.isMock=!1;var S=0,x=[];f.$$completeOutstandingRequest=a,f.$$incOutstandingRequestCount=function(){S++},f.notifyWhenNoOutstandingRequests=function(e){o(D,function(e){e()}),0===S?e():x.push(e)};var k,D=[];f.addPollFn=function(e){return g(k)&&s(100,v),D.push(e),e};var C,M,_=m.href,T=t.find("base"),A=null;u(),M=C,f.url=function(t,n,r){if(g(r)&&(r=null),m!==e.location&&(m=e.location),$!==e.history&&($=e.history),t){var o=M===r;if(_===t&&(!i.history||o))return f;var a=_&&$t(_)===$t(t);return _=t,M=r,!i.history||a&&o?(a||(A=t),n?m.replace(t):m.href=t):($[n?"replaceState":"pushState"](r,"",t),u(),M=C),f}return A||m.href.replace(/%27/g,"'")},f.state=function(){return C};var E=[],O=!1,P=null;f.onUrlChange=function(t){return O||(i.history&&qn(e).on("popstate",l),qn(e).on("hashchange",l),O=!0),E.push(t),t},f.$$checkUrlChange=c,f.baseHref=function(){var e=T.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var V={},F="",N=f.baseHref();f.cookies=function(e,t){var i,o,a,s,l;if(!e){if(h.cookie!==F)for(F=h.cookie,o=F.split("; "),V={},s=0;s<o.length;s++)a=o[s],(l=a.indexOf("="))>0&&(e=d(a.substring(0,l)),V[e]===n&&(V[e]=d(a.substring(l+1))));return V}t===n?h.cookie=encodeURIComponent(e)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT":w(t)&&(i=(h.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path="+N).length+1)>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!")},f.defer=function(e,t){var n;return S++,n=v(function(){delete b[n],a(e)},t||0),b[n]=!0,n},f.defer.cancel=function(e){return!!b[e]&&(delete b[e],y(e),a(p),!0)}}function qe(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Le(e,r,t,n)}]}function We(){this.$get=function(){function e(e,n){function i(e){e!=f&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,f),f=e,f.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=d({},n,{id:e}),l={},u=n&&n.capacity||Number.MAX_VALUE,c={},f=null,h=null;return t[e]={put:function(e,t){if(u<Number.MAX_VALUE){i(c[e]||(c[e]={key:e}))}if(!g(t))return e in l||a++,l[e]=t,a>u&&this.remove(h.key),t},get:function(e){if(u<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return l[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=c[e];if(!t)return;t==f&&(f=t.p),t==h&&(h=t.n),o(t.n,t.p),delete c[e]}delete l[e],a--},removeAll:function(){l={},a=0,c={},f=h=null},destroy:function(){l=null,s=null,c=null,delete t[e]},info:function(){return d({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function Be(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ze(e,r){function i(e,t){var n={};return o(e,function(e,r){var i=e.match(/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/);if(!i)throw Rr("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e);n[r]={mode:i[1][0],collection:"*"===i[2],optional:"?"===i[3],attrName:i[4]||r}}),n}var a={},s="Directive",u=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,c=/(([\w\-]+)(?:\:([^;]+))?;?)/,f=O("ngSrc,ngSrcset,src,srcset"),g=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,b=/^(on[a-z]+|formaction)$/;this.directive=function t(n,r){return ie(n,"directive"),w(n)?(ne(r,"directiveFactory"),a.hasOwnProperty(n)||(a[n]=[],e.factory(n+s,["$injector","$exceptionHandler",function(e,t){var r=[];return o(a[n],function(o,a){try{var s=e.invoke(o);x(s)?s={compile:$(s)}:!s.compile&&s.link&&(s.compile=$(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||n,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA",y(s.scope)&&(s.$$isolateBindings=i(s.scope,s.name)),r.push(s)}catch(e){t(e)}}),r}])),a[n].push(r)):o(n,l(t)),this},this.aHrefSanitizationWhitelist=function(e){return v(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var S=!0;this.debugInfoEnabled=function(e){return v(e)?(S=e,this):S},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,i,l,$,v,k,D,M,_,T){function A(e,t){try{e.addClass(t)}catch(e){}}function E(e,t,n,r,i){e instanceof qn||(e=qn(e)),o(e,function(t,n){t.nodeType==ur&&t.nodeValue.match(/\S+/)&&(e[n]=qn(t).wrap("<span></span>").parent()[0])});var a=F(e,t,e,n,r,i);E.$$addScopeClass(e);var s=null;return function(t,n,r){ne(t,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,l=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=O(l));var u;if(u="html"!==s?qn(X(s,qn("<div>").append(e).html())):n?Mr.clone.call(e):e,o)for(var c in o)u.data("$"+c+"Controller",o[c].instance);return E.$$addScopeInfo(u,t),n&&n(u,t),a&&a(t,u,u,i),u}}function O(e){var t=e&&e[0];return t&&"foreignobject"!==P(t)&&t.toString().match(/SVG/)?"svg":"html"}function F(e,t,r,i,o,a){function s(e,r,i,o){var a,s,l,u,c,d,f,h,$;if(p){var g=r.length;for($=new Array(g),c=0;c<m.length;c+=3)f=m[c],$[f]=r[f]}else $=r;for(c=0,d=m.length;c<d;)l=$[m[c++]],a=m[c++],s=m[c++],a?(a.scope?(u=e.$new(),E.$$addScopeInfo(qn(l),u)):u=e,h=a.transcludeOnThisElement?N(e,a.transclude,o,a.elementTranscludeOnThisElement):!a.templateOnThisElement&&o?o:!o&&t?N(e,t):null,a(s,u,l,i,h)):s&&s(e,l.childNodes,n,o)}for(var l,u,c,d,f,h,p,m=[],$=0;$<e.length;$++)l=new ae,u=R(e[$],[],l,0===$?i:n,o),c=u.length?j(u,e[$],l,t,r,null,[],[],a):null,c&&c.scope&&E.$$addScopeClass(l.$$element),f=c&&c.terminal||!(d=e[$].childNodes)||!d.length?null:F(d,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||f)&&(m.push($,c,f),h=!0,p=p||c),a=null;return h?s:null}function N(e,t,n,r){return function(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}}function R(e,t,n,r,i){var o,a,s=e.nodeType,l=n.$attr;switch(s){case lr:W(t,Ge(P(e)),"E",r,i);for(var d,f,h,p,m,$,g=e.attributes,v=0,y=g&&g.length;v<y;v++){var b=!1,S=!1;d=g[v],f=d.name,m=nr(d.value),p=Ge(f),($=de.test(p))&&(f=te(p.substr(6),"-"));var x=p.replace(/(Start|End)$/,"");B(x)&&p===x+"Start"&&(b=f,S=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),h=Ge(f.toLowerCase()),l[h]=f,!$&&n.hasOwnProperty(h)||(n[h]=m,Pe(e,h)&&(n[h]=!0)),ee(e,t,m,h,$),W(t,h,"A",r,i,b,S)}if(a=e.className,w(a)&&""!==a)for(;o=c.exec(a);)h=Ge(o[2]),W(t,h,"C",r,i)&&(n[h]=nr(o[3])),a=a.substr(o.index+o[0].length);break;case ur:J(t,e.nodeValue);break;case cr:try{o=u.exec(e.nodeValue),o&&(h=Ge(o[1]),W(t,h,"M",r,i)&&(n[h]=nr(o[2])))}catch(e){}}return t.sort(Z),t}function Y(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Rr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==lr&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return qn(r)}function I(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,a,s,l,u,c,d,f,h){function p(e,t,n,r){e&&(n&&(e=I(e,n,r)),e.require=D.require,e.directiveName=M,(V===D||D.$$isolateScope)&&(e=ie(e,{isolateScope:!0})),d.push(e)),t&&(n&&(t=I(t,n,r)),t.require=D.require,t.directiveName=M,(V===D||D.$$isolateScope)&&(t=ie(t,{isolateScope:!0})),f.push(t))}function m(e,t,n,r){var i,a,s="data",l=!1,u=n;if(w(t)){if(a=t.match(g),t=t.substring(a[0].length),a[3]&&(a[1]?a[3]=null:a[1]=a[3]),"^"===a[1]?s="inheritedData":"^^"===a[1]&&(s="inheritedData",u=n.parent()),"?"===a[2]&&(l=!0),i=null,r&&"data"===s&&(i=r[t])&&(i=i.instance),!(i=i||u[s]("$"+t+"Controller"))&&!l)throw Rr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return i||null}return tr(t)&&(i=[],o(t,function(t){i.push(m(e,t,n,r))})),i}function b(e,t,i,l,u){function c(e,t,r){var i;return C(e)||(r=t,t=e,e=n),B&&(i=b),r||(r=B?x.parent():x),u(e,t,i,r,T)}var h,p,g,y,w,b,S,x,D;if(a===i?(D=s,x=s.$$element):(x=qn(i),D=new ae(x,s)),V&&(w=t.$new(!0)),u&&(S=c,S.$$boundTransclude=u),P&&(k={},b={},o(P,function(e){var n,r={$scope:e===V||e.$$isolateScope?w:t,$element:x,$attrs:D,$transclude:S};y=e.controller,"@"==y&&(y=D[e.name]),n=v(y,r,!0,e.controllerAs),b[e.name]=n,B||x.data("$"+e.name+"Controller",n.instance),k[e.name]=n})),V){E.$$addScopeInfo(x,w,!0,!(F&&(F===V||F===V.$$originalDirective))),E.$$addScopeClass(x,!0);var M=k&&k[V.name],_=w;M&&M.identifier&&!0===V.bindToController&&(_=M.instance),o(w.$$isolateBindings=V.$$isolateBindings,function(e,n){var i,o,a,s,l=e.attrName,u=e.optional,c=e.mode;switch(c){case"@":D.$observe(l,function(e){_[n]=e}),D.$$observers[l].$$scope=t,D[l]&&(_[n]=r(D[l])(t));break;case"=":if(u&&!D[l])return;o=$(D[l]),s=o.literal?H:function(e,t){return e===t||e!==e&&t!==t},a=o.assign||function(){throw i=_[n]=o(t),Rr("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",D[l],V.name)},i=_[n]=o(t);var d=function(e){return s(e,_[n])||(s(e,i)?a(t,e=_[n]):_[n]=e),i=e};d.$stateful=!0;var f;f=e.collection?t.$watchCollection(D[l],d):t.$watch($(D[l],d),null,o.literal),w.$on("$destroy",f);break;case"&":o=$(D[l]),_[n]=function(e){return o(t,e)}}})}for(k&&(o(k,function(e){e()}),k=null),h=0,p=d.length;h<p;h++)g=d[h],oe(g,g.isolateScope?w:t,x,D,g.require&&m(g.directiveName,g.require,x,b),S);var T=t;for(V&&(V.template||null===V.templateUrl)&&(T=w),e&&e(T,i.childNodes,n,u),h=f.length-1;h>=0;h--)g=f[h],oe(g,g.isolateScope?w:t,x,D,g.require&&m(g.directiveName,g.require,x,b),S)}h=h||{};for(var S,k,D,M,_,T,A,O=-Number.MAX_VALUE,P=h.controllerDirectives,V=h.newIsolateScopeDirective,F=h.templateDirective,N=h.nonTlbTranscludeDirective,j=!1,W=!1,B=h.hasElementTranscludeDirective,Z=s.$$element=qn(a),J=c,Q=l,ee=0,te=e.length;ee<te;ee++){D=e[ee];var ne=D.$$start,se=D.$$end;if(ne&&(Z=Y(a,ne,se)),_=n,O>D.priority)break;if((A=D.scope)&&(D.templateUrl||(y(A)?(K("new/isolated scope",V||S,D,Z),V=D):K("new/isolated scope",V,D,Z)),S=S||D),M=D.name,!D.templateUrl&&D.controller&&(A=D.controller,P=P||{},K("'"+M+"' controller",P[M],D,Z),P[M]=D),(A=D.transclude)&&(j=!0,D.$$tlb||(K("transclusion",N,D,Z),N=D),"element"==A?(B=!0,O=D.priority,_=Z,Z=s.$$element=qn(t.createComment(" "+M+": "+s[M]+" ")),a=Z[0],re(u,U(_),a),Q=E(_,l,O,J&&J.name,{nonTlbTranscludeDirective:N})):(_=qn(ve(a)).contents(),Z.empty(),Q=E(_,l))),D.template)if(W=!0,K("template",F,D,Z),F=D,A=x(D.template)?D.template(Z,s):D.template,A=ce(A),D.replace){if(J=D,_=he(A)?[]:Ke(X(D.templateNamespace,nr(A))),a=_[0],1!=_.length||a.nodeType!==lr)throw Rr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",M,"");re(u,Z,a);var le={$attr:{}},ue=R(a,[],le),de=e.splice(ee+1,e.length-(ee+1));V&&L(ue),e=e.concat(ue).concat(de),z(s,le),te=e.length}else Z.html(A);if(D.templateUrl)W=!0,K("template",F,D,Z),F=D,D.replace&&(J=D),b=G(e.splice(ee,e.length-ee),Z,s,u,j&&Q,d,f,{controllerDirectives:P,newIsolateScopeDirective:V,templateDirective:F,nonTlbTranscludeDirective:N}),te=e.length;else if(D.compile)try{T=D.compile(Z,s,Q),x(T)?p(null,T,ne,se):T&&p(T.pre,T.post,ne,se)}catch(e){i(e,q(Z))}D.terminal&&(b.terminal=!0,O=Math.max(O,D.priority))}return b.scope=S&&!0===S.scope,b.transcludeOnThisElement=j,b.elementTranscludeOnThisElement=B,b.templateOnThisElement=W,b.transclude=Q,h.hasElementTranscludeDirective=B,b}function L(e){for(var t=0,n=e.length;t<n;t++)e[t]=h(e[t],{$$isolateScope:!0})}function W(t,r,o,l,u,c,d){if(r===u)return null;var f=null;if(a.hasOwnProperty(r))for(var p,m=e.get(r+s),$=0,g=m.length;$<g;$++)try{p=m[$],(l===n||l>p.priority)&&-1!=p.restrict.indexOf(o)&&(c&&(p=h(p,{$$start:c,$$end:d})),t.push(p),f=p)}catch(e){i(e)}return f}function B(t){if(a.hasOwnProperty(t))for(var n,r=e.get(t+s),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function z(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(A(i,t),e.class=(e.class?e.class+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function G(e,t,n,r,i,a,s,u){var c,f,h=[],p=t[0],m=e.shift(),$=d({},m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=x(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,v=m.templateNamespace;return t.empty(),l(M.getTrustedResourceUrl(g)).then(function(l){var d,w,b,S;if(l=ce(l),m.replace){if(b=he(l)?[]:Ke(X(v,nr(l))),d=b[0],1!=b.length||d.nodeType!==lr)throw Rr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);w={$attr:{}},re(r,t,d);var x=R(d,[],w);y(m.scope)&&L(x),e=x.concat(e),z(n,w)}else d=p,t.html(l);for(e.unshift($),c=j(e,d,n,i,t,m,a,s,u),o(r,function(e,n){e==d&&(r[n]=t[0])}),f=F(t[0].childNodes,i);h.length;){var k=h.shift(),D=h.shift(),C=h.shift(),M=h.shift(),_=t[0];if(!k.$$destroyed){if(D!==p){var T=D.className;u.hasElementTranscludeDirective&&m.replace||(_=ve(d)),re(C,qn(D),_),A(qn(_),T)}S=c.transcludeOnThisElement?N(k,c.transclude,M):M,c(f,k,_,r,S)}}h=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(h?h.push(t,n,r,o):(c.transcludeOnThisElement&&(o=N(t,c.transclude,i)),c(f,t,n,r,o)))}}function Z(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function K(e,t,n,r){if(t)throw Rr("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,q(r))}function J(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&E.$$addBindingClass(t),function(e,t){var i=t.parent();r||E.$$addBindingClass(i),E.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function X(e,n){switch(e=Rn(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Q(e,t){if("srcdoc"==t)return M.HTML;var n=P(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?M.RESOURCE_URL:void 0}function ee(e,t,n,i,o){var a=r(n,!0);if(a){if("multiple"===i&&"select"===P(e))throw Rr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",q(e));t.push({priority:100,compile:function(){return{pre:function(t,n,s){
  var l=s.$$observers||(s.$$observers={});if(b.test(i))throw Rr("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");s[i]&&(a=r(s[i],!0,Q(e,i),f[i]||o))&&(s[i]=a(t),(l[i]||(l[i]=[])).$$inter=!0,(s.$$observers&&s.$$observers[i].$$scope||t).$watch(a,function(e,t){"class"===i&&e!=t?s.$updateClass(e,t):s.$set(i,e)}))}}}})}}function re(e,n,r){var i,o,a=n[0],s=n.length,l=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var u=i,c=u+s-1,d=e.length;u<d;u++,c++)c<d?e[u]=e[c]:delete e[u];e.length-=s-1,e.context===a&&(e.context=r);break}l&&l.replaceChild(r,a);var f=t.createDocumentFragment();f.appendChild(a),qn(r).data(qn(a).data()),Wn?(er=!0,Wn.cleanData([a])):delete qn.cache[a[qn.expando]];for(var h=1,p=n.length;h<p;h++){var m=n[h];qn(m).remove(),f.appendChild(m),delete n[h]}n[0]=r,n.length=1}function ie(e,t){return d(function(){return e.apply(null,arguments)},e,t)}function oe(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(e){i(e,q(n))}}var ae=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e};ae.prototype={$normalize:Ge,$addClass:function(e){e&&e.length>0&&_.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&_.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Ze(e,t);n&&n.length&&_.addClass(this.$$element,n);var r=Ze(t,e);r&&r.length&&_.removeClass(this.$$element,r)},$set:function(e,t,r,a){var s,l=this.$$element[0],u=Pe(l,e),c=Ve(l,e),d=e;if(u?(this.$$element.prop(e,t),a=u):c&&(this[c]=t,d=c),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e])||(this.$attr[e]=a=te(e,"-")),"a"===(s=P(this.$$element))&&"href"===e||"img"===s&&"src"===e)this[e]=t=T(t,"src"===e);else if("img"===s&&"srcset"===e){for(var f="",h=nr(t),p=/\s/.test(h)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,m=h.split(p),$=Math.floor(m.length/2),g=0;g<$;g++){var v=2*g;f+=T(nr(m[v]),!0),f+=" "+nr(m[v+1])}var y=nr(m[2*g]).split(/\s/);f+=T(nr(y[0]),!0),2===y.length&&(f+=" "+nr(y[1])),this[e]=t=f}!1!==r&&(null===t||t===n?this.$$element.removeAttr(a):this.$$element.attr(a,t));var w=this.$$observers;w&&o(w[d],function(e){try{e(t)}catch(e){i(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=se()),i=r[e]||(r[e]=[]);return i.push(t),k.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(e)&&t(n[e])}),function(){V(i,t)}}};var le=r.startSymbol(),ue=r.endSymbol(),ce="{{"==le||"}}"==ue?m:function(e){return e.replace(/\{\{/g,le).replace(/}}/g,ue)},de=/^ngAttr[A-Z]/;return E.$$addBindingInfo=S?function(e,t){var n=e.data("$binding")||[];tr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:p,E.$$addBindingClass=S?function(e){A(e,"ng-binding")}:p,E.$$addScopeInfo=S?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:p,E.$$addScopeClass=S?function(e,t){A(e,t?"ng-isolate-scope":"ng-scope")}:p,E}]}function Ge(e){return fe(e.replace(Ur,""))}function Ze(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function Ke(e){e=qn(e);var t=e.length;if(t<=1)return e;for(;t--;){e[t].nodeType===cr&&Gn.call(e,t,1)}return e}function Je(){var e={},t=!1;this.register=function(t,n){ie(t,"controller"),y(t)?d(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,o){function a(e,t,n,i){if(!e||!y(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,s,l,u){var c,f,h,p;if(l=!0===l,u&&w(u)&&(p=u),w(r)&&(f=r.match(/^(\S+)(\s+as\s+(\w+))?$/),h=f[1],p=p||f[3],r=e.hasOwnProperty(h)?e[h]:oe(s.$scope,h,!0)||(t?oe(o,h,!0):n),re(r,h,!0)),l){var m=(tr(r)?r[r.length-1]:r).prototype;return c=Object.create(m),p&&a(s,p,c,h||r.name),d(function(){return i.invoke(r,c,s,h),c},{instance:c,identifier:p})}return c=i.instantiate(r,s,h),p&&a(s,p,c,h||r.name),c}}]}function Xe(){this.$get=["$window",function(e){return qn(e.document)}]}function Qe(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function et(e,t){if(w(e)){e=e.replace(qr,"");var n=t("Content-Type");(n&&0===n.indexOf(Yr)&&e.trim()||jr.test(e)&&Lr.test(e))&&(e=L(e))}return e}function tt(e){var t,n,r,i=se();return e?(o(e.split("\n"),function(e){r=e.indexOf(":"),t=Rn(nr(e.substr(0,r))),n=nr(e.substr(r+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}function nt(e){var t=y(e)?e:n;return function(n){if(t||(t=tt(e)),n){var r=t[Rn(n)];return void 0===r&&(r=null),r}return t}}function rt(e,t,n){return x(n)?n(e,t):(o(n,function(n){e=n(e,t)}),e)}function it(e){return 200<=e&&e<300}function ot(){var e=this.defaults={transformResponse:[et],transformRequest:[function(e){return!y(e)||M(e)||_(e)?e:j(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:N(Ir),put:N(Ir),patch:N(Ir)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},t=!1;this.useApplyAsync=function(e){return v(e)?(t=!!e,this):t};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,l,u,c,f,h){function p(t){function i(e){var t=d({},e);return e.data?t.data=rt(e.data,e.headers,a.transformResponse):t.data=e.data,it(e.status)?t:f.reject(t)}var a={method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse},s=function(t){var n,r,i,a=e.headers,s=d({},t.headers);a=d({},a.common,a[Rn(t.method)]);e:for(n in a){r=Rn(n);for(i in s)if(Rn(i)===r)continue e;s[n]=a[n]}return function(e){var t;o(e,function(n,r){x(n)&&(t=n(),null!=t?e[r]=t:delete e[r])})}(s),s}(t);if(!Xn.isObject(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);d(a,t),a.headers=s,a.method=Yn(a.method);var l=function(t){s=t.headers;var n=rt(t.data,nt(s),t.transformRequest);return g(n)&&o(s,function(e,t){"content-type"===Rn(t)&&delete s[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,n,s).then(i,i)},u=[l,n],c=f.when(a);for(o(k,function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&u.push(e.response,e.responseError)});u.length;){var h=u.shift(),p=u.shift();c=c.then(h,p)}return c.success=function(e){return c.then(function(t){e(t.data,t.status,t.headers,a)}),c},c.error=function(e){return c.then(null,function(t){e(t.data,t.status,t.headers,a)}),c},c}function m(r,i,o){function s(e,n,r,i){function o(){u(n,e,r,i)}h&&(it(e)?h.put(x,[e,n,tt(r),i]):h.remove(x)),t?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function u(e,t,n,i){t=Math.max(t,0),(it(t)?w.resolve:w.reject)({data:e,status:t,headers:nt(n),config:r,statusText:i})}function d(){var e=p.pendingRequests.indexOf(r);-1!==e&&p.pendingRequests.splice(e,1)}var h,m,w=f.defer(),S=w.promise,x=$(r.url,r.params);if(p.pendingRequests.push(r),S.then(d,d),!r.cache&&!e.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(h=y(r.cache)?r.cache:y(e.cache)?e.cache:b),h)if(m=h.get(x),v(m)){if(A(m))return m.then(d,d),m;tr(m)?u(m[1],m[0],N(m[2]),m[3]):u(m,200,{},"OK")}else h.put(x,S);if(g(m)){var k=Xt(r.url)?l.cookies()[r.xsrfCookieName||e.xsrfCookieName]:n;k&&(o[r.xsrfHeaderName||e.xsrfHeaderName]=k),a(r.method,x,i,s,o,r.timeout,r.withCredentials,r.responseType)}return S}function $(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||g(e)||(tr(e)||(e=[e]),o(e,function(e){y(e)&&(e=S(e)?e.toISOString():j(e)),n.push(Z(t)+"="+Z(e))}))}),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&")),e}var b=u("$http"),k=[];return o(i,function(e){k.unshift(w(e)?h.get(e):h.invoke(e))}),p.pendingRequests=[],function(e){o(arguments,function(e){p[e]=function(t,n){return p(d(n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){p[e]=function(t,n,r){return p(d(r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),p.defaults=e,p}]}function at(){return new e.XMLHttpRequest}function st(){this.$get=["$browser","$window","$document",function(e,t,n){return lt(e,at,e.defer,t.angular.callbacks,n[0])}]}function lt(e,t,r,i,a){function s(e,t,n){var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){gr(r,"load",o),gr(r,"error",o),a.body.removeChild(r),r=null;var s=-1,l="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},$r(r,"load",o),$r(r,"error",o),a.body.appendChild(r),o}return function(a,l,u,c,d,f,h,m){function $(){w&&w(),b&&b.abort()}function g(t,i,o,a,s){x!==n&&r.cancel(x),w=b=null,t(i,o,a,s),e.$$completeOutstandingRequest(p)}if(e.$$incOutstandingRequestCount(),l=l||e.url(),"jsonp"==Rn(a)){var y="_"+(i.counter++).toString(36);i[y]=function(e){i[y].data=e,i[y].called=!0};var w=s(l.replace("JSON_CALLBACK","angular.callbacks."+y),y,function(e,t){g(c,e,i[y].data,"",t),i[y]=p})}else{var b=t();b.open(a,l,!0),o(d,function(e,t){v(e)&&b.setRequestHeader(t,e)}),b.onload=function(){var e=b.statusText||"",t="response"in b?b.response:b.responseText,n=1223===b.status?204:b.status;0===n&&(n=t?200:"file"==Jt(l).protocol?404:0),g(c,n,t,b.getAllResponseHeaders(),e)};var S=function(){g(c,-1,null,null,"")};if(b.onerror=S,b.onabort=S,h&&(b.withCredentials=!0),m)try{b.responseType=m}catch(e){if("json"!==m)throw e}b.send(u||null)}if(f>0)var x=r($,f);else A(f)&&f.then($)}}function ut(){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(o,a,f,h){function p(n){return n.replace(u,e).replace(c,t)}function m(e){try{return e=T(e),h&&!v(e)?e:A(e)}catch(e){var t=Wr("interr","Can't interpolate: {0}\n{1}",o,e.toString());r(t)}}h=!!h;for(var $,y,w,b=0,S=[],k=[],D=o.length,C=[],M=[];b<D;){if(-1==($=o.indexOf(e,b))||-1==(y=o.indexOf(t,$+s))){b!==D&&C.push(p(o.substring(b)));break}b!==$&&C.push(p(o.substring(b,$))),w=o.substring($+s,y),S.push(w),k.push(n(w,m)),b=y+l,M.push(C.length),C.push("")}if(f&&C.length>1)throw Wr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",o);if(!a||S.length){var _=function(e){for(var t=0,n=S.length;t<n;t++){if(h&&g(e[t]))return;C[M[t]]=e[t]}return C.join("")},T=function(e){return f?i.getTrusted(f,e):i.valueOf(e)},A=function(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=j(e)}return e};return d(function(e){var t=0,n=S.length,i=new Array(n);try{for(;t<n;t++)i[t]=k[t](e);return _(i)}catch(e){var a=Wr("interr","Can't interpolate: {0}\n{1}",o,e.toString());r(a)}},{exp:o,expressions:S,$$watchDelegate:function(e,t,n){var r;return e.$watchGroup(k,function(n,i){var o=_(n);x(t)&&t.call(this,o,n!==i?r:o,e),r=o},n)}})}}var s=e.length,l=t.length,u=new RegExp(e.replace(/./g,o),"g"),c=new RegExp(t.replace(/./g,o),"g");return a.startSymbol=function(){return e},a.endSymbol=function(){return t},a}]}function ct(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){function i(i,a,s,l){var u=t.setInterval,c=t.clearInterval,d=0,f=v(l)&&!l,h=(f?r:n).defer(),p=h.promise;return s=v(s)?s:0,p.then(null,null,i),p.$$intervalId=u(function(){h.notify(d++),s>0&&d>=s&&(h.resolve(d),c(p.$$intervalId),delete o[p.$$intervalId]),f||e.$apply()},a),o[p.$$intervalId]=h,p}var o={};return i.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},i}]}function dt(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function ft(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=G(t[n]);return t.join("/")}function ht(e,t){var n=Jt(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||zr[n.protocol]||null}function pt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=Jt(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=B(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function mt(e,t){if(0===t.indexOf(e))return t.substr(e.length)}function $t(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function gt(e){return e.substr(0,$t(e).lastIndexOf("/")+1)}function vt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function yt(e,t){this.$$html5=!0,t=t||"";var r=gt(e);ht(e,this),this.$$parse=function(e){var t=mt(r,e);if(!w(t))throw Gr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r);pt(t,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=z(this.$$search),t=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ft(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,o){if(o&&"#"===o[0])return this.hash(o.slice(1)),!0;var a,s,l;return(a=mt(e,i))!==n?(s=a,l=(a=mt(t,a))!==n?r+(mt("/",a)||a):e+s):(a=mt(r,i))!==n?l=r+a:r==i+"/"&&(l=r),l&&this.$$parse(l),!!l}}function wt(e,t){var n=gt(e);ht(e,this),this.$$parse=function(r){var i=mt(e,r)||mt(n,r),o="#"==i.charAt(0)?mt(t,i):this.$$html5?i:"";if(!w(o))throw Gr("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);pt(o,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var n=z(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ft(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return $t(e)==$t(t)&&(this.$$parse(t),!0)}}function bt(e,t){this.$$html5=!0,wt.apply(this,arguments);var n=gt(e);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==$t(r)?o=r:(a=mt(n,r))?o=e+t+a:n===r+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=z(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ft(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function St(e){return function(){return this[e]}}function xt(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function kt(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return v(e)?(t=e,this):t},this.html5Mode=function(e){return T(e)?(n.enabled=e,this):y(e)?(T(e.enabled)&&(n.enabled=e.enabled),T(e.requireBase)&&(n.requireBase=e.requireBase),T(e.rewriteLinks)&&(n.rewriteLinks=e.rewriteLinks),this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function s(e,t,n){var r=u.url(),o=u.$$state;try{i.url(e,t,n),u.$$state=i.state()}catch(e){throw u.url(r),u.$$state=o,e}}function l(e,t){r.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,c,d,f=i.baseHref(),h=i.url();if(n.enabled){if(!f&&n.requireBase)throw Gr("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=vt(h)+(f||"/"),c=o.history?yt:bt}else d=$t(h),c=wt;u=new c(d,"#"+t),u.$$parseLinkUrl(h,h),u.$$state=i.state();var p=/^\s*(javascript|mailto):/i;a.on("click",function(t){if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&2!=t.which){for(var o=qn(t.target);"a"!==P(o[0]);)if(o[0]===a[0]||!(o=o.parent())[0])return;var s=o.prop("href"),l=o.attr("href")||o.attr("xlink:href");y(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Jt(s.animVal).href),p.test(s)||!s||o.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(s,l)&&(t.preventDefault(),u.absUrl()!=i.url()&&(r.$apply(),e.angular["ff-684208-preventDefault"]=!0))}}),u.absUrl()!=h&&i.url(u.absUrl(),!0);var m=!0;return i.onUrlChange(function(e,t){r.$evalAsync(function(){var n,i=u.absUrl(),o=u.$$state;u.$$parse(e),u.$$state=t,n=r.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(n?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(m=!1,l(i,o)))}),r.$$phase||r.$digest()}),r.$watch(function(){var e=i.url(),t=i.state(),n=u.$$replace,a=e!==u.absUrl()||u.$$html5&&o.history&&t!==u.$$state;(m||a)&&(m=!1,r.$evalAsync(function(){var i=u.absUrl(),o=r.$broadcast("$locationChangeStart",i,e,u.$$state,t).defaultPrevented;u.absUrl()===i&&(o?(u.$$parse(e),u.$$state=t):(a&&s(i,n,t===u.$$state?null:u.$$state),l(e,t)))})),u.$$replace=!1}),u}]}function Dt(){var e=!0,t=this;this.debugEnabled=function(t){return v(t)?(e=t,this):e},this.$get=["$window",function(n){function r(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 i(e){var t=n.console||{},i=t[e]||t.log||p,a=!1;try{a=!!i.apply}catch(e){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Ct(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw Kr("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Mt(e,t){if(e){if(e.constructor===e)throw Kr("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw Kr("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw Kr("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw Kr("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function _t(e,t){if(e){if(e.constructor===e)throw Kr("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===Jr||e===Xr||e===Qr)throw Kr("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function Tt(e){return e.constant}function At(e,t,n,r){Mt(e,r);for(var i,o=t.split("."),a=0;o.length>1;a++){i=Ct(o.shift(),r);var s=Mt(e[i],r);s||(s={},e[i]=s),e=s}return i=Ct(o.shift(),r),Mt(e[i],r),e[i]=n,n}function Et(e){return"constructor"==e}function Ot(e,t,r,i,o,a,s){Ct(e,a),Ct(t,a),Ct(r,a),Ct(i,a),Ct(o,a);var l=function(e){return Mt(e,a)},u=s||Et(e)?l:m,c=s||Et(t)?l:m,d=s||Et(r)?l:m,f=s||Et(i)?l:m,h=s||Et(o)?l:m;return function(a,s){var l=s&&s.hasOwnProperty(e)?s:a;return null==l?l:(l=u(l[e]),t?null==l?n:(l=c(l[t]),r?null==l?n:(l=d(l[r]),i?null==l?n:(l=f(l[i]),o?null==l?n:l=h(l[o]):l):l):l):l)}}function Pt(e,t){return function(n,r){return e(n,r,Mt,t)}}function Vt(e,t,r){var i=t.expensiveChecks,a=i?ai:oi,s=a[e];if(s)return s;var l=e.split("."),u=l.length;if(t.csp)s=u<6?Ot(l[0],l[1],l[2],l[3],l[4],r,i):function(e,t){var o,a=0;do{o=Ot(l[a++],l[a++],l[a++],l[a++],l[a++],r,i)(e,t),t=n,e=o}while(a<u);return o};else{var c="";i&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var d=i;o(l,function(e,t){Ct(e,r);var n=(t?"s":'((l&&l.hasOwnProperty("'+e+'"))?l:s)')+"."+e;(i||Et(e))&&(n="eso("+n+", fe)",d=!0),c+="if(s == null) return undefined;\ns="+n+";\n"}),c+="return s;";var f=new Function("s","l","eso","fe",c);f.toString=$(c),d&&(f=Pt(f,r)),s=f}return s.sharedGetter=!0,s.assign=function(t,n){return At(t,e,n,e)},a[e]=s,s}function Ft(e){return x(e.valueOf)?e.valueOf():si.call(e)}function Nt(){var e=se(),t=se();this.$get=["$filter","$sniffer",function(n,r){function i(e){var t=e;return e.sharedGetter&&(t=function(t,n){return e(t,n)},t.literal=e.literal,t.constant=e.constant,t.assign=e.assign),t}function a(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];i.constant||(i.inputs?a(i.inputs,t):-1===t.indexOf(i)&&t.push(i))}return t}function s(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=Ft(e)))&&(e===t||e!==e&&t!==t)}function l(e,t,n,r){var i,o=r.$$inputs||(r.$$inputs=a(r.inputs,[]));if(1===o.length){var l=s;return o=o[0],e.$watch(function(e){var t=o(e);return s(t,l)||(i=r(e),l=t&&Ft(t)),i},t,n)}for(var u=[],c=0,d=o.length;c<d;c++)u[c]=s;return e.$watch(function(e){for(var t=!1,n=0,a=o.length;n<a;n++){var l=o[n](e);(t||(t=!s(l,u[n])))&&(u[n]=l&&Ft(l))}return t&&(i=r(e)),i},t,n)}function u(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,x(t)&&t.apply(this,arguments),v(e)&&r.$$postDigest(function(){v(o)&&i()})},n)}function c(e,t,n,r){function i(e){var t=!0;return o(e,function(e){v(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,x(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function d(e,t,n,r){var i;return i=e.$watch(function(e){return r(e)},function(e,n,r){x(t)&&t.apply(this,arguments),i()},n)}function f(e,t){if(!t)return e;var n=e.$$watchDelegate,r=n!==c&&n!==u,i=r?function(n,r){var i=e(n,r);return t(i,n,r)}:function(n,r){var i=e(n,r),o=t(i,n,r);return v(i)?o:i};return e.$$watchDelegate&&e.$$watchDelegate!==l?i.$$watchDelegate=e.$$watchDelegate:t.$stateful||(i.$$watchDelegate=l,i.inputs=[e]),i}var h={csp:r.csp,expensiveChecks:!1},m={csp:r.csp,expensiveChecks:!0};return function(r,o,a){var s,$,g;switch(typeof r){case"string":g=r=r.trim();var v=a?t:e;if(!(s=v[g])){":"===r.charAt(0)&&":"===r.charAt(1)&&($=!0,r=r.substring(2));var y=a?m:h,w=new ri(y);s=new ii(w,n,y).parse(r),s.constant?s.$$watchDelegate=d:$?(s=i(s),s.$$watchDelegate=s.literal?c:u):s.inputs&&(s.$$watchDelegate=l),v[g]=s}return f(s,o);case"function":return f(r,o);default:return f(p,o)}}}]}function Ht(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Ut(function(t){e.$evalAsync(t)},t)}]}function Rt(){this.$get=["$browser","$exceptionHandler",function(e,t){return Ut(function(t){e.defer(t)},t)}]}function Ut(e,t){function i(e,t,n){function r(t){return function(n){i||(i=!0,t.call(e,n))}}var i=!1;return[r(t),r(n)]}function a(){this.$$state={status:0}}function s(e,t){return function(n){t.call(e,n)}}function l(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;a<s;++a){i=o[a][0],r=o[a][e.status];try{x(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(e){i.reject(e),t(e)}}}function u(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){l(t)}))}function c(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function d(e){var t=new c,n=0,r=tr(e)?[]:{};return o(e,function(e,i){n++,g(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var f=r("$q",TypeError),h=function(){return new c};a.prototype={then:function(e,t,n){var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&u(this.$$state),r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return $(t,!0,e)},function(t){return $(t,!1,e)},t)}},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){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(y(e)||x(e))&&(n=e&&e.then),x(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,u(this.promise.$$state))}catch(e){r[1](e),t(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){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;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(x(e)?e(n):n)}catch(e){t(e)}}})}};var p=function(e){var t=new c;return t.reject(e),t.promise},m=function(e,t){var n=new c;return t?n.resolve(e):n.reject(e),n.promise},$=function(e,t,n){var r=null;try{x(n)&&(r=n())}catch(e){return m(e,!1)}return A(r)?r.then(function(){return m(e,t)},function(e){return m(e,!1)}):m(e,t)},g=function(e,t,n,r){var i=new c;return i.resolve(e),i.promise.then(t,n,r)},v=function e(t){function n(e){i.resolve(e)}function r(e){i.reject(e)}if(!x(t))throw f("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof e))return new e(t);var i=new c;return t(n,r),i.promise};return v.defer=h,v.reject=p,v.when=g,v.all=d,v}function Yt(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||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 It(){var e=10,t=r("$rootScope"),n=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,s,l,c){function d(){this.$id=u(),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.$$isolateBindings=null}function f(e){if(b.$$phase)throw t("inprog","{0} already in progress",b.$$phase);b.$$phase=e}function h(){b.$$phase=null}function m(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function $(){}function v(){for(;D.length;)try{D.shift()()}catch(e){s(e)}a=null}function w(){null===a&&(a=c.defer(function(){b.$apply(v)}))}d.prototype={constructor:d,$new:function(e,t){function n(){r.$$destroyed=!0}var r;return t=t||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=u(),this.$$ChildScope=null},this.$$ChildScope.prototype=this),r=new this.$$ChildScope),r.$parent=t,r.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=r,t.$$childTail=r):t.$$childHead=t.$$childTail=r,(e||t!=this)&&r.$on("$destroy",n),r},$watch:function(e,t,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,r,i);var o=this,a=o.$$watchers,s={fn:t,last:$,get:i,exp:e,eq:!!r};return n=null,x(t)||(s.fn=p),a||(a=o.$$watchers=[]),a.unshift(s),function(){V(a,s),n=null}},$watchGroup:function(e,t){function n(){l=!1,u?(u=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,l=!1,u=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(i,i,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,l||(l=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s;if(!g(o)){if(y(o))if(i(o)){a!==h&&(a=h,$=a.length=0,d++),t=o.length,$!==t&&(d++,a.length=$=t);for(var l=0;l<t;l++)s=a[l],r=o[l],s!==s&&r!==r||s===r||(d++,a[l]=r)}else{a!==p&&(a=p={},$=0,d++),t=0;for(n in o)o.hasOwnProperty(n)&&(t++,r=o[n],s=a[n],n in a?s!==s&&r!==r||s===r||(d++,a[n]=r):($++,a[n]=r,d++));if($>t){d++;for(n in a)o.hasOwnProperty(n)||($--,delete a[n])}}else a!==o&&(a=o,d++);return d}}function r(){if(m?(m=!1,t(o,o,u)):t(o,s,u),c)if(y(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)Un.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,c=t.length>1,d=0,f=l(e,n),h=[],p={},m=!0,$=0;return this.$watch(f,r)},$digest:function(){var r,i,o,l,u,d,p,m,g,y,w=e,D=this,C=[];f("$digest"),c.$$checkUrlChange(),this===b&&null!==a&&(c.defer.cancel(a),v()),n=null;do{for(d=!1,m=D;S.length;){try{y=S.shift(),y.scope.$eval(y.expression)}catch(e){s(e)}n=null}e:do{if(l=m.$$watchers)for(u=l.length;u--;)try{if(r=l[u])if((i=r.get(m))===(o=r.last)||(r.eq?H(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){d=!1;break e}}else d=!0,n=r,r.last=r.eq?F(i,null):i,r.fn(i,o===$?i:o,m),w<5&&(g=4-w,C[g]||(C[g]=[]),C[g].push({msg:x(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:i,oldVal:o}))}catch(e){s(e)}if(!(p=m.$$childHead||m!==D&&m.$$nextSibling))for(;m!==D&&!(p=m.$$nextSibling);)m=m.$parent}while(m=p);if((d||S.length)&&!w--)throw h(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,C)}while(d||S.length);for(h();k.length;)try{k.shift()()}catch(e){s(e)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==b){for(var t in this.$$listenerCount)m(this,this.$$listenerCount[t],t);e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e){b.$$phase||S.length||c.defer(function(){S.length&&b.$digest()}),S.push({scope:this,expression:e})},$$postDigest:function(e){k.push(e)},$apply:function(e){try{return f("$apply"),this.$eval(e)}catch(e){s(e)}finally{h();try{b.$digest()}catch(e){throw s(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&D.push(t),w()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,m(i,1,e))}},$emit:function(e,t){var n,r,i,o=[],a=this,l=!1,u={name:e,targetScope:a,stopPropagation:function(){l=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=R([u],arguments,1);do{for(n=a.$$listeners[e]||o,u.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,c)}catch(e){s(e)}else n.splice(r,1),r--,i--;if(l)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,l,u,c=R([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[e]||[],l=0,u=a.length;l<u;l++)if(a[l])try{a[l].apply(null,c)}catch(e){s(e)}else a.splice(l,1),l--,u--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}}
  ;var b=new d,S=b.$$asyncQueue=[],k=b.$$postDigestQueue=[],D=b.$$applyAsyncQueue=[];return b}]}function jt(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return v(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=Jt(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Lt(e){if("self"===e)return e;if(w(e)){if(e.indexOf("***")>-1)throw li("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=rr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw li("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function qt(e){var t=[];return v(e)&&o(e,function(e){t.push(Lt(e))}),t}function Wt(){this.SCE_CONTEXTS=ui;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=qt(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=qt(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?Xt(t):!!e.exec(t.href)}function o(n){var r,o,a=Jt(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}function a(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 s(e,t){var r=f.hasOwnProperty(e)?f[e]:null;if(!r)throw li("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw li("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function l(e){return e instanceof d?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||t===n||""===t)return t;var r=f.hasOwnProperty(e)?f[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===ui.RESOURCE_URL){if(o(t))return t;throw li("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===ui.HTML)return c(t);throw li("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(e){throw li("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var d=a(),f={};return f[ui.HTML]=a(d),f[ui.CSS]=a(d),f[ui.URL]=a(d),f[ui.JS]=a(d),f[ui.RESOURCE_URL]=a(f[ui.URL]),{trustAs:s,getTrusted:u,valueOf:l}}]}function Bt(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Ln<8)throw li("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=N(ui);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(ui,function(e,t){var n=Rn(t);r[fe("parse_as_"+n)]=function(t){return i(e,t)},r[fe("get_trusted_"+n)]=function(t){return a(e,t)},r[fe("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function zt(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=f((/android (\d+)/.exec(Rn((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,u=s.body&&s.body.style,c=!1,d=!1;if(u){for(var h in u)if(r=l.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&&"webkit"),c=!!("transition"in u||n+"Transition"in u),d=!!("animation"in u||n+"Animation"in u),!o||c&&d||(c=w(s.body.style.webkitTransition),d=w(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||o<4||a),hasEvent:function(e){if("input"==e&&9==Ln)return!1;if(g(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:ir(),vendorPrefix:n,transitions:c,animations:d,android:o}}]}function Gt(){this.$get=["$templateCache","$http","$q",function(e,t,n){function r(i,o){function a(e){if(s.totalPendingRequests--,!o)throw Rr("tpload","Failed to load template: {0}",i);return n.reject(e)}var s=r;s.totalPendingRequests++;var l=t.defaults&&t.defaults.transformResponse;tr(l)?l=l.filter(function(e){return e!==et}):l===et&&(l=null);var u={cache:e,transformResponse:l};return t.get(i,u).then(function(t){var n=t.data;return s.totalPendingRequests--,e.put(i,n),n},a)}return r.totalPendingRequests=0,r}]}function Zt(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Xn.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+rr(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!=r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Kt(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,l){var u,c=v(l)&&!l,d=(c?r:n).defer(),f=d.promise;return u=t.defer(function(){try{d.resolve(o())}catch(e){d.reject(e),i(e)}finally{delete a[f.$$timeoutId]}c||e.$apply()},s),f.$$timeoutId=u,a[u]=d,f}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function Jt(e){var t=e;return Ln&&(ci.setAttribute("href",t),t=ci.href),ci.setAttribute("href",t),{href:ci.href,protocol:ci.protocol?ci.protocol.replace(/:$/,""):"",host:ci.host,search:ci.search?ci.search.replace(/^\?/,""):"",hash:ci.hash?ci.hash.replace(/^#/,""):"",hostname:ci.hostname,port:ci.port,pathname:"/"===ci.pathname.charAt(0)?ci.pathname:"/"+ci.pathname}}function Xt(e){var t=w(e)?Jt(e):e;return t.protocol===di.protocol&&t.host===di.host}function Qt(){this.$get=$(e)}function en(e){function t(r,i){if(y(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",nn),t("date",pn),t("filter",tn),t("json",mn),t("limitTo",$n),t("lowercase",$i),t("number",rn),t("orderBy",gn),t("uppercase",gi)}function tn(){return function(e,t,n){if(!tr(e))return e;var r=typeof n,i=[];i.check=function(e,t){for(var n=0;n<i.length;n++)if(!i[n](e,t))return!1;return!0},"function"!==r&&(n="boolean"===r&&n?function(e,t){return Xn.equals(e,t)}:function(e,t){if(e&&t&&"object"==typeof e&&"object"==typeof t){for(var r in e)if("$"!==r.charAt(0)&&Un.call(e,r)&&n(e[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),(""+e).toLowerCase().indexOf(t)>-1});var o=function(e,t){if("string"==typeof t&&"!"===t.charAt(0))return!o(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e)if("$"!==r.charAt(0)&&o(e[r],t))return!0}return!1;case"array":for(var i=0;i<e.length;i++)if(o(e[i],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var a in t)!function(e){void 0!==t[e]&&i.push(function(n){return o("$"==e?n:n&&n[e],t[e])})}(a);break;case"function":i.push(t);break;default:return e}for(var s=[],l=0;l<e.length;l++){var u=e[l];i.check(u,l)&&s.push(u)}return s}}function nn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:on(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function rn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:on(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function on(e,t,n,r,i){if(!isFinite(e)||y(e))return"";var o=e<0;e=Math.abs(e);var a=e+"",s="",l=[],u=!1;if(-1!==a.indexOf("e")){var c=a.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?(a="0",e=0):(s=a,u=!0)}if(u)i>0&&e>-1&&e<1&&(s=e.toFixed(i));else{var d=(a.split(fi)[1]||"").length;g(i)&&(i=Math.min(Math.max(t.minFrac,d),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i),0===e&&(o=!1);var f=(""+e).split(fi),h=f[0];f=f[1]||"";var p,m=0,$=t.lgSize,v=t.gSize;if(h.length>=$+v)for(m=h.length-$,p=0;p<m;p++)(m-p)%v==0&&0!==p&&(s+=n),s+=h.charAt(p);for(p=m;p<h.length;p++)(h.length-p)%$==0&&0!==p&&(s+=n),s+=h.charAt(p);for(;f.length<i;)f+="0";i&&"0"!==i&&(s+=r+f.substr(0,i))}return l.push(o?t.negPre:t.posPre,s,o?t.negSuf:t.posSuf),l.join("")}function an(e,t,n){var r="";for(e<0&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function sn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),an(o,t,r)}}function ln(e,t){return function(n,r){var i=n["get"+e]();return r[Yn(t?"SHORT"+e:e)][i]}}function un(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=an(Math[t>0?"floor":"ceil"](t/60),2)+an(Math.abs(t%60),2)}function cn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function dn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function fn(e){return function(t){var n=cn(t.getFullYear()),r=dn(t),i=+r-+n;return an(1+Math.round(i/6048e5),e)}}function hn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function pn(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=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var l=f(t[4]||0)-i,u=f(t[5]||0)-o,c=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,l,u,c,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,l="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,w(n)&&(n=mi.test(n)?f(n):t(n)),b(n)&&(n=new Date(n)),!S(n))return n;for(;r;)s=pi.exec(r),s?(u=R(u,s,1),r=u.pop()):(u.push(r),r=null);return i&&"UTC"===i&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+n.getTimezoneOffset())),o(u,function(t){a=hi[t],l+=a?a(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function mn(){return function(e){return j(e,!0)}}function $n(){return function(e,t){if(b(e)&&(e=e.toString()),!tr(e)&&!w(e))return e;if(t=Math.abs(Number(t))===1/0?Number(t):f(t),w(e))return t?t>=0?e.slice(0,t):e.slice(t,e.length):"";var n,r,i=[];for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);n<r;n++)i.push(e[n]);return i}}function gn(e){return function(t,n,r){function o(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function a(e,t){return t?function(t,n){return e(n,t)}:e}function s(e,t){var n=typeof e,r=typeof t;return n==r?(S(e)&&S(t)&&(e=e.valueOf(),t=t.valueOf()),"string"==n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):n<r?-1:1}return i(t)?(n=tr(n)?n:[n],0===n.length&&(n=["+"]),n=n.map(function(t){var n=!1,r=t||m;if(w(t)){if("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0),t=t.substring(1)),""===t)return a(function(e,t){return s(e,t)},n);if(r=e(t),r.constant){var i=r();return a(function(e,t){return s(e[i],t[i])},n)}}return a(function(e,t){return s(r(e),r(t))},n)}),zn.call(t).sort(a(o,r))):t}}function vn(e){return x(e)&&(e={link:e}),e.restrict=e.restrict||"AC",$(e)}function yn(e,t){e.$name=t}function wn(e,t,r,i,a){var s=this,l=[],u=s.$$parentForm=e.parent().controller("form")||wi;s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,u.$addControl(s),s.$rollbackViewValue=function(){o(l,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(l,function(e){e.$commitViewValue()})},s.$addControl=function(e){ie(e.$name,"input"),l.push(e),e.$name&&(s[e.$name]=e)},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),V(l,e)},Vn({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(V(r,n),0===r.length&&delete e[t])},parentForm:u,$animate:i}),s.$setDirty=function(){i.removeClass(e,Hi),i.addClass(e,Ri),s.$dirty=!0,s.$pristine=!1,u.$setDirty()},s.$setPristine=function(){i.setClass(e,Hi,Ri+" "+bi),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(l,function(e){e.$setPristine()})},s.$setUntouched=function(){o(l,function(e){e.$setUntouched()})},s.$setSubmitted=function(){i.addClass(e,bi),s.$submitted=!0,u.$setSubmitted()}}function bn(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Sn(e,t,n,r,i,o){xn(e,t,n,r,i,o),bn(r)}function xn(e,t,n,r,i,o){var a=t[0].placeholder,s={},l=Rn(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",function(e){u=!0}),t.on("compositionend",function(){u=!1,c()})}var c=function(e){if(!u){var i=t.val(),o=e&&e.type;if(Ln&&"input"===(e||s).type&&t[0].placeholder!==a)return void(a=t[0].placeholder);"password"===l||n.ngTrim&&"false"===n.ngTrim||(i=nr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(i.hasEvent("input"))t.on("input",c);else{var d,f=function(e){d||(d=o.defer(function(){c(e),d=null}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||f(e)}),i.hasEvent("paste")&&t.on("paste cut",f)}t.on("change",c),r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function kn(e,t){if(S(e))return e;if(w(e)){Ai.lastIndex=0;var n=Ai.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,l=0,u=cn(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(r,0,u.getDate()+c,o,a,s,l)}}return NaN}function Dn(e,t){return function(n,r){var i,a;if(S(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Di.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function Cn(e,t,r,i){return function(o,a,s,l,u,c,d){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return v(e)?S(e)?e:r(e):n}Mn(o,a,s,l),xn(o,a,s,l,u,c);var p,m=l&&l.$options&&l.$options.timezone;if(l.$$parserName=e,l.$parsers.push(function(e){if(l.$isEmpty(e))return null;if(t.test(e)){var i=r(e,p);return"UTC"===m&&i.setMinutes(i.getMinutes()-i.getTimezoneOffset()),i}return n}),l.$formatters.push(function(e){if(e&&!S(e))throw Oi("datefmt","Expected `{0}` to be a date",e);if(f(e)){if((p=e)&&"UTC"===m){var t=6e4*p.getTimezoneOffset();p=new Date(p.getTime()+t)}return d("date")(e,i,m)}return p=null,""}),v(s.min)||s.ngMin){var $;l.$validators.min=function(e){return!f(e)||g($)||r(e)>=$},s.$observe("min",function(e){$=h(e),l.$validate()})}if(v(s.max)||s.ngMax){var y;l.$validators.max=function(e){return!f(e)||g(y)||r(e)<=y},s.$observe("max",function(e){y=h(e),l.$validate()})}}}function Mn(e,t,r,i){var o=t[0];(i.$$hasNativeValidators=y(o.validity))&&i.$parsers.push(function(e){var r=t.prop(Hn)||{};return r.badInput&&!r.typeMismatch?n:e})}function _n(e,t,r,i,o,a){if(Mn(e,t,r,i),xn(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:_i.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!b(e))throw Oi("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),r.min||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||g(s)||e>=s},r.$observe("min",function(e){v(e)&&!b(e)&&(e=parseFloat(e,10)),s=b(e)&&!isNaN(e)?e:n,i.$validate()})}if(r.max||r.ngMax){var l;i.$validators.max=function(e){return i.$isEmpty(e)||g(l)||e<=l},r.$observe("max",function(e){v(e)&&!b(e)&&(e=parseFloat(e,10)),l=b(e)&&!isNaN(e)?e:n,i.$validate()})}}function Tn(e,t,n,r,i,o){xn(e,t,n,r,i,o),bn(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ci.test(n)}}function An(e,t,n,r,i,o){xn(e,t,n,r,i,o),bn(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Mi.test(n)}}function En(e,t,n,r){g(n.name)&&t.attr("name",u());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 On(e,t,n,i,o){var a;if(v(i)){if(a=e(i),!a.constant)throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return a(t)}return o}function Pn(e,t,n,r,i,o,a,s){var l=On(s,e,"ngTrueValue",n.ngTrueValue,!0),u=On(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return H(e,l)}),r.$parsers.push(function(e){return e?l:u})}function Vn(e){function t(e,t,l){t===n?r("$pending",e,l):i("$pending",e,l),T(t)?t?(d(s.$error,e,l),c(s.$$success,e,l)):(c(s.$error,e,l),d(s.$$success,e,l)):(d(s.$error,e,l),d(s.$$success,e,l)),s.$pending?(o(Ui,!0),s.$valid=s.$invalid=n,a("",null)):(o(Ui,!1),s.$valid=Fn(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var u;u=s.$pending&&s.$pending[e]?n:!s.$error[e]&&(!!s.$$success[e]||null),a(e,u),f.$setValidity(e,u,s)}function r(e,t,n){s[e]||(s[e]={}),c(s[e],t,n)}function i(e,t,r){s[e]&&d(s[e],t,r),Fn(s[e])&&(s[e]=n)}function o(e,t){t&&!u[e]?(h.addClass(l,e),u[e]=!0):!t&&u[e]&&(h.removeClass(l,e),u[e]=!1)}function a(e,t){e=e?"-"+te(e,"-"):"",o(Fi+e,!0===t),o(Ni+e,!1===t)}var s=e.ctrl,l=e.$element,u={},c=e.set,d=e.unset,f=e.parentForm,h=e.$animate;u[Ni]=!(u[Fi]=l.hasClass(Fi)),s.$setValidity=t}function Fn(e){if(e)for(var t in e)return!1;return!0}function Nn(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){if(tr(e))return e;if(w(e))return e.split(" ");if(y(e)){var t=[];return o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t}return e}return{restrict:"AC",link:function(a,s,l){function u(e){var t=d(e,1);l.$addClass(t)}function c(e){var t=d(e,-1);l.$removeClass(t)}function d(e,t){var n=s.data("$classCounts")||{},r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function f(e,t){var i=r(t,e),o=r(e,t);i=d(i,1),o=d(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function h(e){if(!0===t||a.$index%2===t){var n=i(e||[]);if(p){if(!H(e,p)){var r=i(p);f(r,n)}}else u(n)}p=N(e)}var p;a.$watch(l[e],h,!0),l.$observe("class",function(t){h(a.$eval(l[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(l[e]));o===t?u(s):c(s)}})}}}]}var Hn="validity",Rn=function(e){return w(e)?e.toLowerCase():e},Un=Object.prototype.hasOwnProperty,Yn=function(e){return w(e)?e.toUpperCase():e},In=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},jn=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Rn=In,Yn=jn);var Ln,qn,Wn,Bn,zn=[].slice,Gn=[].splice,Zn=[].push,Kn=Object.prototype.toString,Jn=r("ng"),Xn=e.angular||(e.angular={}),Qn=0;Ln=t.documentMode,p.$inject=[],m.$inject=[];var er,tr=Array.isArray,nr=function(e){return w(e)?e.trim():e},rr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ir=function(){if(v(ir.isActive_))return ir.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(t){e=!0}return ir.isActive_=e},or=["ng-","data-ng-","ng:","x-ng-"],ar=/[A-Z]/g,sr=!1,lr=1,ur=3,cr=8,dr=9,fr=11,hr={full:"1.3.5",major:1,minor:3,dot:5,codeName:"cybernetic-mercantilism"};ge.expando="ng339";var pr=ge.cache={},mr=1,$r=function(e,t,n){e.addEventListener(t,n,!1)},gr=function(e,t,n){e.removeEventListener(t,n,!1)};ge._data=function(e){return this.cache[e[this.expando]]||{}};var vr=/([\:\-\_]+(.))/g,yr=/^moz([A-Z])/,wr={mouseleave:"mouseout",mouseenter:"mouseover"},br=r("jqLite"),Sr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,xr=/<|&#?\w+;/,kr=/<([\w:]+)/,Dr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Cr={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Cr.optgroup=Cr.option,Cr.tbody=Cr.tfoot=Cr.colgroup=Cr.caption=Cr.thead,Cr.th=Cr.td;var Mr=ge.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),ge(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return qn(e>=0?this[e]:this[this.length+e])},length:0,push:Zn,sort:[].sort,splice:[].splice},_r={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){_r[Rn(e)]=e});var Tr={};o("input,select,option,textarea,button,form,details".split(","),function(e){Tr[e]=!0});var Ar={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:xe,removeData:be},function(e,t){ge[t]=e}),o({data:xe,inheritedData:Te,scope:function(e){return qn.data(e,"$scope")||Te(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return qn.data(e,"$isolateScope")||qn.data(e,"$isolateScopeNoTemplate")},controller:_e,injector:function(e){return Te(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:ke,css:function(e,t,n){if(t=fe(t),!v(n))return e.style[t];e.style[t]=n},attr:function(e,t,r){var i=Rn(t);if(_r[i]){if(!v(r))return e[t]||(e.attributes.getNamedItem(t)||p).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(v(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,n){if(!v(n))return e[t];e[t]=n},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return n===lr||n===ur?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===P(e)){var n=[];return o(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){if(g(t))return e.innerHTML;ye(e,!0),e.innerHTML=t},empty:Ae},function(e,t){ge.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==Ae&&(2==e.length&&e!==ke&&e!==_e?t:r)===n){if(y(t)){for(i=0;i<a;i++)if(e===xe)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,l=s===n?Math.min(a,1):a,u=0;u<l;u++){var c=e(this[u],t,r);s=s?s+c:c}return s}for(i=0;i<a;i++)e(this[i],t,r);return this}}),o({removeData:be,on:function e(t,n,r,i){if(v(i))throw br("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(pe(t)){var o=Se(t,!0),a=o.events,s=o.handle;s||(s=o.handle=Fe(t,a));for(var l=n.indexOf(" ")>=0?n.split(" "):[n],u=l.length;u--;){n=l[u];var c=a[n];c||(a[n]=[],"mouseenter"===n||"mouseleave"===n?e(t,wr[n],function(e){var t=this,r=e.relatedTarget;r&&(r===t||t.contains(r))||s(e,n)}):"$destroy"!==n&&$r(t,n,s),c=a[n]),c.push(r)}}},off:we,one:function(e,t,n){e=qn(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;ye(e),o(new ge(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===lr&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===lr||n===fr){t=new ge(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===lr){var n=e.firstChild;o(new ge(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=qn(t).eq(0).clone()[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Ee,detach:function(e){Ee(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new ge(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ce,removeClass:De,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;g(r)&&(r=!ke(e,t)),(r?Ce:De)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==fr?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ve,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,l=Se(e),u=l&&l.events,c=u&&u[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:p,type:s,target:e},t.type&&(r=d(r,t)),i=N(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){ge.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)g(i)?(i=e(this[o],t,n,r),v(i)&&(i=qn(i))):Me(i,e(this[o],t,n,r));return v(i)?i:this},ge.prototype.bind=ge.prototype.on,ge.prototype.unbind=ge.prototype.off}),He.prototype={put:function(e,t){this[Ne(e,this.nextUid)]=t},get:function(e){return this[Ne(e,this.nextUid)]},remove:function(e){var t=this[e=Ne(e,this.nextUid)];return delete this[e],t}};var Er=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Or=/,/,Pr=/^\s*(_?)(\S+?)\1\s*$/,Vr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Fr=r("$injector");Ye.$$annotate=Ue;var Nr=r("$animate"),Hr=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw Nr("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(e,t,n){function r(t){var r,i=e.defer();return i.promise.$$cancelFn=function(){r&&r()},n.$$postDigest(function(){r=t(function(){i.resolve()})}),i.promise}function i(e,t){var n=[],r=[],i=se();return o((e.attr("class")||"").split(/\s+/),function(e){i[e]=!0}),o(t,function(e,t){var o=i[t];!1===e&&o?r.push(t):!0!==e||o||n.push(t)}),n.length+r.length>0&&[n.length?n:null,r.length?r:null]}function a(e,t,n){for(var r=0,i=t.length;r<i;++r){e[t[r]]=n}}function s(){return u||(u=e.defer(),t(function(){u.resolve(),u=null})),u.promise}function l(e,t){if(Xn.isObject(t)){var n=d(t.from||{},t.to||{});e.css(n)}}var u;return{animate:function(e,t,n){return l(e,{from:t,to:n}),s()},enter:function(e,t,n,r){return l(e,r),n?n.after(e):t.prepend(e),s()},leave:function(e,t){return e.remove(),s()},move:function(e,t,n,r){return this.enter(e,t,n,r)},addClass:function(e,t,n){return this.setClass(e,t,[],n)},$$addClassImmediately:function(e,t,n){return e=qn(e),t=w(t)?t:tr(t)?t.join(" "):"",o(e,function(e){Ce(e,t)}),l(e,n),s()},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},$$removeClassImmediately:function(e,t,n){return e=qn(e),t=w(t)?t:tr(t)?t.join(" "):"",o(e,function(e){De(e,t)}),l(e,n),s()},setClass:function(e,t,n,o){var s=this,l=!1;e=qn(e);var u=e.data("$$animateClasses");u?o&&u.options&&(u.options=Xn.extend(u.options||{},o)):(u={classes:{},options:o},l=!0);var c=u.classes;return t=tr(t)?t:t.split(" "),n=tr(n)?n:n.split(" "),a(c,t,!0),a(c,n,!1),l&&(u.promise=r(function(t){var n=e.data("$$animateClasses");if(e.removeData("$$animateClasses"),n){var r=i(e,n.classes);r&&s.$$setClassImmediately(e,r[0],r[1],n.options)}t()}),e.data("$$animateClasses",u)),u.promise},$$setClassImmediately:function(e,t,n,r){return t&&this.$$addClassImmediately(e,t),n&&this.$$removeClassImmediately(e,n),l(e,r),s()},enabled:p,cancel:p}}]}],Rr=r("$compile");ze.$inject=["$provide","$$sanitizeUriProvider"];var Ur=/^((?:x|data)[\:\-_])/i,Yr="application/json",Ir={"Content-Type":Yr+";charset=utf-8"},jr=/^\s*(\[|\{[^\{])/,Lr=/[\}\]]\s*$/,qr=/^\)\]\}',?\n/,Wr=r("$interpolate"),Br=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,zr={http:80,https:443,ftp:21},Gr=r("$location"),Zr={$$html5:!1,$$replace:!1,absUrl:St("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=Br.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:St("$$protocol"),host:St("$$host"),port:St("$$port"),path:xt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(w(e)||b(e))e=e.toString(),this.$$search=B(e);else{if(!y(e))throw Gr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=F(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:xt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([bt,wt,yt],function(e){e.prototype=Object.create(Zr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==yt||!this.$$html5)throw Gr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this}});var Kr=r("$parse"),Jr=Function.prototype.call,Xr=Function.prototype.apply,Qr=Function.prototype.bind,ei=se();o({null:function(){return null},true:function(){return!0},false:function(){return!1},undefined:function(){}},function(e,t){e.constant=e.literal=e.sharedGetter=!0,ei[t]=e}),ei.this=function(e){return e},ei.this.sharedGetter=!0;var ti=d(se(),{"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),v(r)?v(i)?r+i:r:v(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(v(n)?n:0)-(v(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"!":function(e,t,n){return!n(e,t)},"=":!0,"|":!0}),ni={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ri=function(e){this.options=e};ri.prototype={constructor:ri,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index)
  ;if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=ti[t],o=ti[n],a=ti[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdent:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=v(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Kr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Rn(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=ni[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var ii=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n};ii.ZERO=d(function(){return 0},{sharedGetter:!0,constant:!0}),ii.prototype={constructor:ii,parse:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t,n;t=this.expect("(","[",".");)"("===t.text?(e=this.functionCall(e,n),n=null):"["===t.text?(n=e,e=this.objectIndex(e)):"."===t.text?(n=e,e=this.fieldAccess(e)):this.throwError("IMPOSSIBLE");return e},throwError:function(e,t){throw Kr("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))},peekToken:function(){if(0===this.tokens.length)throw Kr("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)},consume:function(e){if(0===this.tokens.length)throw Kr("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},unaryFn:function(e,t){var n=ti[e];return d(function(e,r){return n(e,r,t)},{constant:t.constant,inputs:[t]})},binaryFn:function(e,t,n,r){var i=ti[t];return d(function(t,r){return i(t,r,e,n)},{constant:e.constant&&n.constant,inputs:!r&&[e,n]})},identifier:function(){for(var e=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)e+=this.consume().text+this.consume().text;return ei[e]||Vt(e,this.options,this.text)},constant:function(){var e=this.consume().value;return d(function(){return e},{constant:!0,literal:!0})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,i=0,o=e.length;i<o;i++)r=e[i](t,n);return r}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},filter:function(e){var t,r,i=this.$filter(this.consume().text);if(this.peek(":"))for(t=[],r=[];this.expect(":");)t.push(this.expression());var o=[e].concat(t||[]);return d(function(o,a){var s=e(o,a);if(r){r[0]=s;for(var l=t.length;l--;)r[l+1]=t[l](o,a);return i.apply(n,r)}return i(s)},{constant:!i.$stateful&&o.every(Tt),inputs:!i.$stateful&&o})},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),d(function(t,r){return n.assign(t,e(t,r),r)},{inputs:[n,e]})):n},ternary:function(){var e,t=this.logicalOR();if(this.expect("?")&&(e=this.assignment(),this.consume(":"))){var n=this.assignment();return d(function(r,i){return t(r,i)?e(r,i):n(r,i)},{constant:t.constant&&e.constant&&n.constant})}return t},logicalOR:function(){for(var e,t=this.logicalAND();e=this.expect("||");)t=this.binaryFn(t,e.text,this.logicalAND(),!0);return t},logicalAND:function(){var e,t=this.equality();return(e=this.expect("&&"))&&(t=this.binaryFn(t,e.text,this.logicalAND(),!0)),t},equality:function(){var e,t=this.relational();return(e=this.expect("==","!=","===","!=="))&&(t=this.binaryFn(t,e.text,this.equality())),t},relational:function(){var e,t=this.additive();return(e=this.expect("<",">","<=",">="))&&(t=this.binaryFn(t,e.text,this.relational())),t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.text,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.text,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(ii.ZERO,e.text,this.unary()):(e=this.expect("!"))?this.unaryFn(e.text,this.unary()):this.primary()},fieldAccess:function(e){var t=this.text,n=this.consume().text,r=Vt(n,this.options,t);return d(function(t,n,i){return r(i||e(t,n))},{assign:function(r,i,o){var a=e(r,o);return a||e.assign(r,a={}),At(a,n,i,t)}})},objectIndex:function(e){var t=this.text,r=this.expression();return this.consume("]"),d(function(i,o){var a=e(i,o),s=r(i,o);return Ct(s,t),a?Mt(a[s],t):n},{assign:function(n,i,o){var a=Ct(r(n,o),t),s=Mt(e(n,o),t);return s||e.assign(n,s={}),s[a]=i}})},functionCall:function(e,t){var n=[];if(")"!==this.peekToken().text)do{n.push(this.expression())}while(this.expect(","));this.consume(")");var r=this.text,i=n.length?[]:null;return function(o,a){var s=t?t(o,a):o,l=e(o,a,s)||p;if(i)for(var u=n.length;u--;)i[u]=Mt(n[u](o,a),r);return Mt(s,r),_t(l,r),Mt(l.apply?l.apply(s,i):l(i[0],i[1],i[2],i[3],i[4]),r)}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),d(function(t,n){for(var r=[],i=0,o=e.length;i<o;i++)r.push(e[i](t,n));return r},{literal:!0,constant:e.every(Tt),inputs:e})},object:function(){var e=[],t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.consume();n.constant?e.push(n.value):n.identifier?e.push(n.text):this.throwError("invalid key",n),this.consume(":"),t.push(this.expression())}while(this.expect(","));return this.consume("}"),d(function(n,r){for(var i={},o=0,a=t.length;o<a;o++)i[e[o]]=t[o](n,r);return i},{literal:!0,constant:t.every(Tt),inputs:t})}};var oi=se(),ai=se(),si=Object.prototype.valueOf,li=r("$sce"),ui={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Rr=r("$compile"),ci=t.createElement("a"),di=Jt(e.location.href);en.$inject=["$provide"],nn.$inject=["$locale"],rn.$inject=["$locale"];var fi=".",hi={yyyy:sn("FullYear",4),yy:sn("FullYear",2,0,!0),y:sn("FullYear",1),MMMM:ln("Month"),MMM:ln("Month",!0),MM:sn("Month",2,1),M:sn("Month",1,1),dd:sn("Date",2),d:sn("Date",1),HH:sn("Hours",2),H:sn("Hours",1),hh:sn("Hours",2,-12),h:sn("Hours",1,-12),mm:sn("Minutes",2),m:sn("Minutes",1),ss:sn("Seconds",2),s:sn("Seconds",1),sss:sn("Milliseconds",3),EEEE:ln("Day"),EEE:ln("Day",!0),a:hn,Z:un,ww:fn(2),w:fn(1)},pi=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,mi=/^\-?\d+$/;pn.$inject=["$locale"];var $i=$(Rn),gi=$(Yn);gn.$inject=["$parse"];var vi=$({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref&&!t.name)return function(e,t){var n="[object SVGAnimatedString]"===Kn.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}),yi={};o(_r,function(e,t){if("multiple"!=e){var n=Ge("ng-"+t);yi[n]=function(){return{restrict:"A",priority:100,link:function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),o(Ar,function(e,t){yi[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(/^\/(.+)\/([a-z]*)$/);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Ge("ng-"+e);yi[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Kn.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){if(!t)return void("href"===e&&i.$set(a,null));i.$set(a,t),Ln&&o&&r.prop(o,i[a])})}}}});var wi={$addControl:p,$$renameControl:yn,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},bi="ng-submitted";wn.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Si=function(e){return["$timeout",function(t){return{name:"form",restrict:e?"EAC":"E",controller:wn,compile:function(e){return e.addClass(Hi).addClass(Fi),{pre:function(e,r,i,o){if(!("action"in i)){var a=function(t){e.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),t.preventDefault()};$r(r[0],"submit",a),r.on("$destroy",function(){t(function(){gr(r[0],"submit",a)},0,!1)})}var s=o.$$parentForm,l=o.$name;l&&(At(e,l,o,l),i.$observe(i.name?"name":"ngForm",function(t){l!==t&&(At(e,l,n,l),l=t,At(e,l,o,l),s.$$renameControl(o,l))})),r.on("$destroy",function(){s.$removeControl(o),l&&At(e,l,n,l),d(o,wi)})}}}}}]},xi=Si(),ki=Si(!0),Di=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ci=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Mi=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,_i=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Ti=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ai=/^(\d{4})-W(\d\d)$/,Ei=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Oi=new r("ngModel"),Pi={text:Sn,date:Cn("date",/^(\d{4})-(\d{2})-(\d{2})$/,Dn(/^(\d{4})-(\d{2})-(\d{2})$/,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Cn("datetimelocal",Ti,Dn(Ti,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Cn("time",Ei,Dn(Ei,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Cn("week",Ai,kn,"yyyy-Www"),month:Cn("month",/^(\d{4})-(\d\d)$/,Dn(/^(\d{4})-(\d\d)$/,["yyyy","MM"]),"yyyy-MM"),number:_n,url:Tn,email:An,radio:En,checkbox:Pn,hidden:p,button:p,submit:p,reset:p,file:p},Vi=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Pi[Rn(a.type)]||Pi.text)(i,o,a,s[0],t,e,n,r)}}}}],Fi="ng-valid",Ni="ng-invalid",Hi="ng-pristine",Ri="ng-dirty",Ui="ng-pending",Yi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,s,l,u,c,d){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=d(r.name||"",!1)(e);var f=a(r.ngModel),h=f.assign,m=f,$=h,y=null,w=this;this.$$setOptions=function(e){if(w.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(e){var n=f(e);return x(n)&&(n=t(e)),n},$=function(e,t){x(f(e))?n(e,{$$$p:w.$modelValue}):h(e,w.$modelValue)}}else if(!f.assign)throw Oi("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,q(i))},this.$render=p,this.$isEmpty=function(e){return g(e)||""===e||null===e||e!==e};var S=i.inheritedData("$formController")||wi,k=0;Vn({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},parentForm:S,$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(i,Ri),s.addClass(i,Hi)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(i,Hi),s.addClass(i,Ri),S.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){l.cancel(y),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!b(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$lastCommittedViewValue,t=w.$$rawModelValue,r=w.$$parserName||"parse",i=!w.$error[r]&&n,o=w.$valid,a=w.$modelValue,s=w.$options&&w.$options.allowInvalid;w.$$runValidators(i,t,e,function(e){s||o===e||(w.$modelValue=e?t:n,w.$modelValue!==a&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r,i){function a(e,t){l===k&&w.$setValidity(e,t)}function s(e){l===k&&i(e)}k++;var l=k;return function(e){var t=w.$$parserName||"parse";if(e===n)a(t,null);else if(a(t,e),!e)return o(w.$validators,function(e,t){a(t,null)}),o(w.$asyncValidators,function(e,t){a(t,null)}),!1;return!0}(e)&&function(){var e=!0;return o(w.$validators,function(n,i){var o=n(t,r);e=e&&o,a(i,o)}),!!e||(o(w.$asyncValidators,function(e,t){a(t,null)}),!1)}()?void function(){var e=[],i=!0;o(w.$asyncValidators,function(o,s){var l=o(t,r);if(!A(l))throw Oi("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",l);a(s,n),e.push(l.then(function(){a(s,!0)},function(e){i=!1,a(s,!1)}))}),e.length?c.all(e).then(function(){s(i)},p):s(!0)}():void s(!1)},this.$commitViewValue=function(){var e=w.$viewValue;l.cancel(y),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){w.$modelValue!==s&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r,o=!g(i)||n;if(o)for(var a=0;a<w.$parsers.length;a++)if(i=w.$parsers[a](i),g(i)){o=!1;break}b(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(e));var s=w.$modelValue,l=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,l&&(w.$modelValue=i,t()),w.$$runValidators(o,i,r,function(e){l||(w.$modelValue=e?i:n,t())})},this.$$writeModelToScope=function(){$(e,w.$modelValue),o(w.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})},this.$setViewValue=function(e,t){w.$viewValue=e,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=w.$options;i&&v(i.debounce)&&(n=i.debounce,b(n)?r=n:b(n[t])?r=n[t]:b(n.default)&&(r=n.default)),l.cancel(y),r?y=l(function(){w.$commitViewValue()},r):u.$$phase?w.$commitViewValue():e.$apply(function(){w.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==w.$modelValue){w.$modelValue=w.$$rawModelValue=t;for(var r=w.$formatters,i=r.length,o=t;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(n,t,o,p))}return t})}],Ii=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Yi,priority:1,compile:function(t){return t.addClass(Hi).addClass("ng-untouched").addClass(Fi),{pre:function(e,t,n,r){var i=r[0],o=r[1]||wi;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&o.$$renameControl(i,e)}),e.$on("$destroy",function(){o.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(n){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],ji=$({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Li=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()}))}}},qi=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,q(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e){return o.$isEmpty(e)||g(a)||a.test(e)}}}}},Wi=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(e)||t.length<=i}}}}},Bi=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}},zi=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,l=s?nr(a):a,u=function(e){if(!g(e)){var t=[];return e&&o(e.split(l),function(e){e&&t.push(s?nr(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){return tr(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},Gi=/^(true|false|\d+)$/,Zi=function(){return{restrict:"A",priority:100,compile:function(e,t){return Gi.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)})}}}},Ki=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var r=this;this.$options=e.$eval(t.ngModelOptions),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=nr(this.$options.updateOn.replace(/(\s+|^)default(\s+|$)/,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ji=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],t.$watch(i.ngBind,function(e){r.textContent=e===n?"":e})}}}}],Xi=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,i,o){var a=e(i.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],o.$observe("ngBindTemplate",function(e){i.textContent=e===n?"":e})}}}}],Qi=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],eo=Nn("",!0),to=Nn("Odd",0),no=Nn("Even",1),ro=vn({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),io=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],oo={},ao={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Ge("ng-"+e);oo[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})};ao[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var so=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,l,u;n.$watch(i.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=ae(s.clone),e.leave(u).then(function(){u=null}),s=null))})}}}],lo=["$templateRequest","$anchorScroll","$animate","$sce",function(e,t,n,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Xn.noop,compile:function(i,o){var a=o.ngInclude||o.src,s=o.onload||"",l=o.autoscroll;return function(i,o,u,c,d){var f,h,p,m=0,$=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};i.$watch(r.parseAsResourceUrl(a),function(r){var a=function(){!v(l)||l&&!i.$eval(l)||t()},u=++m;r?(e(r,!0).then(function(e){if(u===m){var t=i.$new();c.template=e;var l=d(t,function(e){$(),n.enter(e,null,o).then(a)});f=t,p=l,f.$emit("$includeContentLoaded",r),i.$eval(s)}},function(){u===m&&($(),i.$emit("$includeContentError",r))}),i.$emit("$includeContentRequested",r)):($(),c.template=null)})}}}}],uo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void e(me(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],co=vn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),fo=vn({terminal:!0,priority:1e3}),ho=["$locale","$interpolate",function(e,t){var n=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(r,i,a){function s(e){i.text(e||"")}var l,u=a.count,c=a.$attr.when&&i.attr(a.$attr.when),d=a.offset||0,f=r.$eval(c)||{},h={},p=t.startSymbol(),m=t.endSymbol(),$=p+u+"-"+d+m,g=Xn.noop;o(a,function(e,t){var r=n.exec(t);if(r){var o=(r[1]?"-":"")+Rn(r[2]);f[o]=i.attr(a.$attr[t])}}),o(f,function(e,n){h[n]=t(e.replace(/{}/g,$))}),r.$watch(u,function(t){var n=parseFloat(t),i=isNaN(n);i||n in f||(n=e.pluralCat(n-d)),n===l||i&&isNaN(l)||(g(),g=r.$watch(h[n],s),l=n)})}}}],po=["$parse","$animate",function(e,a){var s=r("ngRepeat"),l=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]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var f=d.ngRepeat,h=t.createComment(" end ngRepeat: "+f+" "),p=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var m=p[1],$=p[2],g=p[3],v=p[4];if(!(p=m.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/)))throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var y=p[3]||p[1],w=p[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent)$/.test(g)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var b,S,x,k,D={$id:Ne};return v?b=e(v):(x=function(e,t){return Ne(t)},k=function(e){return e}),function(e,t,r,d,p){b&&(S=function(t,n,r){return w&&(D[w]=t),D[y]=n,D.$index=r,b(e,D)});var m=se();e.$watchCollection($,function(r){var d,$,v,b,D,C,M,_,T,A,E,O,P=t[0],V=se();if(g&&(e[g]=r),i(r))T=r,_=S||x;else{_=S||k,T=[];for(var F in r)r.hasOwnProperty(F)&&"$"!=F.charAt(0)&&T.push(F);T.sort()}for(b=T.length,E=new Array(b),d=0;d<b;d++)if(D=r===T?d:T[d],C=r[D],M=_(D,C,d),m[M])A=m[M],delete m[M],V[M]=A,E[d]=A;else{if(V[M])throw o(E,function(e){e&&e.scope&&(m[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,M,C);E[d]={id:M,scope:n,clone:n},V[M]=!0}for(var N in m){if(A=m[N],O=ae(A.clone),a.leave(O),O[0].parentNode)for(d=0,$=O.length;d<$;d++)O[d].$$NG_REMOVED=!0;A.scope.$destroy()}for(d=0;d<b;d++)if(D=r===T?d:T[d],C=r[D],A=E[d],A.scope){v=P;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);u(A)!=v&&a.move(ae(A.clone),null,qn(P)),P=c(A),l(A.scope,d,y,C,w,D,b)}else p(function(e,t){A.scope=t;var n=h.cloneNode(!1);e[e.length++]=n,a.enter(e,null,qn(P)),P=n,A.clone=e,V[A.id]=A,l(A.scope,d,y,C,w,D,b)});m=V})}}}}],mo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],$o=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],go=vn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),vo=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,l=[],u=[],c=[],d=[],f=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;r<i;++r)e.cancel(c[r]);for(c.length=0,r=0,i=d.length;r<i;++r){var s=ae(u[r].clone);d[r].$destroy();(c[r]=e.leave(s)).then(f(c,r))}u.length=0,d.length=0,(l=a.cases["!"+n]||a.cases["?"])&&o(l,function(n){n.transclude(function(r,i){d.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)})})})}}}],yo=vn({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})}}),wo=vn({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})}}),bo=vn({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",q(t));o(function(e){t.empty(),t.append(e)})}}),So=["$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)}}}}],xo=r("ngOptions"),ko=$({restrict:"A",terminal:!0}),Do=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:p};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},l=s;o.databound=n.ngModel,o.init=function(e,t,n){l=e,r=t,i=n},o.addOption=function(t,n){ie(t,'"option value"'),a[t]=!0,l.$viewValue==t&&(e.val(t),i.parent()&&i.remove()),n&&n[0].hasAttribute("selected")&&(n[0].selected=!0)},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],l.$viewValue===e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+Ne(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=p})}],link:function(s,l,u,c){if(c[1]){for(var d,f=c[0],h=c[1],p=u.multiple,m=u.ngOptions,$=!1,y=!1,w=qn(t.createElement("option")),b=qn(t.createElement("optgroup")),S=w.clone(),x=0,k=l.children(),D=k.length;x<D;x++)if(""===k[x].value){d=$=k.eq(x);break}f.init(h,$,S),p&&(h.$isEmpty=function(e){return!e||0===e.length}),m?function(t,s,l){function u(e,n,r){return R[M]=r,A&&(R[A]=n),e(t,R)}function c(){t.$apply(function(){var e,n=P(t)||[];if(p)e=[],o(s.val(),function(t){t=F?N[t]:t,e.push(d(t,n[t]))});else{var r=F?N[s.val()]:s.val();e=d(r,n[r])}l.$setViewValue(e),k()})}function d(e,t){return"?"===e?n:""===e?null:u(T||O,e,t)}function h(){var e,n=P(t);if(n&&tr(n)){e=new Array(n.length);for(var r=0,i=n.length;r<i;r++)e[r]=u(C,r,n[r]);return e}if(n){e={};for(var o in n)n.hasOwnProperty(o)&&(e[o]=u(C,o,n[o]))}return e}function g(e){var t;if(p)if(F&&tr(e)){t=new He([]);for(var n=0;n<e.length;n++)t.put(u(F,null,e[n]),!0)}else t=new He(e);else F&&(e=u(F,null,e));return function(n,r){var i;return i=F||T||O,p?v(t.remove(u(i,n,r))):e===u(i,n,r)}}function S(){y||(t.$$postDigest(k),y=!0)}function x(e,t,n){e[t]=e[t]||0,e[t]+=n?1:-1}function k(){y=!1;var e,n,r,i,c,d,h,m,S,k,D,M,_,T,O,V,U,Y={"":[]},I=[""],j=l.$viewValue,L=P(t)||[],q=A?a(L):L,W={},B=g(j),z=!1;for(N={},M=0;k=q.length,M<k;M++)h=M,A&&(h=q[M],"$"===h.charAt(0))||(m=L[h],e=u(E,h,m)||"",(n=Y[e])||(n=Y[e]=[],I.push(e)),_=B(h,m),z=z||_,V=u(C,h,m),V=v(V)?V:"",U=F?F(t,R):A?q[M]:M,F&&(N[U]=h),n.push({id:U,label:V,selected:_}));for(p||($||null===j?Y[""].unshift({id:"",label:"",selected:!z}):z||Y[""].unshift({id:"?",label:"",selected:!0})),D=0,S=I.length;D<S;D++){for(e=I[D],n=Y[e],H.length<=D?(i={element:b.clone().attr("label",e),label:n.label},c=[i],H.push(c),s.append(i.element)):(c=H[D],i=c[0],i.label!=e&&i.element.attr("label",i.label=e)),T=null,M=0,k=n.length;M<k;M++)r=n[M],(d=c[M+1])?(T=d.element,d.label!==r.label&&(x(W,d.label,!1),x(W,r.label,!0),T.text(d.label=r.label),T.prop("label",d.label)),d.id!==r.id&&T.val(d.id=r.id),T[0].selected!==r.selected&&(T.prop("selected",d.selected=r.selected),Ln&&T.prop("selected",d.selected))):(""===r.id&&$?O=$:(O=w.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).prop("label",r.label).text(r.label),c.push(d={element:O,label:r.label,id:r.id,selected:r.selected}),x(W,r.label,!0),T?T.after(O):i.element.append(O),T=O);for(M++;c.length>M;)r=c.pop(),x(W,r.label,!1),r.element.remove()}for(;H.length>D;){for(n=H.pop(),M=1;M<n.length;++M)x(W,n[M].label,!1);n[0].element.remove()}o(W,function(e,t){e>0?f.addOption(t):e<0&&f.removeOption(t)})}var D;if(!(D=m.match(i)))throw xo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",m,q(s));var C=r(D[2]||D[1]),M=D[4]||D[6],_=/ as /.test(D[0])&&D[1],T=_?r(_):null,A=D[5],E=r(D[3]||""),O=r(D[2]?D[1]:M),P=r(D[7]),V=D[8],F=V?r(D[8]):null,N={},H=[[{element:s,label:""}]],R={};$&&(e($)(t),$.removeClass("ng-scope"),$.remove()),s.empty(),s.on("change",c),l.$render=k,t.$watchCollection(P,S),t.$watchCollection(h,S),p&&t.$watchCollection(function(){return l.$modelValue},S)}(s,l,h):p?function(e,t,n){var r;n.$render=function(){var e=new He(n.$viewValue);o(t.find("option"),function(t){t.selected=v(e.get(t.value))})},e.$watch(function(){H(r,n.$viewValue)||(r=N(n.$viewValue),n.$render())}),t.on("change",function(){e.$apply(function(){var e=[]
  ;o(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}(s,l,h):function(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(S.parent()&&S.remove(),t.val(e),""===e&&d.prop("selected",!0)):g(e)&&d?t.val(""):r.renderUnknownOption(e)},t.on("change",function(){e.$apply(function(){S.parent()&&S.remove(),n.$setViewValue(t.val())})})}(s,l,h,f)}}}}],Co=["$interpolate",function(e){var t={addOption:p,removeOption:p};return{restrict:"E",priority:100,compile:function(n,r){if(g(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o=n.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.databound||(a=t),i?e.$watch(i,function(e,t){r.$set("value",e),t!==e&&a.removeOption(t),a.addOption(e,n)}):a.addOption(r.value,n),n.on("$destroy",function(){a.removeOption(r.value)})}}}}],Mo=$({restrict:"E",terminal:!1});if(e.angular.bootstrap)return void console.log("WARNING: Tried to load angular more than once.");!function(){var t;sr||(Wn=e.jQuery,Wn&&Wn.fn.on?(qn=Wn,d(Wn.fn,{scope:Mr.scope,isolateScope:Mr.isolateScope,controller:Mr.controller,injector:Mr.injector,inheritedData:Mr.inheritedData}),t=Wn.cleanData,Wn.cleanData=function(e){var n;if(er)er=!1;else for(var r,i=0;null!=(r=e[i]);i++)(n=Wn._data(r,"events"))&&n.$destroy&&Wn(r).triggerHandler("$destroy");t(e)}):qn=ge,Xn.element=qn,sr=!0)}(),function(t){d(t,{bootstrap:X,copy:F,extend:d,equals:H,element:qn,forEach:o,injector:Ye,noop:p,bind:Y,toJson:j,fromJson:L,identity:m,isUndefined:g,isDefined:v,isString:w,isFunction:x,isObject:y,isNumber:b,isElement:E,isArray:tr,version:hr,isDate:S,lowercase:Rn,uppercase:Yn,callbacks:{counter:0},getTestability:ee,$$minErr:r,$$csp:ir,reloadWithDebugInfo:Q}),Bn=le(e);try{Bn("ngLocale")}catch(e){Bn("ngLocale",[]).provider("$locale",dt)}Bn("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:jt}),e.provider("$compile",ze).directive({a:vi,input:Vi,textarea:Vi,form:xi,script:So,select:Do,style:Mo,option:Co,ngBind:Ji,ngBindHtml:Qi,ngBindTemplate:Xi,ngClass:eo,ngClassEven:no,ngClassOdd:to,ngCloak:ro,ngController:io,ngForm:ki,ngHide:$o,ngIf:so,ngInclude:lo,ngInit:co,ngNonBindable:fo,ngPluralize:ho,ngRepeat:po,ngShow:mo,ngStyle:go,ngSwitch:vo,ngSwitchWhen:yo,ngSwitchDefault:wo,ngOptions:ko,ngTransclude:bo,ngModel:Ii,ngList:zi,ngChange:ji,pattern:qi,ngPattern:qi,required:Li,ngRequired:Li,minlength:Bi,ngMinlength:Bi,maxlength:Wi,ngMaxlength:Wi,ngValue:Zi,ngModelOptions:Ki}).directive({ngInclude:uo}).directive(yi).directive(oo),e.provider({$anchorScroll:Ie,$animate:Hr,$browser:qe,$cacheFactory:We,$controller:Je,$document:Xe,$exceptionHandler:Qe,$filter:en,$interpolate:ut,$interval:ct,$http:ot,$httpBackend:st,$location:kt,$log:Dt,$parse:Nt,$rootScope:It,$q:Ht,$$q:Rt,$sce:Bt,$sceDelegate:Wt,$sniffer:zt,$templateCache:Be,$templateRequest:Gt,$$testability:Zt,$timeout:Kt,$window:Qt,$$rAF:Yt,$$asyncCallback:je})}])}(Xn),qn(t).ready(function(){J(t,X)})}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>'),function(e,t,n){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,r){function i(){var e,i,o,l;for(e in s)c(a[e])&&r.cookies(e,n);for(e in a)i=a[e],t.isString(i)||(i=""+i,a[e]=i),i!==s[e]&&(r.cookies(e,i),l=!0);if(l){l=!1,o=r.cookies();for(e in a)a[e]!==o[e]&&(c(o[e])?delete a[e]:a[e]=o[e],l=!0)}}var o,a={},s={},l=!1,u=t.copy,c=t.isUndefined;return r.addPollFn(function(){var t=r.cookies();o!=t&&(o=t,u(t,s),u(t,a),l&&e.$apply())})(),l=!0,e.$watch(i),a}]).factory("$cookieStore",["$cookies",function(e){return{get:function(n){var r=e[n];return r?t.fromJson(r):r},put:function(n,r){e[n]=t.toJson(r)},remove:function(t){delete e[t]}}}])}(window,window.angular),function(e,t,n){"use strict";t.module("ngMessages",[]).directive("ngMessages",["$compile","$animate","$templateRequest",function(e,n,r){return{restrict:"AE",controller:function(){this.$renderNgMessageClasses=t.noop;var e=[];this.registerMessage=function(t,n){for(var r=0;r<e.length;r++)if(e[r].type==n.type){if(t!=r){var i=e[t];e[t]=e[r],t<e.length?e[r]=i:e.splice(0,r)}return}e.splice(t,0,n)},this.renderMessages=function(n,r){function i(e){return null!==e&&!1!==e&&e}n=n||{};var o;t.forEach(e,function(e){o&&!r||!i(n[e.type])?e.detach():(e.attach(),o=!0)}),this.renderElementClasses(o)}},require:"ngMessages",link:function(i,o,a,s){s.renderElementClasses=function(e){e?n.setClass(o,"ng-active","ng-inactive"):n.setClass(o,"ng-inactive","ng-active")};var l,u=t.isString(a.ngMessagesMultiple)||t.isString(a.multiple),c=a.ngMessages||a.for;i.$watchCollection(c,function(e){l=e,s.renderMessages(e,u)});var d=a.ngMessagesInclude||a.include;d&&r(d).then(function(n){var r,a=t.element("<div/>").html(n);t.forEach(a.children(),function(n){n=t.element(n),r?r.after(n):o.prepend(n),r=n,e(n)(i)}),s.renderMessages(l,u)})}}}]).directive("ngMessage",["$animate",function(e){return{require:"^ngMessages",transclude:"element",terminal:!0,restrict:"AE",link:function(t,n,r,i,o){for(var a,s,l=n[0],u=l.parentNode,c=0,d=0;c<u.childNodes.length;c++){var f=u.childNodes[c];if(8==f.nodeType&&f.nodeValue.indexOf("ngMessage")>=0){if(f===l){a=d;break}d++}}i.registerMessage(a,{type:r.ngMessage||r.when,attach:function(){s||o(t,function(t){e.enter(t,null,n),s=t})},detach:function(t){s&&(e.leave(s),s=null)}})}}}])}(window,window.angular),function(e,t,n){"use strict";function r(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&s.test("."+e)}function i(e,t){if(!r(t))throw a("badmember",'Dotted member path "@{0}" is invalid.',t);for(var i=t.split("."),o=0,s=i.length;o<s&&e!==n;o++){var l=i[o];e=null!==e?e[l]:n}return e}function o(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var a=t.$$minErr("$resource"),s=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var e=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$q",function(r,s){function l(e){return u(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function u(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function c(t,n){this.template=t,this.defaults=p({},e.defaults,n),this.urlParams={}}function d(l,u,g,v){function y(e,t){var n={};return t=p({},u,t),h(t,function(t,r){$(t)&&(t=t()),n[r]=t&&t.charAt&&"@"==t.charAt(0)?i(e,t.substr(1)):t}),n}function w(e){return e.resource}function b(e){o(e||{},this)}var S=new c(l,v);return g=p({},e.defaults.actions,g),b.prototype.toJSON=function(){var e=p({},this);return delete e.$promise,delete e.$resolved,e},h(g,function(e,i){var l=/^(POST|PUT|PATCH)$/i.test(e.method);b[i]=function(u,c,d,g){var v,x,k,D={};switch(arguments.length){case 4:k=g,x=d;case 3:case 2:if(!$(c)){D=u,v=c,x=d;break}if($(u)){x=u,k=c;break}x=c,k=d;case 1:$(u)?x=u:l?v=u:D=u;break;case 0:break;default:throw a("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var C=this instanceof b,M=C?v:e.isArray?[]:new b(v),_={},T=e.interceptor&&e.interceptor.response||w,A=e.interceptor&&e.interceptor.responseError||n;h(e,function(e,t){"params"!=t&&"isArray"!=t&&"interceptor"!=t&&(_[t]=m(e))}),l&&(_.data=v),S.setUrlParams(_,p({},y(v,e.params||{}),D),e.url);var E=r(_).then(function(n){var r=n.data,s=M.$promise;if(r){if(t.isArray(r)!==!!e.isArray)throw a("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2}",i,e.isArray?"array":"object",t.isArray(r)?"array":"object");e.isArray?(M.length=0,h(r,function(e){"object"==typeof e?M.push(new b(e)):M.push(e)})):(o(r,M),M.$promise=s)}return M.$resolved=!0,n.resource=M,n},function(e){return M.$resolved=!0,(k||f)(e),s.reject(e)});return E=E.then(function(e){var t=T(e);return(x||f)(t,e.headers),t},A),C?E:(M.$promise=E,M.$resolved=!1,M)},b.prototype["$"+i]=function(e,t,n){$(e)&&(n=t,t=e,e={});var r=b[i].call(this,e,this,t,n);return r.$promise||r}}),b.bind=function(e){return d(l,p({},u,e),g)},b}var f=t.noop,h=t.forEach,p=t.extend,m=t.copy,$=t.isFunction;return c.prototype={setUrlParams:function(e,n,r){var i,o,s=this,u=r||s.template,c=s.urlParams={};h(u.split(/\W/),function(e){if("hasOwnProperty"===e)throw a("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(u)&&(c[e]=!0)}),u=u.replace(/\\:/g,":"),n=n||{},h(s.urlParams,function(e,r){i=n.hasOwnProperty(r)?n[r]:s.defaults[r],t.isDefined(i)&&null!==i?(o=l(i),u=u.replace(new RegExp(":"+r+"(\\W|$)","g"),function(e,t){return o+t})):u=u.replace(new RegExp("(/?):"+r+"(\\W|$)","g"),function(e,t,n){return"/"==n.charAt(0)?n:t+n})}),s.defaults.stripTrailingSlashes&&(u=u.replace(/\/+$/,"")||"/"),u=u.replace(/\/\.(?=\w+($|\?))/,"."),e.url=u.replace(/\/\\\./,"/."),h(n,function(t,n){s.urlParams[n]||(e.params=e.params||{},e.params[n]=t)})}},d}]})}(window,window.angular),function(e,t,n){"use strict";function r(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(e,t,n,r){var o="?"===r?r:null,a="*"===r?r:null;return i.push({name:n,optional:!!o}),t=t||"",(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,s,u,c){function d(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],l=i[o];s&&l&&(r[s.name]=l)}return r}function f(e){var r=y.current;$=p(),(g=$&&r&&$.$$route===r.$$route&&t.equals($.pathParams,r.pathParams)&&!$.reloadOnSearch&&!v)||!r&&!$||n.$broadcast("$routeChangeStart",$,r).defaultPrevented&&e&&e.preventDefault()}function h(){var e=y.current,r=$;g?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&(v=!1,y.current=r,r&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(m(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,function(e,n){i[n]=t.isString(e)?s.get(e):s.invoke(e,null,null,n)}),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),n=c.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=u(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==y.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function p(){var n,o;return t.forEach(r,function(r,a){!o&&(n=d(i.path(),r))&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function m(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var $,g,v=!1,y={routes:r,reload:function(){v=!0,n.$evalAsync(function(){f(),h()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw l("norout","Tried updating route when with no current route");var n={},r=this;t.forEach(Object.keys(e),function(t){r.current.pathParams[t]||(n[t]=e[t])}),e=t.extend({},this.current.params,e),i.path(m(this.current.$$route.originalPath,e)),i.search(t.extend({},i.search(),n))}};return n.$on("$locationChangeStart",f),n.$on("$locationChangeSuccess",h),y}]}function i(){this.$get=function(){return{}}}function o(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,l){function u(){h&&(r.cancel(h),h=null),d&&(d.$destroy(),d=null),f&&(h=r.leave(f),h.then(function(){h=null}),f=null)}function c(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var c=i.$new(),h=e.current,$=l(c,function(e){r.enter(e,null,f||o).then(function(){!t.isDefined(p)||p&&!i.$eval(p)||n()}),u()});f=$,d=h.scope=c,d.$emit("$viewContentLoaded"),d.$eval(m)}else u()}var d,f,h,p=a.autoscroll,m=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function a(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());if(o.controller){a.$scope=r;var l=t(o.controller,a);o.controllerAs&&(r[o.controllerAs]=l),i.data("$ngControllerController",l),i.children().data("$ngControllerController",l)}s(r)}}}var s=t.module("ngRoute",["ng"]).provider("$route",r),l=t.$$minErr("ngRoute");s.provider("$routeParams",i),s.directive("ngView",o),s.directive("ngView",a),o.$inject=["$route","$anchorScroll","$animate"],a.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t,n){"use strict";function r(e,n,r,i,o,a){function s(e,n){return angular.element((n||t).querySelectorAll(e))}function l(e){return u[e]?u[e]:u[e]=n.get(e,{cache:a}).then(function(e){return e.data})}this.compile=function(t){t.template&&/\.html$/.test(t.template)&&(console.warn("Deprecated use of `template` option to pass a file. Please use the `templateUrl` option instead."),t.templateUrl=t.template,t.template="");var n=t.templateUrl,a=t.template||"",u=t.controller,c=t.controllerAs,d=t.resolve||{},f=t.locals||{},h=t.transformTemplate||angular.identity,p=t.bindToController;if(angular.forEach(d,function(e,t){angular.isString(e)?d[t]=r.get(e):d[t]=r.invoke(e)}),angular.extend(d,f),a)d.$template=e.when(a);else{if(!n)throw new Error("Missing `template` / `templateUrl` option.");d.$template=l(n)}return t.titleTemplate&&(d.$template=e.all([d.$template,l(t.titleTemplate)]).then(function(e){var t=angular.element(e[0]);return s('[ng-bind="title"]',t[0]).removeAttr("ng-bind").html(e[1]),t[0].outerHTML})),t.contentTemplate&&(d.$template=e.all([d.$template,l(t.contentTemplate)]).then(function(e){var n=angular.element(e[0]),r=s('[ng-bind="content"]',n[0]).removeAttr("ng-bind").html(e[1]);return t.templateUrl||r.next().remove(),n[0].outerHTML})),e.all(d).then(function(e){var n=h(e.$template);t.html&&(n=n.replace(/ng-bind="/gi,'ng-bind-html="'));var r=angular.element("<div>").html(n.trim()).contents(),a=i(r);return{locals:e,element:r,link:function(t){if(e.$scope=t,u){var n=o(u,e,!0);p&&angular.extend(n.instance,e);var i=angular.isObject(n)?n:n();r.data("$ngControllerController",i),r.children().data("$ngControllerController",i),c&&(t[c]=i)}return a.apply(null,arguments)}}})};var u={}}r.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"],angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var e=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",templateUrl:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"bsAsyncFilter",limit:6,autoSelect:!1,comparator:"",trimValue:!0};this.$get=["$window","$rootScope","$tooltip","$$rAF","$timeout",function(t,n,r,i,o){function a(t,n,a){var l={},u=angular.extend({},e,a);l=r(t,u);var c=a.scope,d=l.$scope;d.$resetMatches=function(){d.$matches=[],d.$activeIndex=u.autoSelect?0:-1},d.$resetMatches(),d.$activate=function(e){d.$$postDigest(function(){l.activate(e)})},d.$select=function(e,t){d.$$postDigest(function(){l.select(e)})},d.$isVisible=function(){return l.$isVisible()},l.update=function(e){d.$matches=e,d.$activeIndex>=e.length&&(d.$activeIndex=u.autoSelect?0:-1),s(d),i(l.$applyPlacement)},l.activate=function(e){d.$activeIndex=e},l.select=function(e){if(-1!==e){var t=d.$matches[e].value;n.$setViewValue(t),n.$render(),d.$resetMatches(),c&&c.$digest(),d.$emit(u.prefixEvent+".select",t,e,l),angular.isDefined(u.onSelect)&&angular.isFunction(u.onSelect)&&u.onSelect(t,e,l)}},l.$isVisible=function(){return u.minLength&&n?d.$matches.length&&angular.isString(n.$viewValue)&&n.$viewValue.length>=u.minLength:!!d.$matches.length},l.$getIndex=function(e){var t;for(t=d.$matches.length;t--&&!angular.equals(d.$matches[t].value,e););return t},l.$onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},l.$$updateScrollTop=function(e,t){if(t>-1&&t<e.children.length){var n=e.children[t],r=n.offsetTop,i=n.offsetTop+n.clientHeight,o=e.scrollTop,a=e.scrollTop+e.clientHeight;i>=o&&r<o?e.scrollTop=Math.max(0,e.scrollTop-e.clientHeight):i>a&&(e.scrollTop=r)}},l.$onKeyDown=function(e){/(38|40|13)/.test(e.keyCode)&&(!l.$isVisible()||13===e.keyCode&&-1===d.$activeIndex||(e.preventDefault(),e.stopPropagation()),13===e.keyCode&&d.$matches.length?l.select(d.$activeIndex):38===e.keyCode&&d.$activeIndex>0?d.$activeIndex--:40===e.keyCode&&d.$activeIndex<d.$matches.length-1?d.$activeIndex++:angular.isUndefined(d.$activeIndex)&&(d.$activeIndex=0),l.$$updateScrollTop(l.$element[0],d.$activeIndex),d.$digest())};var f=l.show;l.show=function(){f(),o(function(){l.$element&&(l.$element.on("mousedown",l.$onMouseDown),u.keyboard&&t&&t.on("keydown",l.$onKeyDown))},0,!1)};var h=l.hide;return l.hide=function(){l.$element&&l.$element.off("mousedown",l.$onMouseDown),u.keyboard&&t&&t.off("keydown",l.$onKeyDown),u.autoSelect||l.activate(-1),h()},l}function s(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}return a.defaults=e,a}]}).filter("bsAsyncFilter",["$filter",function(e){return function(t,n,r){return t&&angular.isFunction(t.then)?t.then(function(t){return e("filter")(t,n,r)}):e("filter")(t,n,r)}}]).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){t.off("change");var s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","filter","limit","minLength","watchOptions","selectMode","autoSelect","comparator","id","prefixEvent","prefixClass"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var l=/^(false|0|)$/i;angular.forEach(["html","container","trimValue","filter"],function(e){angular.isDefined(n[e])&&l.test(n[e])&&(s[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide","onSelect"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(n[r])&&(s[t]=e.$eval(n[r]))}),t.attr("autocomplete")||t.attr("autocomplete","off");var u=angular.isDefined(s.filter)?s.filter:o.filter,c=s.limit||o.limit,d=s.comparator||o.comparator,f=n.bsOptions;u&&(f+=" | "+u+":$viewValue",d&&(f+=":"+d)),c&&(f+=" | limitTo:"+c);var h=i(f),p=r(t,a,s);if(s.watchOptions){var m=h.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim();e.$watchCollection(m,function(t,n){h.valuesFn(e,a).then(function(e){p.update(e),a.$render()})})}e.$watch(n.ngModel,function(t,n){e.$modelValue=t,h.valuesFn(e,a).then(function(e){if(s.selectMode&&!e.length&&t.length>0)return void a.$setViewValue(a.$viewValue.substring(0,a.$viewValue.length-1));e.length>c&&(e=e.slice(0,c)),p.update(e),a.$render()})}),a.$formatters.push(function(e){var t=h.displayValue(e);return t||(angular.isDefined(e)&&"object"!=typeof e?e:"")}),a.$render=function(){if(a.$isEmpty(a.$viewValue))return t.val("");var e=p.$getIndex(a.$modelValue),n=-1!==e?p.$scope.$matches[e].label:a.$viewValue;n=angular.isObject(n)?h.displayValue(n):n;var r=n?n.toString().replace(/<(?:.|\n)*?>/gm,""):"",i=t[0].selectionStart,o=t[0].selectionEnd;t.val(!1===s.trimValue?r:r.trim()),t[0].setSelectionRange(i,o)},e.$on("$destroy",function(){p&&p.destroy(),s=null,p=null})}}}]),angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var e=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",templateUrl:"tooltip/tooltip.tpl.html",template:"",titleTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0,mouseDownPreventDefault:!0,mouseDownStopPropagation:!0,viewport:{selector:"body",padding:0}};this.$get=["$window","$rootScope","$bsCompiler","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(n,r,i,o,a,s,l,u,c,d,f){function h(o,a){function s(){V.$emit(O.prefixEvent+".show",E),angular.isDefined(O.onShow)&&angular.isFunction(O.onShow)&&O.onShow(E)}function h(){if(V.$emit(O.prefixEvent+".hide",E),angular.isDefined(O.onHide)&&angular.isFunction(O.onHide)&&O.onHide(E),Y===q){if(L&&"focus"===O.trigger)return o[0].blur();A()}}function $(){var e=O.trigger.split(" ");angular.forEach(e,function(e){"click"===e||"contextmenu"===e?o.on(e,E.toggle):"manual"!==e&&(o.on("hover"===e?"mouseenter":"focus",E.enter),o.on("hover"===e?"mouseleave":"blur",E.leave),"button"===F&&"hover"!==e&&o.on(g?"touchstart":"mousedown",E.$onFocusElementMouseDown))})}function y(){for(var e=O.trigger.split(" "),t=e.length;t--;){var n=e[t];"click"===n||"contextmenu"===n?o.off(n,E.toggle):"manual"!==n&&(o.off("hover"===n?"mouseenter":"focus",E.enter),o.off("hover"===n?"mouseleave":"blur",E.leave),"button"===F&&"hover"!==n&&o.off(g?"touchstart":"mousedown",E.$onFocusElementMouseDown))}}function w(){"focus"!==O.trigger?Y.on("keyup",E.$onKeyUp):o.on("keyup",E.$onFocusKeyUp)}function b(){"focus"!==O.trigger?Y.off("keyup",E.$onKeyUp):o.off("keyup",E.$onFocusKeyUp)}function S(){f(function(){Y.on("click",k),v.on("click",E.hide),W=!0},0,!1)}function x(){W&&(Y.off("click",k),v.off("click",E.hide),W=!1)}function k(e){e.stopPropagation()}function D(e){e=e||O.target||o;var r=e[0],i="BODY"===r.tagName,a=r.getBoundingClientRect(),s={};for(var l in a)s[l]=a[l];null===s.width&&(s=angular.extend({},s,{width:a.right-a.left,height:a.bottom-a.top}));var u=i?{top:0,left:0}:c.offset(r),d={scroll:i?t.documentElement.scrollTop||t.body.scrollTop:e.prop("scrollTop")||0},f=i?{width:t.documentElement.clientWidth,height:n.innerHeight}:null;return angular.extend({},s,d,f,u)}function C(e,t,n,r){var i,o=e.split("-");switch(o[0]){case"right":i={top:t.top+t.height/2-r/2,left:t.left+t.width};break;case"bottom":i={top:t.top+t.height,left:t.left+t.width/2-n/2};break;case"left":i={top:t.top+t.height/2-r/2,left:t.left-n};break;default:i={top:t.top-r,left:t.left+t.width/2-n/2}}if(!o[1])return i;if("top"===o[0]||"bottom"===o[0])switch(o[1]){case"left":i.left=t.left;break;case"right":i.left=t.left+t.width-n}else if("left"===o[0]||"right"===o[0])switch(o[1]){case"top":i.top=t.top-r+t.height;break;case"bottom":i.top=t.top}return i}function M(e,t){var n=Y[0],r=n.offsetWidth,i=n.offsetHeight,o=parseInt(c.css(n,"margin-top"),10),a=parseInt(c.css(n,"margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top=e.top+o,e.left=e.left+a,c.setOffset(n,angular.extend({using:function(e){Y.css({top:Math.round(e.top)+"px",left:Math.round(e.left)+"px",right:""})}},e),0);var s=n.offsetWidth,l=n.offsetHeight;if("top"===t&&l!==i&&(e.top=e.top+i-l),!/top-left|top-right|bottom-left|bottom-right/.test(t)){var u=_(t,e,s,l);if(u.left?e.left+=u.left:e.top+=u.top,c.setOffset(n,e),/top|right|bottom|left/.test(t)){var d=/top|bottom/.test(t);T(d?2*u.left-r+s:2*u.top-i+l,n[d?"offsetWidth":"offsetHeight"],d)}}}function _(e,t,n,r){var i={top:0,left:0};if(!E.$viewport)return i;var o=O.viewport&&O.viewport.padding||0,a=D(E.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,l=t.top+o-a.scroll+r;s<a.top?i.top=a.top-s:l>a.top+a.height&&(i.top=a.top+a.height-l)}else{var u=t.left-o,c=t.left+o+n;u<a.left?i.left=a.left-u:c>a.right&&(i.left=a.left+a.width-c)}return i}function T(e,t,n){m(".tooltip-arrow, .arrow",Y[0]).css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")}function A(){clearTimeout(H),E.$isShown&&null!==Y&&(O.autoClose&&x(),O.keyboard&&b()),j&&(j.$destroy(),j=null),Y&&(Y.remove(),Y=E.$element=null)}var E={},O=E.$options=angular.extend({},e,a),P=E.$promise=i.compile(O),V=E.$scope=O.scope&&O.scope.$new()||r.$new(),F=o[0].nodeName.toLowerCase();if(O.delay&&angular.isString(O.delay)){var N=O.delay.split(",").map(parseFloat);O.delay=N.length>1?{show:N[0],hide:N[1]}:N[0]}E.$id=O.id||o.attr("id")||"",O.title&&(V.title=u.trustAsHtml(O.title)),V.$setEnabled=function(e){V.$$postDigest(function(){E.setEnabled(e)})},V.$hide=function(){V.$$postDigest(function(){E.hide()})},V.$show=function(){V.$$postDigest(function(){E.show()})},V.$toggle=function(){V.$$postDigest(function(){E.toggle()})},E.$isShown=V.$isShown=!1;var H,R,U,Y,I,j;P.then(function(e){U=e,E.init()}),E.init=function(){O.delay&&angular.isNumber(O.delay)&&(O.delay={show:O.delay,hide:O.delay}),"self"===O.container?I=o:angular.isElement(O.container)?I=O.container:O.container&&(I=m(O.container)),$(),O.target&&(O.target=angular.isElement(O.target)?O.target:m(O.target)),O.show&&V.$$postDigest(function(){"focus"===O.trigger?o[0].focus():E.show()})},E.destroy=function(){y(),A(),V.$destroy()},E.enter=function(){if(clearTimeout(H),R="in",!O.delay||!O.delay.show)return E.show();H=setTimeout(function(){"in"===R&&E.show()},O.delay.show)},E.show=function(){if(O.bsEnabled&&!E.$isShown){V.$emit(O.prefixEvent+".show.before",E),angular.isDefined(O.onBeforeShow)&&angular.isFunction(O.onBeforeShow)&&O.onBeforeShow(E);var e,t;O.container?(e=I,t=I[0].lastChild?angular.element(I[0].lastChild):null):(e=null,t=o),Y&&A(),j=E.$scope.$new(),Y=E.$element=U.link(j,function(e,t){}),Y.css({top:"-9999px",left:"-9999px",right:"auto",display:"block",visibility:"hidden"}),O.animation&&Y.addClass(O.animation),O.type&&Y.addClass(O.prefixClass+"-"+O.type),O.customClass&&Y.addClass(O.customClass),t?t.after(Y):e.prepend(Y),E.$isShown=V.$isShown=!0,p(V),E.$applyPlacement(),angular.version.minor<=2?l.enter(Y,e,t,s):l.enter(Y,e,t).then(s),p(V),d(function(){Y&&Y.css({visibility:"visible"}),O.keyboard&&("focus"!==O.trigger&&E.focus(),w())}),O.autoClose&&S()}},E.leave=function(){if(clearTimeout(H),R="out",!O.delay||!O.delay.hide)return E.hide();H=setTimeout(function(){"out"===R&&E.hide()},O.delay.hide)};var L,q;E.hide=function(e){E.$isShown&&(V.$emit(O.prefixEvent+".hide.before",E),angular.isDefined(O.onBeforeHide)&&angular.isFunction(O.onBeforeHide)&&O.onBeforeHide(E),L=e,q=Y,null!==Y&&(angular.version.minor<=2?l.leave(Y,h):l.leave(Y).then(h)),E.$isShown=V.$isShown=!1,p(V),O.keyboard&&null!==Y&&b(),O.autoClose&&null!==Y&&x())},E.toggle=function(e){e&&e.preventDefault(),E.$isShown?E.leave():E.enter()},E.focus=function(){Y[0].focus()},E.setEnabled=function(e){O.bsEnabled=e},E.setViewport=function(e){O.viewport=e},E.$applyPlacement=function(){if(Y){var t=O.placement,n=/\s?auto?\s?/i,r=n.test(t);r&&(t=t.replace(n,"")||e.placement),Y.addClass(O.placement);var i=D(),o=Y.prop("offsetWidth"),a=Y.prop("offsetHeight");if(E.$viewport=O.viewport&&m(O.viewport.selector||O.viewport),r){var s=t,l=D(E.$viewport);/bottom/.test(s)&&i.bottom+a>l.bottom?t=s.replace("bottom","top"):/top/.test(s)&&i.top-a<l.top&&(t=s.replace("top","bottom")),/left/.test(s)&&i.left-o<l.left?t=t.replace("left","right"):/right/.test(s)&&i.right+o>l.width&&(t=t.replace("right","left")),Y.removeClass(s).addClass(t)}M(C(t,i,o,a),t)}},E.$onKeyUp=function(e){27===e.which&&E.$isShown&&(E.hide(),e.stopPropagation())},E.$onFocusKeyUp=function(e){27===e.which&&(o[0].blur(),e.stopPropagation())},E.$onFocusElementMouseDown=function(e){O.mouseDownPreventDefault&&e.preventDefault(),O.mouseDownStopPropagation&&e.stopPropagation(),E.$isShown?o[0].blur():o[0].focus()};var W=!1;return E}function p(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function m(e,n){return angular.element((n||t).querySelectorAll(e))}var $=/(ip[ao]d|iphone|android)/gi.test(n.navigator.userAgent),g="createTouch"in n.document&&$,v=angular.element(n.document);return h}]}).directive("bsTooltip",["$window","$location","$sce","$parse","$tooltip","$$rAF",function(e,t,n,r,i,o){return{restrict:"EAC",scope:!0,link:function(e,t,r,a){var s,l={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","titleTemplate","placement","container","delay","trigger","html","animation","backdropAnimation","type","customClass","id"],function(e){angular.isDefined(r[e])&&(l[e]=r[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(r[e])&&u.test(r[e])&&(l[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(r[n])&&(l[t]=e.$eval(r[n]))});var c=t.attr("data-target");angular.isDefined(c)&&(u.test(c)?l.target=!1:l.target=c),e.hasOwnProperty("title")||(e.title=""),r.$observe("title",function(t){if(angular.isDefined(t)||!e.hasOwnProperty("title")){var r=e.title;e.title=n.trustAsHtml(t),angular.isDefined(r)&&o(function(){s&&s.$applyPlacement()})}}),r.$observe("disabled",function(e){e&&s.$isShown&&s.hide()}),r.bsTooltip&&e.$watch(r.bsTooltip,function(t,n){angular.isObject(t)?angular.extend(e,t):e.title=t,angular.isDefined(n)&&o(function(){s&&s.$applyPlacement()})},!0),r.bsShow&&e.$watch(r.bsShow,function(e,t){s&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(tooltip),?/i)),!0===e?s.show():s.hide())}),r.bsEnabled&&e.$watch(r.bsEnabled,function(e,t){s&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|1|,?(tooltip),?/i)),!1===e?s.setEnabled(!1):s.setEnabled(!0))}),r.viewport&&e.$watch(r.viewport,function(e){s&&angular.isDefined(e)&&s.setViewport(e)}),s=i(t,l),e.$on("$destroy",function(){s&&s.destroy(),l=null,s=null})}}}]),angular.module("mgcrea.ngStrap.timepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$timepicker",function(){var e=this.defaults={animation:"am-fade",defaultDate:"auto",prefixClass:"timepicker",placement:"bottom-left",templateUrl:"timepicker/timepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!0,timeType:"date",timeFormat:"shortTime",timezone:null,modelTimeFormat:null,autoclose:!1,minTime:-1/0,maxTime:1/0,length:5,hourStep:1,minuteStep:5,secondStep:5,roundDisplay:!1,iconUp:"glyphicon glyphicon-chevron-up",iconDown:"glyphicon glyphicon-chevron-down",arrowBehavior:"pager"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","$tooltip","$timeout",function(t,n,r,i,o,a,s){function l(t,n,r){function i(e,n){var r=e+n;if(t[0].createTextRange){var i=t[0].createTextRange();i.collapse(!0),i.moveStart("character",e),i.moveEnd("character",r),i.select()}else t[0].setSelectionRange?t[0].setSelectionRange(e,r):angular.isUndefined(t[0].selectionStart)&&(t[0].selectionStart=e,t[0].selectionEnd=r)}function l(){t[0].focus()}var d=a(t,angular.extend({},e,r)),f=r.scope,h=d.$options,p=d.$scope,m=h.lang,$=function(e,t,n){return o.formatDate(e,t,m,n)},g=0,v=h.roundDisplay?function(e){var t=6e4*h.minuteStep;return new Date(Math.floor(e.getTime()/t)*t)}(new Date):new Date,y=n.$dateValue||v,w={hour:y.getHours(),meridian:y.getHours()<12,minute:y.getMinutes(),second:y.getSeconds(),
  millisecond:y.getMilliseconds()},b=o.getDatetimeFormat(h.timeFormat,m),S=o.hoursFormat(b),x=o.timeSeparator(b),k=o.minutesFormat(b),D=o.secondsFormat(b),C=o.showSeconds(b),M=o.showAM(b);p.$iconUp=h.iconUp,p.$iconDown=h.iconDown,p.$select=function(e,t){d.select(e,t)},p.$moveIndex=function(e,t){d.$moveIndex(e,t)},p.$switchMeridian=function(e){d.switchMeridian(e)},d.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())?(d.$date=e,angular.extend(w,{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),d.$build()):d.$isBuilt||d.$build()},d.select=function(e,t,r){n.$dateValue&&!isNaN(n.$dateValue.getTime())||(n.$dateValue="today"===h.defaultDate?new Date:new Date(1970,0,1)),angular.isDate(e)||(e=new Date(e)),0===t?n.$dateValue.setHours(e.getHours()):1===t?n.$dateValue.setMinutes(e.getMinutes()):2===t&&n.$dateValue.setSeconds(e.getSeconds()),n.$setViewValue(angular.copy(n.$dateValue)),n.$render(),h.autoclose&&!r&&s(function(){d.hide(!0)})},d.switchMeridian=function(e){if(n.$dateValue&&!isNaN(n.$dateValue.getTime())){var t=(e||n.$dateValue).getHours();n.$dateValue.setHours(t<12?t+12:t-12),n.$setViewValue(angular.copy(n.$dateValue)),n.$render()}},d.$build=function(){var e,t,n=p.midIndex=parseInt(h.length/2,10),r=[];for(e=0;e<h.length;e++)t=new Date(1970,0,1,w.hour-(n-e)*h.hourStep),r.push({date:t,label:$(t,S),selected:d.$date&&d.$isSelected(t,0),disabled:d.$isDisabled(t,0)});var i,o=[];for(e=0;e<h.length;e++)i=new Date(1970,0,1,0,w.minute-(n-e)*h.minuteStep),o.push({date:i,label:$(i,k),selected:d.$date&&d.$isSelected(i,1),disabled:d.$isDisabled(i,1)});var a,s=[];for(e=0;e<h.length;e++)a=new Date(1970,0,1,0,0,w.second-(n-e)*h.secondStep),s.push({date:a,label:$(a,D),selected:d.$date&&d.$isSelected(a,2),disabled:d.$isDisabled(a,2)});var l=[];for(e=0;e<h.length;e++)C?l.push([r[e],o[e],s[e]]):l.push([r[e],o[e]]);p.rows=l,p.showSeconds=C,p.showAM=M,p.isAM=(d.$date||r[n].date).getHours()<12,p.timeSeparator=x,d.$isBuilt=!0},d.$isSelected=function(e,t){return!!d.$date&&(0===t?e.getHours()===d.$date.getHours():1===t?e.getMinutes()===d.$date.getMinutes():2===t?e.getSeconds()===d.$date.getSeconds():void 0)},d.$isDisabled=function(e,t){var n;return 0===t?n=e.getTime()+6e4*w.minute+1e3*w.second:1===t?n=e.getTime()+36e5*w.hour+1e3*w.second:2===t&&(n=e.getTime()+36e5*w.hour+6e4*w.minute),n<1*h.minTime||n>1*h.maxTime},p.$arrowAction=function(e,t){"picker"===h.arrowBehavior?d.$setTimeByStep(e,t):d.$moveIndex(e,t)},d.$setTimeByStep=function(e,t){var n=new Date(d.$date||y),r=n.getHours(),i=n.getMinutes(),o=n.getSeconds();0===t?n.setHours(r-parseInt(h.hourStep,10)*e):1===t?n.setMinutes(i-parseInt(h.minuteStep,10)*e):2===t&&n.setSeconds(o-parseInt(h.secondStep,10)*e),d.select(n,t,!0)},d.$moveIndex=function(e,t){var n;0===t?(n=new Date(1970,0,1,w.hour+e*h.length,w.minute,w.second),angular.extend(w,{hour:n.getHours()})):1===t?(n=new Date(1970,0,1,w.hour,w.minute+e*h.length*h.minuteStep,w.second),angular.extend(w,{minute:n.getMinutes()})):2===t&&(n=new Date(1970,0,1,w.hour,w.minute,w.second+e*h.length*h.secondStep),angular.extend(w,{second:n.getSeconds()})),d.$build()},d.$onMouseDown=function(e){if("input"!==e.target.nodeName.toLowerCase()&&e.preventDefault(),e.stopPropagation(),c){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},d.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void d.hide(!0);var t=new Date(d.$date),n=t.getHours(),r=$(t,S).length,o=t.getMinutes(),a=$(t,k).length,s=t.getSeconds(),l=$(t,D).length,u=/(37|39)/.test(e.keyCode),c=2+1*C+1*M;u&&(37===e.keyCode?g=g<1?c-1:g-1:39===e.keyCode&&(g=g<c-1?g+1:0));var p=[0,r],m=0;38===e.keyCode&&(m=-1),40===e.keyCode&&(m=1);var v=2===g&&C,y=2===g&&!C||3===g&&C;0===g?(t.setHours(n+m*parseInt(h.hourStep,10)),r=$(t,S).length,p=[0,r]):1===g?(t.setMinutes(o+m*parseInt(h.minuteStep,10)),a=$(t,k).length,p=[r+1,a]):v?(t.setSeconds(s+m*parseInt(h.secondStep,10)),l=$(t,D).length,p=[r+1+a+1,l]):y&&(u||d.switchMeridian(),p=[r+1+a+1+(l+1)*C,2]),d.select(t,g,!0),i(p[0],p[1]),f.$digest()}};var _=d.init;d.init=function(){if(u&&h.useNative)return t.prop("type","time"),void t.css("-webkit-appearance","textfield");c&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",l)),_()};var T=d.destroy;d.destroy=function(){u&&h.useNative&&t.off("click",l),T()};var A=d.show;d.show=function(){!c&&t.attr("readonly")||t.attr("disabled")||(A(),s(function(){d.$element&&d.$element.on(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.on("keydown",d.$onKeyDown)},0,!1))};var E=d.hide;return d.hide=function(e){d.$isShown&&(d.$element&&d.$element.off(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.off("keydown",d.$onKeyDown),E(e))},d}var u=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),c="createTouch"in t.document&&u;return e.lang||(e.lang=o.getDefaultLocale()),l.defaults=e,l}]}).directive("bsTimepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$timepicker",function(e,t,r,i,o,a){var s=a.defaults,l=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,r,u){function c(e){if(angular.isDate(e)){var t=isNaN(f.minTime)||new Date(e.getTime()).setFullYear(1970,0,1)>=f.minTime,n=isNaN(f.maxTime)||new Date(e.getTime()).setFullYear(1970,0,1)<=f.maxTime,r=t&&n;u.$setValidity("date",r),u.$setValidity("min",t),u.$setValidity("max",n),r&&(u.$dateValue=e)}}function d(){return!u.$dateValue||isNaN(u.$dateValue.getTime())?"":$(u.$dateValue,f.timeFormat)}var f={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","autoclose","timeType","timeFormat","timezone","modelTimeFormat","useNative","hourStep","minuteStep","secondStep","length","arrowBehavior","iconUp","iconDown","roundDisplay","id","prefixClass","prefixEvent","defaultDate"],function(e){angular.isDefined(r[e])&&(f[e]=r[e])});var h=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","roundDisplay"],function(e){angular.isDefined(r[e])&&h.test(r[e])&&(f[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(r[n])&&(f[t]=e.$eval(r[n]))}),l&&(f.useNative||s.useNative)&&(f.timeFormat="HH:mm");var p=a(t,u,f);f=p.$options;var m=f.lang,$=function(e,t,n){return i.formatDate(e,t,m,n)};r.bsShow&&e.$watch(r.bsShow,function(e,t){p&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(timepicker),?/i)),!0===e?p.show():p.hide())});var g=o({format:f.timeFormat,lang:m});angular.forEach(["minTime","maxTime"],function(e){angular.isDefined(r[e])&&r.$observe(e,function(t){p.$options[e]=g.getTimeForAttribute(e,t),isNaN(p.$options[e])||p.$build(),c(u.$dateValue)})}),e.$watch(r.ngModel,function(e,t){p.update(u.$dateValue)},!0),u.$parsers.unshift(function(e){var t;if(!e)return u.$setValidity("date",!0),null;var r=angular.isDate(e)?e:g.parse(e,u.$dateValue);return!r||isNaN(r.getTime())?(u.$setValidity("date",!1),n):(c(r),"string"===f.timeType?(t=g.timezoneOffsetAdjust(r,f.timezone,!0),$(t,f.modelTimeFormat||f.timeFormat)):(t=g.timezoneOffsetAdjust(u.$dateValue,f.timezone,!0),"number"===f.timeType?t.getTime():"unix"===f.timeType?t.getTime()/1e3:"iso"===f.timeType?t.toISOString():new Date(t)))}),u.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===f.timeType?g.parse(e,null,f.modelTimeFormat):"unix"===f.timeType?new Date(1e3*e):new Date(e),u.$dateValue=g.timezoneOffsetAdjust(t,f.timezone),d()}),u.$render=function(){t.val(d())},e.$on("$destroy",function(){p&&p.destroy(),f=null,p=null})}}}]),angular.module("mgcrea.ngStrap.tab",[]).provider("$tab",function(){var e=this.defaults={animation:"am-fade",template:"tab/tab.tpl.html",navClass:"nav-tabs",activeClass:"active"},t=this.controller=function(t,n,r){var i=this;i.$options=angular.copy(e),angular.forEach(["animation","navClass","activeClass"],function(e){angular.isDefined(r[e])&&(i.$options[e]=r[e])}),t.$navClass=i.$options.navClass,t.$activeClass=i.$options.activeClass,i.$panes=t.$panes=[],i.$activePaneChangeListeners=i.$viewChangeListeners=[],i.$push=function(e){angular.isUndefined(i.$panes.$active)&&t.$setActive(e.name||0),i.$panes.push(e)},i.$remove=function(e){var t,n=i.$panes.indexOf(e),r=i.$panes.$active;t=angular.isString(r)?i.$panes.map(function(e){return e.name}).indexOf(r):i.$panes.$active,i.$panes.splice(n,1),n<t?t--:n===t&&t===i.$panes.length&&t--,t>=0&&t<i.$panes.length?i.$setActive(i.$panes[t].name||t):i.$setActive()},i.$setActive=t.$setActive=function(e){i.$panes.$active=e,i.$activePaneChangeListeners.forEach(function(e){e()})},i.$isActive=t.$isActive=function(e,t){return i.$panes.$active===e.name||i.$panes.$active===t}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsTabs",["$window","$animate","$tab","$parse",function(e,t,n,r){var i=n.defaults;return{require:["?ngModel","bsTabs"],transclude:!0,scope:!0,controller:["$scope","$element","$attrs",n.controller],templateUrl:function(e,t){return t.template||i.template},link:function(e,t,n,i){var o=i[0],a=i[1];if(o&&(a.$activePaneChangeListeners.push(function(){o.$setViewValue(a.$panes.$active)}),o.$formatters.push(function(e){return a.$setActive(e),e})),n.bsActivePane){var s=r(n.bsActivePane);a.$activePaneChangeListeners.push(function(){s.assign(e,a.$panes.$active)}),e.$watch(n.bsActivePane,function(e,t){a.$setActive(e)},!0)}}}}]).directive("bsPane",["$window","$animate","$sce",function(e,t,n){return{require:["^?ngModel","^bsTabs"],scope:!0,link:function(e,r,i,o){function a(){var n=s.$panes.indexOf(e);t[s.$isActive(e,n)?"addClass":"removeClass"](r,s.$options.activeClass)}var s=o[1];r.addClass("tab-pane"),i.$observe("title",function(t,r){e.title=n.trustAsHtml(t)}),e.name=i.name,s.$options.animation&&r.addClass(s.$options.animation),i.$observe("disabled",function(t,n){e.disabled=e.$eval(t)}),s.$push(e),e.$on("$destroy",function(){s.$remove(e)}),s.$activePaneChangeListeners.push(function(){a()}),a()}}}]),angular.module("mgcrea.ngStrap.select",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$select",function(){var e=this.defaults={animation:"am-fade",prefixClass:"select",prefixEvent:"$select",placement:"bottom-left",templateUrl:"select/select.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,multiple:!1,allNoneButtons:!1,sort:!0,caretHtml:'&nbsp;<span class="caret"></span>',placeholder:"Choose among the following...",allText:"All",noneText:"None",maxLength:3,maxLengthHtml:"selected",iconCheckmark:"glyphicon glyphicon-ok",toggle:!1};this.$get=["$window","$document","$rootScope","$tooltip","$timeout",function(t,r,i,o,a){function s(i,s,l){var c={},d=angular.extend({},e,l);c=o(i,d);var f=c.$scope;f.$matches=[],d.multiple?f.$activeIndex=[]:f.$activeIndex=-1,f.$isMultiple=d.multiple,f.$showAllNoneButtons=d.allNoneButtons&&d.multiple,f.$iconCheckmark=d.iconCheckmark,f.$allText=d.allText,f.$noneText=d.noneText,f.$activate=function(e){f.$$postDigest(function(){c.activate(e)})},f.$select=function(e,t){f.$$postDigest(function(){c.select(e)})},f.$isVisible=function(){return c.$isVisible()},f.$isActive=function(e){return c.$isActive(e)},f.$selectAll=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)||f.$select(e)},f.$selectNone=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)&&f.$select(e)},c.update=function(e){f.$matches=e,c.$updateActiveIndex()},c.activate=function(e){return d.multiple?(c.$isActive(e)?f.$activeIndex.splice(f.$activeIndex.indexOf(e),1):f.$activeIndex.push(e),d.sort&&f.$activeIndex.sort(function(e,t){return e-t})):f.$activeIndex=e,f.$activeIndex},c.select=function(e){if(!(angular.isUndefined(e)||e<0||e>=f.$matches.length)){var t=f.$matches[e].value;f.$apply(function(){c.activate(e),d.multiple?s.$setViewValue(f.$activeIndex.map(function(e){return angular.isUndefined(f.$matches[e])?null:f.$matches[e].value})):(d.toggle?s.$setViewValue(t===s.$modelValue?n:t):s.$setViewValue(t),c.hide())}),f.$emit(d.prefixEvent+".select",t,e,c),angular.isDefined(d.onSelect)&&angular.isFunction(d.onSelect)&&d.onSelect(t,e,c)}},c.$updateActiveIndex=function(){d.multiple?angular.isArray(s.$modelValue)?f.$activeIndex=s.$modelValue.map(function(e){return c.$getIndex(e)}):f.$activeIndex=[]:angular.isDefined(s.$modelValue)&&f.$matches.length?f.$activeIndex=c.$getIndex(s.$modelValue):f.$activeIndex=-1},c.$isVisible=function(){return d.minLength&&s?f.$matches.length&&s.$viewValue.length>=d.minLength:f.$matches.length},c.$isActive=function(e){return d.multiple?-1!==f.$activeIndex.indexOf(e):f.$activeIndex===e},c.$getIndex=function(e){var t;for(t=f.$matches.length;t--&&!angular.equals(f.$matches[t].value,e););return t},c.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),u){var t,n=angular.element(e.target);if("A"!==e.target.nodeName)for(var r=n.parent();!t&&r.length>0;)"A"===r[0].nodeName&&(t=r),r=r.parent();t?angular.element(t).triggerHandler("click"):n.triggerHandler("click")}},c.$onKeyDown=function(e){if(/(9|13|38|40)/.test(e.keyCode))return 9!==e.keyCode&&(e.preventDefault(),e.stopPropagation()),d.multiple&&9===e.keyCode?c.hide():d.multiple||13!==e.keyCode&&9!==e.keyCode?void(d.multiple||(38===e.keyCode&&f.$activeIndex>0?f.$activeIndex--:38===e.keyCode&&f.$activeIndex<0?f.$activeIndex=f.$matches.length-1:40===e.keyCode&&f.$activeIndex<f.$matches.length-1?f.$activeIndex++:angular.isUndefined(f.$activeIndex)&&(f.$activeIndex=0),f.$digest())):c.select(f.$activeIndex)},c.$isIE=function(){var e=t.navigator.userAgent;return e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0},c.$selectScrollFix=function(e){"UL"===r[0].activeElement.tagName&&(e.preventDefault(),e.stopImmediatePropagation(),e.target.focus())};var h=c.show;c.show=function(){h(),d.multiple&&c.$element.addClass("select-multiple"),a(function(){c.$element.on(u?"touchstart":"mousedown",c.$onMouseDown),d.keyboard&&i.on("keydown",c.$onKeyDown)},0,!1)};var p=c.hide;return c.hide=function(){!d.multiple&&angular.isUndefined(s.$modelValue)&&(f.$activeIndex=-1),c.$element.off(u?"touchstart":"mousedown",c.$onMouseDown),d.keyboard&&i.off("keydown",c.$onKeyDown),p(!0)},c}var l=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),u="createTouch"in t.document&&l;return s.defaults=e,s}]}).directive("bsSelect",["$window","$parse","$q","$select","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){var s={scope:e,placeholder:o.placeholder};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","placeholder","allNoneButtons","maxLength","maxLengthHtml","allText","noneText","iconCheckmark","autoClose","id","sort","caretHtml","prefixClass","prefixEvent","toggle"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var l=/^(false|0|)$/i;angular.forEach(["html","container","allNoneButtons","sort"],function(e){angular.isDefined(n[e])&&l.test(n[e])&&(s[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide","onSelect"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(n[r])&&(s[t]=e.$eval(n[r]))});var u=t.attr("data-multiple");if(angular.isDefined(u)&&(l.test(u)?s.multiple=!1:s.multiple=u),"select"===t[0].nodeName.toLowerCase()){var c=t;c.css("display","none"),t=angular.element('<button type="button" class="btn btn-default"></button>'),c.after(t)}var d=i(n.bsOptions),f=r(t,a,s);f.$isIE()&&t[0].addEventListener("blur",f.$selectScrollFix);var h=d.$match[7].replace(/\|.+/,"").trim();e.$watch(h,function(t,n){d.valuesFn(e,a).then(function(e){f.update(e),a.$render()})},!0),e.$watch(n.ngModel,function(e,t){f.$updateActiveIndex(),a.$render()},!0),a.$render=function(){var e,n;s.multiple&&angular.isArray(a.$modelValue)?(e=a.$modelValue.map(function(e){return-1!==(n=f.$getIndex(e))&&f.$scope.$matches[n].label}).filter(angular.isDefined),e=e.length>(s.maxLength||o.maxLength)?e.length+" "+(s.maxLengthHtml||o.maxLengthHtml):e.join(", ")):(n=f.$getIndex(a.$modelValue),e=-1!==n&&f.$scope.$matches[n].label),t.html((e||s.placeholder)+(s.caretHtml||o.caretHtml))},s.multiple&&(a.$isEmpty=function(e){return!e||0===e.length}),e.$on("$destroy",function(){f&&f.destroy(),s=null,f=null})}}}]),angular.module("mgcrea.ngStrap.scrollspy",["mgcrea.ngStrap.helpers.debounce","mgcrea.ngStrap.helpers.dimensions"]).provider("$scrollspy",function(){var e=this.$$spies={},n=this.defaults={debounce:150,throttle:100,offset:100};this.$get=["$window","$document","$rootScope","dimensions","debounce","throttle",function(r,i,o,a,s,l){function u(e,t){return e[0].nodeName&&e[0].nodeName.toLowerCase()===t.toLowerCase()}function c(i){var c=angular.extend({},n,i);c.element||(c.element=h);var p=u(c.element,"body"),m=p?d:c.element,$=p?"window":c.id;if(e[$])return e[$].$$count++,e[$];var g,v,y,w,b,S,x,k,D={},C=D.$trackedElements=[],M=[];return D.init=function(){this.$$count=1,w=s(this.checkPosition,c.debounce),b=l(this.checkPosition,c.throttle),m.on("click",this.checkPositionWithEventLoop),d.on("resize",w),m.on("scroll",b),S=s(this.checkOffsets,c.debounce),g=o.$on("$viewContentLoaded",S),v=o.$on("$includeContentLoaded",S),S(),$&&(e[$]=D)},D.destroy=function(){--this.$$count>0||(m.off("click",this.checkPositionWithEventLoop),d.off("resize",w),m.off("scroll",b),g(),v(),$&&delete e[$])},D.checkPosition=function(){if(M.length){if(k=(p?r.pageYOffset:m.prop("scrollTop"))||0,x=Math.max(r.innerHeight,f.prop("clientHeight")),k<M[0].offsetTop&&y!==M[0].target)return D.$activateElement(M[0]);for(var e=M.length;e--;)if(!angular.isUndefined(M[e].offsetTop)&&null!==M[e].offsetTop&&y!==M[e].target&&!(k<M[e].offsetTop||M[e+1]&&k>M[e+1].offsetTop))return D.$activateElement(M[e])}},D.checkPositionWithEventLoop=function(){setTimeout(D.checkPosition,1)},D.$activateElement=function(e){if(y){var t=D.$getTrackedElement(y);t&&(t.source.removeClass("active"),u(t.source,"li")&&u(t.source.parent().parent(),"li")&&t.source.parent().parent().removeClass("active"))}y=e.target,e.source.addClass("active"),u(e.source,"li")&&u(e.source.parent().parent(),"li")&&e.source.parent().parent().addClass("active")},D.$getTrackedElement=function(e){return C.filter(function(t){return t.target===e})[0]},D.checkOffsets=function(){angular.forEach(C,function(e){var n=t.querySelector(e.target);e.offsetTop=n?a.offset(n).top:null,c.offset&&null!==e.offsetTop&&(e.offsetTop-=1*c.offset)}),M=C.filter(function(e){return null!==e.offsetTop}).sort(function(e,t){return e.offsetTop-t.offsetTop}),w()},D.trackElement=function(e,t){C.push({target:e,source:t})},D.untrackElement=function(e,t){for(var n,r=C.length;r--;)if(C[r].target===e&&C[r].source===t){n=r;break}C.splice(n,1)},D.activate=function(e){C[e].addClass("active")},D.init(),D}var d=angular.element(r),f=angular.element(i.prop("documentElement")),h=angular.element(r.document.body);return c}]}).directive("bsScrollspy",["$rootScope","debounce","dimensions","$scrollspy",function(e,t,n,r){return{restrict:"EAC",link:function(e,t,n){var i={scope:e};angular.forEach(["offset","target"],function(e){angular.isDefined(n[e])&&(i[e]=n[e])});var o=r(i);o.trackElement(i.target,t),e.$on("$destroy",function(){o&&(o.untrackElement(i.target,t),o.destroy()),i=null,o=null})}}}]).directive("bsScrollspyList",["$rootScope","debounce","dimensions","$scrollspy",function(e,t,n,r){return{restrict:"A",compile:function(e,t){var n=e[0].querySelectorAll("li > a[href]");angular.forEach(n,function(e){var t=angular.element(e);t.parent().attr("bs-scrollspy","").attr("data-target",t.attr("href"))})}}}]),angular.module("mgcrea.ngStrap.popover",["mgcrea.ngStrap.tooltip"]).provider("$popover",function(){var e=this.defaults={animation:"am-fade",customClass:"",container:!1,target:!1,placement:"right",templateUrl:"popover/popover.tpl.html",contentTemplate:!1,trigger:"click",keyboard:!0,html:!1,title:"",content:"",delay:0,autoClose:!1};this.$get=["$tooltip",function(t){function n(n,r){var i=angular.extend({},e,r),o=t(n,i);return i.content&&(o.$scope.content=i.content),o}return n}]}).directive("bsPopover",["$window","$sce","$popover",function(e,t,n){var r=e.requestAnimationFrame||e.setTimeout;return{restrict:"EAC",scope:!0,link:function(e,i,o){var a,s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","container","delay","trigger","html","animation","customClass","autoClose","id","prefixClass","prefixEvent","bsEnabled"],function(e){angular.isDefined(o[e])&&(s[e]=o[e])});var l=/^(false|0|)$/i;angular.forEach(["html","container","autoClose"],function(e){angular.isDefined(o[e])&&l.test(o[e])&&(s[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(o[n])&&(s[t]=e.$eval(o[n]))});var u=i.attr("data-target");angular.isDefined(u)&&(l.test(u)?s.target=!1:s.target=u),angular.forEach(["title","content"],function(n){o[n]&&o.$observe(n,function(i,o){e[n]=t.trustAsHtml(i),angular.isDefined(o)&&r(function(){a&&a.$applyPlacement()})})}),o.bsPopover&&e.$watch(o.bsPopover,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t,angular.isDefined(n)&&r(function(){a&&a.$applyPlacement()})},!0),o.bsShow&&e.$watch(o.bsShow,function(e,t){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(popover),?/i)),!0===e?a.show():a.hide())}),o.bsEnabled&&e.$watch(o.bsEnabled,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|1|,?(popover),?/i)),!1===e?a.setEnabled(!1):a.setEnabled(!0))}),o.viewport&&e.$watch(o.viewport,function(e){a&&angular.isDefined(e)&&a.setViewport(e)}),a=n(i,s),e.$on("$destroy",function(){a&&a.destroy(),s=null,a=null})}}}]),angular.module("mgcrea.ngStrap.navbar",[]).provider("$navbar",function(){var e=this.defaults={activeClass:"active",routeAttr:"data-match-route",strict:!1};this.$get=function(){return{defaults:e}}}).directive("bsNavbar",["$window","$location","$navbar",function(e,t,n){var r=n.defaults;return{restrict:"A",link:function(e,n,i,o){var a=angular.copy(r);angular.forEach(Object.keys(r),function(e){angular.isDefined(i[e])&&(a[e]=i[e])}),e.$watch(function(){return t.path()},function(e,t){var r=n[0].querySelectorAll("li["+a.routeAttr+"]");angular.forEach(r,function(t){var n=angular.element(t),r=n.attr(a.routeAttr).replace("/","\\/");a.strict&&(r="^"+r+"$"),new RegExp(r,"i").test(e)?n.addClass(a.activeClass):n.removeClass(a.activeClass)})})}}}]),angular.module("mgcrea.ngStrap.modal",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$modal",function(){var e=this.defaults={animation:"am-fade",backdropAnimation:"am-fade",customClass:"",prefixClass:"modal",prefixEvent:"modal",placement:"top",templateUrl:"modal/modal.tpl.html",template:"",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0,size:null,zIndex:null};this.$get=["$window","$rootScope","$bsCompiler","$animate","$timeout","$sce","dimensions",function(n,r,i,o,a,s,l){function u(t){function n(){M.$emit(D.prefixEvent+".show",k),angular.isDefined(D.onShow)&&angular.isFunction(D.onShow)&&D.onShow(k)}function a(){M.$emit(D.prefixEvent+".hide",k),angular.isDefined(D.onHide)&&angular.isFunction(D.onHide)&&D.onHide(k),d(".modal").length<=0&&p.removeClass(D.prefixClass+"-open"),D.animation&&p.removeClass(D.prefixClass+"-with-"+D.animation)}function l(){D.backdrop&&(T.on("click",b),E.on("click",b),E.on("wheel",S))}function u(){D.backdrop&&(T.off("click",b),E.off("click",b),E.off("wheel",S))}function y(){D.keyboard&&T.on("keyup",k.$onKeyUp)}function w(){D.keyboard&&T.off("keyup",k.$onKeyUp)}function b(e){e.target===e.currentTarget&&("static"===D.backdrop?k.focus():k.hide())}function S(e){e.preventDefault()}function x(){k.$isShown&&null!==T&&(u(),w()),A&&(A.$destroy(),A=null),T&&(T.remove(),T=k.$element=null)}var k={},D=k.$options=angular.extend({},e,t),C=k.$promise=i.compile(D),M=k.$scope=D.scope&&D.scope.$new()||r.$new();D.element||D.container||(D.container="body"),D.zIndex&&($=parseInt(D.zIndex,10),g=$-10),k.$id=D.id||D.element&&D.element.attr("id")||"",f(["title","content"],function(e){D[e]&&(M[e]=s.trustAsHtml(D[e]))}),M.$hide=function(){M.$$postDigest(function(){k.hide()})},M.$show=function(){M.$$postDigest(function(){k.show()})},M.$toggle=function(){M.$$postDigest(function(){k.toggle()})},k.$isShown=M.$isShown=!1;var _,T,A,E=angular.element('<div class="'+D.prefixClass+'-backdrop"/>');return E.css({position:"fixed",top:"0px",left:"0px",bottom:"0px",right:"0px"}),C.then(function(e){_=e,k.init()}),k.init=function(){D.show&&M.$$postDigest(function(){k.show()})},k.destroy=function(){x(),E&&(E.remove(),E=null),M.$destroy()},k.show=function(){if(!k.$isShown){var e,t;if(angular.isElement(D.container)?(e=D.container,t=D.container[0].lastChild?angular.element(D.container[0].lastChild):null):D.container?(e=d(D.container),t=e[0]&&e[0].lastChild?angular.element(e[0].lastChild):null):(e=null,t=D.element),T&&x(),A=k.$scope.$new(),T=k.$element=_.link(A,function(e,t){}),D.backdrop&&(T.css({"z-index":$+20*m}),E.css({"z-index":g+20*m}),m++),!M.$emit(D.prefixEvent+".show.before",k).defaultPrevented){angular.isDefined(D.onBeforeShow)&&angular.isFunction(D.onBeforeShow)&&D.onBeforeShow(k),T.css({display:"block"}).addClass(D.placement),D.customClass&&T.addClass(D.customClass),D.size&&v[D.size]&&angular.element(d(".modal-dialog",T[0])).addClass(v[D.size]),D.animation&&(D.backdrop&&E.addClass(D.backdropAnimation),T.addClass(D.animation)),D.backdrop&&o.enter(E,p,null),angular.version.minor<=2?o.enter(T,e,t,n):o.enter(T,e,t).then(n),k.$isShown=M.$isShown=!0,c(M);var r=T[0];h(function(){r.focus()}),p.addClass(D.prefixClass+"-open"),D.animation&&p.addClass(D.prefixClass+"-with-"+D.animation),l(),y()}}},k.hide=function(){k.$isShown&&(M.$emit(D.prefixEvent+".hide.before",k).defaultPrevented||(angular.isDefined(D.onBeforeHide)&&angular.isFunction(D.onBeforeHide)&&D.onBeforeHide(k),angular.version.minor<=2?o.leave(T,a):o.leave(T).then(a),D.backdrop&&(m--,o.leave(E)),k.$isShown=M.$isShown=!1,c(M),u(),w()))},k.toggle=function(){k.$isShown?k.hide():k.show()},k.focus=function(){T[0].focus()},k.$onKeyUp=function(e){27===e.which&&k.$isShown&&(k.hide(),e.stopPropagation())},k}function c(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function d(e,n){return angular.element((n||t).querySelectorAll(e))}var f=angular.forEach,h=n.requestAnimationFrame||n.setTimeout,p=angular.element(n.document.body),m=0,$=1050,g=1040,v={lg:"modal-lg",sm:"modal-sm"};return u}]}).directive("bsModal",["$window","$sce","$parse","$modal",function(e,t,n,r){return{restrict:"EAC",scope:!0,link:function(e,n,i,o){var a={scope:e,element:n,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation","backdropAnimation","id","prefixEvent","prefixClass","customClass","modalClass","size","zIndex"],function(e){angular.isDefined(i[e])&&(a[e]=i[e])}),a.modalClass&&(a.customClass=a.modalClass);var s=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&s.test(i[e])&&(a[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[n])&&(a[t]=e.$eval(i[n]))}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r,i){e[n]=t.trustAsHtml(r)})}),i.bsModal&&e.$watch(i.bsModal,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var l=r(a);n.on(i.trigger||"click",l.toggle),e.$on("$destroy",function(){l&&l.destroy(),a=null,l=null})}}}]),angular.version.minor<3&&angular.version.dot<14&&angular.module("ng").factory("$$rAF",["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||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}]),angular.module("mgcrea.ngStrap.helpers.parseOptions",[]).provider("$parseOptions",function(){var e=this.defaults={regexp:/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/};this.$get=["$parse","$q",function(t,n){function r(r,i){function o(e,t){return e.map(function(e,n){var r,i,o={};return o[c]=e,r=u(t,o),i=h(t,o),{label:r,value:i,index:n}})}var a={},s=angular.extend({},e,i);a.$values=[];var l,u,c,d,f,h,p;return a.init=function(){a.$match=l=r.match(s.regexp),u=t(l[2]||l[1]),c=l[4]||l[6],d=l[5],f=t(l[3]||""),h=t(l[2]?l[1]:c),p=t(l[7])},a.valuesFn=function(e,t){return n.when(p(e,t)).then(function(t){return angular.isArray(t)||(t=[]),a.$values=t.length?o(t,e):[],a.$values})},a.displayValue=function(e){var t={};return t[c]=e,u(t)},a.init(),a}return r}]}),angular.module("mgcrea.ngStrap.helpers.dimensions",[]).factory("dimensions",function(){function t(e){var t=e.ownerDocument,i=e.offsetParent||t;if(r(i,"#document"))return t.documentElement;for(;i&&!r(i,"html")&&"static"===n.css(i,"position");)i=i.offsetParent;return i||t.documentElement}var n={},r=n.nodeName=function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()};return n.css=function(t,n,r){var i;return i=t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n],!0===r?parseFloat(i)||0:i},n.offset=function(t){var n=t.getBoundingClientRect(),r=t.ownerDocument;return{width:n.width||t.offsetWidth,height:n.height||t.offsetHeight,top:n.top+(e.pageYOffset||r.documentElement.scrollTop)-(r.documentElement.clientTop||0),left:n.left+(e.pageXOffset||r.documentElement.scrollLeft)-(r.documentElement.clientLeft||0)}},n.setOffset=function(e,t,r){var i,o,a,s,l,u,c,d=n.css(e,"position"),f=angular.element(e),h={};"static"===d&&(e.style.position="relative"),l=n.offset(e),a=n.css(e,"top"),u=n.css(e,"left"),c=("absolute"===d||"fixed"===d)&&(a+u).indexOf("auto")>-1,c?(i=n.position(e),s=i.top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(u)||0),angular.isFunction(t)&&(t=t.call(e,r,l)),null!==t.top&&(h.top=t.top-l.top+s),null!==t.left&&(h.left=t.left-l.left+o),"using"in t?t.using.call(f,h):f.css({top:h.top+"px",left:h.left+"px"})},n.position=function(e){var i,o,a={top:0,left:0};return"fixed"===n.css(e,"position")?o=e.getBoundingClientRect():(i=t(e),o=n.offset(e),r(i,"html")||(a=n.offset(i)),a.top+=n.css(i,"borderTopWidth",!0),a.left+=n.css(i,"borderLeftWidth",!0)),{width:e.offsetWidth,height:e.offsetHeight,top:o.top-a.top-n.css(e,"marginTop",!0),left:o.left-a.left-n.css(e,"marginLeft",!0)}},n.height=function(e,t){var r=e.offsetHeight;return t?r+=n.css(e,"marginTop",!0)+n.css(e,"marginBottom",!0):r-=n.css(e,"paddingTop",!0)+n.css(e,"paddingBottom",!0)+n.css(e,"borderTopWidth",!0)+n.css(e,"borderBottomWidth",!0),r},n.width=function(e,t){var r=e.offsetWidth;return t?r+=n.css(e,"marginLeft",!0)+n.css(e,"marginRight",!0):r-=n.css(e,"paddingLeft",!0)+n.css(e,"paddingRight",!0)+n.css(e,"borderLeftWidth",!0)+n.css(e,"borderRightWidth",!0),r},n}),angular.module("mgcrea.ngStrap.helpers.debounce",[]).factory("debounce",["$timeout",function(e){return function(t,n,r){var i=null;return function(){var o=this,a=arguments,s=r&&!i;return i&&e.cancel(i),i=e(function(){i=null,r||t.apply(o,a)},n,!1),s&&t.apply(o,a),i}}}]).factory("throttle",["$timeout",function(e){return function(t,n,r){var i=null;return r||(r={}),function(){var o=this,a=arguments;i||(!1!==r.leading&&t.apply(o,a),i=e(function(){i=null,!1!==r.trailing&&t.apply(o,a)},n,!1))}}}]),
  angular.module("mgcrea.ngStrap.helpers.dateParser",[]).provider("$dateParser",["$localeProvider",function(e){function t(){this.year=1970,this.month=0,this.day=1,this.hours=0,this.minutes=0,this.seconds=0,this.milliseconds=0}function n(){}function r(e){return!isNaN(parseFloat(e))&&isFinite(e)}function i(e,t){for(var n=e.length,r=t.toString().toLowerCase(),i=0;i<n;i++)if(e[i].toLowerCase()===r)return i;return-1}t.prototype.setMilliseconds=function(e){this.milliseconds=e},t.prototype.setSeconds=function(e){this.seconds=e},t.prototype.setMinutes=function(e){this.minutes=e},t.prototype.setHours=function(e){this.hours=e},t.prototype.getHours=function(){return this.hours},t.prototype.setDate=function(e){this.day=e},t.prototype.setMonth=function(e){this.month=e},t.prototype.setFullYear=function(e){this.year=e},t.prototype.fromDate=function(e){return this.year=e.getFullYear(),this.month=e.getMonth(),this.day=e.getDate(),this.hours=e.getHours(),this.minutes=e.getMinutes(),this.seconds=e.getSeconds(),this.milliseconds=e.getMilliseconds(),this},t.prototype.toDate=function(){return new Date(this.year,this.month,this.day,this.hours,this.minutes,this.seconds,this.milliseconds)};var o=t.prototype,a=this.defaults={format:"shortDate",strict:!1};this.$get=["$locale","dateFilter",function(e,s){return function(l){function u(e){return p(c(e))}function c(e){var t=d(e),n=t.replace(/''/g,"\\'"),r=n.split(/('(?:\\'|.)*?')/),i=Object.keys(b),o=[];return angular.forEach(r,function(e){if(f(e))e=h(e);else for(var t=0;t<i.length;t++)e=e.split(i[t]).join("${"+t+"}");o.push(e)}),o.join("")}function d(e){return e.replace(/\\/g,"[\\\\]").replace(/-/g,"[-]").replace(/\./g,"[.]").replace(/\*/g,"[*]").replace(/\+/g,"[+]").replace(/\?/g,"[?]").replace(/\$/g,"[$]").replace(/\^/g,"[^]").replace(/\//g,"[/]").replace(/\\s/g,"[\\s]")}function f(e){return/^'.*'$/.test(e)}function h(e){return e.replace(/^'(.*)'$/,"$1")}function p(e){for(var t=Object.keys(b),n=e,r=0;r<t.length;r++)n=n.split("${"+r+"}").join("("+b[t[r]]+")");return new RegExp("^"+n+"$",["i"])}function m(e){return $(c(e))}function $(e){for(var t,n,r,i,o=Object.keys(b),a=new RegExp("\\${(\\d+)}","g"),s=[];null!==(t=a.exec(e));)n=t[1],r=o[n],i=S[r],s.push(i);return s}var g,v,y=angular.extend({},a,l),w={},b={sss:"[0-9]{3}",ss:"[0-5][0-9]",s:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",mm:"[0-5][0-9]",m:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",HH:"[01][0-9]|2[0-3]",H:y.strict?"1?[0-9]|2[0-3]":"[01]?[0-9]|2[0-3]",hh:"[0][1-9]|[1][012]",h:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",a:"AM|PM",EEEE:e.DATETIME_FORMATS.DAY.join("|"),EEE:e.DATETIME_FORMATS.SHORTDAY.join("|"),dd:"0[1-9]|[12][0-9]|3[01]",d:y.strict?"[1-9]|[1-2][0-9]|3[01]":"0?[1-9]|[1-2][0-9]|3[01]",MMMM:e.DATETIME_FORMATS.MONTH.join("|"),MMM:e.DATETIME_FORMATS.SHORTMONTH.join("|"),MM:"0[1-9]|1[012]",M:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",yyyy:"[1]{1}[0-9]{3}|[2]{1}[0-9]{3}",yy:"[0-9]{2}",y:y.strict?"-?(0|[1-9][0-9]{0,3})":"-?0*[0-9]{1,4}"},S={sss:o.setMilliseconds,ss:o.setSeconds,s:o.setSeconds,mm:o.setMinutes,m:o.setMinutes,HH:o.setHours,H:o.setHours,hh:o.setHours,h:o.setHours,EEEE:n,EEE:n,dd:o.setDate,d:o.setDate,a:function(e){var t=this.getHours()%12;return this.setHours(e.match(/pm/i)?t+12:t)},MMMM:function(t){return this.setMonth(i(e.DATETIME_FORMATS.MONTH,t))},MMM:function(t){return this.setMonth(i(e.DATETIME_FORMATS.SHORTMONTH,t))},MM:function(e){return this.setMonth(1*e-1)},M:function(e){return this.setMonth(1*e-1)},yyyy:o.setFullYear,yy:function(e){return this.setFullYear(2e3+1*e)},y:function(e){return 1*e<=50&&2===e.length?this.setFullYear(2e3+1*e):this.setFullYear(1*e)}};return w.init=function(){w.$format=e.DATETIME_FORMATS[y.format]||y.format,g=u(w.$format),v=m(w.$format)},w.isValid=function(e){return angular.isDate(e)?!isNaN(e.getTime()):g.test(e)},w.parse=function(n,r,i,o){i&&(i=e.DATETIME_FORMATS[i]||i),angular.isDate(n)&&(n=s(n,i||w.$format,o));var a=i?u(i):g,l=i?m(i):v,c=a.exec(n);if(!c)return!1;for(var d=r&&!isNaN(r.getTime())?(new t).fromDate(r):(new t).fromDate(new Date(1970,0,1,0)),f=0;f<c.length-1;f++)l[f]&&l[f].call(d,c[f+1]);var h=d.toDate();return parseInt(d.day,10)===h.getDate()&&h},w.getDateForAttribute=function(e,t){var n;if("today"===t){var i=new Date;n=new Date(i.getFullYear(),i.getMonth(),i.getDate()+("maxDate"===e?1:0),0,0,0,"minDate"===e?0:-1)}else n=angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)):r(t)?new Date(parseInt(t,10)):angular.isString(t)&&0===t.length?"minDate"===e?-1/0:1/0:new Date(t);return n},w.getTimeForAttribute=function(e,t){return"now"===t?(new Date).setFullYear(1970,0,1):angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)).setFullYear(1970,0,1):r(t)?new Date(parseInt(t,10)).setFullYear(1970,0,1):angular.isString(t)&&0===t.length?"minTime"===e?-1/0:1/0:w.parse(t,new Date(1970,0,1,0))},w.daylightSavingAdjust=function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},w.timezoneOffsetAdjust=function(e,t,n){return e?(t&&"UTC"===t&&(e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+(n?-1:1)*e.getTimezoneOffset())),e):null},w.init(),w}}]}]),angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$locale","dateFilter",function(e,t){function n(e){return/(h+)([:\.])?(m+)([:\.])?(s*)[ ]?(a?)/i.exec(e).slice(1)}this.getDefaultLocale=function(){return e.id},this.getDatetimeFormat=function(t,n){return e.DATETIME_FORMATS[t]||t},this.weekdaysShort=function(t){return e.DATETIME_FORMATS.SHORTDAY},this.hoursFormat=function(e){return n(e)[0]},this.minutesFormat=function(e){return n(e)[2]},this.secondsFormat=function(e){return n(e)[4]},this.timeSeparator=function(e){return n(e)[1]},this.showSeconds=function(e){return!!n(e)[4]},this.showAM=function(e){return!!n(e)[5]},this.formatDate=function(e,n,r,i){return t(e,n,i)}}]),angular.module("mgcrea.ngStrap.core",[]).service("$bsCompiler",r),angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown",function(){var e=this.defaults={animation:"am-fade",prefixClass:"dropdown",prefixEvent:"dropdown",placement:"bottom-left",templateUrl:"dropdown/dropdown.tpl.html",trigger:"click",container:!1,keyboard:!0,html:!1,delay:0};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,n,r,i){function o(t,o){function l(e){if(e.target!==t[0])return e.target!==t[0]&&u.hide()}var u={},c=angular.extend({},e,o);u.$scope=c.scope&&c.scope.$new()||n.$new(),u=r(t,c);var d=t.parent();u.$onKeyDown=function(e){if(/(38|40)/.test(e.keyCode)){e.preventDefault(),e.stopPropagation();var t=angular.element(u.$element[0].querySelectorAll("li:not(.divider) a"));if(t.length){var n;angular.forEach(t,function(e,t){s&&s.call(e,":focus")&&(n=t)}),38===e.keyCode&&n>0?n--:40===e.keyCode&&n<t.length-1?n++:angular.isUndefined(n)&&(n=0),t.eq(n)[0].focus()}}};var f=u.show;u.show=function(){f(),i(function(){c.keyboard&&u.$element&&u.$element.on("keydown",u.$onKeyDown),a.on("click",l)},0,!1),d.hasClass("dropdown")&&d.addClass("open")};var h=u.hide;u.hide=function(){u.$isShown&&(c.keyboard&&u.$element&&u.$element.off("keydown",u.$onKeyDown),a.off("click",l),d.hasClass("dropdown")&&d.removeClass("open"),h())};var p=u.destroy;return u.destroy=function(){a.off("click",l),p()},u}var a=angular.element(t.document.body),s=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;return o}]}).directive("bsDropdown",["$window","$sce","$dropdown",function(e,t,r){return{restrict:"EAC",scope:!0,compile:function(e,t){if(!t.bsDropdown){for(var i=e[0].nextSibling;i&&1!==i.nodeType;)i=i.nextSibling;i&&i.className.split(" ").indexOf("dropdown-menu")>=0&&(t.template=i.outerHTML,t.templateUrl=n,i.parentNode.removeChild(i))}return function(e,n,i){var o={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","id","autoClose"],function(e){angular.isDefined(t[e])&&(o[e]=t[e])});var a=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[n])&&(o[t]=e.$eval(i[n]))}),i.bsDropdown&&e.$watch(i.bsDropdown,function(t,n){e.content=t},!0);var s=r(n,o);i.bsShow&&e.$watch(i.bsShow,function(e,t){s&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(dropdown),?/i)),!0===e?s.show():s.hide())}),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}}]),angular.module("mgcrea.ngStrap.button",[]).provider("$button",function(){var e=this.defaults={activeClass:"active",toggleEvent:"click"};this.$get=function(){return{defaults:e}}}).directive("bsCheckboxGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="checkbox"]');angular.forEach(n,function(e){var n=angular.element(e);n.attr("bs-checkbox",""),n.attr("ng-model",t.ngModel+"."+n.attr("value"))})}}}).directive("bsCheckbox",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s=n,l="INPUT"===i[0].nodeName,u=l?i.parent():i,c=!angular.isDefined(o.trueValue)||o.trueValue;r.test(o.trueValue)&&(c=e.$eval(o.trueValue));var d=!!angular.isDefined(o.falseValue)&&o.falseValue;r.test(o.falseValue)&&(d=e.$eval(o.falseValue)),("boolean"!=typeof c||"boolean"!=typeof d)&&(a.$parsers.push(function(e){return e?c:d}),a.$formatters.push(function(e){return angular.equals(e,c)})),a.$render=function(){var e=!!a.$viewValue;t(function(){l&&(i[0].checked=e),u.toggleClass(s.activeClass,e)})},i.bind(s.toggleEvent,function(){e.$apply(function(){l||a.$setViewValue(!u.hasClass("active")),a.$render()})})}}}]).directive("bsRadioGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="radio"]');angular.forEach(n,function(e){angular.element(e).attr("bs-radio",""),angular.element(e).attr("ng-model",t.ngModel)})}}}).directive("bsRadio",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s,l=n,u="INPUT"===i[0].nodeName,c=u?i.parent():i;o.$observe("value",function(t){s="boolean"!=typeof t&&r.test(t)?e.$eval(t):t,a.$render()}),a.$render=function(){var e=angular.equals(a.$viewValue,s);t(function(){u&&(i[0].checked=e),c.toggleClass(l.activeClass,e)})},i.bind(l.toggleEvent,function(){e.$apply(function(){a.$setViewValue(s),a.$render()})})}}}]),angular.module("mgcrea.ngStrap.datepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$datepicker",function(){var e=this.defaults={animation:"am-fade",prefixClass:"datepicker",placement:"bottom-left",templateUrl:"datepicker/datepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!1,dateType:"date",dateFormat:"shortDate",timezone:null,modelDateFormat:null,dayFormat:"dd",monthFormat:"MMM",yearFormat:"yyyy",monthTitleFormat:"MMMM yyyy",yearTitleFormat:"yyyy",strictFormat:!1,autoclose:!1,minDate:-1/0,maxDate:1/0,startView:0,minView:0,startWeek:0,daysOfWeekDisabled:"",hasToday:!1,hasClear:!1,iconLeft:"glyphicon glyphicon-chevron-left",iconRight:"glyphicon glyphicon-chevron-right"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","datepickerViews","$tooltip","$timeout",function(t,n,r,i,o,a,s,l){function u(t,n,r){function i(e){e.selected=u.$isSelected(e.date)}function o(){t[0].focus()}var u=s(t,angular.extend({},e,r)),f=r.scope,h=u.$options,p=u.$scope;h.startView&&(h.startView-=h.minView);var m=a(u);u.$views=m.views;var $=m.viewDate;p.$mode=h.startView,p.$iconLeft=h.iconLeft,p.$iconRight=h.iconRight,p.$hasToday=h.hasToday,p.$hasClear=h.hasClear;var g=u.$views[p.$mode];p.$select=function(e,t){t||u.select(e)},p.$selectPane=function(e){u.$selectPane(e)},p.$toggleMode=function(){u.setMode((p.$mode+1)%u.$views.length)},p.$setToday=function(){h.autoclose?(u.setMode(0),u.select(new Date)):u.select(new Date,!0)},p.$clear=function(){h.autoclose?(u.setMode(0),u.select(null)):u.select(null,!0)},u.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())&&(u.$date=e,g.update.call(g,e)),u.$build(!0)},u.updateDisabledDates=function(e){h.disabledDateRanges=e;for(var t=0,n=p.rows.length;t<n;t++)angular.forEach(p.rows[t],u.$setDisabledEl)},u.select=function(e,t){angular.isDate(e)?angular.isDate(n.$dateValue)&&!isNaN(n.$dateValue.getTime())||(n.$dateValue=new Date(e)):n.$dateValue=null,!p.$mode||t?(n.$setViewValue(angular.copy(e)),n.$render(),h.autoclose&&!t&&l(function(){u.hide(!0)})):(angular.extend($,{year:e.getFullYear(),month:e.getMonth(),date:e.getDate()}),u.setMode(p.$mode-1),u.$build())},u.setMode=function(e){p.$mode=e,g=u.$views[p.$mode],u.$build()},u.$build=function(e){!0===e&&g.built||(!1!==e||g.built)&&g.build.call(g)},u.$updateSelected=function(){for(var e=0,t=p.rows.length;e<t;e++)angular.forEach(p.rows[e],i)},u.$isSelected=function(e){return g.isSelected(e)},u.$setDisabledEl=function(e){e.disabled=g.isDisabled(e.date)},u.$selectPane=function(e){var t=g.steps,n=new Date(Date.UTC($.year+(t.year||0)*e,$.month+(t.month||0)*e,1));angular.extend($,{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate()}),u.$build()},u.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),d){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},u.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void(p.$mode?p.$apply(function(){u.setMode(p.$mode-1)}):u.hide(!0));g.onKeyDown(e),f.$digest()}};var v=u.init;u.init=function(){if(c&&h.useNative)return t.prop("type","date"),void t.css("-webkit-appearance","textfield");d&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",o)),v()};var y=u.destroy;u.destroy=function(){c&&h.useNative&&t.off("click",o),y()};var w=u.show;u.show=function(){!d&&t.attr("readonly")||t.attr("disabled")||(w(),l(function(){u.$isShown&&(u.$element.on(d?"touchstart":"mousedown",u.$onMouseDown),h.keyboard&&t.on("keydown",u.$onKeyDown))},0,!1))};var b=u.hide;return u.hide=function(e){u.$isShown&&(u.$element.off(d?"touchstart":"mousedown",u.$onMouseDown),h.keyboard&&t.off("keydown",u.$onKeyDown),b(e))},u}var c=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),d="createTouch"in t.document&&c;return e.lang||(e.lang=o.getDefaultLocale()),u.defaults=e,u}]}).directive("bsDatepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$datepicker",function(e,t,n,r,i,o){var a=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,n,s){function l(e){return e&&e.length?e:null}function u(e){if(angular.isDate(e)){var t=isNaN(h.$options.minDate)||e.getTime()>=h.$options.minDate,n=isNaN(h.$options.maxDate)||e.getTime()<=h.$options.maxDate,r=t&&n;s.$setValidity("date",r),s.$setValidity("min",t),s.$setValidity("max",n),r&&(s.$dateValue=e)}}function c(){return!s.$dateValue||isNaN(s.$dateValue.getTime())?"":m(s.$dateValue,d.dateFormat)}var d={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","html","animation","autoclose","dateType","dateFormat","timezone","modelDateFormat","dayFormat","strictFormat","startWeek","startDate","useNative","lang","startView","minView","iconLeft","iconRight","daysOfWeekDisabled","id","prefixClass","prefixEvent","hasToday","hasClear"],function(e){angular.isDefined(n[e])&&(d[e]=n[e])});var f=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","hasToday","hasClear"],function(e){angular.isDefined(n[e])&&f.test(n[e])&&(d[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var r="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(n[r])&&(d[t]=e.$eval(n[r]))});var h=o(t,s,d);d=h.$options,a&&d.useNative&&(d.dateFormat="yyyy-MM-dd");var p=d.lang,m=function(e,t){return r.formatDate(e,t,p)},$=i({format:d.dateFormat,lang:p,strict:d.strictFormat});n.bsShow&&e.$watch(n.bsShow,function(e,t){h&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(datepicker),?/i)),!0===e?h.show():h.hide())}),angular.forEach(["minDate","maxDate"],function(e){angular.isDefined(n[e])&&n.$observe(e,function(t){h.$options[e]=$.getDateForAttribute(e,t),isNaN(h.$options[e])||h.$build(!1),u(s.$dateValue)})}),angular.isDefined(n.dateFormat)&&n.$observe("dateFormat",function(e){h.$options.dateFormat=e}),e.$watch(n.ngModel,function(e,t){h.update(s.$dateValue)},!0),angular.isDefined(n.disabledDates)&&e.$watch(n.disabledDates,function(e,t){e=l(e),t=l(t),e&&h.updateDisabledDates(e)}),s.$parsers.unshift(function(e){var t;if(!e)return s.$setValidity("date",!0),null;var n=$.parse(e,s.$dateValue);return!n||isNaN(n.getTime())?void s.$setValidity("date",!1):(u(n),"string"===d.dateType?(t=$.timezoneOffsetAdjust(n,d.timezone,!0),m(t,d.modelDateFormat||d.dateFormat)):(t=$.timezoneOffsetAdjust(s.$dateValue,d.timezone,!0),"number"===d.dateType?t.getTime():"unix"===d.dateType?t.getTime()/1e3:"iso"===d.dateType?t.toISOString():new Date(t)))}),s.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===d.dateType?$.parse(e,null,d.modelDateFormat):"unix"===d.dateType?new Date(1e3*e):new Date(e),s.$dateValue=$.timezoneOffsetAdjust(t,d.timezone),c()}),s.$render=function(){t.val(c())},e.$on("$destroy",function(){h&&h.destroy(),d=null,h=null})}}}]).provider("datepickerViews",function(){function e(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n}function t(e,t){return(e%t+t)%t}this.$get=["$dateFormatter","$dateParser","$sce",function(n,r,i){return function(o){var a=o.$scope,s=o.$options,l=s.lang,u=function(e,t){return n.formatDate(e,t,l)},c=r({format:s.dateFormat,lang:l,strict:s.strictFormat}),d=n.weekdaysShort(l),f=d.slice(s.startWeek).concat(d.slice(0,s.startWeek)),h=i.trustAsHtml('<th class="dow text-center">'+f.join('</th><th class="dow text-center">')+"</th>"),p=o.$date||(s.startDate?c.getDateForAttribute("startDate",s.startDate):new Date),m={year:p.getFullYear(),month:p.getMonth(),date:p.getDate()},$=[{format:s.dayFormat,split:7,steps:{month:1},update:function(e,t){!this.built||t||e.getFullYear()!==m.year||e.getMonth()!==m.month?(angular.extend(m,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getDate()===m.date&&1!==e.getDate()||(m.date=o.$date.getDate(),o.$updateSelected())},build:function(){var n=new Date(m.year,m.month,1),r=n.getTimezoneOffset(),i=new Date(+n-864e5*t(n.getDay()-s.startWeek,7)),l=i.getTimezoneOffset(),d=c.timezoneOffsetAdjust(new Date,s.timezone).toDateString();l!==r&&(i=new Date(+i+6e4*(l-r)));for(var f,p=[],$=0;$<42;$++)f=c.daylightSavingAdjust(new Date(i.getFullYear(),i.getMonth(),i.getDate()+$)),p.push({date:f,isToday:f.toDateString()===d,label:u(f,this.format),selected:o.$date&&this.isSelected(f),muted:f.getMonth()!==m.month,disabled:this.isDisabled(f)});a.title=u(n,s.monthTitleFormat),a.showLabels=!0,a.labels=h,a.rows=e(p,this.split),a.isTodayDisabled=this.isDisabled(new Date),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()&&e.getDate()===o.$date.getDate()},isDisabled:function(e){var t=e.getTime();if(t<s.minDate||t>s.maxDate)return!0;if(-1!==s.daysOfWeekDisabled.indexOf(e.getDay()))return!0;if(s.disabledDateRanges)for(var n=0;n<s.disabledDateRanges.length;n++)if(t>=s.disabledDateRanges[n].start&&t<=s.disabledDateRanges[n].end)return!0;return!1},onKeyDown:function(e){if(o.$date){var t,n=o.$date.getTime();37===e.keyCode?t=new Date(n-864e5):38===e.keyCode?t=new Date(n-6048e5):39===e.keyCode?t=new Date(n+864e5):40===e.keyCode&&(t=new Date(n+6048e5)),this.isDisabled(t)||o.select(t,!0)}}},{name:"month",format:s.monthFormat,split:4,steps:{year:1},update:function(e,t){this.built&&e.getFullYear()===m.year?e.getMonth()!==m.month&&(angular.extend(m,{month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected()):(angular.extend(m,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build())},build:function(){for(var t,n=[],r=0;r<12;r++)t=new Date(m.year,r,1),n.push({date:t,label:u(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=u(t,s.yearTitleFormat),a.showLabels=!1,a.rows=e(n,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()},isDisabled:function(e){return+new Date(e.getFullYear(),e.getMonth()+1,0)<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getMonth(),n=new Date(o.$date);37===e.keyCode?n.setMonth(t-1):38===e.keyCode?n.setMonth(t-4):39===e.keyCode?n.setMonth(t+1):40===e.keyCode&&n.setMonth(t+4),this.isDisabled(n)||o.select(n,!0)}}},{name:"year",format:s.yearFormat,split:4,steps:{year:12},update:function(e,t){!this.built||t||parseInt(e.getFullYear()/20,10)!==parseInt(m.year/20,10)?(angular.extend(m,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getFullYear()!==m.year&&(angular.extend(m,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected())},build:function(){for(var t,n=m.year-m.year%(3*this.split),r=[],i=0;i<12;i++)t=new Date(n+i,0,1),r.push({date:t,label:u(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=r[0].label+"-"+r[r.length-1].label,a.showLabels=!1,a.rows=e(r,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()},isDisabled:function(e){return+new Date(e.getFullYear()+1,0,0)<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getFullYear(),n=new Date(o.$date);37===e.keyCode?n.setYear(t-1):38===e.keyCode?n.setYear(t-4):39===e.keyCode?n.setYear(t+1):40===e.keyCode&&n.setYear(t+4),this.isDisabled(n)||o.select(n,!0)}}}];return{views:s.minView?Array.prototype.slice.call($,s.minView):$,viewDate:m}}}]}),angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var e=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1,allowMultiple:!1},t=this.controller=function(t,n,r){function i(e){for(var t=l.$targets.$active,n=0;n<t.length;n++)e<t[n]&&(t[n]=t[n]-1),t[n]===l.$targets.length&&(t[n]=l.$targets.length-1)}function o(e){return-1!==l.$targets.$active.indexOf(e)}function a(e){var t=l.$targets.$active.indexOf(e);-1!==t&&l.$targets.$active.splice(t,1)}function s(e){l.$options.allowMultiple||l.$targets.$active.splice(0,1),-1===l.$targets.$active.indexOf(e)&&l.$targets.$active.push(e)}var l=this;l.$options=angular.copy(e),angular.forEach(["animation","disallowToggle","activeClass","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&(l.$options[e]=r[e])});var u=/^(false|0|)$/i;angular.forEach(["disallowToggle","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&u.test(r[e])&&(l.$options[e]=!1)}),l.$toggles=[],l.$targets=[],l.$viewChangeListeners=[],l.$registerToggle=function(e){l.$toggles.push(e)},l.$registerTarget=function(e){l.$targets.push(e)},l.$unregisterToggle=function(e){var t=l.$toggles.indexOf(e);l.$toggles.splice(t,1)},l.$unregisterTarget=function(e){var t=l.$targets.indexOf(e);l.$targets.splice(t,1),l.$options.allowMultiple&&a(e),i(t),l.$viewChangeListeners.forEach(function(e){e()})},l.$targets.$active=l.$options.startCollapsed?[]:[0],l.$setActive=t.$setActive=function(e){angular.isArray(e)?l.$targets.$active=e:!l.$options.disallowToggle&&o(e)?a(e):s(e),l.$viewChangeListeners.forEach(function(e){e()})},l.$activeIndexes=function(){return l.$options.allowMultiple?l.$targets.$active:1===l.$targets.$active.length?l.$targets.$active[0]:-1}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsCollapse",["$window","$animate","$collapse",function(e,t,n){return{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",n.controller],link:function(e,t,n,r){var i=r[0],o=r[1];i&&(o.$viewChangeListeners.push(function(){i.$setViewValue(o.$activeIndexes())}),i.$formatters.push(function(e){if(angular.isArray(e))o.$setActive(e);else{var t=o.$activeIndexes();angular.isArray(t)?-1===t.indexOf(1*e)&&o.$setActive(1*e):t!==1*e&&o.$setActive(1*e)}return e}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(e,t,n,r){var i=r[1];t.attr("data-toggle","collapse"),i.$registerToggle(t),e.$on("$destroy",function(){i.$unregisterToggle(t)}),t.on("click",function(){if(!n.disabled){var r=n.bsCollapseToggle&&"bs-collapse-toggle"!==n.bsCollapseToggle?n.bsCollapseToggle:i.$toggles.indexOf(t);i.$setActive(1*r),e.$apply()}})}}}).directive("bsCollapseTarget",["$animate",function(e){return{require:["^?ngModel","^bsCollapse"],link:function(t,n,r,i){function o(){var t=a.$targets.indexOf(n),r=a.$activeIndexes(),i="removeClass";angular.isArray(r)?-1!==r.indexOf(t)&&(i="addClass"):t===r&&(i="addClass"),e[i](n,a.$options.activeClass)}var a=i[1];n.addClass("collapse"),a.$options.animation&&n.addClass(a.$options.animation),a.$registerTarget(n),t.$on("$destroy",function(){a.$unregisterTarget(n)}),a.$viewChangeListeners.push(function(){o()}),o()}}}]),angular.module("mgcrea.ngStrap.aside",["mgcrea.ngStrap.modal"]).provider("$aside",function(){var e=this.defaults={animation:"am-fade-and-slide-right",prefixClass:"aside",prefixEvent:"aside",placement:"right",templateUrl:"aside/aside.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$modal",function(t){function n(n){var r=angular.extend({},e,n);return t(r)}return n}]}).directive("bsAside",["$window","$sce","$aside",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i,o){var a={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation"],function(e){angular.isDefined(i[e])&&(a[e]=i[e])});var s=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&s.test(i[e])&&(a[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[n])&&(a[t]=e.$eval(i[n]))}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r,i){e[n]=t.trustAsHtml(r)})}),i.bsAside&&e.$watch(i.bsAside,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var l=n(a);r.on(i.trigger||"click",l.toggle),e.$on("$destroy",function(){l&&l.destroy(),a=null,l=null})}}}]),angular.module("mgcrea.ngStrap.alert",["mgcrea.ngStrap.modal"]).provider("$alert",function(){var e=this.defaults={animation:"am-fade",prefixClass:"alert",prefixEvent:"alert",placement:null,templateUrl:"alert/alert.tpl.html",container:!1,element:null,backdrop:!1,keyboard:!0,show:!0,duration:!1,type:!1,dismissable:!0};this.$get=["$modal","$timeout",function(t,n){function r(r){var i={},o=angular.extend({},e,r);i=t(o),i.$scope.dismissable=!!o.dismissable,o.type&&(i.$scope.type=o.type);var a=i.show;return o.duration&&(i.show=function(){a(),n(function(){i.hide()},1e3*o.duration)}),i}return r}]}).directive("bsAlert",["$window","$sce","$alert",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i,o){var a={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","placement","keyboard","html","container","animation","duration","dismissable"],function(e){angular.isDefined(i[e])&&(a[e]=i[e])});var s=/^(false|0|)$/i;angular.forEach(["keyboard","html","container","dismissable"],function(e){angular.isDefined(i[e])&&s.test(i[e])&&(a[e]=!1)}),angular.forEach(["onBeforeShow","onShow","onBeforeHide","onHide"],function(t){var n="bs"+t.charAt(0).toUpperCase()+t.slice(1);angular.isDefined(i[n])&&(a[t]=e.$eval(i[n]))}),e.hasOwnProperty("title")||(e.title=""),angular.forEach(["title","content","type"],function(n){i[n]&&i.$observe(n,function(r,i){e[n]=t.trustAsHtml(r)})}),i.bsAlert&&e.$watch(i.bsAlert,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var l=n(a);r.on(i.trigger||"click",l.toggle),e.$on("$destroy",function(){l&&l.destroy(),a=null,l=null})}}}]),angular.module("mgcrea.ngStrap.affix",["mgcrea.ngStrap.helpers.dimensions","mgcrea.ngStrap.helpers.debounce"]).provider("$affix",function(){var e=this.defaults={offsetTop:"auto",inlineStyles:!0,setWidth:!0};this.$get=["$window","debounce","dimensions",function(t,n,r){function i(i,s){function l(e,t,n){var r=u(),i=c();return r<=g?"top":null!==e?r+e<=t.top?"middle":"bottom":null!==v&&t.top+n+m>=i-v?"bottom":"middle"}function u(){return h[0]===t?t.pageYOffset:h[0].scrollTop}function c(){return h[0]===t?t.document.body.scrollHeight:h[0].scrollHeight}var d={},f=angular.extend({},e,s),h=f.target,p=!1,m=0,$=0,g=0,v=0,y=null,w=null,b=i.parent();if(f.offsetParent)if(f.offsetParent.match(/^\d+$/))for(var S=0;S<1*f.offsetParent-1;S++)b=b.parent();else b=angular.element(f.offsetParent);return d.init=function(){this.$parseOffsets(),$=r.offset(i[0]).top+m,p=f.setWidth&&!i[0].style.width,h.on("scroll",this.checkPosition),h.on("click",this.checkPositionWithEventLoop),a.on("resize",this.$debouncedOnResize),this.checkPosition(),this.checkPositionWithEventLoop()},d.destroy=function(){h.off("scroll",this.checkPosition),h.off("click",this.checkPositionWithEventLoop),a.off("resize",this.$debouncedOnResize)},d.checkPositionWithEventLoop=function(){setTimeout(d.checkPosition,1)},d.checkPosition=function(){var e=u(),t=r.offset(i[0]),n=r.height(i[0]),a=l(w,t,n);y!==a&&(y=a,"top"===a?(w=null,p&&i.css("width",""),f.inlineStyles&&(i.css("position",f.offsetParent?"":"relative"),i.css("top",""))):"bottom"===a?(w=f.offsetUnpin?-1*f.offsetUnpin:t.top-e,p&&i.css("width",""),f.inlineStyles&&(i.css("position",f.offsetParent?"":"relative"),i.css("top",f.offsetParent?"":o[0].offsetHeight-v-n-$+"px"))):(w=null,p&&i.css("width",i[0].offsetWidth+"px"),f.inlineStyles&&(i.css("position","fixed"),i.css("top",m+"px"))),i.removeClass("affix affix-top affix-bottom").addClass("affix"+("middle"!==a?"-"+a:"")))},d.$onResize=function(){d.$parseOffsets(),d.checkPosition()},d.$debouncedOnResize=n(d.$onResize,50),d.$parseOffsets=function(){var e=i[0].style.position,t=i[0].style.top;f.inlineStyles&&(i.css("position",f.offsetParent?"":"relative"),i.css("top","")),f.offsetTop&&("auto"===f.offsetTop&&(f.offsetTop="+0"),f.offsetTop.match(/^[-+]\d+$/)?(m=1*-f.offsetTop,g=f.offsetParent?r.offset(b[0]).top+1*f.offsetTop:r.offset(i[0]).top-r.css(i[0],"marginTop",!0)+1*f.offsetTop):g=1*f.offsetTop),f.offsetBottom&&(v=f.offsetParent&&f.offsetBottom.match(/^[-+]\d+$/)?c()-(r.offset(b[0]).top+r.height(b[0]))+1*f.offsetBottom+1:1*f.offsetBottom),f.inlineStyles&&(i.css("position",e),i.css("top",t))},d.init(),d}var o=angular.element(t.document.body),a=angular.element(t);return i}]}).directive("bsAffix",["$affix","$window","$timeout",function(e,t,n){return{restrict:"EAC",require:"^?bsAffixTarget",link:function(r,i,o,a){var s={scope:r,target:a?a.$element:angular.element(t)};angular.forEach(["offsetTop","offsetBottom","offsetParent","offsetUnpin","inlineStyles","setWidth"],function(e){if(angular.isDefined(o[e])){var t=o[e];/true/i.test(t)&&(t=!0),/false/i.test(t)&&(t=!1),s[e]=t}});var l;n(function(){l=e(i,s)}),r.$on("$destroy",function(){l&&l.destroy(),s=null,l=null})}}}]).directive("bsAffixTarget",function(){return{
  controller:["$element",function(e){this.$element=e}]}}),angular.module("mgcrea.ngStrap",["mgcrea.ngStrap.modal","mgcrea.ngStrap.aside","mgcrea.ngStrap.alert","mgcrea.ngStrap.button","mgcrea.ngStrap.select","mgcrea.ngStrap.datepicker","mgcrea.ngStrap.timepicker","mgcrea.ngStrap.navbar","mgcrea.ngStrap.tooltip","mgcrea.ngStrap.popover","mgcrea.ngStrap.dropdown","mgcrea.ngStrap.typeahead","mgcrea.ngStrap.scrollspy","mgcrea.ngStrap.affix","mgcrea.ngStrap.tab","mgcrea.ngStrap.collapse"])}(window,document),function(e,t,n){"use strict";angular.module("mgcrea.ngStrap.alert").run(["$templateCache",function(e){e.put("alert/alert.tpl.html",'<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">&times;</button> <span ng-if="title"><strong ng-bind="title"></strong>&nbsp;<span ng-bind-html="content"></span> </span><span ng-if="!title" ng-bind-html="content"></span></div>')}]),angular.module("mgcrea.ngStrap.aside").run(["$templateCache",function(e){e.put("aside/aside.tpl.html",'<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">&times;</button><h4 class="aside-title" ng-bind="title"></h4></div><div class="aside-body" ng-bind="content"></div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.datepicker").run(["$templateCache",function(e){e.put("datepicker/datepicker.tpl.html",'<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"></i></button></th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"></strong></button></th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"></i></button></th></tr><tr ng-if="showLabels" ng-bind-html="labels"></tr></thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date, el.disabled)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"></span></button></td></tr></tbody><tfoot><tr><td colspan="{{ rows[0].length }}"><div class="btn-group btn-group-justified" role="group"><div class="btn-group" role="group" ng-if="$hasToday"><button type="button" class="btn btn-default today" ng-click="$setToday()" ng-disabled="isTodayDisabled"><strong style="text-transform: capitalize">Today</strong></button></div><div class="btn-group" role="group" ng-if="$hasClear"><button type="button" class="btn btn-default clear" ng-click="$clear()"><strong style="text-transform: capitalize">Clear</strong></button></div></div></td></tr></tfoot></table></div>')}]),angular.module("mgcrea.ngStrap.dropdown").run(["$templateCache",function(e){e.put("dropdown/dropdown.tpl.html",'<ul tabindex="-1" class="dropdown-menu" role="menu" ng-show="content && content.length"><li role="presentation" ng-class="{divider: item.divider, active: item.active}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"></a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"></a></li></ul>')}]),angular.module("mgcrea.ngStrap.modal").run(["$templateCache",function(e){e.put("modal/modal.tpl.html",'<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">&times;</span></button><h4 class="modal-title" ng-bind="title"></h4></div><div class="modal-body" ng-bind="content"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.popover").run(["$templateCache",function(e){e.put("popover/popover.tpl.html",'<div class="popover" tabindex="-1"><div class="arrow"></div><h3 class="popover-title" ng-bind="title" ng-show="title"></h3><div class="popover-content" ng-bind="content"></div></div>')}]),angular.module("mgcrea.ngStrap.select").run(["$templateCache",function(e){e.put("select/select.tpl.html",'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}</button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}</button></div></li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"></i> <span ng-bind="match.label"></span></a></li></ul>')}]),angular.module("mgcrea.ngStrap.tab").run(["$templateCache",function(e){e.put("tab/tab.tpl.html",'<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $isActive($pane, $index) ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($pane.name || $index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title" href=""></a></li></ul><div ng-transclude class="tab-content"></div>')}]),angular.module("mgcrea.ngStrap.timepicker").run(["$templateCache",function(e){e.put("timepicker/timepicker.tpl.html",'<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"></i></button></th><th>&nbsp;</th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"></i></button></th><th ng-if="showSeconds">&nbsp;</th><th ng-if="showSeconds"><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)"><i class="{{ $iconUp }}"></i></button></th></tr></thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"></span></button></td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"></span></button></td><td ng-if="showSeconds"><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td ng-if="showSeconds" class="text-center"><button tabindex="-1" ng-if="row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled"><span ng-class="{\'text-muted\': row[2].muted}" ng-bind="row[2].label"></span></button></td><td ng-if="showAM">&nbsp;</td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM</button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM</button></td></tr></tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"></i></button></th><th>&nbsp;</th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"></i></button></th><th ng-if="showSeconds">&nbsp;</th><th ng-if="showSeconds"><button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)"><i class="{{ $iconDown }}"></i></button></th></tr></tfoot></table></div>')}]),angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(e){e.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>')}]),angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(e){e.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>')}])}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return vr.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function i(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return gt(e,t,n,r,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=d()),e._pf}function h(e){if(null==e._isValid){var t=f(e),n=wr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function p(e){var t=c(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}function m(e,t){var n,r,o;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=f(t)),i(t._locale)||(e._locale=t._locale),br.length>0)for(n=0;n<br.length;n++)r=br[n],o=t[r],i(o)||(e[r]=o);return e}function $(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Sr&&(Sr=!0,e.updateOffset(this),Sr=!1)}function g(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&y(e[r])!==y(t[r]))&&a++;return a+o}function b(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var r=!0;return u(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}b(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function x(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),xr[t]||(b(n),xr[t]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)t=e[n],k(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var r,i=u({},e);for(r in t)l(t,r)&&(n(e[r])&&n(t[r])?(i[r]={},u(i[r],e[r]),u(i[r],t[r])):null!=t[r]?i[r]=t[r]:delete i[r]);for(r in e)l(e,r)&&!l(t,r)&&n(e[r])&&(i[r]=u({},i[r]));return i}function M(e){null!=e&&this.set(e)}function _(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r}function T(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function A(){return this._invalidDate}function E(e){return this._ordinal.replace("%d",e)}function O(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)}function P(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function V(e,t){var n=e.toLowerCase();Ar[n]=Ar[n+"s"]=Ar[t]=e}function F(e){return"string"==typeof e?Ar[e]||Ar[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)l(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}function H(e,t){Er[e]=t}function R(e){var t=[];for(var n in e)t.push({unit:n,priority:Er[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function U(t,n){return function(r){return null!=r?(I(this,t,r),e.updateOffset(this,n),this):Y(this,t)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function I(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function j(e){return e=F(e),k(this[e])?this[e]():this}function L(e,t){if("object"==typeof e){e=N(e);for(var n=R(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=F(e),k(this[e]))return this[e](t);return this}function q(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Fr[e]=i),t&&(Fr[t[0]]=function(){return q(i.apply(this,arguments),t[1],t[2])}),n&&(Fr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(Or);for(t=0,n=r.length;t<n;t++)Fr[r[t]]?r[t]=Fr[r[t]]:r[t]=B(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=k(r[i])?r[i].call(t,e):r[i];return o}}function G(e,t){return e.isValid()?(t=Z(t,e.localeData()),Vr[t]=Vr[t]||z(t),Vr[t](e)):e.localeData().invalidDate()}function Z(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Pr.lastIndex=0;r>=0&&Pr.test(e);)e=e.replace(Pr,n),Pr.lastIndex=0,r-=1;return e}function K(e,t,n){Zr[e]=k(t)?t:function(e,r){return e&&n?n:t}}function J(e,t){return l(Zr,e)?Zr[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=y(e)}),n=0;n<e.length;n++)Kr[e[n]]=r}function te(e,t){ee(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ne(e,t,n){null!=t&&l(Kr,e)&&Kr[e](t,n._a,n,e)}function re(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ie(e,n){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||si).test(n)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function oe(e,n){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[si.test(n)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ae(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=ai.call(this._shortMonthsParse,a),-1!==i?i:null):(i=ai.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?(i=ai.call(this._shortMonthsParse,a),-1!==i?i:(i=ai.call(this._longMonthsParse,a),-1!==i?i:null)):(i=ai.call(this._longMonthsParse,a),-1!==i?i:(i=ai.call(this._shortMonthsParse,a),-1!==i?i:null))}function se(e,t,n){var r,i,o;if(this._monthsParseExact)return ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=c([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),!o(t))return e;return n=Math.min(e.date(),re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ue(t){return null!=t?(le(this,t),e.updateOffset(this,!0),this):Y(this,"Month")}function ce(){return re(this.year(),this.month())}function de(e){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ci),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function fe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=di),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function he(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=c([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Q(r[t]),i[t]=Q(i[t]);for(t=0;t<24;t++)o[t]=Q(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function pe(e){return me(e)?366:365}function me(e){return e%4==0&&e%100!=0||e%400==0}function $e(){return me(this.year())}function ge(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ye(e,t,n){var r=7+t-n;return-(7+ve(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=ye(e,r,i),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=pe(o)+u):u>pe(e)?(o=e+1,a=u-pe(e)):(o=e,a=u),{year:o,dayOfYear:a}}function be(e,t,n){var r,i,o=ye(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Se(i,t,n)):a>Se(e.year(),t,n)?(r=a-Se(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Se(e,t,n){var r=ye(e,t,n),i=ye(e+1,t,n);return(pe(e)-r+i)/7}function xe(e){return be(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function De(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Me(e){var t=be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function _e(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Te(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ee(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Oe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=ai.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=ai.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=ai.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?(i=ai.call(this._weekdaysParse,a),-1!==i?i:(i=ai.call(this._shortWeekdaysParse,a),-1!==i?i:(i=ai.call(this._minWeekdaysParse,a),-1!==i?i:null))):"ddd"===t?(i=ai.call(this._shortWeekdaysParse,a),-1!==i?i:(i=ai.call(this._weekdaysParse,a),-1!==i?i:(i=ai.call(this._minWeekdaysParse,a),-1!==i?i:null))):(i=ai.call(this._minWeekdaysParse,a),-1!==i?i:(i=ai.call(this._weekdaysParse,a),-1!==i?i:(i=ai.call(this._shortWeekdaysParse,a),-1!==i?i:null)))}function Ve(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=c([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=_e(e,this.localeData()),this.add(e-t,"d")):t}function Ne(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function He(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Te(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Re(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=gi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ye(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ie(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=Q(s[t]),l[t]=Q(l[t]),u[t]=Q(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function je(){return this.hours()%12||12}function Le(){return this.hours()||24}function qe(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function Be(e){return"p"===(e+"").toLowerCase().charAt(0)}function ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ge(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Ge(e[o]).split("-"),t=i.length,n=Ge(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Ke(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return null}function Ke(e){var t=null;if(!xi[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=wi._abbr,require("./locale/"+e),Je(t)}catch(e){}return xi[e]}function Je(e,t){var n;return e&&(n=i(t)?et(e):Xe(e,t))&&(wi=n),wi._abbr}function Xe(e,t){if(null!==t){var n=Si;if(t.abbr=e,null!=xi[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=xi[e]._config;else if(null!=t.parentLocale){if(null==xi[t.parentLocale])return ki[t.parentLocale]||(ki[t.parentLocale]=[]),ki[t.parentLocale].push({name:e,config:t}),null;n=xi[t.parentLocale]._config}return xi[e]=new M(C(n,t)),ki[e]&&ki[e].forEach(function(e){Xe(e.name,e.config)}),Je(e),xi[e]}return delete xi[e],null}function Qe(e,t){if(null!=t){var n,r=Si;null!=xi[e]&&(r=xi[e]._config),t=C(r,t),n=new M(t),n.parentLocale=xi[e],xi[e]=n,Je(e)}else null!=xi[e]&&(null!=xi[e].parentLocale?xi[e]=xi[e].parentLocale:null!=xi[e]&&delete xi[e]);return xi[e]}function et(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wi;if(!t(e)){if(n=Ke(e))return n;e=[e]}return Ze(e)}function tt(){return Cr(xi)}function nt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[Xr]<0||n[Xr]>11?Xr:n[Qr]<1||n[Qr]>re(n[Jr],n[Xr])?Qr:n[ei]<0||n[ei]>24||24===n[ei]&&(0!==n[ti]||0!==n[ni]||0!==n[ri])?ei:n[ti]<0||n[ti]>59?ti:n[ni]<0||n[ni]>59?ni:n[ri]<0||n[ri]>999?ri:-1,f(e)._overflowDayOfYear&&(t<Jr||t>Qr)&&(t=Qr),f(e)._overflowWeeks&&-1===t&&(t=ii),f(e)._overflowWeekday&&-1===t&&(t=oi),f(e).overflow=t),e}function rt(e){var t,n,r,i,o,a,s=e._i,l=Di.exec(s)||Ci.exec(s);if(l){for(f(e).iso=!0,t=0,n=_i.length;t<n;t++)if(_i[t][1].exec(l[1])){i=_i[t][0],r=!1!==_i[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ti.length;t<n;t++)if(Ti[t][1].exec(l[3])){o=(l[2]||" ")+Ti[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Mi.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),ct(e)}else e._isValid=!1}function it(e){var t,n,r,i,o,a,s,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"};if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Ei.exec(t)){if(r=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var c=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][c.getDay()];if(n[1].substr(0,3)!==d)return f(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===l?s=" +0000":(l="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12,s=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=u[n[5]];break;default:s=u[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=r+i+o+a,ct(e),f(e).rfc2822=!0}else e._isValid=!1}function ot(t){var n=Ai.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(rt(t),void(!1===t._isValid&&(delete t._isValid,it(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))))}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,r,i,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[Qr]&&null==e._a[Xr]&&ut(e),null!=e._dayOfYear&&(i=at(e._a[Jr],r[Jr]),(e._dayOfYear>pe(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=ve(i,0,e._dayOfYear),e._a[Xr]=n.getUTCMonth(),e._a[Qr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ei]&&0===e._a[ti]&&0===e._a[ni]&&0===e._a[ri]&&(e._nextDay=!0,e._a[ei]=0),e._d=(e._useUTC?ve:ge).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ei]=24)}}function ut(e){var t,n,r,i,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[Jr],be(vt(),1,4).year),r=at(t.W,1),((i=at(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=be(vt(),o,a);n=at(t.gg,e._a[Jr],u.year),r=at(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Se(n,o,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=we(n,r,i,o,a),e._a[Jr]=s.year,e._dayOfYear=s.dayOfYear)}function ct(t){if(t._f===e.ISO_8601)return void rt(t);if(t._f===e.RFC_2822)return void it(t);t._a=[],f(t).empty=!0;var n,r,i,o,a,s=""+t._i,l=s.length,u=0;for(i=Z(t._f,t._locale).match(Or)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(J(o,t))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),u+=r.length),Fr[o]?(r?f(t).empty=!1:f(t).unusedTokens.push(o),ne(o,r,t)):t._strict&&!r&&f(t).unusedTokens.push(o);f(t).charsLeftOver=l-u,s.length>0&&f(t).unusedInput.push(s),t._a[ei]<=12&&!0===f(t).bigHour&&t._a[ei]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[ei]=dt(t._locale,t._a[ei],t._meridiem),lt(t),nt(t)}function dt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ft(e){
  var t,n,r,i,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ct(t),h(t)&&(o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,(null==r||o<r)&&(r=o,n=t));u(e,n||t)}function ht(e){if(!e._d){var t=N(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function pt(e){var t=new $(nt(mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mt(e){var n=e._i,r=e._f;return e._locale=e._locale||et(e._l),null===n||void 0===r&&""===n?p({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),g(n)?new $(nt(n)):(a(n)?e._d=n:t(r)?ft(e):r?ct(e):$t(e),h(e)||(e._d=null),e))}function $t(r){var l=r._i;i(l)?r._d=new Date(e.now()):a(l)?r._d=new Date(l.valueOf()):"string"==typeof l?ot(r):t(l)?(r._a=s(l.slice(0),function(e){return parseInt(e,10)}),lt(r)):n(l)?ht(r):o(l)?r._d=new Date(l):e.createFromInputFallback(r)}function gt(e,i,o,a,s){var l={};return!0!==o&&!1!==o||(a=o,o=void 0),(n(e)&&r(e)||t(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=e,l._f=i,l._strict=a,pt(l)}function vt(e,t,n,r){return gt(e,t,n,r,!1)}function yt(e,n){var r,i;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return vt();for(r=n[0],i=1;i<n.length;++i)n[i].isValid()&&!n[i][e](r)||(r=n[i]);return r}function wt(){return yt("isBefore",[].slice.call(arguments,0))}function bt(){return yt("isAfter",[].slice.call(arguments,0))}function St(e){for(var t in e)if(-1===Fi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Fi.length;++r)if(e[Fi[r]]){if(n)return!1;parseFloat(e[Fi[r]])!==y(e[Fi[r]])&&(n=!0)}return!0}function xt(){return this._isValid}function kt(){return Lt(NaN)}function Dt(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=St(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=et(),this._bubble()}function Ct(e){return e instanceof Dt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function _t(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+q(~~(e/60),2)+t+q(~~e%60,2)})}function Tt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ni)||["-",0,0],o=60*i[1]+y(i[2]);return 0===o?0:"+"===i[0]?o:-o}function At(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(g(t)||a(t)?t.valueOf():vt(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):vt(t).local()}function Et(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ot(t,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Tt(zr,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&n&&(i=Et(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!n||this._changeInProgress?Gt(this,Lt(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Et(this)}function Pt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Vt(e){return this.utcOffset(0,e)}function Ft(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this}function Nt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Tt(Br,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ht(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Rt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ut(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=mt(e),e._a){var t=e._isUTC?c(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yt(){return!!this.isValid()&&!this._isUTC}function It(){return!!this.isValid()&&this._isUTC}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Lt(e,t){var n,r,i,a=e,s=null;return Ct(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=Hi.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:y(s[Qr])*n,h:y(s[ei])*n,m:y(s[ti])*n,s:y(s[ni])*n,ms:y(Mt(1e3*s[ri]))*n}):(s=Ri.exec(e))?(n="-"===s[1]?-1:1,a={y:qt(s[2],n),M:qt(s[3],n),w:qt(s[4],n),d:qt(s[5],n),h:qt(s[6],n),m:qt(s[7],n),s:qt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Bt(vt(a.from),vt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Dt(a),Ct(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bt(e,t){var n;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?n=Wt(e,t):(n=Wt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function zt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Lt(n,r),Gt(this,i,e),this}}function Gt(t,n,r,i){var o=n._milliseconds,a=Mt(n._days),s=Mt(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&I(t,"Date",Y(t,"Date")+a*r),s&&le(t,Y(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function Zt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Kt(t,n){var r=t||vt(),i=At(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(k(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,vt(r)))}function Jt(){return new $(this)}function Xt(e,t){var n=g(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=F(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Qt(e,t){var n=g(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=F(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function en(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function tn(e,t){var n,r=g(e)?e:vt(e);return!(!this.isValid()||!r.isValid())&&(t=F(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function nn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function rn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function on(e,t,n){var r,i,o,a;return this.isValid()?(r=At(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=F(t),"year"===t||"month"===t||"quarter"===t?(a=an(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:v(a)):NaN):NaN}function an(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function sn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ln(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):k(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function un(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function cn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=G(this,t);return this.localeData().postformat(n)}function dn(e,t){return this.isValid()&&(g(e)&&e.isValid()||vt(e).isValid())?Lt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.from(vt(),e)}function hn(e,t){return this.isValid()&&(g(e)&&e.isValid()||vt(e).isValid())?Lt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.to(vt(),e)}function mn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function $n(){return this._locale}function gn(e){switch(e=F(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function vn(e){return e=F(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function yn(){return this._d.valueOf()-6e4*(this._offset||0)}function wn(){return Math.floor(this.valueOf()/1e3)}function bn(){return new Date(this.valueOf())}function Sn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kn(){return this.isValid()?this.toISOString():null}function Dn(){return h(this)}function Cn(){return u({},f(this))}function Mn(){return f(this).overflow}function _n(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Tn(e,t){W(0,[e,e.length],0,t)}function An(e){return Vn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function En(e){return Vn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function On(){return Se(this.year(),1,4)}function Pn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Vn(e,t,n,r,i){var o;return null==e?be(this,r,i).year:(o=Se(e,r,i),t>o&&(t=o),Fn.call(this,e,t,n,r,i))}function Fn(e,t,n,r,i){var o=we(e,t,n,r,i),a=ve(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Nn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Hn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Rn(e,t){t[ri]=y(1e3*("0."+e))}function Un(){return this._isUTC?"UTC":""}function Yn(){return this._isUTC?"Coordinated Universal Time":""}function In(e){return vt(1e3*e)}function jn(){return vt.apply(null,arguments).parseZone()}function Ln(e){return e}function qn(e,t,n,r){var i=et(),o=c().set(r,t);return i[n](o,e)}function Wn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return qn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=qn(e,r,n,"month");return i}function Bn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=et(),a=e?i._week.dow:0;if(null!=n)return qn(t,(n+a)%7,r,"day");var s,l=[];for(s=0;s<7;s++)l[s]=qn(t,(s+a)%7,r,"day");return l}function zn(e,t){return Wn(e,t,"months")}function Gn(e,t){return Wn(e,t,"monthsShort")}function Zn(e,t,n){return Bn(e,t,n,"weekdays")}function Kn(e,t,n){return Bn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return Bn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),e.milliseconds=Zi(e.milliseconds),e.seconds=Zi(e.seconds),e.minutes=Zi(e.minutes),e.hours=Zi(e.hours),e.months=Zi(e.months),e.years=Zi(e.years),this}function Qn(e,t,n,r){var i=Lt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function er(e,t){return Qn(this,e,t,1)}function tr(e,t){return Qn(this,e,t,-1)}function nr(e){return e<0?Math.floor(e):Math.ceil(e)}function rr(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*nr(or(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=v(o/1e3),l.seconds=e%60,t=v(e/60),l.minutes=t%60,n=v(t/60),l.hours=n%24,a+=v(n/24),i=v(ir(a)),s+=i,a-=nr(or(i)),r=v(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function ir(e){return 4800*e/146097}function or(e){return 146097*e/4800}function ar(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ir(t),"month"===e?n:n/12;switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function sr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN}function lr(e){return function(){return this.as(e)}}function ur(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function cr(e){return function(){return this.isValid()?this._data[e]:NaN}}function dr(){return v(this.days()/7)}function fr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function hr(e,t,n){var r=Lt(e).abs(),i=fo(r.as("s")),o=fo(r.as("m")),a=fo(r.as("h")),s=fo(r.as("d")),l=fo(r.as("M")),u=fo(r.as("y")),c=i<=ho.ss&&["s",i]||i<ho.s&&["ss",i]||o<=1&&["m"]||o<ho.m&&["mm",o]||a<=1&&["h"]||a<ho.h&&["hh",a]||s<=1&&["d"]||s<ho.d&&["dd",s]||l<=1&&["M"]||l<ho.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,fr.apply(null,c)}function pr(e){return void 0===e?fo:"function"==typeof e&&(fo=e,!0)}function mr(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,"s"===e&&(ho.ss=t-1),!0))}function $r(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=hr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function gr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=po(this._milliseconds)/1e3,i=po(this._days),o=po(this._months);e=v(r/60),t=v(e/60),r%=60,e%=60,n=v(o/12),o%=12;var a=n,s=o,l=i,u=t,c=e,d=r,f=this.asSeconds();return f?(f<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||c||d?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var vr,yr;yr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var wr=yr,br=e.momentProperties=[],Sr=!1,xr={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var kr;kr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Dr,Cr=kr,Mr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},_r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Tr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ar={},Er={},Or=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vr={},Fr={},Nr=/\d\d/,Hr=/\d{4}/,Rr=/[+-]?\d{6}/,Ur=/\d\d?/,Yr=/\d\d\d\d?/,Ir=/\d\d\d\d\d\d?/,jr=/\d{1,3}/,Lr=/\d{1,4}/,qr=/[+-]?\d{1,6}/,Wr=/[+-]?\d+/,Br=/Z|[+-]\d\d:?\d\d/gi,zr=/Z|[+-]\d\d(?::?\d\d)?/gi,Gr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Zr={},Kr={},Jr=0,Xr=1,Qr=2,ei=3,ti=4,ni=5,ri=6,ii=7,oi=8;Dr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var ai=Dr;W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),V("month","M"),H("month",8),K("M",Ur),K("MM",Ur,Nr),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Xr]=y(e)-1}),ee(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Xr]=i:f(n).invalidMonth=e});var si=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,li="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ui="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ci=Gr,di=Gr;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),V("year","y"),H("year",1),K("Y",Wr),K("YY",Ur,Nr),K("YYYY",Lr,Hr),K("YYYYY",qr,Rr),K("YYYYYY",qr,Rr),ee(["YYYYY","YYYYYY"],Jr),ee("YYYY",function(t,n){n[Jr]=2===t.length?e.parseTwoDigitYear(t):y(t)}),ee("YY",function(t,n){n[Jr]=e.parseTwoDigitYear(t)}),ee("Y",function(e,t){t[Jr]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var fi=U("FullYear",!0);W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),H("week",5),H("isoWeek",5),K("w",Ur),K("ww",Ur,Nr),K("W",Ur),K("WW",Ur,Nr),te(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=y(e)});var hi={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),K("d",Ur),K("e",Ur),K("E",Ur),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,r){t[r]=y(e)});var pi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$i="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gi=Gr,vi=Gr,yi=Gr;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,je),W("k",["kk",2],0,Le),W("hmm",0,0,function(){return""+je.apply(this)+q(this.minutes(),2)}),W("hmmss",0,0,function(){return""+je.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),qe("a",!0),qe("A",!1),V("hour","h"),H("hour",13),K("a",We),K("A",We),K("H",Ur),K("h",Ur),K("k",Ur),K("HH",Ur,Nr),K("hh",Ur,Nr),K("kk",Ur,Nr),K("hmm",Yr),K("hmmss",Ir),K("Hmm",Yr),K("Hmmss",Ir),ee(["H","HH"],ei),ee(["k","kk"],function(e,t,n){var r=y(e);t[ei]=24===r?0:r}),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[ei]=y(e),f(n).bigHour=!0}),ee("hmm",function(e,t,n){var r=e.length-2;t[ei]=y(e.substr(0,r)),t[ti]=y(e.substr(r)),f(n).bigHour=!0}),ee("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ei]=y(e.substr(0,r)),t[ti]=y(e.substr(r,2)),t[ni]=y(e.substr(i)),f(n).bigHour=!0}),ee("Hmm",function(e,t,n){var r=e.length-2;t[ei]=y(e.substr(0,r)),t[ti]=y(e.substr(r))}),ee("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ei]=y(e.substr(0,r)),t[ti]=y(e.substr(r,2)),t[ni]=y(e.substr(i))});var wi,bi=U("Hours",!0),Si={calendar:Mr,longDateFormat:_r,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:Tr,months:li,monthsShort:ui,week:hi,weekdays:pi,weekdaysMin:$i,weekdaysShort:mi,meridiemParse:/[ap]\.?m?\.?/i},xi={},ki={},Di=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ci=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mi=/Z|[+-]\d\d(?::?\d\d)?/,_i=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ti=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ai=/^\/?Date\((\-?\d+)/i,Ei=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Oi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Pi=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),Vi=function(){return Date.now?Date.now():+new Date},Fi=["year","quarter","month","week","day","hour","minute","second","millisecond"];_t("Z",":"),_t("ZZ",""),K("Z",zr),K("ZZ",zr),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(zr,e)});var Ni=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Hi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ri=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Lt.fn=Dt.prototype,Lt.invalid=kt;var Ui=zt(1,"add"),Yi=zt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ii=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),K("G",Wr),K("g",Wr),K("GG",Ur,Nr),K("gg",Ur,Nr),K("GGGG",Lr,Hr),K("gggg",Lr,Hr),K("GGGGG",qr,Rr),K("ggggg",qr,Rr),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=y(e)}),te(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),V("quarter","Q"),H("quarter",7),K("Q",/\d/),ee("Q",function(e,t){t[Xr]=3*(y(e)-1)}),W("D",["DD",2],"Do","date"),V("date","D"),H("date",9),K("D",Ur),K("DD",Ur,Nr),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Qr),ee("Do",function(e,t){t[Qr]=y(e.match(Ur)[0],10)});var ji=U("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),H("dayOfYear",4),K("DDD",jr),K("DDDD",/\d{3}/),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),W("m",["mm",2],0,"minute"),V("minute","m"),H("minute",14),K("m",Ur),K("mm",Ur,Nr),ee(["m","mm"],ti);var Li=U("Minutes",!1);W("s",["ss",2],0,"second"),V("second","s"),H("second",15),K("s",Ur),K("ss",Ur,Nr),ee(["s","ss"],ni);var qi=U("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),V("millisecond","ms"),H("millisecond",16),K("S",jr,/\d/),K("SS",jr,Nr),K("SSS",jr,/\d{3}/);var Wi;for(Wi="SSSS";Wi.length<=9;Wi+="S")K(Wi,/\d+/);for(Wi="S";Wi.length<=9;Wi+="S")ee(Wi,Rn);var Bi=U("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var zi=$.prototype;zi.add=Ui,zi.calendar=Kt,zi.clone=Jt,zi.diff=on,zi.endOf=vn,zi.format=cn,zi.from=dn,zi.fromNow=fn,zi.to=hn,zi.toNow=pn,zi.get=j,zi.invalidAt=Mn,zi.isAfter=Xt,zi.isBefore=Qt,zi.isBetween=en,zi.isSame=tn,zi.isSameOrAfter=nn,zi.isSameOrBefore=rn,zi.isValid=Dn,zi.lang=Ii,zi.locale=mn,zi.localeData=$n,zi.max=Pi,zi.min=Oi,zi.parsingFlags=Cn,zi.set=L,zi.startOf=gn,zi.subtract=Yi,zi.toArray=Sn,zi.toObject=xn,zi.toDate=bn,zi.toISOString=ln,zi.inspect=un,zi.toJSON=kn,zi.toString=sn,zi.unix=wn,zi.valueOf=yn,zi.creationData=_n,zi.year=fi,zi.isLeapYear=$e,zi.weekYear=An,zi.isoWeekYear=En,zi.quarter=zi.quarters=Nn,zi.month=ue,zi.daysInMonth=ce,zi.week=zi.weeks=Ce,zi.isoWeek=zi.isoWeeks=Me,zi.weeksInYear=Pn,zi.isoWeeksInYear=On,zi.date=ji,zi.day=zi.days=Fe,zi.weekday=Ne,zi.isoWeekday=He,zi.dayOfYear=Hn,zi.hour=zi.hours=bi,zi.minute=zi.minutes=Li,zi.second=zi.seconds=qi,zi.millisecond=zi.milliseconds=Bi,zi.utcOffset=Ot,zi.utc=Vt,zi.local=Ft,zi.parseZone=Nt,zi.hasAlignedHourOffset=Ht,zi.isDST=Rt,zi.isLocal=Yt,zi.isUtcOffset=It,zi.isUtc=jt,zi.isUTC=jt,zi.zoneAbbr=Un,zi.zoneName=Yn,zi.dates=S("dates accessor is deprecated. Use date instead.",ji),zi.months=S("months accessor is deprecated. Use month instead",ue),zi.years=S("years accessor is deprecated. Use year instead",fi),zi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pt),zi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ut);var Gi=M.prototype;Gi.calendar=_,Gi.longDateFormat=T,Gi.invalidDate=A,Gi.ordinal=E,Gi.preparse=Ln,Gi.postformat=Ln,Gi.relativeTime=O,Gi.pastFuture=P,Gi.set=D,Gi.months=ie,Gi.monthsShort=oe,Gi.monthsParse=se,Gi.monthsRegex=fe,Gi.monthsShortRegex=de,Gi.week=xe,Gi.firstDayOfYear=De,Gi.firstDayOfWeek=ke,Gi.weekdays=Ae,Gi.weekdaysMin=Oe,Gi.weekdaysShort=Ee,Gi.weekdaysParse=Ve,Gi.weekdaysRegex=Re,Gi.weekdaysShortRegex=Ue,Gi.weekdaysMinRegex=Ye,Gi.isPM=Be,Gi.meridiem=ze,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",et);var Zi=Math.abs,Ki=lr("ms"),Ji=lr("s"),Xi=lr("m"),Qi=lr("h"),eo=lr("d"),to=lr("w"),no=lr("M"),ro=lr("y"),io=cr("milliseconds"),oo=cr("seconds"),ao=cr("minutes"),so=cr("hours"),lo=cr("days"),uo=cr("months"),co=cr("years"),fo=Math.round,ho={ss:44,s:45,m:45,h:22,d:26,M:11},po=Math.abs,mo=Dt.prototype;return mo.isValid=xt,mo.abs=Xn,mo.add=er,mo.subtract=tr,mo.as=ar,mo.asMilliseconds=Ki,mo.asSeconds=Ji,mo.asMinutes=Xi,mo.asHours=Qi,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=ro,mo.valueOf=sr,mo._bubble=rr,mo.get=ur,mo.milliseconds=io,mo.seconds=oo,mo.minutes=ao,mo.hours=so,mo.days=lo,mo.weeks=dr,mo.months=uo,mo.years=co,mo.humanize=$r,mo.toISOString=gr,mo.toString=gr,mo.toJSON=gr,mo.locale=mn,mo.localeData=$n,mo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gr),mo.lang=Ii,W("X",0,0,"unix"),W("x",0,0,"valueOf"),K("x",Wr),K("X",/[+-]?\d+(\.\d{1,3})?/),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(y(e))}),e.version="2.18.1",function(e){vr=e}(vt),e.fn=zi,e.min=wt,e.max=bt,e.now=Vi,e.utc=c,e.unix=In,e.months=zn,e.isDate=a,e.locale=Je,e.invalid=p,e.duration=Lt,e.isMoment=g,e.weekdays=Zn,e.parseZone=jn,e.localeData=et,e.isDuration=Ct,e.monthsShort=Gn,e.weekdaysMin=Jn,e.defineLocale=Xe,e.updateLocale=Qe,e.locales=tt,e.weekdaysShort=Kn,e.normalizeUnits=F,e.relativeTimeRounding=pr,e.relativeTimeThreshold=mr,e.calendarFormat=Zt,e.prototype=zi,e}),angular.module("MyApp",["ngCookies","ngResource","ngMessages","ngRoute","mgcrea.ngStrap"]).config(["$locationProvider","$routeProvider",function(e,t){e.html5Mode(!0),t.when("/",{templateUrl:"views/home.html",controller:"MainCtrl"}).when("/shows/:id",{templateUrl:"views/detail.html",controller:"DetailCtrl"}).when("/login",{templateUrl:"views/login.html",controller:"LoginCtrl"}).when("/signup",{templateUrl:"views/signup.html",controller:"SignupCtrl"}).when("/add",{templateUrl:"views/add.html",controller:"AddCtrl"}).otherwise({redirectTo:"/"})}]),angular.module("MyApp").factory("Auth",["$http","$location","$rootScope","$cookieStore","$alert",function(e,t,n,r,i){return n.currentUser=r.get("user"),r.remove("user"),{login:function(r){return e.post("/api/login",r).success(function(e){n.currentUser=e,t.path("/"),i({title:"Cheers!",content:"You have successfully logged in.",placement:"top-right",type:"success",duration:3})}).error(function(){i({title:"Error!",content:"Invalid username or password.",placement:"top-right",type:"danger",duration:3})})},signup:function(n){return e.post("/api/signup",n).success(function(){t.path("/login"),i({title:"Congratulations!",content:"Your account has been created.",placement:"top-right",type:"success",duration:3})}).error(function(e){i({title:"Error!",content:e.data,placement:"top-right",type:"danger",duration:3})})},logout:function(){return e.get("/api/logout").success(function(){n.currentUser=null,r.remove("user"),i({content:"You have been logged out.",placement:"top-right",type:"info",duration:3})})}}}]),angular.module("MyApp").factory("Show",["$resource",function(e){return e("/api/shows/:_id")}]),angular.module("MyApp").factory("Subscription",["$http",function(e){return{subscribe:function(t,n){return e.post("/api/subscribe",{showId:t._id})},unsubscribe:function(t,n){return e.post("/api/unsubscribe",{showId:t._id})}}}]),angular.module("MyApp").controller("AddCtrl",["$scope","$alert","Show",function(e,t,n){e.addShow=function(){n.save({showName:e.showName},function(){e.showName="",e.addForm.$setPristine(),t({content:"TV show has been added.",placement:"top-right",type:"success",duration:3})},function(n){e.showName="",e.addForm.$setPristine(),t({content:n.data.message,placement:"top-right",type:"danger",duration:3})})}}]),angular.module("MyApp").controller("DetailCtrl",["$scope","$rootScope","$routeParams","Show","Subscription",function(e,t,n,r,i){r.get({_id:n.id},function(n){e.show=n,e.isSubscribed=function(){return-1!==e.show.subscribers.indexOf(t.currentUser._id)},e.subscribe=function(){i.subscribe(n).success(function(){e.show.subscribers.push(t.currentUser._id)})},
  e.unsubscribe=function(){i.unsubscribe(n).success(function(){var n=e.show.subscribers.indexOf(t.currentUser._id);e.show.subscribers.splice(n,1)})},e.nextEpisode=n.episodes.filter(function(e){return new Date(e.firstAired)>new Date})[0]})}]),angular.module("MyApp").controller("LoginCtrl",["$scope","Auth",function(e,t){e.login=function(){t.login({email:e.email,password:e.password})}}]),angular.module("MyApp").controller("MainCtrl",["$scope","Show",function(e,t){e.alphabet=["0-9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e.genres=["Action","Adventure","Animation","Children","Comedy","Crime","Documentary","Drama","Family","Fantasy","Food","Home and Garden","Horror","Mini-Series","Mystery","News","Reality","Romance","Sci-Fi","Sport","Suspense","Talk Show","Thriller","Travel"],e.headingTitle="Top 12 Shows",e.shows=t.query(),e.filterByGenre=function(n){e.shows=t.query({genre:n}),e.headingTitle=n},e.filterByAlphabet=function(n){e.shows=t.query({alphabet:n}),e.headingTitle=n}}]),angular.module("MyApp").controller("NavbarCtrl",["$scope","Auth",function(e,t){e.logout=function(){t.logout()}}]),angular.module("MyApp").controller("SignupCtrl",["$scope","Auth",function(e,t){e.signup=function(){t.signup({email:e.email,password:e.password})}}]),angular.module("MyApp").filter("fromNow",function(){return function(e){return moment(e).fromNow()}}),angular.module("MyApp").directive("repeatPassword",function(){return{require:"ngModel",link:function(e,t,n,r){var i=t.inheritedData("$formController")[n.repeatPassword];r.$parsers.push(function(e){if(e===i.$viewValue)return r.$setValidity("repeat",!0),e;r.$setValidity("repeat",!1)}),i.$parsers.push(function(e){return r.$setValidity("repeat",e===r.$viewValue),e})}}});