4 lines
110 KiB
JavaScript
4 lines
110 KiB
JavaScript
!function(e,t,n){"use strict";function r(e){return function(){var t,n,r=arguments[0],i="["+(e?e+":":"")+r+"] ",o=arguments[1],a=arguments,s=function(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e};for(t=i+o.replace(/\{\d+\}/g,function(e){var t,n=+e.slice(1,-1);return n+2<a.length?(t=a[n+2],"function"==typeof t?t.toString().replace(/ ?\{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?U(t):t):e}),t=t+"\nhttp://errors.angularjs.org/1.2.22/"+(e?e+"/":"")+r,n=2;n<arguments.length;n++)t=t+(2==n?"?":"&")+"p"+(n-2)+"="+encodeURIComponent(s(arguments[n]));return new Error(t)}}function i(e){if(null==e||k(e))return!1;var t=e.length;return 1===e.nodeType&&t?!0:x(e)||Mr(e)||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t,n){var r;if(e)if(C(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r);else if(Mr(e)||i(e))for(r=0;r<e.length;r++)t.call(n,e[r],r);else if(e.forEach&&e.forEach!==o)e.forEach(t,n);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r);return e}function a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort()}function s(e,t,n){for(var r=a(e),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function u(e){return function(t,n){e(n,t)}}function c(){for(var e,t=Ar.length;t;){if(t--,e=Ar[t].charCodeAt(0),57==e)return Ar[t]="A",Ar.join("");if(90!=e)return Ar[t]=String.fromCharCode(e+1),Ar.join("");Ar[t]="0"}return Ar.unshift("0"),Ar.join("")}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function f(e){var t=e.$$hashKey;return o(arguments,function(t){t!==e&&o(t,function(t,n){e[n]=t})}),l(e,t),e}function h(e){return parseInt(e,10)}function p(e,t){return f(new(f(function(){},{prototype:e})),t)}function d(){}function g(e){return e}function m(e){return function(){return e}}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function $(e){return null!=e&&"object"==typeof e}function x(e){return"string"==typeof e}function b(e){return"number"==typeof e}function w(e){return"[object Date]"===kr.call(e)}function C(e){return"function"==typeof e}function S(e){return"[object RegExp]"===kr.call(e)}function k(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function T(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===kr.call(e)}function A(e){return"[object Blob]"===kr.call(e)}function M(e){return e&&C(e.then)}function N(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function D(e,t,n){var r=[];return o(e,function(e,i,o){r.push(t.call(n,e,i,o))}),r}function O(e,t){return-1!=_(e,t)}function _(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}function j(e,t){var n=_(e,t);return n>=0&&e.splice(n,1),t}function P(e,t,n,r){if(k(e)||T(e))throw Tr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw Tr("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],$(e)){var i=_(n,e);if(-1!==i)return r[i];n.push(e),r.push(t)}var a;if(Mr(e)){t.length=0;for(var s=0;s<e.length;s++)a=P(e[s],null,n,r),$(e[s])&&(n.push(e[s]),r.push(a)),t.push(a)}else{var u=t.$$hashKey;o(t,function(e,n){delete t[n]});for(var c in e)a=P(e[c],null,n,r),$(e[c])&&(n.push(e[c]),r.push(a)),t[c]=a;l(t,u)}}else t=e,e&&(Mr(e)?t=P(e,[],n,r):w(e)?t=new Date(e.getTime()):S(e)?(t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex):$(e)&&(t=P(e,{},n,r)));return t}function q(e,t){if(Mr(e)){t=t||[];for(var n=0;n<e.length;n++)t[n]=e[n]}else if($(e)){t=t||{};for(var r in e)!dr.call(e,r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function L(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!Mr(e)){if(w(e))return w(t)&&e.getTime()==t.getTime();if(S(e)&&S(t))return e.toString()==t.toString();if(T(e)||T(t)||k(e)||k(t)||Mr(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!C(e[i])){if(!L(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t[i]!==n&&!C(t[i]))return!1;return!0}if(!Mr(t))return!1;if((r=e.length)==t.length){for(i=0;r>i;i++)if(!L(e[i],t[i]))return!1;return!0}}return!1}function R(e,t,n){return e.concat(Cr.call(t,n))}function F(e,t){return Cr.call(e,t||0)}function H(e,t){var n=arguments.length>2?F(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,n.concat(Cr.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function I(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)?i=n:k(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":T(r)&&(i="$SCOPE"),i}function U(e,t){return"undefined"==typeof e?n:JSON.stringify(e,I,t?" ":null)}function z(e){return x(e)?JSON.parse(e):e}function B(e){if("function"==typeof e)e=!0;else if(e&&0!==e.length){var t=pr(""+e);e=!("f"==t||"0"==t||"false"==t||"no"==t||"n"==t||"[]"==t)}else e=!1;return e}function V(e){e=$r(e).clone();try{e.empty()}catch(t){}var n=3,r=$r("<div>").append(e).html();try{return e[0].nodeType===n?pr(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+pr(t)})}catch(t){return pr(r)}}function W(e){try{return decodeURIComponent(e)}catch(t){}}function X(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=W(t[0]),y(n))){var i=y(t[1])?W(t[1]):!0;dr.call(r,n)?Mr(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function Y(e){var t=[];return o(e,function(e,n){Mr(e)?o(e,function(e){t.push(Z(n,!0)+(e===!0?"":"="+Z(e,!0)))}):t.push(Z(n,!0)+(e===!0?"":"="+Z(e,!0)))}),t.length?t.join("&"):""}function Q(e){return Z(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function J(e,n){function r(e){e&&s.push(e)}var i,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;o(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(o(e.querySelectorAll("."+n),r),o(e.querySelectorAll("."+n+"\\:"),r),o(e.querySelectorAll("["+n+"]"),r))}),o(s,function(e){if(!i){var t=" "+e.className+" ",n=c.exec(t);n?(i=e,a=(n[2]||"").replace(/\s+/g,",")):o(e.attributes,function(t){!i&&u[t.name]&&(i=e,a=t.value)})}}),i&&n(i,a?[a]:[])}function G(n,r){var i=function(){if(n=$r(n),n.injector()){var e=n[0]===t?"document":V(n);throw Tr("btstrpd","App Already Bootstrapped with this Element '{0}'",e)}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),r.unshift("ng");var i=_t(r);return i.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),i},a=/^NG_DEFER_BOOTSTRAP!/;return e&&!a.test(e.name)?i():(e.name=e.name.replace(a,""),Er.resumeBootstrap=function(e){o(e,function(e){r.push(e)}),i()},void 0)}function K(e,t){return t=t||"_",e.replace(Or,function(e,n){return(n?t:"")+e.toLowerCase()})}function et(){xr=e.jQuery,xr&&xr.fn.on?($r=xr,f(xr.fn,{scope:Wr.scope,isolateScope:Wr.isolateScope,controller:Wr.controller,injector:Wr.injector,inheritedData:Wr.inheritedData}),lt("remove",!0,!0,!1),lt("empty",!1,!1,!1),lt("html",!1,!1,!0)):$r=dt,Er.element=$r}function tt(e,t,n){if(!e)throw Tr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function nt(e,t,n){return n&&Mr(e)&&(e=e[e.length-1]),tt(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function rt(e,t){if("hasOwnProperty"===e)throw Tr("badname","hasOwnProperty is not a valid {0} name",t)}function it(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?H(o,e):e}function ot(e){var t=e[0],n=e[e.length-1];if(t===n)return $r(t);var r=t,i=[r];do{if(r=r.nextSibling,!r)break;i.push(r)}while(r!==n);return $r(i)}function at(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),u}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var t=[],i=[],s=e("$injector","invoke"),u={_invokeQueue:t,_runBlocks:i,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:s,run:function(e){return i.push(e),this}};return a&&s(a),u})}})}function st(t){f(t,{bootstrap:G,copy:P,extend:f,equals:L,element:$r,forEach:o,injector:_t,noop:d,bind:H,toJson:U,fromJson:z,identity:g,isUndefined:v,isDefined:y,isString:x,isFunction:C,isObject:$,isNumber:b,isElement:N,isArray:Mr,version:_r,isDate:w,lowercase:pr,uppercase:gr,callbacks:{counter:0},$$minErr:r,$$csp:Dr}),br=at(e);try{br("ngLocale")}catch(n){br("ngLocale",[]).provider("$locale",nn)}br("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Mn}),e.provider("$compile",Ht).directive({a:Mi,input:Hi,textarea:Hi,form:_i,script:wo,select:ko,style:Eo,option:To,ngBind:Gi,ngBindHtml:eo,ngBindTemplate:Ki,ngClass:to,ngClassEven:ro,ngClassOdd:no,ngCloak:io,ngController:oo,ngForm:ji,ngHide:mo,ngIf:so,ngInclude:uo,ngInit:lo,ngNonBindable:fo,ngPluralize:ho,ngRepeat:po,ngShow:go,ngStyle:vo,ngSwitch:yo,ngSwitchWhen:$o,ngSwitchDefault:xo,ngOptions:So,ngTransclude:bo,ngModel:Wi,ngList:Qi,ngChange:Xi,required:Yi,ngRequired:Yi,ngValue:Ji}).directive({ngInclude:co}).directive(Ni).directive(ao),e.provider({$anchorScroll:jt,$animate:ti,$browser:Lt,$cacheFactory:Rt,$controller:zt,$document:Bt,$exceptionHandler:Vt,$filter:Hn,$interpolate:en,$interval:tn,$http:Zt,$httpBackend:Gt,$location:mn,$log:vn,$parse:Sn,$rootScope:An,$q:kn,$sce:jn,$sceDelegate:_n,$sniffer:Pn,$templateCache:Ft,$timeout:qn,$window:Fn,$$rAF:En,$$asyncCallback:Pt})}])}function ut(){return++Pr}function ct(e){return e.replace(Rr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Fr,"Moz$1")}function lt(e,t,n,r){function i(e){var i,a,s,u,c,l,f,h=n&&e?[this.filter(e)]:[this],p=t;if(!r||null!=e)for(;h.length;)for(i=h.shift(),a=0,s=i.length;s>a;a++)for(u=$r(i[a]),p?u.triggerHandler("$destroy"):p=!p,c=0,l=(f=u.children()).length;l>c;c++)h.push(xr(f[c]));return o.apply(this,arguments)}var o=xr.fn[e];o=o.$original||o,i.$original=o,xr.fn[e]=i}function ft(e){return!Ur.test(e)}function ht(e,t){var n,r,i,o,a,s,u=t.createDocumentFragment(),c=[];if(ft(e))c.push(t.createTextNode(e));else{for(n=u.appendChild(t.createElement("div")),r=(zr.exec(e)||["",""])[1].toLowerCase(),i=Vr[r]||Vr._default,n.innerHTML="<div> </div>"+i[1]+e.replace(Br,"<$1></$2>")+i[2],n.removeChild(n.firstChild),o=i[0];o--;)n=n.lastChild;for(a=0,s=n.childNodes.length;s>a;++a)c.push(n.childNodes[a]);n=u.firstChild,n.textContent=""}return u.textContent="",u.innerHTML="",c}function pt(e,n){n=n||t;var r;return(r=Ir.exec(e))?[n.createElement(r[1])]:ht(e,n)}function dt(e){if(e instanceof dt)return e;if(x(e)&&(e=Nr(e)),!(this instanceof dt)){if(x(e)&&"<"!=e.charAt(0))throw Hr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new dt(e)}if(x(e)){St(this,pt(e));var n=$r(t.createDocumentFragment());n.append(this)}else St(this,e)}function gt(e){return e.cloneNode(!0)}function mt(e){yt(e);for(var t=0,n=e.childNodes||[];t<n.length;t++)mt(n[t])}function vt(e,t,n,r){if(y(r))throw Hr("offargs","jqLite#off() does not support the `selector` argument");var i=$t(e,"events"),a=$t(e,"handle");a&&(v(t)?o(i,function(t,n){Lr(e,n,t),delete i[n]}):o(t.split(" "),function(t){v(n)?(Lr(e,t,i[t]),delete i[t]):j(i[t]||[],n)}))}function yt(e,t){var r=e.ng339,i=jr[r];if(i){if(t)return delete jr[r].data[t],void 0;i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),vt(e)),delete jr[r],e.ng339=n}}function $t(e,t,n){var r=e.ng339,i=jr[r||-1];return y(n)?(i||(e.ng339=r=ut(),i=jr[r]={}),i[t]=n,void 0):i&&i[t]}function xt(e,t,n){var r=$t(e,"data"),i=y(n),o=!i&&y(t),a=o&&!$(t);if(r||a||$t(e,"data",r={}),i)r[t]=n;else{if(!o)return r;if(a)return r&&r[t];f(r,t)}}function bt(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function wt(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Nr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Nr(t)+" "," ")))})}function Ct(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Nr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Nr(n))}}function St(e,t){if(t){t=t.nodeName||!y(t.length)||k(t)?[t]:t;for(var n=0;n<t.length;n++)e.push(t[n])}}function kt(e,t){return Tt(e,"$"+(t||"ngController")+"Controller")}function Tt(e,t,r){9==e.nodeType&&(e=e.documentElement);for(var i=Mr(t)?t:[t];e;){for(var o=0,a=i.length;a>o;o++)if((r=$r.data(e,i[o]))!==n)return r;e=e.parentNode||11===e.nodeType&&e.host}}function Et(e){for(var t=0,n=e.childNodes;t<n.length;t++)mt(n[t]);for(;e.firstChild;)e.removeChild(e.firstChild)}function At(e,t){var n=Xr[t.toLowerCase()];return n&&Yr[e.nodeName]&&n}function Mt(e,n){var r=function(r,i){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||t),v(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented||r.returnValue===!1};var s=q(n[i||r.type]||[]);o(s,function(t){t.call(e,r)}),8>=yr?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function Nt(e,t){var r,i=typeof e;return"function"==i||"object"==i&&null!==e?"function"==typeof(r=e.$$hashKey)?r=e.$$hashKey():r===n&&(r=e.$$hashKey=(t||c)()):r=e,i+":"+r}function Dt(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Ot(e){var t,n,r,i;return"function"==typeof e?(t=e.$inject)||(t=[],e.length&&(n=e.toString().replace(Gr,""),r=n.match(Qr),o(r[1].split(Zr),function(e){e.replace(Jr,function(e,n,r){t.push(r)})})),e.$inject=t):Mr(e)?(i=e.length-1,nt(e[i],"fn"),t=e.slice(0,i)):nt(e,"fn",!0),t}function _t(e){function t(e){return function(t,n){return $(t)?(o(t,u(e)),void 0):e(t,n)}}function n(e,t){if(rt(e,"service"),(C(t)||Mr(t))&&(t=b.instantiate(t)),!t.$get)throw Kr("pget","Provider '{0}' must define $get factory method.",e);return y[e+p]=t}function r(e,t){return n(e,{$get:t})}function i(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}function a(e,t){return r(e,m(t))}function s(e,t){rt(e,"constant"),y[e]=t,w[e]=t}function c(e,t){var n=b.get(e+p),r=n.$get;n.$get=function(){var e=S.invoke(r,n);return S.invoke(t,null,{$delegate:e})}}function l(e){var t,n,r,i,a=[];return o(e,function(e){if(!v.get(e)){v.put(e,!0);try{if(x(e))for(t=br(e),a=a.concat(l(t.requires)).concat(t._runBlocks),n=t._invokeQueue,r=0,i=n.length;i>r;r++){var o=n[r],s=b.get(o[0]);s[o[1]].apply(s,o[2])}else C(e)?a.push(b.invoke(e)):Mr(e)?a.push(b.invoke(e)):nt(e,"module")}catch(u){throw Mr(e)&&(e=e[e.length-1]),u.message&&u.stack&&-1==u.stack.indexOf(u.message)&&(u=u.message+"\n"+u.stack),Kr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,u.stack||u.message||u)}}}),a}function f(e,t){function n(n){if(e.hasOwnProperty(n)){if(e[n]===h)throw Kr("cdep","Circular dependency found: {0}",n+" <- "+g.join(" <- "));return e[n]}try{return g.unshift(n),e[n]=h,e[n]=t(n)}catch(r){throw e[n]===h&&delete e[n],r}finally{g.shift()}}function r(e,t,r){var i,o,a,s=[],u=Ot(e);for(o=0,i=u.length;i>o;o++){if(a=u[o],"string"!=typeof a)throw Kr("itkn","Incorrect injection token! Expected service name as string, got {0}",a);s.push(r&&r.hasOwnProperty(a)?r[a]:n(a))}return Mr(e)&&(e=e[i]),e.apply(t,s)}function i(e,t){var n,i,o=function(){};return o.prototype=(Mr(e)?e[e.length-1]:e).prototype,n=new o,i=r(e,n,t),$(i)||C(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:Ot,has:function(t){return y.hasOwnProperty(t+p)||e.hasOwnProperty(t)}}}var h={},p="Provider",g=[],v=new Dt([],!0),y={$provide:{provider:t(n),factory:t(r),service:t(i),value:t(a),constant:t(s),decorator:c}},b=y.$injector=f(y,function(){throw Kr("unpr","Unknown provider: {0}",g.join(" <- "))}),w={},S=w.$injector=f(w,function(e){var t=b.get(e+p);return S.invoke(t.$get,t)});return o(l(e),function(e){S.invoke(e||d)}),S}function jt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return o(e,function(e){t||"a"!==pr(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=i(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function Pt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function qt(e,t,r,i){function a(e){try{e.apply(null,F(arguments,1))}finally{if(y--,0===y)for(;$.length;)try{$.pop()()}catch(t){r.error(t)}}}function s(e,t){!function n(){o(w,function(e){e()}),b=t(n,e)}()}function u(){k=null,C!=c.url()&&(C=c.url(),o(T,function(e){e(c.url())}))}var c=this,l=t[0],f=e.location,h=e.history,p=e.setTimeout,g=e.clearTimeout,m={};c.isMock=!1;var y=0,$=[];c.$$completeOutstandingRequest=a,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){o(w,function(e){e()}),0===y?e():$.push(e)};var b,w=[];c.addPollFn=function(e){return v(b)&&s(100,p),w.push(e),e};var C=f.href,S=t.find("base"),k=null;c.url=function(t,n){if(f!==e.location&&(f=e.location),h!==e.history&&(h=e.history),t){if(C==t)return;return C=t,i.history?n?h.replaceState(null,"",t):(h.pushState(null,"",t),S.attr("href",S.attr("href"))):(k=t,n?f.replace(t):f.href=t),c}return k||f.href.replace(/%27/g,"'")};var T=[],E=!1;c.onUrlChange=function(t){return E||(i.history&&$r(e).on("popstate",u),i.hashchange?$r(e).on("hashchange",u):c.addPollFn(u),E=!0),T.push(t),t},c.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var A={},M="",N=c.baseHref();c.cookies=function(e,t){var i,o,a,s,u;if(!e){if(l.cookie!==M)for(M=l.cookie,o=M.split("; "),A={},s=0;s<o.length;s++)a=o[s],u=a.indexOf("="),u>0&&(e=unescape(a.substring(0,u)),A[e]===n&&(A[e]=unescape(a.substring(u+1))));return A}t===n?l.cookie=escape(e)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT":x(t)&&(i=(l.cookie=escape(e)+"="+escape(t)+";path="+N).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},c.defer=function(e,t){var n;return y++,n=p(function(){delete m[n],a(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return m[e]?(delete m[e],g(e),a(d),!0):!1}}function Lt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new qt(e,r,t,n)}]}function Rt(){this.$get=function(){function e(e,n){function i(e){e!=h&&(p?p==e&&(p=e.n):p=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u={},c=n&&n.capacity||Number.MAX_VALUE,l={},h=null,p=null;return t[e]={put:function(e,t){if(c<Number.MAX_VALUE){var n=l[e]||(l[e]={key:e});i(n)}if(!v(t))return e in u||a++,u[e]=t,a>c&&this.remove(p.key),t},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t==h&&(h=t.p),t==p&&(p=t.n),o(t.n,t.p),delete l[e]}delete u[e],a--},removeAll:function(){u={},a=0,l={},h=p=null},destroy:function(){u=null,s=null,l=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function Ft(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Ht(e,r){var i={},a="Directive",s=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,c=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,l=/^(on[a-z]+|formaction)$/;this.directive=function h(t,n){return rt(t,"directive"),x(t)?(tt(n,"directiveFactory"),i.hasOwnProperty(t)||(i[t]=[],e.factory(t+a,["$injector","$exceptionHandler",function(e,n){var r=[];return o(i[t],function(i,o){try{var a=e.invoke(i);C(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"A",r.push(a)}catch(s){n(s)}}),r}])),i[t].push(n)):o(t,u(h)),this},this.aHrefSanitizationWhitelist=function(e){return y(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,u,h,d,m,v,y,b,w,S,k){function T(e,t,n,r,i){e instanceof $r||(e=$r(e)),o(e,function(t,n){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(e[n]=t=$r(t).wrap("<span></span>").parent()[0])});var a=A(e,t,e,n,r,i);return E(e,"ng-scope"),function(t,n,r,i){tt(t,"scope");var s=n?Wr.clone.call(e):e;o(r,function(e,t){s.data("$"+t+"Controller",e)});for(var u=0,c=s.length;c>u;u++){var l=s[u],f=l.nodeType;(1===f||9===f)&&s.eq(u).data("$scope",t)}return n&&n(s,t),a&&a(t,s,s,i),s}}function E(e,t){try{e.addClass(t)}catch(n){}}function A(e,t,r,i,o,a){function s(e,r,i,o){var a,s,u,c,l,f,h,p,g=r.length,m=new Array(g);for(l=0;g>l;l++)m[l]=r[l];for(l=0,h=0,f=d.length;f>l;h++)u=m[h],a=d[l++],s=d[l++],a?(a.scope?(c=e.$new(),$r.data(u,"$scope",c)):c=e,p=a.transcludeOnThisElement?M(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?M(e,t):null,a(s,c,u,i,p)):s&&s(e,u.childNodes,n,o)}for(var u,c,l,f,h,p,d=[],g=0;g<e.length;g++)u=new Q,c=N(e[g],[],u,0===g?i:n,o),l=c.length?_(c,e[g],u,t,r,null,[],[],a):null,l&&l.scope&&E(u.$$element,"ng-scope"),h=l&&l.terminal||!(f=e[g].childNodes)||!f.length?null:A(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),d.push(l,h),p=p||l||h,a=null;return p?s:null}function M(e,t,n){var r=function(r,i,o){var a=!1;r||(r=e.$new(),r.$$transcluded=!0,a=!0);var s=t(r,i,o,n);return a&&s.on("$destroy",function(){r.$destroy()}),s};return r}function N(e,t,n,r,i){var o,a,u=e.nodeType,l=n.$attr;switch(u){case 1:P(t,It(wr(e).toLowerCase()),"E",r,i);for(var f,h,p,d,g,m,v=e.attributes,y=0,$=v&&v.length;$>y;y++){var b=!1,w=!1;if(f=v[y],!yr||yr>=8||f.specified){h=f.name,g=Nr(f.value),d=It(h),(m=et.test(d))&&(h=K(d.substr(6),"-"));var C=d.replace(/(Start|End)$/,"");d===C+"Start"&&(b=h,w=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),p=It(h.toLowerCase()),l[p]=h,(m||!n.hasOwnProperty(p))&&(n[p]=g,At(e,p)&&(n[p]=!0)),W(e,t,g,p),P(t,p,"A",r,i,b,w)}}if(a=e.className,x(a)&&""!==a)for(;o=c.exec(a);)p=It(o[2]),P(t,p,"C",r,i)&&(n[p]=Nr(o[3])),a=a.substr(o.index+o[0].length);break;case 3:z(t,e.nodeValue);break;case 8:try{o=s.exec(e.nodeValue),o&&(p=It(o[1]),P(t,p,"M",r,i)&&(n[p]=Nr(o[2])))}catch(S){}}return t.sort(I),t}function D(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw ni("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1==e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return $r(r)}function O(e,t,n){return function(r,i,o,a,s){return i=D(i[0],t,n),e(r,i,o,a,s)}}function _(e,i,a,s,c,l,f,h,p){function d(e,t,n,r){e&&(n&&(e=O(e,n,r)),e.require=w.require,e.directiveName=S,(I===w||w.$$isolateScope)&&(e=Y(e,{isolateScope:!0})),f.push(e)),t&&(n&&(t=O(t,n,r)),t.require=w.require,t.directiveName=S,(I===w||w.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),h.push(t))}function g(e,t,n,r){var i,a="data",s=!1;if(x(t)){for(;"^"==(i=t.charAt(0))||"?"==i;)t=t.substr(1),"^"==i&&(a="inheritedData"),s=s||"?"==i;if(i=null,r&&"data"===a&&(i=r[t]),i=i||n[a]("$"+t+"Controller"),!i&&!s)throw ni("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return i}return Mr(t)&&(i=[],o(t,function(t){i.push(g(e,t,n,r))})),i}function y(e,t,s,c,l){function p(e,t){var r;return arguments.length<2&&(t=e,e=n),J&&(r=k),l(e,t,r)}var d,y,$,x,b,w,C,S,k={};if(d=i===s?a:q(a,new Q($r(s),a.$attr)),y=d.$$element,I){var T=/^\s*([@=&])(\??)\s*(\w*)\s*$/;C=t.$new(!0),!z||z!==I&&z!==I.$$originalDirective?y.data("$isolateScopeNoTemplate",C):y.data("$isolateScope",C),E(y,"ng-isolate-scope"),o(I.scope,function(e,n){var i,o,a,s,u=e.match(T)||[],c=u[3]||n,l="?"==u[2],f=u[1];switch(C.$$isolateBindings[n]=f+c,f){case"@":d.$observe(c,function(e){C[n]=e}),d.$$observers[c].$$scope=t,d[c]&&(C[n]=r(d[c])(t));break;case"=":if(l&&!d[c])return;o=m(d[c]),s=o.literal?L:function(e,t){return e===t||e!==e&&t!==t},a=o.assign||function(){throw i=C[n]=o(t),ni("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",d[c],I.name)},i=C[n]=o(t),C.$watch(function(){var e=o(t);return s(e,C[n])||(s(e,i)?a(t,e=C[n]):C[n]=e),i=e},null,o.literal);break;case"&":o=m(d[c]),C[n]=function(e){return o(t,e)};break;default:throw ni("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",I.name,n,e)}})}for(S=l&&p,P&&o(P,function(e){var n,r={$scope:e===I||e.$$isolateScope?C:t,$element:y,$attrs:d,$transclude:S};w=e.controller,"@"==w&&(w=d[e.name]),n=v(w,r),k[e.name]=n,J||y.data("$"+e.name+"Controller",n),e.controllerAs&&(r.$scope[e.controllerAs]=n)}),$=0,x=f.length;x>$;$++)try{b=f[$],b(b.isolateScope?C:t,y,d,b.require&&g(b.directiveName,b.require,y,k),S)}catch(A){u(A,V(y))}var M=t;for(I&&(I.template||null===I.templateUrl)&&(M=C),e&&e(M,s.childNodes,n,l),$=h.length-1;$>=0;$--)try{b=h[$],b(b.isolateScope?C:t,y,d,b.require&&g(b.directiveName,b.require,y,k),S)}catch(A){u(A,V(y))}}p=p||{};for(var b,w,S,k,A,M,_=-Number.MAX_VALUE,P=p.controllerDirectives,I=p.newIsolateScopeDirective,z=p.templateDirective,B=p.nonTlbTranscludeDirective,W=!1,Z=!1,J=p.hasElementTranscludeDirective,K=a.$$element=$r(i),et=l,tt=s,nt=0,rt=e.length;rt>nt;nt++){w=e[nt];var it=w.$$start,ot=w.$$end;if(it&&(K=D(i,it,ot)),k=n,_>w.priority)break;if((M=w.scope)&&(b=b||w,w.templateUrl||(U("new/isolated scope",I,w,K),$(M)&&(I=w))),S=w.name,!w.templateUrl&&w.controller&&(M=w.controller,P=P||{},U("'"+S+"' controller",P[S],w,K),P[S]=w),(M=w.transclude)&&(W=!0,w.$$tlb||(U("transclusion",B,w,K),B=w),"element"==M?(J=!0,_=w.priority,k=K,K=a.$$element=$r(t.createComment(" "+S+": "+a[S]+" ")),i=K[0],X(c,F(k),i),tt=T(k,s,_,et&&et.name,{nonTlbTranscludeDirective:B})):(k=$r(gt(i)).contents(),K.empty(),tt=T(k,s))),w.template)if(Z=!0,U("template",z,w,K),z=w,M=C(w.template)?w.template(K,a):w.template,M=G(M),w.replace){if(et=w,k=ft(M)?[]:$r(Nr(M)),i=k[0],1!=k.length||1!==i.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",S,"");X(c,K,i);var at={$attr:{}},st=N(i,[],at),ut=e.splice(nt+1,e.length-(nt+1));I&&j(st),e=e.concat(st).concat(ut),R(a,at),rt=e.length}else K.html(M);if(w.templateUrl)Z=!0,U("template",z,w,K),z=w,w.replace&&(et=w),y=H(e.splice(nt,e.length-nt),K,a,c,W&&tt,f,h,{controllerDirectives:P,newIsolateScopeDirective:I,templateDirective:z,nonTlbTranscludeDirective:B}),rt=e.length;else if(w.compile)try{A=w.compile(K,a,tt),C(A)?d(null,A,it,ot):A&&d(A.pre,A.post,it,ot)}catch(ct){u(ct,V(K))}w.terminal&&(y.terminal=!0,_=Math.max(_,w.priority))}return y.scope=b&&b.scope===!0,y.transcludeOnThisElement=W,y.templateOnThisElement=Z,y.transclude=tt,p.hasElementTranscludeDirective=J,y}function j(e){for(var t=0,n=e.length;n>t;t++)e[t]=p(e[t],{$$isolateScope:!0})}function P(t,r,o,s,c,l,f){if(r===c)return null;var h=null;if(i.hasOwnProperty(r))for(var d,g=e.get(r+a),m=0,v=g.length;v>m;m++)try{d=g[m],(s===n||s>d.priority)&&-1!=d.restrict.indexOf(o)&&(l&&(d=p(d,{$$start:l,$$end:f})),t.push(d),h=d)}catch(y){u(y)}return h}function R(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(E(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function H(e,t,n,r,i,a,s,u){var c,l,p=[],g=t[0],m=e.shift(),v=f({},m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),y=C(m.templateUrl)?m.templateUrl(t,n):m.templateUrl;return t.empty(),h.get(w.getTrustedResourceUrl(y),{cache:d}).success(function(f){var h,d,x,b;if(f=G(f),m.replace){if(x=ft(f)?[]:$r(Nr(f)),h=x[0],1!=x.length||1!==h.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,y);d={$attr:{}},X(r,t,h);var w=N(h,[],d);$(m.scope)&&j(w),e=w.concat(e),R(n,d)}else h=g,t.html(f);for(e.unshift(v),c=_(e,h,n,i,t,m,a,s,u),o(r,function(e,n){e==h&&(r[n]=t[0])}),l=A(t[0].childNodes,i);p.length;){var C=p.shift(),S=p.shift(),k=p.shift(),T=p.shift(),D=t[0];if(S!==g){var O=S.className;u.hasElementTranscludeDirective&&m.replace||(D=gt(h)),X(k,$r(S),D),E($r(D),O)}b=c.transcludeOnThisElement?M(C,c.transclude,T):T,c(l,C,D,r,b)}p=null}).error(function(e,t,n,r){throw ni("tpload","Failed to load template: {0}",r.url)}),function(e,t,n,r,i){var o=i;p?(p.push(t),p.push(n),p.push(r),p.push(o)):(c.transcludeOnThisElement&&(o=M(t,c.transclude,i)),c(l,t,n,r,o))}}function I(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 U(e,t,n,r){if(t)throw ni("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,V(r))}function z(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=t.length;return r&&E(e.parent(),"ng-binding"),function(e,t){var i=t.parent(),o=i.data("$binding")||[];o.push(n),i.data("$binding",o),r||E(i,"ng-binding"),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function B(e,t){if("srcdoc"==t)return w.HTML;var n=wr(e);return"xlinkHref"==t||"FORM"==n&&"action"==t||"IMG"!=n&&("src"==t||"ngSrc"==t)?w.RESOURCE_URL:void 0}function W(e,t,n,i){var o=r(n,!0);if(o){if("multiple"===i&&"SELECT"===wr(e))throw ni("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",V(e));t.push({priority:100,compile:function(){return{pre:function(t,n,a){var s=a.$$observers||(a.$$observers={});if(l.test(i))throw ni("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");o=r(a[i],!0,B(e,i)),o&&(a[i]=o(t),(s[i]||(s[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||t).$watch(o,function(e,t){"class"===i&&e!=t?a.$updateClass(e,t):a.$set(i,e)}))}}}})}}function X(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var c=i,l=c+s-1,f=e.length;f>c;c++,l++)f>l?e[c]=e[l]:delete e[c];e.length-=s-1;break}u&&u.replaceChild(r,a);var h=t.createDocumentFragment();h.appendChild(a),r[$r.expando]=a[$r.expando];for(var p=1,d=n.length;d>p;p++){var g=n[p];$r(g).remove(),h.appendChild(g),delete n[p]}n[0]=r,n.length=1}function Y(e,t){return f(function(){return e.apply(null,arguments)},e,t)}var Q=function(e,t){this.$$element=e,this.$attr=t||{}};Q.prototype={$normalize:It,$addClass:function(e){e&&e.length>0&&S.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&S.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Ut(e,t),r=Ut(t,e);0===n.length?S.removeClass(this.$$element,r):0===r.length?S.addClass(this.$$element,n):S.setClass(this.$$element,n,r)},$set:function(e,t,r,i){var a,s=At(this.$$element[0],e);s&&(this.$$element.prop(e,t),i=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e],i||(this.$attr[e]=i=K(e,"-"))),a=wr(this.$$element),("A"===a&&"href"===e||"IMG"===a&&"src"===e)&&(this[e]=t=k(t,"src"===e)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(i):this.$$element.attr(i,t));
|
||
var c=this.$$observers;c&&o(c[e],function(e){try{e(t)}catch(n){u(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);return i.push(t),y.$evalAsync(function(){i.$$inter||t(n[e])}),t}};var Z=r.startSymbol(),J=r.endSymbol(),G="{{"==Z||"}}"==J?g:function(e){return e.replace(/\{\{/g,Z).replace(/}}/g,J)},et=/^ngAttr[A-Z]/;return T}]}function It(e){return ct(e.replace(ri,""))}function Ut(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function zt(){var e={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){rt(t,"controller"),$(t)?f(e,t):e[t]=n},this.$get=["$injector","$window",function(n,i){return function(o,a){var s,u,c,l;if(x(o)&&(u=o.match(t),c=u[1],l=u[3],o=e.hasOwnProperty(c)?e[c]:it(a.$scope,c,!0)||it(i,c,!0),nt(o,c,!0)),s=n.instantiate(o,a),l){if(!a||"object"!=typeof a.$scope)throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",c||o.name,l);a.$scope[l]=s}return s}}]}function Bt(){this.$get=["$window",function(e){return $r(e.document)}]}function Vt(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function Wt(e){var t,n,r,i={};return e?(o(e.split("\n"),function(e){r=e.indexOf(":"),t=pr(Nr(e.substr(0,r))),n=Nr(e.substr(r+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}function Xt(e){var t=$(e)?e:n;return function(n){return t||(t=Wt(e)),n?t[pr(n)]||null:t}}function Yt(e,t,n){return C(n)?n(e,t):(o(n,function(n){e=n(e,t)}),e)}function Qt(e){return e>=200&&300>e}function Zt(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,i={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return x(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=z(n))),n}],transformRequest:[function(e){return!$(e)||E(e)||A(e)?e:U(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(i),put:q(i),patch:q(i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},u=this.interceptors=[],c=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,i,l,h){function p(e){function t(e){var t=f({},e,{data:Yt(e.data,e.headers,i.transformResponse)});return Qt(e.status)?t:l.reject(t)}function r(e){function t(e){var t;o(e,function(n,r){C(n)&&(t=n(),null!=t?e[r]=t:delete e[r])})}var n,r,i,s=a.headers,u=f({},e.headers);s=f({},s.common,s[pr(e.method)]);e:for(n in s){r=pr(n);for(i in u)if(pr(i)===r)continue e;u[n]=s[n]}return t(u),u}var i={method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse},s=r(e);f(i,e),i.headers=s,i.method=gr(i.method);var u=function(e){s=e.headers;var n=Yt(e.data,Xt(s),e.transformRequest);return v(n)&&o(s,function(e,t){"content-type"===pr(t)&&delete s[t]}),v(e.withCredentials)&&!v(a.withCredentials)&&(e.withCredentials=a.withCredentials),m(e,n,s).then(t,t)},c=[u,n],h=l.when(i);for(o(k,function(e){(e.request||e.requestError)&&c.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)});c.length;){var p=c.shift(),d=c.shift();h=h.then(p,d)}return h.success=function(e){return h.then(function(t){e(t.data,t.status,t.headers,i)}),h},h.error=function(e){return h.then(null,function(t){e(t.data,t.status,t.headers,i)}),h},h}function d(){o(arguments,function(e){p[e]=function(t,n){return p(f(n||{},{method:e,url:t}))}})}function g(){o(arguments,function(e){p[e]=function(t,n,r){return p(f(r||{},{method:e,url:t,data:n}))}})}function m(r,o,s){function u(e,t,n,r){h&&(Qt(e)?h.put(x,[e,t,Wt(n),r]):h.remove(x)),c(t,e,n,r),i.$$phase||i.$apply()}function c(e,t,n,i){t=Math.max(t,0),(Qt(t)?g.resolve:g.reject)({data:e,status:t,headers:Xt(n),config:r,statusText:i})}function f(){var e=_(p.pendingRequests,r);-1!==e&&p.pendingRequests.splice(e,1)}var h,d,g=l.defer(),m=g.promise,x=b(r.url,r.params);if(p.pendingRequests.push(r),m.then(f,f),!r.cache&&!a.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(h=$(r.cache)?r.cache:$(a.cache)?a.cache:S),h)if(d=h.get(x),y(d)){if(M(d))return d.then(f,f),d;Mr(d)?c(d[1],d[0],q(d[2]),d[3]):c(d,200,{},"OK")}else h.put(x,m);if(v(d)){var w=Rn(r.url)?t.cookies()[r.xsrfCookieName||a.xsrfCookieName]:n;w&&(s[r.xsrfHeaderName||a.xsrfHeaderName]=w),e(r.method,x,o,u,s,r.timeout,r.withCredentials,r.responseType)}return m}function b(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||v(e)||(Mr(e)||(e=[e]),o(e,function(e){$(e)&&(w(e)?e=e.toISOString():$(e)&&(e=U(e))),n.push(Z(t)+"="+Z(e))}))}),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&")),e}var S=r("$http"),k=[];return o(u,function(e){k.unshift(x(e)?h.get(e):h.invoke(e))}),o(c,function(e,t){var n=x(e)?h.get(e):h.invoke(e);k.splice(t,0,{response:function(e){return n(l.when(e))},responseError:function(e){return n(l.reject(e))}})}),p.pendingRequests=[],d("get","delete","head","jsonp"),g("post","put"),p.defaults=a,p}]}function Jt(t){if(8>=yr&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!e.XMLHttpRequest))return new e.ActiveXObject("Microsoft.XMLHTTP");if(e.XMLHttpRequest)return new e.XMLHttpRequest;throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Gt(){this.$get=["$browser","$window","$document",function(e,t,n){return Kt(e,Jt,e.defer,t.angular.callbacks,n[0])}]}function Kt(e,t,n,r,i){function a(e,t,n){var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){Lr(o,"load",a),Lr(o,"error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},qr(o,"load",a),qr(o,"error",a),8>=yr&&(o.onreadystatechange=function(){x(o.readyState)&&/loaded|complete/.test(o.readyState)&&(o.onreadystatechange=null,a({type:"load"}))}),i.body.appendChild(o),a}var s=-1;return function(i,u,c,l,f,h,p,g){function m(){$=s,b&&b(),w&&w.abort()}function v(t,r,i,o,a){S&&n.cancel(S),b=w=null,0===r&&(r=i?200:"file"==Ln(u).protocol?404:0),r=1223===r?204:r,a=a||"",t(r,i,o,a),e.$$completeOutstandingRequest(d)}var $;if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==pr(i)){var x="_"+(r.counter++).toString(36);r[x]=function(e){r[x].data=e,r[x].called=!0};var b=a(u.replace("JSON_CALLBACK","angular.callbacks."+x),x,function(e,t){v(l,e,r[x].data,"",t),r[x]=d})}else{var w=t(i);if(w.open(i,u,!0),o(f,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onreadystatechange=function(){if(w&&4==w.readyState){var e=null,t=null,n="";$!==s&&(e=w.getAllResponseHeaders(),t="response"in w?w.response:w.responseText),$===s&&10>yr||(n=w.statusText),v(l,$||w.status,t,e,n)}},p&&(w.withCredentials=!0),g)try{w.responseType=g}catch(C){if("json"!==g)throw C}w.send(c||null)}if(h>0)var S=n(m,h);else M(h)&&h.then(m)}}function en(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(o,u,c){for(var l,f,h,p,d=0,g=[],m=o.length,v=!1,y=[];m>d;)-1!=(l=o.indexOf(e,d))&&-1!=(f=o.indexOf(t,l+a))?(d!=l&&g.push(o.substring(d,l)),g.push(h=n(p=o.substring(l+a,f))),h.exp=p,d=f+s,v=!0):(d!=m&&g.push(o.substring(d)),d=m);if((m=g.length)||(g.push(""),m=1),c&&g.length>1)throw ii("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",o);return!u||v?(y.length=m,h=function(e){try{for(var t,n=0,a=m;a>n;n++){if("function"==typeof(t=g[n]))if(t=t(e),t=c?i.getTrusted(c,t):i.valueOf(t),null==t)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=U(t)}y[n]=t}return y.join("")}catch(s){var u=ii("interr","Can't interpolate: {0}\n{1}",o,s.toString());r(u)}},h.exp=o,h.parts=g,h):void 0}var a=e.length,s=t.length;return o.startSymbol=function(){return e},o.endSymbol=function(){return t},o}]}function tn(){this.$get=["$rootScope","$window","$q",function(e,t,n){function r(r,o,a,s){var u=t.setInterval,c=t.clearInterval,l=n.defer(),f=l.promise,h=0,p=y(s)&&!s;return a=y(a)?a:0,f.then(null,null,r),f.$$intervalId=u(function(){l.notify(h++),a>0&&h>=a&&(l.resolve(h),c(f.$$intervalId),delete i[f.$$intervalId]),p||e.$apply()},o),i[f.$$intervalId]=l,f}var i={};return r.cancel=function(e){return e&&e.$$intervalId in i?(i[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete i[e.$$intervalId],!0):!1},r}]}function nn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function rn(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Q(t[n]);return t.join("/")}function on(e,t,n){var r=Ln(e,n);t.$$protocol=r.protocol,t.$$host=r.hostname,t.$$port=h(r.port)||ai[r.protocol]||null}function an(e,t,n){var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Ln(e,n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=X(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function sn(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function un(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function cn(e){return e.substr(0,un(e).lastIndexOf("/")+1)}function ln(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function fn(e,t){this.$$html5=!0,t=t||"";var r=cn(e);on(e,this,e),this.$$parse=function(t){var n=sn(r,t);if(!x(n))throw si("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);an(n,this,e),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Y(this.$$search),t=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$rewrite=function(i){var o,a;return(o=sn(e,i))!==n?(a=o,(o=sn(t,o))!==n?r+(sn("/",o)||o):e+a):(o=sn(r,i))!==n?r+o:r==i+"/"?r:void 0}}function hn(e,t){var n=cn(e);on(e,this,e),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o=sn(e,r)||sn(n,r),a="#"==o.charAt(0)?sn(t,o):this.$$html5?o:"";if(!x(a))throw si("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);an(a,this,e),this.$$path=i(this.$$path,a,e),this.$$compose()},this.$$compose=function(){var n=Y(this.$$search),r=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$rewrite=function(t){return un(e)==un(t)?t:void 0}}function pn(e,t){this.$$html5=!0,hn.apply(this,arguments);var n=cn(e);this.$$rewrite=function(r){var i;return e==un(r)?r:(i=sn(n,r))?e+t+i:n===r+"/"?n:void 0},this.$$compose=function(){var n=Y(this.$$search),r=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function dn(e){return function(){return this[e]}}function gn(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function mn(){var t="",n=!1;this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(e){return y(e)?(n=e,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function s(e){r.$broadcast("$locationChangeSuccess",u.absUrl(),e)}var u,c,l,f=i.baseHref(),h=i.url();n?(l=ln(h)+(f||"/"),c=o.history?fn:pn):(l=un(h),c=hn),u=new c(l,"#"+t),u.$$parse(u.$$rewrite(h));var p=/^\s*(javascript|mailto):/i;a.on("click",function(n){if(!n.ctrlKey&&!n.metaKey&&2!=n.which){for(var o=$r(n.target);"a"!==pr(o[0].nodeName);)if(o[0]===a[0]||!(o=o.parent())[0])return;var s=o.prop("href");if($(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Ln(s.animVal).href),!p.test(s)){if(c===pn){var f=o.attr("href")||o.attr("xlink:href");if(f.indexOf("://")<0){var h="#"+t;if("/"==f[0])s=l+h+f;else if("#"==f[0])s=l+h+(u.path()||"/")+f;else{for(var d=u.path().split("/"),g=f.split("/"),m=0;m<g.length;m++)"."!=g[m]&&(".."==g[m]?d.pop():g[m].length&&d.push(g[m]));s=l+h+d.join("/")}}}var v=u.$$rewrite(s);s&&!o.attr("target")&&v&&!n.isDefaultPrevented()&&(n.preventDefault(),v!=i.url()&&(u.$$parse(v),r.$apply(),e.angular["ff-684208-preventDefault"]=!0))}}}),u.absUrl()!=h&&i.url(u.absUrl(),!0),i.onUrlChange(function(e){u.absUrl()!=e&&(r.$evalAsync(function(){var t=u.absUrl();u.$$parse(e),r.$broadcast("$locationChangeStart",e,t).defaultPrevented?(u.$$parse(t),i.url(t)):s(t)}),r.$$phase||r.$digest())});var d=0;return r.$watch(function(){var e=i.url(),t=u.$$replace;return d&&e==u.absUrl()||(d++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),e).defaultPrevented?u.$$parse(e):(i.url(u.absUrl(),t),s(e))})),u.$$replace=!1,d}),u}]}function vn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||d,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function yn(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ci("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function $n(e,t){if(e){if(e.constructor===e)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.document&&e.location&&e.alert&&e.setInterval)throw ci("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ci("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ci("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function xn(e,t){if(e){if(e.constructor===e)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===fi||e===hi||pi&&e===pi)throw ci("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function bn(e,t,r,i,o){o=o||{};for(var a,s=t.split("."),u=0;s.length>1;u++){a=yn(s.shift(),i);var c=e[a];c||(c={},e[a]=c),e=c,e.then&&o.unwrapPromises&&(ui(i),"$$v"in e||function(e){e.then(function(t){e.$$v=t})}(e),e.$$v===n&&(e.$$v={}),e=e.$$v)}return a=yn(s.shift(),i),$n(e,i),$n(e[a],i),e[a]=r,r}function wn(e,t,r,i,o,a,s){return yn(e,a),yn(t,a),yn(r,a),yn(i,a),yn(o,a),s.unwrapPromises?function(s,u){var c,l=u&&u.hasOwnProperty(e)?u:s;return null==l?l:(l=l[e],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),t?null==l?n:(l=l[t],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),r?null==l?n:(l=l[r],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),i?null==l?n:(l=l[i],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),o?null==l?n:(l=l[o],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),l):l):l):l):l)}:function(a,s){var u=s&&s.hasOwnProperty(e)?s:a;return null==u?u:(u=u[e],t?null==u?n:(u=u[t],r?null==u?n:(u=u[r],i?null==u?n:(u=u[i],o?null==u?n:u=u[o]:u):u):u):u)}}function Cn(e,t,r){if(yi.hasOwnProperty(e))return yi[e];var i,a=e.split("."),s=a.length;if(t.csp)i=6>s?wn(a[0],a[1],a[2],a[3],a[4],r,t):function(e,i){var o,u=0;do o=wn(a[u++],a[u++],a[u++],a[u++],a[u++],r,t)(e,i),i=n,e=o;while(s>u);return o};else{var u="var p;\n";o(a,function(e,n){yn(e,r),u+="if(s == null) return undefined;\ns="+(n?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"]'+";\n"+(t.unwrapPromises?'if (s && s.then) {\n pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n'+' if (!("$$v" in s)) {\n'+" p=s;\n"+" p.$$v = undefined;\n"+" p.then(function(v) {p.$$v=v;});\n"+"}\n"+" s=s.$$v\n"+"}\n":"")}),u+="return s;";var c=new Function("s","k","pw",u);c.toString=m(u),i=t.unwrapPromises?function(e,t){return c(e,t,ui)}:c}return"hasOwnProperty"!==e&&(yi[e]=i),i}function Sn(){var e={},t={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(e){return y(e)?(t.unwrapPromises=!!e,this):t.unwrapPromises},this.logPromiseWarnings=function(e){return y(e)?(t.logPromiseWarnings=e,this):t.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(n,r,i){return t.csp=r.csp,ui=function(e){t.logPromiseWarnings&&!li.hasOwnProperty(e)&&(li[e]=!0,i.warn("[$parse] Promise found in the expression `"+e+"`. "+"Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var i;switch(typeof r){case"string":if(e.hasOwnProperty(r))return e[r];var o=new mi(t),a=new vi(o,n,t);return i=a.parse(r),"hasOwnProperty"!==r&&(e[r]=i),i;case"function":return r;default:return d}}}]}function kn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Tn(function(t){e.$evalAsync(t)},t)}]}function Tn(e,t){function r(e){return e}function i(e){return c(e)}function a(e){var t=s(),n=0,r=Mr(e)?[]:{};return o(e,function(e,i){n++,u(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var s=function(){var o,a,c=[];return a={resolve:function(t){if(c){var r=c;c=n,o=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],o.then(e[0],e[1],e[2])})}},reject:function(e){a.resolve(l(e))},notify:function(t){if(c){var n=c;c.length&&e(function(){for(var e,r=0,i=n.length;i>r;r++)e=n[r],e[2](t)})}},promise:{then:function(e,n,a){var u=s(),l=function(n){try{u.resolve((C(e)?e:r)(n))}catch(i){u.reject(i),t(i)}},f=function(e){try{u.resolve((C(n)?n:i)(e))}catch(r){u.reject(r),t(r)}},h=function(e){try{u.notify((C(a)?a:r)(e))}catch(n){t(n)}};return c?c.push([l,f,h]):o.then(l,f,h),u.promise},"catch":function(e){return this.then(null,e)},"finally":function(e){function t(e,t){var n=s();return t?n.resolve(e):n.reject(e),n.promise}function n(n,i){var o=null;try{o=(e||r)()}catch(a){return t(a,!1)}return M(o)?o.then(function(){return t(n,i)},function(e){return t(e,!1)}):t(n,i)}return this.then(function(e){return n(e,!0)},function(e){return n(e,!1)})}}}},u=function(t){return M(t)?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},c=function(e){var t=s();return t.reject(e),t.promise},l=function(n){return{then:function(r,o){var a=s();return e(function(){try{a.resolve((C(o)?o:i)(n))}catch(e){a.reject(e),t(e)}}),a.promise}}},f=function(n,o,a,l){var f,h=s(),p=function(e){try{return(C(o)?o:r)(e)}catch(n){return t(n),c(n)}},d=function(e){try{return(C(a)?a:i)(e)}catch(n){return t(n),c(n)}},g=function(e){try{return(C(l)?l:r)(e)}catch(n){t(n)}};return e(function(){u(n).then(function(e){f||(f=!0,h.resolve(u(e).then(p,d,g)))},function(e){f||(f=!0,h.resolve(d(e)))},function(e){f||h.notify(g(e))})}),h.promise};return{defer:s,reject:c,when:f,all:a}}function En(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function An(){var e=10,t=r("$rootScope"),n=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,a,s,u){function l(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function f(e){if(v.$$phase)throw t("inprog","{0} already in progress",v.$$phase);v.$$phase=e}function h(){v.$$phase=null}function p(e,t){var n=s(e);return nt(n,t),n}function g(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function m(){}l.prototype={constructor:l,$new:function(e){var t;return e?(t=new l,t.$root=this.$root,t.$$asyncQueue=this.$$asyncQueue,t.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=c(),this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),t=new this.$$childScopeClass),t["this"]=t,t.$parent=this,t.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=t,this.$$childTail=t):this.$$childHead=this.$$childTail=t,t},$watch:function(e,t,r){var i=this,o=p(e,"watch"),a=i.$$watchers,s={fn:t,last:m,get:o,exp:e,eq:!!r};if(n=null,!C(t)){var u=p(t||d,"listener");s.fn=function(e,t,n){u(n)}}if("string"==typeof e&&o.constant){var c=s.fn;s.fn=function(e,t,n){c.call(this,e,t,n),j(a,s)}}return a||(a=i.$$watchers=[]),a.unshift(s),function(){j(a,s),n=null}},$watchCollection:function(e,t){function n(){o=h(c);var e,t,n;if($(o))if(i(o)){a!==p&&(a=p,m=a.length=0,f++),e=o.length,m!==e&&(f++,a.length=m=e);for(var r=0;e>r;r++)n=a[r]!==a[r]&&o[r]!==o[r],n||a[r]===o[r]||(f++,a[r]=o[r])}else{a!==d&&(a=d={},m=0,f++),e=0;for(t in o)o.hasOwnProperty(t)&&(e++,a.hasOwnProperty(t)?(n=a[t]!==a[t]&&o[t]!==o[t],n||a[t]===o[t]||(f++,a[t]=o[t])):(m++,a[t]=o[t],f++));if(m>e){f++;for(t in a)a.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&(m--,delete a[t])}}else a!==o&&(a=o,f++);return f}function r(){if(g?(g=!1,t(o,o,c)):t(o,u,c),l)if($(o))if(i(o)){u=new Array(o.length);for(var e=0;e<o.length;e++)u[e]=o[e]}else{u={};for(var n in o)dr.call(o,n)&&(u[n]=o[n])}else u=o}var o,a,u,c=this,l=t.length>1,f=0,h=s(e),p=[],d={},g=!0,m=0;return this.$watch(n,r)},$digest:function(){var r,i,o,s,u,c,l,p,d,g,v,y=this.$$asyncQueue,$=this.$$postDigestQueue,x=e,b=this,w=[];f("$digest"),n=null;do{for(c=!1,p=b;y.length;){try{v=y.shift(),v.scope.$eval(v.expression)}catch(S){h(),a(S)}n=null}e:do{if(s=p.$$watchers)for(u=s.length;u--;)try{if(r=s[u])if((i=r.get(p))===(o=r.last)||(r.eq?L(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){c=!1;break e}}else c=!0,n=r,r.last=r.eq?P(i,null):i,r.fn(i,o===m?i:o,p),5>x&&(d=4-x,w[d]||(w[d]=[]),g=C(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,g+="; newVal: "+U(i)+"; oldVal: "+U(o),w[d].push(g))}catch(S){h(),a(S)}if(!(l=p.$$childHead||p!==b&&p.$$nextSibling))for(;p!==b&&!(l=p.$$nextSibling);)p=p.$parent}while(p=l);if((c||y.length)&&!x--)throw h(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,U(w))}while(c||y.length);for(h();$.length;)try{$.shift()()}catch(S){a(S)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v&&(o(this.$$listenerCount,H(null,g,this)),e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=d,this.$on=this.$watch=function(){return d})}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e){v.$$phase||v.$$asyncQueue.length||u.defer(function(){v.$$asyncQueue.length&&v.$digest()}),this.$$asyncQueue.push({scope:this,expression:e})},$$postDigest:function(e){this.$$postDigestQueue.push(e)},$apply:function(e){try{return f("$apply"),this.$eval(e)}catch(t){a(t)}finally{h();try{v.$digest()}catch(t){throw a(t),t}}},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){n[_(n,t)]=null,g(i,1,e)}},$emit:function(e){var t,n,r,i=[],o=this,s=!1,u={name:e,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=R([u],arguments,1);do{for(t=o.$$listeners[e]||i,u.currentScope=o,n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,c)}catch(l){a(l)}else t.splice(n,1),n--,r--;if(s)return u;o=o.$parent}while(o);return u},$broadcast:function(e){for(var t,n,r,i=this,o=i,s=i,u={name:e,targetScope:i,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=R([u],arguments,1);o=s;){for(u.currentScope=o,t=o.$$listeners[e]||[],n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,c)}catch(l){a(l)}else t.splice(n,1),n--,r--;if(!(s=o.$$listenerCount[e]&&o.$$childHead||o!==i&&o.$$nextSibling))for(;o!==i&&!(s=o.$$nextSibling);)o=o.$parent}return u}};var v=new l;return v}]}function Mn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file):|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,r){var i,o=r?t:e;return yr&&!(yr>=8)||(i=Ln(n).href,""===i||i.match(o))?n:"unsafe:"+i}}}function Nn(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Dn(e){if("self"===e)return e;if(x(e)){if(e.indexOf("***")>-1)throw $i("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Nn(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw $i("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function On(e){var t=[];return y(e)&&o(e,function(e){t.push(Dn(e))}),t}function _n(){this.SCE_CONTEXTS=xi;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=On(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=On(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?Rn(t):!!e.exec(t.href)}function o(n){var r,o,a=Ln(n.toString()),s=!1;for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=h.hasOwnProperty(e)?h[e]:null;if(!r)throw $i("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw $i("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||t===n||""===t)return t;var r=h.hasOwnProperty(e)?h[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===xi.RESOURCE_URL){if(o(t))return t;throw $i("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===xi.HTML)return l(t);throw $i("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(){throw $i("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(l=r.get("$sanitize"));var f=a(),h={};return h[xi.HTML]=a(f),h[xi.CSS]=a(f),h[xi.URL]=a(f),h[xi.JS]=a(f),h[xi.RESOURCE_URL]=a(h[xi.URL]),{trustAs:s,getTrusted:c,valueOf:u}}]}function jn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sniffer","$sceDelegate",function(t,n,r){if(e&&n.msie&&n.msieDocumentMode<8)throw $i("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 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=q(xi);i.isEnabled=function(){return e},i.trustAs=r.trustAs,i.getTrusted=r.getTrusted,i.valueOf=r.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=g),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:function(t,n){return i.getTrusted(e,r(t,n))}};var a=i.parseAs,s=i.getTrusted,u=i.trustAs;return o(xi,function(e,t){var n=pr(t);i[ct("parse_as_"+n)]=function(t){return a(e,t)},i[ct("get_trusted_"+n)]=function(t){return s(e,t)},i[ct("trust_as_"+n)]=function(t){return u(e,t)}}),i}]}function Pn(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=h((/android (\d+)/.exec(pr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.documentMode,c=/^(Moz|webkit|O|ms)(?=[A-Z])/,l=s.body&&s.body.style,f=!1,p=!1;if(l){for(var d in l)if(r=c.exec(d)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),f=!!("transition"in l||n+"Transition"in l),p=!!("animation"in l||n+"Animation"in l),!o||f&&p||(f=x(s.body.style.webkitTransition),p=x(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hashchange:"onhashchange"in e&&(!u||u>7),hasEvent:function(e){if("input"==e&&9==yr)return!1;if(v(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:Dr(),vendorPrefix:n,transitions:f,animations:p,android:o,msie:yr,msieDocumentMode:u}}]}function qn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function i(i,a,s){var u,c=n.defer(),l=c.promise,f=y(s)&&!s;return u=t.defer(function(){try{c.resolve(i())}catch(t){c.reject(t),r(t)}finally{delete o[l.$$timeoutId]}f||e.$apply()},a),l.$$timeoutId=u,o[u]=c,l}var o={};return i.cancel=function(e){return e&&e.$$timeoutId in o?(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},i}]}function Ln(e){var t=e;return yr&&(bi.setAttribute("href",t),t=bi.href),bi.setAttribute("href",t),{href:bi.href,protocol:bi.protocol?bi.protocol.replace(/:$/,""):"",host:bi.host,search:bi.search?bi.search.replace(/^\?/,""):"",hash:bi.hash?bi.hash.replace(/^#/,""):"",hostname:bi.hostname,port:bi.port,pathname:"/"===bi.pathname.charAt(0)?bi.pathname:"/"+bi.pathname}}function Rn(e){var t=x(e)?Ln(e):e;return t.protocol===wi.protocol&&t.host===wi.host}function Fn(){this.$get=m(e)}function Hn(e){function t(r,i){if($(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Un),t("date",Zn),t("filter",In),t("json",Jn),t("limitTo",Gn),t("lowercase",Ei),t("number",zn),t("orderBy",Kn),t("uppercase",Ai)}function In(){return function(e,t,n){if(!Mr(e))return e;var r=typeof n,i=[];i.check=function(e){for(var t=0;t<i.length;t++)if(!i[t](e))return!1;return!0},"function"!==r&&(n="boolean"===r&&n?function(e,t){return Er.equals(e,t)}:function(e,t){if(e&&t&&"object"==typeof e&&"object"==typeof t){for(var r in e)if("$"!==r.charAt(0)&&dr.call(e,r)&&n(e[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),(""+e).toLowerCase().indexOf(t)>-1});var o=function(e,t){if("string"==typeof t&&"!"===t.charAt(0))return!o(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e)if("$"!==r.charAt(0)&&o(e[r],t))return!0}return!1;case"array":for(var i=0;i<e.length;i++)if(o(e[i],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};
|
||
case"object":for(var a in t)!function(e){"undefined"!=typeof t[e]&&i.push(function(n){return o("$"==e?n:n&&n[e],t[e])})}(a);break;case"function":i.push(t);break;default:return e}for(var s=[],u=0;u<e.length;u++){var c=e[u];i.check(c)&&s.push(c)}return s}}function Un(e){var t=e.NUMBER_FORMATS;return function(e,n){return v(n)&&(n=t.CURRENCY_SYM),Bn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return Bn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Bn(e,t,n,r,i){if(null==e||!isFinite(e)||$(e))return"";var o=0>e;e=Math.abs(e);var a=e+"",s="",u=[],c=!1;if(-1!==a.indexOf("e")){var l=a.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>i+1?(a="0",e=0):(s=a,c=!0)}if(c)i>0&&e>-1&&1>e&&(s=e.toFixed(i));else{var f=(a.split(Ci)[1]||"").length;v(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var h=(""+e).split(Ci),p=h[0];h=h[1]||"";var d,g=0,m=t.lgSize,y=t.gSize;if(p.length>=m+y)for(g=p.length-m,d=0;g>d;d++)0===(g-d)%y&&0!==d&&(s+=n),s+=p.charAt(d);for(d=g;d<p.length;d++)0===(p.length-d)%m&&0!==d&&(s+=n),s+=p.charAt(d);for(;h.length<i;)h+="0";i&&"0"!==i&&(s+=r+h.substr(0,i))}return u.push(o?t.negPre:t.posPre),u.push(s),u.push(o?t.negSuf:t.posSuf),u.join("")}function Vn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Wn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Vn(o,t,r)}}function Xn(e,t){return function(n,r){var i=n["get"+e](),o=gr(t?"SHORT"+e:e);return r[o][i]}}function Yn(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Vn(Math[t>0?"floor":"ceil"](t/60),2)+Vn(Math.abs(t%60),2)}function Qn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Zn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=h(t[9]+t[10]),o=h(t[9]+t[11])),a.call(r,h(t[1]),h(t[2])-1,h(t[3]));var u=h(t[4]||0)-i,c=h(t[5]||0)-o,l=h(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,c,l,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var i,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,x(n)&&(n=Ti.test(n)?h(n):t(n)),b(n)&&(n=new Date(n)),!w(n))return n;for(;r;)a=ki.exec(r),a?(u=R(u,a,1),r=u.pop()):(u.push(r),r=null);return o(u,function(t){i=Si[t],s+=i?i(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Jn(){return function(e){return U(e,!0)}}function Gn(){return function(e,t){if(!Mr(e)&&!x(e))return e;if(t=1/0===Math.abs(Number(t))?Number(t):h(t),x(e))return t?t>=0?e.slice(0,t):e.slice(t,e.length):"";var n,r,i=[];for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)i.push(e[n]);return i}}function Kn(e){return function(t,n,r){function i(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function o(e,t){return B(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e,r=typeof t;return n==r?(w(e)&&w(t)&&(e=e.valueOf(),t=t.valueOf()),"string"==n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}if(!Mr(t))return t;if(!n)return t;n=Mr(n)?n:[n],n=D(n,function(t){var n=!1,r=t||g;if(x(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t),r.constant)){var i=r();return o(function(e,t){return a(e[i],t[i])},n)}return o(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;u<t.length;u++)s.push(t[u]);return s.sort(o(i,r))}}function er(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function tr(e,t,n,r){function i(t,n){n=n?"-"+K(n,"-"):"",r.removeClass(e,(t?Ui:Ii)+n),r.addClass(e,(t?Ii:Ui)+n)}var a=this,s=e.parent().controller("form")||Di,u=0,c=a.$error={},l=[];a.$name=t.name||t.ngForm,a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,s.$addControl(a),e.addClass(zi),i(!0),a.$addControl=function(e){rt(e.$name,"input"),l.push(e),e.$name&&(a[e.$name]=e)},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],o(c,function(t,n){a.$setValidity(n,!0,e)}),j(l,e)},a.$setValidity=function(e,t,n){var r=c[e];if(t)r&&(j(r,n),r.length||(u--,u||(i(t),a.$valid=!0,a.$invalid=!1),c[e]=!1,i(!0,e),s.$setValidity(e,!0,a)));else{if(u||i(t),r){if(O(r,n))return}else c[e]=r=[],u++,i(!1,e),s.$setValidity(e,!1,a);r.push(n),a.$valid=!1,a.$invalid=!0}},a.$setDirty=function(){r.removeClass(e,zi),r.addClass(e,Bi),a.$dirty=!0,a.$pristine=!1,s.$setDirty()},a.$setPristine=function(){r.removeClass(e,Bi),r.addClass(e,zi),a.$dirty=!1,a.$pristine=!0,o(l,function(e){e.$setPristine()})}}function nr(e,t,r,i){return e.$setValidity(t,r),r?i:n}function rr(e,t){var n,r;if(t)for(n=0;n<t.length;++n)if(r=t[n],e[r])return!0;return!1}function ir(e,t,n,r,i){if($(i)){e.$$hasNativeValidators=!0;var o=function(o){return e.$error[t]||rr(i,r)||!rr(i,n)?o:(e.$setValidity(t,!1),void 0)};e.$parsers.push(o)}}function or(e,t,n,i,o,a){var s=t.prop(hr),u=t[0].placeholder,c={};if(i.$$validityState=s,!o.android){var l=!1;t.on("compositionstart",function(){l=!0}),t.on("compositionend",function(){l=!1,f()})}var f=function(r){if(!l){var o=t.val();if(yr&&"input"===(r||c).type&&t[0].placeholder!==u)return u=t[0].placeholder,void 0;B(n.ngTrim||"T")&&(o=Nr(o));var a=s&&i.$$hasNativeValidators;(i.$viewValue!==o||""===o&&a)&&(e.$$phase?i.$setViewValue(o):e.$apply(function(){i.$setViewValue(o)}))}};if(o.hasEvent("input"))t.on("input",f);else{var p,d=function(){p||(p=a.defer(function(){f(),p=null}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||d()}),o.hasEvent("paste")&&t.on("paste cut",d)}t.on("change",f),i.$render=function(){t.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)};var g,m,v=n.ngPattern;if(v){var y=function(e,t){return nr(i,"pattern",i.$isEmpty(t)||e.test(t),t)};m=v.match(/^\/(.*)\/([gim]*)$/),m?(v=new RegExp(m[1],m[2]),g=function(e){return y(v,e)}):g=function(n){var i=e.$eval(v);if(!i||!i.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",v,i,V(t));return y(i,n)},i.$formatters.push(g),i.$parsers.push(g)}if(n.ngMinlength){var $=h(n.ngMinlength),x=function(e){return nr(i,"minlength",i.$isEmpty(e)||e.length>=$,e)};i.$parsers.push(x),i.$formatters.push(x)}if(n.ngMaxlength){var b=h(n.ngMaxlength),w=function(e){return nr(i,"maxlength",i.$isEmpty(e)||e.length<=b,e)};i.$parsers.push(w),i.$formatters.push(w)}}function ar(e,t,r,i,o,a){if(or(e,t,r,i,o,a),i.$parsers.push(function(e){var t=i.$isEmpty(e);return t||Li.test(e)?(i.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(i.$setValidity("number",!1),n)}),ir(i,"number",Fi,null,i.$$validityState),i.$formatters.push(function(e){return i.$isEmpty(e)?"":""+e}),r.min){var s=function(e){var t=parseFloat(r.min);return nr(i,"min",i.$isEmpty(e)||e>=t,e)};i.$parsers.push(s),i.$formatters.push(s)}if(r.max){var u=function(e){var t=parseFloat(r.max);return nr(i,"max",i.$isEmpty(e)||t>=e,e)};i.$parsers.push(u),i.$formatters.push(u)}i.$formatters.push(function(e){return nr(i,"number",i.$isEmpty(e)||b(e),e)})}function sr(e,t,n,r,i,o){or(e,t,n,r,i,o);var a=function(e){return nr(r,"url",r.$isEmpty(e)||Pi.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function ur(e,t,n,r,i,o){or(e,t,n,r,i,o);var a=function(e){return nr(r,"email",r.$isEmpty(e)||qi.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function cr(e,t,n,r){v(n.name)&&t.attr("name",c()),t.on("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function lr(e,t,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;x(i)||(i=!0),x(o)||(o=!1),t.on("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e!==i},r.$formatters.push(function(e){return e===i}),r.$parsers.push(function(e){return e?i:o})}function fr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){if(Mr(e))return e;if(x(e))return e.split(" ");if($(e)){var t=[];return o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t}return e}return{restrict:"AC",link:function(a,s,u){function c(e){var t=f(e,1);u.$addClass(t)}function l(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||{},r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function h(e,t){var i=r(t,e),o=r(e,t);o=f(o,-1),i=f(i,1),0===i.length?n.removeClass(s,o):0===o.length?n.addClass(s,i):n.setClass(s,i,o)}function p(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(d){if(!L(e,d)){var r=i(d);h(r,n)}}else c(n)}d=q(e)}var d;a.$watch(u[e],p,!0),u.$observe("class",function(){p(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(u[e]));o===t?c(s):l(s)}})}}}]}var hr="validity",pr=function(e){return x(e)?e.toLowerCase():e},dr=Object.prototype.hasOwnProperty,gr=function(e){return x(e)?e.toUpperCase():e},mr=function(e){return x(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},vr=function(e){return x(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(pr=mr,gr=vr);var yr,$r,xr,br,wr,Cr=[].slice,Sr=[].push,kr=Object.prototype.toString,Tr=r("ng"),Er=e.angular||(e.angular={}),Ar=["0","0","0"];yr=h((/msie (\d+)/.exec(pr(navigator.userAgent))||[])[1]),isNaN(yr)&&(yr=h((/trident\/.*; rv:(\d+)/.exec(pr(navigator.userAgent))||[])[1])),d.$inject=[],g.$inject=[];var Mr=function(){return C(Array.isArray)?Array.isArray:function(e){return"[object Array]"===kr.call(e)}}(),Nr=function(){return String.prototype.trim?function(e){return x(e)?e.trim():e}:function(e){return x(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e}}();wr=9>yr?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?gr(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var Dr=function(){if(y(Dr.isActive_))return Dr.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(n){e=!0}return Dr.isActive_=e},Or=/[A-Z]/g,_r={full:"1.2.22",major:1,minor:2,dot:22,codeName:"finicky-pleasure"};dt.expando="ng339";var jr=dt.cache={},Pr=1,qr=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},Lr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)};dt._data=function(e){return this.cache[e[this.expando]]||{}};var Rr=/([\:\-\_]+(.))/g,Fr=/^moz([A-Z])/,Hr=r("jqLite"),Ir=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Ur=/<|&#?\w+;/,zr=/<([\w:]+)/,Br=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Vr={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,"",""]};Vr.optgroup=Vr.option,Vr.tbody=Vr.tfoot=Vr.colgroup=Vr.caption=Vr.thead,Vr.th=Vr.td;var Wr=dt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),dt(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return e>=0?$r(this[e]):$r(this[this.length+e])},length:0,push:Sr,sort:[].sort,splice:[].splice},Xr={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Xr[pr(e)]=e});var Yr={};o("input,select,option,textarea,button,form,details".split(","),function(e){Yr[gr(e)]=!0}),o({data:xt,removeData:yt},function(e,t){dt[t]=e}),o({data:xt,inheritedData:Tt,scope:function(e){return $r.data(e,"$scope")||Tt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return $r.data(e,"$isolateScope")||$r.data(e,"$isolateScopeNoTemplate")},controller:kt,injector:function(e){return Tt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:bt,css:function(e,t,r){if(t=ct(t),!y(r)){var i;return 8>=yr&&(i=e.currentStyle&&e.currentStyle[t],""===i&&(i="auto")),i=i||e.style[t],8>=yr&&(i=""===i?n:i),i}e.style[t]=r},attr:function(e,t,r){var i=pr(t);if(Xr[i]){if(!y(r))return e[t]||(e.attributes.getNamedItem(t)||d).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(y(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,n){return y(n)?(e[t]=n,void 0):e[t]},text:function(){function e(e,n){var r=t[e.nodeType];return v(n)?r?e[r]:"":(e[r]=n,void 0)}var t=[];return 9>yr?(t[1]="innerText",t[3]="nodeValue"):t[1]=t[3]="textContent",e.$dv="",e}(),val:function(e,t){if(v(t)){if("SELECT"===wr(e)&&e.multiple){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(v(t))return e.innerHTML;for(var n=0,r=e.childNodes;n<r.length;n++)mt(r[n]);e.innerHTML=t},empty:Et},function(e,t){dt.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==Et&&(2==e.length&&e!==bt&&e!==kt?t:r)===n){if($(t)){for(i=0;a>i;i++)if(e===xt)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,u=s===n?Math.min(a,1):a,c=0;u>c;c++){var l=e(this[c],t,r);s=s?s+l:l}return s}for(i=0;a>i;i++)e(this[i],t,r);return this}}),o({removeData:yt,dealoc:mt,on:function Ao(e,n,r,i){if(y(i))throw Hr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var a=$t(e,"events"),s=$t(e,"handle");a||$t(e,"events",a={}),s||$t(e,"handle",s=Mt(e,a)),o(n.split(" "),function(n){var i=a[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var o=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1};a[n]=[];var u={mouseleave:"mouseout",mouseenter:"mouseover"};Ao(e,u[n],function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!o(t,r))&&s(e,n)})}else qr(e,n,s),a[n]=[];i=a[n]}i.push(r)})},off:vt,one:function(e,t,n){e=$r(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;mt(e),o(new dt(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){o(new dt(t),function(t){(1===e.nodeType||11===e.nodeType)&&e.appendChild(t)})},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;o(new dt(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=$r(t)[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:function(e){mt(e);var t=e.parentNode;t&&t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;o(new dt(t),function(e){r.insertBefore(e,n.nextSibling),n=e})},addClass:Ct,removeClass:wt,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;v(r)&&(r=!bt(e,t)),(r?Ct:wt)(e,t)})},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){if(e.nextElementSibling)return e.nextElementSibling;for(var t=e.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:gt,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=($t(e,"events")||{})[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopPropagation:d,type:s,target:e},t.type&&(r=f(r,t)),i=q(u),a=n?[r].concat(n):[r],o(i,function(t){t.apply(e,a)}))}},function(e,t){dt.prototype[t]=function(t,n,r){for(var i,o=0;o<this.length;o++)v(i)?(i=e(this[o],t,n,r),y(i)&&(i=$r(i))):St(i,e(this[o],t,n,r));return y(i)?i:this},dt.prototype.bind=dt.prototype.on,dt.prototype.unbind=dt.prototype.off}),Dt.prototype={put:function(e,t){this[Nt(e,this.nextUid)]=t},get:function(e){return this[Nt(e,this.nextUid)]},remove:function(e){var t=this[e=Nt(e,this.nextUid)];return delete this[e],t}};var Qr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Zr=/,/,Jr=/^\s*(_?)(\S+?)\1\s*$/,Gr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Kr=r("$injector"),ei=r("$animate"),ti=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw ei("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$timeout","$$asyncCallback",function(e,t){function n(e){e&&t(e)}return{enter:function(e,t,r,i){r?r.after(e):(t&&t[0]||(t=r.parent()),t.append(e)),n(i)},leave:function(e,t){e.remove(),n(t)},move:function(e,t,n,r){this.enter(e,t,n,r)},addClass:function(e,t,r){t=x(t)?t:Mr(t)?t.join(" "):"",o(e,function(e){Ct(e,t)}),n(r)},removeClass:function(e,t,r){t=x(t)?t:Mr(t)?t.join(" "):"",o(e,function(e){wt(e,t)}),n(r)},setClass:function(e,t,r,i){o(e,function(e){Ct(e,t),wt(e,r)}),n(i)},enabled:d}}]}],ni=r("$compile");Ht.$inject=["$provide","$$sanitizeUriProvider"];var ri=/^(x[\:\-_]|data[\:\-_])/i,ii=r("$interpolate"),oi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ai={http:80,https:443,ftp:21},si=r("$location");pn.prototype=hn.prototype=fn.prototype={$$html5:!1,$$replace:!1,absUrl:dn("$$absUrl"),url:function(e,t){if(v(e))return this.$$url;var n=oi.exec(e);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",t),this},protocol:dn("$$protocol"),host:dn("$$host"),port:dn("$$port"),path:gn("$$path",function(e){return"/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(x(e))this.$$search=X(e);else{if(!$(e))throw si("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:gn("$$hash",g),replace:function(){return this.$$replace=!0,this}};var ui,ci=r("$parse"),li={},fi=Function.prototype.call,hi=Function.prototype.apply,pi=Function.prototype.bind,di={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:d,"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),y(r)?y(i)?r+i:r:y(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(y(n)?n:0)-(y(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":d,"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}},gi={n:"\n",f:"\f",r:"\r",t:" ",v:"","'":"'",'"':'"'},mi=function(e){this.options=e};mi.prototype={constructor:mi,lex:function(e){for(this.text=e,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var t=this.ch+this.peek(),r=t+this.peek(2),i=di[this.ch],o=di[t],a=di[r];a?(this.tokens.push({index:this.index,text:r,fn:a}),this.index+=3):o?(this.tokens.push({index:this.index,text:t,fn:o}),this.index+=2):i?(this.tokens.push({index:this.index,text:this.ch,fn:i}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(e){return-1!==e.indexOf(this.ch)},was:function(e){return-1!==e.indexOf(this.lastCh)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||""===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ci("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=pr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}e=1*e,this.tokens.push({index:t,text:e,literal:!0,constant:!0,fn:function(){return e}})},readIdent:function(){for(var e,t,n,r,i=this,o="",a=this.index;this.index<this.text.length&&(r=this.text.charAt(this.index),"."===r||this.isIdent(r)||this.isNumber(r));)"."===r&&(e=this.index),o+=r,this.index++;if(e)for(t=this.index;t<this.text.length;){if(r=this.text.charAt(t),"("===r){n=o.substr(e-a+1),o=o.substr(0,e-a),this.index=t;break}if(!this.isWhitespace(r))break;t++}var s={index:a,text:o};if(di.hasOwnProperty(o))s.fn=di[o],s.literal=!0,s.constant=!0;else{var u=Cn(o,this.options,this.text);s.fn=f(function(e,t){return u(e,t)},{assign:function(e,t){return bn(e,o,t,i.text,i.options)}})}this.tokens.push(s),n&&(this.tokens.push({index:e,text:"."}),this.tokens.push({index:e+1,text:n}))},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=gi[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,this.tokens.push({index:t,text:r,string:n,literal:!0,constant:!0,fn:function(){return n}}),void 0;n+=o}this.index++}this.throwError("Unterminated quote",t)}};var vi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n};vi.ZERO=f(function(){return 0},{constant:!0}),vi.prototype={constructor:vi,parse:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var e;if(this.expect("("))e=this.filterChain(),this.consume(")");else if(this.expect("["))e=this.arrayDeclaration();else if(this.expect("{"))e=this.object();else{var t=this.expect();e=t.fn,e||this.throwError("not a primary expression",t),e.literal=!!t.literal,e.constant=!!t.constant}for(var n,r;n=this.expect("(","[",".");)"("===n.text?(e=this.functionCall(e,r),r=null):"["===n.text?(r=e,e=this.objectIndex(e)):"."===n.text?(r=e,e=this.fieldAccess(e)):this.throwError("IMPOSSIBLE");return e},throwError:function(e,t){throw ci("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(0===this.tokens.length)throw ci("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){if(this.tokens.length>0){var i=this.tokens[0],o=i.text;if(o===e||o===t||o===n||o===r||!e&&!t&&!n&&!r)return i}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},consume:function(e){this.expect(e)||this.throwError("is unexpected, expecting ["+e+"]",this.peek())},unaryFn:function(e,t){return f(function(n,r){return e(n,r,t)},{constant:t.constant})},ternaryFn:function(e,t,n){return f(function(r,i){return e(r,i)?t(r,i):n(r,i)},{constant:e.constant&&t.constant&&n.constant})},binaryFn:function(e,t,n){return f(function(r,i){return t(r,i,e,n)},{constant:e.constant&&n.constant})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,i=0;i<e.length;i++){var o=e[i];o&&(r=o(t,n))}return r}},filterChain:function(){for(var e,t=this.expression();;){if(!(e=this.expect("|")))return t;t=this.binaryFn(t,e.fn,this.filter())}},filter:function(){for(var e=this.expect(),t=this.$filter(e.text),n=[];;){if(!(e=this.expect(":"))){var r=function(e,r,i){for(var o=[i],a=0;a<n.length;a++)o.push(n[a](e,r));return t.apply(e,o)};return function(){return r}}n.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),function(t,r){return n.assign(t,e(t,r),r)}):n},ternary:function(){var e,t,n=this.logicalOR();return(t=this.expect("?"))?(e=this.assignment(),(t=this.expect(":"))?this.ternaryFn(n,e,this.assignment()):(this.throwError("expected :",t),void 0)):n},logicalOR:function(){for(var e,t=this.logicalAND();;){if(!(e=this.expect("||")))return t;t=this.binaryFn(t,e.fn,this.logicalAND())}},logicalAND:function(){var e,t=this.equality();return(e=this.expect("&&"))&&(t=this.binaryFn(t,e.fn,this.logicalAND())),t},equality:function(){var e,t=this.relational();return(e=this.expect("==","!=","===","!=="))&&(t=this.binaryFn(t,e.fn,this.equality())),t},relational:function(){var e,t=this.additive();return(e=this.expect("<",">","<=",">="))&&(t=this.binaryFn(t,e.fn,this.relational())),t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.fn,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.fn,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(vi.ZERO,e.fn,this.unary()):(e=this.expect("!"))?this.unaryFn(e.fn,this.unary()):this.primary()},fieldAccess:function(e){var t=this,n=this.expect().text,r=Cn(n,this.options,this.text);return f(function(t,n,i){return r(i||e(t,n))},{assign:function(r,i,o){var a=e(r,o);return a||e.assign(r,a={}),bn(a,n,i,t.text,t.options)}})},objectIndex:function(e){var t=this,r=this.expression();return this.consume("]"),f(function(i,o){var a,s,u=e(i,o),c=r(i,o);return yn(c,t.text),u?(a=$n(u[c],t.text),a&&a.then&&t.options.unwrapPromises&&(s=a,"$$v"in a||(s.$$v=n,s.then(function(e){s.$$v=e})),a=a.$$v),a):n},{assign:function(n,i,o){var a=yn(r(n,o),t.text),s=$n(e(n,o),t.text);return s||e.assign(n,s={}),s[a]=i}})},functionCall:function(e,t){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));this.consume(")");var r=this;return function(i,o){for(var a=[],s=t?t(i,o):i,u=0;u<n.length;u++)a.push(n[u](i,o));var c=e(i,o,s)||d;$n(s,r.text),xn(c,r.text);var l=c.apply?c.apply(s,a):c(a[0],a[1],a[2],a[3],a[4]);return $n(l,r.text)}},arrayDeclaration:function(){var e=[],t=!0;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;var n=this.expression();e.push(n),n.constant||(t=!1)}while(this.expect(","));return this.consume("]"),f(function(t,n){for(var r=[],i=0;i<e.length;i++)r.push(e[i](t,n));return r},{literal:!0,constant:t})},object:function(){var e=[],t=!0;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.expect(),r=n.string||n.text;this.consume(":");var i=this.expression();e.push({key:r,value:i}),i.constant||(t=!1)}while(this.expect(","));return this.consume("}"),f(function(t,n){for(var r={},i=0;i<e.length;i++){var o=e[i];r[o.key]=o.value(t,n)}return r},{literal:!0,constant:t})}};var yi={},$i=r("$sce"),xi={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bi=t.createElement("a"),wi=Ln(e.location.href,!0);Hn.$inject=["$provide"],Un.$inject=["$locale"],zn.$inject=["$locale"];var Ci=".",Si={yyyy:Wn("FullYear",4),yy:Wn("FullYear",2,0,!0),y:Wn("FullYear",1),MMMM:Xn("Month"),MMM:Xn("Month",!0),MM:Wn("Month",2,1),M:Wn("Month",1,1),dd:Wn("Date",2),d:Wn("Date",1),HH:Wn("Hours",2),H:Wn("Hours",1),hh:Wn("Hours",2,-12),h:Wn("Hours",1,-12),mm:Wn("Minutes",2),m:Wn("Minutes",1),ss:Wn("Seconds",2),s:Wn("Seconds",1),sss:Wn("Milliseconds",3),EEEE:Xn("Day"),EEE:Xn("Day",!0),a:Qn,Z:Yn},ki=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Ti=/^\-?\d+$/;Zn.$inject=["$locale"];var Ei=m(pr),Ai=m(gr);Kn.$inject=["$parse"];var Mi=m({restrict:"E",compile:function(e,n){return 8>=yr&&(n.href||n.name||n.$set("href",""),e.append(t.createComment("IE fix"))),n.href||n.xlinkHref||n.name?void 0:function(e,t){var n="[object SVGAnimatedString]"===kr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}),Ni={};o(Xr,function(e,t){if("multiple"!=e){var n=It("ng-"+t);Ni[n]=function(){return{priority:100,link:function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),o(["src","srcset","href"],function(e){var t=It("ng-"+e);Ni[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===kr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(e){e&&(i.$set(a,e),yr&&o&&r.prop(o,i[a]))})}}}});var Di={$addControl:d,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d};tr.$inject=["$element","$attrs","$scope","$animate"];var Oi=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:tr,compile:function(){return{pre:function(e,r,i,o){if(!i.action){var a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};qr(r[0],"submit",a),r.on("$destroy",function(){t(function(){Lr(r[0],"submit",a)},0,!1)})}var s=r.parent().controller("form"),u=i.name||i.ngForm;u&&bn(e,u,o,u),s&&r.on("$destroy",function(){s.$removeControl(o),u&&bn(e,u,n,u),f(o,Di)})}}}};return r}]},_i=Oi(),ji=Oi(!0),Pi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,qi=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Li=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Ri={text:or,number:ar,url:sr,email:ur,radio:cr,checkbox:lr,hidden:d,button:d,submit:d,reset:d,file:d},Fi=["badInput"],Hi=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){o&&(Ri[pr(i.type)]||Ri.text)(n,r,i,o,t,e)}}}],Ii="ng-valid",Ui="ng-invalid",zi="ng-pristine",Bi="ng-dirty",Vi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(e,t,n,i,a,s){function u(e,t){t=t?"-"+K(t,"-"):"",s.removeClass(i,(e?Ui:Ii)+t),s.addClass(i,(e?Ii:Ui)+t)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var c=a(n.ngModel),l=c.assign;if(!l)throw r("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,V(i));this.$render=d,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e};var f=i.inheritedData("$formController")||Di,h=0,p=this.$error={};i.addClass(zi),u(!0),this.$setValidity=function(e,t){p[e]!==!t&&(t?(p[e]&&h--,h||(u(!0),this.$valid=!0,this.$invalid=!1)):(u(!1),this.$invalid=!0,this.$valid=!1,h++),p[e]=!t,u(t,e),f.$setValidity(e,t,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,s.removeClass(i,Bi),s.addClass(i,zi)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,s.removeClass(i,zi),s.addClass(i,Bi),f.$setDirty()),o(this.$parsers,function(e){n=e(n)
|
||
}),this.$modelValue!==n&&(this.$modelValue=n,l(e,n),o(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}}))};var g=this;e.$watch(function(){var t=c(e);if(g.$modelValue!==t){var n=g.$formatters,r=n.length;for(g.$modelValue=t;r--;)t=n[r](t);g.$viewValue!==t&&(g.$viewValue=t,g.$render())}return t})}],Wi=function(){return{require:["ngModel","^?form"],controller:Vi,link:function(e,t,n,r){var i=r[0],o=r[1]||Di;o.$addControl(i),e.$on("$destroy",function(){o.$removeControl(i)})}}},Xi=m({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Yi=function(){return{require:"?ngModel",link:function(e,t,n,r){if(r){n.required=!0;var i=function(e){return n.required&&r.$isEmpty(e)?(r.$setValidity("required",!1),void 0):(r.$setValidity("required",!0),e)};r.$formatters.push(i),r.$parsers.unshift(i),n.$observe("required",function(){i(r.$viewValue)})}}}},Qi=function(){return{require:"ngModel",link:function(e,t,r,i){var a=/\/(.*)\//.exec(r.ngList),s=a&&new RegExp(a[1])||r.ngList||",",u=function(e){if(!v(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(Nr(e))}),t}};i.$parsers.push(u),i.$formatters.push(function(e){return Mr(e)?e.join(", "):n}),i.$isEmpty=function(e){return!e||!e.length}}}},Zi=/^(true|false|\d+)$/,Ji=function(){return{priority:100,compile:function(e,t){return Zi.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Gi=er({compile:function(e){return e.addClass("ng-binding"),function(e,t,r){t.data("$binding",r.ngBind),e.$watch(r.ngBind,function(e){t.text(e==n?"":e)})}}}),Ki=["$interpolate",function(e){return function(t,n,r){var i=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i),r.$observe("ngBindTemplate",function(e){n.text(e)})}}],eo=["$sce","$parse",function(e,t){return{compile:function(n){return n.addClass("ng-binding"),function(n,r,i){function o(){return(a(n)||"").toString()}r.data("$binding",i.ngBindHtml);var a=t(i.ngBindHtml);n.$watch(o,function(){r.html(e.getTrustedHtml(a(n))||"")})}}}}],to=fr("",!0),no=fr("Odd",0),ro=fr("Even",1),io=er({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),oo=[function(){return{scope:!0,controller:"@",priority:500}}],ao={};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=It("ng-"+e);ao[t]=["$parse",function(n){return{compile:function(r,i){var o=n(i[t]);return function(t,n){n.on(pr(e),function(e){t.$apply(function(){o(t,{$event:e})})})}}}}]});var so=["$animate",function(e){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,function(o){B(o)?u||(u=n.$new(),a(u,function(n){n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=ot(s.clone),e.leave(c,function(){c=null}),s=null))})}}}],uo=["$http","$templateCache","$anchorScroll","$animate","$sce",function(e,t,n,r,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Er.noop,compile:function(o,a){var s=a.ngInclude||a.src,u=a.onload||"",c=a.autoscroll;return function(o,a,l,f,h){var p,d,g,m=0,v=function(){d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),g&&(r.leave(g,function(){d=null}),d=g,g=null)};o.$watch(i.parseAsResourceUrl(s),function(i){var s=function(){!y(c)||c&&!o.$eval(c)||n()},l=++m;i?(e.get(i,{cache:t}).success(function(e){if(l===m){var t=o.$new();f.template=e;var n=h(t,function(e){v(),r.enter(e,null,a,s)});p=t,g=n,p.$emit("$includeContentLoaded"),o.$eval(u)}}).error(function(){l===m&&v()}),o.$emit("$includeContentRequested")):(v(),f.template=null)})}}}}],co=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,n,r,i){n.html(i.template),e(n.contents())(t)}}}],lo=er({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),fo=er({terminal:!0,priority:1e3}),ho=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,i,a){var s=a.count,u=a.$attr.when&&i.attr(a.$attr.when),c=a.offset||0,l=r.$eval(u)||{},f={},h=t.startSymbol(),p=t.endSymbol(),d=/^when(Minus)?(.+)$/;o(a,function(e,t){d.test(t)&&(l[pr(t.replace("when","").replace("Minus","-"))]=i.attr(a.$attr[t]))}),o(l,function(e,r){f[r]=t(e.replace(n,h+s+"-"+c+p))}),r.$watch(function(){var t=parseFloat(r.$eval(s));return isNaN(t)?"":(t in l||(t=e.pluralCat(t-c)),f[t](r,i,!0))},function(e){i.text(e)})}}}],po=["$parse","$animate",function(e,n){function a(e){return e.clone[0]}function s(e){return e.clone[e.clone.length-1]}var u="$$NG_REMOVED",c=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(r,l,f,h,p){var d,g,m,v,y,$,x,b,w,C=f.ngRepeat,S=C.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k={$id:Nt};if(!S)throw c("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",C);if($=S[1],x=S[2],d=S[3],d?(g=e(d),m=function(e,t,n){return w&&(k[w]=e),k[b]=t,k.$index=n,g(r,k)}):(v=function(e,t){return Nt(t)},y=function(e){return e}),S=$.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!S)throw c("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",$);b=S[3]||S[1],w=S[2];var T={};r.$watchCollection(x,function(e){var f,h,d,g,$,x,S,k,E,A,M,N,D=l[0],O={},_=[];if(i(e))A=e,E=m||v;else{E=m||y,A=[];for(x in e)e.hasOwnProperty(x)&&"$"!=x.charAt(0)&&A.push(x);A.sort()}for(g=A.length,h=_.length=A.length,f=0;h>f;f++)if(x=e===A?f:A[f],S=e[x],k=E(x,S,f),rt(k,"`track by` id"),T.hasOwnProperty(k))M=T[k],delete T[k],O[k]=M,_[f]=M;else{if(O.hasOwnProperty(k))throw o(_,function(e){e&&e.scope&&(T[e.id]=e)}),c("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}",C,k);_[f]={id:k},O[k]=!1}for(x in T)T.hasOwnProperty(x)&&(M=T[x],N=ot(M.clone),n.leave(N),o(N,function(e){e[u]=!0}),M.scope.$destroy());for(f=0,h=A.length;h>f;f++){if(x=e===A?f:A[f],S=e[x],M=_[f],_[f-1]&&(D=s(_[f-1])),M.scope){$=M.scope,d=D;do d=d.nextSibling;while(d&&d[u]);a(M)!=d&&n.move(ot(M.clone),null,$r(D)),D=s(M)}else $=r.$new();$[b]=S,w&&($[w]=x),$.$index=f,$.$first=0===f,$.$last=f===g-1,$.$middle=!($.$first||$.$last),$.$odd=!($.$even=0===(1&f)),M.scope||p($,function(e){e[e.length++]=t.createComment(" end ngRepeat: "+C+" "),n.enter(e,null,$r(D)),D=e,M.scope=$,M.clone=e,O[M.id]=M})}T=O})}}}],go=["$animate",function(e){return function(t,n,r){t.$watch(r.ngShow,function(t){e[B(t)?"removeClass":"addClass"](n,"ng-hide")})}}],mo=["$animate",function(e){return function(t,n,r){t.$watch(r.ngHide,function(t){e[B(t)?"addClass":"removeClass"](n,"ng-hide")})}}],vo=er(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),yo=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,n,r,i){var a=r.ngSwitch||r.on,s=[],u=[],c=[],l=[];t.$watch(a,function(n){var a,f;for(a=0,f=c.length;f>a;++a)c[a].remove();for(c.length=0,a=0,f=l.length;f>a;++a){var h=u[a];l[a].$destroy(),c[a]=h,e.leave(h,function(){c.splice(a,1)})}u.length=0,l.length=0,(s=i.cases["!"+n]||i.cases["?"])&&(t.$eval(r.change),o(s,function(n){var r=t.$new();l.push(r),n.transclude(r,function(t){var r=n.element;u.push(t),e.enter(t,r.parent(),r)})}))})}}}],$o=er({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),xo=er({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),bo=er({link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",V(t));o(function(e){t.empty(),t.append(e)})}}),wo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Co=r("ngOptions"),So=m({terminal:!0}),ko=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:d};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},u=s;o.databound=n.ngModel,o.init=function(e,t,n){u=e,r=t,i=n},o.addOption=function(t){rt(t,'"option value"'),a[t]=!0,u.$viewValue==t&&(e.val(t),i.parent()&&i.remove())},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],u.$viewValue==e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+Nt(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=d})}],link:function(s,u,c,l){function f(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(S.parent()&&S.remove(),t.val(e),""===e&&d.prop("selected",!0)):v(e)&&d?t.val(""):r.renderUnknownOption(e)},t.on("change",function(){e.$apply(function(){S.parent()&&S.remove(),n.$setViewValue(t.val())})})}function h(e,t,n){var r;n.$render=function(){var e=new Dt(n.$viewValue);o(t.find("option"),function(t){t.selected=y(e.get(t.value))})},e.$watch(function(){L(r,n.$viewValue)||(r=q(n.$viewValue),n.$render())}),t.on("change",function(){e.$apply(function(){var e=[];o(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function p(t,o,s){function u(){var e=!1;if($){var n=s.$modelValue;if(S&&Mr(n)){e=new Dt([]);for(var r={},i=0;i<n.length;i++)r[h]=n[i],e.put(S(t,r),n[i])}else e=new Dt(n)}return e}function c(){var e,n,r,i,c,l,v,x,T,E,A,M,N,D,O,_={"":[]},j=[""],P=s.$modelValue,q=m(t)||[],L=p?a(q):q,R={},F=u();for(A=0;T=L.length,T>A;A++){if(v=A,p){if(v=L[A],"$"===v.charAt(0))continue;R[p]=v}if(R[h]=q[v],e=d(t,R)||"",(n=_[e])||(n=_[e]=[],j.push(e)),$)M=y(F.remove(S?S(t,R):g(t,R)));else{if(S){var H={};H[h]=P,M=S(t,H)===S(t,R)}else M=P===g(t,R);F=F||M}O=f(t,R),O=y(O)?O:"",n.push({id:S?S(t,R):p?L[A]:A,label:O,selected:M})}for($||(b||null===P?_[""].unshift({id:"",label:"",selected:!F}):F||_[""].unshift({id:"?",label:"",selected:!0})),E=0,x=j.length;x>E;E++){for(e=j[E],n=_[e],k.length<=E?(i={element:C.clone().attr("label",e),label:n.label},c=[i],k.push(c),o.append(i.element)):(c=k[E],i=c[0],i.label!=e&&i.element.attr("label",i.label=e)),N=null,A=0,T=n.length;T>A;A++)r=n[A],(l=c[A+1])?(N=l.element,l.label!==r.label&&N.text(l.label=r.label),l.id!==r.id&&N.val(l.id=r.id),N[0].selected!==r.selected&&(N.prop("selected",l.selected=r.selected),yr&&N.prop("selected",l.selected))):(""===r.id&&b?D=b:(D=w.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).text(r.label),c.push(l={element:D,label:r.label,id:r.id,selected:r.selected}),N?N.after(D):i.element.append(D),N=D);for(A++;c.length>A;)c.pop().element.remove()}for(;k.length>E;)k.pop()[0].element.remove()}var l;if(!(l=x.match(i)))throw Co("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",x,V(o));var f=r(l[2]||l[1]),h=l[4]||l[6],p=l[5],d=r(l[3]||""),g=r(l[2]?l[1]:h),m=r(l[7]),v=l[8],S=v?r(l[8]):null,k=[[{element:o,label:""}]];b&&(e(b)(t),b.removeClass("ng-scope"),b.remove()),o.empty(),o.on("change",function(){t.$apply(function(){var e,r,i,a,u,l,f,d,v,y=m(t)||[],x={};if($){for(i=[],l=0,d=k.length;d>l;l++)for(e=k[l],u=1,f=e.length;f>u;u++)if((a=e[u].element)[0].selected){if(r=a.val(),p&&(x[p]=r),S)for(v=0;v<y.length&&(x[h]=y[v],S(t,x)!=r);v++);else x[h]=y[r];i.push(g(t,x))}}else if(r=o.val(),"?"==r)i=n;else if(""===r)i=null;else if(S){for(v=0;v<y.length;v++)if(x[h]=y[v],S(t,x)==r){i=g(t,x);break}}else x[h]=y[r],p&&(x[p]=r),i=g(t,x);s.$setViewValue(i),c()})}),s.$render=c,t.$watchCollection(m,c),$&&t.$watchCollection(function(){return s.$modelValue},c)}if(l[1]){for(var d,g=l[0],m=l[1],$=c.multiple,x=c.ngOptions,b=!1,w=$r(t.createElement("option")),C=$r(t.createElement("optgroup")),S=w.clone(),k=0,T=u.children(),E=T.length;E>k;k++)if(""===T[k].value){d=b=T.eq(k);break}g.init(m,b,S),$&&(m.$isEmpty=function(e){return!e||0===e.length}),x?p(s,u,m):$?h(s,u,m):f(s,u,m,g)}}}}],To=["$interpolate",function(e){var t={addOption:d,removeOption:d};return{restrict:"E",priority:100,compile:function(n,r){if(v(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound?n.prop("selected",!1):s=t,i?e.$watch(i,function(e,t){r.$set("value",e),e!==t&&s.removeOption(t),s.addOption(e)}):s.addOption(r.value),n.on("$destroy",function(){s.removeOption(r.value)})}}}}],Eo=m({restrict:"E",terminal:!0});return e.angular.bootstrap?(console.log("WARNING: Tried to load angular more than once."),void 0):(et(),st(Er),$r(t).ready(function(){J(t,G)}),void 0)}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>'); |