(function(c4,c1,cG){function cE(a){return function(){var q=arguments[0],s,q="["+(a?a+":":"")+q+"] http://errors.angularjs.org/1.2.18/"+(a?a+"/":"")+q;for(s=1;s").append(q).html();try{return 3===q[0].nodeType?dh(w):w.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(B,y){return"<"+dh(y)})}catch(t){return dh(w)}}function dl(q){try{return decodeURIComponent(q)}catch(s){}}function cN(q){var s={},w,t;cK((q||"").split("&"),function(a){a&&(w=a.split("="),t=dl(w[0]),dt(t)&&(a=dt(w[1])?dl(w[1]):!0,s[t]?dg(s[t])?s[t].push(a):s[t]=[s[t],a]:s[t]=a))});return s}function bk(q){var s=[];cK(q,function(a,t){dg(a)?cK(a,function(w){s.push(dM(t,!0)+(!0===w?"":"="+dM(w,!0)))}):s.push(dM(t,!0)+(!0===a?"":"="+dM(a,!0)))});return s.length?s.join("&"):""}function bn(a){return dM(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function dM(q,s){return encodeURIComponent(q).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,s?"%20":"+")}function cH(q,s){function D(J){J&&C.push(J)}var C=[q],B,w,y=["ng:app","ng-app","x-ng-app","data-ng-app"],t=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;cK(y,function(J){y[J]=!0;D(c1.getElementById(J));J=J.replace(":","\\:");q.querySelectorAll&&(cK(q.querySelectorAll("."+J),D),cK(q.querySelectorAll("."+J+"\\:"),D),cK(q.querySelectorAll("["+J+"]"),D))});cK(C,function(L){if(!B){var J=t.exec(" "+L.className+" ");J?(B=L,w=(J[2]||"").replace(/\s+/g,",")):cK(L.attributes,function(a){!B&&y[a.name]&&(B=L,w=a.value)})}});B&&s(B,w?[w]:[])}function cp(q,s){var w=function(){q=cD(q);if(q.injector()){var a=q[0]===c1?"document":bo(q);throw ay("btstrpd",a)}s=s||[];s.unshift(["$provide",function(y){y.value("$rootElement",q)}]);s.unshift("ng");a=b3(s);a.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(B,y,J,D,C){B.$apply(function(){y.data("$injector",D);J(y)(B)})}]);return a},t=/^NG_DEFER_BOOTSTRAP!/;if(c4&&!t.test(c4.name)){return w()}c4.name=c4.name.replace(t,"");k.resumeBootstrap=function(a){cK(a,function(y){s.push(y)});w()}}function a2(q,s){s=s||"_";return q.replace(ck,function(a,t){return(t?s:"")+a.toLowerCase()})}function a0(q,s,t){if(!q){throw ay("areq",s||"?",t||"required")}return q}function d9(q,s,t){t&&dg(q)&&(q=q[q.length-1]);a0(df(q),s,"not a function, got "+(q&&"object"==typeof q?q.constructor.name||"Object":typeof q));return q}function bJ(q,s){if("hasOwnProperty"===q){throw ay("badname",s)}}function bK(q,s,C){if(!s){return q}s=s.split(".");for(var B,y=q,t=s.length,w=0;w "+t[1]+s.replace(em,"<$1>")+t[2];w.removeChild(w.firstChild);for(s=t[0];s--;){w=w.lastChild}s=0;for(t=w.childNodes.length;s=c6?(B.preventDefault=null,B.stopPropagation=null,B.isDefaultPrevented=null):(delete B.preventDefault,delete B.stopPropagation,delete B.isDefaultPrevented)};t.elem=q;return t}function cW(q){var s=typeof q,t;"object"==s&&null!==q?"function"==typeof(t=q.$$hashKey)?t=q.$$hashKey():t===cG&&(t=q.$$hashKey=b4()):t=q;return s+":"+t}function b0(a){cK(a,this.put,this)}function bw(q){var s,t;"function"==typeof q?(s=q.$inject)||(s=[],q.length&&(t=q.toString().replace(cS,""),t=t.match(cu),cK(t[1].split(b8),function(a){a.replace(bP,function(w,B,y){s.push(y)})})),q.$inject=s):dg(q)?(t=q.length-1,d9(q[t],"fn"),s=q.slice(0,t)):d9(q,"fn",!0);return s}function b3(R){function S(T){return function(a,U){if(c2(a)){cK(a,cl(T))}else{return T(a,U)}}}function Q(U,T){bJ(U,"service");if(df(T)||dg(T)){T=t.instantiate(T)}if(!T.$get){throw bC("pget",U)}return y[U+B]=T}function O(U,T){return Q(U,{$get:T})}function L(U){var T=[],Z,Y,W,V;cK(U,function(ac){if(!C.get(ac)){C.put(ac,!0);try{if(dp(ac)){for(Z=dK(ac),T=T.concat(L(Z.requires)).concat(Z._runBlocks),Y=Z._invokeQueue,W=0,V=Y.length;W 4096 bytes)!"))}else{if(U.cookie!==S){for(S=U.cookie,cd=S.split("; "),s={},cb=0;cbC&&this.remove(a.key),R}},get:function(S){if(C").parent()[0])});var T=aa(R,L,R,ex,Z,W);J(R,"ng-scope");return function(ey,eD,eC,eB){a0(ey,"scope");var eA=eD?cy.clone.call(R):R;cK(eC,function(eF,eE){eA.data("$"+eE+"Controller",eF)});eC=0;for(var a=eA.length;eCarguments.length&&(fg=fh,fh=cG);eV&&(fi=e2);return T(fh,fg,fi)}var fd,e9,e8,fe,W,ff,e2={},e3;fd=e0===e4?eZ:F(eZ,new ab(cD(e4),eZ.$attr));e9=fd.$$element;if(eF){var e7=/^\s*([@=&])(\??)\s*(\w*)\s*$/;e5=cD(e4);ff=e6.$new(!0);!eL||eL!==eF&&eL!==eF.$$originalDirective?e5.data("$isolateScopeNoTemplate",ff):e5.data("$isolateScope",ff);J(e5,"ng-isolate-scope");cK(eF.scope,function(fo,fn){var fm=fo.match(e7)||[],fk=fm[3]||fn,fl="?"==fm[2],fm=fm[1],fi,fj,fh,fg;ff.$$isolateBindings[fn]=fm+fk;switch(fm){case"@":fd.$observe(fk,function(fp){ff[fn]=fp});fd.$$observers[fk].$$scope=e6;fd[fk]&&(ff[fn]=eu(fd[fk])(e6));break;case"=":if(fl&&!fd[fk]){break}fj=ee(fd[fk]);fg=fj.literal?n:function(fq,fp){return fq===fp};fh=fj.assign||function(){fi=ff[fn]=fj(e6);throw aL("nonassign",fd[fk],eF.name)};fi=ff[fn]=fj(e6);ff.$watch(function(){var fp=fj(e6);fg(fp,ff[fn])||(fg(fp,fi)?fh(e6,fp=ff[fn]):ff[fn]=fp);return fi=fp},null,fj.literal);break;case"&":fj=ee(fd[fk]);ff[fn]=function(fp){return fj(e6,fp)};break;default:throw aL("iscp",eF.name,fn,fo)}})}e3=T&&fb;eD&&cK(eD,function(fh){var fg={$scope:fh===eF||fh.$$isolateScope?ff:e6,$element:e9,$attrs:fd,$transclude:e3},fi;W=fh.controller;"@"==W&&(W=fd[fh.name]);fi=ea(W,fg);e2[fh.name]=fi;eV||e9.data("$"+fh.name+"Controller",fi);fh.controllerAs&&(fg.$scope[fh.controllerAs]=fi)});e5=0;for(e8=eT.length;e5eM.priority){break}if(Z=eM.scope){eN=eN||eM,eM.templateUrl||(ae("new/isolated scope",eF,eM,eP),c2(Z)&&(eF=eM))}eH=eM.name;!eM.templateUrl&&eM.controller&&(Z=eM.controller,eD=eD||{},ae("'"+eH+"' controller",eD[eH],eM,eP),eD[eH]=eM);if(Z=eM.transclude){eQ=!0,eM.$$tlb||(ae("transclusion",eC,eM,eP),eC=eM),"element"==Z?(eV=!0,eO=eM.priority,Z=be(e0,ex,L),eP=eZ.$$element=cD(c1.createComment(" "+eH+": "+eZ[eH]+" ")),e0=eP[0],dd(eW,cD(eh.call(Z,0)),e0),ey=da(Z,eY,eO,eX&&eX.name,{nonTlbTranscludeDirective:eC})):(Z=cD(cV(e0)).contents(),eP.empty(),ey=da(Z,eY))}if(eM.template){if(eI=!0,ae("template",eL,eM,eP),eL=eM,Z=df(eM.template)?eM.template(eP,eZ):eM.template,Z=O(Z),eM.replace){eX=eM;Z=dY.test(Z)?cD(dR(Z)):[];e0=Z[0];if(1!=Z.length||1!==e0.nodeType){throw aL("tplrt",eH,"")}dd(eW,eP,e0);eU={$attr:{}};Z=ce(e0,[],eU);var eE=e1.splice(eA+1,e1.length-(eA+1));eF&&S(Z);e1=e1.concat(Z).concat(eE);cc(eZ,eU);eU=e1.length}else{eP.html(Z)}}if(eM.templateUrl){eI=!0,ae("template",eL,eM,eP),eL=eM,eM.replace&&(eX=eM),eG=db(e1.splice(eA,e1.length-eA),eP,eZ,eW,eQ&&ey,eT,eS,{controllerDirectives:eD,newIsolateScopeDirective:eF,templateDirective:eL,nonTlbTranscludeDirective:eC}),eU=e1.length}else{if(eM.compile){try{eB=eM.compile(eP,eZ,ey),df(eB)?eK(null,eB,ex,L):eB&&eK(eB.pre,eB.post,ex,L)}catch(ez){et(ez,bo(eP))}}}eM.terminal&&(eG.terminal=!0,eO=Math.max(eO,eM.priority))}eG.scope=eN&&!0===eN.scope;eG.transcludeOnThisElement=eQ;eG.templateOnThisElement=eI;eG.transclude=ey;eR.hasElementTranscludeDirective=eV;return eG}function S(R){for(var L=0,T=R.length;LL.priority)&&-1!=L.restrict.indexOf(W)&&(a&&(L=bB(L,{$$start:a,$$end:R})),ey.push(L),T=L)}catch(eA){et(eA)}}}return T}function cc(R,L){var Z=L.$attr,W=R.$attr,T=R.$$element;cK(R,function(ex,a){"$"!=a.charAt(0)&&(L[a]&&L[a]!==ex&&(ex+=("style"===a?";":" ")+L[a]),R.$set(a,ex,!0,Z[a]))});cK(L,function(a,ex){"class"==ex?(J(T,a),R["class"]=(R["class"]?R["class"]+" ":"")+a):"style"==ex?(T.attr("style",T.attr("style")+";"+a),R.style=(R.style?R.style+";":"")+a):"$"==ex.charAt(0)||R.hasOwnProperty(ex)||(R[ex]=a,W[ex]=Z[ex])})}function db(eE,eC,eB,eA,ey,Z,ex,W){var R=[],T,L,eG=eC[0],eD=eE.shift(),eF=dj({},eD,{templateUrl:null,transclude:null,replace:null,$$originalDirective:eD}),ez=df(eD.templateUrl)?eD.templateUrl(eC,eB):eD.templateUrl;eC.empty();es.get(eb.getTrustedResourceUrl(ez),{cache:er}).success(function(eM){var eK,eH;eM=O(eM);if(eD.replace){eM=dY.test(eM)?cD(dR(eM)):[];eK=eM[0];if(1!=eM.length||1!==eK.nodeType){throw aL("tplrt",eD.name,ez)}eM={$attr:{}};dd(eA,eC,eK);var eL=ce(eK,[],eM);c2(eD.scope)&&S(eL);eE=eL.concat(eE);cc(eB,eM)}else{eK=eG,eC.html(eM)}eE.unshift(eF);T=bc(eE,eK,eB,ey,eC,eD,Z,ex,W);cK(eA,function(eN,eO){eN==eK&&(eA[eO]=eC[0])});for(L=aa(eC[0].childNodes,ey);R.length;){eM=R.shift();eH=R.shift();var eI=R.shift(),a=R.shift(),eL=eC[0];if(eH!==eG){var eJ=eH.className;W.hasElementTranscludeDirective&&eD.replace||(eL=cV(eK));dd(eI,cD(eH),eL);J(cD(eL),eJ)}eH=T.transcludeOnThisElement?ac(eM,T.transclude,a):a;T(L,eM,eL,eA,eH)}R=null}).error(function(eI,eH,eK,eJ){throw aL("tpload",eJ.url)});return function(eI,eH,eL,eK,eJ){eI=eJ;R?(R.push(eH),R.push(eL),R.push(eK),R.push(eI)):(T.transcludeOnThisElement&&(eI=ac(eH,T.transclude,eJ)),T(L,eH,eL,eK,eI))}}function cb(R,L){var T=L.priority-R.priority;return 0!==T?T:R.name!==L.name?R.namebb.status?bc:L.reject(bc)}var ae={method:"get",transformRequest:y.transformRequest,transformResponse:y.transformResponse},ad=function(bc){function bb(cd){var ce;cK(cd,function(a,da){df(a)&&(ce=a(),null!=ce?cd[da]=ce:delete cd[da])})}var cc=y.headers,cb=dj({},bc.headers),bd,be,cc=dj({},cc.common,cc[dh(bc.method)]);bb(cc);bb(cb);bc:for(bd in cc){bc=dh(bd);for(be in cb){if(dh(be)===bc){continue bc}}cb[bd]=cc[bd]}return cb}(aa);dj(ae,aa);ae.headers=ad;ae.method=dZ(ae.method);var ab=[function(bb){ad=bb.headers;var bc=ef(bb.data,l(ad),bb.transformRequest);dn(bb.data)&&cK(ad,function(be,bd){"content-type"===dh(bd)&&delete ad[bd]});dn(bb.withCredentials)&&!dn(y.withCredentials)&&(bb.withCredentials=y.withCredentials);return V(bb,bc,ad).then(Z,Z)},cG],ac=L.when(ae);for(cK(W,function(bb){(bb.request||bb.requestError)&&ab.unshift(bb.request,bb.requestError);(bb.response||bb.responseError)&&ab.push(bb.response,bb.responseError)});ab.length;){aa=ab.shift();var Y=ab.shift(),ac=ac.then(aa,Y)}ac.success=function(bb){ac.then(function(a){bb(a.data,a.status,a.headers,ae)});return ac};ac.error=function(bb){ac.then(null,function(a){bb(a.data,a.status,a.headers,ae)});return ac};return ac}function V(ad,ab,ac){function aa(cb,be,cd,cc){Z&&(200<=cb&&300>cb?Z.put(ae,[cb,be,X(cd),cc]):Z.remove(ae));Y(be,cb,cd,cc);O.$$phase||O.$apply()}function Y(cb,be,cd,cc){be=Math.max(be,0);(200<=be&&300>be?bd.resolve:bd.reject)({data:cb,status:be,headers:l(cd),config:ad,statusText:cc})}function bc(){var be=a8(D.pendingRequests,ad);-1!==be&&D.pendingRequests.splice(be,1)}var bd=L.defer(),a=bd.promise,Z,bb,ae=U(ad.url,ad.params);D.pendingRequests.push(ad);a.then(bc,bc);(ad.cache||y.cache)&&(!1!==ad.cache&&"GET"==ad.method)&&(Z=c2(ad.cache)?ad.cache:c2(y.cache)?y.cache:S);if(Z){if(bb=Z.get(ae),dt(bb)){if(bb.then){return bb.then(bc,bc),bb}dg(bb)?Y(bb[1],bb[0],F(bb[2]),bb[3]):Y(bb,200,{},"OK")}else{Z.put(ae,a)}}dn(bb)&&((bb=bS(ad.url)?R.cookies()[ad.xsrfCookieName||y.xsrfCookieName]:cG)&&(ac[ad.xsrfHeaderName||y.xsrfHeaderName]=bb),T(ad.method,ae,ab,aa,ac,ad.timeout,ad.withCredentials,ad.responseType));return a}function U(Z,Y){if(!Y){return Z}var aa=[];g(Y,function(ac,ab){null===ac||dn(ac)||(dg(ac)||(ac=[ac]),cK(ac,function(ad){c2(ad)&&(ad=bW(ad));aa.push(dM(ab)+"="+dM(ad))}))});0=c6&&(!a.match(/^(get|post|head|put|delete|options)$/i)||!c4.XMLHttpRequest)){return new c4.ActiveXObject("Microsoft.XMLHTTP")}if(c4.XMLHttpRequest){return new c4.XMLHttpRequest}throw cE("$httpBackend")("noxhr")}function dE(){this.$get=["$browser","$window","$document",function(q,s,t){return K(q,av,q.defer,s.angular.callbacks,t[0])}]}function K(q,s,C,B,y){function t(J,D,Q){var L=y.createElement("script"),O=null;L.type="text/javascript";L.src=J;L.async=!0;O=function(R){cJ(L,"load",O);cJ(L,"error",O);y.body.removeChild(L);L=null;var T=-1,S="unknown";R&&("load"!==R.type||B[D].called||(R={type:"error"}),S=R.type,T="error"===R.type?404:200);Q&&Q(T,S)};cA(L,"load",O);cA(L,"error",O);8>=c6&&(L.onreadystatechange=function(){dp(L.readyState)&&/loaded|complete/.test(L.readyState)&&(L.onreadystatechange=null,O({type:"load"}))});y.body.appendChild(L);return O}var w=-1;return function(S,L,Q,O,J,D,a,Y){function W(){Z=w;aa&&aa();U&&U.abort()}function V(ac,bc,bb,ad,ae){R&&C.cancel(R);aa=U=null;0===bc&&(bc=bb?200:"file"==by(L).protocol?404:0);ac(1223===bc?204:bc,bb,ad,ae||"");q.$$completeOutstandingRequest(cC)}var Z;q.$$incOutstandingRequestCount();L=L||q.url();if("jsonp"==dh(S)){var T="_"+(B.counter++).toString(36);B[T]=function(ac){B[T].data=ac;B[T].called=!0};var aa=t(L.replace("JSON_CALLBACK","angular.callbacks."+T),T,function(ad,ac){V(O,ad,B[T].data,"",ac);B[T]=cC})}else{var U=s(S);U.open(S,L,!0);cK(J,function(ad,ac){dt(ad)&&U.setRequestHeader(ac,ad)});U.onreadystatechange=function(){if(U&&4==U.readyState){var ad=null,ac=null;Z!==w&&(ad=U.getAllResponseHeaders(),ac="response" in U?U.response:U.responseText);V(O,Z||U.status,ac,ad,U.statusText||"")}};a&&(U.withCredentials=!0);if(Y){try{U.responseType=Y}catch(ab){if("json"!==Y){throw ab}}}U.send(Q||null)}if(0=L&&(C.resolve(a),J(B.$$intervalId),delete t[B.$$intervalId]);S||q.$apply()},Q);t[B.$$intervalId]=C;return B}var t={};w.cancel=function(B){return B&&B.$$intervalId in t?(t[B.$$intervalId].reject("canceled"),clearInterval(B.$$intervalId),delete t[B.$$intervalId],!0):!1};return w}]}function dO(){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:"\u00a4",posSuf:"",negPre:"(\u00a4",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(a){return 1===a?"one":"other"}}}}function bu(q){q=q.split("/");for(var s=q.length;s--;){q[s]=bn(q[s])}return q.join("/")}function bF(q,s,t){q=by(q,t);s.$$protocol=q.protocol;s.$$host=q.hostname;s.$$port=cY(q.port)||f[q.protocol]||null}function bh(q,s,w){var t="/"!==q.charAt(0);t&&(q="/"+q);q=by(q,w);s.$$path=decodeURIComponent(t&&"/"===q.pathname.charAt(0)?q.pathname.substring(1):q.pathname);s.$$search=cN(q.search);s.$$hash=decodeURIComponent(q.hash);s.$$path&&"/"!=s.$$path.charAt(0)&&(s.$$path="/"+s.$$path)}function cB(q,s){if(0===s.indexOf(q)){return s.substr(q.length)}}function dx(q){var s=q.indexOf("#");return -1==s?q:q.substr(0,s)}function a7(a){return a.substr(0,dx(a).lastIndexOf("/")+1)}function aY(q,s){this.$$html5=!0;s=s||"";var t=a7(q);bF(q,this,q);this.$$parse=function(w){var y=cB(t,w);if(!dp(y)){throw aR("ipthprfx",w,t)}bh(y,this,q);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var y=bk(this.$$search),w=this.$$hash?"#"+bn(this.$$hash):"";this.$$url=bu(this.$$path)+(y?"?"+y:"")+w;this.$$absUrl=t+this.$$url.substr(1)};this.$$rewrite=function(w){var a;if((a=cB(q,w))!==cG){return w=a,(a=cB(s,a))!==cG?t+(cB("/",a)||a):q+w}if((a=cB(t,w))!==cG){return t+a}if(t==w+"/"){return t}}}function ax(q,s){var t=a7(q);bF(q,this,q);this.$$parse=function(y){var w=cB(q,y)||cB(t,y),w="#"==w.charAt(0)?cB(s,w):this.$$html5?w:"";if(!dp(w)){throw aR("ihshprfx",y,s)}bh(w,this,q);y=this.$$path;var a=/^\/[A-Z]:(\/.*)/;0===w.indexOf(q)&&(w=w.replace(q,""));a.exec(w)||(y=(w=a.exec(y))?w[1]:y);this.$$path=y;this.$$compose()};this.$$compose=function(){var w=bk(this.$$search),a=this.$$hash?"#"+bn(this.$$hash):"";this.$$url=bu(this.$$path)+(w?"?"+w:"")+a;this.$$absUrl=q+(this.$$url?s+this.$$url:"")};this.$$rewrite=function(w){if(dx(q)==dx(w)){return w}}}function N(q,s){this.$$html5=!0;ax.apply(this,arguments);var t=a7(q);this.$$rewrite=function(w){var a;if(q==dx(w)){return w}if(a=cB(t,w)){return q+s+a}if(t===w+"/"){return t}};this.$$compose=function(){var w=bk(this.$$search),a=this.$$hash?"#"+bn(this.$$hash):"";this.$$url=bu(this.$$path)+(w?"?"+w:"")+a;this.$$absUrl=q+s+this.$$url}}function ch(a){return function(){return this[a]}}function aF(q,s){return function(a){if(dn(a)){return this[q]}this[q]=s(a);this.$$compose();return this}}function c3(){var q="",s=!1;this.hashPrefix=function(t){return dt(t)?(q=t,this):q};this.html5Mode=function(a){return dt(a)?(s=a,this):s};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(Q,O,L,D){function J(R){Q.$broadcast("$locationChangeSuccess",B.absUrl(),R)}var B,w,C=O.baseHref(),y=O.url(),t;s?(t=y.substring(0,y.indexOf("/",y.indexOf("//")+2))+(C||"/"),w=L.history?aY:N):(t=dx(y),w=ax);B=new w(t,"#"+q);B.$$parse(B.$$rewrite(y));D.on("click",function(S){if(!S.ctrlKey&&!S.metaKey&&2!=S.which){for(var W=cD(S.target);"a"!==dh(W[0].nodeName);){if(W[0]===D[0]||!(W=W.parent())[0]){return}}var U=W.prop("href");c2(U)&&"[object SVGAnimatedString]"===U.toString()&&(U=by(U.animVal).href);if(w===N){var T=W.attr("href")||W.attr("xlink:href");if(0>T.indexOf("://")){if(U="#"+q,"/"==T[0]){U=t+U+T}else{if("#"==T[0]){U=t+U+(B.path()||"/")+T}else{for(var R=B.path().split("/"),T=T.split("/"),V=0;VB?ak(C[0],C[1],C[2],C[3],C[4],D,s):function(a,L){var O=0,J;do{J=ak(C[O++],C[O++],C[O++],C[O++],C[O++],D,s)(a,L),L=cG,a=J}while(Obc){for(bb in Y++,aa){aa.hasOwnProperty(bb)&&!ab.hasOwnProperty(bb)&&(R--,delete aa[bb])}}}}else{aa!==ab&&(aa=ab,Y++)}return Y},function(){S?(S=!1,ad(ab,ab,ac)):ad(ab,Z,ac);if(W){if(c2(ab)){if(cq(ab)){Z=Array(ab.length);for(var bb=0;bbbe&&(ae=4-be,ab[ae]||(ab[ae]=[]),bd=df(ac.exp)?"fn: "+(ac.exp.name||ac.exp.toString()):ac.exp,bd+="; newVal: "+bW(Z)+"; oldVal: "+bW(aa),ab[ae].push(bd))}else{if(ac===t){ad=!1;break s}}}}catch(S){a.$$phase=null,O(S)}}}if(!(V=Y.$$childHead||Y!==this&&Y.$$nextSibling)){for(;Y!==this&&!(V=Y.$$nextSibling);){Y=Y.$parent}}}while(Y=V);if((ad||W.length)&&!be--){throw a.$$phase=null,s("infdig",q,bW(ab))}}while(ad||W.length);for(a.$$phase=null;U.length;){try{U.shift()()}catch(bc){O(bc)}}},$destroy:function(){if(!this.$$destroyed){var R=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==a&&(cK(this.$$listenerCount,bI(null,B,this)),R.$$childHead==this&&(R.$$childHead=this.$$nextSibling),R.$$childTail==this&&(R.$$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=cC,this.$on=this.$watch=function(){return cC})}},$eval:function(S,R){return J(S)(this,R)},$evalAsync:function(R){a.$$phase||a.$$asyncQueue.length||L.defer(function(){a.$$asyncQueue.length&&a.$digest()});this.$$asyncQueue.push({scope:this,expression:R})},$$postDigest:function(R){this.$$postDigestQueue.push(R)},$apply:function(S){try{return y("$apply"),this.$eval(S)}catch(R){O(R)}finally{a.$$phase=null;try{a.$digest()}catch(T){throw O(T),T}}},$on:function(S,R){var V=this.$$listeners[S];V||(this.$$listeners[S]=V=[]);V.push(R);var U=this;do{U.$$listenerCount[S]||(U.$$listenerCount[S]=0),U.$$listenerCount[S]++}while(U=U.$parent);var T=this;return function(){V[a8(V,R)]=null;B(T,1,S)}},$emit:function(ac,ab){var aa=[],Z,W=this,Y=!1,U={name:ac,targetScope:W,stopPropagation:function(){Y=!0},preventDefault:function(){U.defaultPrevented=!0},defaultPrevented:!1},V=[U].concat(eh.call(arguments,1)),S,T;do{Z=W.$$listeners[ac]||aa;U.currentScope=W;S=0;for(T=Z.length;SC.msieDocumentMode){throw aU("iequirks")}var y=F(bM);y.isEnabled=function(){return a};y.trustAs=B.trustAs;y.getTrusted=B.getTrusted;y.valueOf=B.valueOf;a||(y.trustAs=y.getTrusted=function(J,D){return D},y.valueOf=z);y.parseAs=function(D,L){var J=q(L);return J.literal&&J.constant?J:function(O,Q){return y.getTrusted(D,J(O,Q))}};var t=y.parseAs,w=y.getTrusted,s=y.trustAs;cK(bM,function(J,D){var L=dh(D);y[c9("parse_as_"+L)]=function(O){return t(J,O)};y[c9("get_trusted_"+L)]=function(O){return w(J,O)};y[c9("trust_as_"+L)]=function(O){return s(J,O)}});return y}]}function di(){this.$get=["$window","$document",function(Q,R){var O={},L=cY((/android (\d+)/.exec(dh((Q.navigator||{}).userAgent))||[])[1]),J=/Boxee/i.test((Q.navigator||{}).userAgent),C=R[0]||{},D=C.documentMode,y,t=/^(Moz|webkit|O|ms)(?=[A-Z])/,B=C.body&&C.body.style,w=!1,s=!1;if(B){for(var q in B){if(w=t.exec(q)){y=w[0];y=y.substr(0,1).toUpperCase()+y.substr(1);break}}y||(y="WebkitOpacity" in B&&"webkit");w=!!("transition" in B||y+"Transition" in B);s=!!("animation" in B||y+"Animation" in B);!L||w&&s||(w=dp(C.body.style.webkitTransition),s=dp(C.body.style.webkitAnimation))}return{history:!(!Q.history||!Q.history.pushState||4>L||J),hashchange:"onhashchange" in Q&&(!D||7Q;Q=Math.abs(Q);var D=Q+"",y="",t=[],B=!1;if(-1!==D.indexOf("e")){var w=D.match(/([\d\.]+)e(-?)(\d+)/);w&&"-"==w[2]&&w[3]>J+1?D="0":(y=D,B=!0)}if(B){0Q)&&(y=Q.toFixed(J))}else{D=(D.split(a5)[1]||"").length;dn(J)&&(J=Math.min(Math.max(R.minFrac,D),R.maxFrac));D=Math.pow(10,J+1);Q=Math.floor(Q*D+5)/D;Q=(""+Q).split(a5);D=Q[0];Q=Q[1]||"";var w=0,s=R.lgSize,q=R.gSize;if(D.length>=s+q){for(w=D.length-s,B=0;Bq&&(t="-",q=-q);for(q=""+q;q.length-w){a+=w}0===a&&-12==w&&(a=12);return dI(a,s,t)}}function bx(q,s){return function(y,w){var t=y["get"+q](),a=dZ(s?"SHORT"+q:q);return w[a][t]}}function cv(q){function s(B){var y;if(y=B.match(t)){B=new Date(0);var D=0,J=0,C=y[8]?B.setUTCFullYear:B.setFullYear,w=y[8]?B.setUTCHours:B.setHours;y[9]&&(D=cY(y[9]+y[10]),J=cY(y[9]+y[11]));C.call(B,cY(y[1]),cY(y[2])-1,cY(y[3]));D=cY(y[4]||0)-D;J=cY(y[5]||0)-J;C=cY(y[6]||0);y=Math.round(1000*parseFloat("0."+(y[7]||0)));w.call(B,D,J,C,y)}return B}var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(D,C){var y="",B=[],w,a;C=C||"mediumDate";C=q.DATETIME_FORMATS[C]||C;dp(D)&&(D=dT.test(D)?cY(D):s(D));eg(D)&&(D=new Date(D));if(!bv(D)){return D}for(;C;){(a=dr.exec(C))?(B=B.concat(eh.call(a,1)),C=B.pop()):(B.push(C),C=null)}cK(B,function(J){w=cP[J];y+=w?w(D,q.DATETIME_FORMATS):J.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return y}}function aC(){return function(a){return bW(a,!0)}}function ah(){return function(q,s){if(!dg(q)&&!dp(q)){return q}s=Infinity===Math.abs(Number(s))?Number(s):cY(s);if(dp(q)){return s?0<=s?q.slice(0,s):q.slice(s,q.length):""}var y=[],w,t;s>q.length?s=q.length:s<-q.length&&(s=-q.length);0q||37<=q&&40>=q)||w()});if(Q.hasEvent("paste")){U.on("paste cut",w)}}U.on("change",C);R.$render=function(){U.val(R.$isEmpty(R.$viewValue)?"":R.$viewValue)};var s=S.ngPattern;s&&((Q=s.match(/^\/(.*)\/([gim]*)$/))?(s=RegExp(Q[1],Q[2]),Q=function(q){return ci(R,"pattern",R.$isEmpty(q)||s.test(q),q)}):Q=function(q){var a=T.$eval(s);if(!a||!a.test){throw cE("ngPattern")("noregexp",s,a,bo(U))}return ci(R,"pattern",R.$isEmpty(q)||a.test(q),q)},R.$formatters.push(Q),R.$parsers.push(Q));if(S.ngMinlength){var V=cY(S.ngMinlength);Q=function(q){return ci(R,"minlength",R.$isEmpty(q)||q.length>=V,q)};R.$parsers.push(Q);R.$formatters.push(Q)}if(S.ngMaxlength){var t=cY(S.ngMaxlength);Q=function(q){return ci(R,"maxlength",R.$isEmpty(q)||q.length<=t,q)};R.$parsers.push(Q);R.$formatters.push(Q)}}function c7(q,s){q="ngClass"+q;return["$animate",function(w){function t(C,y){var L=[],J=0;C:for(;Jc6?function(a){a=a.nodeName?a:a[0];return a.scopeName&&"HTML"!=a.scopeName?dZ(a.scopeName+":"+a.nodeName):a.nodeName}:function(a){return a.nodeName?a.nodeName:a[0].nodeName};var ck=/[A-Z]/g,ds={full:"1.2.18",major:1,minor:2,dot:18,codeName:"ear-extendability"},cm=c8.cache={},aK=c8.expando="ng"+(new Date).getTime(),dV=1,cA=c4.document.addEventListener?function(q,s,t){q.addEventListener(s,t,!1)}:function(q,s,t){q.attachEvent("on"+s,t)},cJ=c4.document.removeEventListener?function(q,s,t){q.removeEventListener(s,t,!1)}:function(q,s,t){q.detachEvent("on"+s,t)};c8._data=function(a){return this.cache[a[this.expando]]||{}};var aX=/([\:\-\_]+(.))/g,aE=/^moz([A-Z])/,eo=cE("jqLite"),aj=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,dY=/<|&#?\w+;/,r=/<([\w:]+)/,em=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,cr={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};cr.optgroup=cr.option;cr.tbody=cr.tfoot=cr.colgroup=cr.caption=cr.thead;cr.th=cr.td;var cy=c8.prototype={ready:function(q){function s(){t||(t=!0,q())}var t=!1;"complete"===c1.readyState?setTimeout(s):(this.on("DOMContentLoaded",s),c8(c4).on("load",s))},toString:function(){var a=[];cK(this,function(q){a.push(""+q)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?cD(this[a]):cD(this[this.length+a])},length:0,push:b6,sort:[].sort,splice:[].splice},d1={};cK("multiple selected checked disabled readOnly required open".split(" "),function(a){d1[dh(a)]=a});var bU={};cK("input select option textarea button form details".split(" "),function(a){bU[dZ(a)]=!0});cK({data:dC,inheritedData:b,scope:function(a){return cD(a).data("$scope")||b(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return cD(a).data("$isolateScope")||cD(a).data("$isolateScopeNoTemplate")},controller:cX,injector:function(a){return b(a,"$injector")},removeAttr:function(q,s){q.removeAttribute(s)},hasClass:cx,css:function(q,s,w){s=c9(s);if(dt(w)){q.style[s]=w}else{var t;8>=c6&&(t=q.currentStyle&&q.currentStyle[s],""===t&&(t="auto"));t=t||q.style[s];8>=c6&&(t=""===t?cG:t);return t}},attr:function(q,s,w){var t=dh(s);if(d1[t]){if(dt(w)){w?(q[s]=!0,q.setAttribute(s,t)):(q[s]=!1,q.removeAttribute(t))}else{return q[s]||(q.attributes.getNamedItem(s)||cC).specified?t:cG}}else{if(dt(w)){q.setAttribute(s,w)}else{if(q.getAttribute){return q=q.getAttribute(s,2),null===q?cG:q}}}},prop:function(q,s,t){if(dt(t)){q[s]=t}else{return q[s]}},text:function(){function q(a,w){var t=s[a.nodeType];if(dn(w)){return t?a[t]:""}a[t]=w}var s=[];9>c6?(s[1]="innerText",s[3]="nodeValue"):s[1]=s[3]="textContent";q.$dv="";return q}(),val:function(q,s){if(dn(s)){if("SELECT"===cf(q)&&q.multiple){var t=[];cK(q.options,function(w){w.selected&&t.push(w.value||w.text)});return 0===t.length?null:t}return q.value}q.value=s},html:function(q,s){if(dn(s)){return q.innerHTML}for(var w=0,t=q.childNodes;w":function(q,w,t,s){return t(q,w)>s(q,w)},"<=":function(q,w,t,s){return t(q,w)<=s(q,w)},">=":function(q,w,t,s){return t(q,w)>=s(q,w)},"&&":function(q,w,t,s){return t(q,w)&&s(q,w)},"||":function(q,w,t,s){return t(q,w)||s(q,w)},"&":function(q,w,t,s){return t(q,w)&s(q,w)},"|":function(q,w,t,s){return s(q,w)(q,w,t(q,w))},"!":function(q,t,s){return !s(q,t)}},a3={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},d8=function(q){this.options=q};d8.prototype={constructor:d8,lex:function(q){this.text=q;this.index=0;this.ch=cG;this.lastCh=":";for(this.tokens=[];this.index=q},isWhitespace:function(q){return" "===q||"\r"===q||"\t"===q||"\n"===q||"\v"===q||"\u00a0"===q},isIdent:function(q){return"a"<=q&&"z">=q||"A"<=q&&"Z">=q||"_"===q||"$"===q},isExpOperator:function(q){return"-"===q||"+"===q||this.isNumber(q)},throwError:function(q,t,s){s=s||this.index;t=dt(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,s)+"]":" "+s;throw aJ("lexerr",q,t,this.text)},readNumber:function(){for(var q="",w=this.index;this.index","<=",">=")){q=this.binaryFn(q,s.fn,this.relational())}return q},additive:function(){for(var q=this.multiplicative(),s;s=this.expect("+","-");){q=this.binaryFn(q,s.fn,this.multiplicative())}return q},multiplicative:function(){for(var q=this.unary(),s;s=this.expect("*","/","%");){q=this.binaryFn(q,s.fn,this.unary())}return q},unary:function(){var q;return this.expect("+")?this.primary():(q=this.expect("-"))?this.binaryFn(dm.ZERO,q.fn,this.unary()):(q=this.expect("!"))?this.unaryFn(q.fn,this.unary()):this.primary()},fieldAccess:function(q){var w=this,t=this.expect().text,s=u(t,this.options,this.text);return dj(function(B,y,a){return s(a||q(B,y))},{assign:function(B,y,a){return bV(q(B,a),t,y,w.text,w.options)}})},objectIndex:function(q){var t=this,s=this.expression();this.consume("]");return dj(function(C,y){var B=q(C,y),w=s(C,y),a;if(!B){return cG}(B=dQ(B[w],t.text))&&(B.then&&t.options.unwrapPromises)&&(a=B,"$$v" in B||(a.$$v=cG,a.then(function(D){a.$$v=D})),B=B.$$v);return B},{assign:function(B,w,y){var a=s(B,y);return dQ(q(B,y),t.text)[a]=w}})},functionCall:function(q,w){var t=[];if(")"!==this.peekToken().text){do{t.push(this.expression())}while(this.expect(","))}this.consume(")");var s=this;return function(C,D){for(var y=[],a=w?w(C,D):C,B=0;Bq.getHours()?s.AMPMS[0]:s.AMPMS[1]},Z:function(q){q=-1*q.getTimezoneOffset();return q=(0<=q?"+":"")+(dI(Math[0=c6&&(s.href||s.name||s.$set("href",""),q.append(c1.createComment("IE fix")));if(!s.href&&!s.xlinkHref&&!s.name){return function(t,y){var w="[object SVGAnimatedString]"===ag.call(y.prop("href"))?"xlink:href":"href";y.on("click",function(B){y.attr(w)||B.preventDefault()})}}}}),am={};cK(d1,function(q,t){if("multiple"!=q){var s=d2("ng-"+t);am[s]=function(){return{priority:100,link:function(w,y,B){w.$watch(B[s],function(C){B.$set(t,!!C)})}}}}});cK(["src","srcset","href"],function(q){var s=d2("ng-"+q);am[s]=function(){return{priority:99,link:function(B,y,t){var w=q,a=q;"href"===q&&"[object SVGAnimatedString]"===ag.call(y.prop("href"))&&(a="xlinkHref",t.$attr[a]="xlink:href",w=null);t.$observe(s,function(C){C&&(t.$set(a,C),c6&&w&&y.prop(w,t[a]))})}}}});var aA={$addControl:cC,$removeControl:cC,$setValidity:cC,$setDirty:cC,$setPristine:cC};aP.$inject=["$element","$attrs","$scope","$animate"];var au=function(q){return["$timeout",function(a){return{name:"form",restrict:q?"EAC":"E",controller:aP,compile:function(){return{pre:function(t,D,B,C){if(!B.action){var w=function(J){J.preventDefault?J.preventDefault():J.returnValue=!1};cA(D[0],"submit",w);D.on("$destroy",function(){a(function(){cJ(D[0],"submit",w)},0,!1)})}var s=D.parent().controller("form"),y=B.name||B.ngForm;y&&bV(t,y,C,y);if(s){D.on("$destroy",function(){s.$removeControl(C);y&&bV(t,y,cG,y);dj(C,aA)})}}}}}}]},co=au(),ca=au(!0),aM=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ar=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,G=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,I={text:m,number:function(q,B,y,w,s,t){m(q,B,y,w,s,t);w.$parsers.push(function(C){var D=w.$isEmpty(C);if(D||G.test(C)){return w.$setValidity("number",!0),""===C?null:D?C:parseFloat(C)}w.$setValidity("number",!1);return cG});cs(w,"number",B);w.$formatters.push(function(C){return w.$isEmpty(C)?"":""+C});y.min&&(q=function(C){var D=parseFloat(y.min);return ci(w,"min",w.$isEmpty(C)||C>=D,C)},w.$parsers.push(q),w.$formatters.push(q));y.max&&(q=function(C){var D=parseFloat(y.max);return ci(w,"max",w.$isEmpty(C)||C<=D,C)},w.$parsers.push(q),w.$formatters.push(q));w.$formatters.push(function(C){return ci(w,"number",w.$isEmpty(C)||eg(C),C)})},url:function(q,B,y,w,s,t){m(q,B,y,w,s,t);q=function(C){return ci(w,"url",w.$isEmpty(C)||aM.test(C),C)};w.$formatters.push(q);w.$parsers.push(q)},email:function(q,B,y,w,s,t){m(q,B,y,w,s,t);q=function(C){return ci(w,"email",w.$isEmpty(C)||ar.test(C),C)};w.$formatters.push(q);w.$parsers.push(q)},radio:function(q,w,t,s){dn(t.name)&&w.attr("name",b4());w.on("click",function(){w[0].checked&&q.$apply(function(){s.$setViewValue(t.value)})});s.$render=function(){w[0].checked=t.value==s.$viewValue};t.$observe("value",s.$render)},checkbox:function(q,B,y,w){var s=y.ngTrueValue,t=y.ngFalseValue;dp(s)||(s=!0);dp(t)||(t=!1);B.on("click",function(){q.$apply(function(){w.$setViewValue(B[0].checked)})});w.$render=function(){B[0].checked=w.$viewValue};w.$isEmpty=function(C){return C!==s};w.$formatters.push(function(C){return C===s});w.$parsers.push(function(C){return C?s:t})},hidden:cC,button:cC,submit:cC,reset:cC,file:cC},a1=["$browser","$sniffer",function(q,s){return{restrict:"E",require:"?ngModel",link:function(y,w,a,t){t&&(I[dh(a.type)]||I.text)(y,w,a,t,s,q)}}}],aT="ng-valid",a9="ng-invalid",bT="ng-pristine",af="ng-dirty",d=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(R,Q,O,L,D,J){function B(S,T){T=T?"-"+a2(T,"-"):"";J.removeClass(L,(S?a9:aT)+T);J.addClass(L,(S?aT:a9)+T)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=O.name;var w=D(O.ngModel),C=w.assign;if(!C){throw cE("ngModel")("nonassign",O.ngModel,bo(L))}this.$render=cC;this.$isEmpty=function(S){return dn(S)||""===S||null===S||S!==S};var y=L.inheritedData("$formController")||aA,t=0,s=this.$error={};L.addClass(bT);B(!0);this.$setValidity=function(S,T){s[S]!==!T&&(T?(s[S]&&t--,t||(B(!0),this.$valid=!0,this.$invalid=!1)):(B(!1),this.$invalid=!0,this.$valid=!1,t++),s[S]=!T,B(T,S),y.$setValidity(S,T,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;J.removeClass(L,af);J.addClass(L,bT)};this.$setViewValue=function(a){this.$viewValue=a;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,J.removeClass(L,bT),J.addClass(L,af),y.$setDirty());cK(this.$parsers,function(S){a=S(a)});this.$modelValue!==a&&(this.$modelValue=a,C(R,a),cK(this.$viewChangeListeners,function(S){try{S()}catch(T){Q(T)}}))};var q=this;R.$watch(function(){var T=w(R);if(q.$modelValue!==T){var S=q.$formatters,a=S.length;for(q.$modelValue=T;a--;){T=S[a](T)}q.$viewValue!==T&&(q.$viewValue=T,q.$render())}return T})}],p=function(){return{require:["ngModel","^?form"],controller:d,link:function(q,B,y,w){var s=w[0],t=w[1]||aA;t.$addControl(s);q.$on("$destroy",function(){t.$removeControl(s)})}}},dU=dS({require:"ngModel",link:function(q,w,t,s){s.$viewChangeListeners.push(function(){q.$eval(t.ngChange)})}}),aI=function(){return{require:"?ngModel",link:function(q,y,w,t){if(t){w.required=!0;var s=function(B){if(w.required&&t.$isEmpty(B)){t.$setValidity("required",!1)}else{return t.$setValidity("required",!0),B}};t.$formatters.push(s);t.$parsers.unshift(s);w.$observe("required",function(){s(t.$viewValue)})}}}},ej=function(){return{require:"ngModel",link:function(q,y,w,t){var s=(q=/\/(.*)\//.exec(w.ngList))&&RegExp(q[1])||w.ngList||",";t.$parsers.push(function(B){if(!dn(B)){var C=[];B&&cK(B.split(s),function(D){D&&C.push(dR(D))});return C}});t.$formatters.push(function(B){return dg(B)?B.join(", "):cG});t.$isEmpty=function(B){return !B||!B.length}}}},d3=/^(true|false|\d+)$/,du=function(){return{priority:100,compile:function(q,s){return d3.test(s.ngValue)?function(t,y,w){w.$set("value",t.$eval(w.ngValue))}:function(t,y,w){t.$watch(w.ngValue,function(B){w.$set("value",B)})}}}},aG=aB({compile:function(q){q.addClass("ng-binding");return function(s,w,t){w.data("$binding",t.ngBind);s.$watch(t.ngBind,function(y){w.text(y==cG?"":y)})}}}),v=["$interpolate",function(q){return function(t,s,a){t=q(s.attr(a.$attr.ngBindTemplate));s.addClass("ng-binding").data("$binding",t);a.$observe("ngBindTemplate",function(w){s.text(w)})}}],al=["$sce","$parse",function(q,s){return function(y,w,a){w.addClass("ng-binding").data("$binding",a.ngBindHtml);var t=s(a.ngBindHtml);y.$watch(function(){return(t(y)||"").toString()},function(B){w.html(q.getTrustedHtml(t(y))||"")})}}],en=c7("",!0),dz=c7("Odd",0),dX=c7("Even",1),cU=aB({compile:function(q,s){s.$set("ngCloak",cG);q.removeClass("ng-cloak")}}),cw=[function(){return{scope:!0,controller:"@",priority:500}}],an={};cK("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(q){var s=d2("ng-"+q);an[s]=["$parse",function(a){return{compile:function(y,t){var w=a(t[s]);return function(C,B){B.on(dh(q),function(D){C.$apply(function(){w(C,{$event:D})})})}}}}]});var bt=["$animate",function(q){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(D,C,B,w,y){var s,a,t;D.$watch(B.ngIf,function(J){P(J)?a||(a=D.$new(),y(a,function(L){L[L.length++]=c1.createComment(" end ngIf: "+B.ngIf+" ");s={clone:L};q.enter(L,C.parent(),C)})):(t&&(t.remove(),t=null),a&&(a.$destroy(),a=null),s&&(t=aH(s.clone),q.leave(t,function(){t=null}),s=null))})}}}],a6=["$http","$templateCache","$anchorScroll","$animate","$sce",function(q,y,w,t,s){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:k.noop,compile:function(J,C){var a=C.ngInclude||C.src,D=C.onload||"",B=C.autoscroll;return function(R,Q,L,O,T){var Y=0,V,U,W,S=function(){U&&(U.remove(),U=null);V&&(V.$destroy(),V=null);W&&(t.leave(W,function(){U=null}),U=W,W=null)};R.$watch(s.parseAsResourceUrl(a),function(ab){var Z=function(){!dt(B)||B&&!R.$eval(B)||w()},aa=++Y;ab?(q.get(ab,{cache:y}).success(function(ac){if(aa===Y){var ad=R.$new();O.template=ac;ac=T(ad,function(ae){S();t.enter(ae,null,Q,Z)});V=ad;W=ac;V.$emit("$includeContentLoaded");R.$eval(D)}}).error(function(){aa===Y&&S()}),R.$emit("$includeContentRequested")):(S(),O.template=null)})}}}}],cR=["$compile",function(q){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(w,t,s,a){t.html(a.template);q(t.contents())(w)}}}],aQ=aB({priority:450,compile:function(){return{pre:function(q,t,s){q.$eval(s.ngInit)}}}}),aw=aB({terminal:!0,priority:1000}),M=["$locale","$interpolate",function(q,t){var s=/{}/g;return{restrict:"EA",link:function(Q,L,O){var D=O.count,B=O.$attr.when&&L.attr(O.$attr.when),J=O.offset||0,C=Q.$eval(B)||{},y={},w=t.startSymbol(),a=t.endSymbol(),R=/^when(Minus)?(.+)$/;cK(O,function(S,T){R.test(T)&&(C[dh(T.replace("when","").replace("Minus","-"))]=L.attr(O.$attr[T]))});cK(C,function(S,T){y[T]=t(S.replace(s,w+D+"-"+J+a))});Q.$watch(function(){var S=parseFloat(Q.$eval(D));if(isNaN(S)){return""}S in C||(S=q.pluralCat(S-J));return y[S](Q,L,!0)},function(S){L.text(S)})}}}],h=["$parse","$animate",function(q,t){var s=cE("ngRepeat");return{transclude:"element",priority:1000,terminal:!0,$$tlb:!0,link:function(S,Q,R,L,D){var O=R.ngRepeat,J=O.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),C,y,a,W,U,T,V={$id:cW};if(!J){throw s("iexp",O)}R=J[1];L=J[2];(J=J[3])?(C=q(J),y=function(B,Z,Y){T&&(V[T]=B);V[U]=Z;V.$index=Y;return C(S,V)}):(a=function(B,Y){return cW(Y)},W=function(B){return B});J=R.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!J){throw s("iidexp",R)}U=J[3]||J[1];T=J[2];var w={};S.$watchCollection(L,function(bb){var ad,ac,ab=Q[0],aa,bd={},cb,Z,bc,be,Y,ae,B=[];if(cq(bb)){Y=bb,aa=y||a}else{aa=y||W;Y=[];for(bc in bb){bb.hasOwnProperty(bc)&&"$"!=bc.charAt(0)&&Y.push(bc)}Y.sort()}cb=Y.length;ac=B.length=Y.length;for(ad=0;addb;){ed.pop().element.remove()}}for(;cc.length>ea;){cc.pop()[0].element.remove()}}var bc;if(!(bc=ac.match(t))){throw dD("iexp",ac,bo(be))}var ae=w(bc[2]||bc[1]),ad=bc[4]||bc[6],J=bc[5],C=w(bc[3]||""),y=w(bc[2]?bc[1]:ad),ce=w(bc[7]),cd=bc[8]?w(bc[8]):null,cc=[[{element:be,label:""}]];W&&(q(W)(cb),W.removeClass("ng-scope"),W.remove());be.empty();be.on("change",function(){cb.$apply(function(){var eb,ea=ce(cb)||[],de={},dd,dc,db,da,ee,ed,ec;if(a){for(dc=[],da=0,ed=cc.length;da@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;}');(function(a,c,b){c.module("ngAnimate",["ng"]).factory("$$animateReflow",["$$rAF","$document",function(e,d){return function(f){return e(function(){f()})}}]).config(["$provide","$animateProvider",function(l,t){function r(k){for(var n=0;n=C&&g>=F&&R()}var O=r(T);U=T.data(aB);if(-1!=O.getAttribute("class").indexOf(S)&&U){var L="";p(S.split(" "),function(k,g){L+=(0, Valentin Hervieu , Jussi Saarivirta , Angelin Sirbu - https://github.com/angular-slider/angularjs-slider - 2016-01-31 */ (function(a,b){if(typeof define==="function"&&define.amd){define(["angular"],b)}else{if(typeof module==="object"&&module.exports){module.exports=b(require("angular"))}else{b(a.angular)}}}(this,function(a){var b=a.module("rzModule",[]).factory("RzSliderOptions",function(){var c={floor:0,ceil:null,step:1,precision:0,minRange:0,id:null,translate:null,stepsArray:null,draggableRange:false,draggableRangeOnly:false,showSelectionBar:false,showSelectionBarEnd:false,hideLimitLabels:false,readOnly:false,disabled:false,interval:350,showTicks:false,showTicksValues:false,ticksTooltip:null,ticksValuesTooltip:null,vertical:false,selectionBarColor:null,keyboardSupport:true,scale:1,enforceRange:false,noSwitching:false,onlyBindHandles:false,onStart:null,onChange:null,onEnd:null};var e={};var d={};d.options=function(f){a.extend(e,f)};d.getOptions=function(f){return a.extend({},c,e,f)};return d}).factory("rzThrottle",["$timeout",function(c){return function(e,h,m){var f=(Date.now||function(){return new Date().getTime()});var d,k,n;var l=null;var j=0;m=m||{};var g=function(){j=f();l=null;n=e.apply(d,k);d=k=null};return function(){var o=f();var p=h-(o-j);d=this;k=arguments;if(p<=0){c.cancel(l);l=null;j=o;n=e.apply(d,k);d=k=null}else{if(!l&&m.trailing!==false){l=c(g,p)}}return n}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,j,h,d,c,g){var f=function(l,k){this.scope=l;this.sliderElem=k;this.range=this.scope.rzSliderModel!==undefined&&this.scope.rzSliderHigh!==undefined;this.dragging={active:false,value:0,difference:0,offset:0,lowLimit:0,highLimit:0};this.positionProperty="left";this.dimensionProperty="width";this.handleHalfDim=0;this.maxPos=0;this.precision=0;this.step=1;this.tracking="";this.minValue=0;this.maxValue=0;this.valueRange=0;this.initHasRun=false;this.internalChange=false;this.fullBar=null;this.selBar=null;this.minH=null;this.maxH=null;this.flrLab=null;this.ceilLab=null;this.minLab=null;this.maxLab=null;this.cmbLab=null;this.ticks=null;this.init()};f.prototype={init:function(){var n,k,l=this;var m=function(){l.calcViewDimensions()};this.applyOptions();this.initElemHandles();this.manageElementsStyle();this.setDisabledState();this.calcViewDimensions();this.setMinAndMax();this.addAccessibility();this.updateCeilLab();this.updateFloorLab();this.initHandles();this.manageEventsBindings();this.scope.$on("reCalcViewDimensions",m);a.element(h).on("resize",m);this.initHasRun=true;n=g(function(){l.onLowHandleChange()},l.options.interval);k=g(function(){l.onHighHandleChange()},l.options.interval);this.scope.$on("rzSliderForceRender",function(){l.resetLabelsValue();n();if(l.range){k()}l.resetSlider()});this.scope.$watch("rzSliderOptions",function(p,o){if(p===o){return}l.applyOptions();l.resetSlider()},true);this.scope.$watch("rzSliderModel",function(p,o){if(l.internalChange){return}if(p===o){return}n()});this.scope.$watch("rzSliderHigh",function(p,o){if(l.internalChange){return}if(p===o){return}if(p!=null){k()}if(l.range&&p==null||!l.range&&p!=null){l.applyOptions();l.resetSlider()}});this.scope.$on("$destroy",function(){l.unbindEvents();a.element(h).off("resize",m)})},onLowHandleChange:function(){this.setMinAndMax();this.updateLowHandle(this.valueToOffset(this.scope.rzSliderModel));this.updateSelectionBar();this.updateTicksScale();this.updateAriaAttributes();if(this.range){this.updateCmbLabel()}},onHighHandleChange:function(){this.setMinAndMax();this.updateHighHandle(this.valueToOffset(this.scope.rzSliderHigh));this.updateSelectionBar();this.updateTicksScale();this.updateCmbLabel();this.updateAriaAttributes()},applyOptions:function(){this.options=c.getOptions(this.scope.rzSliderOptions);if(this.options.step<=0){this.options.step=1}this.range=this.scope.rzSliderModel!==undefined&&this.scope.rzSliderHigh!==undefined;this.options.draggableRange=this.range&&this.options.draggableRange;this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly;if(this.options.draggableRangeOnly){this.options.draggableRange=true}this.options.showTicks=this.options.showTicks||this.options.showTicksValues;this.scope.showTicks=this.options.showTicks;this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd;if(this.options.stepsArray){this.options.floor=0;this.options.ceil=this.options.stepsArray.length-1;this.options.step=1;if(this.options.translate){this.customTrFn=this.options.translate}else{this.customTrFn=function(k){return this.options.stepsArray[k]}}}else{if(this.options.translate){this.customTrFn=this.options.translate}else{this.customTrFn=function(k){return String(k)}}}if(this.options.vertical){this.positionProperty="bottom";this.dimensionProperty="height"}},resetSlider:function(){this.manageElementsStyle();this.addAccessibility();this.setMinAndMax();this.updateCeilLab();this.updateFloorLab();this.unbindEvents();this.manageEventsBindings();this.setDisabledState();this.calcViewDimensions()},initElemHandles:function(){a.forEach(this.sliderElem.children(),function(m,l){var k=a.element(m);switch(l){case 0:this.fullBar=k;break;case 1:this.selBar=k;break;case 2:this.minH=k;break;case 3:this.maxH=k;break;case 4:this.flrLab=k;break;case 5:this.ceilLab=k;break;case 6:this.minLab=k;break;case 7:this.maxLab=k;break;case 8:this.cmbLab=k;break;case 9:this.ticks=k;break}},this);this.selBar.rzsp=0;this.minH.rzsp=0;this.maxH.rzsp=0;this.flrLab.rzsp=0;this.ceilLab.rzsp=0;this.minLab.rzsp=0;this.maxLab.rzsp=0;this.cmbLab.rzsp=0},manageElementsStyle:function(){if(!this.range){this.maxH.css("display","none")}else{this.maxH.css("display","")}this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels);this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);this.alwaysHide(this.minLab,this.options.showTicksValues);this.alwaysHide(this.maxLab,this.options.showTicksValues||!this.range);this.alwaysHide(this.cmbLab,this.options.showTicksValues||!this.range);this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar);if(this.options.vertical){this.sliderElem.addClass("vertical")}if(this.options.draggableRange){this.selBar.addClass("rz-draggable")}else{this.selBar.removeClass("rz-draggable")}},alwaysHide:function(l,k){l.rzAlwaysHide=k;if(k){this.hideEl(l)}else{this.showEl(l)}},manageEventsBindings:function(){if(this.options.disabled||this.options.readOnly){this.unbindEvents()}else{this.bindEvents()}},setDisabledState:function(){if(this.options.disabled){this.sliderElem.attr("disabled","disabled")}else{this.sliderElem.attr("disabled",null)}},resetLabelsValue:function(){this.minLab.rzsv=undefined;this.maxLab.rzsv=undefined},initHandles:function(){this.updateLowHandle(this.valueToOffset(this.scope.rzSliderModel));if(this.range){this.updateHighHandle(this.valueToOffset(this.scope.rzSliderHigh))}this.updateSelectionBar();if(this.range){this.updateCmbLabel()}this.updateTicksScale()},translateFn:function(o,l,k){k=k===undefined?true:k;var m=String((k?this.customTrFn(o,this.options.id):o)),n=false;if(l.rzsv===undefined||l.rzsv.length!==m.length||(l.rzsv.length>0&&l.rzsd===0)){n=true;l.rzsv=m}l.text(m);if(n){this.getDimension(l)}},setMinAndMax:function(){this.step=+this.options.step;this.precision=+this.options.precision;this.minValue=this.options.floor;this.scope.rzSliderModel=this.roundStep(this.scope.rzSliderModel);if(this.range){this.scope.rzSliderHigh=this.roundStep(this.scope.rzSliderHigh)}if(this.options.ceil!=null){this.maxValue=this.options.ceil}else{this.maxValue=this.options.ceil=this.range?this.scope.rzSliderHigh:this.scope.rzSliderModel}if(this.options.enforceRange){this.scope.rzSliderModel=this.sanitizeValue(this.scope.rzSliderModel);if(this.range){this.scope.rzSliderHigh=this.sanitizeValue(this.scope.rzSliderHigh)}}this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider");this.updateAriaAttributes();if(this.options.keyboardSupport&&!(this.options.readOnly||this.options.disabled)){this.minH.attr("tabindex","0")}else{this.minH.attr("tabindex","")}if(this.options.vertical){this.minH.attr("aria-orientation","vertical")}if(this.range){this.maxH.attr("role","slider");if(this.options.keyboardSupport&&!(this.options.readOnly||this.options.disabled)){this.maxH.attr("tabindex","0")}else{this.maxH.attr("tabindex","")}if(this.options.vertical){this.maxH.attr("aria-orientation","vertical")}}},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue});if(this.range){this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})}},calcViewDimensions:function(){var k=this.getDimension(this.minH);this.handleHalfDim=k/2;this.barDimension=this.getDimension(this.fullBar);this.maxPos=this.barDimension-k;this.getDimension(this.sliderElem);this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty];if(this.initHasRun){this.updateFloorLab();this.updateCeilLab();this.initHandles()}},updateTicksScale:function(){if(!this.options.showTicks){return}var l="",k=Math.round((this.maxValue-this.minValue)/this.step)+1;this.scope.ticks=[];for(var n=0;n=this.scope.rzSliderModel&&k<=this.scope.rzSliderHigh){return true}return false},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab);this.setPosition(this.ceilLab,this.barDimension-this.ceilLab.rzsd);this.getDimension(this.ceilLab)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab);this.getDimension(this.flrLab)},callOnStart:function(){if(this.options.onStart){var k=this;this.scope.$evalAsync(function(){k.options.onStart(k.options.id,k.scope.rzSliderModel,k.scope.rzSliderHigh)})}},callOnChange:function(){if(this.options.onChange){var k=this;this.scope.$evalAsync(function(){k.options.onChange(k.options.id,k.scope.rzSliderModel,k.scope.rzSliderHigh)})}},callOnEnd:function(){if(this.options.onEnd){var k=this;this.scope.$evalAsync(function(){k.options.onEnd(k.options.id,k.scope.rzSliderModel,k.scope.rzSliderHigh)})}},updateHandles:function(k,l){if(k==="rzSliderModel"){this.updateLowHandle(l)}else{this.updateHighHandle(l)}this.updateSelectionBar();this.updateTicksScale();if(this.range){this.updateCmbLabel()}},updateLowHandle:function(l){this.setPosition(this.minH,l);this.translateFn(this.scope.rzSliderModel,this.minLab);var k=Math.min(Math.max(l-this.minLab.rzsd/2+this.handleHalfDim,0),this.barDimension-this.ceilLab.rzsd);this.setPosition(this.minLab,k);this.shFloorCeil()},updateHighHandle:function(l){this.setPosition(this.maxH,l);this.translateFn(this.scope.rzSliderHigh,this.maxLab);var k=Math.min((l-this.maxLab.rzsd/2+this.handleHalfDim),(this.barDimension-this.ceilLab.rzsd));this.setPosition(this.maxLab,k);this.shFloorCeil()},shFloorCeil:function(){var l=false,k=false;if(this.minLab.rzsp<=this.flrLab.rzsp+this.flrLab.rzsd+5){l=true;this.hideEl(this.flrLab)}else{l=false;this.showEl(this.flrLab)}if(this.minLab.rzsp+this.minLab.rzsd>=this.ceilLab.rzsp-this.handleHalfDim-10){k=true;this.hideEl(this.ceilLab)}else{k=false;this.showEl(this.ceilLab)}if(this.range){if(this.maxLab.rzsp+this.maxLab.rzsd>=this.ceilLab.rzsp-10){this.hideEl(this.ceilLab)}else{if(!k){this.showEl(this.ceilLab)}}if(this.maxLab.rzsp<=this.flrLab.rzsp+this.flrLab.rzsd+this.handleHalfDim){this.hideEl(this.flrLab)}else{if(!l){this.showEl(this.flrLab)}}}},updateSelectionBar:function(){var k=0,m=0;if(this.range||!this.options.showSelectionBarEnd){m=Math.abs(this.maxH.rzsp-this.minH.rzsp)+this.handleHalfDim;k=this.range?this.minH.rzsp+this.handleHalfDim:0}else{m=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim;k=this.minH.rzsp+this.handleHalfDim}this.setDimension(this.selBar,m);this.setPosition(this.selBar,k);if(this.options.getSelectionBarColor){var l=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:l}}},getSelectionBarColor:function(){if(this.range){return this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh)}return this.options.getSelectionBarColor(this.scope.rzSliderModel)},updateCmbLabel:function(){var k,m;if(this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){k=this.getDisplayValue(this.scope.rzSliderModel);m=this.getDisplayValue(this.scope.rzSliderHigh);this.translateFn(k+" - "+m,this.cmbLab,false);var l=Math.min(Math.max((this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2),0),(this.barDimension-this.cmbLab.rzsd));this.setPosition(this.cmbLab,l);this.hideEl(this.minLab);this.hideEl(this.maxLab);this.showEl(this.cmbLab)}else{this.showEl(this.maxLab);this.showEl(this.minLab);this.hideEl(this.cmbLab)}},getDisplayValue:function(k){return this.customTrFn(k,this.options.id)},roundStep:function(l){var k=parseFloat((l-this.minValue)/this.step).toPrecision(12);k=Math.round(+k)*this.step;var m=(this.minValue+(+k)).toFixed(this.precision);return +m},hideEl:function(k){return k.css({opacity:0})},showEl:function(k){if(!!k.rzAlwaysHide){return k}return k.css({opacity:1})},setPosition:function(l,m){l.rzsp=m;var k={};k[this.positionProperty]=m+"px";l.css(k);return m},getDimension:function(k){var l=k[0].getBoundingClientRect();if(this.options.vertical){k.rzsd=(l.bottom-l.top)*this.options.scale}else{k.rzsd=(l.right-l.left)*this.options.scale}return k.rzsd},setDimension:function(l,m){l.rzsd=m;var k={};k[this.dimensionProperty]=m+"px";l.css(k);return m},valueToOffset:function(k){return(this.sanitizeValue(k)-this.minValue)*this.maxPos/this.valueRange||0},sanitizeValue:function(k){return Math.min(Math.max(k,this.minValue),this.maxValue)},offsetToValue:function(k){return(k/this.maxPos)*this.valueRange+this.minValue},getEventXY:function(k){var l=this.options.vertical?"clientY":"clientX";if(l in k){return k[l]}return k.originalEvent===undefined?k.touches[0][l]:k.originalEvent.touches[0][l]},getEventPosition:function(k){var l=this.sliderElem.rzsp,m=0;if(this.options.vertical){m=-this.getEventXY(k)+l}else{m=this.getEventXY(k)-l}return(m-this.handleHalfDim)*this.options.scale},getEventNames:function(k){var l={moveEvent:"",endEvent:""};if(k.touches||(k.originalEvent!==undefined&&k.originalEvent.touches)){l.moveEvent="touchmove";l.endEvent="touchend"}else{l.moveEvent="mousemove";l.endEvent="mouseup"}return l},getNearestHandle:function(m){if(!this.range){return this.minH}var n=this.getEventPosition(m),l=Math.abs(n-this.minH.rzsp),k=Math.abs(n-this.maxH.rzsp);if(lk){return this.maxH}else{return n=this.maxPos){l=this.maxValue}else{l=this.offsetToValue(n);l=this.roundStep(l)}}this.positionTrackingHandle(l)},onEnd:function(m,l){var k=this.getEventNames(l).moveEvent;if(!this.options.keyboardSupport){this.minH.removeClass("rz-active");this.maxH.removeClass("rz-active");this.tracking=""}this.dragging.active=false;j.off(k,m);this.scope.$emit("slideEnded");this.callOnEnd()},onPointerFocus:function(l,k){this.tracking=k;l.one("blur",a.bind(this,this.onPointerBlur,l));l.on("keydown",a.bind(this,this.onKeyboardEvent));l.addClass("rz-active")},onPointerBlur:function(k){k.off("keydown");this.tracking="";k.removeClass("rz-active")},onKeyboardEvent:function(k){var r=this.scope[this.tracking],t=k.keyCode||k.which,u={38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"},p={UP:r+this.step,DOWN:r-this.step,LEFT:r-this.step,RIGHT:r+this.step,PAGEUP:r+this.valueRange/10,PAGEDOWN:r-this.valueRange/10,HOME:this.minValue,END:this.maxValue},s=u[t],o=p[s];if(o==null||this.tracking===""){return}k.preventDefault();var l=this.roundStep(this.sanitizeValue(o));if(!this.options.draggableRangeOnly){this.positionTrackingHandle(l)}else{var m=this.scope.rzSliderHigh-this.scope.rzSliderModel,q,n;if(this.tracking==="rzSliderModel"){q=l;n=l+m;if(n>this.maxValue){n=this.maxValue;q=n-m}}else{n=l;q=l-m;if(q=this.maxPos-this.dragging.highLimit){if(this.maxH.rzsp===this.maxPos){return}l=this.maxValue;k=this.maxValue-this.dragging.difference}else{k=this.offsetToValue(o-this.dragging.lowLimit);k=this.roundStep(k);l=k+this.dragging.difference}}this.positionTrackingBar(k,l)},positionTrackingBar:function(k,l){this.scope.rzSliderModel=k;this.scope.rzSliderHigh=l;this.updateHandles("rzSliderModel",this.valueToOffset(k));this.updateHandles("rzSliderHigh",this.valueToOffset(l));this.applyModel()},positionTrackingHandle:function(l){var k=false;if(this.range){l=this.applyMinRange(l);if(this.tracking==="rzSliderModel"&&l>this.scope.rzSliderHigh){if(this.options.noSwitching&&this.scope.rzSliderHigh!==this.minValue){l=this.applyMinRange(this.scope.rzSliderHigh)}else{this.scope[this.tracking]=this.scope.rzSliderHigh;this.updateHandles(this.tracking,this.maxH.rzsp);this.updateAriaAttributes();this.tracking="rzSliderHigh";this.minH.removeClass("rz-active");this.maxH.addClass("rz-active");if(this.options.keyboardSupport){this.focusElement(this.maxH)}}k=true}else{if(this.tracking==="rzSliderHigh"&&l
  • {{ t.value }}
')}]);return b}));var commonsApp=angular.module("commonsApp",[]).config(["$sceDelegateProvider",function(d){var c=["self"];try{for(var a in imageCDNMap){if(imageCDNMap.hasOwnProperty(a)){c.push(imageCDNMap[a]+"**")}}}catch(b){console.log(b)}d.resourceUrlWhitelist(c)}]);Array.prototype.count=function(){var a=0;for(i in this){if(typeof this[i]!="undefined"){a++}}return a-1};commonsApp.directive("ensureUrl",["commonsAppServices",function(a){return{require:"ngModel",link:function(d,e,b,f){d.$watch(b.ngModel,function(){var c=a.validateUrl(a.refForDotNotation(d,b.ngModel));if(c==true){f.$setValidity("isUrl",true)}else{f.$setValidity("isUrl",false)}})}}}]);commonsApp.directive("autofocusIf",["$timeout",function(a){return function(d,c,b){d.$watch(b.autofocusIf,function(e){if(e==true){a(function(){c.focus()})}},true)}}]);commonsApp.directive("contenteditable",function(){return{require:"ngModel",scope:true,link:function(e,g,d,f){var c="";max=17;min=1;g.bind("blur",function(){a(min,event);e.$apply(function(){var j=true;for(var h=0;hh){e.addGroup.groupName.$error.maxlength=true;el=j.target;f.$setViewValue(g.html());el.blur();j.preventDefault()}else{e.addGroup.groupName.$error.maxlength=false}}function a(h,j){if(j.target.textContent.length0){var u=w.substring(w.length-1);var v=parseFloat(w.substring(0,w.length));if(u=="K"){v=v*1000}else{if(u=="M"){v=v*1000000}else{if(u=="B"){v=v*1000000000}}}return v+""}return"0"};var j=s("searchCache",{capacity:1000});this.searchCompanies=function(v){if(!j.get(v)){var u=t.get(b+"/basicSearchCompanySuggestions.htm?searchTerm="+v);j.put(v,u);return u}else{return j.get(v)}};var f=s("investorCache",{capacity:1000});this.searchInvestor=function(u){if(!f.get(u)){var v=t.get(b+"/task/getSuggestions.htm?searchTerm="+u+"&searchType=investor");f.put(u,v);return v}else{return f.get(u)}};var p=s("acquisitionCache",{capacity:1000});this.searchAcquisition=function(u){if(!p.get(u)){var v=t.get(b+"/task/getSuggestions.htm?searchTerm="+u+"&searchType=company");p.put(u,v);return v}else{return p.get(u)}};var e=s("jobTitleCache",{capacity:1000});this.getJobTitleSuggestions=function(u,v){if(!e.get(u)){var w=t.get(b+"/task/getSuggestions.htm?searchTerm="+u+"&searchType=job_title");e.put(u,w);return w}else{return e.get(u)}};this.getCountryList=function(){var u=t.get(b+"/getAdvancedSearchData.htm");return u};var a=s("descriptionCache",{capacity:1000});this.getCompanyInfo=function(v){if(!a.get(v)){var u=t.get(b+"/getCompanyInfo.htm?companyId="+v);a.put(v,u);return u}else{return a.get(v)}};this.getIsFollowAndAssign=function(){var u=t.get(b+"/getFollowAndAssign.htm");return u};this.setIsFollowAndAssign=function(u){var v=t.post(b+"/setFollowAndAssign.htm",u);return v};this.followCompany=function(u,v){var w=t.get(b+"/followCompany.htm?company_id="+u+"&following="+v);var x=1;if(!v){x=-1}mixpanel.people.increment("Followed Companies Count",1);return w};this.getGroupData=function(u){var v=t.get(b+"/getGroupData.htm?companyId="+u);return v};this.saveGroupData=function(w,u){var v={};v.companyId=u;v.changes=w;var x=t.post(b+"/saveGroupData.htm",v);return x};this.addNewCompanyToWatchlist=function(u){var v=t.get(b+"/addNewCompanyForInspection.htm?website="+u);return v};this.savePollResponse=function(v,u){var w=t.get(b+"/pollsandinsights/savepollresponse/"+v+"/"+u+".htm");return w};this.saveImageData=function(A,u,z,v,w){var y={};y.imageData=A;y.websiteScreenshotCrop=u;y.imageId=v;y.formType=w;y.imageDimensionType=z;console.log("Sending image data to server : ",y);var x=t.post(b+"/saveImageData.htm",y);return x};function n(x,y,w){if(x.length>y&&x.length>=w){var u=new String();for(var v=y;v0){e=d.replace(/[^a-z0-9A-Z]/gmi,"-").toLowerCase()}return e};this.getSEOFriendlyCompanyProfileUrl=function(d,f){var e=this.getSEOFriendlyCompanyName(f);return this.getCompanyInfoUrl(d,e)};this.getCompanyInfoUrl=function(d,e){var f=b+"/"+d+"/"+e+"-company-profile";return f};this.getCompetitorSectionUrl=function(e,f){var d=b+"/"+e+"/"+f+"-competitors";return d};this.getFundingAcquisitionUrl=function(d,f){var e=b+"/"+d+"/"+f+"-funding-acquisitions";return e};this.getAcquisitionUrl=function(e,f){var d=b+"/"+e+"/"+f+"/acquisitions";return d};this.getPortfolioUrl=function(e,f){var g=getSEOFriendlyCompanyName(f);var d=b+"/"+e+"/"+g+"/portfolio";return d};this.getPollSectionUrl=function(d,e){var f=b+"/"+d+"/"+e+"-insights";return f};this.getNewsSectionUrl=function(d,e){var f=b+"/"+d+"/"+e+"-news";return f};this.getArticleURL=function(d){return a.apiHttpUrl+"/article/"+d+".htm"};this.getManageCompaniesUrl=function(){var d=b+"/manage-companies.htm";return d};this.getPollLandingURL=function(f,g,e){var d=b+"/poll/"+f+"/"+g+"/"+e+".htm";return d};this.getEventsPageURL=function(f,e,d){if(e.length>50){e=e.substring(0,50)}return c+"/reports/"+this.getSEOFriendlyCompanyName(f)+"/"+this.getSEOFriendlyCompanyName(e)+"/"+d}}]);commonsApp.service("mixpanelService",[function(){this.trackEvent=function(b,c,a){trackMixpanelEvent(b,c,a)};this.trackArticleViewedFromFeeds=function(b,a){trackArticleViewed(b._id,b.company_id,b.source,a,b.company_name)};this.trackArticleViewedFromOtherSources=function(c,a,d,b){trackArticleViewed("N/A",a,c,b,d)};this.trackPollResponse=function(b,a,d,c){if(b.type==7){b.type="CC_EMPLOYEE_ESTIMATE"}else{if(b.type==8){b.type="CC_REVENUE_ESTIMATE"}}trackPollResponse(b.companyId,d,b.category,b.type,a,c)}}]);commonsApp.constant("mixpanelConstants",{});commonsApp.filter("currencyFormat",function(){return function(c){var b=0;var a="";if(c){if(c<1000){b=c}else{var g=c/1000;if(g>=1000){var e=g/1000;if(e>=1000){var d=e/1000;b=d;a="B"}else{b=e;a="M"}}else{b=g;a="K"}}}if((""+b).indexOf(".")!=-1){var f=0;if((b+"").indexOf(".0")==-1){f=1}b=b.toFixed(f)}return"$"+b+a}});commonsApp.filter("numberFormatWithPrecision",function(){return function(c){var b=0;var a="";if(c){if(c<1000){b=c}else{var g=c/1000;if(g>=1000){var e=g/1000;if(e>=1000){var d=e/1000;b=d;a="B"}else{b=e;a="M"}}else{b=g;a="K"}}}if((""+b).indexOf(".")!=-1){var f=0;if((b+"").indexOf(".0")==-1){f=1}b=b.toFixed(f)}return b+a}});function roundToOneDecimal(a){return Math.floor(a/10)*10}commonsApp.filter("splitAmtAndDenomination",function(){return function(a){if(a){return{value:a.substring(0,a.length-1),denomination:a.substring(a.length-1,a.length)}}}});commonsApp.filter("roundOff",function(){return function(a){if(a!="--"){return roundToOneDecimal(a)}else{return a}}});commonsApp.filter("formatAndSplitDenomination",function(){return function(a){var j=0;var b="";if(a){if(a<1000){j=a}else{var d=a/1000;if(d>=999.999){var h=d/1000;if(h>=999.999){var c=h/1000;if(c>=999.999){var g=c/1000;j=g;b="T"}else{j=c;b="B"}}else{j=h;b="M"}}else{j=d;b="K"}}}if((""+j).indexOf(".")!=-1){var e=0;if((j+"").indexOf(".0")==-1){e=1}j=j.toFixed(e);if((j+"").indexOf(".0")!=-1){var f=(j+"").indexOf(".0");j=j.substring(0,f)}}return{value:j,denomination:b}}});commonsApp.filter("formatAndSplitDenominationWithOnePrecision",function(){return function(c){var b=0;var a="";if(c){if(c<1000){b=c}else{var h=c/1000;if(h>=1000){var f=h/1000;if(f>=1000){var e=f/1000;b=e;a="B"}else{b=f;a="M"}}else{b=h;a="K"}}}if((""+b).indexOf(".")!=-1){var g=1;if((b+"").indexOf(".0")==-1){g=1}b=b.toFixed(g);if((b+"").indexOf(".0")!=-1){var d=(b+"").indexOf(".0");b=b.substring(0,d)}}return{value:b,denomination:a}}});commonsApp.filter("removeMinusSymbol",function(){return function(a){if(a){var b=a+"";return b.replace("-","")}}});commonsApp.filter("getCompanyProfileUrl",["Constants",function(a){return function(c){var b=a.apiUrl+"/"+c.investor_id+"/"+c.seo_friendly_company_short_name+"-company-profile";return{investor_url:b,investor_logo:c.investor_logo,investor_name:c.investor}}}]);commonsApp.filter("clickableUrl",["Constants",function(a){return function(c){var b=c;if(c!=undefined&&c.length>0){if(b.indexOf("http")!=0){if(b.indexOf("www.")!=0){b="http://www."+b}else{b="http://"+b}}}return b}}]);commonsApp.filter("getCompanyInfoUrl",["urlUtilService",function(a){return function(d,b){var c=a.getSEOFriendlyCompanyProfileUrl(b,d);return c}}]);angular.module("commonsApp").directive("onlyDigits",function(){return{restrict:"A",require:"?ngModel",link:function(c,b,a,d){if(!d){return}d.$parsers.unshift(function(e){var f=e.split("").filter(function(g){return(!isNaN(g)&&g!=" ")}).join("");d.$viewValue=f;d.$render();return f})}}});angular.module("commonsApp").directive("progressBar",[function(){return{restrict:"E",scope:{curVal:"@",maxVal:"@",showVal:"@",valText:"@"},template:"
{{valText}}
",link:function(a,c,b){function d(){var e=0;b.$observe("showVal",function(f){if(!f){a.showVal=false}});b.$observe("valText",function(f){if(!f){a.valText=""}});if(a.maxVal){e=Math.min(a.curVal,a.maxVal)/a.maxVal*c.find(".angular_progress_bar").width();if(a.curVal>0&&e<1){e=1}}c.find(".angular_progress_bar_bar").css("width",e)}a.$watch("curVal",d);a.$watch("maxVal",d)}}}]);angular.module("commonsApp").directive("loadingSpinner",function(){return{restrict:"A",replace:true,transclude:true,scope:{loading:"=loadingSpinner"},template:'
',link:function(c,b,a){var e=new Spinner().spin();var d=b.find(".my-loading-spinner-container")[0];d.appendChild(e.el)}}});commonsApp.filter("slice",function(){return function(a,c,b){return(a||[]).slice(c,b)}});commonsApp.filter("orderObjectBy",function(){return function(a,d,c){var b=[];angular.forEach(a,function(e){b.push(e)});b.sort(function(f,e){return(f[d]>e[d]?1:-1)});if(c){b.reverse()}return b}});commonsApp.filter("toArray",function(){return function(b){var a=[];angular.forEach(b,function(d,c){a.push(d)});return a}});commonsApp.filter("orderEmpty",function(){return function(f,b,c){var e,d,a;if(!angular.isArray(f)){return}e=f.filter(function(g){return g[b]});d=f.filter(function(g){return(angular.isDefined(g[b])?0:-1)});switch(c){case"toBottom":a=e.concat(d);break;case"toTop":a=d.concat(e);break;default:a=f;break}return a}});commonsApp.filter("ensureHttpPrefix",function(){return function(a){if(a){if(a&&!/^(http|https):\/\//i.test(a)&&"http://".indexOf(a)===-1){return"http://"+a}else{return a}}}});commonsApp.filter("removeHttpPrefix",function(){return function(a){if(a){if(a&&/^(http|https):\/\//i.test(a)&&"http://".indexOf(a)===-1){temp=a;if(temp.substr(-1)==="/"){temp=temp.substr(0,temp.length-1)}a=temp.replace(/^(https?:\/\/)?(www\.)?/,"");return a}else{temp=a;a=temp.replace(/^(https?:\/\/)?(www\.)?/,"");return a}}}});commonsApp.filter("dateFormat_MMM_dd_yyyy",function(){return function(c){var b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var a=new Date(c);return{date:b[a.getMonth()]+" "+a.getDate()+",",year:a.getFullYear()}}});commonsApp.filter("dateFormat_MMM_dd_yyyy_Cur_UTC",function(){return function(d){var c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var a=new Date();var e=a.getGmtOffset();var b=new Date(d+(3600000*e));return{date:c[b.getMonth()]+" "+b.getDate()+",",year:b.getFullYear()}}});commonsApp.filter("ellipsis",function(){return function(c,b,a){if(c!=undefined){if(isNaN(b)){b=10}if(a===undefined){a="..."}if(c.length<=b||c.length-a.length<=b){return c}else{return String(c).substring(0,b-a.length)+a}}}});commonsApp.filter("checkCompanyEndsWithS",function(){return function(a){var b=/s$/i;if(a.match(b)){return a+"'"}else{return a+"'s"}}});commonsApp.filter("timeFormatDDM",function(){return function(c,h,g){var e=new Date().getTime()-c;var f=Math.floor(e/(24*60*60*1000));if(f==0){var a={};var b=e/(60*60*1000);if(b>=1){a=Math.floor(b)+" h"}else{var d=e/(60*1000);a=Math.floor(d)+" m"}if(g!=undefined){a=a+" "+g}return a}return $.datepicker.formatDate(h,new Date(c))}});var dependencies=["commonsApp","rzModule","ngStorage"];var searchApp=angular.module("searchApp",dependencies);searchApp.constant("searchConstants",{mixpanelUtil:{mixpanel_property:{ADVANCED_SEARCH:"Advanced Search",ACTION:"Action",ADVANCED_SEARCH_TRIGGERED:"Advanced Search Triggered",LIST_GENERATED:"List Generated",RESULTS_PAGE_CLICK:"Results Page CP Link Clicked"}},gaEventConstants:{EVENT_HITTYPE:"event",CATEGORY_SEARCH:"Search",LABEL_BASICSEARCH:"Basic Search",SEARCH_ENTERKEYPRESSED:"Enterkey Pressed",SEARCH_LOGOCLICKED:"Logo Clicked"}});searchApp.directive("basicSearch",["$document","$timeout","Constants","searchConstants","commonsAppServices","basicSearchService","mySharedService","$sce","$window","$localStorage","$filter","mixpanelService","$rootScope",function(d,c,a,h,g,n,f,l,b,m,j,e,k){return{restrict:"E",replace:true,scope:{searchCompany:"=",callbackFn:"&",calltoFn:"&",wantToAdd:"@",txtPlaceHolder:"@",wishListText:"@",ignoreAdded:"@",showAdvancedsearch:"@"},link:function(q,t,I){q.isPopupVisible=false;q.newCompanyAdded=false;q;q.callbackCompanyList={};q.companyArray={};q.companyList={};q.newCompanyList={};q.search="";q.search.text="";q.hitCount=0;q.rawHitCount=0;q.advSearchFilters={};q.countryName="";q.stateName="";q.industryName="";q.sectorName="";q.countryControl={};q.stateControl={};q.industryControl={};q.sectorControl={};q.zipcodeControl={};q.areacodeControl={};q.hideAdvcdSearch=false;q.isAdvancedSearchPopupVisible=false;q.ownership={};q.ownership.value="";q.ownership.value="Any";q.zipcodes=[];q.areacodes=[];q.employeeArray=[0,5,10,20,50,75,100,200,250,300,350,400,450,500,600,700,800,900,1000,1500,2000,4000,6500,10000,20000,50000,75000,100000];q.revenueArray=[0,1000000,2000000,5000000,15000000,30000000,65000000,130000000,250000000,500000000,1000000000,2000000000,4000000000,8000000000,15000000000,30000000000,65000000000,130000000000,265000000000,500000000000];q.fundingArray=[0,100000,250000,600000,850000,1000000,5000000,10000000,15000000,20000000,35000000,50000000,75000000,1000000000,2000000000];q.ageArray=[0,2,3,4,5,7,10,15,20,30,40,50,60,70,80,90,100];var p=["ngStorage-ownership","ngStorage-country","ngStorage-state","ngStorage-industry","ngStorage-industryCode","ngStorage-sector","ngStorage-employeemin","ngStorage-employeemax","ngStorage-revenuemin","ngStorage-revenuemax","ngStorage-fundingmin","ngStorage-fundingmax","ngStorage-agemin","ngStorage-agemax","ngStorage-zipcodes"];q.focusIndex=-1;q.searchSuggestionBoxHeight=0;q.zipDefaultOption="Zip/Postal Code";q.areaDefaultOption="Area Code";q.noOfSelectedZips=0;q.noOfSelectedAreas=0;q.showSearchBar=false;var F=h.mixpanelUtil.mixpanel_property;var G=h.gaEventConstants;var r=new Array();I.$observe("showAdvancedsearch",function(L){if(!L){q.showAdvancedsearch=true}});I.$observe("ignoreAdded",function(L){if(!L){q.ignoreAdded=false}});I.$observe("wantToAdd",function(L){if(!L){q.wantToAdd=true}else{if(L=="false"){q.wantToAdd=false}else{q.wantToAdd=true}}});I.$observe("wishListText",function(L){if(!L){q.wishListText="Company Added to request list. Will appear in the list after approval"}});I.$observe("calltoFn",function(L){if(!L){q.calltoFn=function(){}}});function H(M){var N=document.getElementById("basicSearchSuggestionBox");var L=document.getElementById("basicSearchSuggestionBox-"+M);N.scrollTop=(L.offsetTop-63)}var x="Search for a company";var o=null;var J="";function z(){var L=document.getElementById("headerBasicSearch");if(L!=null){J=q.search.text;if(J==undefined||J==""||J==x){return}location.href=HOST_WITH_SSL+"browsecompanyprofiles.htm?searchTerm="+J}return false}q.handleKeyPress=function(M){var L;if(M){L=M.which}else{return true}if(L==13){var N=q.search.text;if(N!=null&&N!=undefined){_gaq.push(["_trackEvent",G.CATEGORY_SEARCH,G.SEARCH_ENTERKEYPRESSED,N])}if(q.focusIndex!=-1){location.href=q.companyList[q.focusIndex].seoFriendlyCompanyProfileUrl}else{z()}}else{if(L==40){M.preventDefault();q.focusIndex++;q.focusIndex=(q.focusIndex+q.companyList.length)%q.companyList.length;H(q.focusIndex)}else{if(L==38){M.preventDefault();if(q.focusIndex==-1){q.focusIndex=(q.focusIndex+q.companyList.length)%q.companyList.length}else{q.focusIndex--;q.focusIndex=(q.focusIndex+q.companyList.length)%q.companyList.length}H(q.focusIndex)}}}};q.searchRedirectToCPpage=function(L){var M=q.search.text;if(M!=null&&M!=undefined){_gaq.push(["_trackEvent",G.CATEGORY_SEARCH,G.SEARCH_LOGOCLICKED,M])}window.location=L};q.$on("showAdvSearchBox",function(L){q.showAdvancedSearchPopup()});q.updateSearchResult=function(L){q.focusIndex=-1;L=L.replace("https://","");L=L.replace("http://","");L=L.replace("www.","");if(L!=""&&L.length>1){q.isPopupVisible=true;q.searchSuggestionBoxHeight=b.innerHeight-85+"px";g.searchCompanies(L).then(function(M){document.querySelector("#header-overlay").style.display="block";q.companyArray=M.data.results;L=s(L);if(L!=""&&q.companyArray!=null&&q.companyArray!=""){q.newCompanyAdded=false;q.callbackCompanyList=q.callbackFn();var O=new Array();angular.forEach(q.companyArray,function(aa){var U=aa.shortName+" | "+aa.primaryDomain+C(aa);var ac=L.toLowerCase();var Y=U;var S=U.toLowerCase();var Z=0;while(S.indexOf(ac,Z)>-1){var R=S.indexOf(ac,Z);Z=R+ac.length+13;var T=Y.substring(0,R);var W=Y.substring(R+ac.length);var ab=Y.substring(R,R+ac.length);ab=""+ab+"";Y=T+ab+W;S=Y.toLowerCase()}var V=Y;var Q=false;var P=false;var X=false;angular.forEach(q.callbackCompanyList,function(ad){if(ad.id+""===aa.id){if(q.ignoreAdded){X=true;return}if(ad.overrideFollow==undefined){Q=true}else{P=true;Q=ad.follow==undefined||ad.follow}}});if(!X){O.push(aa)}aa.overrideFollow=P;aa.resultString=V;aa.following=Q});q.companyList=O}else{document.querySelector("#header-overlay").style.display="none";q.companyList=null;if(q.wantToAdd&&K(L)){var N=[];q.newCompanyList=[];N.url=L;q.newCompanyList.push(N)}else{q.newCompanyList=null;q.companyList=null}}})}else{document.querySelector("#header-overlay").style.display="none";q.isPopupVisible=false;q.companyList=null}};q.addNewCompanyToWatchlist=function(L){g.addNewCompanyToWatchlist(L).then(function(M){q.isPopupVisible=false;q.newCompanyAdded=true})};q.$on("companyAdded",function(){q.addedCompany=f.addedCompany;angular.forEach(q.companyArray,function(L){if(L.id===q.addedCompany.id){L.following=true;return false}})});q.$on("companyRemoved",function(){q.removedCompany=f.removedCompany;angular.forEach(q.companyArray,function(L){if(L.id===q.removedCompany.id){L.following=false;return false}})});q.closebasicSearchPopup=function(){document.querySelector("#header-overlay").style.display="none";q.isPopupVisible=false;q.search.text=""};q.closeAdvancedSearchPopup=function(){document.querySelector("#header-overlay").style.display="none";q.isAdvancedSearchPopupVisible=false};q.showAdvancedSearchPopup=function(){if(q.isAdvancedSearchPopupVisible){document.querySelector("#header-overlay").style.display="none";q.isAdvancedSearchPopupVisible=false}else{document.querySelector("#header-overlay").style.display="block";q.isPopupVisible=false;q.search.text="";q.isAdvancedSearchPopupVisible=true;var M={};M[F.ACTION]=F.ADVANCED_SEARCH_TRIGGERED;e.trackEvent(F.ADVANCED_SEARCH,M);n.getCountryList().then(function(O){var N=O.data;q.countryList=[];q.countryMap={};var R=N.countryList;for(var P=0;Pq.employeeArray.length-1){q.emp_slider.maxValue=q.employeeArray.length-1}else{q.emp_slider.maxValue=L.employeemax}}if(v(L.revenuemin)){q.rev_slider.minValue=L.revenuemin}if(v(L.revenuemax)){if(L.revenuemax>q.revenueArray.length-1){q.rev_slider.maxValue=q.revenueArray.length-1}else{q.rev_slider.maxValue=L.revenuemax}}if(v(L.fundingmin)){q.fun_slider.minValue=L.fundingmin}if(v(L.fundingmax)){if(L.fundingmax>q.fundingArray.length-1){q.fun_slider.maxValue=q.fundingArray.length-1}else{q.fun_slider.maxValue=L.fundingmax}}if(v(L.agemin)){q.age_slider.minValue=L.agemin}if(v(L.agemax)){if(L.agemax>q.ageArray.length-1){q.age_slider.maxValue=q.ageArray.length-1}else{q.age_slider.maxValue=L.agemax}}}var E=function(M,L){n.getStateList(M).then(function(N){if(M!="Select Country"){q.stateList=[];q.stateMap={};var Q=N.data;for(var P=0;P0)||(v(q.areacodes)&&q.areacodes.length>0)){q.getSearchHits()}}}})};var u=function(L){if(y(L)){n.getZipAndAreaList(L).then(function(M){if(L!="Select State"){var Q=M.data.zipCodes;q.zipcodeList=[];q.zipcodeMap={};for(var O=0;O0){if(q.zipcodes=="Zip/Postal Code"){q.zipcodes=[]}L.zipcodes=q.zipcodes}if(q.areacodes!=null&&q.areacodes!=undefined&&q.areacodes.length>0){if(q.areacodes=="Area Code"){q.areacodes=[]}L.areacodes=q.areacodes}if(y(q.industryName)){if(q.industryName=="Select Industry"){q.industryName="";q.industryCode=""}L.industry=q.industryName;L.industryCode=q.industryCode}if(y(q.sectorName)){if(q.sectorName=="Select Sector"||q.sectorName=="Must select Industry first"){q.sectorName=""}L.sector=q.sectorName}if(y(q.emp_slider.minValue)){L.employeemin=q.emp_slider.minValue;L.employeeminvalue=q.advSearchFilters.employeemin}if(y(q.emp_slider.maxValue)){L.employeemax=q.emp_slider.maxValue;L.employeemaxvalue=q.advSearchFilters.employeemax}if(y(q.rev_slider.minValue)){L.revenuemin=q.rev_slider.minValue;L.revenueminvalue=q.advSearchFilters.revenuemin}if(y(q.rev_slider.maxValue)){L.revenuemax=q.rev_slider.maxValue;L.revenuemaxvalue=q.advSearchFilters.revenuemax}if(y(q.fun_slider.minValue)){L.fundingmin=q.fun_slider.minValue;L.fundingminvalue=q.advSearchFilters.fundingmin}if(y(q.fun_slider.maxValue)){L.fundingmax=q.fun_slider.maxValue;L.fundingmaxvalue=q.advSearchFilters.fundingmax}if(y(q.age_slider.minValue)){L.agemin=q.age_slider.minValue;L.ageminvalue=q.advSearchFilters.agemin}if(y(q.age_slider.maxValue)){L.agemax=q.age_slider.maxValue;L.agemaxvalue=q.advSearchFilters.agemax}m.owler_advSearchObject=JSON.stringify(L);b.open(a.apiUrl+"/advancedsearch.htm","_self")};q.emp_slider={minValue:0,maxValue:27,options:{stepsArray:q.employeeArray,translate:function(L){lastValue=q.employeeArray[q.employeeArray.length-1];if(q.employeeArray[L]!=lastValue){return j("numberFormatWithPrecision")(q.employeeArray[L])}else{return j("numberFormatWithPrecision")(q.employeeArray[L])+"+"}},hideLimitLabels:true,onEnd:function(L){q.getSearchHits()}}};q.rev_slider={minValue:0,maxValue:q.revenueArray.length-1,options:{stepsArray:q.revenueArray,translate:function(L){lastValue=q.revenueArray[q.revenueArray.length-1];if(q.revenueArray[L]!=lastValue){return j("currencyFormat")(q.revenueArray[L])}else{return j("currencyFormat")(q.revenueArray[L])+"+"}},hideLimitLabels:true,onEnd:function(L){q.getSearchHits()}}};q.fun_slider={minValue:0,maxValue:q.fundingArray.length-1,options:{stepsArray:q.fundingArray,translate:function(L){lastValue=q.fundingArray[q.fundingArray.length-1];if(q.fundingArray[L]!=lastValue){return j("currencyFormat")(q.fundingArray[L])}else{return j("currencyFormat")(q.fundingArray[L])+"+"}},hideLimitLabels:true,onEnd:function(L){q.getSearchHits()}}};q.age_slider={minValue:0,maxValue:16,options:{stepsArray:q.ageArray,translate:function(L){lastValue=q.ageArray[q.ageArray.length-1];if(q.ageArray[L]!=lastValue){return q.ageArray[L]}else{return q.ageArray[L]+"+"}},hideLimitLabels:true,onEnd:function(L){q.getSearchHits()}}};q.getHTMLvalue=function(L){return l.trustAsHtml(L)};function C(L){var M=L.tickerSymbol;if(M!=null){return" | Ticker: "+L.tickerSymbol}else{return""}}function s(L){return stripDomain(L)}function K(O){var N=O;var M=/^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})$/;var L=M.test(N);if(L){return true}else{return false}}g.getTemplateLoader("basicSearch.html",a.cdnFullPath+"scripts/angular/commons/modules/searchcompany/basicSearch.html")(t,q)}}}]);(function(a,b){if(typeof define==="function"&&define.amd){define(["angular"],b)}else{if(a.hasOwnProperty("angular")){b(a.angular)}else{if(typeof exports==="object"){module.exports=b(require("angular"))}}}}(this,function(a){a=(a&&a.module)?a:window.angular;return a.module("ngStorage",[]).provider("$localStorage",b("localStorage")).provider("$sessionStorage",b("sessionStorage"));function b(c){return function(){var d="ngStorage-";this.setKeyPrefix=function(g){if(typeof g!=="string"){throw new TypeError("[ngStorage] - "+c+"Provider.setKeyPrefix() expects a String.")}d=g};var e=a.toJson;var f=a.fromJson;this.setSerializer=function(g){if(typeof g!=="function"){throw new TypeError("[ngStorage] - "+c+"Provider.setSerializer expects a function.")}e=g};this.setDeserializer=function(g){if(typeof g!=="function"){throw new TypeError("[ngStorage] - "+c+"Provider.setDeserializer expects a function.")}f=g};this.get=function(g){return f(window[c].getItem(d+g))};this.set=function(g,h){return window[c].setItem(d+g,e(h))};this.$get=["$rootScope","$window","$log","$timeout","$document",function(o,j,q,k,l){function r(v){var s;try{s=j[v]}catch(u){s=false}if(s&&v==="localStorage"){var t="__"+Math.round(Math.random()*10000000);try{localStorage.setItem(t,t);localStorage.removeItem(t)}catch(u){s=false}}return s}var m=d.length;var h=r(c)||(q.warn("This browser does not support Web Storage!"),{setItem:a.noop,getItem:a.noop,removeItem:a.noop}),g={$default:function(t){for(var s in t){a.isDefined(g[s])||(g[s]=a.copy(t[s]))}g.$sync();return g},$reset:function(t){for(var s in g){"$"===s[0]||(delete g[s]&&h.removeItem(d+s))}return g.$default(t)},$sync:function(){for(var u=0,s=h.length,t;u{{labelName}}
{{errorMessage}}
',link:function(f,g,d){f.valid=false;var c=true;f.$watch("selectedValue",function(){if(c){a(function(){c=false},1000)}else{if(f.selectedValue!=""){f.updateValidity()}}});f.updateValidity=function(){angular.forEach(f.listValue,function(k,j){if(k==f.selectedValue){f.selectedIndex=j}});e();if(f.infocontrol&&f.infocontrol.publish){var h=f.selectedValue;if(!angular.isDefined(f.selectedValue)){h=f.defaultName}f.infocontrol.publish(f.name,h,f.valid,f.selectedIndex)}return f.valid};if(f.infocontrol){f.infocontrol.validateField=f.updateValidity;f.infocontrol.resetDefault=function(h){f.selectedValue=h}}if(f.selectedValue==undefined){f.selectedValue=f.defaultName}var e=function(){if(f.required){if(f.selectedValue&&f.selectedValue!=""){f.valid=true;f.errorMessage=""}else{f.valid=false;f.errorMessage=f.name+" is a required field."}}}}}}]);"use strict";commonsApp.directive("olrMultiSelect",["$document","$timeout",function(b,a){return{restrict:"E",scope:{name:"@",itemId:"@",selectedValue:"=",noOfSelectedItems:"=",listValue:"=",required:"@",defaultName:"=",infocontrol:"="},template:'
{{defaultName}}
  • {{defaultOption}}
  • {{list}}
',link:function(e,f,c){e.valid=false;e.defaultOption=e.defaultName;e.isDefaultOptionSelected=true;e.openDropdown=function(){e.open=!e.open};e.closeDropDown=function(){e.open=false};e.selectDefaultOption=function(){e.isDefaultOptionSelected=true;e.open=!e.open;e.defaultName=e.defaultOption;e.selectedValue.length=0;e.noOfSelectedItems=0;g()};e.toggleSelectItem=function(j){e.isDefaultOptionSelected=false;var h=-1;angular.forEach(e.selectedValue,function(l,k){if(l==j){h=k}});if(h>=0){e.noOfSelectedItems-=1;e.selectedValue.splice(h,1)}else{e.noOfSelectedItems+=1;e.selectedValue.push(j)}if(e.noOfSelectedItems==0){e.defaultName=e.defaultOption}else{e.defaultName=e.noOfSelectedItems+" Selected"}g()};var g=function(){var h=[];d();if(e.infocontrol&&e.infocontrol.publish){if(e.isDefaultOptionSelected){h.push(e.defaultOption)}else{h=e.selectedValue}e.infocontrol.publish(e.name,h,e.valid)}};e.setClassName=function(j){var h="";angular.forEach(e.selectedValue,function(l,k){if(l==j){h="highlight-item"}});return(h)};var d=function(){if(e.required){if(e.selectedValue.length>0){e.valid=true;e.errorMessage=""}else{e.valid=false;e.errorMessage=e.name+" is a required field."}}}}}}]);"use strict";commonsApp.directive("clickOutside",["$document","$parse",function(b,a){return{restrict:"A",link:function(d,g,c){var h=(c.outsideIfNot!==undefined)?c.outsideIfNot.replace(", ",",").split(","):[],f=a(c.clickOutside);if(c.id!==undefined){h.push(c.id)}var e=function(n){if(angular.element(g).hasClass("ng-hide")){return}var m=0,k;if(!n||!n.target){return}for(k=n.target;k;k=k.parentNode){var p=k.id,o=k.className,j=h.length;if(o&&o.baseVal!==undefined){o=o.baseVal}for(m=0;m-1)||(o&&o.indexOf(h[m])>-1)){return}}}return d.$apply(function(){return f(d)})};b.on("click",e);d.$on("$destroy",function(){b.off("click",e)})}}}]);commonsApp.controller("signInController",["$scope","signInService","$timeout",function(b,e,d){var f="";b.isSignInPopupEnabled=false;b.isSignInSuccessShown=false;b.showLoading=false;b.showErrorMsg=false;b.autErrorMsg="";b.isMandate=false;var a=" access";b.page=a;b.validEmail=true;var g=undefined;var c="5";b.emailCntrl={};b.emailCntrl.publish=function(h,k,j){if(j&&j!=""){b.email=k}b.showErrorMsg=false;b.validEmail=j};b.showSignInPopup=function(h,j){b.initSignInPopup(f);this.targetUrl=j;b.isSignInSuccessShown=false;b.showLoading=false;b.showErrorMsg=false;b.autErrorMsg="";b.validEmail=true;b.isSignInPopupEnabled=true;b.page=h};b.$on("mandateAuthentication",function(j,h){b.page=h.page;b.showSignInPopup(b.page,h.targetURL);b.isMandate=h.isMandate==undefined?false:h.isMandate});b.closeSignInContainer=function(){b.isSignInPopupEnabled=false};b.closeSignInSuccessContainer=function(){b.isSignInSuccessShown=false};b.initSignInPopup=function(h){f=h;b.email=h};b.register=function(){logout(this.targetUrl,true)};b.requestSignInLink=function(){b.showErrorMsg=false;b.emailCntrl.validateField();var h=this.targetUrl;if(b.validEmail==true){var j=e.requestSignInLink(b.email,h);b.showLoading=true;j.then(function(k){var l=k.data;if(l.result==SUCCESS_STRING){b.isSignInPopupEnabled=false;b.showLoading=false;b.isSignInSuccessShown=true;trackSignInRequest(l.memberId,b.email,"Identify Form",false)}else{if(l.result==c){b.isSignInPopupEnabled=false;b.showLoading=false;trackSignInRequest(l.memberId,b.email,"Identify Form",true,h)}else{b.autErrorMsg=l.message;d(function(){b.validEmail=false;b.showErrorMsg=true;b.showLoading=false},1000)}}})}}}]);commonsApp.service("signInService",["$http","Constants",function(c,a){var b=a.apiUrl;this.requestSignInLink=function(d,f){if(f==undefined){f=window.location.href}var e=c.post(b+"/requestSignInLink.htm?email="+d+"&targetURL="+f);return e}}]);"use strict";commonsApp.directive("olrInputBox",["$document","$filter","$timeout",function(c,b,a){var d=1;return{restrict:"E",scope:{name:"@",labelName:"@",onFocusText:"@",autoFocus:"@",inputValue:"@",type:"=",maxLength:"@",showCurrency:"@",format:"@",undisclosed:"@",undisclosedModel:"@",undisclosedText:"@",validators:"=",infocontrol:"=",placeholder:"@"},template:function(f,e){if(angular.isDefined(e.type)&&e.type=="number"){return'
{{labelName}} 
${{currentValue.value}}{{currentValue.denomination}}
{{errorMessage}}
'}else{return'
{{labelName}} 
${{currentValue.value}}{{currentValue.denomination}}
{{errorMessage}}
'}},link:function(h,k,f){var j="item"+d++;k.find("[type=checkbox]").attr("id",j);k.find("label").attr("for",j);h.checked=h.undisclosedModel=="true";h.valid=true;h.currentValue=h.inputValue;var l=function(){h.formattedValue=h.inputValue.replace(/\D/g,"");h.currentValue=b("formatAndSplitDenomination")(h.formattedValue)};h.setFocusText=function(){if(h.onFocusText){if(h.inputValue==""){h.inputValue=h.onFocusText;setTimeout(function(){$(k.find(".input-field")).setCursorPosition(0)},1)}}};h.removeFocusText=function(){if(h.onFocusText==h.inputValue){h.inputValue=""}};var e=function(){if(h.inputValue!=""){h.formattedValue=h.inputValue.replace(/\D/g,"");h.currentValue=b("formatAndSplitDenomination")(h.formattedValue);h.inputValue=(b("number")(h.inputValue))}};a(function(){if(h.format){e()}});h.updateValidity=function(){if(h.format){l()}g();if(h.infocontrol&&h.infocontrol.publish){var m="";if(h.format){m=h.inputValue.replace(/\D/g,"")}else{m=h.inputValue}h.infocontrol.publish(h.name,m,h.valid)}return h.valid};var g=function(){h.valid=true;if(h.checked){h.valid=true;h.errorMessage="";h.inputValue="";h.currentValue=""}else{var n=h.validators;var r=h.inputValue;var t=true;for(var p=0;p0){h.valid=true;h.errorMessage=""}else{h.valid=false;h.errorMessage="Please enter a valid number";t=false}}else{h.valid=false;h.errorMessage="Please enter whole numbers.";t=false}}if(o=="URL"){if(r==""){h.valid=true;h.errorMessage="";continue}var q=/(https?:\/\/(?:www\.|(?!www))?[^\s\.]+\.[^\s]{2,}|(www\.)?[^\s]+\.[^\s]{2,})/;if(q.test(r)){h.valid=true;h.errorMessage=""}else{h.valid=false;h.errorMessage="URL is invalid. (e.g. www.owler.com)";t=false}}if(o=="PHONE"){if(r==""){h.valid=true;h.errorMessage="";continue}var q=/^([0-9-()]{0,20})$/;if(q.test(r)){h.valid=true;h.errorMessage=""}else{h.valid=false;h.errorMessage="Phone number is invalid.";t=false}}if(o=="EMAIL"){var s=validateEmail(r);if(s){s=validateDomain(r);if(!s){h.valid=false;h.errorMessage="The domain is invalid. Please use a valid email address";t=false}else{h.valid=true;h.errorMessage=undefined;continue}}else{h.valid=false;h.errorMessage="Please enter a valid email address";t=false}t=true}if(typeof o==="function"){if(r==""){h.valid=true;h.errorMessage="";continue}else{var m=o(r);if(m.isValid){h.valid=true;h.errorMessage=""}else{h.valid=false;h.errorMessage=m.errMsg;t=false}}}}}}};if(h.infocontrol){h.infocontrol.validateField=h.updateValidity}}}}]);"use strict";commonsApp.directive("escapeToClose",["$document","$parse",function(b,a){return{restrict:"A",link:function(d,g,c){var e=a(c.escapeToClose);var f=function(h){if(h.which==27){return d.$apply(function(){return e(d)})}};b.on("keyup",f);d.$on("$destroy",function(){b.off("keyup",f)})}}}]);commonsApp.directive("submitToEnter",["$document","$parse",function(b,a){return{restrict:"A",link:function(d,g,c){var e=a(c.submitToEnter);var f=function(h){if(h.which==13){return d.$apply(function(){return e(d)})}};b.on("keyup",f);d.$on("$destroy",function(){b.off("keyup",f)})}}}]);if(typeof module!=="undefined"&&typeof exports!=="undefined"&&module.exports===exports){module.exports="highcharts-ng"}(function(){angular.module("highcharts-ng",[]).factory("highchartsNGUtils",b).directive("highchart",["highchartsNGUtils","$timeout",a]);function b(){return{indexOf:function(d,f,e){if(e===undefined){e=0}if(e<0){e+=d.length}if(e<0){e=0}for(var g=d.length;e",scope:{config:"=",disableDataWatch:"="},link:function(s,q,p){var t={};var u=function(y){var x;var A=[];if(y){var v=e(y);if(v){return false}angular.forEach(y,function(B){A.push(B.id);var C=r.get(B.id);if(C){if(!angular.equals(t[B.id],m(B))){C.update(angular.copy(B),false)}else{if(B.visible!==undefined&&C.visible!==B.visible){C.setVisible(B.visible,false)}C.setData(angular.copy(B.data),false)}}else{r.addSeries(angular.copy(B),false)}t[B.id]=m(B)});if(s.config.noData){var w=false;for(x=0;x0){w=true;break}}if(!w){r.showLoading(s.config.noData)}else{r.hideLoading()}}}for(x=r.series.length-1;x>=0;x--){var z=r.series[x];if(z.options.id!=="highcharts-navigator-series"&&d.indexOf(A,z.options.id)<0){z.remove(false)}}return true};var r=false;var o=function(){if(r){r.destroy()}t={};var v=s.config||{};var z=g(s,q,v);var y=v.func||undefined;var x=h(s);r=new Highcharts[x](z,y);for(var w=0;w0;if(t){if(r.multiSelect){return}}r.isPopupVisible=false;r.$apply()});r.clearSearchBox=function(){if(r.clearText){a.$broadcast("showHideCPTopCompThanksMsg")}};r.$on("maxCompanyAdded",function(){r.maxCompanyAdded=true});r.$on("resetMaxCompanyAdded",function(){r.maxCompanyAdded=false});var l="Search for a company";var k=null;function s(){var v=document.getElementById("searchAndManageCompany");if(v!=null){var t=(window.innerWidth>0)?window.innerWidth:screen.width;if(t<640){var u=document.querySelector(".mobile-search #searchAndManageCompany").value}else{var u=document.querySelector("#searchAndManageCompany").value}if(u==l){return}location.href=HOST_WITH_SSL+"browsecompanyprofiles.htm?searchTerm="+u}return false}r.handleKeyPress=function(u){var t;if(u){t=u.which}else{return true}if(t==13){if(r.focusIndex!=-1){r.followCompany(r.companyList[r.focusIndex],!r.companyList[r.focusIndex].following)}}else{if(t==40){u.preventDefault();r.focusIndex++;r.focusIndex=(r.focusIndex+r.companyList.length)%r.companyList.length;m(r.focusIndex)}else{if(t==38){u.preventDefault();if(r.focusIndex==-1){r.focusIndex=(r.focusIndex+r.companyList.length)%r.companyList.length}else{r.focusIndex--;r.focusIndex=(r.focusIndex+r.companyList.length)%r.companyList.length}m(r.focusIndex)}}}};function m(u){var v=document.getElementById("searchAndManageCompanySuggestionBox");var t=document.getElementById("searchAndManageCompanySuggestionBox-"+u);v.scrollTop=(t.offsetTop-63)}r.updateSearchResult=function(t){r.focusIndex=-1;t=t.replace("https://","");t=t.replace("http://","");t=t.replace("www.","");if(t!=""&&t.length>1){r.isPopupVisible=true;b.searchCompanies(t).then(function(u){r.companyArray=u.data.results;t=p(t);if(t!=""&&r.companyArray!=null&&r.companyArray!=""){r.newCompanyAdded=false;r.callbackCompanyList=r.callbackFn();var w=new Array();angular.forEach(r.companyArray,function(I){var C=I.shortName+" - "+I.primaryDomain+j(I);var K=t.toLowerCase();var G=C;var A=C.toLowerCase();var H=0;while(A.indexOf(K,H)>-1){var z=A.indexOf(K,H);H=z+K.length+13;var B=G.substring(0,z);var E=G.substring(z+K.length);var J=G.substring(z,z+K.length);J=""+J+"";G=B+J+E;A=G.toLowerCase()}var D=G;var y=false;var x=false;var F=false;angular.forEach(r.callbackCompanyList,function(L){if(L.id+""===I.id){if(r.ignoreAdded){F=true;return}if(L.overrideFollow==undefined){y=true}else{x=true;y=L.follow==undefined||L.follow}}});if(!F){w.push(I)}I.overrideFollow=x;I.resultString=D;I.following=y});r.companyList=w}else{r.companyList=null;if(r.wantToAdd&&o(t)){var v=[];r.newCompanyList=[];v.url=t;r.newCompanyList.push(v)}else{r.newCompanyList=null;r.companyList=null}}})}else{r.isPopupVisible=false;r.companyList=null}};r.addNewCompanyToWatchlist=function(t){b.addNewCompanyToWatchlist(t).then(function(u){r.isPopupVisible=false;r.newCompanyAdded=true;if(r.hideAddCompMsg){$("#searchAndManage").val("");f(function(){r.newCompanyAdded=false},2000)}})};r.followCompany=function(t,u){$("#searchAndManage").val("");if(r.limitCompanies&&r.maxCompanyAdded){r.showMaxCompanyAddedText=true;f(function(){r.showMaxCompanyAddedText=false},2000)}else{if(r.clickToFollow){d.showLoading();b.followCompany(t.id,u).then(function(v){r.following=v.data;if(r.following=="true"){d.addCompany(t);d.hideLoading()}else{if(r.following=="false"){d.removeCompany(t);d.hideLoading()}}})}else{r.calltoFn({company:t,following:u});angular.forEach(r.companyArray,function(v){if(t.id===v.id){v.following=u}});r.companyList=r.companyArray}r.isPopupVisible=false}};r.$on("companyAdded",function(){r.addedCompany=d.addedCompany;angular.forEach(r.companyArray,function(t){if(t.id===r.addedCompany.id){t.following=true;return false}})});r.$on("companyRemoved",function(){r.removedCompany=d.removedCompany;angular.forEach(r.companyArray,function(t){if(t.id===r.removedCompany.id){t.following=false;return false}})});r.getHTMLvalue=function(t){return c.trustAsHtml(t)};function j(t){var u=t.tickerSymbol;if(u!=null){return" - "+t.tickerSymbol}else{return""}}function p(t){return stripDomain(t)}function o(w){var v=w;var u=/^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})$/;var t=u.test(v);if(t){return true}else{return false}}b.getTemplateLoader("searchCompany.html",e.cdnFullPath+"scripts/angular/commons/modules/searchcompany/searchCompany.html")(n,r)}}}]);"use strict";angular.module("yaru22.angular-timeago",[]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.ca_ES={prefixAgo:"fa",prefixFromNow:"d'aquí",suffixAgo:null,suffixFromNow:null,seconds:"menys d'un minut",minute:"prop d'un minut",minutes:"%d minuts",hour:"prop d'una hora",hours:"prop de %d hores",day:"un dia",days:"%d dies",month:"prop d'un mes",months:"%d mesos",year:"prop d'un any",years:"%d anys",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.da_DK={prefixAgo:null,prefixFromNow:null,suffixAgo:"siden",suffixFromNow:null,seconds:"mindre end et minut",minute:"omkring et minut",minutes:"%d minuter",hour:"omkring en time",hours:"omkring %d timer",day:"en dag",days:"%d dage",month:"omkring en m\xe5ned",months:"%d m\xe5neder",year:"omkring et \xe5r",years:"%d \xe5r",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.de_DE={prefixAgo:"vor",prefixFromNow:"in",suffixAgo:null,suffixFromNow:null,seconds:"weniger als einer Minute",minute:"ca. einer Minute",minutes:"%d Minuten",hour:"ca. einer Stunde",hours:"ca. %d Stunden",day:"einem Tag",days:"%d Tagen",month:"ca. einem Monat",months:"%d Monaten",year:"ca. einem Jahr",years:"%d Jahren",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.en_US={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"Less than a minute",minute:"1 minute",minutes:"%d minutes",hour:"An hour",hours:"%d hours",day:"1 day",days:"%d days",month:"A month",months:"%d months",year:"1 year",years:"%d years",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.es_ES={prefixAgo:"hace",prefixFromNow:"dentro de",suffixAgo:null,suffixFromNow:null,seconds:"menos de un minuto",minute:"un minuto",minutes:"%d minutos",hour:"una hora",hours:"%d horas",day:"un día",days:"%d días",month:"un mes",months:"%d meses",year:"un año",years:"%d años",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.es_LA={prefixAgo:"hace",prefixFromNow:"en",suffixAgo:null,suffixFromNow:null,seconds:"menos de un minuto",minute:"un minuto",minutes:"%d minutos",hour:"una hora",hours:"%d horas",day:"un día",days:"%d días",month:"un mes",months:"%d meses",year:"un año",years:"%d años",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.fr_FR={prefixAgo:"il y a",prefixFromNow:"dans",suffixAgo:null,suffixFromNow:null,seconds:"moins d'une minute",minute:"environ une minute",minutes:"%d minutes",hour:"environ une heure",hours:"environ %d heures",day:"un jour",days:"%d jours",month:"environ un mois",months:"%d mois",year:"environ un an",years:"%d ans",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.he_IL={prefixAgo:null,prefixFromNow:null,suffixAgo:"לפני",suffixFromNow:"מעכשיו",seconds:"פחות מדקה",minute:"כדקה",minutes:"%d דקות",hour:"כשעה",hours:"כ %d שעות",day:"יום",days:"%d ימים",month:"כחודש",months:"%d חודשים",year:"כשנה",years:"%d שנים",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.hu_HU={prefixAgo:null,prefixFromNow:null,suffixAgo:null,suffixFromNow:null,seconds:"kevesebb mint egy perce",minute:"körülbelül egy perce",minutes:"%d perce",hour:"körülbelül egy órája",hours:"körülbelül %d órája",day:"egy napja",days:"%d napja",month:"körülbelül egy hónapja",months:"%d hónapja",year:"körülbelül egy éve",years:"%d éve",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.it_IT={prefixAgo:null,prefixFromNow:null,suffixAgo:"fa",suffixFromNow:"da ora",seconds:"meno di un minuto",minute:"circa un minuto",minutes:"%d minuti",hour:"circa un' ora",hours:"circa %d ore",day:"un giorno",days:"%d giorni",month:"circa un mese",months:"%d mesi",year:"circa un anno",years:"%d anni",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.nl_NL={prefixAgo:null,prefixFromNow:"over",suffixAgo:"geleden",suffixFromNow:"vanaf nu",seconds:"een paar seconden",minute:"ongeveer een minuut",minutes:"%d minuten",hour:"een uur",hours:"%d uur",day:"een dag",days:"%d dagen",month:"een maand",months:"%d maanden",year:"een jaar",years:"%d jaar",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.pl_PL={prefixAgo:null,prefixFromNow:null,suffixAgo:"temu",suffixFromNow:"od teraz",seconds:"mniej niż minuta",minute:"około minuty",minutes:"%d minut",hour:"około godziny",hours:"około %d godzin",day:"dzień",days:"%d dni",month:"około miesiąca",months:"%d miesięcy",year:"około roku",years:"%d lat",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.pt_BR={prefixAgo:null,prefixFromNow:"daqui a",suffixAgo:"atrás",suffixFromNow:null,seconds:"menos de um minuto",minute:"cerca de um minuto",minutes:"%d minutos",hour:"cerca de uma hora",hours:"cerca de %d horas",day:"um dia",days:"%d dias",month:"cerca de um mês",months:"%d meses",year:"cerca de um ano",years:"%d anos",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.ru={prefixAgo:null,prefixFromNow:null,suffixAgo:"назад",suffixFromNow:null,seconds:"меньше минуты",minute:"около минуты",minutes:"%d мин.",hour:"около часа",hours:"около %d час.",day:"день",days:"%d дн.",month:"около месяца",months:"%d мес.",year:"около года",years:"%d г.",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.sv_SE={prefixAgo:null,prefixFromNow:"om",suffixAgo:"sen",suffixFromNow:null,seconds:"mindre än en minut",minute:"cirka en minut",minutes:"%d minuter",hour:"cirka en timme",hours:"cirka %d timmar",day:"en dag",days:"%d dagar",month:"cirka en månad",months:"%d månader",year:"cirka ett år",years:"%d år",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.tr_TR={prefixAgo:null,prefixFromNow:null,suffixAgo:"önce",suffixFromNow:"şu andan itibaren",seconds:"bir dakikadan daha az",minute:"bir dakika gibi",minutes:"%d dakika",hour:"bir saat gibi",hours:"%d saat gibi",day:"bir gün",days:"%d gün",month:"bir ay gibi",months:"%d ay",year:"bir yıl gibi",years:"%d yıl",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.zh_CN={wordSeparator:"",prefixAgo:null,prefixFromNow:null,suffixAgo:"前",suffixFromNow:"后",seconds:"1分钟",minute:"1分钟",minutes:"%d分钟",hour:"1小时",hours:"%d小时",day:"1天",days:"%d天",month:"1个月",months:"%d个月",year:"1年",years:"%d年",numbers:[]}}]);"use strict";angular.module("yaru22.angular-timeago").config(["timeAgoSettings",function(a){a.strings.zh_TW={wordSeparator:"",prefixAgo:null,prefixFromNow:null,suffixAgo:"前",suffixFromNow:"後",seconds:"少於一分鐘",minute:"一分鐘",minutes:"%d分鐘",hour:"一小時",hours:"%d小時",day:"一日",days:"%d日",month:"一個月",months:"%d個月",year:"一年",years:"%d年",numbers:["零","一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十","卅一","卅二","卅三","卅四","卅五","卅六","卅七","卅八","卅九","四十","卌一","卌二","卌三","卌四","卌五","卌六","卌七","卌八","卌九","五十","五十一","五十二","五十三","五十四","五十五","五十六","五十七","五十八","五十九","六十","六十一","六十二","六十三","六十四","六十五","六十六","六十七","六十八","六十九","七十","七十一","七十二","七十三","七十四","七十五","七十六","七十七","七十八","七十九","八十","八十一","八十二","八十三","八十四","八十五","八十六","八十七","八十八","八十九","九十","九十一","九十二","九十三","九十四","九十五","九十六","九十七","九十八","九十九","一百",]}}]);"use strict";angular.module("yaru22.angular-timeago").factory("nowTime",["$interval","timeAgo","timeAgoSettings",function(e,b,a){var d;function c(){d=Date.now()}c();e(c,a.refreshMillis);return function(){return d}}]);"use strict";angular.module("yaru22.angular-timeago").constant("timeAgoSettings",{refreshMillis:1000,allowFuture:false,overrideLang:null,fullDateAfterSeconds:null,strings:{},breakpoints:{secondsToMinute:45,secondsToMinutes:90,minutesToHour:45,minutesToHours:90,hoursToDay:24,hoursToDays:42,daysToMonth:30,daysToMonths:45,daysToYear:365,yearToYears:1.5}});"use strict";angular.module("yaru22.angular-timeago").directive("timeAgo",["timeAgo","nowTime",function(a,b){return{scope:{fromTime:"@",format:"@"},restrict:"EA",link:function(c,d){var e;c.$watch("fromTime",function(){e=a.parse(c.fromTime)});c.$watch(function(){return b()-e},function(f){angular.element(d).text(a.inWords(f,e,c.format))})}}}]);"use strict";angular.module("yaru22.angular-timeago").factory("timeAgo",["$filter","timeAgoSettings",function(c,b){var a={};a.inWords=function(j,y,v,o){var g=parseInt(b.fullDateAfterSeconds,10);if(!isNaN(g)){var t=g*1000;if((j>=0&&t<=j)||(j<0&&t>=j)){if(v){return c("date")(y,v,o)}return y}}var n=b.overrideLang;var k=document.documentElement.lang;var p=b.strings;var z,x;if(typeof p[n]!=="undefined"){z=n;x=p[n]}else{if(typeof p[k]!=="undefined"){z=k;x=p[k]}else{z="en_US";x=p[z]}}var u=x.prefixAgo;var d=x.suffixAgo;if(b.allowFuture){if(j<0){u=x.prefixFromNow;d=x.suffixFromNow}}var l=Math.abs(j)/1000;var s=l/60;var w=s/60;var f=w/24;var r=f/365;function q(A,C){C=Math.round(C);var B=angular.isFunction(A)?A(C,j):A;var D=(x.numbers&&x.numbers[C])||C;return B.replace(/%d/i,D)}var h=b.breakpoints;var m=l0?ac[ad]:Z)}else{ab=parseInt(ac[aa]);Z=ab}if(aa==0){Y.push(S(ab))}else{if(aa==ac.length-1){Y.push(S(ab))}else{Y.push(ab)}}}}m.keyStatsESTEmployeeChartConfig={options:{chart:{type:"line",backgroundColor:"transparent"},credits:{enabled:false},title:{text:"",style:{display:"none"},},plotOptions:{series:{states:{hover:{enabled:false,halo:{size:0}}}}},subtitle:{text:"",style:{display:"none"},},exporting:{enabled:false},legend:{enabled:false},tooltip:{enabled:false},xAxis:{lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",labels:{enabled:false},minorTickLength:0,tickLength:0,title:{text:""},stackLabels:{enabled:false},},yAxis:{lineWidth:0,gridLineWidth:0,minorGridLineWidth:0,lineColor:"transparent",labels:{enabled:false},minorTickLength:0,tickLength:0,title:{text:""},stackLabels:{enabled:false},},},series:[{marker:{enabled:false},color:"#ff8400",data:Y}]}};function K(aa,Y){if(Y==google.maps.places.PlacesServiceStatus.OK){for(var Z=0;Zm.insightChartConfig.getHighcharts().plotWidth){al=am.plotX+m.insightChartConfig.getHighcharts().plotLeft-an-20}else{al=am.plotX+m.insightChartConfig.getHighcharts().plotLeft+20}ap=am.plotY+m.insightChartConfig.getHighcharts().plotTop-20;return{x:al,y:ap}},padding:8,useHTML:true,shadow:false,boderWidth:0,borderColor:"#E7E7E8",backgroundColor:"#E7E7E8",formatter:function(){return"
"+m.yAxisLabelFormat(this.y)+"
"+aj[this.point.index]+""}};af={options:{chart:{type:"area",backgroundColor:"transparent",style:{fontFamily:"inherit",fontSize:"10px",},events:{load:function(){this.myTooltip=new Highcharts.Tooltip(this,this.options.tooltip)}},},title:{text:""},subtitle:{text:""},exporting:{enabled:false},legend:{enabled:false},credits:{enabled:false},tooltip:ae,xAxis:{allowDecimals:false,categories:ac,tickPixelInterval:180,labels:{align:"center",rotation:0,style:{fontSize:"12px",fontFamily:"Dinot_Medium",color:"#999",position:"releative",textOverflow:"none",width:"160px",whiteSpace:"nowrap",},},lineWidth:1,minorGridLineWidth:0,minorTickLength:0,tickLength:0,stackLables:{enabled:false},title:{text:"",},reversed:true,startOnTick:false,min:0.5,endOnTick:false,max:ac.length-0.8,minPadding:0,maxPadding:0,},yAxis:{visible:ad,title:"",allowDecimals:false,opposite:true,gridLineWidth:0,lineWidth:1,lineColor:"#DADADA",labels:{formatter:function(){return m.yAxisLabelFormat(this.value)}}},plotOptions:{series:{stickyTracking:false,events:{click:function(al){this.chart.myTooltip.refresh(al.point,al)},mouseOut:function(){this.chart.myTooltip.hide()}},point:{events:{mouseOver:function(){if(!ag){r()}ag=true}}}},area:{pointStart:0,color:"#735BA4",fillOpacity:1,marker:{enabled:ak,symbol:"circle",fillColor:"#C2AFD5",radius:Z,states:{hover:{lineWidth:0,enabled:true}}},},},},series:[{name:"Insights",data:ab,}]};m.insightChartConfig=af};m.generateCEOChart=function(ac,Y){var ae;var ab=[];var ah=[];angular.forEach(Y,function(ak,aj){ab.push(ak);ah.push(L("date")(aj,"dd MMM yy"))});var af=true;var ag={};var aa=15;var ai=false;var Z=8;if(userAgent=="Mobile"){af=true;ai=false;aa=10}var ad={animation:false,enabled:af,positioner:function(al,am,ak){var aj,an;if(ak.plotX+al>m.insightCEOChartConfig.getHighcharts().plotWidth){aj=ak.plotX+m.insightCEOChartConfig.getHighcharts().plotLeft-al-20}else{aj=ak.plotX+m.insightCEOChartConfig.getHighcharts().plotLeft+20}an=ak.plotY+m.insightCEOChartConfig.getHighcharts().plotTop-20;return{x:aj,y:an}},padding:8,useHTML:true,shadow:false,boderWidth:0,borderColor:"#E7E7E8",backgroundColor:"#E7E7E8",formatter:function(){return"
"+m.yAxisLabelFormat(this.y)+"
"+ah[this.point.index]+""}};ae={options:{chart:{type:"areaspline",backgroundColor:"transparent",style:{fontFamily:"inherit",fontSize:"10px",},events:{load:function(){this.myTooltip=new Highcharts.Tooltip(this,this.options.tooltip)}},},title:{text:""},subtitle:{text:""},exporting:{enabled:false},legend:{enabled:false},credits:{enabled:false},tooltip:ad,xAxis:{allowDecimals:false,categories:ac,tickPixelInterval:180,labels:{align:"center",rotation:0,style:{fontSize:"12px",fontFamily:"Dinot_Medium",color:"#999",textOverflow:"none",whiteSpace:"nowrap",},},lineWidth:1,minorGridLineWidth:0,minorTickLength:0,tickLength:0,stackLables:{enabled:false},title:{text:"",},overflow:"justify",reversed:true,minPadding:0,maxPadding:0,min:0.5,max:ac.length-0.8,startOnTick:false,endOnTick:false,},yAxis:{title:"",allowDecimals:false,opposite:true,gridLineWidth:0,min:0,max:100,tickInterval:50,lineWidth:1,lineColor:"#DADADA",labels:{formatter:function(){return this.value+"%"}}},plotOptions:{series:{stickyTracking:false,events:{click:function(aj){this.chart.myTooltip.refresh(aj.point,aj)},mouseOut:function(){this.chart.myTooltip.hide()}},},areaspline:{pointStart:0,color:"#23c6f4",fillOpacity:1,marker:{enabled:ai,symbol:"circle",fillColor:"#416986",radius:Z,states:{hover:{lineWidth:0,enabled:true}}},},},},series:[{name:"Insights",data:ab,}]};m.insightCEOChartConfig=ae};function A(Z){var Y=k(Z);if(Y!=null&&Y!=undefined&&Y!=""){m.mapAddress=googleStaticMapUrl+"¢er="+Y+"&markers=color:red%7C"+Y+"%7C&&zoom=15&size=594x190"}else{q.mapFound=false}return false}m.competitorDataNullCheck=false;m.competitorData=[];m.getCompanyUrl=function(Y,Z){return R.getSEOFriendlyCompanyProfileUrl(Y,R.getSEOFriendlyCompanyName(Z))};m.getCompanyNewsUrl=function(Y,Z){return R.getNewsSectionUrl(Y,R.getSEOFriendlyCompanyName(Z))};m.getEventsPageUrl=function(aa,Z,Y){var ab=R.getEventsPageURL(aa,Z,Y);return ab};m.getCompanyInfoUrl=function(Z,aa){var Y=R.getSEOFriendlyCompanyProfileUrl(Z,aa);return Y};m.closeThanksBanner=function(){m.showThanksBanner=false};G(function(){m.showThanksBanner=false},30000);function d(Z,aa,Y){p=new google.maps.Geocoder();var ab=new google.maps.LatLng(Z,aa);z=new google.maps.Map(document.getElementById("map"),{mapTypeId:google.maps.MapTypeId.ROADMAP,center:ab,zoom:Y})}function O(){if(q.mapFound==true){d(41.7475,-74.0872,15)}else{d(10.7475,-14.0872,1)}}window.addEventListener("load",function(){T(googleDynamicMapUrl+"&v=3.exp&libraries=places");I()});function T(Z){var Y=document.createElement("script");Y.type="text/javascript";Y.src=Z;document.body.appendChild(Y)}m.trackEPClickEvent=function(Y){var Z={};Z[n.CLICKED_ON]=Y;if(m.epClassName!=undefined&&m.epClassName!=null&&m.epClassName!=""){Z[n.EP_OPTIMIZELY_VARIATION]=m.epClassName}v.trackEvent(n.EVENTS_PAGE_INTERACTION,Z)};m.fetchNextDataCard=function(){m.isNewDC=false;m.showNewDCThanks=false;e++;if(e==m.eventsConst.DC_COUNT_TO_ENABLE_THANK_YOU){m.showDCSection=false;m.showDataCard=false;m.showThankyouMsg=false;m.showSpecialThanksMsg=true;f=false}else{m.showDCSection=false;m.showDataCard=false;m.showThankyouMsg=false;m.showLoading=true;m.handleThanksMsg=true;f=true}m.resultDcThankuInfo.logo="";return f};m.showMoreDCs=function(){m.showLoading=true;m.$broadcast("getMoreDCs");m.handleThanksMsg=false;m.showSpecialThanksMsg=false;m.showFlyWheelThanksMessage=false};m.getDataCardInfo=function(Y){m.resultDcThankuInfo={};m.resultDCInfo={};if(Y.thank_you_info!=null&&Y.thank_you_info!=undefined){m.resultDCInfo=Y.data_card_info;m.resultDcThankuInfo=Y.thank_you_info}};m.handleDCInfo=function(Y,Z,aa){m.isNewDC=true;e++;m.dcThanksInfo={};m.nDCThanksInfo={};m.resultDcThankuInfo={};m.resultDCInfo={};if(e==m.eventsConst.DC_COUNT_TO_ENABLE_THANK_YOU){m.dcThanksInfo=Y;m.nDCThanksInfo=Z;m.formattedCompName=aa;m.showDCSection=false;m.showDataCard=false;m.showThankyouMsg=false;m.showNewDCThanks=false;m.handleThanksMsg=false;m.noMoreDCAndEndText=false;m.showSpecialThanksMsg=true;m.$broadcast("specialThanksMsgShown")}else{if(Z!=null&&Z!=undefined){m.dcThanksInfo=Y;m.nDCThanksInfo=Z;m.formattedCompName=aa;m.showSpecialThanksMsg=false;m.showNewDCThanks=true;m.handleThanksMsg=true;m.$broadcast("showDatacard")}}};function J(Y){var Z="";if(Y.votedOption=="GOOD"){Z="positive"}else{if(Y.votedOption=="NEUTRAL"){Z="neutral"}else{if(Y.votedOption=="BAD"){Z="negative"}}}return Z}m.handleFlyWheelDCThanks=function(aa){m.showLoading=false;m.showThankyouMsg=false;m.showSpecialThanksMsg=false;m.showDataCard=false;m.handleThanksMsg=false;m.showFlyWheelThanksMessage=aa.showFlyWheelThanksMessage;m.flyWheelCompanyData=aa;var Z=J(aa);var Y={};if(aa.flyWheelVariation=="SHOW_TEXTBOX"){Y.Variation="text input"}else{if(aa.flyWheelVariation=="SHOW_BUTTON"){Y.Variation="button"}}Y["TYC Text"]=Z;v.trackEvent("Referral Test Seen",Y)};m.handleFlywheelTextbox=function(ab,Y){var aa={};var Z=J(ab);aa["TYC Text"]=Z;aa["Email Entered"]=Y;if(Y!=""&&Y!=null&&Y!=undefined){v.trackEvent("Referral Test Entered Email",aa)}m.showMoreDCs()};m.openMailClient=function(ac){var ab=J(ac);var ad="I'm wondering what you think of "+ac.ceoFirstName+" "+ac.ceoLastName;var Z="Hi Friend! \n\nI just gave "+ac.ceoFirstName+" "+ac.ceoLastName+" a "+ab+" CEO rating on Owler.";Z+=" I was wondering what you think? You can vote here: \n\n";Z+="https://www.owler.com/iaApp/"+ac.companyId+"/"+ac.companyName+"-company-profile?utm_campaign=reftest";var Y="mailto:user@example.com?subject="+ad+"&body="+encodeURIComponent(Z);window.location.href=Y;var aa={};aa["TYC Text"]=ab;v.trackEvent("Referral Test Button Press",aa);setTimeout(function(){m.showMoreDCs()},500)};m.$on("dataCardAvailable",function(){if(m.handleThanksMsg){m.showThankyouMsg=true}m.showSpecialThanksMsg=false;m.noMoreDCAndEndText=false;m.showDataCard=true;m.isDataCardAvailable=true;m.showLoading=false;m.showDCSection=true});m.$on("noDataCardAvailable",function(){m.showLoading=false;m.showThankyouMsg=false;m.showSpecialThanksMsg=false;m.showDataCard=false;m.handleThanksMsg=false;m.noMoreDCAndEndText=true});m.isTrackedCompanySectionScroll=false;m.isTrackedTimelineSectionScroll=false;m.isTrackedCompetitorSectionScroll=false;function a(){m.pixelsScrolled=0;w.on("scroll",function(){m.$apply(function(){m.pixelsScrolled=Q.scrollY});var Y={};Y[n.COMPANY_NAME]=companyName;m.companySectionOffsetPos=angular.element(document.getElementById("company-data-section")).prop("offsetTop");if(m.pixelsScrolled>m.companySectionOffsetPos){if(!m.isTrackedCompanySectionScroll){Y[n._1_3_SCROLL]=n.EP_1_3_SCROLL;v.trackEvent(m.eventsPageViewedType,Y);m.isTrackedCompanySectionScroll=true}m.timelineSectionOffsetPos=angular.element(document.getElementById("timeline-stories")).prop("offsetTop");if(m.pixelsScrolled>m.timelineSectionOffsetPos){if(!m.isTrackedTimelineSectionScroll){Y[n._1_2_SCROLL]=n.EP_1_2_SCROLL;v.trackEvent(m.eventsPageViewedType,Y);m.isTrackedTimelineSectionScroll=true}m.competitorSectionOffsetPos=angular.element(document.getElementById("competitor-data-section")).prop("offsetTop")-180;if(m.pixelsScrolled>m.competitorSectionOffsetPos){if(!m.isTrackedCompetitorSectionScroll){Y[n._2_3_SCROLL]=n.EP_2_3_SCROLL;v.trackEvent(m.eventsPageViewedType,Y);m.isTrackedCompetitorSectionScroll=true}}}}})}m.chartFloatingLeft=false;m.scrollTheChart=function(){m.chartFloatingLeft=!m.chartFloatingLeft};function H(ad,Y){var ac="";var ab=new Date(ad);var aa=new Date(Y);var Z=aa.getMonth()-ab.getMonth()+(12*(aa.getFullYear()-ab.getFullYear()));if(Z==0||Z==1){var ae=24*60*60*1000;var ac=Math.round(Math.abs((aa.getTime()-ab.getTime())/(ae)));ac=Math.abs(ac);if(ac==0){return"Today"}else{if(ac==1){return"Yesterday"}else{if(ac>=2&&ac<=6){return"This week"}else{return L("date")(ab,"MMM yy")}}}}else{return L("date")(ab,"MMM yy")}return L("date")(ab,"MMM yy")}function l(ad,Y){var ac="";var ab=new Date(ad);var aa=new Date(Y);var Z=aa.getMonth()-ab.getMonth()+(12*(aa.getFullYear()-ab.getFullYear()));if(Z==0||Z==1){var ae=24*60*60*1000;var ac=Math.round(Math.abs((aa.getTime()-ab.getTime())/(ae)));ac=Math.abs(ac);if(ac==0){return"Today"}else{if(ac==1){return"Yesterday"}else{if(ac>=2&&ac<=6){return"This week"}else{return L("date")(ab,"dd MMM yy")}}}}else{return L("date")(ab,"dd MMM yy")}return L("date")(ab,"dd MMM yy")}function c(Y,aa){var Z=new Date(Y);Z.setDate(Z.getDate()-aa);return L("date")(Z,"dd MMM yy")}function U(ac,ab,Z){chartXAxisStartLabel=H(ac,Z);var aa=ab.length-1;var Y={};if(chartXAxisStartLabel=="Today"||chartXAxisStartLabel=="Yesterday"||chartXAxisStartLabel=="This week"){Y={"2":[chartXAxisStartLabel,"1 Week ago","2 Weeks ago"],"3":[chartXAxisStartLabel,"1 Week ago","2 Weeks ago","3 Weeks ago"],"4":[chartXAxisStartLabel,"","2 Weeks ago","","4 Weeks ago"],"5":[chartXAxisStartLabel,"","","","","5 Weeks ago"],"6":[chartXAxisStartLabel,"","2 Weeks ago","","4 Weeks ago","","6 Weeks ago"],"7":[chartXAxisStartLabel,"","","","","","","7 Weeks ago"],"8":[chartXAxisStartLabel,"","","","1 Month ago","","","","2 Months ago"],"9":[chartXAxisStartLabel,"","","","1 Month ago","","","","2 Months ago",""],"10":[chartXAxisStartLabel,"","","","1 Month ago","","","","2 Months ago","",""],"11":[chartXAxisStartLabel,"","","","1 Month ago","","","","2 Months ago","","",""],"12":[chartXAxisStartLabel,"","","","1 Month ago","","","","2 Months ago","","","","3 Months ago"]}}else{Y={"2":[c(ac,0),c(ac,7),c(ac,14)],"3":[c(ac,0),c(ac,7),c(ac,14),c(ac,21)],"4":[c(ac,0),"",c(ac,14),"",c(ac,28)],"5":[c(ac,0),"","","","",c(ac,35)],"6":[c(ac,0),"",c(ac,14),"",c(ac,28),"",c(ac,42)],"7":[c(ac,0),"","","","","","",c(ac,49)],"8":[c(ac,0),"","","",c(ac,28),"","","",c(ac,56)],"9":[c(ac,0),"","","","","","","",c(ac,56),""],"10":[c(ac,0),"","","","","","","",c(ac,56),"",""],"11":[c(ac,0),"","","","","","","",c(ac,56),"","",""],"12":[c(ac,0),"","","",c(ac,28),"","","",c(ac,56),"","","",c(ac,84)]}}return categories=Y[aa]}function E(Z){if(Z.competitor_ceos!=null&&Z.competitor_ceos!=undefined&&Z.insights_timeline_data[0]!=null&&Z.insights_timeline_data[0]!=undefined){m.competitor_title=Z.competitor_title;m.competitor_ceos=Z.competitor_ceos;var Y={};Y.company_id=companyId;Y.company_name=companyName;Y.company_logo=eventsPageCompanyLogo;Y.ceo_first_name=m.ceo_first_name;Y.ceo_last_name=m.ceo_last_name;Y.ceo_picture=m.ceo_picture;Y.approval_rating=Z.insights_timeline_data[0];m.competitor_ceos.push(Y)}}function t(ah,Z,ac){chartXAxisStartLabel=H(ah,ac);var aa=[];var ad=Object.keys(Z);var Y=ad[0];var af="";ad.reverse();var ab=ad.length-1;var ae=Math.floor(ab/7)*7;var ag={"7":[chartXAxisStartLabel,"1 week ago"],"14":[chartXAxisStartLabel,"1 week ago","2 weeks ago"],"21":[chartXAxisStartLabel,"1 week ago","2 weeks ago","3 weeks ago"],"28":[chartXAxisStartLabel,"","2 weeks ago","","4 weeks ago"],"35":[chartXAxisStartLabel,"","","","","5 weeks ago"],"42":[chartXAxisStartLabel,"","2 weeks ago","","4 weeks ago","","6 weeks ago"],"49":[chartXAxisStartLabel,"","","","","","","7 weeks ago"],"56":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago"],"63":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago",""],"70":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago","",""],"77":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago","","",""],"84":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago","","","","3 months ago"],"91":[chartXAxisStartLabel,"","","","1 month ago","","","","2 months ago","","","","3 months ago"]};angular.forEach(ad,function(ak,aj){if(Y!=ak){var al="";if(ae<=50&&(chartXAxisStartLabel=="Today"||chartXAxisStartLabel=="Yesterday"||chartXAxisStartLabel=="This week")){al=s(chartXAxisStartLabel,ak,Y)}else{al=y(chartXAxisStartLabel,ak,Y)}var ai=al;if((af==ai)||((ai.indexOf("month")>0||ai.indexOf("week")>0)&&(ag[ae]&&ag[ae].indexOf(ai)<0))){aa.push("")}else{aa.push(ai)}af=ai}});aa.push(chartXAxisStartLabel);aa.reverse();return categories=aa}function y(aa,Y,ag){var ae=new Date(parseInt(Y,10));var ad=new Date(parseInt(ag,10));ae.setHours(0,0,0,0);ad.setHours(0,0,0,0);var af=24*60*60*1000*7*4;var ab=Math.round(Math.abs((ae.getTime()-ad.getTime())/(af)));var Z=C(ad,ab);var ac="";if(ae.getTime()==Z.getTime()){if(aa=="Today"||aa=="Yesterday"||aa=="This week"){if(ab===1){ac=ab+" month ago"}else{ac=ab+" months ago"}}else{ac=c(ae.getTime(),0)}}return ac}function C(Y,aa){var Z=new Date(Y);Z.setDate(Z.getDate()-(aa*4*7));return Z}function s(aa,Y,ag){var af=new Date(parseInt(Y,10));var ae=new Date(parseInt(ag,10));af.setHours(0,0,0,0);ae.setHours(0,0,0,0);var ac=24*60*60*1000*7;var ab=Math.round(Math.abs((af.getTime()-ae.getTime())/(ac)));var Z=N(ae,ab);var ad="";if(af.getTime()==Z.getTime()){if(aa=="Today"||aa=="Yesterday"||aa=="This week"){if(ab===1){ad=ab+" week ago"}else{ad=ab+" weeks ago"}}else{ad=c(af.getTime(),0)}}return ad}function N(Y,aa){var Z=new Date(Y);Z.setDate(Z.getDate()-(aa*7));return Z}m.yAxisLabelFormat=function(ab){var Z,ac=["K","M","B","T","P","E"],aa=6;if(ab>=1000){while(aa--&&Z===undefined){multi=Math.pow(1000,aa+1);if(ab>=multi&&ac[aa]!==null){var Y=(ab/multi);var ad=Math.round(Y*100)/100;Z=ad+ac[aa]}}}return(Z?Z:ab)};function I(){var ab={};m.isInsightEventsPage=false;if(eventsPageCategory=="INSIGHT"){m.isInsightEventsPage=true;m.eventsPageViewedType=n.EVENTS_PAGE_VIEWED_INSIGHT;ab[n.EVENTS_PAGE_TYPE]="Insight"}else{m.eventsPageViewedType=n.EVENTS_PAGE_VIEWED_NEWS;ab[n.EVENTS_PAGE_TYPE]="News"}m.timeline_data=[];if(m.isInsightEventsPage&&insightFeedType!="GENERIC"){var Z=M.getInsightTimelineData(feedId,companyId,insightType);Z.then(function(ac){if(ac.data&&ac.data!=null&&ac.data.insight_date!=null&&ac.data.insight_date!=undefined){if(ac.data.top_feeds!=null){m.relevant_news_data_loaded=true;m.insight_frequency=ac.data.checkin_frequency;m.insight_outcome=ac.data.outcome;m.relatedInsightStories=ac.data.top_feeds}m.insight_date=ac.data.insight_date;if(ac.data.insights_timeline_data!=null&&ac.data.insights_timeline_data!=undefined){if(insightType.toUpperCase()==="CEO"){m.ceo_first_name=ac.data.ceo_first_name;m.ceo_last_name=ac.data.ceo_last_name;m.ceo_picture=ac.data.ceo_picture;E(ac.data)}m.current_date=ac.data.current_date;m.latestInsight=m.yAxisLabelFormat(ac.data.insights_timeline_data[0]);var ae=ac.data.insights_timeline_data;angular.forEach(ae,function(ah,ag){var ai=new Date(m.insight_date);if(ag>0){ai.setDate(ai.getDate()-(7*(ag)))}dateToolTip=L("date")(ai,"MM/dd/yy");m.timeline_data.push([ah,dateToolTip])});var af=H(m.insight_date,m.current_date);var ad={};m.seriresDataLength=m.timeline_data.length;m.ceo_data=ac.data.livemetadata;if(insightType.toUpperCase()==="CEO"){if(m.seriresDataLength>=7){setTimeout(function(){ad=t(m.insight_date,m.ceo_data,m.current_date);m.generateCEOChart(ad,m.ceo_data)},200)}}else{if(m.seriresDataLength>=3&&m.seriresDataLength<=13){setTimeout(function(){ad=U(m.insight_date,m.timeline_data,m.current_date);m.generateChart(ad,m.timeline_data)},200)}}}}})}m.epClassName=document.getElementById("event-whole-wraper").className;if(m.epClassName!=undefined&&m.epClassName!=null&&m.epClassName!=""){try{_gaq.push(["_trackEvent",b.EVENTS_PAGE,m.epClassName])}catch(aa){}ab[n.EP_OPTIMIZELY_VARIATION]=m.epClassName}else{document.getElementById("event-whole-wraper").className="EP_varA_Null"}ab[n.CLUSTER_ID]=clusterId;ab[n.COMPANY_NAME]=companyName;if(isPrerender!=undefined&&!isPrerender){v.trackEvent(n.EVENTS_PAGE_VIEWED,ab);v.trackEvent(m.eventsPageViewedType,ab)}m.companyId=companyId;D=M.getCompanyDetails(m.companyId);D.then(function(am){m.about_data_loaded=true;var ae=am.data;m.companySummary=ae.company_summary;m.distinctFollowers=ae.distinctFollowersCount;m.topFollowersCountCeoLoSd=ae.topFollowersCountCeoLoSd;m.topFollowersCountEmpRev=ae.topFollowersCountEmpRev;m.topFollowersCountCompSec=ae.topFollowersCountCompSec;if(ae.company_info!=null&&ae.company_info!=undefined){m.companyDetails=ae.company_info.company_details}if(ae.ceo!=null&&ae.ceo!=undefined){m.ceoData=ae.ceo.current_ceo}if(ae.insight_details!=null&&ae.insight_details!=undefined){var ag=ae.insight_details[companyId];if(ag!=null&&ag!=undefined){m.ceoInsightDetails=ag.CEO;if(m.ceoInsightDetails!=null&&m.ceoInsightDetails!=undefined){var al=m.ceoInsightDetails.insight_info;if(al!=null&&al!=undefined){m.insightId=al.id;m.insightText=al.insightText;m.insightStatus=al.status;m.seoEligible=al.seoEligible}}}}if(ae!=null&&ae!=undefined){if(ae.insight_details!=null&&ae.insight_details!=undefined){m.insightDetails=ae.insight_details[companyId]}m.revenueInsightStatus="";m.employeeInsightStatus="";var ah={};var ad={};if(m.insightDetails.REVENUE!=undefined&&m.insightDetails.REVENUE!=null){ah=m.insightDetails.REVENUE.insight_info;if(ah!=undefined&&ah!=null){m.revenueInsightId=ah.id;m.revenueInsightText=ah.insightText;m.revenueInsightStatus=ah.status;m.revenueSeoEligible=ah.seoEligible}}if(m.insightDetails.EMPLOYEE!=undefined&&m.insightDetails.EMPLOYEE!=null){ad=m.insightDetails.EMPLOYEE.insight_info;if(ad!=undefined&&ad!=null){m.employeeInsightId=ad.id;m.employeeInsightText=ad.insightText;m.employeeInsightStatus=ad.status;m.employeeSeoEligible=ad.seoEligible}}m.revenueEmpHistory=ae.revenueEmpHistory;m.chartData=ae.revenueEmpHistory.chart_data}var ai=[];if(m.chartData.revenue!=null&&m.chartData.revenue!=undefined){if(m.chartData.revenue.historicalData.length>1){for(var af=0;af1){for(var af=0;af0){m.publishersMapDataFound=true;angular.forEach(aq.data,function(av){var at=av;var ar=k(at.address);var au=at.articles_count;x.push({address:ar,bubblesCount:au})});var ap=document.getElementById("map_canvas");if(ap!=null){setTimeout(function(){Y(x)},100)}}var ao=M.getTimelineStories();ao.then(function(ar){m.timeline_data_loaded=true;m.timeLineStories=ar.data;getCompetitorData=M.getCompetitorDetails(companyId);getCompetitorData.then(function(at){m.competitor_data_loaded=true;if(at.data!=null&&at.data!=undefined&&at.data.length>0){m.competitorDataNullCheck=true;angular.forEach(at.data,function(au){angular.forEach(au.company_info,function(av){m.competitorData.push(av)})})}relatedStoriesPromise=M.getRelatedStories(clusterId);relatedStoriesPromise.then(function(au){m.similar_stories_data_loaded=true;if(au.data!=null&&au.data!=undefined&&au.data.length>0){m.relatedStories=au.data}m.all_events_page_sections_loaded=true;if(m.isUserloggedIn){M.trackUserEngagement(m.companyId)}});if(isPrerender!=undefined&&!isPrerender){a()}})})})})});function Y(ah){af(ah);function ac(al,am,ai,aj,ak){this.latlng_=am;this.setMap(ai);this.mapArrayContents=aj;this.bubbleCount=ak;this.lat=al}ac.prototype=new google.maps.OverlayView();ac.prototype.draw=function(){var am=this;var an=this.div_;var al=this.markerId_;if(!al){this.markerId_=this.mapArrayContents.id}if(!an){an=this.div_=document.createElement("DIV");an.style.border="none";an.style.position="absolute";an.style.paddingLeft="0px";an.style.cursor="pointer";var ak=document.createElement("div");ak.innerHTML='
';an.appendChild(ak);var aj=this.getPanes();aj.overlayImage.appendChild(an)}var ai=this.getProjection().fromLatLngToDivPixel(this.latlng_);if(ai){if(this.lat>0){if(this.bubbleCount<=20){an.style.left=ai.x-33+"px";an.style.top=ai.y+110+"px"}else{if(this.bubbleCount<=40){an.style.left=ai.x-(this.bubbleCount)+"px"}else{an.style.left=ai.x-60+"px"}an.style.top=ai.y+90+"px"}}else{an.style.left=ai.x-35+"px";an.style.top=ai.y+15+"px"}}};ac.prototype.remove=function(){if(this.div_){this.div_.parentNode.removeChild(this.div_);this.div_=null}};ac.prototype.getPosition=function(){return this.latlng_};function ag(){var aj=$("#map_canvas").width();var ai=$("#map_canvas").height();X=new google.maps.ImageMapType({getTileUrl:function(){return APPBASEURL+"/images/world_bg.png"},tileSize:new google.maps.Size(aj,ai),isPng:true,minZoom:0,maxZoom:0,name:"Gall-Peters"});X.projection={fromLatLngToPoint:function(al){var ak=al.lat()*Math.PI/180;return new google.maps.Point(aj*(0.5+al.lng()/360),ai*(0.5-0.5*Math.sin(ak)))},fromPointToLatLng:function(al,an){var ak=al.x/aj;var am=Math.max(0,Math.min(1,al.y/ai));return new google.maps.LatLng(Math.asin(1-2*am)*180/Math.PI,-180+360*ak,an)}}}function af(al){var ak={zoom:2,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,backgroundColor:"none",mapTypeControl:false,draggable:false,scaleControl:false,scrollwheel:false,navigationControl:false,streetViewControl:false,zoomControl:false,keyboardShortcuts:false,};publishersMap=new google.maps.Map(document.getElementById("map_canvas"),ak);ag();publishersMap.mapTypes.set("gallPeters",X);publishersMap.setMapTypeId("gallPeters");var aj=new google.maps.LatLngBounds();for(var ai=0;ai=7){return 80}}}}}}}}function ad(am,ai,aj){var ak=am.address;var al=ae(am.bubblesCount);var an=ak.replace("&","-");$.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+an,null,function(aq){if(aq.status=="OK"){var at=aq.results[0].geometry.location;if(at!=null&&at!=undefined){var ar=Math.round(at.lat*1000000)/1000000;var ap=Math.round(at.lng*1000000)/1000000;var au=new google.maps.LatLng(ar,ap);var ao=new ac(ar,au,ai,ak,al);aj.extend(au)}}})}}}}]);eventsApp.service("eventsService",["$http","Constants",function(d,a){var b=a.apiUrl;var c={};this.getCompanyDetails=function(e){var f=b+"/owlerAjax/getEventPageCPInfo.htm?companyId="+e;c=d.get(f);return c};this.getCompetitorDetails=function(e){var f=b+"/owlerAjax/getEventPageCompetitorInfo.htm?companyId="+e;var g=d.get(f);return g};this.getClusterFeeds=function(e){var f=d.get(b+"/feeds/clusterFeeds.htm?clusterId="+e);return f};this.getRelatedStories=function(e){var f=d.get(b+"/owlerAjax/getRelatedStories.htm?clusterId="+e);return f};this.getPublishersMapData=function(e){var f=d.get(b+"/owlerAjax/getPublisherHQAndFeedCount.htm?clusterId="+e);return f};this.getTimelineStories=function(){var e=d.get(b+"/owlerAjax/getEventPageTimeLineInfo.htm?companyId="+companyId+"&feedTime="+feedTime);return e};this.trackUserEngagement=function(e){var f=d.get(b+"/trackUserEngagement.htm?companyID="+e);return f};this.getInsightTimelineData=function(f,e,h){var g=d.get(b+"/owlerAjax/getInsightTimeLineData.htm?feedId="+f+"&numberOfDataPoints="+13+"&companyId="+e+"&insightType="+h);return g}}]);var dataCardApp=angular.module("dataCardApp",["commonsApp"]);dataCardApp.directive("datacard",["$document","$timeout","Constants","commonsAppServices","dataCardService","$window","$filter","urlUtilService",function(h,e,d,a,c,g,f,b){return{restrict:"E",replace:true,scope:{callbackFn:"&",calltoFn:"&",callDataHandlerFn:"&",callbackFlywheelFn:"&",callbackDcFn:"&",datacardSource:"@",companyId:"@",companyName:"@",companyUrl:"@",showDesc:"@",datacardTypes:"=",showDefaultThanks:"@",showCompanyUrl:"@",userAgentName:"@",},link:function(u,n,t){u.dataCardExist=false;u.showCompetitorDataCard=false;u.showRevenueDataCard=false;u.showLikelyOutcomeDataCard=false;u.showStockDirectionDC=false;u.showCeoDC=false;u.showSectorDC=false;u.showEmployeeDC=false;u.showThankyouCard=false;u.showDesc=false;u.showDefaultThanks=false;u.dataCardInfo={};u.showCompanyUrl=false;u.showTwoOptions=false;u.showThreeOptions=false;u.isNDC=false;u.showNewDC=false;u.isSpecialThanksMsgShown=false;u.dcInfo={};u.dcInfoIndex=0;u.dcDataInfo=[];u.dcData={};u.dcDataInfoLength=0;u.questionText1="";u.questionText2="";u.questionText3="";t.$observe("datacardSource",function(v){if(!v){u.datacardSource=""}});t.$observe("companyId",function(v){if(!v){u.companyId=""}});t.$observe("companyName",function(v){if(!v){u.companyName=""}});t.$observe("companyUrl",function(v){if(!v){u.companyUrl=""}});t.$observe("showDesc",function(v){if(v){u.showDesc=v}});t.$observe("callbackFn",function(v){if(!v){u.callbackFn=function(){}}});t.$observe("calltoFn",function(v){if(!v){u.calltoFn=function(){}}});t.$observe("callDataHandlerFn",function(v){if(!v){u.callDataHandlerFn=function(){}}});t.$observe("callbackFlywheelFn",function(v){if(!v){u.callbackFlywheelFn=function(){}}});t.$observe("callbackDcFn",function(v){if(!v){u.callbackDcFn=function(){}}});t.$observe("showDefaultThanks",function(v){if(v){u.showDefaultThanks=v}});t.$observe("showCompanyUrl",function(v){if(v){u.showCompanyUrl=true}});t.$observe("userAgentName",function(v){if(!v){u.userAgentName=""}});var o={COMPETITOR:function(w,v,x){w={voteOption:v,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,fetchNextDC:x,dataCardTypes:u.datacardTypes,};return w},REVENUE:function(w,v,x){w={voteOption:v,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,fetchNextDC:x,dataCardTypes:u.datacardTypes,};return w},CEO_APPROVAL:function(x,w,y,v){x={voteOption:w,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,insightOption:v,fetchNextDC:y,dataCardTypes:u.datacardTypes,};return x},STOCK_DIRECTION:function(x,w,y,v){x={voteOption:w,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,insightOption:v,fetchNextDC:y,dataCardTypes:u.datacardTypes,};return x},COMPANY_LIKELY_OUTCOME:function(x,w,y,v){x={voteOption:w,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,insightOption:v,fetchNextDC:y,dataCardTypes:u.datacardTypes,};return x},SECTOR:function(w,v,x){w={voteOption:v,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,fetchNextDC:x,dataCardTypes:u.datacardTypes,};return w},EMPLOYEE_HEAD_COUNT:function(w,v,x){w={voteOption:v,subjectCompanyId:u.companyId,dataCardSource:u.datacardSource,dataCardInfo:u.dataCardInfo,fetchNextDC:x,dataCardTypes:u.datacardTypes,};return w}};var j=function(x,v,w){x={userId:u.dcData.memberId,companyId:u.dcData.companyId,type:u.dcData.dcType,questionSpecificId:u.dcData.questionSpecificId,optionValue:v,dcSource:u.datacardSource,templateId:u.dcData.templateId,skipped:false,idontKnow:w};return x};var p=function(){var v={userId:u.dcData.memberId,companyId:u.dcData.companyId,type:u.dcData.dcType,event:"VIEWED",questionSpecificId:u.dcData.questionSpecificId,dcSource:u.datacardSource};return v};var r=function(v){return f("checkCompanyEndsWithS")(v)};u.saveDataCard=function(z,y){var F={};try{F.newDc=u.isNDC;if(typeof z==="string"){F.testOption=z}else{if(typeof z==="object"){F.testOption=z.option_value}else{F.testOption=z+""}}}catch(E){F.testOption="errorOption"}try{trackMixpanelEvent("DC-Issue-Tracking",F)}catch(E){}var v=false;var x={};var C={};var w="";var D=false;var B="";u.flyWheelCEOThanksMessage="";k();if(!u.isNDC){u.lastQuestionType=u.dataCardWholeInfo.data_card_info.questionType;if(u.lastQuestionType=="CEO_APPROVAL"&&u.dataCardWholeInfo.isFlyWheelEligible&&u.userAgentName=="Desktop"){v=false;if(z=="GOOD"){u.flyWheelCEOThanksMessage="91% of your colleagues at "+u.dataCardInfo.companyName+" agreed with you, while just 77% of your competitors felt the same way."}else{if(z=="NEUTRAL"){u.flyWheelCEOThanksMessage="33% of your colleagues at "+u.dataCardInfo.companyName+" agreed with you, while 41% of your competitors felt the same way."}else{if(z=="BAD"){u.flyWheelCEOThanksMessage="11% of your colleagues at "+u.dataCardInfo.companyName+" agreed with you, while 26% of your competitors felt the same way."}}}if(u.dataCardWholeInfo.flyWheelVariation==0){u.flyWheelVariation="SHOW_TEXTBOX"}else{if(u.dataCardWholeInfo.flyWheelVariation==1){u.flyWheelVariation="SHOW_BUTTON"}}var A={};A={dcThanksMessage:u.flyWheelCEOThanksMessage,flyWheelVariation:u.flyWheelVariation,showFlyWheelThanksMessage:true,companyName:u.dataCardInfo.companyName,ceoFirstName:u.dataCardInfo.data.ceo_first_name,ceoLastName:u.dataCardInfo.data.ceo_last_name,companyId:u.dataCardInfo.companyId,votedOption:z};u.callbackFlywheelFn({flyWheelDcData:A})}else{if(!u.showDefaultThanks){v=u.callbackFn()}else{u.showThankyouCard=true}}x=o[u.dataCardInfo.questionType](x,z,v,y);var G=c.saveDataCardResponse(x);G.then(function(H){if(v){data=H.data;u.dataCardWholeInfo=data;u.calltoFn({resultData:data});if(data.data_card_info!=null&&data.data_card_info!=undefined){if(data.data_card_info.newDCJsonObject!=null&&data.data_card_info.newDCJsonObject!=undefined){l(H)}else{u.isNDC=false;u.$emit("dataCardAvailable");s(data)}}else{u.$emit("noDataCardAvailable")}}else{u.dataCardExist=false}})}else{if(z=="DONT_KNOW"){x=j(x,z,true);w=z;D=true}else{x=j(x,z.option_value,false);w=z.thankyou_text;D=false}c.saveDataCardResponse(x,u.isNDC);C={isNDC:u.isNDC,nDCThanksText:w,showDcIdk:D};B=r(u.dcData.tycInfo.companyName);if(u.dcInfoIndex0){u.$emit("dataCardAvailable");s(w)}else{u.$emit("noDataCardAvailable")}}}q();a.getTemplateLoader("dataCard.html",d.cdnFullPath+"scripts/angular/dataCard/templates/dataCard.html")(n,u)}}}]);dataCardApp.service("dataCardService",["$http","Constants",function(c,a){var b=a.apiUrl;this.getDataCard=function(e){var d=c.post(b+"/getDataCard.htm",e);return d};this.saveDataCardResponse=function(f,d){if(d){var e=c.post(b+"/storeWebDatacardResponse.htm",f)}else{var e=c.post(b+"/storeWebDataCardResponse.htm",f);return e}};this.sendViewedEvent=function(e){var d=c.post(b+"/storeDatacardUserHistory.htm",e);return d}}]);