(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.controller("interstitialPopupController",["$scope","$http","Constants",function(a,f,b){var d=getUrlParameter("reg_src");var c=b.apiUrl;a.close=function(){a.type=undefined};if(d=="OBS-2"){var e=f.get(c+"/obs/welcome-msg-details.htm");e.then(function(g){if(g.data){a.name=g.data.name;a.count=g.data.count;if(a.name&&a.count){a.msgType="employer";a.type="OBS";return}}a.msgType="generic";a.type="OBS"},function(g){a.msgType="generic";a.type="OBS"})}}]);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(v,w,y){var x=t.get(b+"/followCompany.htm?company_id="+v+"&following="+w);var z=1;var u="";var A={};A["Company Id"]=v;if(currentPage!=undefined&¤tPage!=null){u=currentPage}if(!w){z=-1;if(y!=undefined&&y!=null&&y!=""){A["Company Unfollowed from"]=y}else{A["Company Unfollowed from"]=u}mixpanel.people.increment("Followed Companies Count",-1)}else{if(w){if(y!=undefined&&y!=null&&y!=""){A["Company Followed from"]=y}else{A["Company Followed from"]=u}mixpanel.people.increment("Followed Companies Count",1)}}trackMixpanelEvent("User Follow/Unfollow Company",A);return x};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.saveWeighInResponse=function(w,u,v){var x=t.get(b+"/pollsandinsights/saveweighinresponse/"+w+"/"+u+"/"+v+".htm");return x};this.getWeighInResponse=function(u){var v=t.get(b+"/pollsandinsights/getweighinresponse/"+u+".htm");return v};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};this.getcustomSnapshotURL=function(u,v){if(u&&u!="null"&&u!=""){return u+"."+v}else{return v+"/snapshot/"}};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","notificationApp"];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"}});var notificationApp=angular.module("notificationApp",["commonsApp","angular-inview"]);notificationApp.constant("notificationConstants",{FEED_COUNT:10,FOLLOW_INSIGHT:"FOLLOW_INSIGHT",GENERIC_MSG:"GENERIC_MSG",PROMOTIONAL_MSG:"PROMOTIONAL_MSG",TIME_INTRVAL_TO_FETCH_NOTIFICATIONS:180000});notificationApp.directive("notification",["$document","$interval","Constants","notificationConstants","commonsAppServices","notificationService","mixpanelService",function(f,e,b,g,a,d,c){return{restrict:"E",templateUrl:b.cdnFullPath+"scripts/angular/commons/modules/notification/notification.html",replace:true,link:function(k,j,h){k.memberId=userId;k.notificationConsts=g;k.appBaseURL=b.apiUrl;k.enableNotification=false;k.showNotifications=false;k.showSeeMore=false;k.notificationFeeds=[];k.notificationFeedsCount=0;k.notificationCount=0;k.getNotifications=function(){var l=d.getNotificationsForUser(k.memberId,k.notificationConsts.FEED_COUNT);e(function(){k.fetchFeedsUpdate()},k.notificationConsts.TIME_INTRVAL_TO_FETCH_NOTIFICATIONS);l.then(function(m){var n=m;if(n!=null&&n!=undefined&&Object.keys(n).length>0){if(n.feedcardResponse!=null&&n.feedcardResponse!=undefined){k.notificationCount=n.notificationCount;k.notificationFeeds=n.feedcardResponse;k.notificationFeedsCount=k.notificationFeeds.length;angular.forEach(k.notificationFeeds,function(o){if(o.interactionCount>0){o.isInteracted=true}else{o.isInteracted=false}o.isSeenByUser=false});k.handleShowingSeeMore(n.feedcardResponse.length);k.isNotificationAvailable=true}else{k.isNotificationAvailable=false}}else{k.isNotificationAvailable=false}k.enableNotification=true},function(m){k.enableNotification=false})};k.getMoreNotifications=function(){var l=d.getPrevNotificationsForUser(k.memberId,k.notificationConsts.FEED_COUNT,k.notificationFeeds[k.notificationFeedsCount-1].id);l.then(function(n){var o=n.data;if(o!=null&&o!=undefined&&Object.keys(o).length>0){if(o.feedcardResponse!=null&&o.feedcardResponse!=undefined){var m=o.feedcardResponse;angular.forEach(m,function(p){if(p.interactionCount>0){p.isInteracted=true}else{p.isInteracted=false}p.isSeenByUser=false;k.notificationFeeds.push(p)});k.notificationFeedsCount=k.notificationFeeds.length;k.handleShowingSeeMore(m.length)}}else{k.showSeeMore=false}})};k.showNotificationPopup=function(){if(k.showNotifications){k.showNotifications=false}else{k.showNotifications=true;d.resetNotificationAlertCount();k.notificationCount=0;c.trackEvent("Notification Icon Clicked")}};k.hideNotificationPopup=function(){k.showNotifications=false};k.handleUserInteraction=function(m){if(!m.isInteracted){var l=[];l.push(m.id);d.updateNotificationInteractCount(l,k.memberId);m.isInteracted=true}};k.followCompany=function(m,l){a.followCompany(m.additionalData.company_id,l,"Notification Feed").then(function(n){if(n.data=="true"||n.data==true){m.additionalData.is_followed="true"}})};k.userNotificationSeen=function(n){if(!n.isSeenByUser){var l=[];l.push(n.id);n.isSeenByUser=true;d.updateNotificationSeenCount(l,k.memberId);if(n.template==k.notificationConsts.FOLLOW_INSIGHT){var m={};m.Type=n.template;c.trackEvent("Notification Feed Shown",m)}}};k.fetchFeedsUpdate=function(){if(k.notificationFeeds.length>0){var l=d.getNotificationsForUser(k.memberId,k.notificationConsts.FEED_COUNT,k.notificationFeeds[0].id)}else{var l=d.getNotificationsForUser(k.memberId,k.notificationConsts.FEED_COUNT)}l.then(function(n){var p=n;if(p!=null&&p!=undefined&&Object.keys(p).length>0){if(p.feedcardResponse!=null&&p.feedcardResponse!=undefined){var m=p.feedcardResponse;angular.forEach(m,function(q){if(q.interactionCount>0){q.isInteracted=true}else{q.isInteracted=false}q.isSeenByUser=false;k.notificationFeeds.unshift(q)});k.notificationCount=p.notificationCount;k.notificationFeedsCount=k.notificationFeeds.length;var o=angular.element(document.getElementById("notification-dropdown-list"));o[0].scrollTop=0}}},function(m){})};k.handleShowingSeeMore=function(l){if(k.notificationConsts.FEED_COUNT==l){k.showSeeMore=true}else{k.showSeeMore=false}};k.getNotifications()}}}]);notificationApp.service("notificationService",["$http","$q","Constants",function(e,a,b){var c=b.apiUrl;var d=b.marketingUrl;this.getNotificationsForUser=function(f,j,l){var h="";if(l!=undefined){h=d+"/a/v1/pr/getNotificationsForUser?memberId="+f+"&feedCount="+j+"&lastId="+l}else{h=d+"/a/v1/pr/getNotificationsForUser?memberId="+f+"&feedCount="+j}var g=a.defer();var k=e.get(h).success(function(m){g.resolve(m)}).error(g.reject);return g.promise};this.getPrevNotificationsForUser=function(f,g,j){var h=e.get(d+"/a/v1/pr/getPrevNotificationsForUser?memberId="+f+"&feedCount="+g+"&lastId="+j);return h};this.resetNotificationAlertCount=function(){var f=e.post(d+"/a/v1/pr/resetNotificationAlertCount");return f};this.updateNotificationInteractCount=function(g,f){var j={feedIds:g,memberId:f};var h=e.post(d+"/a/v1/pr/updateNotificationInteractCount",j);return h};this.updateNotificationSeenCount=function(g,f){var j={feedIds:g,memberId:f};var h=e.post(d+"/a/v1/pr/updateNotificationSeenCount",j);return h}}]);(function(){var h,g,e,a,f,d,c,b;angular.module("angular-inview",[]).directive("inViewContainer",function(){return{restrict:"AC",controller:function(){this.items=[];this.addItem=function(j){return this.items.push(j)};this.removeItem=function(k){var j;return this.items=(function(){var o,m,n,l;n=this.items;l=[];for(o=0,m=n.length;oj&&vj&&kr;t=w||p||z||(kr);if(t){m=(z&&"top")||(p&&"bottom")||"both";if(!(y.wasInView&&y.wasInView===m&&q.offsetTop===y.lastOffsetTop)){y.lastOffsetTop=q.offsetTop;y.wasInView=m;l.push(y.callback(true,m))}else{l.push(void 0)}}else{if(!w&&y.wasInView){y.wasInView=false;l.push(y.callback(false))}else{l.push(void 0)}}}return l};a=function(k,j){var l;l=null;return function(){if(l!=null){clearTimeout(l)}return l=setTimeout(k,j!=null?j:100)}};e=a(function(){return g(b)})}).call(this);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);if(r.loading==false){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=lk.width/2){j.arrow="arrow_right"}if(s0;if(k){return}j.companyInfo.showInfo=false;j.$apply()});j.followCompany=function(k){j.companyInfo.loading=true;if(j.followAndAssign===true){e(function(){j.companyInfo.showInfo=false;angular.element("#"+k).trigger("click");j.$apply()},100);j.companyInfo.loading=false}else{a.followCompany(k,true).then(function(l){b.addCompany(j.hoveredCompany);j.companyInfo.loading=false;j.companyInfo.showUnfollowButton=true;j.companyInfo.showFollowButton=false;j.companyInfo.showInfo=false})}};j.unFollowCompany=function(k){j.companyInfo.loading=true;a.followCompany(k,false).then(function(l){b.removeCompany(j.hoveredCompany);j.companyInfo.loading=false;j.companyInfo.showUnfollowButton=false;j.companyInfo.showFollowButton=true;j.companyInfo.showInfo=false})};j.closeButton=function(){j.companyInfo.showInfo=false};j.followAcquiredCompany=function(k){j.companyInfo.loading=true;a.followCompany(k,true).then(function(l){b.addAcquiredCompany(k);j.companyInfo.loading=false;j.companyInfo.showUnfollowButton=true;j.companyInfo.showFollowButton=false;j.companyInfo.showInfo=false})};j.unFollowAcquiredCompany=function(k){j.companyInfo.loading=true;a.followCompany(k,false).then(function(l){b.removeAcquiredCompany(k);j.companyInfo.loading=false;j.companyInfo.showUnfollowButton=false;j.companyInfo.showFollowButton=true;j.companyInfo.showInfo=false})}}}}]);var dependencies=["commonsApp","searchCompanyApp"];if(currentPage!="index"){dependencies.push("searchApp")}var pagelessOnboardingApp=angular.module("pagelessOnboardingApp",dependencies);pagelessOnboardingApp.constant("pagelessOnboardingConstants",{response:{SUCCESS_STRING:"1",INFORMATION_STRING:"2",AUTO_LOGIN_SUCCESS_STRING:"5",EVENT:"SIGNIN_REQ",},ownership:{INVESTMENT_COMPANY:"Investment Company",GOVERMENT:"Government",NGO_NPO:"NGO/NPO/NFP/Organization/Association"},mixpanelUtil:{mixpanel_property:{PROVIDE_EMPLOYER:"Provide Employer",EMPLOYER_PROVIDED:"Employer Provided",LOCATION:"Location",LANDING_PAGE:"Landing Page",HP_ONBOARDING_STEP1_STARTED:"HP Onboarding V4 Step 1 Started",HP_ONBOARDING_STEP1_COMPLETED:"HP Onboarding V4 Step 1 Completed",HP_ONBOARDING_STEP2_STARTED:"HP Onboarding V4 Step 2 Started",HP_ONBOARDING_STEP2_COMPLETED:"HP Onboarding V4 Step 2 Completed",POPUP_ONBOARDING_STEP2_STARTED:"Pop Up Onboarding V5 Step 2 Started",POPUP_ONBOARDING_STEP2_COMPLETED:"Pop Up Onboarding V5 Step 2 Completed",POPUP_ONBOARDING_STEP3_STARTED:"Pop Up Onboarding V5 Step 3 Started",POPUP_ONBOARDING_STEP3_COMPLETED:"Pop Up Onboarding V5 Step 3 Completed",SIGNUP_FORM_ORIGIN:"SingUp Form"}},ga_property:{HIT_TYPE_EVENT:"event",CONVERSION_REG:"Conversion Registration",VIA_EMAIL:"Via Email",CONVERSION_GA:"conversionGA"},error_messages:{ACCEPT_TERMS_OF_USE:"Please accept our terms of use"}});pagelessOnboardingApp.controller("showSignUpController",["$rootScope","$scope",function(a,b){b.showSignupPopup=function(d){var c=window.currentPage;a.$broadcast("showSignUp",{origin:d,pageType:c})}}]);pagelessOnboardingApp.controller("pagelessOnboardingController",["$scope","$document","$window","$timeout","$http","$filter","pagelessOnboardingService","mySharedService","Constants","pagelessOnboardingConstants","commonsAppServices","mixpanelService",function(u,B,p,A,C,s,z,d,e,k,g,m){var o=k.mixpanelUtil.mixpanel_property;var l=k.ga_property;var r=k.error_messages;var n=undefined;var f=undefined;var j="obbbs";u.checkCompanyEndsWithS=function(E){return s("checkCompanyEndsWithS")(E)};function v(){var E=z.getUserCountry();E.then(function(F){if(F.data.country=="canada"){u.isCanadian=true}if(F.data.ip!=undefined&&F.data.ip!=""){u.registeredUserIP=F.data.ip}});if(typeof companyName!="undefined"){u.compName=u.checkCompanyEndsWithS(companyName)}u.employer_section={};u.currentKey="";u.employer_section.myEmployer=[];f=undefined;u.isEmployerAdded=false;if(window.currentPage!=undefined&&window.currentPage!="index"){A(function(){w()},500)}}v();if(window.isPreRender!=undefined&&window.isPreRender!="true"){A(function(){u.showCloseButton=false;u.showPagelessOnboardingPopup=true},1500)}u.responseConstants=k.response;u.searchOptions={};u.searchOptions.showSearch=true;u.showPagelessOnboardingPopup=false;u.showCloseButton=true;if(window.currentPage!=undefined&&window.currentPage=="pollsandinsights"){u.showCloseButton=false;u.showPagelessOnboardingPopup=true}u.showErrorMsg=false;u.showInfoMsg=false;u.showCompanyErrorMsg=false;u.showSignUpEmailErrorMsg=false;u.isSignedUpForEmail=false;u.showLoading=false;u.onBoardingStep=1;u.showOBBottomBanner=false;u.showOBBottomBannerSlide=false;var q;var b=undefined;var h="logo_c";u.showSignUpPopup=function(){v();u.showPagelessOnboardingPopup=true};u.hideSignUpPopup=function(){u.showPagelessOnboardingPopup=false;u.showErrorMsg=false;u.showInfoMsg=false;u.showCompanyErrorMsg=false;u.showSignUpEmailErrorMsg=false;u.showLoading=false};u.$on("showSignUp",function(F,E){u.showSignupPopup(E)});u.$on("showOBBottomBanner",function(F,E){});u.hideOBBottomBanner=function(){u.showOBBottomBanner=false;u.showOBBottomBannerSlide=false};u.showSignupPopup=function(E){u.prop={};if(E!=undefined){u.prop.origin=E.origin;u.prop.pageType=E.pageType;u.watchListCompany=E.watchListId;if(u.prop.origin==undefined){u.prop.origin="edit"}m.trackEvent("Conversion Widget Shown",u.prop)}v();u.showPagelessOnboardingPopup=true};function w(){var E=document.getElementById("pagelessOBEmailInput1");if(E!=null&&u.onBoardingStep==1){document.getElementById("pagelessOBEmailInput1").focus()}}u.getEmployer=function(){var E=new Array();if(u.employer_section.myEmployer.id!=undefined){E.push(u.employer_section.myEmployer)}return E};u.hideErrormsg=function(){u.showErrorMsg=false;u.showInfoMsg=false;u.showSignUpEmailErrorMsg=false};u.showRegistration=function(){u.hideLink=true;u.showRegistrationForm=true};u.setSignedUpForEmail=function(){u.SignUpEmailErrorMsg=r.ACCEPT_TERMS_OF_USE;u.isSignedUpForEmail=!u.isSignedUpForEmail;if(u.isSignedUpForEmail){u.showSignUpEmailErrorMsg=false}};function a(E){if(E==""||E==undefined){u.showErrorMsg=true;u.ErrorMsg="Email address is required.";return false}if(!t(E)){u.showErrorMsg=true;u.ErrorMsg="Please enter a valid email address.";return false}var F=z.verifyEmail(E);F.then(function(G){var H=G.data;if(H!=null&&H.status==false){u.showErrorMsg=true;u.ErrorMsg=H.error_msg}else{u.showErrorMsg=false;x(E)}})}function x(G){var F=new Date().getGmtOffset();var E;if(window.currentPage!="errorPage"){E=window.location.href}u.showErrorMsg=false;if(u.isCanadian&&!u.isSignedUpForEmail){u.SignUpEmailErrorMsg=r.ACCEPT_TERMS_OF_USE;u.showSignUpEmailErrorMsg=true}else{u.showSignUpEmailErrorMsg=false;u.showLoading=true;var H=z.userRegistration(G,F,window.companyId,E,u.onBoardingStep,n,u.watchListCompany,u.showOBBottomBanner,u.isCanadian,u.registeredUserIP);H.then(function(J){try{_gaq.push(["_trackEvent",l.CONVERSION_REG,l.VIA_EMAIL,l.CONVERSION_GA])}catch(K){}var L=(window.currentPage=="index"||window.currentPage=="mobile")?true:false;if(J.data.result==u.responseConstants.SUCCESS_STRING){$("#userEmail").val(J.data.userEmail);setCookie(USER_REG,0,300);if(J.data.isOnboardingComplete=="true"){if(window.currentPage=="index"||window.currentPage=="mobile"){var M=HOST_WITHOUT_SSL+"home.htm?onBoardingComplete=true";var I=getUrlParameter("targetURL");if(I!=undefined){M=I}u.showLoading=false;trackMixpanelLoginEvent(J.data,getCallBckFn(M))}else{if(window.isMarketingPage||window.currentPage=="errorPage"){u.showLoading=false;trackMixpanelLoginEvent(J.data,getCallBckFn(J.data.employerURL+"?onBoardingComplete=true"))}else{u.showLoading=false;trackMixpanelLoginEvent(J.data,getCallBckFn(window.location.href+"?onBoardingComplete=true"))}}}else{u.showPagelessOnboardingPopup=true;trackMixpanelLoginEvent(J.data);u.showLoading=false;u.onBoardingStep=3;c(o.POPUP_ONBOARDING_STEP3_STARTED,G)}}else{u.showLoading=false;if(J.data.result==u.responseConstants.INFORMATION_STRING||J.data.result==u.responseConstants.AUTO_LOGIN_SUCCESS_STRING){if(J.data.result==u.responseConstants.INFORMATION_STRING){if(J.data.event==u.responseConstants.EVENT){trackSignInRequest(J.data.memberId,G,o.SIGNUP_FORM_ORIGIN)}u.showInfoMsg=true;u.InfoMsg=J.data.message}else{var I=undefined;if(window.currentPage=="errorPage"||window.currentPage=="index"){I=HOST_WITHOUT_SSL+"manage-companies.htm"}trackSignInRequest(J.data.memberId,G,o.SIGNUP_FORM_ORIGIN,true,I)}}else{if(J.data.employer_status=="-1"){y();u.onBoardingStep=3;setCookie(USER_LOGGEDIN,1,31536000);c(o.POPUP_ONBOARDING_STEP3_STARTED,G)}else{u.showErrorMsg=true;u.ErrorMsg=J.data.message}}return}})}}function y(){if(document.getElementById("pagelessOBEmailInput1")){document.getElementById("pagelessOBEmailInput1").value=""}if(document.getElementById("pagelessOBEmailInput2")){document.getElementById("pagelessOBEmailInput2").value=""}if(document.getElementById("pagelessOBEmailInput3")){document.getElementById("pagelessOBEmailInput3").value=""}}function t(E){return/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/i.test(E)}function c(F,E,H,G){var I={"Visitor Id":H};I["User Email"]=E;I.Action=G;m.trackEvent(F,I)}var D=false;u.submitRegistrationForConversionBanner=function(E,F){u.submitRegistrationForm(E,F)};u.submitRegistrationForm=function(E,F){setPageTypeCookie();a(E)};u.setEmployerField=function(F,E){u.employer_section.myEmployer=F;b=u.employer_section.myEmployer.name;u.ownership=u.employer_section.myEmployer.ownership;u.searchOptions.showSearch=false;u.showCompanyErrorMsg=false;$(".pageless-onboarding-popup #searchAndManage").val(u.employer_section.myEmployer.name);if(E){u.submitEmployerDetail()}};u.selectCompany=function(F){var E=getSEOFriendlyCompanyName(F.shortName);var G=getCompanyInfoUrl(F.id,E);window.location.assign(G)};u.addEmployerCompany=function(E,G){q=$("#userEmail").val();u.employer_section.myEmployer=E;u.ownership=u.employer_section.myEmployer.ownership;u.searchOptions.showSearch=false;u.isEmployerAdded=true;u.currentKey=u.employer_section.myEmployer.name;$("#registrationFlowSteps #searchAndManage").val(u.employer_section.myEmployer.name);u.showLoading=true;setCookie(h,0,300);var F=z.setEmployerOrInterestedCompany(E,q,G);F.then(function(I){if(I.data.status=="success"){var H=getSEOFriendlyCompanyName(u.employer_section.myEmployer.shortName);var J=getCompanyInfoUrl(u.employer_section.myEmployer.id,H);var K={};K["Skipped Step"]=false;u.showLoading=false;if(G){m.trackEvent(o.HP_ONBOARDING_STEP1_COMPLETED,K,getCallBckFn(J+"?onBoardingComplete=true"))}else{var K={};K.back=false;m.trackEvent(o.HP_ONBOARDING_STEP2_COMPLETED,K,getCallBckFn(J+"?onBoardingComplete=true"))}}else{u.showLoading=false;u.showErrorMsg=true;u.ErrorMsg="OOPS! Something went wrong while setting an employer. Please try again!!";return}})};u.submitEmployerDetail=function(F){if(currentPage=="cpLayout"&&deviceType=="Desktop"){var H=HOST_WITHOUT_SSL+"home.htm?utm_source=%22reg_popup%22";openInNewTab(H)}if((u.employer_section.myEmployer.length==0)||b!=$("#pageless-onboarding-popup-container #searchAndManage").val()){u.showCompanyErrorMsg=true;u.CompanyErrorMsg="Please select a company from the dropdown menu";u.employer_section.myEmployer=[]}else{u.showCompanyErrorMsg=false;u.showLoading=true;u.isEmployerAdded=true;u.currentKey=u.employer_section.myEmployer.name;q=$("#userEmail").val();var E=u.employer_section.myEmployer;var I=false;if(F==undefined||F==null||F){I=true}setCookie(h,0,300);var G=z.setEmployerOrInterestedCompany(E,q,I);G.then(function(K){if(K.data.status=="success"){var M={EmployerId:E.id};M[" Employer Short Name"]=E.shortName;m.trackEvent(o.POPUP_ONBOARDING_STEP3_COMPLETED,M);var L=window.location.href;if(window.currentPage!=undefined&&window.currentPage=="index"){L=HOST_WITHOUT_SSL+"manage-companies.htm"}else{if(window.isMarketingPage||window.currentPage=="errorPage"){var J=getSEOFriendlyCompanyName(E.shortName);L=getCompanyInfoUrl(E.id,J)}}L=L+"?onBoardingComplete=true";u.showLoading=false;getCallBckFn(L)()}else{u.showLoading=false;u.showErrorMsg=true;u.ErrorMsg="OOPS! Something went wrong while setting an employer. Please try again!!";return}})}};u.redirectToCP=function(F){u.showLoading=true;if(F!=undefined||F!=null){u.employer_section.myEmployer=F}$(".conversion_var #searchAndManage").val(u.employer_section.myEmployer.name);var E=getSEOFriendlyCompanyName(u.employer_section.myEmployer.shortName);var G=getCompanyInfoUrl(u.employer_section.myEmployer.id,E);window.location.assign(G)};u.skipEmployer=function(){var F=window.location.href;var E={};E["Skipped Step"]=true};u.skipEmployerStep=function(){var E={};E["Skipped Step"]=true;m.trackEvent(o.HP_ONBOARDING_STEP1_COMPLETED,E,function(){m.trackEvent(o.HP_ONBOARDING_STEP2_STARTED)})};u.backToEmployerStep=function(){var E={};E.back=true;m.trackEvent(o.HP_ONBOARDING_STEP2_COMPLETED,E,function(){m.trackEvent(o.HP_ONBOARDING_STEP1_STARTED)})};u.isEnabled=function(){var E=$("#pageless-onboarding-popup-container #searchAndManage").val();var F=u.employer_section.myEmployer;if(F.length==0){return false}return true};u.showLoginPopupContainer=function(){var E=document.querySelector("#signInFormDiv").classList;document.querySelector("#pageless-onboarding-popup").style.display="none";document.querySelector("#signInFormDivContainer").style.display="block";E.add("showLogin");$(".showLogin #signInFormResponseDivContainer .button_submit").attr("onclick","closeSignInLink()")}}]);pagelessOnboardingApp.service("pagelessOnboardingService",["$http","Constants",function(d,a){var c=a.apiUrl;var b=a.marketingUrl;this.userRegistration=function(h,o,n,m,f,l,p,e,r,k){var j="index";if(window.currentPage!=undefined&&window.currentPage!="index"){j=getSignUpPageType()}var g={params:{email:h,timeZone:o,companyId:n,targetURL:m,obStep:f,visitorId:l,pageType:j,watchlistId:p,isCanadian:r,registeredIpAddress:k}};if(e){g.params.Type="Conversion Banner"}var q=d.get(c+"/addSimpleVisitor.htm",g);return q};this.setEmployerOrInterestedCompany=function(e,g,j){var f={params:{companyId:e.id,userEmail:g,isEmployer:j,}};var h=d.get(c+"/onboarding/setEmployerOrInterestedCompany.htm",f);return h};this.getUserCountry=function(){var e=d.get(b+"/geoip/api/v1/country");return e};this.verifyEmail=function(e){var f=d.get(b+"/a/v1/pb/verifyEmail?email="+e);return f}}]);var dependencies=["commonsApp","searchApp","highcharts-ng","ngAnimate","dataCardApp","searchCompanyApp","yaru22.angular-timeago"];if(memberData.isUserLoggedIn!=undefined&&memberData.isUserLoggedIn!=null&&!memberData.isUserLoggedIn){dependencies.push("pagelessOnboardingApp")}var eventsApp=angular.module("eventsApp",dependencies);eventsApp.constant("eventsConstants",{mixpanel_property:{EVENTS_PAGE_INTERACTION:"Events Page Interaction",CLICKED_ON:"Clicked on",EVENTS_PAGE_VIEWED:"Events Page Viewed",EVENTS_PAGE_TYPE:"Events Page Type",EVENTS_PAGE_VIEWED_NEWS:"Events Page Viewed - News",EVENTS_PAGE_VIEWED_INSIGHT:"Events Page Viewed - Insight",CLUSTER_ID:"Cluster Id",COMPANY_NAME:"Company Name",EP_OPTIMIZELY_VARIATION:"EP Variation",_1_3_SCROLL:"1/3 Scroll",_1_2_SCROLL:"1/2 Scroll",_2_3_SCROLL:"2/3 Scroll",EP_1_3_SCROLL:"EP 1/3 Scroll",EP_1_2_SCROLL:"EP 1/2 Scroll",EP_2_3_SCROLL:"EP 2/3 Scroll",MOVED_TOOLTIP_IP_GRAPH:"Moved Tooltip on IP Graph"},ga_property:{EVENTS_PAGE:"Events Page",VARIATION_NULL:"Null",VARIATION_1:"Variation1"},insights_constants:{NEWS:"NEWS",BLOG_POSTS:"BLOG_POSTS",CEO:"CEO",LEADER_SCORE:"LEADER_SCORE",LEADERSHIP_TEAM_SCORE:"LEADERSHIP_TEAM_SCORE",EMPLOYEE_COMPENSATION_SCORE:"EMPLOYEE_COMPENSATION_SCORE",WORKFORCE_DIVERSITY_SCORE:"WORKFORCE_DIVERSITY_SCORE",FUTURE_OUTLOOK_SCORE:"FUTURE_OUTLOOK_SCORE",MARKETING_SCORE:"MARKETING_SCORE",GROWTH_SCORE:"GROWTH_SCORE",BRAND_SCORE:"BRAND_SCORE",INNOVATION_SCORE:"INNOVATION_SCORE",ENVIRONMENTAL_SCORE:"ENVIRONMENTAL_SCORE",PRIVACY_POLICY_SCORE:"PRIVACY_POLICY_SCORE",GROUP_COMPARISON:"GROUP_COMPARISON"}});eventsApp.controller("eventsController",["$scope","$parse","$document","eventsService","eventsConstants","urlUtilService","mixpanelService","$window","$timeout","$filter","commonsAppServices",function(g,O,s,G,x,K,r,J,B,F,q){g.insightsConst=x.insights_constants;g.init=function(R,S){g.snapshotLink=q.getcustomSnapshotURL(R,S);if(!isBannerClosed){g.showCustomSnapshotBanner=true}};g.copyToClipboard=function(S,R,S){g.copy_snapshoturl="Copied!";document.querySelector("#"+R).select();document.execCommand("copy");trackMixpanelEvent(S)};g.closeCustomSnapshotBanner=function(){setCookie("isBanClose",1,432000);g.showCustomSnapshotBanner=false};var j=x.mixpanel_property;var a=x.ga_property;var m=this;var z={};var k={};g.copy_snapshoturl="Copy Link";g.companyId="";g.companyDetails={};g.ceoInsightDetails={};g.insightDetails={};g.insightId="";g.insightText="";g.insightStatus="";g.revenueInsightId="";g.revenueInsightText="";g.employeeInsightId="";g.employeeInsightText="";g.ceoData={};g.isUserloggedIn=loggedIn;g.isMemberActive=memberStatus;g.feeds={};g.revenueEmpHistory={};g.chartData={};g.showCustomSnapshotBanner=false;g.about_data_loaded=false;g.more_story_data_loaded=false;g.timeline_data_loaded=false;g.competitor_data_loaded=false;g.map_data_loaded=false;g.similar_stories_data_loaded=false;g.relevant_news_data_loaded=false;g.insight_frequency="";g.insight_object_name="";g.insight_outcome="";g.all_events_page_sections_loaded=false;g.revenueChartConfig=null;g.employeeChartConfig=null;g.companySummary="";g.relatedStories={};g.relatedInsightStories={};g.timeLineStories={};g.competitor_title="";g.competitor_ceos={};g.ceo_first_name="";g.ceo_last_name="";g.ceo_picture="";m.mapFound=true;g.address={};var l;var v;var P=[];var t=[];g.publishersMapDataFound=false;var Q;g.showThanksBanner=false;g.mapData={};g.mapAddress="";g.eventsPageViewedType="";g.isDataCardAvailable=false;g.isMobileDevice=false;if(deviceType=="Mobile"){g.isMobileDevice=true}g.$on("dataCardAvailable",function(){if(g.isMobileDevice){var R=angular.element(document.getElementsByClassName("ep-data-card-mobile")).prop("offsetTop");window.scrollTo(0,R-50)}g.isDataCardAvailable=true});g.$on("noDataCardAvailable",function(){g.isDataCardAvailable=false});function L(S){var T={};var R={enabled:true,fillColor:"#ffffff",lineWidth:2,lineColor:"#ff8400"};var U=S;T.marker=R;T.y=U;return T}g.loadKeyStatsESTRevenueChart=function(U){var R=new Array();if(U!=undefined){for(var S=0;S0?V[W]:S)}else{U=parseInt(V[T]);S=U}if(T==0){R.push(L(U))}else{if(T==V.length-1){R.push(L(U))}else{R.push(U)}}}}g.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:R}]}};function E(T,R){if(R==google.maps.places.PlacesServiceStatus.OK){for(var S=0;Sg.insightChartConfig.getHighcharts().plotWidth){ad=ae.plotX+g.insightChartConfig.getHighcharts().plotLeft-af-20}else{ad=ae.plotX+g.insightChartConfig.getHighcharts().plotLeft+20}ah=ae.plotY+g.insightChartConfig.getHighcharts().plotTop-20;return{x:ad,y:ah}},padding:8,useHTML:true,shadow:false,boderWidth:0,borderColor:"#E7E7E8",backgroundColor:"#E7E7E8",formatter:function(){return"
"+g.yAxisLabelFormat(this.y)+"
"+ab[this.point.index]+""}};Y={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:X,xAxis:{allowDecimals:false,categories:V,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:V.length-0.8,minPadding:0,maxPadding:0,},yAxis:{visible:W,title:"",allowDecimals:false,opposite:true,gridLineWidth:0,lineWidth:1,lineColor:"#DADADA",labels:{formatter:function(){return g.yAxisLabelFormat(this.value)}}},plotOptions:{series:{stickyTracking:false,events:{click:function(ad){this.chart.myTooltip.refresh(ad.point,ad)},mouseOut:function(){this.chart.myTooltip.hide()}},point:{events:{mouseOver:function(){if(!chartPlotViewd){n()}chartPlotViewd=true}}}},area:{pointStart:0,color:"#735BA4",fillOpacity:1,marker:{enabled:ac,symbol:"circle",fillColor:"#C2AFD5",radius:S,states:{hover:{lineWidth:0,enabled:true}}},},},},series:[{name:"Insights",data:U,}]};g.insightChartConfig=Y};g.generateCEOChart=function(ae,ai){var ad;var W=[];var U=[];var T=[];var Z=0;var af=0;angular.forEach(ai,function(am,al){af++});for(var ag=0;ag=2){aa={name:U[af-Z],data:W[af-Z],color:S[af-Z].lineColor,marker:{enabled:ah,symbol:S[af-Z].symbol,lineColor:S[af-Z].lineColor,lineWidth:3,fillColor:"#FFF",radius:ak,states:{hover:{lineWidth:0,enabled:true}}},};ab.push(aa)}Z++}var ac={animation:false,enabled:V,positioner:function(an,ao,am){var al,ap;if(am.plotX+an>g.insightCEOChartConfig.getHighcharts().plotWidth){al=am.plotX+g.insightCEOChartConfig.getHighcharts().plotLeft-an-20}else{al=am.plotX+g.insightCEOChartConfig.getHighcharts().plotLeft+20}ap=am.plotY+g.insightCEOChartConfig.getHighcharts().plotTop-20;return{x:al,y:ap}},useHTML:true,shadow:false,boderWidth:0,borderColor:"#E7E7E8",backgroundColor:"#E7E7E8",formatter:function(){return"
"+g.yAxisLabelFormat(this.y)+"
"+T[this.point.index]+""}};ad={options:{chart:{type:"line",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:true,layout:aj,align:"center",verticalAlign:"bottom",itemDistance:40,reversed:true,symbolHeight:16,symbolWidth:16,symbolRadius:8,itemMarginTop:10,itemStyle:{fontSize:"17px",lineHeight:"22px",fontFamily:"Roboto-Regular",color:"#434244",}},credits:{enabled:false},tooltip:ac,xAxis:{allowDecimals:false,categories:ae,tickPixelInterval:200,labels:{align:"center",rotation:0,style:{fontSize:"12px",fontFamily:"Roboto-Regular",color:"#A6A8AA",textOverflow:"none",whiteSpace:"nowrap",},},lineWidth:1,minorGridLineWidth:0,minorTickLength:0,tickLength:0,stackLabels:{enabled:false},title:{text:"",},overflow:"justify",reversed:true,minPadding:20,maxPadding:20,startOnTick:true,endOnTick:true,},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(al){this.chart.myTooltip.refresh(al.point,al)},mouseOut:function(){this.chart.myTooltip.hide()}},}},},series:ab};g.insightCEOChartConfig=ad};function w(S){var R=f(S);if(R!=null&&R!=undefined&&R!=""){g.mapAddress=googleStaticMapUrl+"¢er="+R+"&markers=color:red%7C"+R+"%7C&&zoom=15&size=594x190"}else{m.mapFound=false}return false}g.competitorDataNullCheck=false;g.competitorData=[];g.getCompanyUrl=function(R,S){return K.getSEOFriendlyCompanyProfileUrl(R,K.getSEOFriendlyCompanyName(S))};g.getCompanyNewsUrl=function(R,S){return K.getNewsSectionUrl(R,K.getSEOFriendlyCompanyName(S))};g.getEventsPageUrl=function(T,S,R){var U=K.getEventsPageURL(T,S,R);return U};g.getCompanyInfoUrl=function(S,T){var R=K.getSEOFriendlyCompanyProfileUrl(S,T);return R};g.closeThanksBanner=function(){g.showThanksBanner=false};B(function(){g.showThanksBanner=false},30000);function d(S,T,R){l=new google.maps.Geocoder();var U=new google.maps.LatLng(S,T);v=new google.maps.Map(document.getElementById("map"),{mapTypeId:google.maps.MapTypeId.ROADMAP,center:U,zoom:R})}function I(){if(m.mapFound==true){d(41.7475,-74.0872,15)}else{d(10.7475,-14.0872,1)}}window.addEventListener("load",function(){M(googleDynamicMapUrl+"&v=3.exp&libraries=places");D()});function M(S){var R=document.createElement("script");R.type="text/javascript";R.src=S;document.body.appendChild(R)}g.trackEPClickEvent=function(R){var S={};S[j.CLICKED_ON]=R;r.trackEvent(j.EVENTS_PAGE_INTERACTION,S)};g.isTrackedCompanySectionScroll=false;g.isTrackedTimelineSectionScroll=false;g.isTrackedCompetitorSectionScroll=false;function b(){g.pixelsScrolled=0;s.on("scroll",function(){g.$apply(function(){g.pixelsScrolled=J.scrollY});var R={};R[j.COMPANY_NAME]=companyName;g.companySectionOffsetPos=angular.element(document.getElementById("company-data-section")).prop("offsetTop");if(g.pixelsScrolled>g.companySectionOffsetPos){if(!g.isTrackedCompanySectionScroll){R[j._1_3_SCROLL]=j.EP_1_3_SCROLL;r.trackEvent(g.eventsPageViewedType,R);g.isTrackedCompanySectionScroll=true}g.timelineSectionOffsetPos=angular.element(document.getElementById("timeline-stories")).prop("offsetTop");if(g.pixelsScrolled>g.timelineSectionOffsetPos){if(!g.isTrackedTimelineSectionScroll){R[j._1_2_SCROLL]=j.EP_1_2_SCROLL;r.trackEvent(g.eventsPageViewedType,R);g.isTrackedTimelineSectionScroll=true}g.competitorSectionOffsetPos=angular.element(document.getElementById("competitor-data-section")).prop("offsetTop")-180;if(g.pixelsScrolled>g.competitorSectionOffsetPos){if(!g.isTrackedCompetitorSectionScroll){R[j._2_3_SCROLL]=j.EP_2_3_SCROLL;r.trackEvent(g.eventsPageViewedType,R);g.isTrackedCompetitorSectionScroll=true}}}}})}g.chartFloatingLeft=false;g.scrollTheChart=function(){g.chartFloatingLeft=!g.chartFloatingLeft};function C(W,R){var V="";var U=new Date(W);var T=new Date(R);var S=T.getMonth()-U.getMonth()+(12*(T.getFullYear()-U.getFullYear()));if(S==0||S==1){var X=24*60*60*1000;var V=Math.round(Math.abs((T.getTime()-U.getTime())/(X)));V=Math.abs(V);if(V==0){return"Today"}else{if(V==1){return"Yesterday"}else{if(V>=2&&V<=6){return"This week"}else{return F("date")(U,"MMM yy")}}}}else{return F("date")(U,"MMM yy")}return F("date")(U,"MMM yy")}function h(W,R){var V="";var U=new Date(W);var T=new Date(R);var S=T.getMonth()-U.getMonth()+(12*(T.getFullYear()-U.getFullYear()));if(S==0||S==1){var X=24*60*60*1000;var V=Math.round(Math.abs((T.getTime()-U.getTime())/(X)));V=Math.abs(V);if(V==0){return"Today"}else{if(V==1){return"Yesterday"}else{if(V>=2&&V<=6){return"This week"}else{return F("date")(U,"dd MMM yy")}}}}else{return F("date")(U,"dd MMM yy")}return F("date")(U,"dd MMM yy")}function c(R,T){var S=new Date(R);S.setDate(S.getDate()-T);return F("date")(S,"dd MMM yy")}function N(V,U,S){chartXAxisStartLabel=C(V,S);var T=U.length-1;var R={};if(chartXAxisStartLabel=="Today"||chartXAxisStartLabel=="Yesterday"||chartXAxisStartLabel=="This week"){R={"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{R={"2":[c(V,0),c(V,7),c(V,14)],"3":[c(V,0),c(V,7),c(V,14),c(V,21)],"4":[c(V,0),"",c(V,14),"",c(V,28)],"5":[c(V,0),"","","","",c(V,35)],"6":[c(V,0),"",c(V,14),"",c(V,28),"",c(V,42)],"7":[c(V,0),"","","","","","",c(V,49)],"8":[c(V,0),"","","",c(V,28),"","","",c(V,56)],"9":[c(V,0),"","","","","","","",c(V,56),""],"10":[c(V,0),"","","","","","","",c(V,56),"",""],"11":[c(V,0),"","","","","","","",c(V,56),"","",""],"12":[c(V,0),"","","",c(V,28),"","","",c(V,56),"","","",c(V,84)]}}return categories=R[T]}function A(T){if(T.competitor_ceos!=null&&T.competitor_ceos!=undefined&&T.insights_timeline_data!=null&&T.insights_timeline_data!=undefined){g.competitor_title=T.competitor_title;g.competitor_ceos=T.competitor_ceos;var R=T.insight_trigger_type;var U=false;angular.forEach(T.insights_timeline_data,function(W,V){angular.forEach(W,function(Y,X){if(!U){g.currentCompanyConsensus=Y}U=true})});if(R.toUpperCase()!="COMPETITOR_COMPARISON"){var S={};S.company_id=companyId;S.company_name=companyName;S.company_logo=eventsPageCompanyLogo;S.ceo_first_name=g.ceo_first_name;S.ceo_last_name=g.ceo_last_name;S.ceo_picture=g.ceo_picture;S.consensus_rating=g.currentCompanyConsensus;g.competitor_ceos.push(S)}}}function p(U,T,R){var S=["TODAY","1 MONTH AGO","2 MONTHS AGO","3 MONTHS AGO"];if(g.isMobileDevice){S=["TODAY"," "," ","3 MONTHS AGO"]}return categories=S}function u(T,R,Z){var X=new Date(parseInt(R,10));var W=new Date(parseInt(Z,10));X.setHours(0,0,0,0);W.setHours(0,0,0,0);var Y=24*60*60*1000*7*4;var U=Math.round(Math.abs((X.getTime()-W.getTime())/(Y)));var S=y(W,U);var V="";if(X.getTime()==S.getTime()){if(T=="Today"||T=="Yesterday"||T=="This week"){if(U===1){V=U+" month ago"}else{V=U+" months ago"}}else{V=c(X.getTime(),0)}}return V}function y(R,T){var S=new Date(R);S.setDate(S.getDate()-(T*4*7));return S}function o(T,R,Z){var Y=new Date(parseInt(R,10));var X=new Date(parseInt(Z,10));Y.setHours(0,0,0,0);X.setHours(0,0,0,0);var V=24*60*60*1000*7;var U=Math.round(Math.abs((Y.getTime()-X.getTime())/(V)));var S=H(X,U);var W="";if(Y.getTime()==S.getTime()){if(T=="Today"||T=="Yesterday"||T=="This week"){if(U===1){W=U+" week ago"}else{W=U+" weeks ago"}}else{W=c(Y.getTime(),0)}}return W}function H(R,T){var S=new Date(R);S.setDate(S.getDate()-(T*7));return S}g.yAxisLabelFormat=function(U){var S,V=["K","M","B","T","P","E"],T=6;if(U>=1000){while(T--&&S===undefined){multi=Math.pow(1000,T+1);if(U>=multi&&V[T]!==null){var R=(U/multi);var W=Math.round(R*100)/100;S=W+V[T]}}}return(S?S:U)};function D(){var V={};g.isInsightEventsPage=false;if(eventsPageCategory=="INSIGHT"){g.isInsightEventsPage=true;g.eventsPageViewedType=j.EVENTS_PAGE_VIEWED_INSIGHT;V[j.EVENTS_PAGE_TYPE]="Insight"}else{g.eventsPageViewedType=j.EVENTS_PAGE_VIEWED_NEWS;V[j.EVENTS_PAGE_TYPE]="News"}g.timeline_data=[];g.groupCompareData={};if(g.isInsightEventsPage&&insightFeedType!="GENERIC"){var U=4;if(insightType.toUpperCase()==g.insightsConst.NEWS||insightType.toUpperCase()==g.insightsConst.BLOG_POSTS){U=13}var S=G.getInsightTimelineData(feedId,companyId,insightType,U);S.then(function(X){if(X.data&&X.data!=null&&X.data.insight_date!=null&&X.data.insight_date!=undefined){if(X.data.top_feeds!=null){g.relevant_news_data_loaded=true;g.insight_frequency=X.data.checkin_frequency;g.insight_outcome=X.data.outcome;g.relatedInsightStories=X.data.top_feeds}if(X.data.group_data!=null&&X.data.group_data!=undefined){g.groupCompareData.groupTitle=X.data.group_title;g.groupCompareData.groupData=X.data.group_data}g.insight_date=X.data.insight_date;g.insight_object_name=X.data.insight_object_name;g.insight_trigger_type=X.data.insight_trigger_type;if(X.data.insights_timeline_data!=null&&X.data.insights_timeline_data!=undefined){if(insightType.toUpperCase()!=g.insightsConst.NEWS&&insightType.toUpperCase()!=g.insightsConst.BLOG_POSTS){g.insight_object_name=X.data.insight_object_name;if(insightType.toUpperCase()===g.insightsConst.CEO||insightType.toUpperCase()===g.insightsConst.LEADER_SCORE){g.insight_object_name="CEO rating";g.ceo_first_name=X.data.ceo_first_name;g.ceo_last_name=X.data.ceo_last_name;g.ceo_picture=X.data.ceo_picture}A(X.data);g.latestInsight=g.yAxisLabelFormat(g.currentCompanyConsensus)}else{g.latestInsight=g.yAxisLabelFormat(X.data.insights_timeline_data[0])}g.current_date=X.data.current_date;var ab=X.data.insight_object_name;if(ab.length>1){g.chartAreaTextFirst=ab.substr(0,ab.indexOf(" "));g.chartAreaTextSecond=ab.substr(ab.indexOf(" ")+1)}var Z=X.data.insights_timeline_data;angular.forEach(Z,function(ad,ac){var ae=new Date(g.insight_date);if(ac>0){ae.setDate(ae.getDate()-(7*(ac)))}dateToolTip=F("date")(ae,"MM/dd/yy");g.timeline_data.push([ad,dateToolTip])});var aa=C(g.insight_date,g.current_date);var Y={};g.seriresDataLength=g.timeline_data.length;if(insightType.toUpperCase()!=g.insightsConst.NEWS&&insightType.toUpperCase()!=g.insightsConst.BLOG_POSTS){g.liveMetaData=X.data.livemetadata;var W=[];angular.forEach(g.liveMetaData,function(ad,ac){W.push(ac)});if(W.length>1){g.liveObject1=W[1];if(W.length>2){g.liveObject2=W[2]}}if(g.seriresDataLength>=2){setTimeout(function(){Y=p(g.insight_date,g.liveMetaData,g.current_date);g.generateCEOChart(Y,g.liveMetaData)},200)}}else{if(g.seriresDataLength>=3&&g.seriresDataLength<=13){setTimeout(function(){Y=N(g.insight_date,g.timeline_data,g.current_date);g.generateChart(Y,g.timeline_data)},200)}}}}})}g.epClassName=document.getElementById("event-whole-wraper").className;if(g.epClassName!=undefined&&g.epClassName!=null&&g.epClassName!=""){try{_gaq.push(["_trackEvent",a.EVENTS_PAGE,g.epClassName])}catch(T){}V[j.EP_OPTIMIZELY_VARIATION]=g.epClassName}else{document.getElementById("event-whole-wraper").className="EP_varA_Null"}V[j.CLUSTER_ID]=clusterId;V[j.COMPANY_NAME]=companyName;if(isPrerender!=undefined&&!isPrerender){r.trackEvent(j.EVENTS_PAGE_VIEWED,V);r.trackEvent(g.eventsPageViewedType,V)}g.companyId=companyId;z=G.getCompanyDetails(g.companyId);z.then(function(ag){g.about_data_loaded=true;var Y=ag.data;g.companySummary=Y.company_summary;g.distinctFollowers=Y.distinctFollowersCount;g.topFollowersCountCeoLoSd=Y.topFollowersCountCeoLoSd;g.topFollowersCountEmpRev=Y.topFollowersCountEmpRev;g.topFollowersCountCompSec=Y.topFollowersCountCompSec;if(Y.company_info!=null&&Y.company_info!=undefined){g.companyDetails=Y.company_info.company_details}if(Y.ceo!=null&&Y.ceo!=undefined){g.ceoData=Y.ceo.current_ceo}if(Y.insight_details!=null&&Y.insight_details!=undefined){var aa=Y.insight_details[companyId];if(aa!=null&&aa!=undefined){g.ceoInsightDetails=aa.CEO;if(g.ceoInsightDetails!=null&&g.ceoInsightDetails!=undefined){var af=g.ceoInsightDetails.insight_info;if(af!=null&&af!=undefined){g.insightId=af.id;g.insightText=af.insightText;g.insightStatus=af.status;g.seoEligible=af.seoEligible}}}}if(Y!=null&&Y!=undefined){if(Y.insight_details!=null&&Y.insight_details!=undefined){g.insightDetails=Y.insight_details[companyId]}g.revenueInsightStatus="";g.employeeInsightStatus="";var ab={};var X={};if(g.insightDetails.REVENUE!=undefined&&g.insightDetails.REVENUE!=null){ab=g.insightDetails.REVENUE.insight_info;if(ab!=undefined&&ab!=null){g.revenueInsightId=ab.id;g.revenueInsightText=ab.insightText;g.revenueInsightStatus=ab.status;g.revenueSeoEligible=ab.seoEligible}}if(g.insightDetails.EMPLOYEE!=undefined&&g.insightDetails.EMPLOYEE!=null){X=g.insightDetails.EMPLOYEE.insight_info;if(X!=undefined&&X!=null){g.employeeInsightId=X.id;g.employeeInsightText=X.insightText;g.employeeInsightStatus=X.status;g.employeeSeoEligible=X.seoEligible}}g.revenueEmpHistory=Y.revenueEmpHistory;g.chartData=Y.revenueEmpHistory.chart_data}var ac=[];if(g.chartData.revenue!=null&&g.chartData.revenue!=undefined){if(g.chartData.revenue.historicalData.length>1){for(var Z=0;Z1){for(var Z=0;Z
';ah.appendChild(ae);var ad=this.getPanes();ad.overlayImage.appendChild(ah)}var ac=this.getProjection().fromLatLngToDivPixel(this.latlng_);if(ac){if(this.lat>0){if(this.bubbleCount<=20){ah.style.left=ac.x-33+"px";ah.style.top=ac.y+110+"px"}else{if(this.bubbleCount<=40){ah.style.left=ac.x-(this.bubbleCount)+"px"}else{ah.style.left=ac.x-60+"px"}ah.style.top=ac.y+90+"px"}}else{ah.style.left=ac.x-35+"px";ah.style.top=ac.y+15+"px"}}};W.prototype.remove=function(){if(this.div_){this.div_.parentNode.removeChild(this.div_);this.div_=null}};W.prototype.getPosition=function(){return this.latlng_};function aa(){var ad=$("#map_canvas").width();var ac=$("#map_canvas").height();Q=new google.maps.ImageMapType({getTileUrl:function(){return APPBASEURL+"/images/world_bg.png"},tileSize:new google.maps.Size(ad,ac),isPng:true,minZoom:0,maxZoom:0,name:"Gall-Peters"});Q.projection={fromLatLngToPoint:function(af){var ae=af.lat()*Math.PI/180;return new google.maps.Point(ad*(0.5+af.lng()/360),ac*(0.5-0.5*Math.sin(ae)))},fromPointToLatLng:function(af,ah){var ae=af.x/ad;var ag=Math.max(0,Math.min(1,af.y/ac));return new google.maps.LatLng(Math.asin(1-2*ag)*180/Math.PI,-180+360*ae,ah)}}}function Z(af){var ae={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"),ae);aa();publishersMap.mapTypes.set("gallPeters",Q);publishersMap.setMapTypeId("gallPeters");var ad=new google.maps.LatLngBounds();for(var ac=0;ac=7){return 80}}}}}}}}function X(ag,ac,ad){var ae=ag.address;var af=Y(ag.bubblesCount);var ah=ae.replace("&","-");$.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+ah,null,function(ak){if(ak.status=="OK"){var am=ak.results[0].geometry.location;if(am!=null&&am!=undefined){var al=Math.round(am.lat*1000000)/1000000;var aj=Math.round(am.lng*1000000)/1000000;var an=new google.maps.LatLng(al,aj);var ai=new W(al,an,ac,ae,af);ad.extend(an)}}})}}}}]);eventsApp.service("eventsService",["$http","$q","Constants",function(e,a,b){var c=b.apiUrl;var d={};this.getCompanyDetails=function(f){var g=c+"/owlerAjax/getEventPageCPInfo.htm?companyId="+f;d=e.get(g);return d};this.getCompetitorDetails=function(f){var g=c+"/owlerAjax/getEventPageCompetitorInfo.htm?companyId="+f;var h=e.get(g);return h};this.getClusterFeeds=function(f){var g=e.get(c+"/feeds/clusterFeeds.htm?clusterId="+f);return g};this.getRelatedStories=function(f){var g=e.get(c+"/owlerAjax/getRelatedStories.htm?clusterId="+f);return g};this.getPublishersMapData=function(f){var g=e.get(c+"/owlerAjax/getPublisherHQAndFeedCount.htm?clusterId="+f);return g};this.getTimelineStories=function(){var f=e.get(c+"/owlerAjax/getEventPageTimeLineInfo.htm?companyId="+companyId+"&feedTime="+feedTime);return f};this.trackUserEngagement=function(f){var g=e.get(c+"/trackUserEngagement.htm?companyID="+f);return g};this.getInsightTimelineData=function(g,f,k,h){var j=e.get(c+"/owlerAjax/getInsightTimeLineData.htm?feedId="+g+"&numberOfDataPoints="+h+"&companyId="+f+"&insightType="+k);return j}}]);var dataCardApp=angular.module("dataCardApp",["commonsApp","companyInfoApp"]);dataCardApp.constant("dataCardConstants",{dataCard_constants:{DC_COUNT_TO_ENABLE_THANK_YOU:10,TYC_TEMPLATE1:"template1",TYC_TEMPLATE2:"template2",TYC_TEMPLATE3:"template3",TYC_TEMPLATE4:"template4",TYC_DISTRIBUTION_TEMPLATE1:"distribution_template1",TYC_DISTRIBUTION_TEMPLATE2:"distribution_template2",TYC_DISTRIBUTION_TEMPLATE3:"distribution_template3"},dataCard_options_constants:{OPTION_NEGATIVE:"NEGATIVE",OPTION_NEUTRAL:"NEUTRAL",OPTION_POSITIVE:"POSITIVE",OPTION_NO:"NO",OPTION_YES:"YES",OPTION_OWLER:"OWLER",OPTION_OTHER:"OTHER",OPTION_DONT_KNOW:"DONT_KNOW",},});function toggleField(b,a){b.disabled=true;b.style.display="none";a.disabled=false;a.style.display="inline";a.focus()}dataCardApp.directive("datacard",["$document","$timeout","Constants","dataCardConstants","commonsAppServices","dataCardService","datacardCompanyService","$window","$filter","urlUtilService","mixpanelService",function(g,e,b,a,j,l,f,d,k,c,h){return{restrict:"E",replace:true,scope:{datacardSource:"@",companyId:"@",companyName:"@",showDesc:"@",userAgentName:"@"},link:function(q,p,o){q.dcConst=a.dataCard_constants;q.dcOptionConst=a.dataCard_options_constants;q.dataCardExist=false;q.showLoading=false;q.showDCSection=false;q.showThankyouMsg=false;q.showDC=false;q.showSpecialThanksMsg=false;q.noMoreDCAndEndText=false;q.showFlyWheelThanksMessage=false;q.showTYC1=false;q.showTYC2=false;q.showTYC3=false;q.showTYC4=false;q.showTYC5=false;q.showTYC6=false;q.showTYC7=false;q.showDistributedTYC1=false;q.showDistributedTYC2=false;q.showDistributedTYC3=false;q.showDCTemplate1=false;q.showDCTemplate2=false;q.textDCTemplate=false;q.showThanksDcIdk=false;q.showSkippedThanks=false;q.showDesc=false;q.isResponseDistibutionDataAvailable=false;q.showSpecialTYC=false;q.isCurrency=false;q.typeinPlaceHolder="";q.isEnabled=false;q.divBgEnabled=true;q.isTypeinBox=false;q.isSelectInput=false;q.saveEstimateControl={};q.selectdata={selectedUserJobInfo:""};q.textdata={typedInUserJobInfo:""};q.thanksInfo={};q.comparisonInfo={};q.dcData={};q.chainedDcData={};q.emailIdsList=[];q.dcDataInfo=[];q.dcInfoIndex=0;q.dcDataInfoLength=0;q.noOfQuestion=0;q.dcFamilyQuestionsCount=0;q.companyUrl="";q.thanksText="";q.tycText="";q.displayText="";q.questionText1="";q.questionText2="";q.questionText3="";q.dcFamilyName="";q.dcFamilyType="";var m=0;var n=false;q.showSelectContactsText=true;q.isDropDownVisible=false;q.isUserVerified=false;q.flywheelEmailList=[];q.emailEnteredInput="";q.datacardTypes=[];q.noOfCompetitors=0;q.newCompetitor=[];q.datacardTypes=[];if(typeof dcType!=="undefined"&&dcType!=null&&dcType!=""){q.datacardTypes.push(dcType)}o.$observe("datacardSource",function(s){if(!s){q.datacardSource=""}});o.$observe("companyId",function(s){if(!s){q.companyId=""}});o.$observe("showDesc",function(s){if(s){q.showDesc=true}});o.$observe("userAgentName",function(s){if(!s){q.userAgentName=""}});o.$observe("companyName",function(s){if(!s){q.companyName=""}});q.$on("overview-company-data",function(){var s=f.getCompanyData();q.competitors=s.top_competitors;if(q.competitors==null||q.competitors==undefined||q.competitors.length==0){q.empty_competitor=true;q.competitors=[];q.competitorSet1=[];q.competitorSet2=[]}else{q.noOfCompetitors=q.competitors.length;q.competitorSet1=[];q.competitorSet2=[];q.empty_competitor=false}});q.getParamsMapforDC=function(t,u,s){var v={userId:q.dcData.memberId,companyId:q.dcData.companyId,type:q.dcData.dcType,questionSpecificId:q.dcData.questionSpecificId,optionValue:t,dcSource:q.datacardSource,templateId:q.dcData.templateId,skipped:s,idontKnow:u,metaData:q.dcData.metaData};return JSON.stringify(v)};q.calculateDistributionPercentage=function(t){var u=1;var v="DONT_KNOW";for(var s=0;s1){q.questionText3=u[1];if(q.questionText3.startsWith("'")){if((s[s.length-1]=="s")||(s[s.length-1]=="S")){q.questionText2=s+"'"}else{q.questionText2=s+"'s"}q.questionText3=q.questionText3.replace("'s "," ")}else{q.questionText2=s}}};q.resetTYCTypes=function(){q.showTYC1=false;q.showTYC2=false;q.showTYC3=false;q.showTYC4=false;q.showDistributedTYC1=false;q.showDistributedTYC2=false;q.showDistributedTYC3=false};q.resetDCTypes=function(){q.resetTYCTypes();q.showDCTemplate1=false;q.showDCTemplate2=false;q.textDCTemplate=false;q.companyUrl="";q.thanksInfo={};q.comparisonInfo={};q.thanksText="";q.displayText="";q.showThanksDcIdk=false;q.showSkippedThanks=false};q.noDataCard=function(){q.showLoading=false;q.showDCSection=false;q.showThankyouMsg=false;q.showDC=false;q.showSpecialThanksMsg=false;q.showFlyWheelThanksMessage=false;q.noMoreDCAndEndText=true};q.hideDataCard=function(){q.showLoading=false;q.showDCSection=false;q.showThankyouMsg=false;q.showDC=false;q.showSpecialThanksMsg=false;q.showFlyWheelThanksMessage=false;q.noMoreDCAndEndText=false;q.dataCardExist=false};q.showDataCard=function(){var s={};q.showLoading=false;if(!q.isChainedQuestion){q.dcFamilyQuestionsCount++}q.weighInText="Weigh-in! Help the Owler community know more about "+q.dcData.tycInfo.companyName+".";q.companyUrl=q.getCompanyUrl(q.dcData.companyId,q.dcData.tycInfo.companyName);q.questionFraming(q.dcData.questionText,q.dcData.tycInfo.companyName);s=q.getDcViewedEventParams();l.sendViewedEvent(s);if(q.dcData.imageOptions){if(q.dcData.logoOptions){q.showDCTemplate2=true}else{q.showDCTemplate1=true}}else{q.textDCTemplate=true;if(q.isChainedQuestion){if(q.dcData.typeInOption){q.isTypeinBox=true;if(q.dcData.dcType=="EMPLOYEE_EXACT"){q.isCurrency=false;q.typeinPlaceHolder="ex. 500"}if(q.dcData.dcType=="REVENUE_EXACT"){q.isCurrency=true;q.typeinPlaceHolder="ex. $10,500,000"}}else{q.isTypeinBox=false}}else{if(q.dcData.dcType=="USER_FUNCTION"||q.dcData.dcType=="USER_TITLE"){q.isSelectInput=true}else{if(q.dcData.dcType=="COMPETITOR_SUGGESTION"){q.isTypeinBox=true}}}}if(q.dcData.specificWeighInText=="employee"){q.weighInText="Weigh-in! Exclusive for "+q.dcData.tycInfo.companyName+" employees."}else{if(q.dcData.specificWeighInText=="user"){q.weighInText="This will help us tailor content specifically for you."}}q.showDC=true;q.showDCSection=true;if(!q.dataCardExist){q.dataCardExist=true}};q.getDC=function(s){q.dcInfoIndex=0;q.dcDataInfoLength=0;q.noOfQuestion=0;q.dcFamilyQuestionsCount=0;var t=JSON.parse(s);if(t.datacardEntity!=null&&t.datacardEntity!=undefined){q.dcDataInfo=t.datacardEntity;q.noOfQuestion=t.noOfQuestion;q.dcFamilyName=t.dcFamilyName;q.dcfamilyScore=t.familyScore;q.dcDataInfoLength=q.dcDataInfo.length;q.dcData=q.dcDataInfo[q.dcInfoIndex++]}if(q.dcDataInfoLength>0){q.$emit("dataCardAvailable");q.showDataCard()}else{q.noDataCard()}};function r(){var s;if(q.datacardSource!=""&&q.companyId!=""){var u={dataCardSource:q.datacardSource,companyId:q.companyId,dataCardTypes:q.datacardTypes};var t=l.getDataCard(u);t.then(function(v){s=v;q.dataCardWholeInfo=s;if(s.data_card_info!=null&&s.data_card_info!=undefined){if(s.data_card_info.newDCJsonObject!=null&&s.data_card_info.newDCJsonObject!=undefined){q.getDC(s.data_card_info.newDCJsonObject)}else{q.noDataCard()}}else{q.noDataCard()}},function(v){q.$emit("noDataCardAvailable");q.hideDataCard()})}}r();j.getTemplateLoader("dataCard.html",b.cdnFullPath+"scripts/angular/dataCard/templates/dataCard.html")(p,q)}}}]);dataCardApp.service("dataCardService",["$http","$q","Constants",function(d,a,b){var c=b.apiUrl;this.getDataCard=function(g){var e=a.defer();var f=d.post(c+"/getDataCard.htm",g).success(function(h){e.resolve(h)}).error(e.reject);return e.promise};this.saveDataCardResponse=function(f){var e=d.post(c+"/storeWebDatacardResponse.htm",f)};this.sendViewedEvent=function(f){var e=d.post(c+"/storeDatacardUserHistory.htm",f);return e}}]);dataCardApp.service("datacardCompanyService",["$http","$q","Constants",function(h,b,c){var f=c.apiUrl;var g={};var d={};var e={};this.getCompanyProfileData=function(j){var l=f+"/getCompanyProfile.htm?companyId="+j;if(section!=undefined){l=l+"§ion="+section}var k=h.get(l);return k};this.refreshCompanyProfileData=function(j,k){var l={};l.companyId=j;l.components=k;l.refresh=true;if(section!=undefined){l.section=section}g=h.post(f+"/fetchCompanyProfileData.htm",l);return g};this.fetchCompanyProfileData=function(j,k){var l={};l.companyId=j;l.components=k;if(section!=undefined){l.section=section}g=h.post(f+"/fetchCompanyProfileData.htm",l);return g};this.addCpTopCompetitor=function(j,k,l){var m=h.get(f+"/addCPMemberCompetitor.htm?companyId="+j+"&competitorId="+k+"&noOfComp="+l);return m};var a={};this.registerCompanyData=function(j){a=j};this.getCompanyData=function(){return a};this.extendCompanyData=function(j){var k=angular.extend(a,j);a=k};this.setCurrentCompanyInfo=function(j){d=j};this.getCurrentCompanyInfo=function(){return d};this.setCurrentCompanyInsight=function(j){e=j};this.getCurrentCompanyInsight=function(){return e};this.getCompetitiveData=function(j){var k={};k.ownership=j.ownership;k.logo=j.logo;k.smallLogo=j.smallLogo;k.name=j.short_name;k.company_id=j.company_id;k.ceo_rating={value:"--"};k.ceo_name="Unknown";k.ceo_title="CEO";if(j.ceo_data!=undefined){k.ceo_logo=j.ceo_data.picture;k.ceo_small_logo=j.ceo_data.smallLogo;if(j.ceo_data.first_name!=undefined&&j.ceo_data.last_name!=undefined){k.ceo_name=j.ceo_data.first_name+" "+j.ceo_data.last_name}if(j.ceo_data.job_title!=undefined){k.ceo_title=j.ceo_data.job_title}if(j.CEO==undefined){k.ceo_rating.state=4}else{if(j.CEO.rating<=0){k.ceo_rating.state=3}else{k.ceo_rating.state=2}k.ceo_rating.value=j.CEO.rating}}else{k.ceo_rating.state=1}k.funding="--";if(j.FUNDING!=null&&j.FUNDING.amount!=undefined){k.funding=j.FUNDING.amount}k.EMPLOYEE=j.EMPLOYEE;k.REVENUE=j.REVENUE;k.CEO=j.CEO;return k};this.getAcquisitionInsightInfo=function(m,k){var j=undefined;if(k!=undefined&&k[companyId]!=undefined){var l=k[companyId].ACQUISITION;if(l!=undefined&&l[m]!=undefined){j=l[m]}}return j};this.getCompaniesForCPBanner=function(j,m,l){var k=f+"/companyProfile/getCompaniesForCPBanner.htm?companyId="+j+"&industryId="+m+"&industrySector="+l;var n=h.get(k);return n}}]);