text: !function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,i,r=arguments[0],a=arguments[1],o="["+(e?e+":":"")+r+"] ",s=W(arguments,2).map(function(e){return xe(e,Wi.objectMaxDepth)});for(o+=a.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<s.length?s[t]:e}),o+="\nhttp://errors.angularjs.org/1.6.4/"+(e?e+"/":"")+r,i=0,n="?";i<s.length;i++,n="&")o+=n+"p"+i+"="+encodeURIComponent(s[i]);return new t(o)}}function n(e){if(!w(e))return Wi;y(e.objectMaxDepth)&&(Wi.objectMaxDepth=i(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function i(e){return C(e)&&e>0}function r(e){if(null==e||E(e))return!1;if(cr(e)||k(e)||Ji&&e instanceof Ji)return!0;var t="length"in Object(e)&&e.length;return C(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function a(e,t,n){var i,o;if(e)if(S(e))for(i in e)"prototype"!==i&&"length"!==i&&"name"!==i&&e.hasOwnProperty(i)&&t.call(n,e[i],i,e);else if(cr(e)||r(e)){var s="object"!=typeof e;for(i=0,o=e.length;i<o;i++)(s||i in e)&&t.call(n,e[i],i,e)}else if(e.forEach&&e.forEach!==a)e.forEach(t,n,e);else if(x(e))for(i in e)t.call(n,e[i],i,e);else if("function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e);else for(i in e)Bi.call(e,i)&&t.call(n,e[i],i,e);return e}function o(e,t,n){for(var i=Object.keys(e).sort(),r=0;r<i.length;r++)t.call(n,e[i[r]],i[r]);return i}function s(e){return function(t,n){e(n,t)}}function l(){return++lr}function u(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var i=e.$$hashKey,r=0,a=t.length;r<a;++r){var o=t[r];if(w(o)||S(o))for(var s=Object.keys(o),l=0,p=s.length;l<p;l++){var d=s[l],f=o[d];n&&w(f)?D(f)?e[d]=new Date(f.valueOf()):M(f)?e[d]=new RegExp(f):f.nodeName?e[d]=f.cloneNode(!0):F(f)?e[d]=f.clone():(w(e[d])||(e[d]=cr(f)?[]:{}),c(e[d],[f],!0)):e[d]=f}}return u(e,i),e}function p(e){return c(e,tr.call(arguments,1),!1)}function d(e){return c(e,tr.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function h(e,t){return p(Object.create(e),t)}function g(){}function m(e){return e}function v(e){return function(){return e}}function $(e){return S(e.toString)&&e.toString!==rr}function b(e){return void 0===e}function y(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!ar(e)}function k(e){return"string"==typeof e}function C(e){return"number"==typeof e}function D(e){return"[object Date]"===rr.call(e)}function S(e){return"function"==typeof e}function M(e){return"[object RegExp]"===rr.call(e)}function E(e){return e&&e.window===e}function O(e){return e&&e.$evalAsync&&e.$watch}function A(e){return"[object File]"===rr.call(e)}function T(e){return"[object FormData]"===rr.call(e)}function P(e){return"[object Blob]"===rr.call(e)}function I(e){return"boolean"==typeof e}function _(e){return e&&S(e.then)}function U(e){return e&&C(e.length)&&pr.test(rr.call(e))}function N(e){return"[object ArrayBuffer]"===rr.call(e)}function F(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function V(e){var t,n={},i=e.split(",");for(t=0;t<i.length;t++)n[i[t]]=!0;return n}function R(e){return Gi(e.nodeName||e[0]&&e[0].nodeName)}function j(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function L(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function H(e,t,n){function r(e,t,n){if(--n<0)return"...";var i,r=t.$$hashKey;if(cr(e))for(var a=0,s=e.length;a<s;a++)t.push(o(e[a],n));else if(x(e))for(i in e)t[i]=o(e[i],n);else if(e&&"function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&(t[i]=o(e[i],n));else for(i in e)Bi.call(e,i)&&(t[i]=o(e[i],n));return u(t,r),t}function o(e,t){if(!w(e))return e;var n=l.indexOf(e);if(-1!==n)return c[n];if(E(e)||O(e))throw or("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,a=s(e);return void 0===a&&(a=cr(e)?[]:Object.create(ar(e)),i=!0),l.push(e),c.push(a),i?r(e,a,t):a}function s(e){switch(rr.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(o(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(S(e.cloneNode))return e.cloneNode(!0)}var l=[],c=[];if(n=i(n)?n:NaN,t){if(U(t)||N(t))throw or("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw or("cpi","Can't copy! Source and destination are identical.");return cr(t)?t.length=0:a(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),l.push(e),c.push(t),r(e,t,n)}return o(e,n)}function z(e,t){return e===t||e!==e&&t!==t}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,i,r,a=typeof e,o=typeof t;if(a===o&&"object"===a){if(!cr(e)){if(D(e))return!!D(t)&&z(e.getTime(),t.getTime());if(M(e))return!!M(t)&&e.toString()===t.toString();if(O(e)||O(t)||E(e)||E(t)||cr(t)||D(t)||M(t))return!1;r=ve();for(i in e)if("$"!==i.charAt(0)&&!S(e[i])){if(!q(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&y(t[i])&&!S(t[i]))return!1;return!0}if(!cr(t))return!1;if((n=e.length)===t.length){for(i=0;i<n;i++)if(!q(e[i],t[i]))return!1;return!0}}return!1}function B(e,t,n){return e.concat(tr.call(t,n))}function W(e,t){return tr.call(e,t||0)}function G(e,t){var n=arguments.length>2?W(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,B(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Y(t,n){var i=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=void 0:E(n)?i="$WINDOW":n&&e.document===n?i="$DOCUMENT":O(n)&&(i="$SCOPE"),i}function K(e,t){if(!b(e))return C(t)||(t=t?2:null),JSON.stringify(e,Y,t)}function X(e){return k(e)?JSON.parse(e):e}function Z(e,t){e=e.replace(mr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return ur(n)?t:n}function J(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Q(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return J(e,n*(Z(t,i)-i))}function ee(e){e=Ji(e).clone();try{e.empty()}catch(e){}var t=Ji("<div>").append(e).html();try{return e[0].nodeType===xr?Gi(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Gi(t)})}catch(e){return Gi(t)}}function te(e){try{return decodeURIComponent(e)}catch(e){}}function ne(e){var t={};return a((e||"").split("&"),function(e){var n,i,r;e&&(i=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(i=e.substring(0,n),r=e.substring(n+1)),i=te(i),y(i)&&(r=!y(r)||te(r),Bi.call(t,i)?cr(t[i])?t[i].push(r):t[i]=[t[i],r]:t[i]=r))}),t}function ie(e){var t=[];return a(e,function(e,n){cr(e)?a(e,function(e){t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}):t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}),t.length?t.join("&"):""}function re(e){return ae(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ae(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 oe(e,t){var n,i,r=vr.length;for(i=0;i<r;++i)if(n=vr[i]+t,k(n=e.getAttribute(n)))return n;return null}function se(t,n){var i,r,o={};if(a(vr,function(e){var n=e+"app";!i&&t.hasAttribute&&t.hasAttribute(n)&&(i=t,r=t.getAttribute(n))}),a(vr,function(e){var n,a=e+"app";!i&&(n=t.querySelector("["+a.replace(":","\\:")+"]"))&&(i=n,r=n.getAttribute(a))}),i){if(!$r)return void e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==oe(i,"strict-di"),n(i,r?[r]:[],o)}}function le(t,n,i){w(i)||(i={}),i=p({strictDi:!1},i);var r=function(){if(t=Ji(t),t.injector()){var r=t[0]===e.document?"document":ee(t);throw or("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var a=lt(n,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply(function(){t.data("$injector",i),n(t)(e)})}]),a},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!s.test(e.name))return r();e.name=e.name.replace(s,""),sr.resumeBootstrap=function(e){return a(e,function(e){n.push(e)}),r()},S(sr.resumeDeferredBootstrap)&&sr.resumeDeferredBootstrap()}function ue(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ce(e){var t=sr.element(e).injector();if(!t)throw or("test","no injector found for element argument to getTestability");return t.get("$$testability")}function pe(e,t){return t=t||"_",e.replace(br,function(e,n){return(n?t:"")+e.toLowerCase()})}function de(e,t,n){if(!e)throw or("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function fe(e,t,n){return n&&cr(e)&&(e=e[e.length-1]),de(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw or("badname","hasOwnProperty is not a valid {0} name",t)}function ge(e,t,n){if(!t)return e;for(var i,r=t.split("."),a=e,o=r.length,s=0;s<o;s++)i=r[s],e&&(e=(a=e)[i]);return!n&&S(e)?G(a,e):e}function me(e){for(var t,n=e[0],i=e[e.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(t||e[r]!==n)&&(t||(t=Ji(tr.call(e,0,r))),t.push(n));return t||e}function ve(){return Object.create(null)}function $e(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!$(e)||cr(e)||D(e)?K(e):e.toString()}return e}function be(e){function n(e,t,n){return e[t]||(e[t]=n())}var i=t("$injector"),r=t("ng"),a=n(e,"angular",Object);return a.$$minErr=a.$$minErr||t,n(a,"module",function(){var e={};return function(t,a,o){var s={};return function(e,t){if("hasOwnProperty"===e)throw r("badname","hasOwnProperty is not a valid {0} name",t)}(t,"module"),a&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,i){return i||(i=l),function(){return i[n||"push"]([e,t,arguments]),d}}function n(e,n,i){return i||(i=l),function(r,a){return a&&S(a)&&(a.$$moduleName=t),i.push([e,n,arguments]),d}}if(!a)throw i("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);var l=[],u=[],c=[],p=e("$injector","invoke","push",u),d={_invokeQueue:l,_configBlocks:u,_runBlocks:c,info:function(e){if(y(e)){if(!w(e))throw r("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:a,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator",u),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(e){return c.push(e),this}};return o&&p(o),d})}})}function ye(e,t){if(cr(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var r in e)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function we(e,t){var n=[];return i(t)&&(e=H(e,null,t)),JSON.stringify(e,function(e,t){if(t=Y(e,t),w(t)){if(n.indexOf(t)>=0)return"...";n.push(t)}return t})}function xe(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):b(e)?"undefined":"string"!=typeof e?we(e,t):e}function ke(){return++Er}function Ce(e){return Se(e.replace(Ar,"ms-"))}function De(e,t){return t.toUpperCase()}function Se(e){return e.replace(Or,De)}function Me(e){return!_r.test(e)}function Ee(e){var t=e.nodeType;return t===wr||!t||t===Cr}function Oe(e){for(var t in Mr[e.ng339])return!0;return!1}function Ae(e,t){var n,i,r,o,s=t.createDocumentFragment(),l=[];if(Me(e))l.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),i=(Ur.exec(e)||["",""])[1].toLowerCase(),r=Fr[i]||Fr._default,n.innerHTML=r[1]+e.replace(Nr,"<$1></$2>")+r[2],o=r[0];o--;)n=n.lastChild;l=B(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",a(l,function(e){s.appendChild(e)}),s}function Te(t,n){n=n||e.document;var i;return(i=Ir.exec(t))?[n.createElement(i[1])]:(i=Ae(t,n))?i.childNodes:[]}function Pe(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Ie(e){if(e instanceof Ie)return e;var t;if(k(e)&&(e=dr(e),t=!0),!(this instanceof Ie)){if(t&&"<"!==e.charAt(0))throw Pr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ie(e)}t?ze(this,Te(e)):S(e)?Ke(e):ze(this,e)}function _e(e){return e.cloneNode(!0)}function Ue(e,t){!t&&Ee(e)&&Ji.cleanData([e]),e.querySelectorAll&&Ji.cleanData(e.querySelectorAll("*"))}function Ne(e,t,n,i){if(y(i))throw Pr("offargs","jqLite#off() does not support the `selector` argument");var r=Ve(e),o=r&&r.events,s=r&&r.handle;if(s)if(t){var l=function(t){var i=o[t];y(n)&&L(i||[],n),y(n)&&i&&i.length>0||(e.removeEventListener(t,s),delete o[t])};a(t.split(" "),function(e){l(e),Tr[e]&&l(Tr[e])})}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,s),delete o[t]}function Fe(e,t){var n=e.ng339,i=n&&Mr[n];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Ne(e)),delete Mr[n],e.ng339=void 0}}function Ve(e,t){var n=e.ng339,i=n&&Mr[n];return t&&!i&&(e.ng339=n=ke(),i=Mr[n]={events:{},data:{},handle:void 0}),i}function Re(e,t,n){if(Ee(e)){var i,r=y(n),a=!r&&t&&!w(t),o=!t,s=Ve(e,!a),l=s&&s.data;if(r)l[Se(t)]=n;else{if(o)return l;if(a)return l&&l[Se(t)];for(i in t)l[Se(i)]=t[i]}}}function je(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Le(e,t){t&&e.setAttribute&&a(t.split(" "),function(t){e.setAttribute("class",dr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+dr(t)+" "," ")))})}function He(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(t.split(" "),function(e){e=dr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",dr(n))}}function ze(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 i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function qe(e,t){return Be(e,"$"+(t||"ngController")+"Controller")}function Be(e,t,n){e.nodeType===Cr&&(e=e.documentElement);for(var i=cr(t)?t:[t];e;){for(var r=0,a=i.length;r<a;r++)if(y(n=Ji.data(e,i[r])))return n;e=e.parentNode||e.nodeType===Dr&&e.host}}function We(e){for(Ue(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ge(e,t){t||Ue(e);var n=e.parentNode;n&&n.removeChild(e)}function Ye(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Ji(n).on("load",t)}function Ke(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function Xe(e,t){var n=jr[t.toLowerCase()];return n&&Lr[R(e)]&&n}function Ze(e){return Hr[e]}function Je(e,t){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=t[i||n.type],a=r?r.length:0;if(a){if(b(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=r.specialHandlerWrapper||Qe;a>1&&(r=ye(r));for(var l=0;l<a;l++)n.isImmediatePropagationStopped()||s(e,n,r[l])}};return n.elem=e,n}function Qe(e,t,n){n.call(e,t)}function et(e,t,n){var i=t.relatedTarget;i&&(i===e||Vr.call(e,i))||n.call(e,t)}function tt(){this.$get=function(){return p(Ie,{hasClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),He(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Le(e,t)}})}}function nt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var i=typeof e;return n="function"===i||"object"===i&&null!==e?e.$$hashKey=i+":"+(t||l)():i+":"+e}function it(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function rt(e){return Function.prototype.toString.call(e)}function at(e){var t=rt(e).replace(Xr,"");return t.match(Wr)||t.match(Gr)}function ot(e){var t=at(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function st(e,t,n){var i,r,o;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw k(n)&&n||(n=e.name||ot(e)),Zr("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);r=at(e),a(r[1].split(Yr),function(e){e.replace(Kr,function(e,t,n){i.push(n)})})}e.$inject=i}}else cr(e)?(o=e.length-1,fe(e[o],"fn"),i=e.slice(0,o)):fe(e,"fn",!0);return i}function lt(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);a(t,s(e))}}function i(e,t){if(he(e,"service"),(S(t)||cr(t))&&(t=x.instantiate(t)),!t.$get)throw Zr("pget","Provider '{0}' must define $get factory method.",e);return y[e+g]=t}function r(e,t){return function(){var n=M.invoke(t,this);if(b(n))throw Zr("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function o(e,t,n){return i(e,{$get:!1!==n?r(e,t):t})}function l(e,t){return o(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return o(e,v(t),!1)}function c(e,t){he(e,"constant"),y[e]=t,C[e]=t}function p(e,t){var n=x.get(e+g),i=n.$get;n.$get=function(){var e=M.invoke(i,n);return M.invoke(t,null,{$delegate:e})}}function d(e){de(b(e)||cr(e),"modulesToLoad","not an array");var t,n=[];return a(e,function(e){function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var i=e[t],r=x.get(i[0]);r[i[1]].apply(r,i[2])}}if(!$.get(e)){$.set(e,!0);try{k(e)?(t=er(e),M.modules[e]=t,n=n.concat(d(t.requires)).concat(t._runBlocks),i(t._invokeQueue),i(t._configBlocks)):S(e)?n.push(x.invoke(e)):cr(e)?n.push(x.invoke(e)):fe(e,"module")}catch(t){throw cr(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Zr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function f(e,n){function i(t,i){if(e.hasOwnProperty(t)){if(e[t]===h)throw Zr("cdep","Circular dependency found: {0}",t+" <- "+m.join(" <- "));return e[t]}try{return m.unshift(t),e[t]=h,e[t]=n(t,i),e[t]}catch(n){throw e[t]===h&&delete e[t],n}finally{m.shift()}}function r(e,n,r){for(var a=[],o=lt.$$annotate(e,t,r),s=0,l=o.length;s<l;s++){var u=o[s];if("string"!=typeof u)throw Zr("itkn","Incorrect injection token! Expected service name as string, got {0}",u);a.push(n&&n.hasOwnProperty(u)?n[u]:i(u,r))}return a}function a(e){if(Zi||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return I(t)||(t=e.$$ngIsClass=/^(?:class\b|constructor\()/.test(rt(e))),t}function o(e,t,n,i){"string"==typeof n&&(i=n,n=null);var o=r(e,n,i);return cr(e)&&(e=e[e.length-1]),a(e)?(o.unshift(null),new(Function.prototype.bind.apply(e,o))):e.apply(t,o)}function s(e,t,n){var i=cr(e)?e[e.length-1]:e,a=r(e,t,n);return a.unshift(null),new(Function.prototype.bind.apply(i,a))}return{invoke:o,instantiate:s,get:i,annotate:lt.$$annotate,has:function(t){return y.hasOwnProperty(t+g)||e.hasOwnProperty(t)}}}t=!0===t;var h={},g="Provider",m=[],$=new qr,y={$provide:{provider:n(i),factory:n(o),service:n(l),value:n(u),constant:n(c),decorator:p}},x=y.$injector=f(y,function(e,t){throw sr.isString(t)&&m.push(t),Zr("unpr","Unknown provider: {0}",m.join(" <- "))}),C={},D=f(C,function(e,t){var n=x.get(e+g,t);return M.invoke(n.$get,n,void 0,e)}),M=D;y["$injector"+g]={$get:v(D)},M.modules=x.modules=ve();var E=d(e);return M=D.get("$injector"),M.strictDi=t,a(E,function(e){e&&M.invoke(e)}),M}function ut(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,i){function r(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===R(e))return t=e,!0}),t}function a(){var e=s.yOffset;if(S(e))e=e();else if(F(e)){var n=e[0],i=t.getComputedStyle(n);e="fixed"!==i.position?0:n.getBoundingClientRect().bottom}else C(e)||(e=0);return e}function o(e){if(e){e.scrollIntoView();var n=a();if(n){var i=e.getBoundingClientRect().top;t.scrollBy(0,i-n)}}else t.scrollTo(0,0)}function s(e){e=k(e)?e:C(e)?e.toString():n.hash();var t;e?(t=l.getElementById(e))?o(t):(t=r(l.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var l=t.document;return e&&i.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ye(function(){i.$evalAsync(s)})}),s}]}function ct(e,t){return e||t?e?t?(cr(e)&&(e=e.join(" ")),cr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function pt(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Qr)return n}}function dt(e){k(e)&&(e=e.split(" "));var t=ve();return a(e,function(e){e.length&&(t[e]=!0)}),t}function ft(e){return w(e)?e:{}}function ht(e,t,n,i){function r(e){try{e.apply(null,W(arguments,1))}finally{if(0===--v)for(;$.length;)try{$.pop()()}catch(e){n.error(e)}}}function o(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){C=null,u()}function l(){y=D(),y=b(y)?null:y,q(y,E)&&(y=E),E=y,w=y}function u(){var e=w;l(),x===c.url()&&e===y||(x=c.url(),w=y,a(S,function(e){e(c.url(),y)}))}var c=this,p=e.location,d=e.history,f=e.setTimeout,h=e.clearTimeout,m={};c.isMock=!1;var v=0,$=[];c.$$completeOutstandingRequest=r,c.$$incOutstandingRequestCount=function(){v++},c.notifyWhenNoOutstandingRequests=function(e){0===v?e():$.push(e)};var y,w,x=p.href,k=t.find("base"),C=null,D=i.history?function(){try{return d.state}catch(e){}}:g;l(),c.url=function(t,n,r){if(b(r)&&(r=null),p!==e.location&&(p=e.location),d!==e.history&&(d=e.history),t){var a=w===r;if(x===t&&(!i.history||a))return c;var s=x&&Kt(x)===Kt(t);return x=t,w=r,!i.history||s&&a?(s||(C=t),n?p.replace(t):s?p.hash=o(t):p.href=t,p.href!==t&&(C=t)):(d[n?"replaceState":"pushState"](r,"",t),l()),C&&(C=t),c}return C||p.href.replace(/%27/g,"'")},c.state=function(){return y};var S=[],M=!1,E=null;c.onUrlChange=function(t){return M||(i.history&&Ji(e).on("popstate",s),Ji(e).on("hashchange",s),M=!0),S.push(t),t},c.$$applicationDestroyed=function(){Ji(e).off("hashchange popstate",s)},c.$$checkUrlChange=u,c.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return v++,n=f(function(){delete m[n],r(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return!!m[e]&&(delete m[e],h(e),r(g),!0)}}function gt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,i){return new ht(e,i,t,n)}]}function mt(){this.$get=function(){function e(e,i){function r(e){e!==d&&(f?f===e&&(f=e.n):f=e,a(e.n,e.p),a(e,d),d=e,d.n=null)}function a(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var o=0,s=p({},i,{id:e}),l=ve(),u=i&&i.capacity||Number.MAX_VALUE,c=ve(),d=null,f=null;return n[e]={put:function(e,t){if(!b(t)){if(u<Number.MAX_VALUE){r(c[e]||(c[e]={key:e}))}return e in l||o++,l[e]=t,o>u&&this.remove(f.key),t}},get:function(e){if(u<Number.MAX_VALUE){var t=c[e];if(!t)return;r(t)}return l[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=c[e];if(!t)return;t===d&&(d=t.p),t===f&&(f=t.n),a(t.n,t.p),delete c[e]}e in l&&(delete l[e],o--)},removeAll:function(){l=ve(),o=0,c=ve(),d=f=null},destroy:function(){l=null,s=null,c=null,delete n[e]},info:function(){return p({},s,{size:o})}}}var n={};return e.info=function(){var e={};return a(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function vt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function $t(){}function bt(t,n){function i(e,t,n){var i=ve();return a(e,function(e,r){if(e in M)return void(i[r]=M[e]);var a=e.match(/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/);if(!a)throw oa("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");i[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(M[e]=i[r])}),i}function r(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw oa("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function o(e){var t=e.charAt(0);if(!t||t!==Gi(t))throw oa("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw oa("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function l(e){var t=e.require||e.controller&&e.name;return!cr(t)&&w(t)&&a(t,function(e,n){var i=e.match(C);e.substring(i[0].length)||(t[n]=i[0]+n)}),t}function u(e,t){if(e&&(!k(e)||!/[EACM]/.test(e)))throw oa("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var c={},d="Directive",f=/^\s*directive:\s*([\w-]+)\s+(.*)$/,$=/(([\w-]+)(?::([^;]+))?;?)/,x=V("ngSrc,ngSrcset,src,srcset"),C=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,D=/^(on[a-z]+|formaction)$/,M=ve();this.directive=function e(n,i){return de(n,"name"),he(n,"directive"),k(n)?(o(n),de(i,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],t.factory(n+d,["$injector","$exceptionHandler",function(e,t){var i=[];return a(c[n],function(r,a){try{var o=e.invoke(r);S(o)?o={compile:v(o)}:!o.compile&&o.link&&(o.compile=v(o.link)),o.priority=o.priority||0,o.index=a,o.name=o.name||n,o.require=l(o),o.restrict=u(o.restrict,n),o.$$moduleName=r.$$moduleName,i.push(o)}catch(e){t(e)}}),i}])),c[n].push(i)):a(n,s(e)),this},this.component=function(e,t){function n(e){function n(t){return S(t)||cr(t)?function(n,i){return e.invoke(t,this,{$element:n,$attrs:i})}:t}var r=t.template||t.templateUrl?t.template:"",o={controller:i,controllerAs:Ct(t.controller)||t.controllerAs||"$ctrl",template:n(r),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return a(t,function(e,t){"$"===t.charAt(0)&&(o[t]=e)}),o}var i=t.controller||function(){};return a(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,S(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var E=!0;this.debugInfoEnabled=function(e){return y(e)?(E=e,this):E};var A=!1;this.preAssignBindingsEnabled=function(e){return y(e)?(A=e,this):A};var T=10;this.onChangesTtl=function(e){return arguments.length?(T=e,this):T};var P=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(P=e,this):P};var _=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(_=e,this):_},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,i,o,s,l,u,v,M,U){function N(){try{if(!--Ae)throw Ce=void 0,oa("infchng","{0} $onChanges() iterations reached. Aborting!\n",T);u.$apply(function(){for(var e=[],t=0,n=Ce.length;t<n;++t)try{Ce[t]()}catch(t){e.push(t)}if(Ce=void 0,e.length)throw e})}finally{Ae++}}function F(e,t){if(t){var n,i,r,a=Object.keys(t);for(n=0,i=a.length;n<i;n++)r=a[n],this[r]=t[r]}else this.$attr={};this.$$element=e}function V(e,t,n){Se.innerHTML="<span "+t+">";var i=Se.firstChild.attributes,r=i[0];i.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}function j(e,t){try{e.addClass(t)}catch(e){}}function H(e,t,n,i,r){e instanceof Ji||(e=Ji(e));var a=Y(e,t,e,n,i,r);H.$$addScopeClass(e);var o=null;return function(t,n,i){if(!e)throw oa("multilink","This element has already been linked.");de(t,"scope"),r&&r.needsNewScope&&(t=t.$parent.$new()),i=i||{};var s=i.parentBoundTranscludeFn,l=i.transcludeControllers,u=i.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),o||(o=B(u));var c;if(c="html"!==o?Ji(me(o,Ji("<div>").append(e).html())):n?Rr.clone.call(e):e,l)for(var p in l)c.data("$"+p+"Controller",l[p].instance);return H.$$addScopeInfo(c,t),n&&n(c,t),a&&a(t,c,c,s),n||(e=a=null),c}}function B(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&rr.call(t).match(/SVG/)?"svg":"html"}function Y(e,t,n,i,r,a){function o(e,n,i,r){var a,o,s,l,u,c,p,d,g;if(f){var m=n.length;for(g=new Array(m),u=0;u<h.length;u+=3)p=h[u],g[p]=n[p]}else g=n;for(u=0,c=h.length;u<c;)s=g[h[u++]],a=h[u++],o=h[u++],a?(a.scope?(l=e.$new(),H.$$addScopeInfo(Ji(s),l)):l=e,d=a.transcludeOnThisElement?X(e,a.transclude,r):!a.templateOnThisElement&&r?r:!r&&t?X(e,t):null,a(o,l,s,i,d)):o&&o(e,s.childNodes,void 0,r)}for(var s,l,u,c,p,d,f,h=[],g=cr(e)||e instanceof Ji,m=0;m<e.length;m++)s=new F,11===Zi&&K(e,m,g),l=Z(e[m],[],s,0===m?i:void 0,r),u=l.length?ie(l,e[m],s,t,n,null,[],[],a):null,u&&u.scope&&H.$$addScopeClass(s.$$element),p=u&&u.terminal||!(c=e[m].childNodes)||!c.length?null:Y(c,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||p)&&(h.push(m,u,p),d=!0,f=f||u),a=null;return d?o:null}function K(e,t,n){var i,r=e[t],a=r.parentNode;if(r.nodeType===xr)for(;;){if(!(i=a?r.nextSibling:e[t+1])||i.nodeType!==xr)break;r.nodeValue=r.nodeValue+i.nodeValue,i.parentNode&&i.parentNode.removeChild(i),n&&i===e[t+1]&&e.splice(t+1,1)}}function X(e,t,n){function i(i,r,a,o,s){return i||(i=e.$new(!1,s),i.$$transcluded=!0),t(i,r,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})}var r=i.$$slots=ve();for(var a in t.$$slots)t.$$slots[a]?r[a]=X(e,t.$$slots[a],n):r[a]=null;return i}function Z(e,t,n,i,r){var a,o,s,l=e.nodeType,u=n.$attr;switch(l){case wr:o=R(e),se(t,wt(o),"E",i,r);for(var c,p,d,f,h,g,m=e.attributes,v=0,b=m&&m.length;v<b;v++){var y=!1,x=!1;c=m[v],p=c.name,h=c.value,f=wt(p),g=Ue.test(f),g&&(p=p.replace(la,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=f.match(Ne);C&&le(C[1])&&(y=p,x=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),d=wt(p.toLowerCase()),u[d]=p,!g&&n.hasOwnProperty(d)||(n[d]=h,Xe(e,d)&&(n[d]=!0)),be(e,t,h,d,g),se(t,d,"A",i,r,y,x)}if("input"===o&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Oe)break;if(s=e.className,w(s)&&(s=s.animVal),k(s)&&""!==s)for(;a=$.exec(s);)d=wt(a[2]),se(t,d,"C",i,r)&&(n[d]=dr(a[3])),s=s.substr(a.index+a[0].length);break;case xr:ge(t,e.nodeValue);break;case kr:if(!Ee)break;J(e,t,n,i,r)}return t.sort(fe),t}function J(e,t,n,i,r){try{var a=f.exec(e.nodeValue);if(a){var o=wt(a[1]);se(t,o,"M",i,r)&&(n[o]=dr(a[2]))}}catch(e){}}function Q(e,t,n){var i=[],r=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw oa("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===wr&&(e.hasAttribute(t)&&r++,e.hasAttribute(n)&&r--),i.push(e),e=e.nextSibling}while(r>0);else i.push(e);return Ji(i)}function te(e,t,n){return function(i,r,a,o,s){return r=Q(r[0],t,n),e(i,r,a,o,s)}}function ne(e,t,n,i,r,a){var o
  ;return e?H(t,n,i,r,a):function(){return o||(o=H(t,n,i,r,a),t=n=a=null),o.apply(this,arguments)}}function ie(e,t,n,r,o,s,l,u,c){function d(e,t,n,i){e&&(n&&(e=te(e,n,i)),e.require=h.require,e.directiveName=g,(C===h||h.$$isolateScope)&&(e=we(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=te(t,n,i)),t.require=h.require,t.directiveName=g,(C===h||h.$$isolateScope)&&(t=we(t,{isolateScope:!0})),u.push(t))}function f(e,r,o,s,c){function d(e,t,n,i){var r;if(O(e)||(i=n,n=t,t=e,e=void 0),P&&(r=$),n||(n=P?M.parent():M),!i)return c(e,t,r,n,R);var a=c.$$slots[i];if(a)return a(e,t,r,n,R);if(b(a))throw oa("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,ee(M))}var f,h,g,m,v,$,y,M,E,T;t===o?(E=n,M=n.$$element):(M=Ji(o),E=new F(M,n)),v=r,C?m=r.$new(!0):x&&(v=r.$parent),c&&(y=d,y.$$boundTransclude=c,y.isSlotFilled=function(e){return!!c.$$slots[e]}),k&&($=ae(M,E,y,k,m,r,C)),C&&(H.$$addScopeInfo(M,m,!0,!(D&&(D===C||D===C.$$originalDirective))),H.$$addScopeClass(M,!0),m.$$isolateBindings=C.$$isolateBindings,T=ke(r,E,m,m.$$isolateBindings,C),T.removeWatches&&m.$on("$destroy",T.removeWatches));for(var I in $){var _=k[I],U=$[I],N=_.$$bindings.bindToController;if(A){U.bindingInfo=N?ke(v,E,U.instance,N,_):{};var V=U();V!==U.instance&&(U.instance=V,M.data("$"+_.name+"Controller",V),U.bindingInfo.removeWatches&&U.bindingInfo.removeWatches(),U.bindingInfo=ke(v,E,U.instance,N,_))}else U.instance=U(),M.data("$"+_.name+"Controller",U.instance),U.bindingInfo=ke(v,E,U.instance,N,_)}for(a(k,function(e,t){var n=e.require;e.bindToController&&!cr(n)&&w(n)&&p($[t].instance,re(t,n,M,$))}),a($,function(e){var t=e.instance;if(S(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){i(e)}if(S(t.$onInit))try{t.$onInit()}catch(e){i(e)}S(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),S(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),f=0,h=l.length;f<h;f++)g=l[f],xe(g,g.isolateScope?m:r,M,E,g.require&&re(g.directiveName,g.require,M,$),y);var R=r;for(C&&(C.template||null===C.templateUrl)&&(R=m),e&&e(R,o.childNodes,void 0,c),f=u.length-1;f>=0;f--)g=u[f],xe(g,g.isolateScope?m:r,M,E,g.require&&re(g.directiveName,g.require,M,$),y);a($,function(e){var t=e.instance;S(t.$postLink)&&t.$postLink()})}c=c||{};for(var h,g,m,v,$,y=-Number.MAX_VALUE,x=c.newScopeDirective,k=c.controllerDirectives,C=c.newIsolateScopeDirective,D=c.templateDirective,M=c.nonTlbTranscludeDirective,E=!1,T=!1,P=c.hasElementTranscludeDirective,I=n.$$element=Ji(t),_=s,U=r,N=!1,V=!1,j=0,L=e.length;j<L;j++){h=e[j];var z=h.$$start,q=h.$$end;if(z&&(I=Q(t,z,q)),m=void 0,y>h.priority)break;if($=h.scope,$&&(h.templateUrl||(w($)?(he("new/isolated scope",C||x,h,I),C=h):he("new/isolated scope",C,h,I)),x=x||h),g=h.name,!N&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var B,Y=j+1;B=e[Y++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){V=!0;break}N=!0}if(!h.templateUrl&&h.controller&&(k=k||ve(),he("'"+g+"' controller",k[g],h,I),k[g]=h),$=h.transclude)if(E=!0,h.$$tlb||(he("transclusion",M,h,I),M=h),"element"===$)P=!0,y=h.priority,m=I,I=n.$$element=Ji(H.$$createComment(g,n[g])),t=I[0],ye(o,W(m),t),m[0].$$parentNode=m[0].parentNode,U=ne(V,m,r,y,_&&_.name,{nonTlbTranscludeDirective:M});else{var K=ve();if(w($)){m=[];var X=ve(),J=ve();a($,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,K[t]=null,J[t]=n}),a(I.contents(),function(e){var t=X[wt(R(e))];t?(J[t]=!0,K[t]=K[t]||[],K[t].push(e)):m.push(e)}),a(J,function(e,t){if(!e)throw oa("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ie in K)K[ie]&&(K[ie]=ne(V,K[ie],r))}else m=Ji(_e(t)).contents();I.empty(),U=ne(V,m,r,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),U.$$slots=K}if(h.template)if(T=!0,he("template",D,h,I),D=h,$=S(h.template)?h.template(I,n):h.template,$=Ie($),h.replace){if(_=h,m=Me($)?[]:kt(me(h.templateNamespace,dr($))),t=m[0],1!==m.length||t.nodeType!==wr)throw oa("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");ye(o,I,t);var se={$attr:{}},le=Z(t,[],se),pe=e.splice(j+1,e.length-(j+1));(C||x)&&oe(le,C,x),e=e.concat(le).concat(pe),ue(n,se),L=e.length}else I.html($);if(h.templateUrl)T=!0,he("template",D,h,I),D=h,h.replace&&(_=h),f=ce(e.splice(j,e.length-j),I,n,o,E&&U,l,u,{controllerDirectives:k,newScopeDirective:x!==h&&x,newIsolateScopeDirective:C,templateDirective:D,nonTlbTranscludeDirective:M}),L=e.length;else if(h.compile)try{v=h.compile(I,n,U);var de=h.$$originalDirective||h;S(v)?d(null,G(de,v),z,q):v&&d(G(de,v.pre),G(de,v.post),z,q)}catch(e){i(e,ee(I))}h.terminal&&(f.terminal=!0,y=Math.max(y,h.priority))}return f.scope=x&&!0===x.scope,f.transcludeOnThisElement=E,f.templateOnThisElement=T,f.transclude=U,c.hasElementTranscludeDirective=P,f}function re(e,t,n,i){var r;if(k(t)){var o=t.match(C),s=t.substring(o[0].length),l=o[1]||o[3],u="?"===o[2];if("^^"===l?n=n.parent():(r=i&&i[s],r=r&&r.instance),!r){var c="$"+s+"Controller";r=l?n.inheritedData(c):n.data(c)}if(!r&&!u)throw oa("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(cr(t)){r=[];for(var p=0,d=t.length;p<d;p++)r[p]=re(e,t[p],n,i)}else w(t)&&(r={},a(t,function(t,a){r[a]=re(e,t,n,i)}));return r||null}function ae(e,t,n,i,r,a,o){var s=ve();for(var u in i){var c=i[u],p={$scope:c===o||c.$$isolateScope?r:a,$element:e,$attrs:t,$transclude:n},d=c.controller;"@"===d&&(d=t[c.name]);var f=l(d,p,!0,c.controllerAs);s[c.name]=f,e.data("$"+c.name+"Controller",f.instance)}return s}function oe(e,t,n){for(var i=0,r=e.length;i<r;i++)e[i]=h(e[i],{$$isolateScope:t,$$newScope:n})}function se(e,n,i,a,o,s,l){if(n===o)return null;var u=null;if(c.hasOwnProperty(n))for(var p,f=t.get(n+d),g=0,m=f.length;g<m;g++)if(p=f[g],(b(a)||a>p.priority)&&-1!==p.restrict.indexOf(i)){if(s&&(p=h(p,{$$start:s,$$end:l})),!p.$$bindings){var v=p.$$bindings=r(p,p.name);w(v.isolateScope)&&(p.$$isolateBindings=v.isolateScope)}e.push(p),u=p}return u}function le(e){if(c.hasOwnProperty(e))for(var n,i=t.get(e+d),r=0,a=i.length;r<a;r++)if(n=i[r],n.multiElement)return!0;return!1}function ue(e,t){var n=t.$attr,i=e.$attr;a(e,function(i,r){"$"!==r.charAt(0)&&(t[r]&&t[r]!==i&&(i.length?i+=("style"===r?";":" ")+t[r]:i=t[r]),e.$set(r,i,!0,n[r]))}),a(t,function(t,r){e.hasOwnProperty(r)||"$"===r.charAt(0)||(e[r]=t,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ce(e,t,n,r,s,l,u,c){var p,d,f=[],g=t[0],m=e.shift(),v=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),$=S(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,b=m.templateNamespace;return t.empty(),o($).then(function(i){var o,h,y,x;if(i=Ie(i),m.replace){if(y=Me(i)?[]:kt(me(b,dr(i))),o=y[0],1!==y.length||o.nodeType!==wr)throw oa("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,$);h={$attr:{}},ye(r,t,o);var k=Z(o,[],h);w(m.scope)&&oe(k,!0),e=k.concat(e),ue(n,h)}else o=g,t.html(i);for(e.unshift(v),p=ie(e,o,n,s,t,m,l,u,c),a(r,function(e,n){e===o&&(r[n]=t[0])}),d=Y(t[0].childNodes,s);f.length;){var C=f.shift(),D=f.shift(),S=f.shift(),M=f.shift(),E=t[0];if(!C.$$destroyed){if(D!==g){var O=D.className;c.hasElementTranscludeDirective&&m.replace||(E=_e(o)),ye(S,Ji(D),E),j(Ji(E),O)}x=p.transcludeOnThisElement?X(C,p.transclude,M):M,p(d,C,E,r,x)}}f=null}).catch(function(e){e instanceof Error&&i(e)}),function(e,t,n,i,r){var a=r;t.$$destroyed||(f?f.push(t,n,i,a):(p.transcludeOnThisElement&&(a=X(t,p.transclude,r)),p(d,t,n,i,a)))}}function fe(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 he(e,t,n,i){function r(e){return e?" (module: "+e+")":""}if(t)throw oa("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,r(t.$$moduleName),n.name,r(n.$$moduleName),e,ee(i))}function ge(e,t){var i=n(t,!0);i&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&H.$$addBindingClass(t),function(e,t){var r=t.parent();n||H.$$addBindingClass(r),H.$$addBindingInfo(r,i.expressions),e.$watch(i,function(e){t[0].nodeValue=e})}}})}function me(t,n){switch(t=Gi(t||"html")){case"svg":case"math":var i=e.document.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function $e(e,t){if("srcdoc"===t)return v.HTML;var n=R(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function be(e,t,i,r,a){var o=$e(e,r),s=!a,l=x[r]||a,u=n(i,s,o,l);if(u){if("multiple"===r&&"select"===R(e))throw oa("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ee(e));if(D.test(r))throw oa("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,a){var s=a.$$observers||(a.$$observers=ve()),c=a[r];c!==i&&(u=c&&n(c,!0,o,l),i=c),u&&(a[r]=u(e),(s[r]||(s[r]=[])).$$inter=!0,(a.$$observers&&a.$$observers[r].$$scope||e).$watch(u,function(e,t){"class"===r&&e!==t?a.$updateClass(e,t):a.$set(r,e)}))}}}})}}function ye(t,n,i){var r,a,o=n[0],s=n.length,l=o.parentNode;if(t)for(r=0,a=t.length;r<a;r++)if(t[r]===o){t[r++]=i;for(var u=r,c=u+s-1,p=t.length;u<p;u++,c++)c<p?t[u]=t[c]:delete t[u];t.length-=s-1,t.context===o&&(t.context=i);break}l&&l.replaceChild(i,o);var d=e.document.createDocumentFragment();for(r=0;r<s;r++)d.appendChild(n[r]);for(Ji.hasData(o)&&(Ji.data(i,Ji.data(o)),Ji(o).off("$destroy")),Ji.cleanData(d.querySelectorAll("*")),r=1;r<s;r++)delete n[r];n[0]=i,n.length=1}function we(e,t){return p(function(){return e.apply(null,arguments)},e,t)}function xe(e,t,n,r,a,o){try{e(t,n,r,a,o)}catch(e){i(e,ee(n))}}function ke(e,t,i,r,o){function l(t,n,r){S(i.$onChanges)&&!z(n,r)&&(Ce||(e.$$postDigest(N),Ce=[]),c||(c={},Ce.push(u)),c[t]&&(r=c[t].previousValue),c[t]=new yt(r,n))}function u(){i.$onChanges(c),c=void 0}var c,p=[],d={};return a(r,function(r,a){var u,c,f,h,m,v=r.attrName,$=r.optional,b=r.mode;switch(b){case"@":$||Bi.call(t,v)||(i[a]=t[v]=void 0),m=t.$observe(v,function(e){if(k(e)||I(e)){var t=i[a];l(a,e,t),i[a]=e}}),t.$$observers[v].$$scope=e,u=t[v],k(u)?i[a]=n(u)(e):I(u)&&(i[a]=u),d[a]=new yt(sa,i[a]),p.push(m);break;case"=":if(!Bi.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;c=s(t[v]),h=c.literal?q:z,f=c.assign||function(){throw u=i[a]=c(e),oa("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,o.name)},u=i[a]=c(e);var y=function(t){return h(t,i[a])||(h(t,u)?f(e,t=i[a]):i[a]=t),u=t};y.$stateful=!0,m=r.collection?e.$watchCollection(t[v],y):e.$watch(s(t[v],y),null,c.literal),p.push(m);break;case"<":if(!Bi.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;c=s(t[v]);var w=c.literal,x=i[a]=c(e);d[a]=new yt(sa,i[a]),m=e.$watch(c,function(e,t){if(t===e){if(t===x||w&&q(t,x))return;t=x}l(a,e,t),i[a]=e},w),p.push(m);break;case"&":if((c=t.hasOwnProperty(v)?s(t[v]):g)===g&&$)break;i[a]=function(t){return c(e,t)}}}),{initialChanges:d,removeWatches:p.length&&function(){for(var e=0,t=p.length;e<t;++e)p[e]()}}}var Ce,De=/^\w/,Se=e.document.createElement("div"),Ee=P,Oe=_,Ae=T;F.prototype={$normalize:wt,$addClass:function(e){e&&e.length>0&&M.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&M.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=xt(e,t);n&&n.length&&M.addClass(this.$$element,n);var i=xt(t,e);i&&i.length&&M.removeClass(this.$$element,i)},$set:function(e,t,n,r){var o,s=this.$$element[0],l=Xe(s,e),u=Ze(e),c=e;if(l?(this.$$element.prop(e,t),r=l):u&&(this[u]=t,c=u),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=pe(e,"-")),"a"===(o=R(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===o&&"src"===e)this[e]=t=U(t,"src"===e);else if("img"===o&&"srcset"===e&&y(t)){for(var p="",d=dr(t),f=/\s/.test(d)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,h=d.split(f),g=Math.floor(h.length/2),m=0;m<g;m++){var v=2*m;p+=U(dr(h[v]),!0),p+=" "+dr(h[v+1])}var $=dr(h[2*m]).split(/\s/);p+=U(dr($[0]),!0),2===$.length&&(p+=" "+dr($[1])),this[e]=t=p}!1!==n&&(null===t||b(t)?this.$$element.removeAttr(r):De.test(r)?this.$$element.attr(r,t):V(this.$$element[0],r,t));var w=this.$$observers;w&&a(w[c],function(e){try{e(t)}catch(e){i(e)}})},$observe:function(e,t){var n=this,i=n.$$observers||(n.$$observers=ve()),r=i[e]||(i[e]=[]);return r.push(t),u.$evalAsync(function(){r.$$inter||!n.hasOwnProperty(e)||b(n[e])||t(n[e])}),function(){L(r,t)}}};var Te=n.startSymbol(),Pe=n.endSymbol(),Ie="{{"===Te&&"}}"===Pe?m:function(e){return e.replace(/\{\{/g,Te).replace(/}}/g,Pe)},Ue=/^ngAttr[A-Z]/,Ne=/^(.+)Start$/;return H.$$addBindingInfo=E?function(e,t){var n=e.data("$binding")||[];cr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:g,H.$$addBindingClass=E?function(e){j(e,"ng-binding")}:g,H.$$addScopeInfo=E?function(e,t,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(r,t)}:g,H.$$addScopeClass=E?function(e,t){j(e,t?"ng-isolate-scope":"ng-scope")}:g,H.$$createComment=function(t,n){var i="";return E&&(i=" "+(t||"")+": ",n&&(i+=n+" ")),e.document.createComment(i)},H}]}function yt(e,t){this.previousValue=e,this.currentValue=t}function wt(e){return e.replace(la,"").replace(ua,De)}function xt(e,t){var n="",i=e.split(/\s+/),r=t.split(/\s+/);e:for(var a=0;a<i.length;a++){for(var o=i[a],s=0;s<r.length;s++)if(o===r[s])continue e;n+=(n.length>0?" ":"")+o}return n}function kt(e){e=Ji(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===kr||n.nodeType===xr&&""===n.nodeValue.trim())&&nr.call(e,t,1)}return e}function Ct(e,t){if(t&&k(t))return t;if(k(e)){var n=pa.exec(e);if(n)return n[3]}}function Dt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),w(t)?p(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(i,r){function a(e,n,i,r){if(!e||!w(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,n);e.$scope[n]=i}return function(t,o,s,l){var u,c,d,f;if(s=!0===s,l&&k(l)&&(f=l),k(t)){if(!(c=t.match(pa)))throw ca("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(d=c[1],f=f||c[3],!(t=e.hasOwnProperty(d)?e[d]:ge(o.$scope,d,!0)||(n?ge(r,d,!0):void 0)))throw ca("ctrlreg","The controller with the name '{0}' is not registered.",d);fe(t,d,!0)}if(s){var h=(cr(t)?t[t.length-1]:t).prototype;return u=Object.create(h||null),f&&a(o,f,u,d||t.name),p(function(){var e=i.invoke(t,u,o,d);return e!==u&&(w(e)||S(e))&&(u=e,f&&a(o,f,u,d||t.name)),u},{instance:u,identifier:f})}return u=i.instantiate(t,o,d),f&&a(o,f,u,d||t.name),u}}]}function St(){this.$get=["$window",function(e){return Ji(e.document)}]}function Mt(){this.$get=["$document","$rootScope",function(e,t){function n(){r=i.hidden}var i=e[0],r=i&&i.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return r}}]}function Et(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Ot(e){return w(e)?D(e)?e.toISOString():K(e):e}function At(){this.$get=function(){return function(e){if(!e)return"";var t=[];return o(e,function(e,n){null===e||b(e)||(cr(e)?a(e,function(e){t.push(ae(n)+"="+ae(Ot(e)))}):t.push(ae(n)+"="+ae(Ot(e))))}),t.join("&")}}}function Tt(){this.$get=function(){return function(e){function t(e,i,r){null===e||b(e)||(cr(e)?a(e,function(e,n){t(e,i+"["+(w(e)?n:"")+"]")}):w(e)&&!D(e)?o(e,function(e,n){t(e,i+(r?"":"[")+n+(r?"":"]"))}):n.push(ae(i)+"="+ae(Ot(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Pt(e,t){if(k(e)){var n=e.replace(va,"").trim();if(n){var i=t("Content-Type");if(i&&0===i.indexOf(fa)||It(n))try{e=X(n)}catch(t){throw $a("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function It(e){var t=e.match(ga);return t&&ma[t[0]].test(e)}function _t(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=ve();return k(e)?a(e.split("\n"),function(e){n=e.indexOf(":"),t(Gi(dr(e.substr(0,n))),dr(e.substr(n+1)))}):w(e)&&a(e,function(e,n){t(Gi(n),dr(e))}),i}function Ut(e){var t;return function(n){if(t||(t=_t(e)),n){var i=t[Gi(n)];return void 0===i&&(i=null),i}return t}}function Nt(e,t,n,i){return S(i)?i(e,t,n):(a(i,function(i){e=i(e,t,n)}),e)}function Ft(e){return 200<=e&&e<300}function Vt(){var e=this.defaults={transformResponse:[Pt],transformRequest:[function(e){return!w(e)||A(e)||P(e)||T(e)?e:K(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(ha),put:ye(ha),patch:ye(ha)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return y(e)?(n=!!e,this):n};var i=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(r,o,s,l,u,c,d,f){function h(n){function i(e,t){for(var n=0,i=t.length;n<i;){var r=t[n++],a=t[n++];e=e.then(r,a)}return t.length=0,e}function o(){r.$$completeOutstandingRequest(g)}function s(e,t){var n,i={};return a(e,function(e,r){S(e)?null!=(n=e(t))&&(i[r]=n):i[r]=e}),i}function l(t){var n=t.headers,i=Nt(t.data,Ut(n),void 0,t.transformRequest);return b(i)&&a(n,function(e,t){"content-type"===Gi(t)&&delete n[t]}),b(t.withCredentials)&&!b(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,i).then(u,u)}function u(e){var t=p({},e);return t.data=Nt(e.data,e.headers,e.status,h.transformResponse),Ft(e.status)?t:c.reject(t)}if(!w(n))throw t("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!k(f.valueOf(n.url)))throw t("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var h=p({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);h.headers=function(t){var n,i,r,a=e.headers,o=p({},t.headers);a=p({},a.common,a[Gi(t.method)]);e:for(n in a){i=Gi(n);for(r in o)if(Gi(r)===i)continue e;o[n]=a[n]}return s(o,ye(t))}(n),h.method=Yi(h.method),h.paramSerializer=k(h.paramSerializer)?d.get(h.paramSerializer):h.paramSerializer,r.$$incOutstandingRequestCount();var v=[],$=[],y=c.resolve(h);return a(C,function(e){(e.request||e.requestError)&&v.unshift(e.request,e.requestError),(e.response||e.responseError)&&$.push(e.response,e.responseError)}),y=i(y,v),y=y.then(l),y=i(y,$),y=y.finally(o)}function m(t,i){function r(e){if(e){var t={};return a(e,function(e,i){t[i]=function(t){function i(){e(t)}n?u.$applyAsync(i):u.$$phase?i():u.$apply(i)}}),t}}function l(e,t,i,r){function a(){p(t,e,i,r)}m&&(Ft(e)?m.put(O,[e,t,_t(i),r]):m.remove(O)),n?u.$applyAsync(a):(a(),u.$$phase||u.$apply())}function p(e,n,i,r){n=n>=-1?n:0,(Ft(n)?D.resolve:D.reject)({data:e,status:n,headers:Ut(i),config:t,statusText:r})}function d(e){p(e.data,e.status,ye(e.headers()),e.statusText)}function g(){var e=h.pendingRequests.indexOf(t);-1!==e&&h.pendingRequests.splice(e,1)}var m,C,D=c.defer(),S=D.promise,M=t.headers,E="jsonp"===Gi(t.method),O=t.url;if(E?O=f.getTrustedResourceUrl(O):k(O)||(O=f.valueOf(O)),O=v(O,t.paramSerializer(t.params)),E&&(O=$(O,t.jsonpCallbackParam)),h.pendingRequests.push(t),S.then(g,g),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(m=w(t.cache)?t.cache:w(e.cache)?e.cache:x),m&&(C=m.get(O),y(C)?_(C)?C.then(d,d):cr(C)?p(C[1],C[0],ye(C[2]),C[3]):p(C,200,{},"OK"):m.put(O,S)),b(C)){var A=Vn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;A&&(M[t.xsrfHeaderName||e.xsrfHeaderName]=A),o(t.method,O,i,l,M,t.timeout,t.withCredentials,t.responseType,r(t.eventHandlers),r(t.uploadEventHandlers))}return S}function v(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function $(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw $a("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(new RegExp("[&?]"+t+"=").test(e))throw $a("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var x=l("$http");e.paramSerializer=k(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var C=[];return a(i,function(e){C.unshift(k(e)?d.get(e):d.invoke(e))}),h.pendingRequests=[],function(e){a(arguments,function(e){h[e]=function(t,n){return h(p({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){a(arguments,function(e){h[e]=function(t,n,i){return h(p({},i||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function Rt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function jt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,i){return Lt(e,i,e.defer,t,n[0])}]}function Lt(e,t,n,i,r){function o(e,t,n){e=e.replace("JSON_CALLBACK",t);var a=r.createElement("script"),o=null;return a.type="text/javascript",a.src=e,a.async=!0,o=function(e){a.removeEventListener("load",o),a.removeEventListener("error",o),r.body.removeChild(a),a=null;var s=-1,l="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},a.addEventListener("load",o),a.addEventListener("error",o),r.body.appendChild(a),o}return function(r,s,l,u,c,p,d,f,h,g){function m(){w&&w(),x&&x.abort()}function v(e,t,i,r,a){y(C)&&n.cancel(C),w=x=null,e(t,i,r,a)}if(s=s||e.url(),"jsonp"===Gi(r))var $=i.createCallback(s),w=o(s,$,function(e,t){var n=200===e&&i.getResponse($);v(u,e,n,"",t),i.removeCallback($)});else{var x=t(r,s);x.open(r,s,!0),a(c,function(e,t){y(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===Fn(s).protocol?404:0),v(u,n,t,x.getAllResponseHeaders(),e)};var k=function(){v(u,-1,null,null,"")};if(x.onerror=k,x.onabort=k,x.ontimeout=k,a(h,function(e,t){x.addEventListener(t,e)}),a(g,function(e,t){x.upload.addEventListener(t,e)}),d&&(x.withCredentials=!0),f)try{x.responseType=f}catch(e){if("json"!==f)throw e}x.send(b(l)?null:l)}if(p>0)var C=n(m,p);else _(p)&&p.then(m)}}function Ht(){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,i,r){function a(e){return"\\\\\\"+e}function o(n){return n.replace(d,e).replace(f,t)}function s(e,t,n,i){var r=e.$watch(function(e){return r(),i(e)},t,n);return r}function l(a,l,d,f){function h(e){try{return e=A(e),f&&!y(e)?e:$e(e)}catch(e){i(ba.interr(a,e))}}if(!a.length||-1===a.indexOf(e)){var g;if(!l){g=v(o(a)),g.exp=a,g.expressions=[],g.$$watchDelegate=s}return g}f=!!f;for(var m,$,w,x=0,k=[],C=[],D=a.length,M=[],E=[];x<D;){if(-1===(m=a.indexOf(e,x))||-1===($=a.indexOf(t,m+u))){x!==D&&M.push(o(a.substring(x)));break}x!==m&&M.push(o(a.substring(x,m))),w=a.substring(m+u,$),k.push(w),C.push(n(w,h)),x=$+c,E.push(M.length),M.push("")}if(d&&M.length>1&&ba.throwNoconcat(a),!l||k.length){var O=function(e){for(var t=0,n=k.length;t<n;t++){if(f&&b(e[t]))return;M[E[t]]=e[t]}return M.join("")},A=function(e){return d?r.getTrusted(d,e):r.valueOf(e)};return p(function(e){var t=0,n=k.length,r=new Array(n);try{for(;t<n;t++)r[t]=C[t](e);return O(r)}catch(e){i(ba.interr(a,e))}},{exp:a,expressions:k,$$watchDelegate:function(e,t){var n;return e.$watchGroup(C,function(i,r){var a=O(i);S(t)&&t.call(this,a,i!==r?n:a,e),n=a})}})}}var u=e.length,c=t.length,d=new RegExp(e.replace(/./g,a),"g"),f=new RegExp(t.replace(/./g,a),"g");return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function zt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,i,r){function a(a,s,l,u){function c(){p?a.apply(null,d):a(g)}var p=arguments.length>4,d=p?W(arguments,4):[],f=t.setInterval,h=t.clearInterval,g=0,m=y(u)&&!u,v=(m?i:n).defer(),$=v.promise;return l=y(l)?l:0,$.$$intervalId=f(function(){m?r.defer(c):e.$evalAsync(c),v.notify(g++),l>0&&g>=l&&(v.resolve(g),h($.$$intervalId),delete o[$.$$intervalId]),m||e.$apply()},s),o[$.$$intervalId]=v,$}var o={};return a.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].promise.catch(g),o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},a}]}function qt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=re(t[n]);return t.join("/")}function Bt(e,t){var n=Fn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||xa[n.protocol]||null}function Wt(e,t){if(Ca.test(e))throw ka("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var i=Fn(e);t.$$path=decodeURIComponent(n&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=ne(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Gt(e,t){return e.slice(0,t.length)===t}function Yt(e,t){if(Gt(t,e))return t.substr(e.length)}function Kt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Xt(e){return e.replace(/(#.+)|#$/,"$1")}function Zt(e){return e.substr(0,Kt(e).lastIndexOf("/")+1)}function Jt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Qt(e,t,n){this.$$html5=!0,n=n||"",Bt(e,this),this.$$parse=function(e){var n=Yt(t,e);if(!k(n))throw ka("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Wt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ie(this.$$search),n=this.$$hash?"#"+re(this.$$hash):"";this.$$url=qt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var a,o,s;return y(a=Yt(e,i))?(o=a,s=n&&y(a=Yt(n,a))?t+(Yt("/",a)||a):e+o):y(a=Yt(t,i))?s=t+a:t===i+"/"&&(s=t),s&&this.$$parse(s),!!s}}function en(e,t,n){Bt(e,this),this.$$parse=function(i){var r,a=Yt(e,i)||Yt(t,i);b(a)||"#"!==a.charAt(0)?this.$$html5?r=a:(r="",b(a)&&(e=i,this.replace())):(r=Yt(n,a),b(r)&&(r=a)),Wt(r,this),this.$$path=function(e,t,n){var i,r=/^\/[A-Z]:(\/.*)/;return Gt(t,n)&&(t=t.replace(n,"")),r.exec(t)?e:(i=r.exec(e),i?i[1]:e)}(this.$$path,r,e),this.$$compose()},this.$$compose=function(){var t=ie(this.$$search),i=this.$$hash?"#"+re(this.$$hash):"";this.$$url=qt(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Kt(e)===Kt(t)&&(this.$$parse(t),!0)}}function tn(e,t,n){this.$$html5=!0,en.apply(this,arguments),this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var a,o;return e===Kt(i)?a=i:(o=Yt(t,i))?a=e+n+o:t===i+"/"&&(a=t),a&&this.$$parse(a),!!a},this.$$compose=function(){var t=ie(this.$$search),i=this.$$hash?"#"+re(this.$$hash):"";this.$$url=qt(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function nn(e){return function(){return this[e]}}function rn(e,t){return function(n){return b(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function an(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return I(e)?(t.enabled=e,this):w(e)?(I(e.enabled)&&(t.enabled=e.enabled),I(e.requireBase)&&(t.requireBase=e.requireBase),(I(e.rewriteLinks)||k(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,a,o){function s(e,t,n){var r=u.url(),a=u.$$state;try{i.url(e,t,n),u.$$state=i.state()}catch(e){throw u.url(r),u.$$state=a,e}}function l(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,c,p,d=i.baseHref(),f=i.url();if(t.enabled){if(!d&&t.requireBase)throw ka("nobase","$location in HTML5 mode requires a <base> tag to be present!");p=Jt(f)+(d||"/"),c=r.history?Qt:tn}else p=Kt(f),c=en;var h=Zt(p);u=new c(p,h,"#"+e),u.$$parseLinkUrl(f,f),u.$$state=i.state();var g=/^\s*(javascript|mailto):/i;a.on("click",function(e){var r=t.rewriteLinks;if(r&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Ji(e.target);"a"!==R(s[0]);)if(s[0]===a[0]||!(s=s.parent())[0])return;if(!k(r)||!b(s.attr(r))){var l=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");w(l)&&"[object SVGAnimatedString]"===l.toString()&&(l=Fn(l.animVal).href),g.test(l)||!l||s.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(l,c)&&(e.preventDefault(),u.absUrl()!==i.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}}),Xt(u.absUrl())!==Xt(f)&&i.url(u.absUrl(),!0);var m=!0;return i.onUrlChange(function(e,t){if(!Gt(e,h))return void(o.location.href=e);n.$evalAsync(function(){var i,r=u.absUrl(),a=u.$$state;e=Xt(e),u.$$parse(e),u.$$state=t,i=n.$broadcast("$locationChangeStart",e,r,t,a).defaultPrevented,u.absUrl()===e&&(i?(u.$$parse(r),u.$$state=a,s(r,!1,a)):(m=!1,l(r,a)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(m||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var e=Xt(i.url()),t=Xt(u.absUrl()),a=i.state(),o=u.$$replace,c=e!==t||u.$$html5&&r.history&&a!==u.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=u.absUrl(),i=n.$broadcast("$locationChangeStart",t,e,u.$$state,a).defaultPrevented;u.absUrl()===t&&(i?(u.$$parse(e),u.$$state=a):(c&&s(t,o,a===u.$$state?null:u.$$state),l(e,a)))}))}u.$$replace=!1}),u}]}function on(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack&&o?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 r(e){var t=n.console||{},r=t[e]||t.log||g,o=!1;try{o=!!r.apply}catch(e){}return o?function(){var e=[];return a(arguments,function(t){e.push(i(t))}),r.apply(t,e)}:function(e,t){r(e,null==t?"":t)}}var o=Zi||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function sn(e){return e+""}function ln(e,t){return void 0!==e?e:t}function un(e,t){return void 0===e?t:void 0===t?e:e+t}function cn(e,t){return!e(t).$stateful}function pn(e,t){var n,i,r;switch(e.type){case Ta.Program:n=!0,a(e.body,function(e){pn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Ta.Literal:e.constant=!0,e.toWatch=[];break;case Ta.UnaryExpression:pn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ta.BinaryExpression:pn(e.left,t),pn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ta.LogicalExpression:pn(e.left,t),pn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ta.ConditionalExpression:pn(e.test,t),pn(e.alternate,t),pn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ta.Identifier:e.constant=!1,e.toWatch=[e];break;case Ta.MemberExpression:pn(e.object,t),e.computed&&pn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Ta.CallExpression:r=!!e.filter&&cn(t,e.callee.name),n=r,i=[],a(e.arguments,function(e){pn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=r?i:[e];break;case Ta.AssignmentExpression:pn(e.left,t),pn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ta.ArrayExpression:n=!0,i=[],a(e.elements,function(e){pn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case Ta.ObjectExpression:n=!0,i=[],a(e.properties,function(e){pn(e.value,t),
  n=n&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch),e.computed&&(pn(e.key,t),e.key.constant||i.push.apply(i,e.key.toWatch))}),e.constant=n,e.toWatch=i;break;case Ta.ThisExpression:case Ta.LocalsExpression:e.constant=!1,e.toWatch=[]}}function dn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function fn(e){return e.type===Ta.Identifier||e.type===Ta.MemberExpression}function hn(e){if(1===e.body.length&&fn(e.body[0].expression))return{type:Ta.AssignmentExpression,left:e.body[0].expression,right:{type:Ta.NGValueParameter},operator:"="}}function gn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ta.Literal||e.body[0].expression.type===Ta.ArrayExpression||e.body[0].expression.type===Ta.ObjectExpression)}function mn(e){return e.constant}function vn(e){this.$filter=e}function $n(e){this.$filter=e}function bn(e,t,n){this.ast=new Ta(e,n),this.astCompiler=n.csp?new $n(t):new vn(t)}function yn(e){return S(e.valueOf)?e.valueOf():Ma.call(e)}function wn(){var e,t,n=ve(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){i[e]=t},this.setIdentifierFns=function(n,i){return e=n,t=i,this},this.$get=["$filter",function(r){function o(e,t){var i,a,o;switch(typeof e){case"string":if(e=e.trim(),o=e,!(i=n[o])){":"===e.charAt(0)&&":"===e.charAt(1)&&(a=!0,e=e.substring(2));i=new bn(new Aa(h),r,h).parse(e),i.constant?i.$$watchDelegate=p:a?(i.oneTime=!0,i.$$watchDelegate=u):i.inputs&&(i.$$watchDelegate=l),n[o]=i}return d(i,t);case"function":return d(e,t);default:return d(g,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=yn(e))&&!n)&&(e===t||e!==e&&t!==t)}function l(e,t,n,i,r){var a,o=i.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.literal)||(a=i(e,void 0,void 0,[t]),l=t&&yn(t)),a},t,n,r)}for(var u=[],c=[],p=0,d=o.length;p<d;p++)u[p]=s,c[p]=null;return e.$watch(function(e){for(var t=!1,n=0,r=o.length;n<r;n++){var l=o[n](e);(t||(t=!s(l,u[n],i.literal)))&&(c[n]=l,u[n]=l&&yn(l))}return t&&(a=i(e,void 0,void 0,c)),a},t,n,r)}function u(e,t,n,i,r){function a(e){return i(e)}function o(e,n,i){u=e,S(t)&&t(e,n,i),p(e)&&i.$$postDigest(function(){p(u)&&s()})}var s,u,p=i.literal?c:y;return s=i.inputs?l(e,o,n,i,r):e.$watch(a,o,n)}function c(e){var t=!0;return a(e,function(e){y(e)||(t=!1)}),t}function p(e,t,n,i){var r=e.$watch(function(e){return r(),i(e)},t,n);return r}function d(e,t){function n(n,i,r,o){var s=a&&o?o[0]:e(n,i,r,o);return t(s,n,i)}function i(n,i,r,s){var l=a&&s?s[0]:e(n,i,r,s),u=t(l,n,i);return o(l)?u:l}if(!t)return e;var r=e.$$watchDelegate,a=!1,o=e.literal?c:y,s=e.oneTime?i:n;return s.literal=e.literal,s.oneTime=e.oneTime,a=!e.inputs,r&&r!==l?(s.$$watchDelegate=r,s.inputs=e.inputs):t.$stateful||(s.$$watchDelegate=l,s.inputs=e.inputs?e.inputs:[e]),s}var f=hr().noUnsafeEval,h={csp:f,literals:H(i),isIdentifierStart:S(e)&&e,isIdentifierContinue:S(t)&&t};return o}]}function xn(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Cn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return y(t)?(e=t,this):e}}function kn(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Cn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return y(t)?(e=t,this):e}}function Cn(e,n,i){function r(){return new o}function o(){var e=this.promise=new s;this.resolve=function(t){d(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){m(e,t)}}function s(){this.$$state={status:0}}function l(t){var n,r,a;a=t.pending,t.processScheduled=!1,t.pending=void 0;try{for(var o=0,s=a.length;o<s;++o){t.pur=!0,r=a[o][0],n=a[o][t.status];try{S(n)?d(r,n(t.value)):1===t.status?d(r,t.value):h(r,t.value)}catch(e){h(r,e)}}}finally{--M,i&&0===M&&e(u)}}function u(){for(;!M&&E.length;){var e=E.shift();if(!e.pur){e.pur=!0;var t="Possibly unhandled rejection: "+xe(e.value);e.value instanceof Error?n(e.value,t):n(t)}}}function c(t){!i||t.pending||2!==t.status||t.pur||(0===M&&0===E.length&&e(u),E.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++M,e(function(){l(t)}))}function d(e,t){e.$$state.status||(t===e?g(e,D("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):f(e,t))}function f(e,t){function n(t){o||(o=!0,f(e,t))}function i(t){o||(o=!0,g(e,t))}function r(t){m(e,t)}var a,o=!1;try{(w(t)||S(t))&&(a=t.then),S(a)?(e.$$state.status=-1,a.call(t,n,i,r)):(e.$$state.value=t,e.$$state.status=1,c(e.$$state))}catch(e){i(e)}}function h(e,t){e.$$state.status||g(e,t)}function g(e,t){e.$$state.value=t,e.$$state.status=2,c(e.$$state)}function m(t,i){var r=t.$$state.pending;t.$$state.status<=0&&r&&r.length&&e(function(){for(var e,t,a=0,o=r.length;a<o;a++){t=r[a][0],e=r[a][3];try{m(t,S(e)?e(i):i)}catch(e){n(e)}}})}function v(e){var t=new s;return h(t,e),t}function $(e,t,n){var i=null;try{S(n)&&(i=n())}catch(e){return v(e)}return _(i)?i.then(function(){return t(e)},v):t(e)}function y(e,t,n,i){var r=new s;return d(r,e),r.then(t,n,i)}function x(e){var t=new s,n=0,i=cr(e)?[]:{};return a(e,function(e,r){n++,y(e).then(function(e){i[r]=e,--n||d(t,i)},function(e){h(t,e)})}),0===n&&d(t,i),t}function k(e){var t=r();return a(e,function(e){y(e).then(t.resolve,t.reject)}),t.promise}function C(e){function t(e){d(i,e)}function n(e){h(i,e)}if(!S(e))throw D("norslvr","Expected resolverFn, got '{0}'",e);var i=new s;return e(t,n),i}var D=t("$q",TypeError),M=0,E=[];p(s.prototype,{then:function(e,t,n){if(b(e)&&b(t)&&b(n))return this;var i=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,e,t,n]),this.$$state.status>0&&c(this.$$state),i},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return $(t,O,e)},function(t){return $(t,v,e)},t)}});var O=y;return C.prototype=s.prototype,C.defer=r,C.reject=v,C.when=y,C.resolve=O,C.all=x,C.race=k,C}function Dn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,r=!!n,a=r?function(e){var t=n(e);return function(){i(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return a.supported=r,a}]}function Sn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=l(),this.$$ChildScope=null}return t.prototype=e,t}var n=10,i=t("$rootScope"),o=null,s=null;this.digestTtl=function(e){return arguments.length&&(n=e),n},this.$get=["$exceptionHandler","$parse","$browser",function(t,u,c){function p(e){e.currentScope.$$destroyed=!0}function d(e){9===Zi&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function f(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(C.$$phase)throw i("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function m(){C.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function $(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function y(){}function x(){for(;E.length;)try{E.shift()()}catch(e){t(e)}s=null}function k(){null===s&&(s=c.defer(function(){C.$apply(x)}))}f.prototype={constructor:f,$new:function(t,n){var i;return n=n||this,t?(i=new f,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),i=new this.$$ChildScope),i.$parent=n,i.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=i,n.$$childTail=i):n.$$childHead=n.$$childTail=i,(t||n!==this)&&i.$on("$destroy",p),i},$watch:function(e,t,n,i){var r=u(e);if(r.$$watchDelegate)return r.$$watchDelegate(this,t,n,r,e);var a=this,s=a.$$watchers,l={fn:t,last:y,get:r,exp:i||e,eq:!!n};return o=null,S(t)||(l.fn=g),s||(s=a.$$watchers=[],s.$$digestWatchIndex=-1),s.unshift(l),s.$$digestWatchIndex++,v(this,1),function(){var e=L(s,l);e>=0&&(v(a,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),o=null}},$watchGroup:function(e,t){function n(){l=!1,u?(u=!1,t(r,r,s)):t(r,i,s)}var i=new Array(e.length),r=new Array(e.length),o=[],s=this,l=!1,u=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(r,r,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,a){r[0]=e,i[0]=n,t(r,e===n?r:i,a)}):(a(e,function(e,t){var a=s.$watch(e,function(e,a){r[t]=e,i[t]=a,l||(l=!0,s.$evalAsync(n))});o.push(a)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(e,t){function n(e){a=e;var t,n,i,s;if(!b(a)){if(w(a))if(r(a)){o!==f&&(o=f,m=o.length=0,p++),t=a.length,m!==t&&(p++,o.length=m=t);for(var l=0;l<t;l++)s=o[l],i=a[l],s!==s&&i!==i||s===i||(p++,o[l]=i)}else{o!==h&&(o=h={},m=0,p++),t=0;for(n in a)Bi.call(a,n)&&(t++,i=a[n],s=o[n],n in o?s!==s&&i!==i||s===i||(p++,o[n]=i):(m++,o[n]=i,p++));if(m>t){p++;for(n in o)Bi.call(a,n)||(m--,delete o[n])}}else o!==a&&(o=a,p++);return p}}function i(){if(g?(g=!1,t(a,a,l)):t(a,s,l),c)if(w(a))if(r(a)){s=new Array(a.length);for(var e=0;e<a.length;e++)s[e]=a[e]}else{s={};for(var n in a)Bi.call(a,n)&&(s[n]=a[n])}else s=a}n.$stateful=!0;var a,o,s,l=this,c=t.length>1,p=0,d=u(e,n),f=[],h={},g=!0,m=0;return this.$watch(d,i)},$digest:function(){var e,r,a,l,u,p,d,f,g,v,$,b=n,w=this,k=[];h("$digest"),c.$$checkUrlChange(),this===C&&null!==s&&(c.defer.cancel(s),x()),o=null;do{d=!1,g=w;for(var E=0;E<D.length;E++){try{$=D[E],l=$.fn,l($.scope,$.locals)}catch(e){t(e)}o=null}D.length=0;e:do{if(p=g.$$watchers)for(p.$$digestWatchIndex=p.length;p.$$digestWatchIndex--;)try{if(e=p[p.$$digestWatchIndex])if(u=e.get,(r=u(g))===(a=e.last)||(e.eq?q(r,a):ur(r)&&ur(a))){if(e===o){d=!1;break e}}else d=!0,o=e,e.last=e.eq?H(r,null):r,l=e.fn,l(r,a===y?r:a,g),b<5&&(v=4-b,k[v]||(k[v]=[]),k[v].push({msg:S(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:a}))}catch(e){t(e)}if(!(f=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(f=g.$$nextSibling);)g=g.$parent}while(g=f);if((d||D.length)&&!b--)throw m(),i("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,k)}while(d||D.length);for(m();O<M.length;)try{M[O++]()}catch(e){t(e)}M.length=O=0,c.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&c.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)$(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&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=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return u(e)(this,t)},$evalAsync:function(e,t){C.$$phase||D.length||c.defer(function(){D.length&&C.$digest()}),D.push({scope:this,fn:u(e),locals:t})},$$postDigest:function(e){M.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{m()}}catch(e){t(e)}finally{try{C.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&E.push(t),e=u(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var i=this;do{i.$$listenerCount[e]||(i.$$listenerCount[e]=0),i.$$listenerCount[e]++}while(i=i.$parent);var r=this;return function(){var i=n.indexOf(t);-1!==i&&(n[i]=null,$(r,1,e))}},$emit:function(e,n){var i,r,a,o=[],s=this,l=!1,u={name:e,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=B([u],arguments,1);do{for(i=s.$$listeners[e]||o,u.currentScope=s,r=0,a=i.length;r<a;r++)if(i[r])try{i[r].apply(null,c)}catch(e){t(e)}else i.splice(r,1),r--,a--;if(l)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,n){var i=this,r=i,a=i,o={name:e,targetScope:i,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!i.$$listenerCount[e])return o;for(var s,l,u,c=B([o],arguments,1);r=a;){for(o.currentScope=r,s=r.$$listeners[e]||[],l=0,u=s.length;l<u;l++)if(s[l])try{s[l].apply(null,c)}catch(e){t(e)}else s.splice(l,1),l--,u--;if(!(a=r.$$listenerCount[e]&&r.$$childHead||r!==i&&r.$$nextSibling))for(;r!==i&&!(a=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var C=new f,D=C.$$asyncQueue=[],M=C.$$postDigestQueue=[],E=C.$$applyAsyncQueue=[],O=0;return C}]}function Mn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,i){var r,a=i?t:e;return r=Fn(n).href,""===r||r.match(a)?n:"unsafe:"+r}}}function En(e){return e.replace(_a,De)}function On(e){if("self"===e)return e;if(k(e)){if(e.indexOf("***")>-1)throw Pa("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=fr(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(M(e))return new RegExp("^"+e.source+"$");throw Pa("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function An(e){var t=[];return y(e)&&a(e,function(e){t.push(On(e))}),t}function Tn(){this.SCE_CONTEXTS=Ia;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=An(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=An(e)),t},this.$get=["$injector",function(n){function i(e,t){return"self"===e?Vn(t):!!e.exec(t.href)}function r(n){var r,a,o=Fn(n.toString()),s=!1;for(r=0,a=e.length;r<a;r++)if(i(e[r],o)){s=!0;break}if(s)for(r=0,a=t.length;r<a;r++)if(i(t[r],o)){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 o(e,t){var n=p.hasOwnProperty(e)?p[e]:null;if(!n)throw Pa("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||b(t)||""===t)return t;if("string"!=typeof t)throw Pa("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||b(t)||""===t)return t;var n=p.hasOwnProperty(e)?p[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===Ia.RESOURCE_URL){if(r(t))return t;throw Pa("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===Ia.HTML)return u(t);throw Pa("unsafe","Attempting to use an unsafe value in a safe context.")}var u=function(e){throw Pa("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(u=n.get("$sanitize"));var c=a(),p={};return p[Ia.HTML]=a(c),p[Ia.CSS]=a(c),p[Ia.URL]=a(c),p[Ia.JS]=a(c),p[Ia.RESOURCE_URL]=a(p[Ia.URL]),{trustAs:o,getTrusted:l,valueOf:s}}]}function Pn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Zi<8)throw Pa("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 i=ye(Ia);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=m),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var r=i.parseAs,o=i.getTrusted,s=i.trustAs;return a(Ia,function(e,t){var n=Gi(t);i[En("parse_as_"+n)]=function(t){return r(e,t)},i[En("get_trusted_"+n)]=function(t){return o(e,t)},i[En("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function In(){this.$get=["$window","$document",function(e,t){var n={},i=e.nw&&e.nw.process,r=!i&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),a=!r&&e.history&&e.history.pushState,o=f((/android (\d+)/.exec(Gi((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},u=l.body&&l.body.style,c=!1,p=!1;return u&&(c=!!("transition"in u||"webkitTransition"in u),p=!!("animation"in u||"webkitAnimation"in u)),{history:!(!a||o<4||s),hasEvent:function(e){if("input"===e&&Zi)return!1;if(b(n[e])){var t=l.createElement("div");n[e]="on"+e in t}return n[e]},csp:hr(),transitions:c,animations:p,android:o}}]}function _n(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,i,r,a){function o(s,l){function u(e){return l||(e=Ua("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),r.reject(e)}o.totalPendingRequests++,k(s)&&!b(n.get(s))||(s=a.getTrustedResourceUrl(s));var c=i.defaults&&i.defaults.transformResponse;return cr(c)?c=c.filter(function(e){return e!==Pt}):c===Pt&&(c=null),i.get(s,p({cache:n,transformResponse:c},e)).finally(function(){o.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},u)}return o.totalPendingRequests=0,o}]}function Un(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),r=[];return a(i,function(e){var i=sr.element(e).data("$binding");i&&a(i,function(i){if(n){new RegExp("(^|\\s)"+fr(t)+"(\\s|\\||$)").test(i)&&r.push(e)}else-1!==i.indexOf(t)&&r.push(e)})}),r},i.findModels=function(e,t,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var a=n?"=":"*=",o="["+i[r]+"model"+a+'"'+t+'"]',s=e.querySelectorAll(o);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},i.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},i}]}function Nn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,i,r){function a(a,s,l){S(a)||(l=s,s=a,a=g);var u,c=W(arguments,3),p=y(l)&&!l,d=(p?i:n).defer(),f=d.promise;return u=t.defer(function(){try{d.resolve(a.apply(null,c))}catch(e){d.reject(e),r(e)}finally{delete o[f.$$timeoutId]}p||e.$apply()},s),f.$$timeoutId=u,o[u]=d,f}var o={};return a.cancel=function(e){return!!(e&&e.$$timeoutId in o)&&(o[e.$$timeoutId].promise.catch(g),o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},a}]}function Fn(e){var t=e;return Zi&&(Na.setAttribute("href",t),t=Na.href),Na.setAttribute("href",t),{href:Na.href,protocol:Na.protocol?Na.protocol.replace(/:$/,""):"",host:Na.host,search:Na.search?Na.search.replace(/^\?/,""):"",hash:Na.hash?Na.hash.replace(/^#/,""):"",hostname:Na.hostname,port:Na.port,pathname:"/"===Na.pathname.charAt(0)?Na.pathname:"/"+Na.pathname}}function Vn(e){var t=k(e)?Fn(e):e;return t.protocol===Fa.protocol&&t.host===Fa.host}function Rn(){this.$get=v(e)}function jn(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var i=e[0]||{},r={},a="";return function(){var e,o,s,l,u,c=t(i);if(c!==a)for(a=c,e=a.split("; "),r={},s=0;s<e.length;s++)o=e[s],(l=o.indexOf("="))>0&&(u=n(o.substring(0,l)),b(r[u])&&(r[u]=n(o.substring(l+1))));return r}}function Ln(){this.$get=jn}function Hn(e){function t(i,r){if(w(i)){var o={};return a(i,function(e,n){o[n]=t(n,e)}),o}return e.factory(i+n,r)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Gn),t("date",li),t("filter",zn),t("json",ui),t("limitTo",ci),t("lowercase",qa),t("number",Yn),t("orderBy",di),t("uppercase",Ba)}function zn(){return function(e,n,i,a){if(!r(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}a=a||"$";var o,s,l=Wn(n);switch(l){case"function":o=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=qn(n,i,a,s);break;default:return e}return Array.prototype.filter.call(e,o)}}function qn(e,t,n,i){var r=w(e)&&n in e;return!0===t?t=q:S(t)||(t=function(e,t){return!b(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!$(e))&&(e=Gi(""+e),t=Gi(""+t),-1!==e.indexOf(t)))}),function(a){return r&&!w(a)?Bn(a,e[n],t,n,!1):Bn(a,e,t,n,i)}}function Bn(e,t,n,i,r,a){var o=Wn(e),s=Wn(t);if("string"===s&&"!"===t.charAt(0))return!Bn(e,t.substring(1),n,i,r);if(cr(e))return e.some(function(e){return Bn(e,t,n,i,r)});switch(o){case"object":var l;if(r){for(l in e)if(l.charAt&&"$"!==l.charAt(0)&&Bn(e[l],t,n,i,!0))return!0;return!a&&Bn(e,t,n,i,!1)}if("object"===s){for(l in t){var u=t[l];if(!S(u)&&!b(u)){var c=l===i;if(!Bn(c?e:e[l],u,n,i,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Wn(e){return null===e?"null":typeof e}function Gn(e){var t=e.NUMBER_FORMATS;return function(e,n,i){return b(n)&&(n=t.CURRENCY_SYM),b(i)&&(i=t.PATTERNS[1].maxFrac),null==e?e:Zn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,i).replace(/\u00A4/g,n)}}function Yn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Zn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Kn(e){var t,n,i,r,a,o=0;for((n=e.indexOf(Ra))>-1&&(e=e.replace(Ra,"")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;e.charAt(i)===ja;i++);if(i===(a=e.length))t=[0],n=1;else{for(a--;e.charAt(a)===ja;)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=+e.charAt(i)}return n>Va&&(t=t.splice(0,Va-1),o=n-1,n=1),{d:t,e:o,i:n}}function Xn(e,t,n,i){var r=e.d,a=r.length-e.i;t=b(t)?Math.min(Math.max(n,a),i):+t;var o=t+e.i,s=r[o];if(o>0){r.splice(Math.max(e.i,o));for(var l=o;l<r.length;l++)r[l]=0}else{a=Math.max(0,a),e.i=1,r.length=Math.max(1,o=t+1),r[0]=0;for(var u=1;u<o;u++)r[u]=0}if(s>=5)if(o-1<0){for(var c=0;c>o;c--)r.unshift(0),e.i++;r.unshift(1),e.i++}else r[o-1]++;for(;a<Math.max(0,t);a++)r.push(0);var p=r.reduceRight(function(e,t,n,i){return t+=e,i[n]=t%10,Math.floor(t/10)},0);p&&(r.unshift(p),e.i++)}function Zn(e,t,n,i,r){if(!k(e)&&!C(e)||isNaN(e))return"";var a,o=!isFinite(e),s=!1,l=Math.abs(e)+"",u="";if(o)u="∞";else{a=Kn(l),Xn(a,r,t.minFrac,t.maxFrac);var c=a.d,p=a.i,d=a.e,f=[];for(s=c.reduce(function(e,t){return e&&!t},!0);p<0;)c.unshift(0),p++;p>0?f=c.splice(p,c.length):(f=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),u=h.join(n),f.length&&(u+=i+f.join("")),d&&(u+="e+"+d)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function Jn(e,t,n,i){var r="";for((e<0||i&&e<=0)&&(i?e=1-e:(e=-e,r="-")),e=""+e;e.length<t;)e=ja+e;return n&&(e=e.substr(e.length-t)),r+e}function Qn(e,t,n,i,r){return n=n||0,function(a){var o=a["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12===n&&(o=12),Jn(o,t,i,r)}}function ei(e,t,n){return function(i,r){var a=i["get"+e]();return r[Yi((n?"STANDALONE":"")+(t?"SHORT":"")+e)][a]}}function ti(e,t,n){var i=-1*n,r=i>=0?"+":"";return r+=Jn(Math[i>0?"floor":"ceil"](i/60),2)+Jn(Math.abs(i%60),2)}function ni(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function ii(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ri(e){return function(t){var n=ni(t.getFullYear()),i=ii(t),r=+i-+n;return Jn(1+Math.round(r/6048e5),e)}}function ai(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function oi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function si(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function li(e){function t(e){var t;if(t=e.match(n)){var i=new Date(0),r=0,a=0,o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(r=f(t[9]+t[10]),a=f(t[9]+t[11])),o.call(i,f(t[1]),f(t[2])-1,f(t[3]));var l=f(t[4]||0)-r,u=f(t[5]||0)-a,c=f(t[6]||0),p=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,l,u,c,p),i}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var o,s,l="",u=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,k(n)&&(n=za.test(n)?f(n):t(n)),C(n)&&(n=new Date(n)),!D(n)||!isFinite(n.getTime()))return n;for(;i;)s=Ha.exec(i),s?(u=B(u,s,1),i=u.pop()):(u.push(i),i=null);var c=n.getTimezoneOffset();return r&&(c=Z(r,c),n=Q(n,r,!0)),a(u,function(t){o=La[t],l+=o?o(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function ui(){return function(e,t){return b(t)&&(t=2),K(e,t)}}function ci(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),ur(t)?e:(C(e)&&(e=e.toString()),r(e)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,e.length+n):n,t>=0?pi(e,n,n+t):0===n?pi(e,t,e.length):pi(e,Math.max(0,n+t),n)):e)}}function pi(e,t,n){return k(e)?e.slice(t,n):tr.call(e,t,n)}function di(e){function n(t){return t.map(function(t){var n=1,i=m;if(S(t))i=t;else if(k(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var r=i();i=function(e){return e[r]}}return{get:i,descending:n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function a(e){return S(e.valueOf)&&(e=e.valueOf(),i(e))?e:($(e)&&(e=e.toString(),i(e)),e)}function o(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=a(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,i=e.type,r=t.type;if(i===r){var a=e.value,o=t.value;"string"===i?(a=a.toLowerCase(),o=o.toLowerCase()):"object"===i&&(w(a)&&(a=e.index),w(o)&&(o=t.index)),a!==o&&(n=a<o?-1:1)}else n=i<r?-1:1;return n}return function(e,i,a,l){function u(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:p.map(function(n){return o(n.get(e),t)})}}function c(e,t){for(var n=0,i=p.length;n<i;n++){var r=f(e.predicateValues[n],t.predicateValues[n]);if(r)return r*p[n].descending*d}return f(e.tieBreaker,t.tieBreaker)*d}if(null==e)return e;if(!r(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);cr(i)||(i=[i]),0===i.length&&(i=["+"]);var p=n(i),d=a?-1:1,f=S(l)?l:s,h=Array.prototype.map.call(e,u);return h.sort(c),e=h.map(function(e){return e.value})}}function fi(e){return S(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function hi(e,t){e.$name=t}function gi(e,t,n,i,r){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=r(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ya,this.$$element=e,this.$$animate=i,mi(this)}function mi(e){e.$$classCache={},e.$$classCache[Ao]=!(e.$$classCache[Oo]=e.$$element.hasClass(Oo))}function vi(e){function t(e,t,n,i){e[t]||(e[t]={}),o(e[t],n,i)}function n(e,t,n,i){e[t]&&s(e[t],n,i),$i(e[t])&&(e[t]=void 0)}function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function r(e,t,n){t=t?"-"+pe(t,"-"):"",i(e,Oo+t,!0===n),i(e,Ao+t,!1===n)}var a=e.clazz,o=e.set,s=e.unset;a.prototype.$setValidity=function(e,a,l){b(a)?t(this,"$pending",e,l):n(this,"$pending",e,l),I(a)?a?(s(this.$error,e,l),o(this.$$success,e,l)):(o(this.$error,e,l),s(this.$$success,e,l)):(s(this.$error,e,l),s(this.$$success,e,l)),this.$pending?(i(this,Ka,!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(i(this,Ka,!1),this.$valid=$i(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid));var u;u=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),r(this,e,u),this.$$parentForm.$setValidity(e,u,this)}}function $i(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function bi(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function yi(e,t,n,i,r,a){wi(e,t,n,i,r,a),bi(i)}function wi(e,t,n,i,r,a){var o=Gi(t[0].type);if(!r.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,u()})}var l,u=function(e){if(l&&(a.defer.cancel(l),l=null),!s){var r=t.val(),u=e&&e.type;"password"===o||n.ngTrim&&"false"===n.ngTrim||(r=dr(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,u)}};if(r.hasEvent("input"))t.on("input",u);else{var c=function(e,t,n){l||(l=a.defer(function(){l=null,t&&t.value===n||u(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),r.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",u),so[o]&&i.$$hasNativeValidators&&o===n.type&&t.on(oo,function(e){if(!l){var t=this[qi],n=t.badInput,i=t.typeMismatch;l=a.defer(function(){l=null,t.badInput===n&&t.typeMismatch===i||u(e)})}}),i.$render=function(){var e=i.$isEmpty(i.$viewValue)?"":i.$viewValue;t.val()!==e&&t.val(e)}}function xi(e,t){if(D(e))return e;if(k(e)){ro.lastIndex=0;var n=ro.exec(e);if(n){var i=+n[1],r=+n[2],a=0,o=0,s=0,l=0,u=ni(i),c=7*(r-1);return t&&(a=t.getHours(),o=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(i,0,u.getDate()+c,a,o,s,l)}}return NaN}function ki(e,t){return function(n,i){var r,o;if(D(n))return n;if(k(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Qa.test(n))return new Date(n);if(e.lastIndex=0,r=e.exec(n))return r.shift(),o=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},a(r,function(e,n){n<t.length&&(o[t[n]]=+e)}),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function Ci(e,t,n,i){return function(r,a,o,s,l,u,c){function p(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function d(e){return y(e)&&!D(e)?n(e)||void 0:e}Di(r,a,o,s),wi(r,a,o,s,l,u);var f,h=s&&s.$options.getOption("timezone");if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var i=n(e,f);return h&&(i=Q(i,h)),i}}),s.$formatters.push(function(e){if(e&&!D(e))throw Io("datefmt","Expected `{0}` to be a date",e);return p(e)?(f=e,f&&h&&(f=Q(f,h,!0)),c("date")(e,i,h)):(f=null,"")}),y(o.min)||o.ngMin){var g;s.$validators.min=function(e){return!p(e)||b(g)||n(e)>=g},o.$observe("min",function(e){g=d(e),s.$validate()})}if(y(o.max)||o.ngMax){var m;s.$validators.max=function(e){return!p(e)||b(m)||n(e)<=m},o.$observe("max",function(e){m=d(e),s.$validate()})}}}function Di(e,t,n,i){var r=t[0];(i.$$hasNativeValidators=w(r.validity))&&i.$parsers.push(function(e){var n=t.prop(qi)||{};return n.badInput||n.typeMismatch?void 0:e})}function Si(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:no.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!C(t))throw Io("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Mi(e){return y(e)&&!C(e)&&(e=parseFloat(e)),ur(e)?void 0:e}function Ei(e){return(0|e)===e}function Oi(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var i=/e-(\d+)$/.exec(t);if(i)return Number(i[1])}return 0}return t.length-n-1}function Ai(e,t,n){var i=Number(e),r=!Ei(i),a=!Ei(t),o=!Ei(n);if(r||a||o){var s=r?Oi(i):0,l=a?Oi(t):0,u=o?Oi(n):0,c=Math.max(s,l,u),p=Math.pow(10,c);i*=p,t*=p,n*=p,
  r&&(i=Math.round(i)),a&&(t=Math.round(t)),o&&(n=Math.round(n))}return(i-t)%n==0}function Ti(e,t,n,i,r,a){Di(e,t,n,i),Si(i),wi(e,t,n,i,r,a);var o,s;if((y(n.min)||n.ngMin)&&(i.$validators.min=function(e){return i.$isEmpty(e)||b(o)||e>=o},n.$observe("min",function(e){o=Mi(e),i.$validate()})),(y(n.max)||n.ngMax)&&(i.$validators.max=function(e){return i.$isEmpty(e)||b(s)||e<=s},n.$observe("max",function(e){s=Mi(e),i.$validate()})),y(n.step)||n.ngStep){var l;i.$validators.step=function(e,t){return i.$isEmpty(t)||b(l)||Ai(t,o||0,l)},n.$observe("step",function(e){l=Mi(e),i.$validate()})}}function Pi(e,t,n,i,r,a){function o(e,i){t.attr(e,n[e]),n.$observe(e,i)}function s(e){if(p=Mi(e),!ur(i.$modelValue))if(c){var n=t.val();p>n&&(n=p,t.val(n)),i.$setViewValue(n)}else i.$validate()}function l(e){if(d=Mi(e),!ur(i.$modelValue))if(c){var n=t.val();d<n&&(t.val(d),n=d<p?p:d),i.$setViewValue(n)}else i.$validate()}function u(e){f=Mi(e),ur(i.$modelValue)||(c&&i.$viewValue!==t.val()?i.$setViewValue(t.val()):i.$validate())}Di(e,t,n,i),Si(i),wi(e,t,n,i,r,a);var c=i.$$hasNativeValidators&&"range"===t[0].type,p=c?0:void 0,d=c?100:void 0,f=c?1:void 0,h=t[0].validity,g=y(n.min),m=y(n.max),v=y(n.step),$=i.$render;i.$render=c&&y(h.rangeUnderflow)&&y(h.rangeOverflow)?function(){$(),i.$setViewValue(t.val())}:$,g&&(i.$validators.min=c?function(){return!0}:function(e,t){return i.$isEmpty(t)||b(p)||t>=p},o("min",s)),m&&(i.$validators.max=c?function(){return!0}:function(e,t){return i.$isEmpty(t)||b(d)||t<=d},o("max",l)),v&&(i.$validators.step=c?function(){return!h.stepMismatch}:function(e,t){return i.$isEmpty(t)||b(f)||Ai(t,p||0,f)},o("step",u))}function Ii(e,t,n,i,r,a){wi(e,t,n,i,r,a),bi(i),i.$$parserName="url",i.$validators.url=function(e,t){var n=e||t;return i.$isEmpty(n)||eo.test(n)}}function _i(e,t,n,i,r,a){wi(e,t,n,i,r,a),bi(i),i.$$parserName="email",i.$validators.email=function(e,t){var n=e||t;return i.$isEmpty(n)||to.test(n)}}function Ui(e,t,n,i){var r=!n.ngTrim||"false"!==dr(n.ngTrim);b(n.name)&&t.attr("name",l());var a=function(e){var a;t[0].checked&&(a=n.value,r&&(a=dr(a)),i.$setViewValue(a,e&&e.type))};t.on("click",a),i.$render=function(){var e=n.value;r&&(e=dr(e)),t[0].checked=e===i.$viewValue},n.$observe("value",i.$render)}function Ni(e,t,n,i,r){var a;if(y(i)){if(a=e(i),!a.constant)throw Io("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return a(t)}return r}function Fi(e,t,n,i,r,a,o,s){var l=Ni(s,e,"ngTrueValue",n.ngTrueValue,!0),u=Ni(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){i.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return!1===e},i.$formatters.push(function(e){return q(e,l)}),i.$parsers.push(function(e){return e?l:u})}function Vi(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var i=0;i<e.length;i++){for(var r=e[i],a=0;a<t.length;a++)if(r===t[a])continue e;n.push(r)}return n}function i(e){return e&&e.split(" ")}function r(e){var t=e;return cr(e)?t=e.map(r).join(" "):w(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}e="ngClass"+e;var o;return["$parse",function(s){return{restrict:"AC",link:function(l,u,c){function p(e){e=h(i(e),1),c.$addClass(e)}function d(e){e=h(i(e),-1),c.$removeClass(e)}function f(e,t){var r=i(e),a=i(t),o=n(r,a),s=n(a,r),l=h(o,-1),u=h(s,1);c.$addClass(u),c.$removeClass(l)}function h(e,t){var n=[];return a(e,function(e){(t>0||$[e])&&($[e]=($[e]||0)+t,$[e]===+(t>0)&&n.push(e))}),n.join(" ")}function g(e){e===t?p(v):d(v),b=e}function m(e){k(e)||(e=r(e)),b===t&&f(v,e),v=e}var v,$=u.data("$classCounts"),b=!0;$||($=ve(),u.data("$classCounts",$)),"ngClass"!==e&&(o||(o=s("$index",function(e){return 1&e})),l.$watch(o,g)),l.$watch(s(c[e],r),m)}}}]}function Ri(e,t,n,i,r,a,o,s,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(e),this.$$parentForm=Ya,this.$options=_o,this.$$parsedNgModel=r(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=n,this.$$element=i,this.$$animate=a,this.$$timeout=o,this.$$parse=r,this.$$q=s,this.$$exceptionHandler=t,mi(this),ji(this)}function ji(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);if(n!==e.$modelValue&&(e.$modelValue===e.$modelValue||n===n)){e.$modelValue=e.$$rawModelValue=n,e.$$parserValid=void 0;for(var i=e.$formatters,r=i.length,a=n;r--;)a=i[r](a);e.$viewValue!==a&&(e.$$updateEmptyClasses(a),e.$viewValue=e.$$lastCommittedViewValue=a,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,g))}return n})}function Li(e){this.$$options=e}function Hi(e,t){a(t,function(t,n){y(e[n])||(e[n]=t)})}function zi(e,t){e.prop("selected",t),e.attr("selected",t)}var qi="validity",Bi=Object.prototype.hasOwnProperty,Wi={objectMaxDepth:5},Gi=function(e){return k(e)?e.toLowerCase():e},Yi=function(e){return k(e)?e.toUpperCase():e},Ki=function(e){return k(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Xi=function(e){return k(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Gi=Ki,Yi=Xi);var Zi,Ji,Qi,er,tr=[].slice,nr=[].splice,ir=[].push,rr=Object.prototype.toString,ar=Object.getPrototypeOf,or=t("ng"),sr=e.angular||(e.angular={}),lr=0;Zi=e.document.documentMode;var ur=Number.isNaN||function(e){return e!==e};g.$inject=[],m.$inject=[];var cr=Array.isArray,pr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,dr=function(e){return k(e)?e.trim():e},fr=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},hr=function(){if(!y(hr.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");hr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else hr.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return hr.rules},gr=function(){if(y(gr.name_))return gr.name_;var t,n,i,r,a=vr.length;for(n=0;n<a;++n)if(i=vr[n],t=e.document.querySelector("["+i.replace(":","\\:")+"jq]")){r=t.getAttribute(i+"jq");break}return gr.name_=r},mr=/:/g,vr=["ng-","data-ng-","ng:","x-ng-"],$r=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var i=n.attributes;return[i.getNamedItem("src"),i.getNamedItem("href"),i.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),br=/[A-Z]/g,yr=!1,wr=1,xr=3,kr=8,Cr=9,Dr=11,Sr={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};Ie.expando="ng339";var Mr=Ie.cache={},Er=1;Ie._data=function(e){return this.cache[e[this.expando]]||{}};var Or=/-([a-z])/g,Ar=/^-ms-/,Tr={mouseleave:"mouseout",mouseenter:"mouseover"},Pr=t("jqLite"),Ir=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_r=/<|&#?\w+;/,Ur=/<([\w:-]+)/,Nr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Fr={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,"",""]};Fr.optgroup=Fr.option,Fr.tbody=Fr.tfoot=Fr.colgroup=Fr.caption=Fr.thead,Fr.th=Fr.td;var Vr=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Rr=Ie.prototype={ready:Ke,toString:function(){var e=[];return a(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Ji(e>=0?this[e]:this[this.length+e])},length:0,push:ir,sort:[].sort,splice:[].splice},jr={};a("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){jr[Gi(e)]=e});var Lr={};a("input,select,option,textarea,button,form,details".split(","),function(e){Lr[e]=!0});var Hr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};a({data:Re,removeData:Fe,hasData:Oe,cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Fe(e[t])}},function(e,t){Ie[t]=e}),a({data:Re,inheritedData:Be,scope:function(e){return Ji.data(e,"$scope")||Be(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Ji.data(e,"$isolateScope")||Ji.data(e,"$isolateScopeNoTemplate")},controller:qe,injector:function(e){return Be(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:je,css:function(e,t,n){if(t=Ce(t),!y(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var i,r=e.nodeType;if(r!==xr&&2!==r&&r!==kr&&e.getAttribute){var a=Gi(t),o=jr[a];if(!y(n))return i=e.getAttribute(t),o&&null!==i&&(i=a),null===i?void 0:i;null===n||!1===n&&o?e.removeAttribute(t):e.setAttribute(t,o?a:n)}},prop:function(e,t,n){if(!y(n))return e[t];e[t]=n},text:function(){function e(e,t){if(b(t)){var n=e.nodeType;return n===wr||n===xr?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(b(t)){if(e.multiple&&"select"===R(e)){var n=[];return a(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(b(t))return e.innerHTML;Ue(e,!0),e.innerHTML=t},empty:We},function(e,t){Ie.prototype[t]=function(t,n){var i,r,a=this.length;if(e!==We&&b(2===e.length&&e!==je&&e!==qe?t:n)){if(w(t)){for(i=0;i<a;i++)if(e===Re)e(this[i],t);else for(r in t)e(this[i],r,t[r]);return this}for(var o=e.$dv,s=b(o)?Math.min(a,1):a,l=0;l<s;l++){var u=e(this[l],t,n);o=o?o+u:u}return o}for(i=0;i<a;i++)e(this[i],t,n);return this}}),a({removeData:Fe,on:function(e,t,n,i){if(y(i))throw Pr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Ee(e)){var r=Ve(e,!0),a=r.events,o=r.handle;o||(o=r.handle=Je(e,a));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],l=s.length,u=function(t,i,r){var s=a[t];s||(s=a[t]=[],s.specialHandlerWrapper=i,"$destroy"===t||r||e.addEventListener(t,o)),s.push(n)};l--;)t=s[l],Tr[t]?(u(Tr[t],et),u(t,void 0,!0)):u(t)}},off:Ne,one:function(e,t,n){e=Ji(e),e.on(t,function i(){e.off(t,n),e.off(t,i)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;Ue(e),a(new Ie(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return a(e.childNodes,function(e){e.nodeType===wr&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===wr||n===Dr){t=new Ie(t);for(var i=0,r=t.length;i<r;i++){var a=t[i];e.appendChild(a)}}},prepend:function(e,t){if(e.nodeType===wr){var n=e.firstChild;a(new Ie(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Pe(e,Ji(t).eq(0).clone()[0])},remove:Ge,detach:function(e){Ge(e,!0)},after:function(e,t){var n=e,i=e.parentNode;if(i){t=new Ie(t);for(var r=0,a=t.length;r<a;r++){var o=t[r];i.insertBefore(o,n.nextSibling),n=o}}},addClass:He,removeClass:Le,toggleClass:function(e,t,n){t&&a(t.split(" "),function(t){var i=n;b(i)&&(i=!je(e,t)),(i?He:Le)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Dr?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:_e,triggerHandler:function(e,t,n){var i,r,o,s=t.type||t,l=Ve(e),u=l&&l.events,c=u&&u[s];c&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:g,type:s,target:e},t.type&&(i=p(i,t)),r=ye(c),o=n?[i].concat(n):[i],a(r,function(t){i.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(e,t){Ie.prototype[t]=function(t,n,i){for(var r,a=0,o=this.length;a<o;a++)b(r)?(r=e(this[a],t,n,i),y(r)&&(r=Ji(r))):ze(r,e(this[a],t,n,i));return y(r)?r:this}}),Ie.prototype.bind=Ie.prototype.on,Ie.prototype.unbind=Ie.prototype.off;var zr=Object.create(null);it.prototype={_idx:function(e){return e===this._lastKey?this._lastIndex:(this._lastKey=e,this._lastIndex=this._keys.indexOf(e),this._lastIndex)},_transformKey:function(e){return ur(e)?zr:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var qr=it,Br=[function(){this.$get=[function(){return qr}]}],Wr=/^([^(]+?)=>/,Gr=/^[^(]*\(\s*([^)]*)\)/m,Yr=/,/,Kr=/^\s*(_?)(\S+?)\1\s*$/,Xr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Zr=t("$injector");lt.$$annotate=st;var Jr=t("$animate"),Qr=1,ea=function(){this.$get=g},ta=function(){var e=new qr,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function r(e,t,n){var i=!1;return t&&(t=k(t)?t.split(" "):cr(t)?t:[],a(t,function(t){t&&(i=!0,e[t]=n)})),i}function o(){a(t,function(t){var n=e.get(t);if(n){var i=dt(t.attr("class")),r="",o="";a(n,function(e,t){e!==!!i[t]&&(e?r+=(r.length?" ":"")+t:o+=(o.length?" ":"")+t)}),a(t,function(e){r&&He(e,r),o&&Le(e,o)}),e.delete(t)}}),t.length=0}function s(n,a,s){var l=e.get(n)||{},u=r(l,a,!0),c=r(l,s,!1);(u||c)&&(e.set(n,l),t.push(n),1===t.length&&i.$$postDigest(o))}return{enabled:g,on:g,off:g,pin:g,push:function(e,t,i,r){r&&r(),i=i||{},i.from&&e.css(i.from),i.to&&e.css(i.to),(i.addClass||i.removeClass)&&s(e,i.addClass,i.removeClass);var a=new n;return a.complete(),a}}}]},na=["$provide",function(e){var t=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw Jr("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var r=n+"-animation";t.$$registeredAnimations[n.substr(1)]=r,e.factory(r,i)},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Jr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var i=pt(n);!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,i,r,a){return i=i&&Ji(i),r=r&&Ji(r),i=i||r.parent(),t(n,i,r),e.push(n,"enter",ft(a))},move:function(n,i,r,a){return i=i&&Ji(i),r=r&&Ji(r),i=i||r.parent(),t(n,i,r),e.push(n,"move",ft(a))},leave:function(t,n){return e.push(t,"leave",ft(n),function(){t.remove()})},addClass:function(t,n,i){return i=ft(i),i.addClass=ct(i.addclass,n),e.push(t,"addClass",i)},removeClass:function(t,n,i){return i=ft(i),i.removeClass=ct(i.removeClass,n),e.push(t,"removeClass",i)},setClass:function(t,n,i,r){return r=ft(r),r.addClass=ct(r.addClass,n),r.removeClass=ct(r.removeClass,i),e.push(t,"setClass",r)},animate:function(t,n,i,r,a){return a=ft(a),a.from=a.from?p(a.from,n):n,a.to=a.to?p(a.to,i):i,r=r||"ng-inline-animate",a.tempClasses=ct(a.tempClasses,r),e.push(t,"animate",a)}}}]}],ia=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},ra=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,i,r){function o(e){this.setHost(e);var t=n(),a=function(e){r(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){i()?a(e):t(e)},this._state=0}return o.chain=function(e,t){function n(){if(i===e.length)return void t(!0);e[i](function(e){if(!1===e)return void t(!1);i++,n()})}var i=0;n()},o.all=function(e,t){function n(n){r=r&&n,++i===e.length&&t(r)}var i=0,r=!0;a(e,function(e){e.done(n)})},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:g,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(a(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},o}]},aa=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,i){function r(){return e(function(){a(),s||l.complete(),s=!0}),l}function a(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null)}var o=i||{};o.$$prepared||(o=H(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var s,l=new n;return{start:r,end:r}}}]},oa=t("$compile"),sa=new $t;bt.$inject=["$provide","$$sanitizeUriProvider"],yt.prototype.isFirstChange=function(){return this.previousValue===sa};var la=/^((?:x|data)[:\-_])/i,ua=/[:\-_]+(.)/g,ca=t("$controller"),pa=/^(\S+)(\s+as\s+([\w$]+))?$/,da=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Ji&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},fa="application/json",ha={"Content-Type":fa+";charset=utf-8"},ga=/^\[|^\{(?!\{)/,ma={"[":/]$/,"{":/}$/},va=/^\)]\}',?\n/,$a=t("$http"),ba=sr.$interpolateMinErr=t("$interpolate");ba.throwNoconcat=function(e){throw ba("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",e)},ba.interr=function(e,t){return ba("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var ya=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=sr.callbacks,n={};return{createCallback:function(i){var r="_"+(t.$$counter++).toString(36),a="angular.callbacks."+r,o=e(r);return n[a]=t[r]=o,a},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var i=n[e];delete t[i.id],delete n[e]}}}},wa=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,xa={http:80,https:443,ftp:21},ka=t("$location"),Ca=/^\s*[\\/]{2,}/,Da={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:nn("$$absUrl"),url:function(e){if(b(e))return this.$$url;var t=wa.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:nn("$$protocol"),host:nn("$$host"),port:nn("$$port"),path:rn("$$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(k(e)||C(e))e=e.toString(),this.$$search=ne(e);else{if(!w(e))throw ka("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=H(e,{}),a(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:b(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:rn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};a([tn,en,Qt],function(e){e.prototype=Object.create(Da),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Qt||!this.$$html5)throw ka("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=b(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Sa=t("$parse"),Ma={}.constructor.prototype.valueOf,Ea=ve();a("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Ea[e]=!0});var Oa={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Aa=function(e){this.options=e};Aa.prototype={constructor:Aa,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.isIdentifierStart(this.peekMultichar()))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(),i=n+this.peek(2),r=Ea[t],a=Ea[n],o=Ea[i];if(r||a||o){var s=o?i:a?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},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),i=t.charCodeAt(0);return n>=55296&&n<=56319&&i>=56320&&i<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var i=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Sa("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,i,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Gi(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))e+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"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(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}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="",i=e,r=!1;this.index<this.text.length;){var a=this.text.charAt(this.index);if(i+=a,r){if("u"===a){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{n+=Oa[a]||a}r=!1}else if("\\"===a)r=!0;else{if(a===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",t)}};var Ta=function(e,t){this.lexer=e,this.options=t};Ta.Program="Program",Ta.ExpressionStatement="ExpressionStatement",Ta.AssignmentExpression="AssignmentExpression",Ta.ConditionalExpression="ConditionalExpression",Ta.LogicalExpression="LogicalExpression",Ta.BinaryExpression="BinaryExpression",Ta.UnaryExpression="UnaryExpression",Ta.CallExpression="CallExpression",Ta.MemberExpression="MemberExpression",Ta.Identifier="Identifier",Ta.Literal="Literal",Ta.ArrayExpression="ArrayExpression",Ta.Property="Property",Ta.ObjectExpression="ObjectExpression",Ta.ThisExpression="ThisExpression",Ta.LocalsExpression="LocalsExpression",Ta.NGValueParameter="NGValueParameter",Ta.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Ta.Program,body:e}},expressionStatement:function(){return{type:Ta.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!fn(e))throw Sa("lval","Trying to assign a value to a non l-value");e={type:Ta.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Ta.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ta.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ta.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ta.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=H(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Ta.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Ta.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ta.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ta.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ta.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Ta.Identifier,name:e.text}},constant:function(){return{type:Ta.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Ta.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ta.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ta.ObjectExpression,properties:t}},throwError:function(e,t){throw Sa("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Sa("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Sa("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,i){return this.peekAhead(0,e,t,n,i)},peekAhead:function(e,t,n,i,r){if(this.tokens.length>e){var a=this.tokens[e],o=a.text;if(o===t||o===n||o===i||o===r||!t&&!n&&!i&&!r)return a}return!1},expect:function(e,t,n,i){var r=this.peek(e,t,n,i);return!!r&&(this.tokens.shift(),r)},selfReferential:{this:{type:Ta.ThisExpression},$locals:{type:Ta.LocalsExpression}}},vn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},pn(e,t.$filter);var n,i="";if(this.stage="assign",n=hn(e)){this.state.computing="assign";var r=this.nextId();this.recurse(n,r),this.return_(r),i="fn.assign="+this.generateFunction("assign","s,v,l")}var o=dn(e.body);t.stage="inputs",a(o,function(e,n){var i="fn"+n;t.state[i]={vars:[],body:[],own:{}},t.state.computing=i;var r=t.nextId();t.recurse(e,r),t.return_(r),t.state.inputs.push(i),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",l=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,sn,ln,un);return this.state=this.stage=void 0,l},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return a(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return a(this.state.filters,function(n,i){e.push(n+"=$filter("+t.escape(i)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,r,o){var s,l,u,c,p,d=this
  ;if(i=i||g,!o&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,r,!0));switch(e.type){case Ta.Program:a(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){l=e}),n!==e.body.length-1?d.current().body.push(l,";"):d.return_(l)});break;case Ta.Literal:c=this.escape(e.value),this.assign(t,c),i(t||c);break;case Ta.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){l=e}),c=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,c),i(c);break;case Ta.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){l=e}),c="+"===e.operator?this.plus(s,l):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(l,0):"("+s+")"+e.operator+"("+l+")",this.assign(t,c),i(c);break;case Ta.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t);break;case Ta.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t);break;case Ta.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){r&&1!==r&&d.if_(d.isNull(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),i(t);break;case Ta.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){e.computed?(l=d.nextId(),d.recurse(e.property,l),d.getStringValue(l),r&&1!==r&&d.if_(d.not(d.computedMember(s,l)),d.lazyAssign(d.computedMember(s,l),"{}")),c=d.computedMember(s,l),d.assign(t,c),n&&(n.computed=!0,n.name=l)):(r&&1!==r&&d.if_(d.isNull(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!r);break;case Ta.CallExpression:t=t||this.nextId(),e.filter?(l=d.filter(e.callee.name),u=[],a(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),u.push(t)}),c=l+"("+u.join(",")+")",d.assign(t,c),i(t)):(l=d.nextId(),s={},u=[],d.recurse(e.callee,l,s,function(){d.if_(d.notNull(l),function(){a(e.arguments,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){u.push(e)})}),c=s.name?d.member(s.context,s.name,s.computed)+"("+u.join(",")+")":l+"("+u.join(",")+")",d.assign(t,c)},function(){d.assign(t,"undefined")}),i(t)}));break;case Ta.AssignmentExpression:l=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,l),c=d.member(s.context,s.name,s.computed)+e.operator+l,d.assign(t,c),i(t||c)})},1);break;case Ta.ArrayExpression:u=[],a(e.elements,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){u.push(e)})}),c="["+u.join(",")+"]",this.assign(t,c),i(t||c);break;case Ta.ObjectExpression:u=[],p=!1,a(e.properties,function(e){e.computed&&(p=!0)}),p?(t=t||this.nextId(),this.assign(t,"{}"),a(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===Ta.Identifier?e.key.name:""+e.key.value,l=d.nextId(),d.recurse(e.value,l),d.assign(d.member(t,s,e.computed),l)})):(a(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){u.push(d.escape(t.key.type===Ta.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+u.join(",")+"}",this.assign(t,c)),i(t||c);break;case Ta.ThisExpression:this.assign(t,"s"),i(t||"s");break;case Ta.LocalsExpression:this.assign(t,"l"),i(t||"l");break;case Ta.NGValueParameter:this.assign(t,"v"),i(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var i=this.current().body;i.push("if(",e,"){"),t(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/;return n.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,i,r,a){var o=this;return function(){o.recurse(e,t,n,i,r,a)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(k(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(C(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Sa("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},$n.prototype={compile:function(e){var t=this;pn(e,t.$filter);var n,i;(n=hn(e))&&(i=this.recurse(n));var r,o=dn(e.body);o&&(r=[],a(o,function(e,n){var i=t.recurse(e);e.input=i,r.push(i),e.watchId=n}));var s=[];a(e.body,function(e){s.push(t.recurse(e.expression))});var l=0===e.body.length?g:1===e.body.length?s[0]:function(e,t){var n;return a(s,function(i){n=i(e,t)}),n};return i&&(l.assign=function(e,t,n){return i(e,n,t)}),r&&(l.inputs=r),l},recurse:function(e,t,n){var i,r,o,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ta.Literal:return this.value(e.value,t);case Ta.UnaryExpression:return r=this.recurse(e.argument),this["unary"+e.operator](r,t);case Ta.BinaryExpression:case Ta.LogicalExpression:return i=this.recurse(e.left),r=this.recurse(e.right),this["binary"+e.operator](i,r,t);case Ta.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ta.Identifier:return s.identifier(e.name,t,n);case Ta.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(r=e.property.name),e.computed&&(r=this.recurse(e.property)),e.computed?this.computedMember(i,r,t,n):this.nonComputedMember(i,r,t,n);case Ta.CallExpression:return o=[],a(e.arguments,function(e){o.push(s.recurse(e))}),e.filter&&(r=this.$filter(e.callee.name)),e.filter||(r=this.recurse(e.callee,!0)),e.filter?function(e,n,i,a){for(var s=[],l=0;l<o.length;++l)s.push(o[l](e,n,i,a));var u=r.apply(void 0,s,a);return t?{context:void 0,name:void 0,value:u}:u}:function(e,n,i,a){var s,l=r(e,n,i,a);if(null!=l.value){for(var u=[],c=0;c<o.length;++c)u.push(o[c](e,n,i,a));s=l.value.apply(l.context,u)}return t?{value:s}:s};case Ta.AssignmentExpression:return i=this.recurse(e.left,!0,1),r=this.recurse(e.right),function(e,n,a,o){var s=i(e,n,a,o),l=r(e,n,a,o);return s.context[s.name]=l,t?{value:l}:l};case Ta.ArrayExpression:return o=[],a(e.elements,function(e){o.push(s.recurse(e))}),function(e,n,i,r){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,i,r));return t?{value:a}:a};case Ta.ObjectExpression:return o=[],a(e.properties,function(e){e.computed?o.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):o.push({key:e.key.type===Ta.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,i,r){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,i,r)]=o[s].value(e,n,i,r):a[o[s].key]=o[s].value(e,n,i,r);return t?{value:a}:a};case Ta.ThisExpression:return function(e){return t?{value:e}:e};case Ta.LocalsExpression:return function(e,n){return t?{value:n}:n};case Ta.NGValueParameter:return function(e,n,i){return t?{value:i}:i}}},"unary+":function(e,t){return function(n,i,r,a){var o=e(n,i,r,a);return o=y(o)?+o:0,t?{value:o}:o}},"unary-":function(e,t){return function(n,i,r,a){var o=e(n,i,r,a);return o=y(o)?-o:-0,t?{value:o}:o}},"unary!":function(e,t){return function(n,i,r,a){var o=!e(n,i,r,a);return t?{value:o}:o}},"binary+":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o),l=t(i,r,a,o),u=un(s,l);return n?{value:u}:u}},"binary-":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o),l=t(i,r,a,o),u=(y(s)?s:0)-(y(l)?l:0);return n?{value:u}:u}},"binary*":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)*t(i,r,a,o);return n?{value:s}:s}},"binary/":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)/t(i,r,a,o);return n?{value:s}:s}},"binary%":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)%t(i,r,a,o);return n?{value:s}:s}},"binary===":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)===t(i,r,a,o);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)!==t(i,r,a,o);return n?{value:s}:s}},"binary==":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)==t(i,r,a,o);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)!=t(i,r,a,o);return n?{value:s}:s}},"binary<":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)<t(i,r,a,o);return n?{value:s}:s}},"binary>":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)>t(i,r,a,o);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)<=t(i,r,a,o);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)>=t(i,r,a,o);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)&&t(i,r,a,o);return n?{value:s}:s}},"binary||":function(e,t,n){return function(i,r,a,o){var s=e(i,r,a,o)||t(i,r,a,o);return n?{value:s}:s}},"ternary?:":function(e,t,n,i){return function(r,a,o,s){var l=e(r,a,o,s)?t(r,a,o,s):n(r,a,o,s);return i?{value:l}:l}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(i,r,a,o){var s=r&&e in r?r:i;n&&1!==n&&s&&null==s[e]&&(s[e]={});var l=s?s[e]:void 0;return t?{context:s,name:e,value:l}:l}},computedMember:function(e,t,n,i){return function(r,a,o,s){var l,u,c=e(r,a,o,s);return null!=c&&(l=t(r,a,o,s),l=sn(l),i&&1!==i&&c&&!c[l]&&(c[l]={}),u=c[l]),n?{context:c,name:l,value:u}:u}},nonComputedMember:function(e,t,n,i){return function(r,a,o,s){var l=e(r,a,o,s);i&&1!==i&&l&&null==l[t]&&(l[t]={});var u=null!=l?l[t]:void 0;return n?{context:l,name:t,value:u}:u}},inputs:function(e,t){return function(n,i,r,a){return a?a[t]:e(n,i,r)}}},bn.prototype={constructor:bn,parse:function(e){var t=this.ast.ast(e),n=this.astCompiler.compile(t);return n.literal=gn(t),n.constant=mn(t),n}};var Pa=t("$sce"),Ia={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},_a=/_([a-z])/g,Ua=t("$compile"),Na=e.document.createElement("a"),Fa=Fn(e.location.href);jn.$inject=["$document"],Hn.$inject=["$provide"];var Va=22,Ra=".",ja="0";Gn.$inject=["$locale"],Yn.$inject=["$locale"];var La={yyyy:Qn("FullYear",4,0,!1,!0),yy:Qn("FullYear",2,0,!0,!0),y:Qn("FullYear",1,0,!1,!0),MMMM:ei("Month"),MMM:ei("Month",!0),MM:Qn("Month",2,1),M:Qn("Month",1,1),LLLL:ei("Month",!1,!0),dd:Qn("Date",2),d:Qn("Date",1),HH:Qn("Hours",2),H:Qn("Hours",1),hh:Qn("Hours",2,-12),h:Qn("Hours",1,-12),mm:Qn("Minutes",2),m:Qn("Minutes",1),ss:Qn("Seconds",2),s:Qn("Seconds",1),sss:Qn("Milliseconds",3),EEEE:ei("Day"),EEE:ei("Day",!0),a:ai,Z:ti,ww:ri(2),w:ri(1),G:oi,GG:oi,GGG:oi,GGGG:si},Ha=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,za=/^-?\d+$/;li.$inject=["$locale"];var qa=v(Gi),Ba=v(Yi);di.$inject=["$parse"];var Wa=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===rr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Ga={};a(jr,function(e,t){function n(e,n,r){e.$watch(r[i],function(e){r.$set(t,!!e)})}if("multiple"!==e){var i=wt("ng-"+t),r=n;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[i]&&n(e,t,r)}),Ga[i]=function(){return{restrict:"A",priority:100,link:r}}}}),a(Hr,function(e,t){Ga[t]=function(){return{priority:100,link:function(e,n,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){var r=i.ngPattern.match(/^\/(.+)\/([a-z]*)$/);if(r)return void i.$set("ngPattern",new RegExp(r[1],r[2]))}e.$watch(i[t],function(e){i.$set(t,e)})}}}}),a(["src","srcset","href"],function(e){var t=wt("ng-"+e);Ga[t]=function(){return{priority:99,link:function(n,i,r){var a=e,o=e;"href"===e&&"[object SVGAnimatedString]"===rr.call(i.prop("href"))&&(o="xlinkHref",r.$attr[o]="xlink:href",a=null),r.$observe(t,function(t){if(!t)return void("href"===e&&r.$set(o,null));r.$set(o,t),Zi&&a&&i.prop(a,r[o])})}}}});var Ya={$addControl:g,$$renameControl:hi,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},Ka="ng-pending";gi.$inject=["$element","$attrs","$scope","$animate","$interpolate"],gi.prototype={$rollbackViewValue:function(){a(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){a(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){he(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],a(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),a(this.$error,function(t,n){this.$setValidity(n,null,e)},this),a(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),L(this.$$controls,e),e.$$parentForm=Ya},$setDirty:function(){this.$$animate.removeClass(this.$$element,To),this.$$animate.addClass(this.$$element,Po),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,To,Po+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,a(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){a(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},vi({clazz:gi,set:function(e,t,n){var i=e[t];if(i){-1===i.indexOf(n)&&i.push(n)}else e[t]=[n]},unset:function(e,t,n){var i=e[t];i&&(L(i,n),0===i.length&&delete e[t])}});var Xa=function(e){return["$timeout","$parse",function(t,n){function i(e){return""===e?n('this[""]').assign:n(e).assign||g}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:gi,compile:function(n,r){n.addClass(To).addClass(Oo);var a=r.name?"name":!(!e||!r.ngForm)&&"ngForm";return{pre:function(e,n,r,o){var s=o[0];if(!("action"in r)){var l=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",l),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",l)},0,!1)})}(o[1]||s.$$parentForm).$addControl(s);var u=a?i(s.$name):g;a&&(u(e,s),r.$observe(a,function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=i(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),u(e,void 0),p(s,Ya)})}}}}}]},Za=Xa(),Ja=Xa(!0),Qa=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,eo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,to=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,no=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,io=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ro=/^(\d{4,})-W(\d\d)$/,ao=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,oo="keydown wheel mousedown",so=ve();a("date,datetime-local,month,time,week".split(","),function(e){so[e]=!0});var lo={text:yi,date:Ci("date",/^(\d{4,})-(\d{2})-(\d{2})$/,ki(/^(\d{4,})-(\d{2})-(\d{2})$/,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Ci("datetimelocal",io,ki(io,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Ci("time",ao,ki(ao,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Ci("week",ro,xi,"yyyy-Www"),month:Ci("month",/^(\d{4,})-(\d\d)$/,ki(/^(\d{4,})-(\d\d)$/,["yyyy","MM"]),"yyyy-MM"),number:Ti,url:Ii,email:_i,radio:Ui,range:Pi,checkbox:Fi,hidden:g,button:g,submit:g,reset:g,file:g},uo=["$browser","$sniffer","$filter","$parse",function(e,t,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,a,o,s){s[0]&&(lo[Gi(o.type)]||lo.text)(r,a,o,s[0],t,e,n,i)}}}}],co=/^(true|false|\d+)$/,po=function(){function e(e,t,n){var i=y(n)?n:9===Zi?"":null;e.prop("value",i),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return co.test(n.ngValue)?function(t,n,i){e(n,i,t.$eval(i.ngValue))}:function(t,n,i){t.$watch(i.ngValue,function(t){e(n,i,t)})}}}},fo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,i){e.$$addBindingInfo(n,i.ngBind),n=n[0],t.$watch(i.ngBind,function(e){n.textContent=$e(e)})}}}}],ho=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,i,r){var a=e(i.attr(r.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],r.$observe("ngBindTemplate",function(e){i.textContent=b(e)?"":e})}}}}],go=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(i,r){var a=t(r.ngBindHtml),o=t(r.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(i),function(t,i,r){n.$$addBindingInfo(i,r.ngBindHtml),t.$watch(o,function(){var n=a(t);i.html(e.getTrustedHtml(n)||"")})}}}}],mo=v({restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),vo=Vi("",!0),$o=Vi("Odd",0),bo=Vi("Even",1),yo=fi({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),wo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],xo={},ko={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=wt("ng-"+e);xo[t]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,a){var o=n(a[t]);return function(t,n){n.on(e,function(n){var r=function(){o(t,{$event:n})};ko[e]&&i.$$phase?t.$evalAsync(r):t.$apply(r)})}}}}]});var Co=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,a,o){var s,l,u;n.$watch(r.ngIf,function(n){n?l||o(function(n,a){l=a,n[n.length++]=t.$$createComment("end ngIf",r.ngIf),s={clone:n},e.enter(n,i.parent(),i)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=me(s.clone),e.leave(u).done(function(e){!1!==e&&(u=null)}),s=null))})}}}],Do=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:sr.noop,compile:function(i,r){var a=r.ngInclude||r.src,o=r.onload||"",s=r.autoscroll;return function(i,r,l,u,c){var p,d,f,h=0,g=function(){d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),f&&(n.leave(f).done(function(e){!1!==e&&(d=null)}),d=f,f=null)};i.$watch(a,function(a){var l=function(e){!1===e||!y(s)||s&&!i.$eval(s)||t()},d=++h;a?(e(a,!0).then(function(e){if(!i.$$destroyed&&d===h){var t=i.$new();u.template=e;var s=c(t,function(e){g(),n.enter(e,null,r).done(l)});p=t,f=s,p.$emit("$includeContentLoaded",a),i.$eval(o)}},function(){i.$$destroyed||d===h&&(g(),i.$emit("$includeContentError",a))}),i.$emit("$includeContentRequested",a)):(g(),u.template=null)})}}}}],So=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,a){if(rr.call(i[0]).match(/SVG/))return i.empty(),void t(Ae(a.template,e.document).childNodes)(n,function(e){i.append(e)},{futureParentElement:i});i.html(a.template),t(i.contents())(n)}}}],Mo=fi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Eo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var r=n.ngList||", ",o="false"!==n.ngTrim,s=o?dr(r):r,l=function(e){if(!b(e)){var t=[];return e&&a(e.split(s),function(e){e&&t.push(o?dr(e):e)}),t}};i.$parsers.push(l),i.$formatters.push(function(e){if(cr(e))return e.join(r)}),i.$isEmpty=function(e){return!e||!e.length}}}},Oo="ng-valid",Ao="ng-invalid",To="ng-pristine",Po="ng-dirty",Io=t("ngModel");Ri.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Ri.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return S(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){S(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Io("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ee(this.$$element))},$render:g,$isEmpty:function(e){return b(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Po),this.$$animate.addClass(this.$$element,To)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,To),this.$$animate.addClass(this.$$element,Po),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ur(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),a=this;this.$$runValidators(t,e,function(e){r||n===e||(a.$modelValue=e?t:void 0,a.$modelValue!==i&&a.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function i(e,t){o===s.$$currentValidationRunId&&s.$setValidity(e,t)}function r(e){o===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var o=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName||"parse";return b(s.$$parserValid)?(i(e,null),!0):(s.$$parserValid||(a(s.$validators,function(e,t){i(t,null)}),a(s.$asyncValidators,function(e,t){i(t,null)})),i(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return a(s.$validators,function(r,a){var o=Boolean(r(e,t));n=n&&o,i(a,o)}),!!n||(a(s.$asyncValidators,function(e,t){i(t,null)}),!1)}()?void function(){var n=[],o=!0;a(s.$asyncValidators,function(r,a){var s=r(e,t);if(!_(s))throw Io("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);i(a,void 0),n.push(s.then(function(){i(a,!0)},function(){o=!1,i(a,!1)}))}),n.length?s.$$q.all(n).then(function(){r(o)},g):r(!0)}():void r(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){i.$modelValue!==a&&i.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,i=this;if(this.$$parserValid=!b(n)||void 0,this.$$parserValid)for(var r=0;r<this.$parsers.length;r++)if(n=this.$parsers[r](n),b(n)){this.$$parserValid=!1;break}ur(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var a=this.$modelValue,o=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,o&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){o||(i.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),a(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");C(t[e])?t=t[e]:C(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},vi({clazz:Ri,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var _o,Uo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ri,priority:1,compile:function(t){return t.addClass(To).addClass("ng-untouched").addClass(Oo),{pre:function(e,t,n,i){var r=i[0],a=i[1]||r.$$parentForm,o=i[2];o&&(r.$options=o.$options),r.$$initGetterSetters(),a.$addControl(r),n.$observe("name",function(e){r.$name!==e&&r.$$parentForm.$$renameControl(r,e)}),e.$on("$destroy",function(){r.$$parentForm.$removeControl(r)})},post:function(t,n,i,r){function a(){o.$setTouched()}var o=r[0];o.$options.getOption("updateOn")&&n.on(o.$options.getOption("updateOn"),function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(a):t.$apply(a))})}}}}}];Li.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=p({},e),a(e,function(n,i){"$inherit"===n?"*"===i?t=!0:(e[i]=this.$$options[i],"updateOn"===i&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===i&&(e.updateOnDefault=!1,e[i]=dr(n.replace(/(\s+|^)default(\s+|$)/,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Hi(e,this.$$options)),Hi(e,_o.$$options),new Li(e)}},_o=new Li({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var No=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:_o,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Fo=fi({terminal:!0,priority:1e3}),Vo=t("ngOptions"),Ro=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,jo=["$compile","$document","$parse",function(t,n,i){function o(e,t,n){function a(e,t,n,i,r){this.selectValue=e,this.viewValue=t,this.label=n,this.group=i,this.disabled=r}function o(e){var t;if(!u&&r(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(Ro);if(!s)throw Vo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ee(t));var l=s[5]||s[7],u=s[6],c=/ as /.test(s[0])&&s[1],p=s[9],d=i(s[2]?s[1]:l),f=c&&i(c),h=f||d,g=p&&i(p),m=p?function(e,t){return g(n,t)}:function(e){return nt(e)},v=function(e,t){return m(e,k(e,t))},$=i(s[2]||s[1]),b=i(s[3]||""),y=i(s[4]||""),w=i(s[8]),x={},k=u?function(e,t){return x[u]=t,x[l]=e,x}:function(e){return x[l]=e,x};return{trackBy:p,getTrackByValue:v,getWatchables:i(w,function(e){var t=[];e=e||[];for(var i=o(e),r=i.length,a=0;a<r;a++){var l=e===i?a:i[a],u=e[l],c=k(u,l),p=m(u,c);if(t.push(p),s[2]||s[1]){var d=$(n,c);t.push(d)}if(s[4]){var f=y(n,c);t.push(f)}}return t}),getOptions:function(){for(var e=[],t={},i=w(n)||[],r=o(i),s=r.length,l=0;l<s;l++){var u=i===r?l:r[l],c=i[u],d=k(c,u),f=h(n,d),g=m(f,d),x=$(n,d),C=b(n,d),D=y(n,d),S=new a(g,f,x,C,D);e.push(S),t[g]=S}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return p?H(e.viewValue):e.viewValue}}}}}function s(e,i,r,s){function c(e,t){var n=l.cloneNode(!1);t.appendChild(n),d(e,n)}function p(e){var t=x.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function d(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function f(){var e=x&&h.readValue();if(x)for(var t=x.items.length-1;t>=0;t--){var n=x.items[t];Ge(y(n.group)?n.element.parentNode:n.element)}x=k.getOptions();var r={};if(w&&i.prepend(h.emptyOption),x.items.forEach(function(e){var t;y(e.group)?(t=r[e.group],t||(t=u.cloneNode(!1),C.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),c(e,t)):c(e,C)}),i[0].appendChild(C),g.$render(),!g.$isEmpty(e)){var a=h.readValue();(k.trackBy||m?q(e,a):e===a)||(g.$setViewValue(a),g.$render())}}for(var h=s[0],g=s[1],m=r.multiple,v=0,$=i.children(),b=$.length;v<b;v++)if(""===$[v].value){h.hasEmptyOption=!0,h.emptyOption=$.eq(v);break}var w=!!h.emptyOption;Ji(l.cloneNode(!1)).val("?");var x,k=o(r.ngOptions,i,e),C=n[0].createDocumentFragment();h.generateUnknownOptionValue=function(e){return"?"},m?(h.writeValue=function(e){var t=e&&e.map(p)||[];x.items.forEach(function(e){e.element.selected&&!j(t,e)&&(e.element.selected=!1)})},h.readValue=function(){var e=i.val()||[],t=[];return a(e,function(e){var n=x.selectValueMap[e];n&&!n.disabled&&t.push(x.getViewValueFromOption(n))}),t},k.trackBy&&e.$watchCollection(function(){if(cr(g.$viewValue))return g.$viewValue.map(function(e){return k.getTrackByValue(e)})},function(){g.$render()})):(h.writeValue=function(e){var t=x.selectValueMap[i.val()],n=x.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),n?(i[0].value!==n.selectValue&&(h.removeUnknownOption(),h.unselectEmptyOption(),i[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):w?h.selectEmptyOption():h.unknownOption.parent().length?h.updateUnknownOption(e):h.renderUnknownOption(e)},h.readValue=function(){var e=x.selectValueMap[i.val()];return e&&!e.disabled?(h.unselectEmptyOption(),h.removeUnknownOption(),x.getViewValueFromOption(e)):null},k.trackBy&&e.$watch(function(){return k.getTrackByValue(g.$viewValue)},function(){g.$render()})),w&&(h.emptyOption.remove(),t(h.emptyOption)(e),h.emptyOption[0].nodeType===kr?(h.hasEmptyOption=!1,h.registerOption=function(e,t){""===t.val()&&(h.hasEmptyOption=!0,h.emptyOption=t,h.emptyOption.removeClass("ng-scope"),g.$render(),t.on("$destroy",function(){h.hasEmptyOption=!1,h.emptyOption=void 0}))}):h.emptyOption.removeClass("ng-scope")),i.empty(),f(),e.$watchCollection(k.getWatchables,f)}
  var l=e.document.createElement("option"),u=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,i){i[0].registerOption=g},post:s}}}],Lo=["$locale","$interpolate","$log",function(e,t,n){var i=/^when(Minus)?(.+)$/;return{link:function(r,o,s){function l(e){o.text(e||"")}var u,c=s.count,p=s.$attr.when&&o.attr(s.$attr.when),d=s.offset||0,f=r.$eval(p)||{},h={},m=t.startSymbol(),v=t.endSymbol(),$=m+c+"-"+d+v,y=sr.noop;a(s,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+Gi(n[2]);f[r]=o.attr(s.$attr[t])}}),a(f,function(e,n){h[n]=t(e.replace(/{}/g,$))}),r.$watch(c,function(t){var i=parseFloat(t),a=ur(i);if(a||i in f||(i=e.pluralCat(i-d)),!(i===u||a&&ur(u))){y();var o=h[i];b(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+p),y=g,l()):y=r.$watch(o,l),u=i}})}}}],Ho=["$parse","$animate","$compile",function(e,n,i){var o=t("ngRepeat"),s=function(e,t,n,i,r,a,o){e[n]=i,r&&(e[r]=a),e.$index=t,e.$first=0===t,e.$last=t===o-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},l=function(e){return e.clone[0]},u=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,c){var p=c.ngRepeat,d=i.$$createComment("end ngRepeat",p),f=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!f)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var h=f[1],g=f[2],m=f[3],v=f[4];if(!(f=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var $=f[3]||f[1],b=f[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var y,w,x,k,C={$id:nt};return v?y=e(v):(x=function(e,t){return nt(t)},k=function(e){return e}),function(e,t,i,c,f){y&&(w=function(t,n,i){return b&&(C[b]=t),C[$]=n,C.$index=i,y(e,C)});var h=ve();e.$watchCollection(g,function(i){var c,g,v,y,C,D,S,M,E,O,A,T,P=t[0],I=ve();if(m&&(e[m]=i),r(i))E=i,M=w||x;else{M=w||k,E=[];for(var _ in i)Bi.call(i,_)&&"$"!==_.charAt(0)&&E.push(_)}for(y=E.length,A=new Array(y),c=0;c<y;c++)if(C=i===E?c:E[c],D=i[C],S=M(C,D,c),h[S])O=h[S],delete h[S],I[S]=O,A[c]=O;else{if(I[S])throw a(A,function(e){e&&e.scope&&(h[e.id]=e)}),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,S,D);A[c]={id:S,scope:void 0,clone:void 0},I[S]=!0}for(var U in h){if(O=h[U],T=me(O.clone),n.leave(T),T[0].parentNode)for(c=0,g=T.length;c<g;c++)T[c].$$NG_REMOVED=!0;O.scope.$destroy()}for(c=0;c<y;c++)if(C=i===E?c:E[c],D=i[C],O=A[c],O.scope){v=P;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);l(O)!==v&&n.move(me(O.clone),null,P),P=u(O),s(O.scope,c,$,D,b,C,y)}else f(function(e,t){O.scope=t;var i=d.cloneNode(!1);e[e.length++]=i,n.enter(e,null,P),P=i,O.clone=e,I[O.id]=O,s(O.scope,c,$,D,b,C,y)});h=I})}}}}],zo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],qo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Bo=fi(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&a(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Wo=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,o){var s=r.ngSwitch||r.on,l=[],u=[],c=[],p=[],d=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,function(n){for(var i,r;c.length;)e.cancel(c.pop());for(i=0,r=p.length;i<r;++i){var s=me(u[i].clone);p[i].$destroy();(c[i]=e.leave(s)).done(d(c,i))}u.length=0,p.length=0,(l=o.cases["!"+n]||o.cases["?"])&&a(l,function(n){n.transclude(function(i,r){p.push(r);var a=n.element;i[i.length++]=t.$$createComment("end ngSwitchWhen");var o={clone:i};u.push(o),e.enter(i,a.parent(),a)})})})}}}],Go=fi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){a(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){i.cases["!"+e]=i.cases["!"+e]||[],i.cases["!"+e].push({transclude:r,element:t})})}}),Yo=fi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:t})}}),Ko=t("ngTransclude"),Xo=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,i,r,a){function o(e,n){e.length&&l(e)?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}function l(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.nodeType!==xr||i.nodeValue.trim())return!0}}if(!a)throw Ko("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ee(t));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");var u=i.ngTransclude||i.ngTranscludeSlot;a(o,null,u),u&&!a.isSlotFilled(u)&&s()}}}}],Zo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var i=n.id,r=t[0].text;e.put(i,r)}}}}],Jo={$setViewValue:g,$render:g},Qo=["$element","$scope",function(t,n){function i(){s||(s=!0,n.$$postDigest(function(){s=!1,a.ngModelCtrl.$render()}))}function r(e){l||(l=!0,n.$$postDigest(function(){n.$$destroyed||(l=!1,a.ngModelCtrl.$setViewValue(a.readValue()),e&&a.ngModelCtrl.$render())}))}var a=this,o=new qr;a.selectValueMap={},a.ngModelCtrl=Jo,a.multiple=!1,a.unknownOption=Ji(e.document.createElement("option")),a.hasEmptyOption=!1,a.emptyOption=void 0,a.renderUnknownOption=function(e){var n=a.generateUnknownOptionValue(e);a.unknownOption.val(n),t.prepend(a.unknownOption),zi(a.unknownOption,!0),t.val(n)},a.updateUnknownOption=function(e){var n=a.generateUnknownOptionValue(e);a.unknownOption.val(n),zi(a.unknownOption,!0),t.val(n)},a.generateUnknownOptionValue=function(e){return"? "+nt(e)+" ?"},a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.selectEmptyOption=function(){a.emptyOption&&(t.val(""),zi(a.emptyOption,!0))},a.unselectEmptyOption=function(){a.hasEmptyOption&&a.emptyOption.removeAttr("selected")},n.$on("$destroy",function(){a.renderUnknownOption=g}),a.readValue=function(){var e=t.val(),n=e in a.selectValueMap?a.selectValueMap[e]:e;return a.hasOption(n)?n:null},a.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&zi(Ji(n),!1),a.hasOption(e)){a.removeUnknownOption();var i=nt(e);t.val(i in a.selectValueMap?i:e);var r=t[0].options[t[0].selectedIndex];zi(Ji(r),!0)}else null==e&&a.emptyOption?(a.removeUnknownOption(),a.selectEmptyOption()):a.unknownOption.parent().length?a.updateUnknownOption(e):a.renderUnknownOption(e)},a.addOption=function(e,t){if(t[0].nodeType!==kr){he(e,'"option value"'),""===e&&(a.hasEmptyOption=!0,a.emptyOption=t);var n=o.get(e)||0;o.set(e,n+1),i()}},a.removeOption=function(e){var t=o.get(e);t&&(1===t?(o.delete(e),""===e&&(a.hasEmptyOption=!1,a.emptyOption=void 0)):o.set(e,t-1))},a.hasOption=function(e){return!!o.get(e)};var s=!1,l=!1;a.registerOption=function(e,t,n,o,s){if(n.$attr.ngValue){var l,u=NaN;n.$observe("value",function(e){var n,i=t.prop("selected");y(u)&&(a.removeOption(l),delete a.selectValueMap[u],n=!0),u=nt(e),l=e,a.selectValueMap[u]=e,a.addOption(e,t),t.attr("value",u),n&&i&&r()})}else o?n.$observe("value",function(e){a.readValue();var n,i=t.prop("selected");y(l)&&(a.removeOption(l),n=!0),l=e,a.addOption(e,t),n&&i&&r()}):s?e.$watch(s,function(e,i){n.$set("value",e);var o=t.prop("selected");i!==e&&a.removeOption(i),a.addOption(e,t),i&&o&&r()}):a.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(a.multiple?r(!0):(a.ngModelCtrl.$setViewValue(null),a.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=a.readValue(),t=n.value;a.removeOption(t),i(),(a.multiple&&e&&-1!==e.indexOf(t)||e===t)&&r(!0)})}}],es=function(){function e(e,t,n,i){var r=i[0],o=i[1];if(!o)return void(r.registerOption=g);if(r.ngModelCtrl=o,t.on("change",function(){r.removeUnknownOption(),e.$apply(function(){o.$setViewValue(r.readValue())})}),n.multiple){r.multiple=!0,r.readValue=function(){var e=[];return a(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in r.selectValueMap?r.selectValueMap[n]:n)}}),e},r.writeValue=function(e){a(t.find("option"),function(t){var n=!!e&&(j(e,t.value)||j(e,r.selectValueMap[t.value]));n!==t.selected&&zi(Ji(t),n)})};var s,l=NaN;e.$watch(function(){l!==o.$viewValue||q(s,o.$viewValue)||(s=ye(o.$viewValue),o.$render()),l=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,i){var r=i[1];if(r){var a=i[0];r.$render=function(){a.writeValue(r.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Qo,priority:1,link:{pre:e,post:t}}},ts=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var i,r;return y(n.ngValue)||(y(n.value)?i=e(n.value,!0):(r=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var a=t.parent(),o=a.data("$selectController")||a.parent().data("$selectController");o&&o.registerOption(e,t,n,i,r)}}}}],ns=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){i&&(n.required=!0,i.$validators.required=function(e,t){return!n.required||!i.$isEmpty(t)},n.$observe("required",function(){i.$validate()}))}}},is=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var a,o=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(k(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,e,ee(n));a=e||void 0,r.$validate()}),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||b(a)||a.test(t)}}}}},rs=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=-1;n.$observe("maxlength",function(e){var t=f(e);r=ur(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(e,t){return r<0||i.$isEmpty(t)||t.length<=r}}}}},as=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=0;n.$observe("minlength",function(e){r=f(e)||0,i.$validate()}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=r}}}}};if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var t;if(!yr){var n=gr();Qi=b(n)?e.jQuery:n?e[n]:void 0,Qi&&Qi.fn.on?(Ji=Qi,p(Qi.fn,{scope:Rr.scope,isolateScope:Rr.isolateScope,controller:Rr.controller,injector:Rr.injector,inheritedData:Rr.inheritedData}),t=Qi.cleanData,Qi.cleanData=function(e){for(var n,i,r=0;null!=(i=e[r]);r++)(n=Qi._data(i,"events"))&&n.$destroy&&Qi(i).triggerHandler("$destroy");t(e)}):Ji=Ie,sr.element=Ji,yr=!0}}(),function(i){p(i,{errorHandlingConfig:n,bootstrap:le,copy:H,extend:p,merge:d,equals:q,element:Ji,forEach:a,injector:lt,noop:g,bind:G,toJson:K,fromJson:X,identity:m,isUndefined:b,isDefined:y,isString:k,isFunction:S,isObject:w,isNumber:C,isElement:F,isArray:cr,version:Sr,isDate:D,lowercase:Gi,uppercase:Yi,callbacks:{$$counter:0},getTestability:ce,reloadWithDebugInfo:ue,$$minErr:t,$$csp:hr,$$encodeUriSegment:re,$$encodeUriQuery:ae,$$stringify:$e}),er=be(e),er("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Mn}),e.provider("$compile",bt).directive({a:Wa,input:uo,textarea:uo,form:Za,script:Zo,select:es,option:ts,ngBind:fo,ngBindHtml:go,ngBindTemplate:ho,ngClass:vo,ngClassEven:bo,ngClassOdd:$o,ngCloak:yo,ngController:wo,ngForm:Ja,ngHide:qo,ngIf:Co,ngInclude:Do,ngInit:Mo,ngNonBindable:Fo,ngPluralize:Lo,ngRepeat:Ho,ngShow:zo,ngStyle:Bo,ngSwitch:Wo,ngSwitchWhen:Go,ngSwitchDefault:Yo,ngOptions:jo,ngTransclude:Xo,ngModel:Uo,ngList:Eo,ngChange:mo,pattern:is,ngPattern:is,required:ns,ngRequired:ns,minlength:as,ngMinlength:as,maxlength:rs,ngMaxlength:rs,ngValue:po,ngModelOptions:No}).directive({ngInclude:So}).directive(Ga).directive(xo),e.provider({$anchorScroll:ut,$animate:na,$animateCss:aa,$$animateJs:ea,$$animateQueue:ta,$$AnimateRunner:ra,$$animateAsyncRun:ia,$browser:gt,$cacheFactory:mt,$controller:Dt,$document:St,$$isDocumentHidden:Mt,$exceptionHandler:Et,$filter:Hn,$$forceReflow:da,$interpolate:Ht,$interval:zt,$http:Vt,$httpParamSerializer:At,$httpParamSerializerJQLike:Tt,$httpBackend:jt,$xhrFactory:Rt,$jsonpCallbacks:ya,$location:an,$log:on,$parse:wn,$rootScope:Sn,$q:xn,$$q:kn,$sce:Pn,$sceDelegate:Tn,$sniffer:In,$templateCache:vt,$templateRequest:_n,$$testability:Un,$timeout:Nn,$window:Rn,$$rAF:Dn,$$jqLite:tt,$$Map:Br,$$cookieReader:Ln})}]).info({angularVersion:"1.6.4"})}(sr),sr.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var i=n;void 0===i&&(i=Math.min(t(e),3));var r=Math.pow(10,i);return{v:i,f:(e*r|0)%r}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var r=0|e,a=n(e,t);return 1==r&&0==a.v?i.ONE:i.OTHER}})}]),Ji(function(){se(e.document,le)})}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.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;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t){"use strict";function n(e,t){if(l(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(u(e)){t=t||{};for(var r in e)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function i(){function e(e,n){return t.extend(Object.create(e),n)}function i(e,t){var n=t.caseInsensitiveMatch,i={originalPath:e,regexp:e},r=i.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,n,i){var a="?"===i||"*?"===i?"?":null,o="*"===i||"*?"===i?"*":null;return r.push({name:n,optional:!!a}),t=t||"",(a?"":t)+"(?:"+(a?t:"")+(o&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$*])/g,"\\$1"),i.regexp=new RegExp("^"+e+"$",n?"i":""),i}l=t.isArray,u=t.isObject,c=t.isDefined,p=t.noop;var r={};this.when=function(e,a){var o=n(a);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&i(e,o)),e){var s="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/";r[s]=t.extend({redirectTo:e},i(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},d=!0,this.eagerInstantiationEnabled=function(e){return c(e)?(d=e,this):d},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,i,a,o,s,l,u,c){function d(e,t){var n=t.keys,i={};if(!t.regexp)return null;var r=t.regexp.exec(e);if(!r)return null;for(var a=1,o=r.length;a<o;++a){var s=n[a-1],l=r[a];s&&l&&(i[s.name]=l)}return i}function f(e){var i=D.current;x=y(),(k=x&&i&&x.$$route===i.$$route&&t.equals(x.pathParams,i.pathParams)&&!x.reloadOnSearch&&!C)||!i&&!x||n.$broadcast("$routeChangeStart",x,i).defaultPrevented&&e&&e.preventDefault()}function g(){var e=D.current,i=x;if(k)e.params=i.params,t.copy(e.params,a),n.$broadcast("$routeUpdate",e);else if(i||e){C=!1,D.current=i;var r=o.resolve(i);c.$$incOutstandingRequestCount(),r.then(m).then(v).then(function(o){return o&&r.then($).then(function(r){i===D.current&&(i&&(i.locals=r,t.copy(i.params,a)),n.$broadcast("$routeChangeSuccess",i,e))})}).catch(function(t){i===D.current&&n.$broadcast("$routeChangeError",i,e,t)}).finally(function(){c.$$completeOutstandingRequest(p)})}}function m(e){var n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))n.path=w(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0;else{var r=i.path(),a=i.search(),l=e.redirectTo(e.pathParams,r,a);t.isDefined(l)&&(n.url=l,n.hasRedirection=!0)}else if(e.resolveRedirectTo)return o.resolve(s.invoke(e.resolveRedirectTo)).then(function(e){return t.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function v(e){var t=!0;if(e.route!==D.current)t=!1;else if(e.hasRedirection){var n=i.url(),r=e.url;r?i.url(r).replace():r=i.path(e.path).search(e.search).replace().url(),r!==n&&(t=!1)}return t}function $(e){if(e){var n=t.extend({},e.resolve);t.forEach(n,function(e,i){n[i]=t.isString(e)?s.get(e):s.invoke(e,null,null,i)});var i=b(e);return t.isDefined(i)&&(n.$template=i),o.all(n)}}function b(e){var n,i;return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(i=e.templateUrl)&&(t.isFunction(i)&&(i=i(e.params)),t.isDefined(i)&&(e.loadedTemplateUrl=u.valueOf(i),n=l(i))),n}function y(){var n,a;return t.forEach(r,function(r,o){!a&&(n=d(i.path(),r))&&(a=e(r,{params:t.extend({},i.search(),n),pathParams:n}),a.$$route=r)}),a||r[null]&&e(r[null],{params:{},pathParams:{}})}function w(e,n){var i=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)i.push(e);else{var r=e.match(/(\w+)(?:[?*])?(.*)/),a=r[1];i.push(n[a]),i.push(r[2]||""),delete n[a]}}),i.join("")}var x,k,C=!1,D={routes:r,reload:function(){C=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,C=!1}};n.$evalAsync(function(){f(e),e.defaultPrevented||g()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw h("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),i.path(w(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",f),n.$on("$locationChangeSuccess",g),D}]}function r(e){d&&e.get("$route")}function a(){this.$get=function(){return{}}}function o(e,n,i){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(r,a,o,s,l){function u(){f&&(i.cancel(f),f=null),p&&(p.$destroy(),p=null),d&&(f=i.leave(d),f.done(function(e){!1!==e&&(f=null)}),d=null)}function c(){var o=e.current&&e.current.locals,s=o&&o.$template;if(t.isDefined(s)){var c=r.$new(),f=e.current,m=l(c,function(e){i.enter(e,null,d||a).done(function(e){!1===e||!t.isDefined(h)||h&&!r.$eval(h)||n()}),u()});d=m,p=f.scope=c,p.$emit("$viewContentLoaded"),p.$eval(g)}else u()}var p,d,f,h=o.autoscroll,g=o.onload||"";r.$on("$routeChangeSuccess",c),c()}}}function s(e,t,n){return{restrict:"ECA",priority:-400,link:function(i,r){var a=n.current,o=a.locals;r.html(o.$template);var s=e(r.contents());if(a.controller){o.$scope=i;var l=t(a.controller,o);a.controllerAs&&(i[a.controllerAs]=l),r.data("$ngControllerController",l),r.children().data("$ngControllerController",l)}i[a.resolveAs||"$resolve"]=o,s(i)}}}var l,u,c,p,d,f=t.module("ngRoute",[]).info({angularVersion:"1.6.4"}).provider("$route",i).run(r),h=t.$$minErr("ngRoute");r.$inject=["$injector"],f.provider("$routeParams",a),f.directive("ngView",o),f.directive("ngView",s),o.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(e,t,n,i){var r=i.has("$animateCss")?i.get("$animateCss"):null;return{link:function(i,a,o){function s(e){return m?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function l(){a.hasClass("collapse")&&a.hasClass("in")||t.resolve(d(i)).then(function(){a.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),r?r(a,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:s(a[0])}).start().finally(u):e.addClass(a,"in",{css:{overflow:"hidden"},to:s(a[0])}).then(u)},angular.noop)}function u(){a.removeClass("collapsing").addClass("collapse").css(v),f(i)}function c(){if(!a.hasClass("collapse")&&!a.hasClass("in"))return p();t.resolve(h(i)).then(function(){a.css(s(a[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),r?r(a,{removeClass:"in",to:$}).start().finally(p):e.removeClass(a,"in",{to:$}).then(p)},angular.noop)}function p(){a.css($),a.removeClass("collapsing").addClass("collapse"),g(i)}var d=n(o.expanding),f=n(o.expanded),h=n(o.collapsing),g=n(o.collapsed),m=!1,v={},$={};!function(){m=!!("horizontal"in o),m?(v={width:""},$={width:"0"}):(v={height:""},$={height:"0"}),i.$eval(o.uibCollapse)||a.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(v)}(),i.$watch(o.uibCollapse,function(e){e?c():l()})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,n){n.$observe("disabled",function(e){n.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(i){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,function(e){e!==i&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(n){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,i){t.addClass("panel"),i.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass||"panel-default",e.$watch("isOpen",function(n){t.toggleClass(e.openClass,!!n),n&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var r="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=r+"-tab",e.panelId=r+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,i,r){i.setHeading(r(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,t,n,i){e.$watch(function(){return i[n.uibAccordionTransclude]},function(e){if(e){var n=angular.element(t[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));n.html(""),n.append(e)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,n,i,r){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var a=angular.isDefined(n.dismissOnTimeout)?i(n.dismissOnTimeout)(e.$parent):null;a&&r(function(){e.close()},parseInt(a,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,i,r){var a=r[0],o=r[1],s=e(i.uibUncheckable);n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(a.activeClass,angular.equals(o.$modelValue,t.$eval(i.uibBtnRadio)))},n.on(a.toggleEvent,function(){if(!i.disabled){var e=n.hasClass(a.activeClass);e&&!angular.isDefined(i.uncheckable)||t.$apply(function(){o.$setViewValue(e?null:t.$eval(i.uibBtnRadio)),o.$render()})}}),i.uibUncheckable&&t.$watch(s,function(e){i.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,i){function r(){return o(n.btnCheckboxTrue,!0)}function a(){return o(n.btnCheckboxFalse,!1)}function o(t,n){return angular.isDefined(t)?e.$eval(t):n}var s=i[0],l=i[1];t.find("input").css({display:"none"}),l.$render=function(){t.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},t.on(s.toggleEvent,function(){n.disabled||e.$apply(function(){l.$setViewValue(t.hasClass(s.activeClass)?a():r()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,i,r){function a(e){for(var t=0;t<g.length;t++)g[t].slide.active=t===e}function o(n,i,o){if(!$){if(angular.extend(n,{direction:o}),angular.extend(g[v].slide||{},{direction:o}),r.enabled(t)&&!e.$currentTransition&&g[i].element&&h.slides.length>1){g[i].element.data(m,n.direction);var s=h.getCurrentIndex();angular.isNumber(s)&&g[s].element&&g[s].element.data(m,n.direction),e.$currentTransition=!0,r.on("addClass",g[i].element,function(t,n){"close"===n&&(e.$currentTransition=null,r.off("addClass",t))})}e.active=n.index,v=n.index,a(i),c()}}function s(e){for(var t=0;t<g.length;t++)if(g[t].slide===e)return t}function l(){d&&(n.cancel(d),d=null)}function u(t){t.length||(e.$currentTransition=null)}function c(){l();var t=+e.interval;!isNaN(t)&&t>0&&(d=n(p,t))}function p(){var t=+e.interval;f&&!isNaN(t)&&t>0&&g.length?e.next():e.pause()}var d,f,h=this,g=h.slides=e.slides=[],m="uib-slideDirection",v=e.active,$=!1;t.addClass("carousel"),h.addSlide=function(t,n){g.push({slide:t,element:n}),g.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===g.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),v=t.index,e.active=t.index,a(v),h.select(g[s(t)]),1===g.length&&e.play())},h.getCurrentIndex=function(){for(var e=0;e<g.length;e++)if(g[e].slide.index===v)return e},h.next=e.next=function(){var t=(h.getCurrentIndex()+1)%g.length;return 0===t&&e.noWrap()?void e.pause():h.select(g[t],"next")},h.prev=e.prev=function(){var t=h.getCurrentIndex()-1<0?g.length-1:h.getCurrentIndex()-1;return e.noWrap()&&t===g.length-1?void e.pause():h.select(g[t],"prev")},h.removeSlide=function(t){var n=s(t);g.splice(n,1),g.length>0&&v===n?n>=g.length?(v=g.length-1,e.active=v,a(v),h.select(g[g.length-1])):(v=n,e.active=v,a(v),h.select(g[n])):v>n&&(v--,e.active=v),0===g.length&&(v=null,e.active=null)},h.select=e.select=function(t,n){var i=s(t.slide);void 0===n&&(n=i>h.getCurrentIndex()?"next":"prev"),t.slide.index===v||e.$currentTransition||o(t.slide,i,n)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===g.length-1&&e.noWrap()},e.pause=function(){e.noPause||(f=!1,l())},e.play=function(){f||(f=!0,c())},t.on("mouseenter",e.pause),t.on("mouseleave",e.play),e.$on("$destroy",function(){$=!0,l()}),e.$watch("noTransition",function(e){r.enabled(t,!e)}),e.$watch("interval",c),e.$watchCollection("slides",u),e.$watch("active",function(e){if(angular.isNumber(e)&&v!==e){for(var t=0;t<g.length;t++)if(g[t].slide.index===e){e=t;break}g[e]&&(a(e),h.select(g[e]),v=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(e){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,n,i,r){n.addClass("item"),r.addSlide(t,n),t.$on("$destroy",function(){r.removeSlide(t)}),t.$watch("active",function(t){e[t?"addClass":"removeClass"](n,"active")})}}}]).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(n,i,r){if("active"===i){
  var a=!1,o=n.data("uib-slideDirection"),s="next"===o?"left":"right",l=t.bind(this,n,s+" "+o,r);return n.addClass(o),e(n,{addClass:s}).start().done(l),function(){a=!0}}r()},beforeRemoveClass:function(n,i,r){if("active"===i){var a=!1,o=n.data("uib-slideDirection"),s="next"===o?"left":"right",l=t.bind(this,n,s,r);return e(n,{addClass:s}).start().done(l),function(){a=!0}}r()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(e,t,n,i,r){function a(e){return r($,{key:e},!0)[0]}function o(e){var t=[],n=e.split(""),r=e.indexOf("'");if(r>-1){var a=!1;e=e.split("");for(var o=r;o<e.length;o++)a?("'"===e[o]&&(o+1<e.length&&"'"===e[o+1]?(e[o+1]="$",n[o+1]=""):(n[o]="",a=!1)),e[o]="$"):"'"===e[o]&&(e[o]="$",n[o]="",a=!0);e=e.join("")}return angular.forEach($,function(i){var r=e.indexOf(i.key);if(r>-1){e=e.split(""),n[r]="("+i.regex+")",e[r]="$";for(var a=r+1,o=r+i.key.length;a<o;a++)n[a]="",e[a]="$";e=e.join(""),t.push({index:r,key:i.key,apply:i.apply,matcher:i.regex})}}),{regex:new RegExp("^"+n.join("")+"$"),map:i(t,"index")}}function s(e){for(var t,n,i=[],r=0;r<e.length;)if(angular.isNumber(n)){if("'"===e.charAt(r))(r+1>=e.length||"'"!==e.charAt(r+1))&&(i.push(l(e,n,r)),n=null);else if(r===e.length)for(;n<e.length;)t=u(e,n),i.push(t),n=t.endIdx;r++}else"'"!==e.charAt(r)?(t=u(e,r),i.push(t.parser),r=t.endIdx):(n=r,r++);return i}function l(e,t,n){return function(){return e.substr(t+1,n-t-1)}}function u(e,t){for(var n=e.substr(t),i=0;i<$.length;i++)if(new RegExp("^"+$[i].key).test(n)){var r=$[i];return{endIdx:t+r.key.length,parser:r.formatter}}return{endIdx:t+1,parser:function(){return n.charAt(0)}}}function c(e,t,n){return!(n<1)&&(1===t&&n>28?29===n&&(e%4==0&&e%100!=0||e%400==0):3!==t&&5!==t&&8!==t&&10!==t||n<31)}function p(e){return parseInt(e,10)}function d(e,t){return e&&t?m(e,t):e}function f(e,t){return e&&t?m(e,t,!0):e}function h(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function g(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function m(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return g(e,n*(h(t,i)-i))}var v,$;this.init=function(){v=t.id,this.parsers={},this.formatters={},$=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=e<69?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return/^[0-9]$/.test(e.getMonth())?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return/^[1-9]$/.test(e.getDate())?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],i=t[2],r=t[3];this.hours+=p(n+i),this.minutes+=p(n+r)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}],angular.version.major>=1&&angular.version.minor>4&&$.push({key:"LLLL",regex:t.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.STANDALONEMONTH.indexOf(e)},formatter:function(e){return n(e,"LLLL")}})},this.init(),this.getParser=function(e){var t=a(e);return t&&t.apply||null},this.overrideParser=function(e,t){var n=a(e);n&&angular.isFunction(t)&&(this.parsers={},n.apply=t)}.bind(this),this.filter=function(e,n){return angular.isDate(e)&&!isNaN(e)&&n?(n=t.DATETIME_FORMATS[n]||n,t.id!==v&&this.init(),this.formatters[n]||(this.formatters[n]=s(n)),this.formatters[n].reduce(function(t,n){return t+n(e)},"")):""},this.parse=function(n,i,r){if(!angular.isString(n)||!i)return n;i=t.DATETIME_FORMATS[i]||i,i=i.replace(/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,"\\$&"),t.id!==v&&this.init(),this.parsers[i]||(this.parsers[i]=o(i));var a=this.parsers[i],s=a.regex,l=a.map,u=n.match(s),p=!1;if(u&&u.length){var d,f;angular.isDate(r)&&!isNaN(r.getTime())?d={year:r.getFullYear(),month:r.getMonth(),date:r.getDate(),hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds(),milliseconds:r.getMilliseconds()}:(r&&e.warn("dateparser:","baseDate is not a valid date"),d={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var h=1,g=u.length;h<g;h++){var m=l[h-1];"Z"===m.matcher&&(p=!0),m.apply&&m.apply.call(d,u[h])}var $=p?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,b=p?Date.prototype.setUTCHours:Date.prototype.setHours;return c(d.year,d.month,d.date)&&(!angular.isDate(r)||isNaN(r.getTime())||p?(f=new Date(0),$.call(f,d.year,d.month,d.date),b.call(f,d.hours||0,d.minutes||0,d.seconds||0,d.milliseconds||0)):(f=new Date(r),$.call(f,d.year,d.month,d.date),b.call(f,d.hours,d.minutes,d.seconds,d.milliseconds))),f}},this.toTimezone=d,this.fromTimezone=f,this.timezoneToOffset=h,this.addDateMinutes=g,this.convertTimezoneToLocal=m}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(n,i){function r(e,t,n){s.push(e),l.push({scope:e,element:t}),f.forEach(function(t,n){a(t,e)}),e.$on("$destroy",o)}function a(n,i){var r=n.match(t),a=i.$eval(r[1]),o=r[2],s=u[n];if(!s){var c=function(t){var n=null;l.some(function(e){if(e.scope.$eval(p)===t)return n=e,!0}),s.lastActivated!==n&&(s.lastActivated&&e.removeClass(s.lastActivated.element,a),n&&e.addClass(n.element,a),s.lastActivated=n)};u[n]=s={lastActivated:null,scope:i,watchFn:c,compareWithExp:o,watcher:i.$watch(o,c)}}s.watchFn(i.$eval(o))}function o(e){var t=e.targetScope,n=s.indexOf(t);if(s.splice(n,1),l.splice(n,1),s.length){var i=s[0];angular.forEach(u,function(e){e.scope===t&&(e.watcher=i.$watch(e.compareWithExp,e.watchFn),e.scope=i)})}else u={}}var s=[],l=[],u={},c=i.uibIsClass.match(/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/),p=c[2],d=c[1],f=d.split(",");return r}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(e,t,n,i,r,a,o,s,l,u,c,p){function d(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}function f(t){var n;if(angular.version.minor<6)n=t.$options||e.datepickerOptions.ngModelOptions||l.ngModelOptions||{},n.getOption=function(e){return n[e]};else{var i=t.$options.getOption("timezone")||(e.datepickerOptions.ngModelOptions?e.datepickerOptions.ngModelOptions.timezone:null)||(l.ngModelOptions?l.ngModelOptions.timezone:null);n=t.$options.createChild(l.ngModelOptions).createChild(e.datepickerOptions.ngModelOptions).createChild(t.$options).createChild({timezone:i})}return n}var h=this,g={$setViewValue:angular.noop},m={},v=[];t.addClass("uib-datepicker"),n.$set("role","application"),e.datepickerOptions||(e.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":e[t]=e.datepickerOptions[t]||angular.noop;break;case"datepickerMode":e.datepickerMode=angular.isDefined(e.datepickerOptions.datepickerMode)?e.datepickerOptions.datepickerMode:l.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":h[t]=angular.isDefined(e.datepickerOptions[t])?r(e.datepickerOptions[t])(e.$parent):l[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":h[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:l[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?h.startingDay=e.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?h.startingDay=l.startingDay:h.startingDay=(a.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?h[t]=p.fromTimezone(new Date(e),m.getOption("timezone")):(u&&o.warn("Literal date support has been deprecated, please switch to date object usage"),h[t]=new Date(s(e,"medium"))):h[t]=l[t]?p.fromTimezone(new Date(l[t]),m.getOption("timezone")):null,h.refreshView()});break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch(function(){return e.datepickerOptions[t]},function(n){h[t]=e[t]=angular.isDefined(n)?n:e.datepickerOptions[t],("minMode"===t&&h.modes.indexOf(e.datepickerOptions.datepickerMode)<h.modes.indexOf(h[t])||"maxMode"===t&&h.modes.indexOf(e.datepickerOptions.datepickerMode)>h.modes.indexOf(h[t]))&&(e.datepickerMode=h[t],e.datepickerOptions.datepickerMode=h[t])}):h[t]=e[t]=l[t]||null}}),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(n.disabled)||!1,angular.isDefined(n.ngDisabled)&&v.push(e.$parent.$watch(n.ngDisabled,function(t){e.disabled=t,h.refreshView()})),e.isActive=function(t){return 0===h.compare(t.date,h.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){g=t,m=f(g),e.datepickerOptions.initDate?(h.activeDate=p.fromTimezone(e.datepickerOptions.initDate,m.getOption("timezone"))||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(g.$isEmpty(g.$modelValue)||g.$invalid)&&(h.activeDate=p.fromTimezone(e,m.getOption("timezone")),h.refreshView())})):h.activeDate=new Date;var n=g.$modelValue?new Date(g.$modelValue):new Date;this.activeDate=isNaN(n)?p.fromTimezone(new Date,m.getOption("timezone")):p.fromTimezone(n,m.getOption("timezone")),g.$render=function(){h.render()}},this.render=function(){if(g.$viewValue){var e=new Date(g.$viewValue);!isNaN(e)?this.activeDate=p.fromTimezone(e,m.getOption("timezone")):c||o.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=g.$viewValue?new Date(g.$viewValue):null;t=p.fromTimezone(t,m.getOption("timezone")),g.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var i=g.$viewValue?new Date(g.$viewValue):null;i=p.fromTimezone(i,m.getOption("timezone"));var r=new Date;r=p.fromTimezone(r,m.getOption("timezone"));var a=this.compare(t,r),o={date:t,label:p.filter(t,n),selected:i&&0===this.compare(t,i),disabled:this.isDisabled(t),past:a<0,current:0===a,future:a>0,customClass:this.customClass(t)||null};return i&&0===this.compare(t,i)&&(e.selectedDt=o),h.activeDate&&0===this.compare(o.date,h.activeDate)&&(e.activeDt=o),o},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===h.minMode){var n=g.$viewValue?p.fromTimezone(new Date(g.$viewValue),m.getOption("timezone")):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=p.toTimezone(n,m.getOption("timezone")),g.$setViewValue(n),g.$render()}else h.activeDate=t,d(h.modes[h.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=h.activeDate.getFullYear()+e*(h.step.years||0),n=h.activeDate.getMonth()+e*(h.step.months||0);h.activeDate.setFullYear(t,n,1),h.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===h.maxMode&&1===t||e.datepickerMode===h.minMode&&-1===t||(d(h.modes[h.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var $=function(){h.element[0].focus()};e.$on("uib:datepicker.focus",$),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),h.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(h.isDisabled(h.activeDate))return;e.select(h.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(h.handleKeyDown(n,t),h.refreshView()):e.toggleMode("up"===n?1:-1)},t.on("keydown",function(t){e.$apply(function(){e.keydown(t)})}),e.$on("$destroy",function(){for(;v.length;)v.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){function i(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?a[t]:29}function r(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var a=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,i=new Array(t),r=new Date(e),a=0;a<t;)n=new Date(r),i[a++]=n,r.setDate(r.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),i=this.activeDate.getMonth(),a=new Date(this.activeDate);a.setFullYear(t,i,1);var o=this.startingDay-a.getDay(),s=o>0?7-o:-o,l=new Date(a);s>0&&l.setDate(1-s);for(var u=this.getDates(l,42),c=0;c<42;c++)u[c]=angular.extend(this.createDateObject(u[c],this.formatDay),{secondary:u[c].getMonth()!==i,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var p=0;p<7;p++)e.labels[p]={abbr:n(u[p].date,this.formatDayHeader),full:n(u[p].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var d=(11-this.startingDay)%7,f=e.rows.length,h=0;h<f;h++)e.weekNumbers.push(r(e.rows[h][d].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(r,1),n=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=i(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,i=new Array(12),r=this.activeDate.getFullYear(),a=0;a<12;a++)t=new Date(this.activeDate),t.setFullYear(r,a,1),i[a]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+a});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(i,this.monthColumns),e.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),i=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=this.monthColumns;else if("right"===e)n+=1;else if("down"===e)n+=this.monthColumns;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(i)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function i(e){return parseInt((e-1)/a,10)*a+1}var r,a;this.element=t,this.yearpickerInit=function(){r=this.yearColumns,a=this.yearRows*r,this.step={years:a}},this._refreshView=function(){for(var t,n=new Array(a),o=0,s=i(this.activeDate.getFullYear());o<a;o++)t=new Date(this.activeDate),t.setFullYear(s+o,0,1),n[o]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+o});e.title=[n[0].label,n[a-1].label].join(" - "),e.rows=this.split(n,r),e.columns=r},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=r:"right"===e?n+=1:"down"===e?n+=r:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*a:"home"===e?n=i(this.activeDate.getFullYear()):"end"===e&&(n=i(this.activeDate.getFullYear())+a-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,i){var r=i[0],a=i[1];r.init(a)}}}).directive("uibDaypicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibYearpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(e,t,n,i){var r=i[0];angular.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,i,r={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},a={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},o=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){n=this.getRawNode(n);for(var i=n.offsetParent||e[0].documentElement;i&&i!==e[0].documentElement&&function(e){return"static"===(t.getComputedStyle(e).position||"static")}(i);)i=i.offsetParent;return i||e[0].documentElement},scrollbarWidth:function(r){if(r){if(angular.isUndefined(i)){var a=e.find("body");a.addClass("uib-position-body-scrollbar-measure"),i=t.innerWidth-a[0].clientWidth,i=isFinite(i)?i:0,a.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(n)){var o=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(o),n=o[0].offsetWidth-o[0].clientWidth,n=isFinite(n)?n:0,o.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),i=this.parseStyle(n.paddingRight),r=this.parseStyle(n.paddingBottom),a=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(o.test(a.tagName));return{scrollbarWidth:s,widthOverflow:a.scrollWidth>a.clientWidth,right:i+s,originalRight:i,heightOverflow:a.scrollHeight>a.clientHeight,bottom:r+s,originalBottom:r}},isScrollable:function(e,n){e=this.getRawNode(e);var i=n?r.hidden:r.normal,a=t.getComputedStyle(e);return i.test(a.overflow+a.overflowY+a.overflowX)},scrollParent:function(n,i,a){n=this.getRawNode(n);var o=i?r.hidden:r.normal,s=e[0].documentElement,l=t.getComputedStyle(n);if(a&&o.test(l.overflow+l.overflowY+l.overflowX))return n;var u="absolute"===l.position,c=n.parentElement||s;if(c===s||"fixed"===l.position)return s;for(;c.parentElement&&c!==s;){var p=t.getComputedStyle(c);if(u&&"static"!==p.position&&(u=!1),!u&&o.test(p.overflow+p.overflowY+p.overflowX))break;c=c.parentElement}return c},position:function(n,i){n=this.getRawNode(n);var r=this.offset(n);if(i){var a=t.getComputedStyle(n);r.top-=this.parseStyle(a.marginTop),r.left-=this.parseStyle(a.marginLeft)}var o=this.offsetParent(n),s={top:0,left:0};return o!==e[0].documentElement&&(s=this.offset(o),s.top+=o.clientTop-o.scrollTop,s.left+=o.clientLeft-o.scrollLeft),{width:Math.round(angular.isNumber(r.width)?r.width:n.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:n.offsetHeight),top:Math.round(r.top-s.top),left:Math.round(r.left-s.left)}},offset:function(n){n=this.getRawNode(n);var i=n.getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(i.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,i,r){n=this.getRawNode(n),r=!1!==r;var a=n.getBoundingClientRect(),o={top:0,left:0,bottom:0,right:0},s=i?e[0].documentElement:this.scrollParent(n),l=s.getBoundingClientRect();if(o.top=l.top+s.clientTop,o.left=l.left+s.clientLeft,s===e[0].documentElement&&(o.top+=t.pageYOffset,o.left+=t.pageXOffset),o.bottom=o.top+s.clientHeight,o.right=o.left+s.clientWidth,r){var u=t.getComputedStyle(s);o.top+=this.parseStyle(u.paddingTop),o.bottom-=this.parseStyle(u.paddingBottom),o.left+=this.parseStyle(u.paddingLeft),o.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(a.top-o.top),bottom:Math.round(o.bottom-a.bottom),left:Math.round(a.left-o.left),right:Math.round(o.right-a.right)}},parsePlacement:function(e){var t=a.auto.test(e);return t&&(e=e.replace(a.auto,"")),e=e.split("-"),e[0]=e[0]||"top",a.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",a.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,n,i,r){e=this.getRawNode(e),n=this.getRawNode(n);var o=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");i=this.parsePlacement(i);var l=r?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(i[2]){var c=this.viewportOffset(e,r),p=t.getComputedStyle(n),d={width:o+Math.round(Math.abs(this.parseStyle(p.marginLeft)+this.parseStyle(p.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(p.marginTop)+this.parseStyle(p.marginBottom)))};if(i[0]="top"===i[0]&&d.height>c.top&&d.height<=c.bottom?"bottom":"bottom"===i[0]&&d.height>c.bottom&&d.height<=c.top?"top":"left"===i[0]&&d.width>c.left&&d.width<=c.right?"right":"right"===i[0]&&d.width>c.right&&d.width<=c.left?"left":i[0],i[1]="top"===i[1]&&d.height-l.height>c.bottom&&d.height-l.height<=c.top?"bottom":"bottom"===i[1]&&d.height-l.height>c.top&&d.height-l.height<=c.bottom?"top":"left"===i[1]&&d.width-l.width>c.right&&d.width-l.width<=c.left?"right":"right"===i[1]&&d.width-l.width>c.left&&d.width-l.width<=c.right?"left":i[1],"center"===i[1])if(a.vertical.test(i[0])){var f=l.width/2-o/2;c.left+f<0&&d.width-l.width<=c.right?i[1]="left":c.right+f<0&&d.width-l.width<=c.left&&(i[1]="right")}else{var h=l.height/2-d.height/2;c.top+h<0&&d.height-l.height<=c.bottom?i[1]="top":c.bottom+h<0&&d.height-l.height<=c.top&&(i[1]="bottom")}}switch(i[0]){case"top":u.top=l.top-s;break;case"bottom":u.top=l.top+l.height;break;case"left":u.left=l.left-o;break;case"right":u.left=l.left+l.width}switch(i[1]){case"top":u.top=l.top;break;case"bottom":u.top=l.top+l.height-s;break;case"left":u.left=l.left;break;case"right":u.left=l.left+l.width-o;break;case"center":a.vertical.test(i[0])?u.left=l.left+l.width/2-o/2:u.top=l.top+l.height/2-s/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],u},adjustTop:function(e,t,n,i){if(-1!==e.indexOf("top")&&n!==i)return{top:t.top-i+"px"}},positionArrow:function(e,n){e=this.getRawNode(e);var i=e.querySelector(".tooltip-inner, .popover-inner");if(i){var r=angular.element(i).hasClass("tooltip-inner"),o=r?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(o){var s={top:"",bottom:"",left:"",right:""};if(n=this.parsePlacement(n),"center"===n[1])return void angular.element(o).css(s);var l="border-"+n[0]+"-width",u=t.getComputedStyle(o)[l],c="border-";a.vertical.test(n[0])?c+=n[0]+"-"+n[1]:c+=n[1]+"-"+n[0],c+="-radius";var p=t.getComputedStyle(r?i:e)[c];switch(n[0]){case"top":s.bottom=r?"0":"-"+u;break;case"bottom":s.top=r?"0":"-"+u;break;case"left":s.right=r?"0":"-"+u;break;case"right":s.left=r?"0":"-"+u}s[n[1]]=p,angular.element(o).css(s)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,n,i,r,a,o,s,l,u,c,p,d,f,h,g){function m(t){var n=p.parse(t,k,e.date);if(isNaN(n))for(var i=0;i<U.length;i++)if(n=p.parse(t,U[i],e.date),!isNaN(n))return n;return n}function v(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=m(e);if(!isNaN(t))return p.toTimezone(t,I.getOption("timezone"))}return I.getOption("allowInvalid")?e:void 0}function $(e,t){var i=e||t;return!n.ngRequired&&!i||(angular.isNumber(i)&&(i=new Date(i)),!i||(!(!angular.isDate(i)||isNaN(i))||!!angular.isString(i)&&!isNaN(m(i))))}function b(n){if(e.isOpen||!e.disabled){var i=_[0],r=t[0].contains(n.target),a=void 0!==i.contains&&i.contains(n.target);!e.isOpen||r||a||e.$apply(function(){e.isOpen=!1})}}function y(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!1}),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!0}))}function w(){if(e.isOpen){var i=angular.element(_[0].querySelector(".uib-datepicker-popup")),r=n.popupPlacement?n.popupPlacement:d.placement,a=u.positionElements(t,i,r,D);i.css({top:a.top+"px",left:a.left+"px"}),i.hasClass("uib-position-measure")&&i.removeClass("uib-position-measure")}}function x(e){var t;return angular.version.minor<6?(t=angular.isObject(e.$options)?e.$options:{timezone:null},t.getOption=function(e){return t[e]}):t=e.$options,t}var k,C,D,S,M,E,O,A,T,P,I,_,U,N=!1,F=[];this.init=function(r){if(P=r,I=x(P),C=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,D=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,S=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):d.onOpenFocus,M=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,E=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:d.datepickerTemplateUrl,U=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):d.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(k=d.html5Types[n.type],N=!0):(k=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",function(e,t){var n=e||d.datepickerPopup;if(n!==k&&(k=n,P.$modelValue=null,!k))throw new Error("uibDatepickerPopup must have a date format specified.")})),!k)throw new Error("uibDatepickerPopup must have a date format specified.");if(N&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");O=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),O.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":M}),A=angular.element(O.children()[0]),A.attr("template-url",E),e.datepickerOptions||(e.datepickerOptions={}),N&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),A.attr("datepicker-options","datepickerOptions"),N?P.$formatters.push(function(t){return e.date=p.fromTimezone(t,I.getOption("timezone")),t
  }):(P.$$parserName="date",P.$validators.date=$,P.$parsers.unshift(v),P.$formatters.push(function(t){return P.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=p.fromTimezone(t,I.getOption("timezone")),p.filter(e.date,k))})),P.$viewChangeListeners.push(function(){e.date=m(P.$viewValue)}),t.on("keydown",y),_=i(O)(e),O.remove(),D?s.find("body").append(_):t.after(_),e.$on("$destroy",function(){for(!0===e.isOpen&&(l.$$phase||e.$apply(function(){e.isOpen=!1})),_.remove(),t.off("keydown",y),s.off("click",b),T&&T.off("scroll",w),angular.element(o).off("resize",w);F.length;)F.shift()()})},e.getText=function(t){return e[t+"Text"]||d[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=p.fromTimezone(new Date,I.getOption("timezone")));var n={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=new Date(e.datepickerOptions[t]):(g&&r.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(c(e.datepickerOptions[t],"medium"))):n[t]=null}),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){e.date=n;var i=e.date?p.filter(e.date,k):null;t.val(i),P.$setViewValue(i),C&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(n.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,n){if(n.stopPropagation(),"today"===t){var i=new Date;angular.isDate(e.date)?(t=new Date(e.date),t.setFullYear(i.getFullYear(),i.getMonth(),i.getDate())):(t=p.fromTimezone(i,I.getOption("timezone")),t.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(n){n.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&F.push(e.$parent.$watch(a(n.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(i){i?e.disabled?e.isOpen=!1:f(function(){w(),S&&e.$broadcast("uib:datepicker.focus"),s.on("click",b);var i=n.popupPlacement?n.popupPlacement:d.placement;D||u.parsePlacement(i)[2]?(T=T||angular.element(u.scrollParent(t)))&&T.on("scroll",w):T=null,angular.element(o).on("resize",w)},0,!1):(s.off("click",b),T&&T.off("scroll",w),angular.element(o).off("resize",w))}),e.$on("uib:datepicker.mode",function(){f(w,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,n){var i;return function(){var r=this,a=Array.prototype.slice.call(arguments);i&&e.cancel(i),i=e(function(){t.apply(r,a)},n)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var i=e[t];if(i){var r=i.indexOf(n);-1!==r&&i.splice(r,1),i.length||delete e[t]}}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(e,t,n){var i=null,r=n.createNew();this.isOnlyOpen=function(e,t){var n=r.get(t);if(n){if(n.reduce(function(t,n){return n.scope===e?n:t},{}))return 1===n.length}return!1},this.open=function(t,n,o){if(i||e.on("click",a),i&&i!==t&&(i.isOpen=!1),i=t,o){var s=r.get(o);if(s){-1===s.map(function(e){return e.scope}).indexOf(t)&&r.put(o,{scope:t})}else r.put(o,{scope:t})}},this.close=function(t,n,o){if(i===t&&(e.off("click",a),e.off("keydown",this.keybindFilter),i=null),o){var s=r.get(o);if(s){var l=s.reduce(function(e,n){return n.scope===t?n:e},{});l&&r.remove(o,l)}}};var a=function(e){if(i&&i.isOpen&&!(e&&"disabled"===i.getAutoClose()||e&&3===e.which)){var n=i.getToggleElement();if(!(e&&n&&n[0].contains(e.target))){var r=i.getDropdownElement();e&&"outsideClick"===i.getAutoClose()&&r&&r[0].contains(e.target)||(i.focusToggleElement(),i.isOpen=!1,t.$$phase||i.$apply())}}};this.keybindFilter=function(e){if(i){var t=i.getDropdownElement(),n=i.getToggleElement(),r=t&&t[0].contains(e.target),o=n&&n[0].contains(e.target);27===e.which?(e.stopPropagation(),i.focusToggleElement(),a()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&i.isOpen&&(r||o)&&(e.preventDefault(),e.stopPropagation(),i.focusDropdownEntry(e.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,i,r,a,o,s,l,u,c){function p(){t.append(h.dropdownMenu)}var d,f,h=this,g=e.$new(),m=r.appendToOpenClass,v=r.openClass,$=angular.noop,b=n.onToggle?i(n.onToggle):angular.noop,y=!1,w=l.find("body");t.addClass("dropdown"),this.init=function(){n.isOpen&&(f=i(n.isOpen),$=f.assign,e.$watch(f,function(e){g.isOpen=!!e})),y=angular.isDefined(n.keyboardNav)},this.toggle=function(e){return g.isOpen=arguments.length?!!e:!g.isOpen,angular.isFunction($)&&$(g,g.isOpen),g.isOpen},this.isOpen=function(){return g.isOpen},g.getToggleElement=function(){return h.toggleElement},g.getAutoClose=function(){return n.autoClose||"always"},g.getElement=function(){return t},g.isKeynavEnabled=function(){return y},g.focusDropdownEntry=function(e){var n=h.dropdownMenu?angular.element(h.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(h.selectedOption)?h.selectedOption=h.selectedOption===n.length-1?h.selectedOption:h.selectedOption+1:h.selectedOption=0;break;case 38:angular.isNumber(h.selectedOption)?h.selectedOption=0===h.selectedOption?0:h.selectedOption-1:h.selectedOption=n.length-1}n[h.selectedOption].focus()},g.getDropdownElement=function(){return h.dropdownMenu},g.focusToggleElement=function(){h.toggleElement&&h.toggleElement[0].focus()},g.$watch("isOpen",function(r,f){var y=null,x=!1;if(angular.isDefined(n.dropdownAppendTo)){var k=i(n.dropdownAppendTo)(g);k&&(y=angular.element(k))}if(angular.isDefined(n.dropdownAppendToBody)){!1!==i(n.dropdownAppendToBody)(g)&&(x=!0)}if(x&&!y&&(y=w),y&&h.dropdownMenu&&(r?(y.append(h.dropdownMenu),t.on("$destroy",p)):(t.off("$destroy",p),p())),y&&h.dropdownMenu){var C,D,S,M=s.positionElements(t,h.dropdownMenu,"bottom-left",!0),E=0;if(C={top:M.top+"px",display:r?"block":"none"},D=h.dropdownMenu.hasClass("dropdown-menu-right"),D?(C.left="auto",S=s.scrollbarPadding(y),S.heightOverflow&&S.scrollbarWidth&&(E=S.scrollbarWidth),C.right=window.innerWidth-E-(M.left+t.prop("offsetWidth"))+"px"):(C.left=M.left+"px",C.right="auto"),!x){var O=s.offset(y);C.top=M.top-O.top+"px",D?C.right=window.innerWidth-(M.left-O.left+t.prop("offsetWidth"))+"px":C.left=M.left-O.left+"px"}h.dropdownMenu.css(C)}var A=y||t,T=y?m:v,P=A.hasClass(T),I=a.isOnlyOpen(e,y);if(P===!r){var _;_=y?I?"removeClass":"addClass":r?"addClass":"removeClass",o[_](A,T).then(function(){angular.isDefined(r)&&r!==f&&b(e,{open:!!r})})}if(r)h.dropdownMenuTemplateUrl?c(h.dropdownMenuTemplateUrl).then(function(e){d=g.$new(),u(e.trim())(d,function(e){var t=e;h.dropdownMenu.replaceWith(t),h.dropdownMenu=t,l.on("keydown",a.keybindFilter)})}):l.on("keydown",a.keybindFilter),g.focusToggleElement(),a.open(g,t,y);else{if(a.close(g,t,y),h.dropdownMenuTemplateUrl){d&&d.$destroy();var U=angular.element('<ul class="dropdown-menu"></ul>');h.dropdownMenu.replaceWith(U),h.dropdownMenu=U}h.selectedOption=null}angular.isFunction($)&&$(e,r)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,i){if(i&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var r=n.templateUrl;r&&(i.dropdownMenuTemplateUrl=r),i.dropdownMenu||(i.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,i){if(i){t.addClass("dropdown-toggle"),i.toggleElement=t;var r=function(r){r.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){i.toggle()})};t.on("click",r),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(i.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.off("click",r)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,i=0;i<e.length;i++)if(t===e[i].key){n=i;break}return e.splice(n,1)[0]},removeTop:function(){return e.pop()},length:function(){return e.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(t,n){var i=e.resolver?t.get(e.resolver):null;return{resolve:function(e,r,a,o){if(i)return i.resolve(e,r,a,o);var s=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?s.push(n.resolve(t.invoke(e))):angular.isString(e)?s.push(n.resolve(t.get(e))):s.push(n.resolve(e))}),n.all(s).then(function(t){var n={},i=0;return angular.forEach(e,function(e,r){n[r]=t[i++]}),n})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function i(t,i,r){r.modalInClass&&(e.addClass(i,r.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(n,a){var o=a();t.modalOptions.animation?e.removeClass(i,r.modalInClass).then(o):o()}))}return{restrict:"A",compile:function(e,t){return e.addClass(t.backdropClass),i}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,i){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(r,a,o){a.addClass(o.windowTopClass||""),r.size=o.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},a.on("click",r.close),r.$isRendered=!0;var s=t.defer();r.$$postDigest(function(){s.resolve()}),s.promise.then(function(){var s=null;o.modalInClass&&(s=n(a,{addClass:o.modalInClass}).start(),r.$on(e.NOW_CLOSING_EVENT,function(e,t){var i=t();n(a,{removeClass:o.modalInClass}).start().then(i)})),t.when(s).then(function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!i[0].activeElement||!a[0].contains(i[0].activeElement)){var n=a[0].querySelector("[autofocus]");n?n.focus():a[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(e){return{link:function(t,n,i,r,a){a(t.$parent,function(t){n.empty(),e.enter(t,n)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,i,r,a,o,s,l){function u(e){return e.replace(O,function(e,t){return(t?"-":"")+e.toLowerCase()})}function c(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function p(){for(var e=-1,t=k.keys(),n=0;n<t.length;n++)k.get(t[n]).value.backdrop&&(e=n);return e>-1&&e<S&&(e=S),e}function d(e,t){var n=k.get(e).value,i=n.appendTo;k.remove(e),M=k.top(),M&&(S=parseInt(M.value.modalDomEl.attr("index"),10)),g(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||x;C.remove(t,e);var r=C.hasKey(t);i.toggleClass(t,r),!r&&w&&w.heightOverflow&&w.scrollbarWidth&&(w.originalRight?i.css({paddingRight:w.originalRight+"px"}):i.css({paddingRight:""}),w=null),f(!0)},n.closedDeferred),h(),t&&t.focus?t.focus():i.focus&&i.focus()}function f(e){var t;k.length()>0&&(t=k.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",e))}function h(){if(b&&-1===p()){var e=y;g(b,y,function(){e=null}),b=void 0,y=void 0}}function g(t,n,i,r){function o(){o.done||(o.done=!0,e.leave(t).then(function(){i&&i(),t.remove(),r&&r.resolve()}),n.$destroy())}var s,l=null,u=function(){return s||(s=a.defer(),l=s.promise),function(){s.resolve()}};return n.$broadcast(D.NOW_CLOSING_EVENT,u),a.when(l).then(o)}function m(e){if(e.isDefaultPrevented())return e;var t=k.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),r.$apply(function(){D.dismiss(t.key,"escape key press")}));break;case 9:var n=D.loadFocusElementList(t),i=!1;e.shiftKey?(D.isFocusInFirstItem(e,n)||D.isModalFocused(e,t))&&(i=D.focusLastFocusableElement(n)):D.isFocusInLastItem(e,n)&&(i=D.focusFirstFocusableElement(n)),i&&(e.preventDefault(),e.stopPropagation())}}function v(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}function $(){Array.prototype.forEach.call(document.querySelectorAll("["+E+"]"),function(e){var t=parseInt(e.getAttribute(E),10),n=t-1;e.setAttribute(E,n),n||(e.removeAttribute(E),e.removeAttribute("aria-hidden"))})}var b,y,w,x="modal-open",k=s.createNew(),C=o.createNew(),D={NOW_CLOSING_EVENT:"modal.stack.now-closing"},S=0,M=null,E="data-bootstrap-modal-aria-hidden-count",O=/[A-Z]/g;return r.$watch(p,function(e){y&&(y.index=e)}),n.on("keydown",m),r.$on("$destroy",function(){n.off("keydown",m)}),D.open=function(t,a){function o(e){if(e&&"BODY"!==e[0].tagName)return function(e){var t=e.parent()?e.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==e[0]})}(e).forEach(function(e){var t="true"===e.getAttribute("aria-hidden"),n=parseInt(e.getAttribute(E),10);n||(n=t?1:0),e.setAttribute(E,n+1),e.setAttribute("aria-hidden","true")}),o(e.parent())}var s=n[0].activeElement,c=a.openedClass||x;f(!1),M=k.top(),k.add(t,{deferred:a.deferred,renderDeferred:a.renderDeferred,closedDeferred:a.closedDeferred,modalScope:a.scope,backdrop:a.backdrop,keyboard:a.keyboard,openedClass:a.openedClass,windowTopClass:a.windowTopClass,animation:a.animation,appendTo:a.appendTo}),C.put(c,t);var d=a.appendTo,h=p();h>=0&&!b&&(y=r.$new(!0),y.modalOptions=a,y.index=h,b=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),b.attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),a.backdropClass&&b.addClass(a.backdropClass),a.animation&&b.attr("modal-animation","true"),i(b)(y),e.enter(b,d),l.isScrollable(d)&&(w=l.scrollbarPadding(d),w.heightOverflow&&w.scrollbarWidth&&d.css({paddingRight:w.right+"px"})));var g;a.component?(g=document.createElement(u(a.component.name)),g=angular.element(g),g.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):g=a.content,S=M?parseInt(M.value.modalDomEl.attr("index"),10)+1:0;var m=angular.element('<div uib-modal-window="modal-window"></div>');m.attr({class:"modal","template-url":a.windowTemplateUrl,"window-top-class":a.windowTopClass,role:"dialog","aria-labelledby":a.ariaLabelledBy,"aria-describedby":a.ariaDescribedBy,size:a.size,index:S,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(g),a.windowClass&&m.addClass(a.windowClass),a.animation&&m.attr("modal-animation","true"),d.addClass(c),a.scope&&(a.scope.$$topModalIndex=S),e.enter(i(m)(a.scope),d),k.top().value.modalDomEl=m,k.top().value.modalOpener=s,o(m)},D.close=function(e,t){var n=k.get(e);return $(),n&&v(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),d(e,n.value.modalOpener),!0):!n},D.dismiss=function(e,t){var n=k.get(e);return $(),n&&v(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),d(e,n.value.modalOpener),!0):!n},D.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},D.getTop=function(){return k.top()},D.modalRendered=function(e){var t=k.get(e);t&&t.value.renderDeferred.resolve()},D.focusFirstFocusableElement=function(e){return e.length>0&&(e[0].focus(),!0)},D.focusLastFocusableElement=function(e){return e.length>0&&(e[e.length-1].focus(),!0)},D.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},D.isFocusInFirstItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]},D.isFocusInLastItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]},D.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return n?Array.prototype.filter.call(n,function(e){return c(e)}):n}}},D}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,i,r,a,o,s){function l(e){return e.template?n.when(e.template):r(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var u={},c=null;return u.getPromiseChain=function(){return c},u.open=function(r){function u(){return m}var p=n.defer(),d=n.defer(),f=n.defer(),h=n.defer(),g={result:p.promise,opened:d.promise,closed:f.promise,rendered:h.promise,close:function(e){return s.close(g,e)},dismiss:function(e){return s.dismiss(g,e)}};if(r=angular.extend({},e.options,r),r.resolve=r.resolve||{},r.appendTo=r.appendTo||i.find("body").eq(0),!r.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!r.component&&!r.template&&!r.templateUrl)throw new Error("One of component or template or templateUrl options is required.");var m;m=r.component?n.when(o.resolve(r.resolve,{},null,null)):n.all([l(r),o.resolve(r.resolve,{},null,null)]);var v;return v=c=n.all([c]).then(u,u).then(function(e){function n(t,n,i,r){t.$scope=o,t.$scope.$resolve={},i?t.$scope.$uibModalInstance=g:t.$uibModalInstance=g;var a=n?e[1]:e;angular.forEach(a,function(e,n){r&&(t[n]=e),t.$scope.$resolve[n]=e})}var i=r.scope||t,o=i.$new();o.$close=g.close,o.$dismiss=g.dismiss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")});var l,u,c={scope:o,deferred:p,renderDeferred:h,closedDeferred:f,animation:r.animation,backdrop:r.backdrop,keyboard:r.keyboard,backdropClass:r.backdropClass,windowTopClass:r.windowTopClass,windowClass:r.windowClass,windowTemplateUrl:r.windowTemplateUrl,ariaLabelledBy:r.ariaLabelledBy,ariaDescribedBy:r.ariaDescribedBy,size:r.size,openedClass:r.openedClass,appendTo:r.appendTo},m={},v={};r.component?(n(m,!1,!0,!1),m.name=r.component,c.component=m):r.controller&&(n(v,!0,!1,!0),u=a(r.controller,v,!0,r.controllerAs),r.controllerAs&&r.bindToController&&(l=u.instance,l.$close=o.$close,l.$dismiss=o.$dismiss,angular.extend(l,{$resolve:v.$scope.$resolve},i)),l=u(),angular.isFunction(l.$onInit)&&l.$onInit()),r.component||(c.content=e[0]),s.open(g,c),d.resolve(!0)},function(e){d.reject(e),p.reject(e)}).finally(function(){c===v&&(c=null)}),g},u}]};return e}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,i){t.setNumPages=i.numPages?e(i.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,r){t.ngModelCtrl=e,t.config=r,e.$render=function(){t.render()},i.itemsPerPage?t._watchers.push(n.$parent.$watch(i.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=r.itemsPerPage,n.$watch("totalItems",function(e,i){(angular.isDefined(e)||e!==i)&&(n.totalPages=t.calculateTotalPages(),t.updatePage())})},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(n.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){n.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(e,i){i&&i.preventDefault(),(!n.ngDisabled||!i)&&n.page!==e&&e>0&&e<=n.totalPages&&(i&&i.target&&i.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},n.getText=function(e){return n[e+"Text"]||t.config[e+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},t.updatePage=function(){t.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):t.ngModelCtrl.$render()},n.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,i){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):i.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,n,i,r){n.addClass("pager");var a=r[0],o=r[1];o&&a.init(o,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,i,r){function a(e,t,n){return{number:e,text:t,active:n}}function o(e,t){var n=[],i=1,r=t,o=angular.isDefined(l)&&l<t;o&&(u?(i=Math.max(e-Math.floor(l/2),1),(r=i+l-1)>t&&(r=t,i=r-l+1)):(i=(Math.ceil(e/l)-1)*l+1,r=Math.min(i+l-1,t)));for(var s=i;s<=r;s++){var f=a(s,d(s),s===e);n.push(f)}if(o&&l>0&&(!u||c||p)){if(i>1){if(!p||i>3){var h=a(i-1,"...",!1);n.unshift(h)}if(p){if(3===i){var g=a(2,"2",!1);n.unshift(g)}var m=a(1,"1",!1);n.unshift(m)}}if(r<t){if(!p||r<t-2){var v=a(r+1,"...",!1);n.push(v)}if(p){if(r===t-2){var $=a(t-1,t-1,!1);n.push($)}var b=a(t,t,!1);n.push(b)}}}return n}var s=this,l=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):r.maxSize,u=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):r.rotate,c=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):r.forceEllipses,p=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):r.boundaryLinkNumbers,d=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):r.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):r.directionLinks,t.$set("role","menu"),i.create(this,e,t),t.maxSize&&s._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){l=parseInt(e,10),s.render()}));var f=this.render;this.render=function(){f(),e.page>0&&e.page<=e.totalPages&&(e.pages=o(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(e,n,i,r){n.addClass("pagination");var a=r[0],o=r[1];o&&a.init(o,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function e(e){return e.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()})}var t={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},i={};this.options=function(e){angular.extend(i,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(r,a,o,s,l,u,c,p,d){function f(e){if(27===e.which){var t=h.top();t&&(t.value.close(),t=null)}}var h=d.createNew();return s.on("keyup",f),c.$on("$destroy",function(){s.off("keyup",f)}),function(r,c,d,f){function g(e){var t=(e||f.trigger||d).split(" ");return{show:t,hide:t.map(function(e){return n[e]||e})}}f=angular.extend({},t,i,f);var m=e(r),v=u.startSymbol(),$=u.endSymbol(),b="<div "+m+'-popup uib-title="'+v+"title"+$+'" '+(f.useContentExp?'content-exp="contentExp()" ':'content="'+v+"content"+$+'" ')+'origin-scope="origScope" class="uib-position-measure '+c+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(e,t){var n=a(b);return function(e,t,i,a){function u(){j.isOpen?m():d()}function d(){R&&!e.$eval(i[c+"Enable"])||(y(),k(),j.popupDelay?P||(P=o(v,j.popupDelay,!1)):v())}function m(){$(),j.popupCloseDelay?I||(I=o(b,j.popupCloseDelay,!1)):b()}function v(){if($(),y(),!j.content)return angular.noop;w(),j.$evalAsync(function(){j.isOpen=!0,C(!0),B()})}function $(){P&&(o.cancel(P),P=null),_&&(o.cancel(_),_=null)}function b(){j&&j.$evalAsync(function(){j&&(j.isOpen=!1,C(!1),j.animation?T||(T=o(x,150,!1)):x())})}function y(){I&&(o.cancel(I),I=null),T&&(o.cancel(T),T=null)}function w(){O||(A=j.$new(),O=n(A,function(e){F?s.find("body").append(e):t.after(e)}),h.add(j,{close:b}),D())}function x(){$(),y(),S(),O&&(O.remove(),O=null,U&&o.cancel(U)),h.remove(j),A&&(A.$destroy(),A=null)}function k(){j.title=i[c+"Title"],j.content=z?z(e):i[r],j.popupClass=i[c+"Class"],j.placement=angular.isDefined(i[c+"Placement"])?i[c+"Placement"]:f.placement;var t=l.parsePlacement(j.placement);N=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(i[c+"PopupDelay"],10),a=parseInt(i[c+"PopupCloseDelay"],10);j.popupDelay=isNaN(n)?f.popupDelay:n,j.popupCloseDelay=isNaN(a)?f.popupCloseDelay:a}function C(t){H&&angular.isFunction(H.assign)&&H.assign(e,t)}function D(){q.length=0,z?(q.push(e.$watch(z,function(e){j.content=e,!e&&j.isOpen&&b()})),q.push(A.$watch(function(){L||(L=!0,A.$$postDigest(function(){L=!1,j&&j.isOpen&&B()}))}))):q.push(i.$observe(r,function(e){j.content=e,!e&&j.isOpen?b():B()})),q.push(i.$observe(c+"Title",function(e){j.title=e,j.isOpen&&B()})),q.push(i.$observe(c+"Placement",function(e){j.placement=e||f.placement,j.isOpen&&B()}))}function S(){q.length&&(angular.forEach(q,function(e){e()}),q.length=0)}function M(e){j&&j.isOpen&&O&&(t[0].contains(e.target)||O[0].contains(e.target)||m())}function E(e){27===e.which&&m()}var O,A,T,P,I,_,U,N,F=!!angular.isDefined(f.appendToBody)&&f.appendToBody,V=g(void 0),R=angular.isDefined(i[c+"Enable"]),j=e.$new(!0),L=!1,H=!!angular.isDefined(i[c+"IsOpen"])&&p(i[c+"IsOpen"]),z=!!f.useContentExp&&p(i[r]),q=[],B=function(){O&&O.html()&&(_||(_=o(function(){var e=l.positionElements(t,O,j.placement,F),n=angular.isDefined(O.offsetHeight)?O.offsetHeight:O.prop("offsetHeight"),i=F?l.offset(t):l.position(t);O.css({top:e.top+"px",left:e.left+"px"});var r=e.placement.split("-");O.hasClass(r[0])||(O.removeClass(N.split("-")[0]),O.addClass(r[0])),O.hasClass(f.placementClassPrefix+e.placement)||(O.removeClass(f.placementClassPrefix+N),O.addClass(f.placementClassPrefix+e.placement)),U=o(function(){var e=angular.isDefined(O.offsetHeight)?O.offsetHeight:O.prop("offsetHeight"),t=l.adjustTop(r,i,n,e);t&&O.css(t),U=null},0,!1),O.hasClass("uib-position-measure")?(l.positionArrow(O,e.placement),O.removeClass("uib-position-measure")):N!==e.placement&&l.positionArrow(O,e.placement),N=e.placement,_=null},0,!1)))};j.origScope=e,j.isOpen=!1,j.contentExp=function(){return j.content},i.$observe("disabled",function(e){e&&$(),e&&j.isOpen&&b()}),H&&e.$watch(H,function(e){j&&!e===j.isOpen&&u()});var W=function(){V.show.forEach(function(e){"outsideClick"===e?t.off("click",u):(t.off(e,d),t.off(e,u)),t.off("keypress",E)}),V.hide.forEach(function(e){"outsideClick"===e?s.off("click",M):t.off(e,m)})};!function(){var n=[],r=[],a=e.$eval(i[c+"Trigger"]);W(),angular.isObject(a)?(Object.keys(a).forEach(function(e){n.push(e),r.push(a[e])}),V={show:n,hide:r}):V=g(a),"none"!==V.show&&V.show.forEach(function(e,n){"outsideClick"===e?(t.on("click",u),s.on("click",M)):e===V.hide[n]?t.on(e,u):e&&(t.on(e,d),t.on(V.hide[n],m)),t.on("keypress",E)})}();var G=e.$eval(i[c+"Animation"]);j.animation=angular.isDefined(G)?!!G:f.animation;var Y,K=c+"AppendToBody";Y=K in i&&void 0===i[K]||e.$eval(i[K]),F=angular.isDefined(Y)?Y:F,e.$on("$destroy",function(){W(),x(),j=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,i){return{link:function(r,a,o){var s,l,u,c=r.$eval(o.tooltipTemplateTranscludeScope),p=0,d=function(){l&&(l.remove(),l=null),s&&(s.$destroy(),s=null),u&&(e.leave(u).then(function(){l=null}),l=u,u=null)};r.$watch(t.parseAsResourceUrl(o.uibTooltipTemplateTransclude),function(t){var o=++p;t?(i(t,!0).then(function(i){if(o===p){var r=c.$new(),l=i,f=n(l)(r,function(t){d(),e.enter(t,a)});s=r,u=f,s.$emit("$includeContentLoaded",t)}},function(){o===p&&(d(),r.$emit("$includeContentError",t))}),r.$emit("$includeContentRequested",t)):d()}),r.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,i){if(t.placement){var r=e.parsePlacement(t.placement);n.addClass(r[0])}t.popupClass&&n.addClass(t.popupClass),t.animation&&n.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}
  }).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){function i(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}var r=this,a=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=i(),this.addBar=function(e,t,n){a||t.css({transition:"none"}),this.bars.push(e),e.max=i(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=r.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,r.removeBar(e)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){r.bars.forEach(function(e){e.max=i(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,i){i.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,i){i.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var i={$setViewValue:angular.noop},r=this;this.init=function(r){i=r,i.$render=this.render,i.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):n.enableReset;var a=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(a)&&a.length>0?a:n.titles;var o=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(o)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var n=r.enableReset&&i.$viewValue===t?0:t;i.$setViewValue(n),i.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=i.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=i.$viewValue,e.title=r.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(e,t,n,i){var r=i[0],a=i[1];r.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){function t(e){for(var t=0;t<i.tabs.length;t++)if(i.tabs[t].index===e)return t}var n,i=this;i.tabs=[],i.select=function(e,a){if(!r){var o=t(n),s=i.tabs[o];if(s){if(s.tab.onDeselect({$event:a,$selectedIndex:e}),a&&a.isDefaultPrevented())return;s.tab.active=!1}var l=i.tabs[e];l?(l.tab.onSelect({$event:a}),l.tab.active=!0,i.active=l.index,n=l.index):!l&&angular.isDefined(n)&&(i.active=null,n=null)}},i.addTab=function(e){if(i.tabs.push({tab:e,index:e.index}),i.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index===i.active||!angular.isDefined(i.active)&&1===i.tabs.length){var n=t(e.index);i.select(n)}},i.removeTab=function(e){for(var t,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===e){t=n;break}if(i.tabs[t].index===i.active){var r=t===i.tabs.length-1?t-1:t+1%i.tabs.length;i.select(r)}i.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==n&&i.select(t(e))});var r;e.$on("$destroy",function(){r=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(e){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,n,i,r,a){t.disabled=!1,i.disable&&t.$parent.$watch(e(i.disable),function(e){t.disabled=!!e}),angular.isUndefined(i.index)&&(r.tabs&&r.tabs.length?t.index=Math.max.apply(null,r.tabs.map(function(e){return e.index}))+1:t.index=0),angular.isUndefined(i.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,i=0;i<r.tabs.length;i++)if(r.tabs[i].tab===t){n=i;break}r.select(n,e)}},r.addTab(t),t.$on("$destroy",function(){r.removeTab(t)}),t.$transcludeFn=a}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){function e(e){return e.tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(t,n,i){var r=t.$eval(i.uibTabContentTransclude).tab;r.$transcludeFn(r.$parent,function(t){angular.forEach(t,function(t){e(t)?r.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(e,t,n,i,r,a,o){function s(){var t=+e.hours;if((e.showMeridian?t>0&&t<13:t>=0&&t<24)&&""!==e.hours)return e.showMeridian&&(12===t&&(t=0),e.meridian===C[1]&&(t+=12)),t}function l(){var t=+e.minutes;if(t>=0&&t<60&&""!==e.minutes)return t}function u(){var t=+e.seconds;return t>=0&&t<60?t:void 0}function c(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function p(e){d(),k.$setViewValue(new Date(w)),f(e)}function d(){$&&$.$setValidity("hours",!0),b&&b.$setValidity("minutes",!0),y&&y.$setValidity("seconds",!0),k.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function f(t){if(k.$modelValue){var n=w.getHours(),i=w.getMinutes(),r=w.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:c(n,!D),"m"!==t&&(e.minutes=c(i)),e.meridian=w.getHours()<12?C[0]:C[1],"s"!==t&&(e.seconds=c(r)),e.meridian=w.getHours()<12?C[0]:C[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=C[0]}function h(e){w=m(w,e),p()}function g(e,t){return m(e,60*t)}function m(e,t){var n=new Date(e.getTime()+1e3*t),i=new Date(e);return i.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),i}function v(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}var $,b,y,w=new Date,x=[],k={$setViewValue:angular.noop},C=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):o.meridians||a.DATETIME_FORMATS.AMPMS,D=!angular.isDefined(n.padHours)||e.$parent.$eval(n.padHours);e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,i){k=t,k.$render=this.render,k.$formatters.unshift(function(e){return e?new Date(e):null});var r=i.eq(0),a=i.eq(1),s=i.eq(2);$=r.controller("ngModel"),b=a.controller("ngModel"),y=s.controller("ngModel"),(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):o.mousewheel)&&this.setupMousewheelEvents(r,a,s),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):o.arrowkeys)&&this.setupArrowkeyEvents(r,a,s),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):o.readonlyInput,this.setupInputEvents(r,a,s)};var S=o.hourStep;n.hourStep&&x.push(e.$parent.$watch(i(n.hourStep),function(e){S=+e}));var M=o.minuteStep;n.minuteStep&&x.push(e.$parent.$watch(i(n.minuteStep),function(e){M=+e}));var E;x.push(e.$parent.$watch(i(n.min),function(e){var t=new Date(e);E=isNaN(t)?void 0:t}));var O;x.push(e.$parent.$watch(i(n.max),function(e){var t=new Date(e);O=isNaN(t)?void 0:t}));var A=!1;n.ngDisabled&&x.push(e.$parent.$watch(i(n.ngDisabled),function(e){A=e})),e.noIncrementHours=function(){var e=g(w,60*S);return A||e>O||e<w&&e<E},e.noDecrementHours=function(){var e=g(w,60*-S);return A||e<E||e>w&&e>O},e.noIncrementMinutes=function(){var e=g(w,M);return A||e>O||e<w&&e<E},e.noDecrementMinutes=function(){var e=g(w,-M);return A||e<E||e>w&&e>O},e.noIncrementSeconds=function(){var e=m(w,T);return A||e>O||e<w&&e<E},e.noDecrementSeconds=function(){var e=m(w,-T);return A||e<E||e>w&&e>O},e.noToggleMeridian=function(){return w.getHours()<12?A||g(w,720)>O:A||g(w,-720)<E};var T=o.secondStep;n.secondStep&&x.push(e.$parent.$watch(i(n.secondStep),function(e){T=+e})),e.showSeconds=o.showSeconds,n.showSeconds&&x.push(e.$parent.$watch(i(n.showSeconds),function(t){e.showSeconds=!!t})),e.showMeridian=o.showMeridian,n.showMeridian&&x.push(e.$parent.$watch(i(n.showMeridian),function(t){if(e.showMeridian=!!t,k.$error.time){var n=s(),i=l();angular.isDefined(n)&&angular.isDefined(i)&&(w.setHours(n),p())}else f()})),this.setupMousewheelEvents=function(t,n,i){var r=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.on("mousewheel wheel",function(t){A||e.$apply(r(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.on("mousewheel wheel",function(t){A||e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),i.on("mousewheel wheel",function(t){A||e.$apply(r(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,n,i){t.on("keydown",function(t){A||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),n.on("keydown",function(t){A||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),i.on("keydown",function(t){A||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,n,i){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var r=function(t,n,i){k.$setViewValue(null),k.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t,$&&$.$setValidity("hours",!1)),angular.isDefined(n)&&(e.invalidMinutes=n,b&&b.$setValidity("minutes",!1)),angular.isDefined(i)&&(e.invalidSeconds=i,y&&y.$setValidity("seconds",!1))};e.updateHours=function(){var e=s(),t=l();k.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(w.setHours(e),w.setMinutes(t),w<E||w>O?r(!0):p("h")):r(!0)},t.on("blur",function(t){k.$setTouched(),v()?d():null===e.hours||""===e.hours?r(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=c(e.hours,!D)})}),e.updateMinutes=function(){var e=l(),t=s();k.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(w.setHours(t),w.setMinutes(e),w<E||w>O?r(void 0,!0):p("m")):r(void 0,!0)},n.on("blur",function(t){k.$setTouched(),v()?d():null===e.minutes?r(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=c(e.minutes)})}),e.updateSeconds=function(){var e=u();k.$setDirty(),angular.isDefined(e)?(w.setSeconds(e),p("s")):r(void 0,void 0,!0)},i.on("blur",function(t){v()?d():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=c(e.seconds)})})},this.render=function(){var t=k.$viewValue;isNaN(t)?(k.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(w=t),w<E||w>O?(k.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):d(),f())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):o.showSpinners,e.incrementHours=function(){e.noIncrementHours()||h(60*S*60)},e.decrementHours=function(){e.noDecrementHours()||h(60*-S*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||h(60*M)},e.decrementMinutes=function(){e.noDecrementMinutes()||h(60*-M)},e.incrementSeconds=function(){e.noIncrementSeconds()||h(T)},e.decrementSeconds=function(){e.noDecrementSeconds()||h(-T)},e.toggleMeridian=function(){var t=l(),n=s();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?h(720*(w.getHours()<12?60:-60)):e.meridian=e.meridian===C[0]?C[1]:C[0])},e.blur=function(){k.$setTouched()},e.$on("$destroy",function(){for(;x.length;)x.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,n){return n.templateUrl||e.templateUrl},link:function(e,t,n,i){var r=i[0],a=i[1];a&&r.init(a,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){return{parse:function(t){var n=t.match(/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/);if(!n)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+t+'".');return{itemName:n[3],source:e(n[4]),viewMapper:e(n[2]||n[1]),modelMapper:e(n[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,i,r,a,o,s,l,u,c,p,d){function f(){j.moveInProgress||(j.moveInProgress=!0,j.$digest()),Z()}function h(){j.position=A?p.offset(t):p.position(t),j.position.top+=t.prop("offsetHeight")}function g(e){var t;return angular.version.minor<6?(t=e.$options||{},t.getOption=function(e){return t[e]}):t=e.$options,t}var m,v,$=[9,13,27,38,40],b=e.$eval(n.typeaheadMinLength);b||0===b||(b=1),e.$watch(n.typeaheadMinLength,function(e){b=e||0===e?e:1});var y=e.$eval(n.typeaheadWaitMs)||0,w=!1!==e.$eval(n.typeaheadEditable);e.$watch(n.typeaheadEditable,function(e){w=!1!==e});var x,k,C=r(n.typeaheadLoading).assign||angular.noop,D=n.typeaheadShouldSelect?r(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},S=r(n.typeaheadOnSelect),M=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),E=r(n.typeaheadNoResults).assign||angular.noop,O=n.typeaheadInputFormatter?r(n.typeaheadInputFormatter):void 0,A=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),T=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,P=!1!==e.$eval(n.typeaheadFocusFirst),I=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),_=r(n.typeaheadIsOpen).assign||angular.noop,U=e.$eval(n.typeaheadShowHint)||!1,N=r(n.ngModel),F=r(n.ngModel+"($$$p)"),V=function(t,n){return angular.isFunction(N(e))&&v.getOption("getterSetter")?F(t,{$$$p:n}):N.assign(t,n)},R=d.parse(n.uibTypeahead),j=e.$new(),L=e.$on("$destroy",function(){j.$destroy()});j.$on("$destroy",L);var H="typeahead-"+j.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":H});var z,q;U&&(z=angular.element("<div></div>"),z.css("position","relative"),t.after(z),q=t.clone(),q.attr("placeholder",""),q.attr("tabindex","-1"),q.val(""),q.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),q.attr("id")&&q.removeAttr("id"),z.append(q),q.after(t));var B=angular.element("<div uib-typeahead-popup></div>");B.attr({id:H,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(n.typeaheadTemplateUrl)&&B.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&B.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var W=function(){U&&q.val("")},G=function(){j.matches=[],j.activeIdx=-1,t.attr("aria-expanded",!1),W()},Y=function(e){return H+"-option-"+e};j.$watch("activeIdx",function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",Y(e))});var K=function(e,t){return!!(j.matches.length>t&&e)&&e.toUpperCase()===j.matches[t].label.toUpperCase()},X=function(n,i){var r={$viewValue:n};C(e,!0),E(e,!1),a.when(R.source(e,r)).then(function(a){var o=n===m.$viewValue;if(o&&x)if(a&&a.length>0){j.activeIdx=P?0:-1,E(e,!1),j.matches.length=0;for(var s=0;s<a.length;s++)r[R.itemName]=a[s],j.matches.push({id:Y(s),label:R.viewMapper(j,r),model:a[s]});if(j.query=n,h(),t.attr("aria-expanded",!0),I&&1===j.matches.length&&K(n,0)&&(angular.isNumber(j.debounceUpdate)||angular.isObject(j.debounceUpdate)?c(function(){j.select(0,i)},angular.isNumber(j.debounceUpdate)?j.debounceUpdate:j.debounceUpdate.default):j.select(0,i)),U){var l=j.matches[0].label;angular.isString(n)&&n.length>0&&l.slice(0,n.length).toUpperCase()===n.toUpperCase()?q.val(n+l.slice(n.length)):q.val("")}}else G(),E(e,!0);o&&C(e,!1)},function(){G(),C(e,!1),E(e,!0)})};A&&(angular.element(l).on("resize",f),s.find("body").on("scroll",f));var Z=c(function(){j.matches.length&&h(),j.moveInProgress=!1},200);j.moveInProgress=!1,j.query=void 0;var J,Q=function(e){J=o(function(){X(e)},y)},ee=function(){J&&o.cancel(J)};G(),j.assignIsOpen=function(t){_(e,t)},j.select=function(i,r){var a,s,l={};k=!0,l[R.itemName]=s=j.matches[i].model,a=R.modelMapper(e,l),V(e,a),m.$setValidity("editable",!0),m.$setValidity("parse",!0),S(e,{$item:s,$model:a,$label:R.viewMapper(e,l),$event:r}),G(),!1!==j.$eval(n.typeaheadFocusOnSelect)&&o(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==j.matches.length&&-1!==$.indexOf(t.which)){var n=D(e,{$event:t});if(-1===j.activeIdx&&n||9===t.which&&t.shiftKey)return G(),void j.$digest();t.preventDefault();var i;switch(t.which){case 27:t.stopPropagation(),G(),e.$digest();break;case 38:j.activeIdx=(j.activeIdx>0?j.activeIdx:j.matches.length)-1,j.$digest(),i=B[0].querySelectorAll(".uib-typeahead-match")[j.activeIdx],i.parentNode.scrollTop=i.offsetTop;break;case 40:j.activeIdx=(j.activeIdx+1)%j.matches.length,j.$digest(),i=B[0].querySelectorAll(".uib-typeahead-match")[j.activeIdx],i.parentNode.scrollTop=i.offsetTop;break;default:n&&j.$apply(function(){angular.isNumber(j.debounceUpdate)||angular.isObject(j.debounceUpdate)?c(function(){j.select(j.activeIdx,t)},angular.isNumber(j.debounceUpdate)?j.debounceUpdate:j.debounceUpdate.default):j.select(j.activeIdx,t)})}}}),t.on("focus",function(e){x=!0,0!==b||m.$viewValue||o(function(){X(m.$viewValue,e)},0)}),t.on("blur",function(e){M&&j.matches.length&&-1!==j.activeIdx&&!k&&(k=!0,j.$apply(function(){angular.isObject(j.debounceUpdate)&&angular.isNumber(j.debounceUpdate.blur)?c(function(){j.select(j.activeIdx,e)},j.debounceUpdate.blur):j.select(j.activeIdx,e)})),!w&&m.$error.editable&&(m.$setViewValue(),j.$apply(function(){m.$setValidity("editable",!0),m.$setValidity("parse",!0)}),t.val("")),x=!1,k=!1});var te=function(n){t[0]!==n.target&&3!==n.which&&0!==j.matches.length&&(G(),u.$$phase||e.$digest())};s.on("click",te),e.$on("$destroy",function(){s.off("click",te),(A||T)&&ne.remove(),A&&(angular.element(l).off("resize",f),s.find("body").off("scroll",f)),B.remove(),U&&z.remove()});var ne=i(B)(j);A?s.find("body").append(ne):T?angular.element(T).eq(0).append(ne):t.after(ne),this.init=function(t){m=t,v=g(m),j.debounceUpdate=r(v.getOption("debounce"))(e),m.$parsers.unshift(function(t){return x=!0,0===b||t&&t.length>=b?y>0?(ee(),Q(t)):X(t):(C(e,!1),ee(),G()),w?t:t?void m.$setValidity("editable",!1):(m.$setValidity("editable",!0),null)}),m.$formatters.push(function(t){var n,i,r={};return w||m.$setValidity("editable",!0),O?(r.$model=t,O(e,r)):(r[R.itemName]=t,n=R.viewMapper(e,r),r[R.itemName]=void 0,i=R.viewMapper(e,r),n!==i?n:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(e,t,n,i){i[1].init(i[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(e){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,n,i){t.templateUrl=i.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(n,i){var r=t.debounce();angular.isNumber(r)||angular.isObject(r)?e(function(){t.select({activeIdx:n,evt:i})},angular.isNumber(r)?r:r.default):t.select({activeIdx:n,evt:i})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(i,r,a){var o=n(a.templateUrl)(i.$parent)||"uib/template/typeahead/typeahead-match.html";e(o).then(function(e){var n=angular.element(e.trim());r.replaceWith(n),t(n)(i)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){function i(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function r(e){return/<.*>/g.test(e)}var a;return a=t.has("$sanitize"),function(t,o){return!a&&r(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=o?(""+t).replace(new RegExp(i(o),"gi"),"<strong>$&</strong>"):t,a||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n  <h4 class="panel-title">\n    <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n  </h4>\n</div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n  <div class="panel-body" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;</span>\n  <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n  <span class="sr-only">previous</span>\n</a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n  <span class="sr-only">next</span>\n</a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n  <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n    <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n  </li>\n</ol>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){
  e.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n  <li ng-transclude></li>\n  <li ng-if="showButtonBar" class="uib-button-bar">\n    <span class="btn-group pull-left">\n      <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n    </span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n  </li>\n</ul>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li role="menuitem" ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      </td>\n      <td class="uib-separator">:</td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      </td>\n      <td ng-show="showSeconds" class="uib-separator">:</td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      </td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}),function(){function e(e,t,n){function i(i,c){var p=c.dirPaginate,d=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),f=/\|\s*itemsPerPage\s*:\s*(.*\(\s*\w*\)|([^\)]*?(?=\s+as\s+))|[^\)]*)/;if(null===d[2].match(f))throw"pagination directive: the 'itemsPerPage' filter must be set.";var h=d[2].replace(f,""),g=t(h);o(i);var m=c.paginationId||l;return n.registerInstance(m),function(i,o,c){var d=t(c.paginationId)(i)||c.paginationId||l;n.registerInstance(d);var f=r(p,d);a(o,c,f),s(o);var h=e(o),m=u(i,c,d);n.setCurrentPageParser(d,m,i),void 0!==c.totalItems?(n.setAsyncModeTrue(d),i.$watch(function(){return t(c.totalItems)(i)},function(e){0<=e&&n.setCollectionLength(d,e)})):(n.setAsyncModeFalse(d),i.$watchCollection(function(){return g(i)},function(e){if(e){var t=e instanceof Array?e.length:Object.keys(e).length;n.setCollectionLength(d,t)}})),h(i)}}function r(e,t){var n=!!e.match(/(\|\s*itemsPerPage\s*:[^|]*:[^|]*)/);return t===l||n?e:e.replace(/(\|\s*itemsPerPage\s*:\s*[^|\s]*)/,"$1 : '"+t+"'")}function a(e,t,n){e[0].hasAttribute("dir-paginate-start")||e[0].hasAttribute("data-dir-paginate-start")?(t.$set("ngRepeatStart",n),e.eq(e.length-1).attr("ng-repeat-end",!0)):t.$set("ngRepeat",n)}function o(e){angular.forEach(e,function(e){1===e.nodeType&&angular.element(e).attr("dir-paginate-no-compile",!0)})}function s(e){angular.forEach(e,function(e){1===e.nodeType&&angular.element(e).removeAttr("dir-paginate-no-compile")}),e.eq(0).removeAttr("dir-paginate-start").removeAttr("dir-paginate").removeAttr("data-dir-paginate-start").removeAttr("data-dir-paginate"),e.eq(e.length-1).removeAttr("dir-paginate-end").removeAttr("data-dir-paginate-end")}function u(e,n,i){var r;if(n.currentPage)r=t(n.currentPage);else{var a=(i+"__currentPage").replace(/\W/g,"_");e[a]=1,r=t(a)}return r}return{terminal:!0,multiElement:!0,priority:100,compile:i}}function t(){return{priority:5e3,terminal:!0}}function n(e){e.put("angularUtils.directives.dirPagination.template",'<ul class="pagination" ng-if="1 < pages.length || !autoHide"><li ng-if="boundaryLinks" ng-class="{ disabled : pagination.current == 1 }"><a href="" ng-click="setCurrent(1)">&laquo;</a></li><li ng-if="directionLinks" ng-class="{ disabled : pagination.current == 1 }"><a href="" ng-click="setCurrent(pagination.current - 1)">&lsaquo;</a></li><li ng-repeat="pageNumber in pages track by tracker(pageNumber, $index)" ng-class="{ active : pagination.current == pageNumber, disabled : pageNumber == \'...\' || ( ! autoHide && pages.length === 1 ) }"><a href="" ng-click="setCurrent(pageNumber)">{{ pageNumber }}</a></li><li ng-if="directionLinks" ng-class="{ disabled : pagination.current == pagination.last }"><a href="" ng-click="setCurrent(pagination.current + 1)">&rsaquo;</a></li><li ng-if="boundaryLinks"  ng-class="{ disabled : pagination.current == pagination.last }"><a href="" ng-click="setCurrent(pagination.last)">&raquo;</a></li></ul>')}function i(e,t){function n(t,n,r){function o(n){if(e.isRegistered(d)&&c(n)){var r=t.pagination.current;t.pages=i(n,e.getCollectionLength(d),e.getItemsPerPage(d),h),t.pagination.current=n,u(),t.onPageChange&&t.onPageChange({newPageNumber:n,oldPageNumber:r})}}function s(){if(e.isRegistered(d)){var n=parseInt(e.getCurrentPage(d))||1;t.pages=i(n,e.getCollectionLength(d),e.getItemsPerPage(d),h),t.pagination.current=n,t.pagination.last=t.pages[t.pages.length-1],t.pagination.last<t.pagination.current?t.setCurrent(t.pagination.last):u()}}function u(){if(e.isRegistered(d)){var n=e.getCurrentPage(d),i=e.getItemsPerPage(d),r=e.getCollectionLength(d);t.range.lower=(n-1)*i+1,t.range.upper=Math.min(n*i,r),t.range.total=r}}function c(e){return a.test(e)&&0<e&&e<=t.pagination.last}var p=r.paginationId||l,d=t.paginationId||r.paginationId||l;if(!e.isRegistered(d)&&!e.isRegistered(p)){var f=d!==l?" (id: "+d+") ":" ";window.console&&console.warn("Pagination directive: the pagination controls"+f+"cannot be used without the corresponding pagination directive, which was not found at link time.")}t.maxSize||(t.maxSize=9),t.autoHide=void 0===t.autoHide||t.autoHide,t.directionLinks=!angular.isDefined(r.directionLinks)||t.$parent.$eval(r.directionLinks),t.boundaryLinks=!!angular.isDefined(r.boundaryLinks)&&t.$parent.$eval(r.boundaryLinks);var h=Math.max(t.maxSize,5);t.pages=[],t.pagination={last:1,current:1},t.range={lower:1,upper:1,total:1},t.$watch("maxSize",function(e){e&&(h=Math.max(t.maxSize,5),s())}),t.$watch(function(){if(e.isRegistered(d))return(e.getCollectionLength(d)+1)*e.getItemsPerPage(d)},function(e){0<e&&s()}),t.$watch(function(){if(e.isRegistered(d))return e.getItemsPerPage(d)},function(e,n){e!=n&&void 0!==n&&o(t.pagination.current)}),t.$watch(function(){if(e.isRegistered(d))return e.getCurrentPage(d)},function(e,t){e!=t&&o(e)}),t.setCurrent=function(t){e.isRegistered(d)&&c(t)&&(t=parseInt(t,10),e.setCurrentPage(d,t))},t.tracker=function(e,t){return e+"_"+t}}function i(e,t,n,i){var a,o=[],s=Math.ceil(t/n),l=Math.ceil(i/2);a=e<=l?"start":s-l<e?"end":"middle";for(var u=i<s,c=1;c<=s&&c<=i;){var p=r(c,e,i,s),d=2===c&&("middle"===a||"end"===a),f=c===i-1&&("middle"===a||"start"===a);u&&(d||f)?o.push("..."):o.push(p),c++}return o}function r(e,t,n,i){var r=Math.ceil(n/2);return e===n?i:1===e?e:n<i?i-r<t?i-n+e:r<t?t-r+e:e:e}var a=/^\d+$/,o={restrict:"AE",scope:{maxSize:"=?",onPageChange:"&?",paginationId:"=?",autoHide:"=?"},link:n},s=t.getString();return void 0!==s?o.template=s:o.templateUrl=function(e,n){return n.templateUrl||t.getPath()},o}function r(e){return function(t,n,i){if(void 0===i&&(i=l),!e.isRegistered(i))throw"pagination directive: the itemsPerPage id argument (id: "+i+") does not match a registered pagination-id.";var r,o;if(angular.isObject(t)){if(n=parseInt(n)||9999999999,o=e.isAsyncMode(i)?0:(e.getCurrentPage(i)-1)*n,r=o+n,e.setItemsPerPage(i,n),t instanceof Array)return t.slice(o,r);var s={};return angular.forEach(a(t).slice(o,r),function(e){s[e]=t[e]}),s}return t}}function a(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function o(){var e,t={};this.registerInstance=function(n){void 0===t[n]&&(t[n]={asyncMode:!1},e=n)},this.deregisterInstance=function(e){delete t[e]},this.isRegistered=function(e){return void 0!==t[e]},this.getLastInstanceId=function(){return e},this.setCurrentPageParser=function(e,n,i){t[e].currentPageParser=n,t[e].context=i},this.setCurrentPage=function(e,n){t[e].currentPageParser.assign(t[e].context,n)},this.getCurrentPage=function(e){var n=t[e].currentPageParser;return n?n(t[e].context):1},this.setItemsPerPage=function(e,n){t[e].itemsPerPage=n},this.getItemsPerPage=function(e){return t[e].itemsPerPage},this.setCollectionLength=function(e,n){t[e].collectionLength=n},this.getCollectionLength=function(e){return t[e].collectionLength},this.setAsyncModeTrue=function(e){t[e].asyncMode=!0},this.setAsyncModeFalse=function(e){t[e].asyncMode=!1},this.isAsyncMode=function(e){return t[e].asyncMode}}function s(){var e,t="angularUtils.directives.dirPagination.template";this.setPath=function(e){t=e},this.setString=function(t){e=t},this.$get=function(){return{getPath:function(){return t},getString:function(){return e}}}}var l="__default";angular.module("angularUtils.directives.dirPagination",[]).directive("dirPaginate",["$compile","$parse","paginationService",e]).directive("dirPaginateNoCompile",t).directive("dirPaginationControls",["paginationService","paginationTemplate",i]).filter("itemsPerPage",["paginationService",r]).service("paginationService",o).provider("paginationTemplate",s).run(["$templateCache",n])}(),!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(e){return function(t,n){if("__setXHR_"===t){var i=n(this);i instanceof Function&&i(this)}else e.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13",ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function i(i){function r(e){u.notify&&u.notify(e),c.progressFunc&&n(function(){c.progressFunc(e)})}function s(e){return null!=i._start&&o?{loaded:e.loaded+i._start,total:i._file&&i._file.size||e.total,type:e.type,config:i,lengthComputable:!0,target:e.target}:e}function l(){e(i).then(function(e){if(o&&i._chunkSize&&!i._finished&&i._file){var t=i._file&&i._file.size||0;r({loaded:Math.min(i._end,t),total:t,config:i,type:"progress"}),a.upload(i,!0)}else i._finished&&delete i._finished,u.resolve(e)},function(e){u.reject(e)},function(e){u.notify(e)})}i.method=i.method||"POST",i.headers=i.headers||{};var u=i._deferred=i._deferred||t.defer(),c=u.promise;return i.disableProgress||(i.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(i.__XHR=e,i.xhrFn&&i.xhrFn(e),e.upload.addEventListener("progress",function(e){e.config=i,r(s(e))},!1),e.upload.addEventListener("load",function(e){e.lengthComputable&&(e.config=i,r(s(e)))},!1))}}),o?i._chunkSize&&i._end&&!i._finished?(i._start=i._end,i._end+=i._chunkSize,l()):i.resumeSizeUrl?e.get(i.resumeSizeUrl).then(function(e){i.resumeSizeResponseReader?i._start=i.resumeSizeResponseReader(e.data):i._start=parseInt((null==e.data.size?e.data:e.data.size).toString()),i._chunkSize&&(i._end=i._start+i._chunkSize),l()},function(e){throw e}):i.resumeSize?i.resumeSize().then(function(e){i._start=e,i._chunkSize&&(i._end=i._start+i._chunkSize),l()},function(e){throw e}):(i._chunkSize&&(i._start=0,i._end=i._start+i._chunkSize),l()):l(),c.success=function(e){return c.then(function(t){e(t.data,t.status,t.headers,i)}),c},c.error=function(e){return c.then(null,function(t){e(t.data,t.status,t.headers,i)}),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,function(t){e(t)}),c},c.abort=c.pause=function(){return i.__XHR&&n(function(){i.__XHR.abort()}),c},c.xhr=function(e){return i.xhrFn=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(i.xhrFn),c},a.promisesCount++,c.finally&&c.finally instanceof Function&&c.finally(function(){a.promisesCount--}),c}function r(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var a=this;a.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var o=this.isResumeSupported();this.isUploadInProgress=function(){return a.promisesCount>0},this.rename=function(e,t){return e.ngfName=t,e},this.jsonBlob=function(e){null==e||angular.isString(e)||(e=JSON.stringify(e));var t=new window.Blob([e],{type:"application/json"});return t._ngfBlob=!0,t},this.json=function(e){return angular.toJson(e)},this.isFile=function(e){return null!=e&&(e instanceof window.Blob||e.flashId&&e.name&&e.size)},this.upload=function(e,t){function n(t,n){if(t._ngfBlob)return t;if(e._file=e._file||t,null!=e._start&&o){e._end&&e._end>=t.size&&(e._finished=!0,e._end=t.size);var i=t.slice(e._start,e._end||t.size);return i.name=t.name,i.ngfName=t.ngfName,e._chunkSize&&(n.append("_chunkSize",e._chunkSize),n.append("_currentChunkSize",e._end-e._start),n.append("_chunkNumber",Math.floor(e._start/e._chunkSize)),n.append("_totalSize",e._file.size)),i}return t}function s(t,i,r){if(void 0!==i)if(angular.isDate(i)&&(i=i.toISOString()),angular.isString(i))t.append(r,i);else if(a.isFile(i)){var o=n(i,t),l=r.split(",");l[1]&&(o.ngfName=l[1].replace(/^\s+|\s+$/g,""),r=l[0]),e._fileKey=e._fileKey||r,t.append(r,o,o.ngfName||o.name)}else if(angular.isObject(i)){if(i.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+r;i.$$ngfCircularDetection=!0;try{for(var u in i)if(i.hasOwnProperty(u)&&"$$ngfCircularDetection"!==u){var c=null==e.objectKey?"[i]":e.objectKey;i.length&&parseInt(u)>-1&&(c=null==e.arrayKey?c:e.arrayKey),s(t,i[u],r+c.replace(/[ik]/g,u))}}finally{delete i.$$ngfCircularDetection}}else t.append(r,i)}return t||(e=r(e)),e._isDigested||(e._isDigested=!0,function(){e._chunkSize=a.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push(function(t){var n,i=new window.FormData;t=t||e.fields||{},e.file&&(t.file=e.file);for(n in t)if(t.hasOwnProperty(n)){var r=t[n];e.formDataAppender?e.formDataAppender(i,n,r):s(i,r,n)}return i})}()),i(e)},this.http=function(t){return t=r(t),t.transformRequest=t.transformRequest||function(t){
  return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=a.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,i(t)},this.translateScalars=function(e){if(angular.isString(e)){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e},this.urlToBlob=function(n){var i=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then(function(e){var t=new Uint8Array(e.data),r=e.headers("content-type")||"image/WebP",a=new window.Blob([t],{type:r}),o=n.match(/.*\/(.+?)(\?.*)?$/);o.length>1&&(a.name=o[1]),i.resolve(a)},function(e){i.reject(e)}),i.promise},this.setDefaults=function(e){this.defaults=e||{}},this.defaults={},this.version=ngFileUpload.version}]),ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(e,t,n,i,r){function a(e,t,n){var r=[l.emptyPromise()];return angular.forEach(e,function(i,a){0===i.type.indexOf("image/jpeg")&&l.attrGetter("ngfFixOrientation",t,n,{$file:i})&&r.push(l.happyPromise(l.applyExifRotation(i),i).then(function(t){e.splice(a,1,t)}))}),i.all(r)}function o(e,t,n,r){var a=l.attrGetter("ngfResize",t,n);if(!a||!l.isResizeSupported()||!e.length)return l.emptyPromise();if(a instanceof Function){var o=i.defer();return a(e).then(function(i){s(i,e,t,n,r).then(function(e){o.resolve(e)},function(e){o.reject(e)})},function(e){o.reject(e)})}return s(a,e,t,n,r)}function s(e,t,n,r,a){for(var o=[l.emptyPromise()],s=0;s<t.length;s++)!function(i,s){if(0===i.type.indexOf("image")){if(e.pattern&&!l.validatePattern(i,e.pattern))return;e.resizeIf=function(e,t){return l.attrGetter("ngfResizeIf",n,r,{$width:e,$height:t,$file:i})};var u=l.resize(i,e);o.push(u),u.then(function(e){t.splice(s,1,e)},function(e){i.$error="resize",(i.$errorMessages=i.$errorMessages||{}).resize=!0,i.$errorParam=(e?(e.message?e.message:e)+": ":"")+(i&&i.name),a.$ngfValidations.push({name:"resize",valid:!1}),l.applyModelValidation(a,t)})}}(t[s],s);return i.all(o)}var l=r;return l.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=l.defaults[t];return null==n?n:angular.isString(n)?n:JSON.stringify(n)},l.attrGetter=function(t,n,i,r){var a=this.getAttrWithDefaults(n,t);if(!i)return a;try{return r?e(a)(i,r):e(a)(i)}catch(e){if(t.search(/min|max|pattern/i))return a;throw e}},l.shouldUpdateOn=function(e,t,n){var i=l.attrGetter("ngfModelOptions",t,n);return!i||!i.updateOn||i.updateOn.split(" ").indexOf(e)>-1},l.emptyPromise=function(){var e=i.defer(),n=arguments;return t(function(){e.resolve.apply(e,n)}),e.promise},l.rejectPromise=function(){var e=i.defer(),n=arguments;return t(function(){e.reject.apply(e,n)}),e.promise},l.happyPromise=function(e,n){var r=i.defer();return e.then(function(e){r.resolve(e)},function(e){t(function(){throw e}),r.resolve(n)}),r.promise},l.updateModel=function(n,i,r,s,u,c,p){function d(a,o,u,p,d){i.$$ngfPrevValidFiles=a,i.$$ngfPrevInvalidFiles=o;var f=a&&a.length?a[0]:null,h=o&&o.length?o[0]:null;n&&(l.applyModelValidation(n,a),n.$setViewValue(d?f:a)),s&&e(s)(r,{$files:a,$file:f,$newFiles:u,$duplicateFiles:p,$invalidFiles:o,$invalidFile:h,$event:c});var g=l.attrGetter("ngfModelInvalid",i);g&&t(function(){e(g).assign(r,d?h:o)}),t(function(){})}function f(){function e(){t(function(){d(y?g.concat(b):b,y?m.concat($):$,u,v,w)},k&&k.debounce?k.debounce.change||k.debounce:0)}var a=x?h:b;o(a,i,r,n).then(function(){x?l.validate(h,y?g.length:0,n,i,r).then(function(t){b=t.validsFiles,$=t.invalidsFiles,e()}):e()},function(){for(var t=0;t<a.length;t++){var n=a[t];if("resize"===n.$error){var i=b.indexOf(n);i>-1&&(b.splice(i,1),$.push(n)),e()}}})}var h,g,m,v=[],$=[],b=[];g=i.$$ngfPrevValidFiles||[],m=i.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(g=function(e){return angular.isArray(e)?e:[e]}(n.$modelValue));var y=l.attrGetter("ngfKeep",i,r);h=(u||[]).slice(0),"distinct"!==y&&!0!==l.attrGetter("ngfKeepDistinct",i,r)||function(){function e(e,t){return e.name===t.name&&(e.$ngfOrigSize||e.size)===(t.$ngfOrigSize||t.size)&&e.type===t.type}if(u){h=[],v=[];for(var t=0;t<u.length;t++)!function(t){var n;for(n=0;n<g.length;n++)if(e(t,g[n]))return!0;for(n=0;n<m.length;n++)if(e(t,m[n]))return!0;return!1}(u[t])?h.push(u[t]):v.push(u[t])}}();var w=!y&&!l.attrGetter("ngfMultiple",i,r)&&!l.attrGetter("multiple",i);if(!y||h.length){l.attrGetter("ngfBeforeModelChange",i,r,{$files:u,$file:u&&u.length?u[0]:null,$newFiles:h,$duplicateFiles:v,$event:c});var x=l.attrGetter("ngfValidateAfterResize",i,r),k=l.attrGetter("ngfModelOptions",i,r);l.validate(h,y?g.length:0,n,i,r).then(function(e){p?d(h,[],u,v,w):(k&&k.allowInvalid||x?b=h:(b=e.validFiles,$=e.invalidFiles),l.attrGetter("ngfFixOrientation",i,r)&&l.isExifSupported()?a(b,i,r).then(function(){f()}):f())})}},l}]),ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,i){function r(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=i.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return-1===e.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(e)}function a(e,t,n,i,a,s,l,u){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function p(){return $("ngfChange")||$("ngfSelect")}function d(t){if(u.shouldUpdateOn("change",n,e)){var r=t.__files_||t.target&&t.target.files,a=[];if(!r)return;for(var o=0;o<r.length;o++)a.push(r[o]);u.updateModel(i,n,e,p(),a.length?a:null,t)}}function f(e,i){function r(t){e.attr("id","ngf-"+t),i.attr("id","ngf-label-"+t)}for(var a=0;a<t[0].attributes.length;a++){var o=t[0].attributes[a];"type"!==o.name&&"class"!==o.name&&"style"!==o.name&&("id"===o.name?(r(o.value),b.push(n.$observe("id",r))):e.attr(o.name,o.value||"required"!==o.name&&"multiple"!==o.name?o.value:o.name))}}function h(n){if(t.attr("disabled"))return!1;if(!$("ngfSelectDisabled",e)){var i=g(n);if(null!=i)return i;m(n);try{c()||document.body.contains(x[0])||(o.push({el:t,ref:x.parent()}),document.body.appendChild(x.parent()[0]),x.bind("change",d))}catch(e){}return r(navigator.userAgent)?setTimeout(function(){x[0].click()},0):x[0].click(),!1}}function g(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if(t){if("touchstart"===e.type)return w=t[0].clientX,y=t[0].clientY,!0;if("touchend"===e.type){var n=t[0].clientX,i=t[0].clientY;if(Math.abs(n-w)>20||Math.abs(i-y)>20)return e.stopPropagation(),e.preventDefault(),!1}return!0}}function m(t){u.shouldUpdateOn("click",n,e)&&x.val()&&(x.val(null),u.updateModel(i,n,e,p(),null,t,!0))}function v(e){if(x&&!x.attr("__ngf_ie10_Fix_")){if(!x[0].parentNode)return void(x=null);e.preventDefault(),e.stopPropagation(),x.unbind("click");var t=x.clone();return x.replaceWith(t),x=t,x.attr("__ngf_ie10_Fix_","true"),x.bind("change",d),x.bind("click",v),x[0].click(),!1}x.removeAttr("__ngf_ie10_Fix_")}var $=function(e,t){return u.attrGetter(e,n,t)};u.registerModelChangeValidator(i,n,e);var b=[];$("ngfMultiple")&&b.push(e.$watch($("ngfMultiple"),function(){x.attr("multiple",$("ngfMultiple",e))})),$("ngfCapture")&&b.push(e.$watch($("ngfCapture"),function(){x.attr("capture",$("ngfCapture",e))})),$("ngfAccept")&&b.push(e.$watch($("ngfAccept"),function(){x.attr("accept",$("ngfAccept",e))})),b.push(n.$observe("accept",function(){x.attr("accept",$("accept"))}));var y=0,w=0,x=t;c()||(x=function(){if(c())return t;var e=angular.element('<input type="file">'),n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),f(e,n),o.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),x.bind("change",d),c()?t.bind("click",m):t.bind("click touchstart touchend",h),-1!==navigator.appVersion.indexOf("MSIE 10")&&x.bind("click",v),i&&i.$formatters.push(function(e){return null!=e&&0!==e.length||x.val()&&x.val(null),e}),e.$on("$destroy",function(){c()||x.parent().remove(),angular.forEach(b,function(e){e()})}),s(function(){for(var e=0;e<o.length;e++){var t=o[e];document.body.contains(t.el[0])||(o.splice(e,1),t.ref.remove())}}),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,x,d)}var o=[];return{restrict:"AEC",require:"?ngModel",link:function(r,o,s,l){a(r,o,s,l,e,t,n,i)}}}]),function(){function e(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}function t(t,n,i,r,a,o,s,l){function u(e){var o=t.attrGetter("ngfNoObjectUrl",a,i);t.dataUrl(e,o).finally(function(){n(function(){var t=(o?e.$ngfDataUrl:e.$ngfBlobUrl)||e.$ngfDataUrl;l?r.css("background-image","url('"+(t||"")+"')"):r.attr("src",t),t?r.removeClass("ng-hide"):r.addClass("ng-hide")})})}n(function(){var n=i.$watch(a[o],function(n){var c=s;if("ngfThumbnail"===o&&(c||(c={width:r[0].naturalWidth||r[0].clientWidth,height:r[0].naturalHeight||r[0].clientHeight}),0===c.width&&window.getComputedStyle)){var p=getComputedStyle(r[0]);p.width&&p.width.indexOf("px")>-1&&p.height&&p.height.indexOf("px")>-1&&(c={width:parseInt(p.width.slice(0,-2)),height:parseInt(p.height.slice(0,-2))})}if(angular.isString(n))return r.removeClass("ng-hide"),l?r.css("background-image","url('"+n+"')"):r.attr("src",n);!n||!n.type||0!==n.type.search(e(r[0]))||l&&0!==n.type.indexOf("image")?r.addClass("ng-hide"):c&&t.isResizeSupported()?(c.resizeIf=function(e,r){return t.attrGetter("ngfResizeIf",a,i,{$width:e,$height:r,$file:n})},t.resize(n,c).then(function(e){u(e)},function(e){throw e})):u(n)});i.$on("$destroy",function(){n()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var i=e;return i.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),r=0;return angular.forEach(e,function(n){i.dataUrl(n,!0).finally(function(){if(++r===e.length){var n=[];angular.forEach(e,function(e){n.push(e.$ngfDataUrl)}),t.resolve(n,e)}})}),t.promise}return i.dataUrl(e,!0)},i.dataUrl=function(e,r){if(!e)return i.emptyPromise(e,e);if(r&&null!=e.$ngfDataUrl||!r&&null!=e.$ngfBlobUrl)return i.emptyPromise(r?e.$ngfDataUrl:e.$ngfBlobUrl,e);var a=r?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(a)return a;var o=n.defer();return t(function(){if(window.FileReader&&e&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||e.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!r){var a;try{a=n.createObjectURL(e)}catch(n){return void t(function(){e.$ngfBlobUrl="",o.reject()})}t(function(){if(e.$ngfBlobUrl=a,a){o.resolve(a,e),i.blobUrls=i.blobUrls||[],i.blobUrlsTotalSize=i.blobUrlsTotalSize||0,i.blobUrls.push({url:a,size:e.size}),i.blobUrlsTotalSize+=e.size||0;for(var t=i.defaults.blobUrlsMaxMemory||268435456,r=i.defaults.blobUrlsMaxQueueSize||200;(i.blobUrlsTotalSize>t||i.blobUrls.length>r)&&i.blobUrls.length>1;){var s=i.blobUrls.splice(0,1)[0];n.revokeObjectURL(s.url),i.blobUrlsTotalSize-=s.size}}})}else{var s=new FileReader;s.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,o.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},s.onerror=function(){t(function(){e.$ngfDataUrl="",o.reject()})},s.readAsDataURL(e)}}else t(function(){e[r?"$ngfDataUrl":"$ngfBlobUrl"]="",o.reject()})}),a=r?e.$$ngfDataUrlPromise=o.promise:e.$$ngfBlobUrlPromise=o.promise,a.finally(function(){delete e[r?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),a},i}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,a){t(e,n,i,r,a,"ngfSrc",e.attrGetter("ngfResize",a,i),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,a){t(e,n,i,r,a,"ngfBackground",e.attrGetter("ngfResize",a,i),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,a){var o=e.attrGetter("ngfSize",a,i);t(e,n,i,r,a,"ngfThumbnail",o,e.attrGetter("ngfAsBackground",a,i))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,i,r){if(angular.isString(n))return t.trustAsResourceUrl(n);var a=n&&((i?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!a?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,i)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&a?r?t.trustAsResourceUrl(a):a:n)||"")}}])}(),ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){function i(e){var t="",n=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var r=e.split(",");if(r.length>1)for(var a=0;a<r.length;a++){var o=i(r[a]);o.regexp?(t+="("+o.regexp+")",a<r.length-1&&(t+="|")):n=n.concat(o.excludes)}else 0===e.indexOf("!")?n.push("^((?!"+i(e.substring(1)).regexp+").)*$"):(0===e.indexOf(".")&&(e="*"+e),t="^"+e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}function r(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)}var a=e;return a.validatePattern=function(e,t){if(!t)return!0;var n=i(t),r=!0;if(n.regexp&&n.regexp.length){var a=new RegExp(n.regexp,"i");r=null!=e.type&&a.test(e.type)||null!=e.name&&a.test(e.name)}for(var o=n.excludes.length;o--;){var s=new RegExp(n.excludes[o],"i");r=r&&(null==e.type||s.test(e.type))&&(null==e.name||s.test(e.name))}return r},a.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return t=n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},a.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(i){if(e.$dirty){var r=i;i&&!angular.isArray(i)&&(r=[i]),a.validate(r,0,e,t,n).then(function(){a.applyModelValidation(e,r)})}return i})},a.applyModelValidation=function(e,t){r(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},a.getValidationAttr=function(e,t,n,i,r){var o="ngf"+n[0].toUpperCase()+n.substr(1),s=a.attrGetter(o,e,t,{$file:r});if(null==s&&(s=a.attrGetter("ngfValidate",e,t,{$file:r}))){var l=(i||n).split(".");s=s[l[0]],l.length>1&&(s=s&&s[l[1]])}return s},a.validate=function(e,n,i,r,o){function s(t,n,s){if(e){for(var l=e.length,u=null;l--;){var f=e[l];if(f){var h=a.getValidationAttr(r,o,t,n,f);null!=h&&(s(f,h,l)||(-1===c.indexOf(t)?(f.$error=t,(f.$errorMessages=f.$errorMessages||{})[t]=!0,f.$errorParam=h,-1===d.indexOf(f)&&d.push(f),p||e.splice(l,1),u=!1):e.splice(l,1)))}}null!==u&&i.$ngfValidations.push({name:t,valid:u})}}function l(n,s,l,f,h){function g(t,i,r){function a(a){if(a())if(-1===c.indexOf(n)){if(i.$error=n,(i.$errorMessages=i.$errorMessages||{})[n]=!0,i.$errorParam=r,-1===d.indexOf(i)&&d.push(i),!p){var o=e.indexOf(i);o>-1&&e.splice(o,1)}t.resolve(!1)}else{var s=e.indexOf(i);s>-1&&e.splice(s,1),t.resolve(!0)}else t.resolve(!0)}null!=r?f(i,r).then(function(e){a(function(){return!h(e,r)})},function(){a(function(){return u("ngfValidateForce",{$file:i})})}):t.resolve(!0)}var m=[a.emptyPromise(!0)];e&&(e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var i=t.defer();if(m.push(i.promise),l&&(null==e.type||0!==e.type.search(l)))return void i.resolve(!0);"dimensions"===n&&null!=a.attrGetter("ngfDimensions",r)?a.imageDimensions(e).then(function(t){g(i,e,u("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){i.resolve(!1)}):"duration"===n&&null!=a.attrGetter("ngfDuration",r)?a.mediaDuration(e).then(function(t){g(i,e,u("ngfDuration",{$file:e,$duration:t}))},function(){i.resolve(!1)}):g(i,e,a.getValidationAttr(r,o,n,s,e))}));var v=t.defer();return t.all(m).then(function(e){for(var t=!0,r=0;r<e.length;r++)if(!e[r]){t=!1;break}i.$ngfValidations.push({name:n,valid:t}),v.resolve(t)}),v.promise}i=i||{},i.$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,function(e){e.valid=!0});var u=function(e,t){return a.attrGetter(e,r,o,t)},c=(a.attrGetter("ngfIgnoreInvalid",r,o)||"").split(" "),p=a.attrGetter("ngfRunAllValidations",r,o);if(null==e||0===e.length)return a.emptyPromise({validFiles:e,invalidFiles:[]});e=void 0===e.length?[e]:e.slice(0);var d=[];s("pattern",null,a.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=a.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=a.translateScalars(t)});var f=0;if(s("maxTotalSize",null,function(t,n){return!((f+=t.size)>a.translateScalars(n))||(e.splice(0,e.length),!1)}),s("validateFn",null,function(e,t){return!0===t||null===t||""===t}),!e.length)return a.emptyPromise({validFiles:[],invalidFiles:d});var h=t.defer(),g=[];return g.push(l("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t})),g.push(l("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t})),g.push(l("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t})),g.push(l("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t})),g.push(l("dimensions",null,/image/,function(e,t){return a.emptyPromise(t)},function(e){return e})),g.push(l("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),i=!1,r=0;r<n.length;r++)Math.abs(e.width/e.height-a.ratioToFloat(n[r]))<.01&&(i=!0);return i})),g.push(l("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-a.ratioToFloat(t)<1e-4})),g.push(l("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-a.ratioToFloat(t)>-1e-4})),g.push(l("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=a.translateScalars(t)})),g.push(l("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=a.translateScalars(t)})),g.push(l("duration",null,/audio|video/,function(e,t){return a.emptyPromise(t)},function(e){return e})),g.push(l("validateAsyncFn",null,null,function(e,t){return t},function(e){return!0===e||null===e||""===e})),t.all(g).then(function(){if(p)for(var t=0;t<e.length;t++){var i=e[t];i.$error&&e.splice(t--,1)}p=!1,s("maxFiles",null,function(e,t,i){return n+i<t}),h.resolve({validFiles:e,invalidFiles:d})}),h.promise},a.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var i=t.defer();return n(function(){i.resolve({width:e.$ngfWidth,height:e.$ngfHeight})}),i.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var r=t.defer();return n(function(){if(0!==e.type.indexOf("image"))return void r.reject("not image");a.dataUrl(e).then(function(t){function i(){var t=s[0].naturalWidth||s[0].clientWidth,n=s[0].naturalHeight||s[0].clientHeight;s.remove(),e.$ngfWidth=t,e.$ngfHeight=n,r.resolve({width:t,height:n})}function a(){s.remove(),r.reject("load error")}function o(){n(function(){s[0].parentNode&&(s[0].clientWidth?i():l++>10?a():o())},1e3)}var s=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");s.on("load",i),s.on("error",a);var l=0;o(),angular.element(document.getElementsByTagName("body")[0]).append(s)},function(){r.reject("load error")})}),e.$ngfDimensionPromise=r.promise,e.$ngfDimensionPromise.finally(function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},a.mediaDuration=function(e){if(e.$ngfDuration){var i=t.defer();return n(function(){i.resolve(e.$ngfDuration)}),i.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var r=t.defer();return n(function(){if(0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video"))return void r.reject("not media");a.dataUrl(e).then(function(t){function i(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),r.resolve(t)}function a(){s.remove(),r.reject("load error")}function o(){n(function(){s[0].parentNode&&(s[0].duration?i():l>10?a():o())},1e3)}var s=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");s.on("loadedmetadata",i),s.on("error",a);var l=0;o(),angular.element(document.body).append(s)},function(){r.reject("load error")})}),e.$ngfDurationPromise=r.promise,e.$ngfDurationPromise.finally(function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},a}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,i=function(e,t,n,i,r){var a=r?Math.max(n/e,i/t):Math.min(n/e,i/t);return{width:e*a,height:t*a,marginX:e*a-n,marginY:t*a-i}},r=function(e,r,a,o,s,l,u,c){var p=t.defer(),d=document.createElement("canvas"),f=document.createElement("img");return f.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(f),f.onload=function(){var e=f.width,t=f.height;if(f.parentNode.removeChild(f),null!=c&&!1===c(e,t))return void p.reject("resizeIf");try{if(l){var h=n.ratioToFloat(l);e/t<h?(r=e,a=r/h):(a=t,r=a*h)}r||(r=e),a||(a=t);var g=i(e,t,r,a,u);d.width=Math.min(g.width,r),d.height=Math.min(g.height,a);d.getContext("2d").drawImage(f,Math.min(0,-g.marginX/2),Math.min(0,-g.marginY/2),g.width,g.height),p.resolve(d.toDataURL(s||"image/WebP",o||.934))}catch(e){p.reject(e)}},f.onerror=function(){f.parentNode.removeChild(f),p.reject()},f.src=e,p.promise};return n.dataUrltoBlob=function(e,t,n){for(var i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=atob(i[1]),o=a.length,s=new Uint8Array(o);o--;)s[o]=a.charCodeAt(o);var l=new window.Blob([s],{type:r});return l.name=t,l.$ngfOrigSize=n,l},n.isResizeSupported=function(){var e=document.createElement("canvas");return window.atob&&e.getContext&&e.getContext("2d")&&window.Blob},n.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(e){this.$ngfName=e},configurable:!0}),n.resize=function(e,i){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var a=t.defer();return n.dataUrl(e,!0).then(function(t){r(t,i.width,i.height,i.quality,i.type||e.type,i.ratio,i.centerCrop,i.resizeIf).then(function(r){if("image/jpeg"===e.type&&!1!==i.restoreExif)try{r=n.restoreExif(t,r)}catch(e){setTimeout(function(){throw e},1)}try{var o=n.dataUrltoBlob(r,e.name,e.size);a.resolve(o)}catch(e){a.reject(e)}},function(t){"resizeIf"===t&&a.resolve(e),a.reject(t)})},function(e){a.reject(e)}),a.promise},n}]),function(){function e(e,n,i,r,a,o,s,l,u,c){function p(){return n.attr("disabled")||$("ngfDropDisabled",e)}function d(t,n,i){if(t){var r;try{r=t&&t.getData&&t.getData("text/html")}catch(e){}m(t.items,t.files,!1!==$("ngfAllowDir",e),$("multiple")||$("ngfMultiple",e)).then(function(e){e.length?f(e,n):h(i,r).then(function(e){f(e,n)})})}}function f(t,n){l.updateModel(r,i,e,$("ngfChange")||$("ngfDrop"),t,n)}function h(t,n){if(!l.shouldUpdateOn(t,i,e)||"string"!=typeof n)return l.rejectPromise([]);var r=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(e,t,n){r.push(n)});var a=[],o=[];if(r.length){angular.forEach(r,function(e){a.push(l.urlToBlob(e).then(function(e){o.push(e)}))});var s=c.defer();return c.all(a).then(function(){s.resolve(o)},function(e){s.reject(e)}),s.promise}return l.emptyPromise()}function g(e,t,n,i){var r=$("ngfDragOverClass",e,{$event:n}),a="dragover";if(angular.isString(r))a=r;else if(r&&(r.delay&&(x=r.delay),r.accept||r.reject)){var o=n.dataTransfer.items;if(null!=o&&o.length)for(var s=r.pattern||$("ngfPattern",e,{$event:n}),u=o.length;u--;){if(!l.validatePattern(o[u],s)){a=r.reject;break}a=r.accept}else a=r.accept}i(a)}function m(t,n,r,a){function o(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var i=[l.emptyPromise()];if(d){var r={type:"directory"};r.name=r.path=(t||"")+e.name,f.push(r)}var a=e.createReader(),s=[],g=function(){a.readEntries(function(r){try{r.length?(s=s.concat(Array.prototype.slice.call(r||[],0)),g()):(angular.forEach(s.slice(0),function(n){f.length<=u&&h<=p&&i.push(o(n,(t||"")+e.name+"/"))}),c.all(i).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(e){n.reject(e)}},function(e){n.reject(e)})};g()}else e.file(function(e){try{e.path=(t||"")+e.name,d&&(e=l.rename(e,e.path)),f.push(e),h+=e.size,n.resolve()}catch(e){n.reject(e)}},function(e){n.reject(e)});return n.promise}var u=l.getValidationAttr(i,e,"maxFiles");null==u&&(u=Number.MAX_VALUE);var p=l.getValidationAttr(i,e,"maxTotalSize");null==p&&(p=Number.MAX_VALUE);var d=$("ngfIncludeDir",e),f=[],h=0,g=[l.emptyPromise()];if(t&&t.length>0&&"file:"!==s.location.protocol)for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var v=t[m].webkitGetAsEntry();if(v.isDirectory&&!r)continue;null!=v&&g.push(o(v))}else{var b=t[m].getAsFile();null!=b&&(f.push(b),h+=b.size)}if(f.length>u||h>p||!a&&f.length>0)break}else if(null!=n)for(var y=0;y<n.length;y++){var w=n.item(y);if((w.type||w.size>0)&&(f.push(w),h+=w.size),f.length>u||h>p||!a&&f.length>0)break}var x=c.defer();return c.all(g).then(function(){if(a||d||!f.length)x.resolve(f);else{for(var e=0;f[e]&&"directory"===f[e].type;)e++;x.resolve([f[e]])}},function(e){x.reject(e)}),x.promise}var v=t(),$=function(e,t,n){return l.attrGetter(e,i,t,n)};if($("dropAvailable")&&o(function(){e[$("dropAvailable")]?e[$("dropAvailable")].value=v:e[$("dropAvailable")]=v}),!v)return void(!0===$("ngfHideOnDropNotAvailable",e)&&n.css("display","none"));null==$("ngfSelect")&&l.registerModelChangeValidator(r,i,e);var b,y=null,w=a($("ngfStopPropagation")),x=1;n[0].addEventListener("dragover",function(t){if(!p()&&l.shouldUpdateOn("drop",i,e)){if(t.preventDefault(),w(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var r=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy"}o.cancel(y),b||(b="C",g(e,i,t,function(i){b=i,n.addClass(b),$("ngfDrag",e,{$isDragging:!0,$class:b,$event:t})}))}},!1),n[0].addEventListener("dragenter",function(t){!p()&&l.shouldUpdateOn("drop",i,e)&&(t.preventDefault(),w(e)&&t.stopPropagation())},!1),n[0].addEventListener("dragleave",function(t){!p()&&l.shouldUpdateOn("drop",i,e)&&(t.preventDefault(),w(e)&&t.stopPropagation(),y=o(function(){b&&n.removeClass(b),b=null,$("ngfDrag",e,{$isDragging:!1,$event:t})},x||100))},!1),n[0].addEventListener("drop",function(t){!p()&&l.shouldUpdateOn("drop",i,e)&&(t.preventDefault(),w(e)&&t.stopPropagation(),b&&n.removeClass(b),b=null,d(t.dataTransfer,t,"dropUrl"))},!1),n[0].addEventListener("paste",function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&$("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!p()&&l.shouldUpdateOn("paste",i,e)&&d(t.clipboardData||t.originalEvent.clipboardData,t,"pasteUrl")},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&$("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(t,n,i,r,a,o){return{restrict:"AEC",require:"?ngModel",link:function(s,l,u,c){e(s,l,u,c,t,n,i,r,a,o)}}}]),ngFileUpload.directive("ngfNoFileDrop",function(){return function(e,n){t()&&n.css("display","none")}}),ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,i){return function(r,a,o){if(t()){var s=e(i.attrGetter("ngfDropAvailable",o));n(function(){s(r),s.assign&&s.assign(r,!0)})}}}])}(),ngFileUpload.service("UploadExif",["UploadResize","$q",function(e,t){function n(e,t,n,i){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,i);case 4:return e.transform(1,0,0,-1,0,i);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,i,0);case 7:return e.transform(0,-1,-1,0,i,n);case 8:return e.transform(0,-1,1,0,0,n)}}function i(e){for(var t="",n=new Uint8Array(e),i=n.byteLength,r=0;r<i;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)}var r=e;return r.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&r.isResizeSupported()},r.readOrientation=function(e){var n=t.defer(),i=new FileReader,r=e.slice?e.slice(0,65536):e;return i.readAsArrayBuffer(r),i.onerror=function(e){return n.reject(e)},i.onload=function(e){var t={orientation:1},i=new DataView(this.result);if(65496!==i.getUint16(0,!1))return n.resolve(t);for(var r=i.byteLength,a=2;a<r;){var o=i.getUint16(a,!1);if(a+=2,65505===o){if(1165519206!==i.getUint32(a+=2,!1))return n.resolve(t);var s=18761===i.getUint16(a+=6,!1);a+=i.getUint32(a+4,s);var l=i.getUint16(a,s);a+=2;for(var u=0;u<l;u++)if(274===i.getUint16(a+12*u,s)){var c=i.getUint16(a+12*u+8,s);return c>=2&&c<=8&&(i.setUint16(a+12*u+8,1,s),t.fixedArrayBuffer=e.target.result),t.orientation=c,n.resolve(t)}}else{if(65280!=(65280&o))break;a+=i.getUint16(a,!1)}}return n.resolve(t)},n.promise},r.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return r.emptyPromise(e);var a=t.defer();return r.readOrientation(e).then(function(t){if(t.orientation<2||t.orientation>8)return a.resolve(e);r.dataUrl(e,!0).then(function(o){var s=document.createElement("canvas"),l=document.createElement("img");l.onload=function(){try{s.width=t.orientation>4?l.height:l.width,s.height=t.orientation>4?l.width:l.height;var o=s.getContext("2d");n(o,t.orientation,l.width,l.height),o.drawImage(l,0,0);var u=s.toDataURL(e.type||"image/WebP",.934);u=r.restoreExif(i(t.fixedArrayBuffer),u);var c=r.dataUrltoBlob(u,e.name);a.resolve(c)}catch(e){return a.reject(e)}},l.onerror=function(){a.reject()},l.src=o},function(e){a.reject(e)})},function(e){a.reject(e)}),a.promise},r.restoreExif=function(e,t){var n={};return n.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n.encode64=function(e){var t,n,i,r,a,o="",s="",l="",u=0;do{t=e[u++],n=e[u++],s=e[u++],i=t>>2,r=(3&t)<<4|n>>4,a=(15&n)<<2|s>>6,l=63&s,isNaN(n)?a=l=64:isNaN(s)&&(l=64),o=o+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),t=n=s="",i=r=a=l=""}while(u<e.length);return o},n.restore=function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,"+this.encode64(r)},n.exifManipulation=function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)},n.getExifArray=function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255===t[0]&225===t[1])return t;return[]},n.insertExif=function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),a=i.slice(0,r),o=i.slice(r),s=a;return s=s.concat(t),s=s.concat(o)},n.slice2Segments=function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=256*e[t+2]+e[t+3],r=t+i+2,a=e.slice(t,r);n.push(a),t=r}if(t>e.length)break}return n},n.decode64=function(e){var t,n,i,r,a,o="",s="",l=0,u=[]
  ;/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{i=this.KEY_STR.indexOf(e.charAt(l++)),r=this.KEY_STR.indexOf(e.charAt(l++)),a=this.KEY_STR.indexOf(e.charAt(l++)),s=this.KEY_STR.indexOf(e.charAt(l++)),t=i<<2|r>>4,n=(15&r)<<4|a>>2,o=(3&a)<<6|s,u.push(t),64!==a&&u.push(n),64!==s&&u.push(o),t=n=o="",i=r=a=s=""}while(l<e.length);return u},n.restore(e,t)},r}]),function(){function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}function t(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(e){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var n=function(e){if(!e.__listeners){e.upload||(e.upload={}),e.__listeners=[];var t=e.upload.addEventListener;e.upload.addEventListener=function(n,i){e.__listeners[n]=i,t&&t.apply(this,arguments)}}};e("open",function(e){return function(t,i,r){n(this),this.__url=i;try{e.apply(this,[t,i,r])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",r]))}}}),e("getResponseHeader",function(e){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==e?null:e.apply(this,[t])}}),e("getAllResponseHeaders",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}}),e("abort",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}}),e("setRequestHeader",function(e){return function(t,i){if("__setXHR_"===t){n(this);var r=i(this);r instanceof Function&&r(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=i,e.apply(this,arguments)}}),e("send",function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){var i=arguments[0],r={url:n.__url,jsonp:!1,cache:!0,complete:function(e,i){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(e=null),n.__completed=!0,!e&&n.__listeners.load&&n.__listeners.load({type:"load",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),!e&&n.__listeners.loadend&&n.__listeners.loadend({type:"loadend",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),"abort"===e&&n.__listeners.abort&&n.__listeners.abort({type:"abort",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),void 0!==i.status&&t(n,"status",function(){return 0===i.status&&e&&"abort"!==e?500:i.status}),void 0!==i.statusText&&t(n,"statusText",function(){return i.statusText}),t(n,"readyState",function(){return 4}),void 0!==i.response&&t(n,"response",function(){return i.response});var r=i.responseText||(e&&0===i.status&&"abort"!==e?e:void 0);t(n,"responseText",function(){return r}),t(n,"response",function(){return r}),e&&t(n,"err",function(){return e}),n.__fileApiXHR=i,n.onreadystatechange&&n.onreadystatechange(),n.onload&&n.onload()},progress:function(e){if(e.target=n,n.__listeners.progress&&n.__listeners.progress(e),n.__total=e.total,n.__loaded=e.loaded,e.total===e.loaded){var t=this;setTimeout(function(){n.__completed||(n.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:n.__requestHeaders};r.data={},r.files={};for(var a=0;a<i.data.length;a++){var o=i.data[a];null!=o.val&&null!=o.val.name&&null!=o.val.size&&null!=o.val.type?r.files[o.key]=o.val:r.data[o.key]=o.val}setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.__fileApiXHR=FileAPI.upload(r)},1)}else{if(this.__origError)throw this.__origError;e.apply(n,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}}}}(),function(){function e(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}function t(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function n(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do{t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent}while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=t(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var i,r,a,o,s,l=document.createElement("script"),u=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)i=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(a=0;a<u.length;a++)if(s=u[a].src,(o=s.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=s.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),l.setAttribute("src",i||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(l)}FileAPI.ngfFixIE=function(i,r,a){if(!t())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';var o=function(){var t=r.parent();i.attr("disabled")?t&&t.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",function(e){s.apply(this,[e]),a.apply(this,[e])}),r.attr("__ngf_flash_","true")),t.addClass("js-fileapi-wrapper"),e(i)||(t.css("position","absolute").css("top",n(i[0]).top+"px").css("left",n(i[0]).left+"px").css("width",i[0].offsetWidth+"px").css("height",i[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",i.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",i[0].offsetWidth+"px").css("height",i[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};i.bind("mouseenter",o);var s=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var i=0;i<n.length;i++)n[i].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var i={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(i.target.result=n.result),i},i=function(i){t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",i)));var r;"load"===i.type?(e.onloadend&&e.onloadend(n("loadend",i)),r=n("load",i),e.onload&&e.onload(r),e.dispatchEvent(r)):"progress"===i.type?(r=n("progress",i),e.onprogress&&e.onprogress(r),e.dispatchEvent(r)):(r=n("error",i),e.onerror&&e.onerror(r),e.dispatchEvent(r))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,i)},this.readAsText=function(e){FileAPI.readAsText(e,i)}});