(function(){var af="data-li-filter",y="data-li-nus-sort",U="data-li-update-date",az="data-li-update-id",o="data-li-update-request-id",r="data-li-update-next-batch-offset",T="data-li-update-next-track-offset",g="data-li-update-position",u="data-li-update-sb",aB="data-li-update-token",D="data-li-track-url",x="data-li-update-play-module-key",v="href",t="chron",Q="feed-no-more",ag="feed-unfilter",j="selected",ah="trigger",V="feed-item",al="filter-",b="filters-menu",d="feed-filters",I="droplist",L="open",aC="feed-sort-time",q="feed-sort-relevance",B="ad-iframe-4",aa="ul",ay="adPageView",n="beforeParamChange",l="beforeReplaceList",ak="paramChange",ap="realTimePollSuccess",Z="replaceList",R="loadingData",k="feed-wrapper",ab="today-news-wrapper",i="slick-sharing-cont",av="filters-wrapper",p="tabbed-filters-wrapper",G="filterType",K="lastUpdateId",e="nusRequestId",am="showHidden",ao="backfillOffset",h="orderBy",W="typeFilter",au="orderBySel",E="offset",aj="trkOffset",aA="cxtId",H="filterValue",O="paginationToken",S="trkMod",A="nusFilterBy-relevanceClick",f="nusFilterBy-timeClick",ar="nusTypeFilter-btnClick",J="nusTypeFilter-menuClick-",P="nusTypeFilter-unfilter",w="ALL",ae="COWORKERS",aD="COWORKERS_V2",Y="MYUPDATE",ai="NEWS",a="Relevance",z="Time",F=false,aw=false;
function at(aE){var aF;
for(aF in aE){if(aE.hasOwnProperty(aF)){if(aE[aF]===undefined){delete aE[aF]
}}}return aE
}function c(aE){return aE===Y
}function m(aE){return aE===ae||aE===aD
}function X(aE,aF,aG){return(aG&&((aE&&aG==="Relevance")||(aF&&aG==="Time")))
}function C(aE){return m(aE)||c(aE)
}function s(aE){return aE===z||aE===a
}function aq(aE){if(YAHOO.lang.isUndefined(aE)){aE=w
}return aE===w||aE===aD
}function M(){var aG,aI,aF,aE=YDom.get(aC),aH=YDom.get(q);
if(aE&&YDom.hasClass(aE,j)){aG=aE
}else{if(aH&&YDom.hasClass(aH,j)){aG=aH
}}if(aG){aF=aG.getElementsByTagName("a");
aI=aF[0]?aF[0].getAttribute(y):null
}return aI
}function an(aI,aF){var aH,aG,aE;
if(!s(aF)){aG=aI.innerHTML;
aH=YDom.getAttribute(aI,v);
aE=YDom.getElementsByClassName("sprite-facetsearch","span","nus-filters");
aE[0].innerHTML=aG;
YDom.setAttribute(aE[0],v,aH)
}}function N(aF,aG,aM){var aH,aE,aI,aL,aQ,aN,aP,aO,aJ,aK;
aE=aG.getElementsByTagName("a");
aI=aE.length;
if(aI>0){for(aK=aI-1;
aK>=0;
--aK){aL=aE[aK];
aQ=aL.getAttribute(af);
if(aQ){aN=aL.parentNode;
if(aQ===aF){if(aM){an(aL,aF)
}YDom.addClass(aN,j);
aP=aN;
aO=aN.parentNode;
if(aO!==aG){aJ=YDom.getChildren(aG);
aH=aJ[aJ.length-2]
}}else{YDom.removeClass(aN,j)
}}}if(aH){aG.replaceChild(aP,aH);
aO.insertBefore(aH,YDom.getFirstChild(aO))
}}}function ac(){var aE;
if(!this.refreshAdsEnabled){return
}aE={success:function(aK){var aH,aL,aJ,aI,aF,aG;
aJ=LI.domify(aK.responseText);
aH=YDom.getChildren(aJ);
aF=aH.length;
if(aF===3){for(aG=0;
aG<aF;
++aG){aI=YDom.get("ad-slot-"+(aG+1));
aL=aH[aG];
if(aI&&aL){aI.innerHTML=aL.innerHTML
}}}},scope:this};
YAHOO.util.Connect.asyncRequest("GET",this.adsUrl,aE)
}function ax(aE){var aF=aE.getAttribute(U);
return(aF&&!isNaN(aF))
}function ad(aH){var aF,aG,aE;
aF=YDom.getFirstChild(aH);
if(!aF.getAttribute(U)){aE=YDom.getFirstChildBy(aH,ax);
aG=parseInt(aE.getAttribute(U),10);
aF.setAttribute(U,aG)
}}(function(){LI.NusEvents=new YAHOO.util.EventProvider();
LI.NusEvents.createEvent(ay);
LI.NusEvents.createEvent(n);
LI.NusEvents.createEvent(l);
LI.NusEvents.createEvent(ak);
LI.NusEvents.createEvent(ap);
LI.NusEvents.createEvent(Z);
LI.NusEvents.createEvent(R)
}());
(function(){var aK={},aF=false,aE,aJ,aH,aG,aI=false;
aK[am]=false;
aK[h]=M();
function aL(aN,aM){if(aF){LI.NusEvents.fireEvent(n,aN);
aK[aM]=aN.newValue;
LI.NusEvents.fireEvent(ak,aN);
aF=false
}}LI.NusParams={remove:function(aM){delete aK[aM]
},get:function(aM){return aK[aM]
},getAll:function(){var aM={};
YAHOO.lang.augmentObject(aM,aK);
return aM
},set:function(aN,aP){var aM=aP.split("."),aO;
if(aN===W||aN===h){aE=aK[aN]
}if(aE!==aP){aF=true;
aJ=aM[0];
aK[aN]=aM[0]
}if(aM.length===2&&aN===W){aH=aN;
aG=aM[0];
aI=true;
this.set(h,aM[1]);
return
}aO={type:aH,key:aN,prevValue:aE,newValue:(aI)?aG+"."+aJ:aJ};
aI=false;
aL(aO,aN)
},silentSet:function(aM,aN){if(aE!==aN){aK[aM]=aN
}}}
}());
(function(){var aF=LI.HistoryManager,aL="orderBy",aE=LI.NusParams;
function aH(aM){var aO=YEvent.getTarget(aM),aN=aO.getAttribute(y),aP=aO.getAttribute(x);
if(aN!==null){YEvent.preventDefault(aM);
aE.silentSet(au,"true");
if(aN===a){WebTracking.trackUserAction(A)
}else{WebTracking.trackUserAction(f)
}if(aN===z&&this.isOzFeedEmbed){aE.remove(h)
}if(!this.historyOn||aF.failed||this.isOzFeedEmbed){aE.set(h,aN)
}else{if(aw&&LI.NusParams&&LI.NusParams.get(h)!==aN){aE.silentSet(W,w)
}aF.navigate(aL,aN)
}}if(this.isOzFeedEmbed&&aP!=null){aE.set(S,aP)
}}function aK(aO,aN,aQ){var aR=aQ.name,aP=aF.getCurrentState(aR),aM;
if(aR===aL&&aP!==aM){aM=YAHOO.util.History.getBookmarkedState(aR);
if(aM!==null){aE.set(h,aP)
}}}function aJ(aM){aE.set(h,aM)
}function aI(aM){if((aM.key===h)&&s(aM.newValue)){this.toggleSelection(aM.newValue)
}}function aG(aN,aM){this.el=aN;
this.historyOn=(aF!==undefined);
this.defaultToRelevance=aM.defaultToRelevance||false;
this.sortDefaultState=this.defaultToRelevance?a:z;
this.isOzFeedEmbed=aM.isOzFeedEmbed||false;
if(this.historyOn){aF.register({name:aL,scope:this,onHistoryStateChange:aJ,onHistoryManagerReady:aK,defaultState:this.sortDefaultState})
}YEvent.on(aN,"click",aH,null,this);
LI.NusEvents.subscribe(ak,aI,null,this)
}aG.prototype={toggleSelection:function(aN){var aO=YDom.get(q),aM=YDom.get(aC);
if(aN===z){YDom.removeClass(aO,j);
YDom.addClass(aM,j)
}else{if(aN===a){YDom.removeClass(aM,j);
YDom.addClass(aO,j)
}}this.replaceList()
}};
LI.NusSortMenu=aG
}());
(function(){var aM=LI.HistoryManager,aE="typeFilter",aG=LI.NusParams;
function aH(aN){var aP=YEvent.getTarget(aN),aO=aP.getAttribute(af);
if(aO!==null){YEvent.preventDefault(aN);
if(YDom.hasClass(aP,"btn")){WebTracking.trackUserAction(ar)
}else{WebTracking.trackUserAction(J+aO)
}if(!this.historyOn||aM.failed){aG.set(W,aO)
}else{aM.navigate(aE,aO)
}}else{if(YDom.hasClass(aP,ag)){YEvent.preventDefault(aN);
WebTracking.trackUserAction(P);
if(!this.historyOn||aM.failed){aG.set(W,w)
}else{aM.navigate(aE,w)
}}else{if(YDom.hasClass(aP,ah)||YDom.hasClass(aP.parentNode,ah)){YEvent.preventDefault(aN)
}}}}function aJ(aP,aO,aR){var aS=aR.name,aQ=aM.getCurrentState(aS),aN;
if(aS===aE){aN=YAHOO.util.History.getBookmarkedState(aS);
if(null!==aN){aG.set(W,aQ)
}}}function aI(aN){aG.set(W,aN)
}function aK(aN){if(aN.key===W&&C(aN.newValue)){aG.set(G,aN.newValue);
if(this.isCoworkersV2Enabled&&this.isVerifiedEmployee){aG.set(H,this.anetId)
}}if(aN.key===W&&C(aN.prevValue)){aG.remove(G);
if(this.isCoworkersV2Enabled&&this.isVerifiedEmployee){aG.remove(H,this.anetId)
}}}function aL(aN){if((aN.key===W||aN.type===W)&&!s(aN.newValue)&&aN.key!==au){this.toggleSelection(aN.newValue)
}}function aF(aO,aN){this.el=aO;
this.isTabbedFiltersEnabled=aN.isTabbedFiltersEnabled||false;
this.isCoworkersV2Enabled=aN.isCoworkersV2Enabled||false;
this.isVerifiedEmployee=aN.isVerifiedEmployee||false;
this.isNewRealTimeUX=aN.isNewRealTimeUX;
this.anetId=aN.anetId||0;
this.historyOn=(aM!==undefined);
this.filterDefaultState=w;
this.tabbedFiltersWrapper=null;
this.activeIndex=0;
if(this.historyOn){aM.register({name:aE,scope:this,onHistoryStateChange:aI,onHistoryManagerReady:aJ,defaultState:this.filterDefaultState})
}YEvent.on(aO,"click",aH,null,this);
LI.NusEvents.subscribe(n,aK,null,this);
LI.NusEvents.subscribe(ak,aL,null,this)
}aF.prototype={getSelectedFilterIndex:function(aR){var aP,aN=0,aS=aR.parentNode,aO=YDom.getChildren(aS),aQ=aO.length;
for(aP=0;
aP<aQ;
aP++){if(aO[aP]===aR){aN=aP;
break
}}return aN
},setSelectedClass:function(){var aN=0,aO;
if(!YAHOO.lang.isObject(this.tabbedFiltersWrapper)){this.tabbedFiltersWrapper=YDom.get(p)
}aO=YDom.getElementsByClassName(j,"li",this.tabbedFiltersWrapper);
if(aO.length>0){aN=this.getSelectedFilterIndex(aO[0]);
YDom.replaceClass(this.tabbedFiltersWrapper,al+this.activeIndex,al+aN);
this.activeIndex=aN
}},toggleSelection:function(aO){var aP=YDom.getElementsByClassName(d,aa,this.el),aN,aQ;
if(aP.length>0){aN=aP[0];
N(aO,aN,this.isNewRealTimeUX);
aQ=YDom.getElementsByClassName(I,"div",aN);
if(aQ.length>0){YDom.removeClass(aQ[0],L)
}if(this.isTabbedFiltersEnabled){this.setSelectedClass()
}}}};
LI.NusFilterMenu=aF
}());
(function(){function aF(aI){return !!aI.getAttribute(D)
}function aG(aI){var aK=YEvent.getTarget(aI),aL=aF(aK),aJ;
if(!aL){aK=YDom.getAncestorBy(aK,aF)
}if(aK){aJ=aK.getAttribute(D);
if(aJ){aH(aJ)
}}}function aH(aI){YAHOO.util.Connect.asyncRequest("GET",aI,function(){})
}function aE(aJ,aI){YEvent.on(aJ,"click",aG)
}LI.NusTracking=aE
}());
(function(){function aG(aH){if(aH.key===h||aH.key===W){this.replaceList()
}}function aF(aH,aI){ad(this.feedListEl)
}function aE(aI,aH){this.el=aI;
this.adsUrl=aH.adsUrl||"";
this.refreshAdsEnabled=aH.refreshAdsEnabled||false;
this.refreshAdsFrequency={"B":2,"C":2}[aH.refreshAdsFrequency]||1;
this.feedItemsUrl=aH.feedItemsUrl||"";
this.uscpItemsUrl=aH.uscpItemsUrl||"";
this.uscpItemsMyUpdatesUrl=aH.uscpItemsMyUpdatesUrl||"";
this.isTodayPromoEnabled=aH.isTodayPromoEnabled||false;
this.isTabbedFiltersEnabled=aH.isTabbedFiltersEnabled||false;
this.isCoworkersV2Enabled=aH.isCoworkersV2Enabled||false;
this.isVerifiedEmployee=aH.isVerifiedEmployee||false;
this.anetId=aH.anetId||0;
this.isTodayFeedEnabled=aH.isTodayFeedEnabled||false;
this.isUSCPSortingEnabled=aH.isUSCPSortingEnabled||false;
this.isUSCPTimeSortingEnabled=aH.isUSCPTimeSortingEnabled||false;
F=this.isUSCPSortingEnabled||this.isUSCPTimeSortingEnabled;
aw=((this.isUSCPSortingEnabled&&!this.isUSCPTimeSortingEnabled)||(!this.isUSCPSortingEnabled&&this.isUSCPTimeSortingEnabled));
this.feedWrapperEl=YDom.get(k);
this.feedListEl=YDom.getElementsByClassName(t,aa,this.feedWrapperEl)[0];
this.todayNewsContainer=null;
this.defaultGhostLabel="";
this.ghostLabelForCoworkers="";
this.visibilityValue="EVERYONE";
this.isShareBoxHidden=false;
this.isCoworkerFilterSelected=false;
if(!this.feedListEl){return
}if(this.isTodayPromoEnabled){this.todayNewsContainer=YDom.get(ab);
this.manageTodayModule()
}LI.NusEvents.subscribe(ak,aG,null,this);
LI.NusEvents.subscribe(ay,ac,null,this);
if(LI.NusInjection){LI.NusInjection.injectEvent.subscribe(aF,null,this)
}if(LI.NusTracking){LI.NusTracking(aI,aH)
}}aE.prototype={getTypeFilter:function(){return LI.NusParams.get(W)
},hideProcessingOverlay:function(){var aH=this.mask;
if(aH){aH.hide()
}},replaceList:function(){function aN(aQ){aQ.innerHTML='<li class="'+Q+'">'+LI.i18n.get("Nus-no-updates")+' <button class="btn-link '+ag+'">'+LI.i18n.get("Nus-click-to-see-all")+"</button></li>"
}var aK=this.feedListEl,aM=LI.NusParams.getAll(),aJ={},aI=[aJ,aM,am,h,S],aP=aM[W],aH,aL,aO={success:function(aS){var aR=aS.responseText,aQ={hasErrors:false,hasResults:false,selectedFilter:aP};
LI.NusEvents.fireEvent(l);
if(this.isTodayPromoEnabled){aL=this.todayNewsContainer;
if(YDom.inDocument(aL)){this.todayNewsContainer=aK.removeChild(aL)
}}if(aR){if(LI.isFullPage(aR)){aN(aK);
aQ.hasErrors=true
}else{aK.innerHTML=aR;
LI.Controls.parseFragment(aK);
if(LI.lazyLoadImages){LI.lazyLoadImages()
}LI.showAllDeferredImg(aK);
if(X(this.isUSCPSortingEnabled,this.isUSCPTimeSortingEnabled,aJ.orderBy)){this._swapFilterMenu(aP)
}}aQ.hasResults=true
}else{if(aP&&aP!==w){aN(aK)
}}if(!F&&window.li!==undefined&&li.NMPTodayFeed&&aP!==ai){li.NMPTodayFeed.hideFeed()
}if(this.isTodayPromoEnabled&&(YAHOO.lang.isUndefined(aP)||(aP===w))){this.manageTodayModule()
}if(this.isTabbedFiltersEnabled){this.toggleShareBoxVisibility(aP)
}this.hideProcessingOverlay();
LI.NusEvents.fireEvent(ay);
LI.NusEvents.fireEvent(Z,aQ)
},failure:function(aQ){aN(aK)
},scope:this};
if(aM[au]){aI.push(au)
}if(C(aM[G])){aI.push(G);
if(this.isCoworkersV2Enabled&&this.isVerifiedEmployee){aI.push(H)
}}else{aI.push(W)
}YAHOO.lang.augmentObject.apply(this,aI);
aJ=at(aJ);
if(aJ.orderBy){(function(){var aQ=aJ.orderBy.split(".");
aJ.orderBy=aQ[aQ.length-1]
}())
}if(X(this.isUSCPSortingEnabled,this.isUSCPTimeSortingEnabled,aJ.orderBy)){aH=(aP===Y)?LI.addParams(this.uscpItemsMyUpdatesUrl,aJ):LI.addParams(this.uscpItemsUrl,aJ)
}else{aH=LI.addParams(this.feedItemsUrl,aJ)
}if(!F&&(this.isTodayFeedEnabled&&aM[W]===ai)){if(this.isTabbedFiltersEnabled){this.toggleShareBoxVisibility(aP)
}if(aM[W]===ai&&li.NMPTodayFeed.triggerTodayFilterClick){li.NMPTodayFeed.triggerTodayFilterClick()
}}else{this.showProcessingOverlay();
LI.NusEvents.fireEvent(R);
YAHOO.util.Connect.asyncRequest("GET",aH,aO)
}},showProcessingOverlay:function(){var aH=this.mask;
if(!aH){aH=new LI.ProcessingOverlay(this.el);
this.mask=aH
}aH.show()
},manageTodayModule:function(){var aK,aJ,aI=this.todayNewsContainer,aH=!YDom.inDocument(aI);
if(YAHOO.lang.isNull(aI)){return
}aK=YDom.getElementsByClassName(V,"li",this.feedListEl)[0];
if(aK&&aK.id===ab){aK=YDom.getNextSibling(aK)
}if(!aK&&aH){this.feedListEl.appendChild(aI)
}else{aJ=parseInt(aK.getAttribute(U),10);
aI.setAttribute(U,aJ);
if(aH){YDom.insertBefore(aI,aK)
}}},toggleShareBoxVisibility:function(aK){var aJ=YDom.get(i),aI=aq(aK),aH=this.isShareBoxHidden?true:false;
if(!YAHOO.lang.isObject(aJ)){return
}if(aH&&aI){LI.show(aJ);
this.isShareBoxHidden=false
}else{if(!aH&&!aI){LI.hide(aJ);
this.isShareBoxHidden=true
}}},_setVisibilityToCoworkers:function(aL,aJ){var aH=this,aI=aJ[0],aN=aJ[1],aK=LI.NusParams.getAll(),aM=aK[W]
},_swapFilterMenu:function(aQ){var aN=YDom.getElementsByClassName(d,aa,av),aP=YDom.getElementsByClassName(b,"li"),aJ,aH,aI,aK,aM,aO,aL;
if(aN.length>0&&aP.length>0){aN=aN[0];
aP=aP[0];
aH=aN.parentNode;
aJ=YDom.getElementsByClassName(d,aa,aP);
if(aJ.length>0){N(aQ,aJ[0]);
aH.removeChild(aN);
aH.appendChild(aJ[0]);
aP.parentNode.removeChild(aP);
if(aQ===Y){aI=aJ[0].getElementsByTagName("a");
aK=aI.length;
for(aL=aK-1;
aL>=0;
--aL){aM=aI[aL];
aO=aM.getAttribute(af);
if(aO===Y){an(aM,Y);
break
}}}}}}};
LI.Nus=aE
}());
(function(){var aF="nusInfPag-noMore",aP="nusInfPag-showMoreClick",aI="nusInfiniteScroll";
function aE(){WebTracking.trackUserAction(aF)
}function aG(){if(typeof require==="function"){require(["externalTracking"],function(aT){aT.trackWithComScore(LI.getPageKey())
})
}}function aO(){WebTracking.trackUserAction(aP);
aG()
}function aN(){WebTracking.trackUserAction(aI);
aG()
}function aM(){var aV,aU,aW,aY,aT,aX;
aV=YDom.getChildren(this.el);
aU=aV[aV.length-1];
aW=aU.getAttribute(u)!=="_";
aY=YDom.get(B);
if(aW){this.disableParam(o)
}aX=this.infinitePagination.getRequestMade()+1;
if(this.refreshAdsSkipInitialLoad===false||aX!==1){if(aY&&aX%this.refreshAdsFrequency===0){aT=aY.src;
aY.src=aT
}}LI.NusEvents.fireEvent(ay)
}function aH(){var aT,aV=LI.NusParams.getAll(),aW={},aU=[aW,aV,am,h];
if(X(this.isUSCPSortingEnabled,this.isUSCPTimeSortingEnabled,aV.orderBy)&&this.uscpConfig){this.config=this.uscpConfig;
if(this.uscpItemsMyUpdatesUrl&&c(aV.filterType)){this.config.url=this.uscpItemsMyUpdatesUrl
}}else{this.config=this.signalConfig
}aT=new LI.InfinitePagination(this.el,this.config);
if(C(aV[G])){aU.push(G);
if(aV[G]===aD){aU.push(H)
}}else{aU.push(W)
}YAHOO.lang.augmentObject.apply(this,aU);
aW=at(aW);
aT.addParams(aW);
aT.triggerClickEvent.subscribe(aO);
aT.triggerScrollEvent.subscribe(aN);
aT.noMoreResultsEvent.subscribe(aE);
aT.addedToListEvent.subscribe(aK);
aT.fetchEvent.subscribe(aM,null,this);
return aT
}function aK(){if(LI.lazyLoadImages){LI.lazyLoadImages()
}LI.Events.fire("infinitePagination-newPage");
$(document).trigger("infinitePagination-newPage")
}function aJ(aT,aU){if(aU===Z||(aU===ak&&(aT.newValue==="NEWS.Time"||aT.newValue==="Relevance"))){if(this.infinitePagination){this.infinitePagination.hideNoMoreResultsEl();
this.infinitePagination.disableTriggers();
this.infinitePagination.destroy()
}if((!aT.hasErrors&&aT.hasResults)||(aT.newValue==="NEWS.Time"||aT.newValue==="Relevance")){this.infinitePagination=aH.call(this);
this.infinitePagination.enableTriggers()
}}}function aL(){this.infinitePagination.disableTriggers()
}function aS(){this.infinitePagination.enableTriggers()
}var aQ=_.once(function(aT){if(window.track&&window.track.errors){window.track.errors.push({code:window.track.errors.codes.HP_STREAM_SERVER_ERROR,message:aT.statusText||""})
}});
function aR(aU,aX){var a0=aX.isUSCPSortingEnabled||false,aW=aX.isUSCPTimeSortingEnabled||false,aY={},aT={i18n:{noMoreResults:LI.i18n.get("Nus-no-more-updates")},enableInfiniteScroll:aX.enableInfiniteScroll},aV=aX.onloadOrderBy||"",aZ=LI.NusParams,a1;
if(aZ&&!aZ.get(h)){aZ.set(h,aV)
}this.uscpBackfillUrl=aX.uscpBackfillUrl;
this.uscpBackfillTimeout=aX.uscpBackfillTimeout||3000;
a1=YAHOO.lang.merge(aT,{url:aX.url,attributes:[{urlParam:ao,attribute:u},{urlParam:K,attribute:az},{urlParam:e,attribute:o},{urlParam:E,attribute:g}],infiniteScrollStopThreshold:aX.infiniteScrollStopThreshold||""});
if(a0||aW){aY=YAHOO.lang.merge(aT,{url:aX.uscpUrl,attributes:[{urlParam:O,attribute:aB},{urlParam:aA,attribute:o},{urlParam:E,attribute:r},{urlParam:aj,attribute:T},{urlParam:S,attribute:x,notRequired:true}],infiniteScrollStopThreshold:aX.infiniteScrollStopThreshold||""})
}this.el=aU;
this.config=null;
this.isUSCPSortingEnabled=a0;
this.isUSCPTimeSortingEnabled=aW;
this.uscpConfig=aY;
this.signalConfig=a1;
this.uscpItemsMyUpdatesUrl=aX.uscpItemsMyUpdatesUrl||"";
this.refreshAdsFrequency={"B":2,"C":1}[aX.refreshAdsFrequency]||1;
this.refreshAdsSkipInitialLoad={"B":false,"C":true}[aX.refreshAdsFrequency]||false;
LI.NusEvents.subscribe(Z,aJ,Z,this);
LI.NusEvents.subscribe(ak,aJ,ak,this);
LI.NusEvents.subscribe(R,aL,null,this);
LI.NusEvents.subscribe(Z,aS,null,this);
this.infinitePagination=aH.call(this);
if(this.uscpBackfillUrl){this._backfillUscp()
}}aR.prototype={disableParam:function(aV){var aU,aT;
aT=this.infinitePagination.attributes.length;
for(aU=0;
aU<aT;
++aU){if(this.infinitePagination.attributes[aU].attribute===aV){this.infinitePagination.attributes[aU].notRequired=true
}}},_backfillUscp:function(){var aU=this,aT=this.infinitePagination,aV=aT.url;
setTimeout(function(){var aX=aT.callback,aW=aX&&_.bind(aX.failure,aT);
if(aW){aT.callback.failure=function(aY){aW(aY);
aQ(aY)
}
}aX.timeout=aU.uscpBackfillTimeout;
aT.url=aU.uscpBackfillUrl;
aT.fetchMoreResults();
aT.url=aV
},50)
}};
LI.NusInfinitePagination=aR
}());
(function(){var aF="realTimeTest",aK="nusRealTime-click";
function aG(){WebTracking.trackUserAction(aK)
}function aM(aN,aV,aS){var aU=aV[0],aT=aV[1],aQ=aU.length,aP=(aQ<10),aR,aO;
for(aR=0;
aR<aQ;
++aR){aO=aU[aR];
LI.showAllDeferredImg(aO);
if(aP){LI.highlight(aO)
}}ad(aT);
LI.NusEvents.fireEvent(ay)
}function aI(aN,aO){LI.NusEvents.fireEvent.apply(LI.NusEvents,[ap].concat(aO))
}function aJ(){var aU={},aS,aR=LI.NusParams.getAll(),aQ=[aU,aR,am,W,h,S],aP=aR[h]||"",aT=$(".feed-item"),aO=aT.length,aN;
this.config.sortType=aP;
aS=new LI.RealTimeResults(this.el,this.config);
aU[aF]="C";
YAHOO.lang.augmentObject.apply(this,aQ);
aU[h]=z;
while(aO--){aN=aT.eq(aO).attr(x);
if(aN){aU[S]=aN;
break
}}aU=at(aU);
aS.addParams(aU);
aS.notificationClickEvent.subscribe(aG);
aS.resultsInsertedEvent.subscribe(aM);
aS.pollSuccessEvent.subscribe(aI,null,this);
return aS
}function aH(aN){if(this.realTimeResults){this.realTimeResults.destroy();
LI.NusEvents.unsubscribe(Z,aH);
delete this.realTimeResults
}if(aN&&!aN.hasErrors&&aN.hasResults){$.proxy(aL,this)()
}}function aL(){this.realTimeResults=aJ.call(this);
LI.NusEvents.subscribe(Z,aH,null,this);
if(document.readyState==="complete"&&this.realTimeResults){this.realTimeResults.start()
}}function aE(aO,aN){this.realTimeResultsOn=aN.realTimeResultsOn||false;
if(this.realTimeResultsOn){this.el=aO;
this.config={method:"GET",url:aN.url,fetchUrl:aN.fetchUrl,uscpUrl:aN.uscpUrl,contextId:aN.contextId,moduleKey:aN.moduleKey,uscpFetchUrl:aN.uscpFetchUrl,realTimeMaxDisplay:aN.realTimeMaxDisplay,dateUrlParam:"queryAfter",dateAttribute:U,i18n:{newResult:aN.isNewRealTimeUX?LI.i18n.get("Nus-see-new-update"):LI.i18n.get("Nus-new-result"),newResults:aN.isNewRealTimeUX?LI.i18n.get("Nus-see-new-updates"):LI.i18n.get("Nus-new-results"),newResultsMax:aN.isNewRealTimeUX?LI.i18n.get("Nus-see-new-updates-max"):LI.i18n.get("Nus-new-results")},isNewRealTimeUX:aN.isNewRealTimeUX,progressivePoll:aN.progressivePoll||false,isFeedKatificationEnabled:aN.isFeedKatificationEnabled,interval:function(aP){return 1000*Math.pow(1.3,aP)+20000*(aP+1)
}};
$.proxy(aL,this)()
}}LI.NusRealTimeResults=aE
}());
(function(){var aU,aG,aP,aX=false,aW,aT,aJ=265,aI=2,aH;
function aF(aZ,aY){aU=aV(aZ,"jymbii-carousel");
aG=YDom.getElementsByClassName("carousel-wheel","ul",aZ)[0];
aP=YDom.getElementsByClassName("carousel-item","li",aG);
aW=aP.length;
aT=aW-aI;
aM();
YEvent.on(aZ,"click",aE);
YEvent.on(aZ,"mouseover",aR);
YEvent.on(aZ,"mouseout",aL)
}function aM(){if(aT<=0){aQ()
}aI=(aT>1)?2:1;
aH=aJ*aI
}function aQ(){var aY=YDom.getElementsByClassName("next","div",aU)[0];
YDom.addClass(aY,"disabled");
aX=true
}function aV(a0,aZ){var aY;
if(YDom.hasClass(a0,aZ)){aY=a0
}else{aY=YDom.getAncestorByClassName(a0,aZ)
}return aY
}function aO(aY){return aV(aY,"carousel-item")
}function aK(aY){return aV(aY,"carousel-wheel")
}function aS(aY){YDom.addClass(aY,"hidden")
}function aN(aY){var aZ;
if(!aX){aZ=parseInt(aG.style.left,10)||0;
aZ-=aH;
aG.style.left=aZ+"px";
aT-=aI
}aM()
}function aR(a0){var aZ=YEvent.getTarget(a0),aY=aO(aZ);
if(aY){YDom.addClass(aY,"active")
}if(YDom.hasClass(aZ,"remove-button")||YDom.hasClass(aZ,"next")){YDom.addClass(aZ,"active")
}}function aL(a0){var aZ=YEvent.getTarget(a0),aY=aO(aZ);
if(aY){YDom.removeClass(aY,"active")
}if(YDom.hasClass(aZ,"remove-button")||YDom.hasClass(aZ,"next")){YDom.removeClass(aZ,"active")
}}function aE(a0){var aZ,aY;
aZ=YEvent.getTarget(a0);
if(YDom.hasClass(aZ,"remove-button")){YEvent.preventDefault(a0);
aY=aO(aZ);
aS(aY);
aT--;
aM()
}else{if(YDom.hasClass(aZ,"next")){YEvent.preventDefault(a0);
aN(aG)
}}}LI.NusJYMBIICarousel=aF
}())
}());(function(){var b,a="feature-update-spot";
function d(){if(!b||!YDom.inDocument(b)){b=YDom.get("my-feed-post");
if(!b){b=LI.domify('<ul id="my-feed-post" class="chron"></ul>');
var e=YDom.get("feed-content");
if(e){e.insertBefore(b,YDom.getFirstChild(e))
}}}return b
}function c(){var e=YDom.getElementsByClassName("post-home","div")[0],f;
if(!e){return null
}f=(e)?YDom.getElementsByClassName("my-current","div",e)[0]:null;
if(!f){f=e.appendChild(LI.domify('<div class="my-current"></div>'))
}return f
}LI.NusInjection={injectEvent:new YAHOO.util.CustomEvent("inject_feed_item"),injectFeedItem:function(k){var l=d(),i=YDom.getFirstChild(l),g=YDom.getAncestorByClassName(l,"feed"),j=(g)?LI.Controls.getControl(g,"Nus"):null,e=(j)?j.getTypeFilter():null,f=(e&&e!=="ALL"&&e!=="SHARE"&&e!=="COWORKERS_V2"),h,n,m;
if(!f){h=LI.domify(k);
n=h.cloneNode(false);
if(i){if(YDom.hasClass(i,a)){YDom.insertAfter(n,i)
}else{l.insertBefore(n,i)
}}else{l.appendChild(n)
}n.innerHTML=h.innerHTML;
LI.Controls.parseFragment(n);
LI.highlight(YDom.getFirstChild(n));
LI.showAllDeferredImg(n)
}else{if(!i){LI.NusInjection.removeInjectionContainer()
}}this.injectEvent.fire()
},injectUrl:function(f,e){var i=1;
var h=e.onInject||null;
var j={success:function(l){var k=(l.getResponseHeader)?l.getResponseHeader["Content-Type"]:null;
if(k===null||k.indexOf("text/xml")>-1){if(i<7){pollTimeout=window.setTimeout(g,1300);
i++
}else{this.failure()
}}else{LI.NusInjection.injectFeedItem(l.responseText);
if(h&&h.success){h.success.call()
}}},failure:function(k){if(h&&h.failure){h.failure.call()
}},timeout:12000};
function g(){var k=YAHOO.util.Connect.asyncRequest("GET",f,j)
}g()
},removeInjectionContainer:function(e){if(!e){e=d()
}if(e){e.parentNode.removeChild(e)
}}}
})();
YAHOO.register("LI.NusInjection",LI.NusInjection,{});(function(){var v=LI.HistoryManager,t="typeFilter",H="data-li-filter",E="data-li-nus-sort",N="data-li-update-date",c="data-li-update-id",s="data-li-update-request-id",n="data-li-update-position",W="data-li-update-sb",M="chron",R="disabled",e="feed-no-more",q="feed-show-more",b="feed-unfilter",O="hide",P="selected",D="trigger",z="feed-wrapper",L="ALL",U="entityIds",l="filterBy",d="lastUpdateDate",x="lastUpdateId",y="listType",Q="nusRequestId",f="realTimeTest",g="showHidden",I="typeFilter",G="updatePositionOffset",w="updateType",aa="sb",Z="nusFilterBy-relevanceClick",S="nusFilterBy-timeClick",T="nusTypeFilter-btnClick",X="nusTypeFilter-menuClick-",A="nusInfPag-noMore",k="nusRealTime-click",m="nusInfPag-showMoreClick",B="nusTypeFilter-unfilter",V="COWORKERS",h="Relevance";
function Y(ae,ad){var ac;
for(ac=0;
ac<ad.length;
ac++){if(ad[ac]==ae){return true
}}return false
}function C(ad){var ac=YDom.get("more-nus-filters");
if(YDom.hasClass(ac,"collapsed")){YDom.removeClass(ac,"collapsed");
ad.innerHTML=LI.i18n.get("Nus-nav-less");
YDom.addClass(ad,"less");
YDom.insertAfter(ad.parentNode,ac)
}else{YDom.addClass(ac,"collapsed");
ad.innerHTML=LI.i18n.get("Nus-nav-more");
YDom.removeClass(ad,"less");
YDom.insertBefore(ad.parentNode,ac)
}}function p(ac){if(ac===V||ac==="alumni"||ac==="mygroup"||ac==="followcompany"){return true
}}function o(ad){var ac=ad.split("?")[1],ag={},af,ae;
ac=ac.split("&");
for(ae=ac.length-1;
ae>=0;
--ae){af=ac[ae].split("=");
ag[af[0]]=af[1]
}return ag
}function j(){var ac=this.infinitePagination,ag=ac.getLastResult(),ae=this.selectedFilter,ah={},af,ad=false;
ah[I]=(ae&&ae!==L)?ae:"";
ah[g]=this.showHidden;
ah[Q]=ag.getAttribute(s);
ah[G]=ag.getAttribute(n);
af=o(ac.getUrl());
if(this.relevanceEnabled){if(this.sort==h){ah[l]=this.sort;
if(ae&&ae!==L&&!this.listFilters){ah[w]=ae
}}else{if(af[l]){ad=true;
delete af[l]
}if(af[w]){ad=true;
delete af[w]
}}if(this.listFilters){delete ah[I];
if(af[U]&&typeof(this.paginationParams[U])==="undefined"){this.paginationParams[U]=" "
}ac.addParams(this.paginationParams)
}if(ad){ac.setUrl(this.feedItemsUrl);
ac.addParams(af)
}}ac.addParams(ah)
}function a(){if(!this.refreshAdsEnabled){return
}var ac={success:function(aj){var ag,ak,ai,ah,ae,af;
ai=LI.domify(aj.responseText);
ag=YDom.getChildren(ai);
ae=ag.length;
if(ae==3){for(af=0;
af<ae;
++af){ah=YDom.get("ad-slot-"+(af+1));
ak=ag[af];
if(ah&&ak){ah.innerHTML=ak.innerHTML
}}}},failure:function(ad){},scope:this};
YAHOO.util.Connect.asyncRequest("GET",this.adsUrl,ac)
}function u(){WebTracking.trackUserAction(A)
}function ab(){WebTracking.trackUserAction(k)
}function K(af,ag){var ah=ag[0],ae=ah.length,ac=(ae<10),ad,ai;
for(ad=0;
ad<ae;
++ad){ai=ah[ad];
LI.showAllDeferredImg(ai);
if(ac){LI.highlight(ai)
}}a.call(this)
}function J(af,ag){var ai,ad,ac,ah,ae=ag[0];
if(this.todayTest!="C"&&this.todayTest!="D"){return
}if(ae&&!this.todayInStream&&(this.selectedFilter=="ALL"||this.selectedFilter=="NEWS")){ai=YDom.get("linkedin-today");
ad=document.createElement("li");
ad.appendChild(ai);
YDom.addClass(ad,"feed-item");
ac=YDom.getFirstChild(this.feedListEl);
ah=parseInt(ac.getAttribute(N),10);
ad.setAttribute(N,ah);
this.feedListEl.insertBefore(ad,ac);
this.todayInStream=true
}}function F(){WebTracking.trackUserAction(m)
}function r(ag,ae){var ac,ad,af,ah;
this.el=ag;
this.entityIds;
this.listFilters;
af=ae.selectedFilter||L;
this.selectedFilter=af;
this.showHidden=false;
this.historyOn=true;
this.todayInStream=false;
this.sort="time";
this.swapMenu=false;
this.fetchSignalMenu=true;
this.signalFilterMenu=[];
this.paginationParams={};
this.adsUrl=ae.adsUrl||"";
this.defaultToRelevance=ae.defaultToRelevance||false;
this.refreshAdsEnabled=ae.refreshAdsEnabled||false;
this.relevanceEnabled=ae.relevanceEnabled||false;
this.signalMenuUrl=ae.signalMenuUrl||"";
this.feedItemsUrl=ae.feedItemsUrl||"";
this.realTimeResultsUrl=ae.realTimeResultsUrl||"";
this.realTimePollUrl=ae.realTimePollUrl||"";
this.realTimeResultsOn=ae.realTimeResultsOn||false;
this.progressiveRealTimePoll=ae.progressiveRealTimePoll||false;
this.realTimeTest=ae.realTimeTest||null;
this.todayTest=ae.todayTest||null;
this.feedWrapperEl=YDom.get(z);
this.feedListEl=YDom.getElementsByClassName(M,"ul",this.feedWrapperEl)[0];
this.showMoreBtn=YDom.getElementsByClassName(q,"a",this.feedWrapperEl)[0];
if(!this.feedListEl){return
}if(this.historyOn){v.register({name:t,scope:this,onHistoryStateChange:this._onTypeFilterHistoryStateChange,onHistoryManagerReady:this._onTypeFilterHistoryManagerReady,defaultState:af})
}ad=[{urlParam:aa,attribute:W},{urlParam:d,attribute:N},{urlParam:x,attribute:c}];
ac=new LI.InfinitePagination(this.feedListEl,{url:this.feedItemsUrl,attributes:ad,i18n:{noMoreResults:LI.i18n.get("Nus-no-more-updates")}});
ac.beforeFetchEvent.subscribe(j,null,this);
ac.fetchEvent.subscribe(a,null,this);
ac.triggerClickEvent.subscribe(F,null,this);
ac.noMoreResultsEvent.subscribe(u,null,this);
this.infinitePagination=ac;
if(this.realTimeResultsOn){switch(this.realTimeTest){case"B":case"C":ah=20000;
break;
case"D":ah=60000;
break;
case"E":ah=120000;
break;
case"F":default:ah=300000;
break
}this.realTimeInterval=function(ai){return 1000*Math.pow(1.3,ai)+ah*(ai+1)
}
}this.initRealTimeResults();
YEvent.on(ag,"click",this._onClick,this,true);
if(this.defaultToRelevance){this.toggleSort("Relevance")
}}r.prototype={_onClick:function(af){var ae=YEvent.getTarget(af),ad=ae.getAttribute(H);
if(ad!==null){YEvent.preventDefault(af);
if(YDom.hasClass(ae,"btn")){WebTracking.trackUserAction(T)
}else{WebTracking.trackUserAction(X+ad)
}this.entityIds=ae.getAttribute("data-li-entity-ids");
if(!this.historyOn||v.failed){this.setTypeFilter(ad)
}else{v.navigate(t,ad)
}}else{if(YDom.hasClass(ae,b)){YEvent.preventDefault(af);
WebTracking.trackUserAction(B);
if(!this.historyOn||v.failed){this.setTypeFilter(L)
}else{v.navigate(t,L)
}}else{if(YDom.hasClass(ae,D)||YDom.hasClass(ae.parentNode,D)){YEvent.preventDefault(af)
}}}if(this.relevanceEnabled){var ac=ae.getAttribute(E);
if(ac!==null){YEvent.preventDefault(af);
this.toggleSort(ac)
}}if(ae.id=="more-nus-filters-trigger"){YEvent.preventDefault(af);
C(ae)
}},_onTypeFilterHistoryManagerReady:function(ad,ac,af){var ag=af.name,ae=v.getCurrentState(ag);
if(ag===t){this.setTypeFilter(ae)
}},_onTypeFilterHistoryStateChange:function(ac){this.setTypeFilter(ac)
},getTypeFilter:function(){return this.selectedFilter
},hideProcessingOverlay:function(){var ac=this.mask;
if(ac){ac.hide()
}},initRealTimeResults:function(){var ae=this.selectedFilter,ac=this.feedItemsUrl,ad,af;
if(this.realTimeResults){this.realTimeResults.destroy()
}if(ae&&p(ae)||this.sort=="Relevance"){return
}if(this.realTimeResultsOn){ad=new LI.RealTimeResults(this.feedListEl,{method:"GET",interval:this.realTimeInterval,url:this.realTimePollUrl,fetchUrl:this.realTimeResultsUrl,dateAttribute:N,dateUrlParam:"sinceDate",progressivePoll:this.progressiveRealTimePoll,i18n:{newResult:LI.i18n.get("Nus-new-result"),newResults:LI.i18n.get("Nus-new-results")}});
af={};
if(ae&&ae!==L){af[I]=ae
}af[g]=this.showHidden;
if(this.realTimeTest){af[f]=this.realTimeTest
}if(ad){ad.addParams(af)
}ad.resultsInsertedEvent.subscribe(K,null,this);
ad.notificationClickEvent.subscribe(ab,null,this);
ad.pollSuccessEvent.subscribe(J,null,this);
if(LI.NusInjection){LI.NusInjection.injectFeedItem=function(){var ak=ad.pollSuccessEvent,aj=ad.getUrl(),ah=ad.getFetchUrl(),ag,al={};
if(ae&&ae!==L){al[I]=ae;
ag=LI.addParams(ah,al)
}function ai(){ak.unsubscribe(ai);
ad.insertPendingResults();
ad.setFetchUrl(ah);
ad.setUrl(aj)
}ak.subscribe(ai);
ad.setFetchUrl("");
ad.setUrl(ah);
if(ag){ad.setUrl(ag)
}ad.requestNow()
}
}this.realTimeResults=ad
}},replaceList:function(){function ac(aj){aj.innerHTML='<li class="'+e+'">'+LI.i18n.get("Nus-no-updates")+' <button class="btn-link '+b+'">'+LI.i18n.get("Nus-click-to-see-all")+"</button></li>"
}var ad=this.feedListEl,ag=this.selectedFilter,af=this.sort,ai={success:function(ak){var aj=ak.responseText;
if(aj){if(LI.isFullPage(aj)){ac(ad)
}else{ad.innerHTML=aj;
LI.Controls.parseFragment(ad);
LI.showAllDeferredImg(ad);
if(this.showMoreBtn){YDom.removeClass(this.showMoreBtn,R)
}}}else{if(ag&&ag!==L){ac(ad);
if(this.showMoreBtn){YDom.addClass(this.showMoreBtn,R)
}}}if(this.todayTest=="C"||this.todayTest=="D"){this.showTodayModule()
}this.hideProcessingOverlay();
this.infinitePagination.hideNoMoreResultsEl();
if(LI.NusInjection){LI.NusInjection.removeInjectionContainer()
}if(this.realTimeResults){this.realTimeResults.start()
}if(this.realTimeResults&&(ag&&p(ag))||this.sort=="Relevance"){this.realTimeResults.destroy()
}a.call(this);
if(this.relevanceEnabled){this.swapFilterMenu()
}},failure:function(aj){ac(ad)
},scope:this},ah={},ae;
this.listFilters=false;
this.paginationParams={};
if(ag&&ag!==L){if(ag=="myUpdate"||ag==V){ah[y]=ag;
this.listFilters=true;
this.paginationParams[y]=ag
}else{if(this.entityIds){this.listFilters=true;
if(ag=="mygroupall"){ag="mygroup"
}ah[y]=ag;
ah[U]=this.entityIds;
this.paginationParams[y]=ag;
this.paginationParams[U]=this.entityIds
}else{ah[I]=ag
}}}ah[g]=this.showHidden;
if(this.relevanceEnabled&&af==h){if(ah[I]){delete ah[I]
}if(ag!="myUpdate"){ah[l]=af
}if(ag&&ag!==L&&!this.listFilters){ah[w]=ag
}}ae=LI.addParams(this.feedItemsUrl,ah);
this.initRealTimeResults();
if(this.todayTest=="C"||this.todayTest=="D"){this.moveTodayModule()
}this.showProcessingOverlay();
YAHOO.util.Connect.asyncRequest("GET",ae,ai)
},swapFilterMenu:function(){if(this.swapMenu){var ad=YDom.get("nus-filters"),ac,ae=YDom.get("nus-relevance-filters");
if(ae&&ad){if(this.sort==h){YDom.addClass(ad,O);
YDom.removeClass(ae,O);
ac=YDom.getElementsByClassName("feed-filters","ul","feed-nhome")[0];
this.extractFilters(ae.getElementsByTagName("a"));
ac.insertBefore(ae,ad)
}else{YDom.removeClass(ad,O);
ae.parentNode.removeChild(ae)
}}this.swapMenu=false;
this.setTypeFilter(this.selectedFilter,false)
}},extractFilters:function(af){var ac,ad,ae=[];
for(i=af.length-1;
i>=0;
--i){ac=af[i];
ad=ac.getAttribute(H);
if(ad!=L){ae.push(ad)
}}this.signalFilterMenu=ae
},getSignalMenu:function(ad){var ac=this.signalMenuUrl;
callback={success:function(ag){var af=LI.domify(ag.responseText),ae;
ae=af.getElementsByTagName("a");
this.extractFilters(ae);
this.toggleSort(ad)
},failure:function(ae){showNoUpdatesMsg(feedListEl)
},scope:this},params=[];
params[g]=this.showHidden;
ac=LI.addParams(ac,params);
YAHOO.util.Connect.asyncRequest("GET",ac,callback)
},toggleSort:function(ae){var ad=YDom.get("feed-sort-relevance"),ac=YDom.get("feed-sort-time");
if(this.sort===ae){return
}this.swapMenu=true;
if(ae=="time"){YDom.removeClass(ad,P);
YDom.addClass(ac,P);
WebTracking.trackUserAction(S)
}else{YDom.removeClass(ac,P);
YDom.addClass(ad,P);
WebTracking.trackUserAction(Z)
}if(!this.listFilters){if(this.selectedFilter.toLowerCase()=="share"||this.selectedFilter.toLowerCase()=="group"||this.selectedFilter.toLowerCase()=="profile"||this.selectedFilter.toLowerCase()=="answer"||this.selectedFilter.toLowerCase()=="qa"){if(this.selectedFilter===this.selectedFilter.toUpperCase()){if(this.fetchSignalMenu){this.getSignalMenu(ae);
this.fetchSignalMenu=false;
return
}if(this.selectedFilter=="QA"){this.selectedFilter="Answer"
}else{this.selectedFilter=this.selectedFilter.charAt(0).toUpperCase()+this.selectedFilter.substr(1).toLowerCase()
}if(!Y(this.selectedFilter,this.signalFilterMenu)){this.selectedFilter=L
}}else{if(this.selectedFilter=="Answer"){this.selectedFilter="QA"
}else{this.selectedFilter=this.selectedFilter.toUpperCase()
}}}else{this.selectedFilter=L
}}this.sort=ae;
this.replaceList()
},setTypeFilter:function(ae,ad){var ag=null,ar,af,ac,am,at,ap,aj,al,ai,ao=false,ak,an,aq,ah;
if(typeof(ad)==="undefined"){ad=true
}if(this.selectedFilter===ae&&ad){return
}this.selectedFilter=ae;
af=YDom.getElementsByClassName("feed-filters","ul",this.el)[0];
ac=af.getElementsByTagName("a");
for(al=ac.length-1;
al>=0;
--al){am=ac[al];
at=am.getAttribute(H);
if(at){ap=am.parentNode;
ah=ap.getElementsByTagName("ul")[0];
if(ah){aq=ah.getElementsByTagName("a");
for(ai=0;
ai<aq.length;
ai++){ak=aq[ai];
an=ak.getAttribute(H);
if(an==this.selectedFilter){ao=true
}}}if(at===ae){YDom.addClass(ap,P);
if(ah){YDom.removeClass(ah,O)
}}else{YDom.removeClass(ap,P);
if(ah){if(!ao){YDom.addClass(ah,O)
}else{YDom.removeClass(ah,O)
}}}}}if(ad){this.replaceList()
}},showProcessingOverlay:function(){var ac=this.mask;
if(!ac){ac=new LI.ProcessingOverlay(this.el);
this.mask=ac
}ac.show()
},showTodayModule:function(){var ac=YDom.get("linkedin-today");
if(ac){if(this.selectedFilter=="ALL"||this.selectedFilter=="NEWS"){ac.style.display="block"
}else{ac.style.display="none"
}}},moveTodayModule:function(){var ad,ac;
if(this.todayInStream){ad=YDom.get("linkedin-today");
ac=YDom.get("feed-content");
if(ad&&ac){ac.insertBefore(ad,ac.childNodes[0])
}this.todayInStream=false
}}};
LI.NusRedesign=r
})();(function(f){var d=f.requires("underscore"),e=f.requires("jquery"),b=f.requires("BaseControl"),c=f.requires("asyncRequest"),a=f.requires("Events");
f.exports("scripts.FollowToggler",b.extend(function(h){var m={urlAttribute:"href",toggleClass:"is-following",toggleContainerClass:"",actionClassSuffix:"",globalEventSuffix:"",selectedClass:"",loadingClass:"loading",requestMethod:"GET"},g="follow-toggler:",j="action-",o="follow",i="unfollow",n=j+o,k=j+i,l={init:function(q,p){d.defaults(p,m);
h.init.call(this,q,p)
},beforeDecoration:function(){var p=this._config;
this._globalEventSuffix=(p.globalEventSuffix.length)?":"+p.globalEventSuffix:"";
this._followButtonClass="."+n+p.actionClassSuffix;
this._unfollowButtonClass="."+k+p.actionClassSuffix
},attachEventListeners:function(){var p=function(q,r){r.preventDefault();
q(r)
};
this._$el.on("click",this._followButtonClass,d.bind(p,this,d.bind(this.follow,this)));
this._$el.on("click",this._unfollowButtonClass,d.bind(p,this,d.bind(this.unfollow,this)))
},_makeRequest:function(p,r,q){if(LI&&LI.asyncRequest){c(this._config.requestMethod,p,{scope:this,success:r,failure:q,custom:{exception:q,error:q}})
}else{c({url:p,type:this._config.requestMethod,success:r,error:q})
}},_doAction:function(t,q,u){var s,p,r;
p=d.bind(function(v){t._$toggleContainer.removeClass(this._config.loadingClass);
v(t)
},this);
s=d.wrap(d.bind(this._triggerFailureEvent,this,t,q),p);
u=d.wrap(d.bind(u,this),p);
switch(q){case o:r=t._followUrl;
break;
case i:r=t._unfollowUrl;
break;
default:throw new Error("Unrecognized action")
}t._$toggleContainer.addClass(this._config.loadingClass);
this._makeRequest(r,u,s)
},_triggerFailureEvent:function(q,p){a.trigger(g+p+":failure"+this._globalEventSuffix,q._id,this)
},_triggerSuccessEvent:function(q,p){a.trigger(g+p+":success"+this._globalEventSuffix,q._id,this)
},_afterFollowSuccess:function(p){p._$toggleContainer.addClass(this._config.toggleClass);
p._$unfollowEl.addClass(this._config.selectedClass);
p._$followEl.removeClass(this._config.selectedClass)
},follow:function(p){var q=this._getFollowObj(p);
this._doAction(q,o,function(r){this._afterFollowSuccess(r);
if(d.isFunction(this._followCB)){this._followCB()
}this._triggerSuccessEvent(r,o)
})
},_followCB:null,_afterUnfollowSuccess:function(p){p._$toggleContainer.removeClass(this._config.toggleClass);
p._$unfollowEl.removeClass(this._config.selectedClass);
p._$followEl.addClass(this._config.selectedClass)
},unfollow:function(p){var q=this._getFollowObj(p);
this._doAction(q,i,function(r){this._afterUnfollowSuccess(r);
if(d.isFunction(this._unfollowCB)){this._unfollowCB()
}this._triggerSuccessEvent(r,i)
})
},_unfollowCB:null,_getFollowObj:function(q){var s={},r,p=e(q.target);
s._$toggleContainer=this._config.toggleContainerClass?p.closest("."+this._config.toggleContainerClass):this._$el;
s._$followEl=s._$toggleContainer.find(this._followButtonClass);
s._followUrl=s._$followEl.attr(this._config.urlAttribute);
s._$unfollowEl=s._$toggleContainer.find(this._unfollowButtonClass);
s._unfollowUrl=s._$unfollowEl.attr(this._config.urlAttribute);
r=s._followUrl.match(/(followee|memberId|channels)[=|\/](\d+)/i);
if(r&&r.length>=3){s._id=r[2]
}return s
}};
return l
}))
}(window.LIModules));LI.define("Discovery");
LI.Discovery=function(c,b){if(!c){return
}this.module=c;
this.config=b;
this.highlightedItem=0;
this.numVisible=this.config.numVisible||4;
this.pageWidth=this.config.pageWidth||244;
this.itemWidth=this.config.itemWidth||61;
this.currentItemWidth=this.config.currentItemWidth||65;
this.panelWidth=this.config.panelWidth||278;
this.peekWidth=this.config.peekWidth||27;
this.peek="right";
this.startMargin=0;
this.sliderOffset=this.config.sliderOffset||0;
this.panel=Y$(".discovery-panel",this.module,true);
this.tabSlider=this.module.getElementsByTagName("ol")[0];
this.detailList=this.tabSlider.getElementsByTagName("dl");
this.navNext=YDom.get(this.config.navNext)||Y$(".discovery-next",this.module,true);
this.navPrevious=YDom.get(this.config.navPrevious)||Y$(".discovery-prev",this.module,true);
this.itemList=this.tabSlider.getElementsByTagName("li");
this.imgList=this.tabSlider.getElementsByTagName("img");
this.loader=Y$(".discovery-spinner",this.module,true);
this.itemCount=this.itemList.length;
this.prefetchedPages=this.config.prefetchedPages||3;
this.startPage=0;
this.currentPage=0;
this.maxPages=this.itemCount%this.numVisible===0?(Math.floor(this.itemCount/this.numVisible)-1):Math.floor(this.itemCount/this.numVisible);
this.timer=null;
this.endpoint=this.config.endpoint||"";
this.offset=+this.config.offset||0;
this.fetch=this.config.fetch||false;
this.fetches=[];
this.fetchParams=this.config.fetchParams||{};
this.vieweeId=this.config.viewerId||LI.getQueryStringParam("id");
this.template=this.config.template;
this.max=+this.config.max||false;
this.rootContext=this.config.rootContext||"RightTop.discovery.people";
this.offsetKey=this.config.offsetKey||"offset";
this.recordsKey=this.config.recordsKey||"records";
this.panelTransitions=this.config.panelTransitions||false;
this.nextEvent=new YAHOO.util.CustomEvent("next",this);
this.prevEvent=new YAHOO.util.CustomEvent("prev",this);
if(b.legacy){var d=LI.Bidi,a="margin-"+(d?d.flip("left"):"left");
this.init=function(){YEvent.addListener(this.module,"click",this.handleClick,this,true);
YEvent.addListener(this.module,"focusin",this.handleFocus,this,true);
YEvent.addListener(this.imgList,"mouseover",this.handleHover,this,true);
YEvent.addListener(this.imgList,"mouseout",this.clearTimer,this,true);
this.setupNav();
this.setupTabs();
this.setupIndex();
this.updateHighlight()
};
this.handleClick=function(e){if(YEvent.getTarget(e)===this.navNext){if(this.currentPage<this.maxPages){this.goNext()
}else{if(this.fetch){this.fetchMore()
}}}if(YEvent.getTarget(e)===this.navPrevious){if(this.currentPage>this.startPage){this.goBack()
}}};
this.handleHover=function(f){var g=this,h=YEvent.getTarget(f),e=LI.getDataAttribute(h.parentNode.parentNode,"index");
this.timer=setTimeout(function(){g.updateHighlight(e)
},300)
};
this.goNext=function(){this.currentPage++;
this.startMargin=this.startMargin-this.pageWidth;
YDom.setStyle(this.tabSlider,a,this.startMargin+"px");
this.setupNav();
this.updateHighlight();
this.setupTabs()
};
this.goBack=function(){this.currentPage--;
this.startMargin=this.startMargin+this.pageWidth;
YDom.setStyle(this.tabSlider,a,this.startMargin+"px");
this.setupNav();
this.updateHighlight();
this.setupTabs()
};
this.fetchMore=function(){var e,m,k,i,g,h,j,o,f,n,l;
e=this.endpoint;
k=(this.currentPage*this.numVisible)+this.numVisible+this.offset;
i=this.numVisible*2;
g=this.fetchParams;
h=this.vieweeId;
l="";
j={id:h,offset:k,records:i};
for(m in g){if(g.hasOwnProperty(m)){j[m]=g[m]
}}for(m in j){if(j.hasOwnProperty(m)){l+=m+"="+j[m]+"&"
}}o=function(q){var p;
if(q.responseText){p=q.responseText.RightTop||q.responseText.Discovery||q.responseText
}if((p&&p.discovery&&p.discovery.people&&p.discovery.people.length<this.numVisible)||(this.max&&this.max<=this.itemCount+this.offset+this.numVisible)){this.fetch=false;
this.setupNav()
}if(p&&p.discovery&&p.discovery.people&&p.discovery.people.length>0){p.discovery.people=p.discovery.people.splice(0,this.numVisible);
this.itemCount=this.itemCount+this.numVisible;
this.maxPages++;
this.renderMore(p);
this.setupIndex();
this.goNext()
}LI.hide(this.loader)
};
f=function(){LI.hide(this.loader)
};
n={success:o,failure:f,scope:this};
LI.show(this.loader);
LI.asyncRequest("POST",e,n,l)
};
this.renderMore=function(f){var e=this.tabSlider;
YEvent.purgeElement(this.tabSlider,true);
dust.render(this.template,f.discovery,function(h,g){e.innerHTML+=g
});
YEvent.addListener(this.imgList,"mouseover",this.handleHover,this,true);
YEvent.addListener(this.imgList,"mouseout",this.clearTimer,this,true)
}
}this.init()
};
LI.Discovery.prototype={init:function(){var a=this.prefetchedPages*this.numVisible,b=this.itemCount;
if(a!==b){this.fetch=false
}YDom.addClass(this.module,"discovery-peek-right");
YEvent.addListener(this.module,"click",this.handleClick,this,true);
YEvent.addListener(this.module,"focusin",this.handleFocus,this,true);
YEvent.addListener(this.module,"mouseover",this.handleMouseOver,this,true);
YEvent.addListener(this.module,"mouseout",this.handleMouseOut,this,true);
this.setupNav();
this.setupTabs();
this.setupIndex();
this.updateHighlight()
},handleClick:function(a){if(YEvent.getTarget(a)===this.navNext){if(this.fetches.length&&this.currentPage===this.maxPages-1){YDom.addClass(this.module,"discovery-loading")
}else{if(this.fetch){if(this.currentPage+this.prefetchedPages>=this.maxPages&&this.currentPage<this.maxPages){this.goNext();
this.fetchMore()
}else{if(this.currentPage+this.prefetchedPages<this.maxPages){this.goNext()
}else{if(this.currentPage===this.maxPages){this.fetchMore(true)
}}}}else{if(this.currentPage<this.maxPages){this.goNext()
}}}}if(YEvent.getTarget(a)===this.navPrevious){if(this.currentPage>this.startPage){this.goBack()
}}},handleFocus:function(b){var a;
if(YEvent.getTarget(b).parentNode.parentNode===this.tabSlider){a=LI.getDataAttribute(YEvent.getTarget(b).parentNode,"index");
this.updateHighlight(a)
}},clearTimer:function(){if(this.timer){clearTimeout(this.timer)
}},handleMouseOver:function(c){var d=this,f=YEvent.getTarget(c),b=parseInt(LI.getDataAttribute(YDom.getAncestorByTagName(f,"li"),"index"),10),e=(this.currentPage+1)*this.numVisible,a=(this.currentPage)*this.numVisible;
if(b>=0){this.timer=setTimeout(function(){if(d.peek==="right"&&b===e){d.goTo(b,"right")
}else{if(d.peek==="left"&&b===a){d.goTo(b)
}}d.updateHighlight(b)
},250)
}},handleMouseOut:function(){this.clearTimer()
},emitEvent:function(b){var a=b+"Event";
if(this[a]){this[a].fire({currentPage:this.currentPage,maxPages:this.maxPages,itemsPerPage:this.numVisible,totalItems:this.itemCount})
}},goNext:function(){this.currentPage++;
this.fetchDeferredImages();
this.goTo(this.currentPage*this.numVisible);
this.updateHighlight();
this.setupNav();
this.setupTabs();
this.emitEvent("next")
},goBack:function(){this.currentPage--;
this.goTo(this.currentPage*this.numVisible);
this.updateHighlight();
this.setupNav();
this.setupTabs();
this.emitEvent("prev")
},goTo:function(a,b){b=b||"left";
if(a>=0){if(b==="left"){this.peek="right";
YDom.addClass(this.module,"discovery-peek-right");
YDom.removeClass(this.module,"discovery-peek-left");
this.startMargin=-(a*(this.itemWidth+this.sliderOffset))
}else{this.peek="left";
YDom.addClass(this.module,"discovery-peek-left");
YDom.removeClass(this.module,"discovery-peek-right");
this.startMargin=-((a-this.numVisible)*(this.itemWidth+this.sliderOffset)+this.peekWidth)
}YDom.setStyle(this.tabSlider,"margin-left",this.startMargin+"px")
}},setupNav:function(){if((this.itemCount<=this.numVisible&&!this.fetch)||(this.itemCount<this.numVisible)||(this.max&&this.max-this.offset<=this.numVisible)){this.hideNav()
}else{if(this.currentPage===this.startPage){YDom.addClass(this.navPrevious,"disabled");
YDom.removeClass(this.navNext,"disabled")
}else{if((this.currentPage===this.maxPages&&!this.fetch)||(this.max&&this.max<=this.itemCount+this.offset)){YDom.addClass(this.navNext,"disabled");
YDom.removeClass(this.navPrevious,"disabled")
}else{YDom.removeClass(this.navNext,"disabled");
YDom.removeClass(this.navPrevious,"disabled")
}}}},setupTabs:function(){var d,b=this.itemList,c,a;
for(c=0,a=this.itemCount;
c<a;
c++){if(b[c]){d=Y$("a",this.itemList[c],true);
if(d){YDom.setAttribute(this.itemList[c].getElementsByTagName("a")[0],"tabindex","-1")
}}}for(c=this.currentPage*this.numVisible,a=c+this.numVisible;
c<a;
c++){if(this.itemList[c]){d=Y$("a",this.itemList[c],true);
if(c<this.itemCount&&d){YDom.setAttribute(this.itemList[c].getElementsByTagName("a")[0],"tabindex","0")
}}}},setupIndex:function(){for(var a=0;
a<this.itemCount;
a++){if(this.itemList[a]){LI.setDataAttribute(this.itemList[a],"index",a)
}}},updateHighlight:function(a){YDom.removeClass(this.detailList[this.highlightedItem],"selected");
YDom.removeClass(this.itemList[this.highlightedItem],"discovery-active");
if(a){this.highlightedItem=a
}else{this.highlightedItem=this.currentPage*this.numVisible
}YDom.addClass(this.detailList[this.highlightedItem],"selected");
YDom.addClass(this.itemList[this.highlightedItem],"discovery-active");
if(this.panelTransitions){this.panel.className="discovery-panel";
YDom.addClass(this.panel,LI.getDataAttribute(this.itemList[this.highlightedItem],"type")+"-active")
}},fetchMore:function(n){var a=this.endpoint,k=this.itemCount+this.offset,g=(this.currentPage-this.maxPages+this.prefetchedPages)*this.numVisible,e=this.fetchParams,f=this.vieweeId,b="",j,d,o,m,h;
if(this.fetches.length){for(m=0,h=this.fetches.length;
m<h;
m+=1){k+=this.fetches[m];
g-=this.fetches[m]
}}this.fetches.push(g);
j={};
if(f){j.id=f
}j[this.offsetKey]=k;
j[this.recordsKey]=g;
for(o in e){if(e.hasOwnProperty(o)){j[o]=e[o]
}}for(o in j){if(j.hasOwnProperty(o)){b+=o+"="+j[o]+"&"
}}function p(s){var y=s.responseText,w=y,u=0,z,r,t,v,x=this.max,q=this.offset,l=this.itemCount,A=this.numVisible;
if(y&&y.Discovery){this.rootContext="Discovery.discovery.people"
}if(w){r=this.rootContext.split(".");
for(t=0,v=r.length;
t<v;
t++){if(!w[r[t]]){break
}z=w;
w=w[r[t]]
}u=w.length||0
}this.fetches.shift();
if(u<A||x&&x<=l+q+A){this.fetch=false
}if(YAHOO.lang.isArray(w)&&u>0){this.itemCount+=u;
this.maxPages+=Math.ceil(u/A);
this.renderMore(z);
this.setupIndex();
this.setupNav()
}if((n&&u>0)||YDom.hasClass(this.module,"discovery-loading")){this.goNext();
if(this.fetch&&YDom.hasClass(this.module,"discovery-loading")){this.fetchMore()
}}YDom.removeClass(this.module,"discovery-loading")
}function c(){this.fetches.shift();
YDom.removeClass(this.module,"discovery-loading")
}d={success:p,failure:c,scope:this};
if(n){YDom.addClass(this.module,"discovery-loading")
}LI.asyncRequest("POST",a,d,b)
},renderMore:function(e){var d=this.tabSlider,c=document.createElement("div"),f=document.createDocumentFragment(),b,a;
dust.render(this.template,e,function(h,g){c.innerHTML=g;
for(b=0,a=c.children.length;
b<a;
b+=1){f.appendChild(c.children[0])
}d.appendChild(f)
})
},fetchDeferredImages:function(){var b=this.imgList,a=b.length,d,c,e;
for(d=0;
d<a;
d++){c=b[d];
e=c.getAttribute("data-li-src");
if(e&&e!==c.src){c.src=e
}}},hideNav:function(){LI.hide(this.navNext);
LI.hide(this.navPrevious)
}};(function(g){var f=g.requires("jquery"),d=g.requires("underscore"),a=g.requires("BaseControl"),e=g.imports("log")||function(){},c=g.imports("Controls");
var b=a.extend(function(m){var j={triggerSelector:null,delegateEvent:false,animate:false,animationDuration:250,contentURL:null,viewMoreClass:"state-viewmore",viewLessClass:"state-viewless",viewLoadingClass:"state-viewloading"},n="height",h="button",k="scrollHeight",l="click",i="aria-expanded";
return{beforeDecoration:function(){this._initialHeight=this._$el.height();
this._contentLoaded=false;
this._config=d.defaults(this._config,j);
this._isEventDelegated=this._config.delegateEvent;
this._trigger=this._config.triggerSelector;
this._viewMore=this._config.viewMoreClass;
this._viewLess=this._config.viewLessClass;
this._viewLoading=this._config.viewLoadingClass;
this._isAjax=this._config.contentURL;
this.$buttons=(this._trigger)?f(this._trigger):this._$el.find(h);
if(this._isEventDelegated&&!this._trigger){e("If delegateEvent is set to true, triggerSelector must be specified")
}else{if(!this._isEventDelegated&&this.$buttons.length===0){e("No trigger found. You need to pass a triggerSelector in the config or have a button element nested in your expanding element")
}}if(this._$el.has(this._viewMore).length<=0){this._$el.addClass(this._viewMore)
}this._attachAriaRole()
},attachEventListeners:function(){this._toggleEventListeners(true)
},_attachAriaRole:function(){if(this._isAjax){this.$buttons.find(this._trigger?"a":h).attr("aria-hidden",true)
}},detachEventListeners:function(){this._toggleEventListeners(false)
},_toggleEventListeners:function(q){var o=q?"on":"off",p=this._handleTriggerClick;
if(this._isEventDelegated){this._$el[o](l,this._trigger,p)
}else{this.$buttons[o](l,p)
}},_handleTriggerClick:function(o){o.preventDefault();
if(this._config.contentURL&&!this._contentLoaded){this._contentLoaded=true;
this._toggleClasses(this._viewLess+" "+this._viewMore,this._viewLoading);
this._$el.load(this._config.contentURL,d.bind(this._afterContentLoaded,this))
}else{if(this._$el.hasClass(this._viewMore)||this._$el.hasClass(this._viewLoading)){this.expand();
this._toggleAriaExpand()
}else{this.collapse()
}}},_toggleAriaExpand:function(){var o;
if(this._isAjax){o=this._$el.attr(i);
this._$el.attr(i,!o)
}},_afterContentLoaded:function(){if(c){c.parseFragment(this._$el)
}if(!this._isEventDelegated){this.$buttons=this._$el.find(h);
this.attachEventListeners()
}this._newHeight=this._$el.prop(k);
this.expand();
this._toggleAriaExpand();
this._$el.focus()
},_toggleClasses:function(p,o){this._$el.removeClass(p).addClass(o)
},collapse:function(){this._toggleClasses(this._viewLess,this._viewMore);
if(this._config.animate){this._$el.animate({height:this._initialHeight},this._config.animationDuration)
}else{this._$el.css(n,this._initialHeight)
}},expand:function(){if(!this._newHeight){this._newHeight=this._$el.prop(k)
}this._toggleClasses(this._viewMore+" "+this._viewLoading,this._viewLess);
if(this._config.animate){this._$el.animate({height:this._newHeight},this._config.animationDuration)
}else{this._$el.css(n,this._newHeight)
}}}
});
g.exports("ViewStateToggle",b)
})(window.LIModules);(function(e){var d=e.requires("jquery"),c=e.requires("underscore"),a=e.requires("BaseControl"),b=a.extend(function(){return{attachEventListeners:function(){var f=this;
this._$el.on("submit",function(g){g.preventDefault();
f._handleFormSubmit()
})
},_handleFormSubmit:function(){var g=this._$el,k=g.attr("method"),h=g.attr("data-li-action")||g.attr("action"),i=g.serialize(),f=c.bind(this._successCallback,this),j=c.bind(this._failureCallback,this);
if(!this._validateForm()){return false
}if(h.indexOf("?")>-1){h=h.split("?");
i=h[1]+"&"+i;
h=h[0]
}d.ajax({type:k,beforeSend:this._beforeSend,url:h,data:i}).done(f).fail(j)
},_showError:function(i,h){var g=i.attr("aria-describedby"),f=d("#"+g);
i.addClass("error");
f.addClass("show");
if(h){f.html(h)
}},_validateForm:function(){return true
},_successCallback:function(f){},_failureCallback:function(f){},_beforeSend:function(f){}}
});
e.exports("AJAXFormSubmit",b)
}(window.LIModules));LI.define("BizPagesTypeAhead");
LI.BizPagesTypeAhead=function(c,a,f,d){var n=this,g=true,j=false,h=null;
this.node=c;
d=d||{};
this.setLargeImg=(YDom.getAncestorByClassName(c,"quotes"))?g:j;
this.hiddenInputFieldId=YDom.getAttribute(c,"data-li-input");
this.thumbImgId=YDom.getAttribute(c,"data-li-img");
this.defaultImgSrc=YDom.getAttribute(c,"data-li-noimg");
function l(){var q,p,r,o;
if(d.taType==="group"){q={create:function(s){return LI.DataSource.Helper.createXHRDataSource(a,LI.DataSource.Helper.defaultXHRConfig)
}}
}else{if(d.isDark){q="TYPE_MY_NETWORK"
}else{q="TYPE_ALL_FIRST_DEGREE_CONNECTIONS"
}}if($.isEmptyObject(d)){r=["DEFAULT","USE_NO_RESULTS"];
o=["DEFAULT"]
}else{r=["USE_NO_RESULTS"];
o=["DEFAULT","FORCE_SELECTION"]
}p=new LI.Typeahead2(c,{source:q,handleEventAs:r,renderAs:o});
m(p);
return p
}function b(){var p=YDom.get(n.hiddenInputFieldId),o=n.defaultImgSrc,q=YDom.get(n.thumbImgId);
n.node.value="";
p.value="";
YDom.setAttribute(q,"src",o);
YDom.setAttribute(q,"alt","");
LI.GhostLabel.Manager.show(n.node.form.id)
}function e(t,q){var u=q[2],s=u.imageUrl||n.defaultImgSrc,p=u.displayName||"",o=u.id||"",v=YDom.get(n.thumbImgId),r=YDom.get(n.hiddenInputFieldId);
r.value=o;
if(n.setLargeImg){s=s.replace(/shrink_40_40/,"shrink_80_80")
}if(v&&s){YDom.setAttribute(v,"src",s);
if(p){YDom.setAttribute(v,"alt",p)
}}}function m(o){var p=d.processExtraDataCustomMethod||e,q=d.enforceSelectionCustomMethod||b;
o.onItemSelect=function(s,r){if(p&&typeof(p)==="function"){p(s,r)
}};
o.onUnmatchedItemSelect=function(){if(q&&typeof(q)==="function"){q()
}}
}if(!LI.BizPagesTypeAhead.__cache&&!d.taType){if(!LI.BizPagesTypeAhead._isLoadingCache){LI.BizPagesTypeAhead._isLoadingCache=g;
YAHOO.util.Connect.asyncRequest("GET",a,{success:function(p){try{LI.BizPagesTypeAhead.__cache=JSON.parse(p.responseText);
LI.BizPagesTypeAhead._isLoadingCache=j;
if(f&&LI.BizPagesTypeAhead.__cache.resultList){LI.BizPagesTypeAhead.__cache.resultList.unshift(f)
}this.typeAhead=l()
}catch(o){LI.BizPagesTypeAhead.__cache=h;
LI.BizPagesTypeAhead._isLoadingCache=j
}},failure:function(){LI.BizPagesTypeAhead.__cache=h;
LI.BizPagesTypeAhead._isLoadingCache=j
}})
}else{var i=20;
var k=setInterval(function(){if(!LI.BizPagesTypeAhead._isLoadingCache){clearInterval(k);
this.typeAhead=l();
return
}if(i===0){clearInterval(k);
return
}i--
},500)
}}else{this.typeAhead=l()
}};LI.define("BizPagesEditAdmins");
LI.BizPagesEditAdmins=(function(){var n,s,e,m,i,k,q,d,a,j=",",t="",f=true;
function b(u){var v=/id=(\d+)/.exec(u);
if(v&&v[1]){return v[1]
}return u
}function p(){return(n.value.split(j))
}function g(A,y){var L=YAHOO.lang,I=y[2],K=(L.isUndefined(I.imageUrl)||L.isNull(I.imageUrl))?YDom.getAttribute(s,"data-li-defaultimgurl"):I.imageUrl,C=I.displayName||t,x=I.subLine||t,w=I.id||t,H=I.url.replace("/leo/",""),G,J,z,D,u,F,E,B,v;
q=q||YDom.getAttribute(s,"data-li-maxadmins");
d=YDom.get(n.id+"-error");
if(w){G=p();
if(!c.contains(G,w)){if(G.length>=q){YDom.setAttribute(d,"role","alert");
a=a||LI.i18n.get("maxNumAllowed");
LI.injectAlert(a,"error",d);
YAHOO.lang.later(3000,this,function(){LI.removeAlert(d,f)
})
}else{G.push(w);
G=c.numSort(G);
if(G[0]==""){G.shift()
}n.value=G.join(j);
J=i.cloneNode(true);
z=J.getElementsByTagName("a");
u=z[0];
H=YDom.getAttribute(u,"href").replace("typeahead","")+H;
u.href=H;
D=u.getElementsByTagName("img")[0];
D.src=K;
D.alt=C;
E=z[1];
E.href=H;
E.innerHTML=C;
B=J.getElementsByTagName("p")[1];
B.innerHTML=x;
e.add(J);
LI.show(J);
LI.highlight(J)
}}s.value=""
}}function o(u,v){LI.GhostLabel.Manager.show(n.form.id)
}function h(y){var x=YDom.getAncestorByTagName(y,"li"),v=x.getElementsByTagName("a")[0].href,u=b(v),w=p();
if(u){n.value=c.numSort(c.removeByValue(w,u)).join(j);
LI.fade(x);
LI.later(this,300,function(){try{e.remove(x)
}catch(z){}})
}}function l(u){if(u.value==="A"){LI.show(k);
LI.hide(postit)
}else{LI.hide(k);
LI.show(postit)
}}var r=function(z){var w,y=function(A){w=YDom.get(A)
},x=function(A){var B=YDom.getFirstChild(w);
if(B){YDom.insertBefore(A,B)
}else{w.appendChild(A)
}},u=function(A){w.removeChild(A)
},v=function(){return YDom.getLastChild(w)
};
y(z);
return{add:x,remove:u,getLastChild:v,node:w}
};
var c=(function(){return{removeByIndex:function(u,v){u.splice(v,1)
},removeByValue:function(v,x){for(var w=0,u=v.length;
w<u;
w++){if(v[w]==x){v.splice(w,1);
break
}}return v
},numSort:function(u){u.sort(function(w,v){return w-v
});
return u
},contains:function(v,x){for(var w=0,u=v.length;
w<u;
w++){if(v[w]==x){return true
}}return false
}}
})();
YEvent.on(window,"load",function(){s=YDom.get("ta-memberName");
n=YDom.get(YDom.getAttribute(s,"data-li-input"));
e=r("admin-manage-list");
m=e.getLastChild();
if(!m){return
}i=m.cloneNode(true);
k=YDom.get("admin-manage");
postit=YDom.get("attn-post-it");
YEvent.on(e.node,"click",function(u){var v=YEvent.getTarget(u);
if(YDom.hasClass(v,"admin-remove")){YEvent.preventDefault(u);
h(v)
}});
YEvent.on("admin-options","click",function(u){var v=YEvent.getTarget(u);
if(v.type==="radio"){l(v)
}})
});
return{addAdmin:g,enforceSelection:o}
})();(function(){var a=/Firefox\/(\d+\.\d+)/.exec(navigator.userAgent);
if(a&&a[1]&&parseFloat(a[1])<=3.6){var c=dust.escapeHtml,f="--",d=new RegExp(f,"g");
dust.escapeHtml=function(h){h=c(h);
if(typeof h==="string"&&h.indexOf(f)>-1){return h.replace(d,"&#45;&#45;")
}return h
}
}var b="__i18n__",g;
if(dust.helpers&&dust.helpers.i18n){g=dust.helpers.i18n;
dust.helpers.i18n=function(j,l,i,m){var k,h=m.templateName||l.getTemplateName();
if(m.key!=="undefined"&&h!=="undefined"){k=b+h+"__"+m.key;
if(dust.cache&&typeof dust.cache[k]==="function"){return dust.cache[k](j,l)
}}return g(j,l,i,m)
}
}LI.define("Profile.helper.injectAlertA11y");
var e;
LI.Profile.helper.injectAlertA11y=function(i,h){if(!i){return
}h=h||"success";
e=e||$("#alert-a11y");
if(!e.length){return
}LI.injectAlert({node:e[0],message:i,type:h})
};
LI.Profile.helper.replaceElem=function(i,k){var h=$(i),j=$(k);
if(h.length&&j.length){j.before(h).hide()
}}
})();(function(h){var g=h.requires("jquery"),d=h.requires("underscore"),c=h.imports("Controls"),b=h.requires("Events"),e,f,a=h.imports("Profile2");
g.fn.MiniProfile=function(k,j,i){e=e||h.imports("Bidi");
this.id=k;
this.$panel=j;
this.content="";
this.manager=i;
this.followToggler="";
e=e||h.imports("Bidi");
this.isRTL=e?e.flip(false,true):false
};
g.extend(g.fn.MiniProfile.prototype,{calculatePosition:function(I){var B=this,n=B.$panel,o=n.find(".new-miniprofile-content"),y=g(window).height(),H=g(window).width(),p=g(document).scrollTop(),j=g(document).scrollLeft(),v={},r=0,G=0,m=0,k=0,t,F,E={},x=B.manager.getDefaultShownBelow(),u=false,w=false,q,A=n.find(".company-miniprofile-content, .school-miniprofile-content").length,C=80,s=B.isRTL,l=s?(A?69:124):80,z=s?-159:(A?-70:-115),i=A?15:10,D=10;
g("img",I).each(function(J){I=g(this);
return false
});
r=I.innerHeight();
G=I.innerWidth();
n.css({"visibility":"hidden"}).removeClass("hidden");
m=o.outerHeight();
k=o.outerWidth();
n.addClass("hidden").css({"visibility":"visible"});
t={x:I.offset().left+(G/2),y:I.offset().top};
F={x:I.offset().left+(G/2),y:I.offset().top+r};
if(F.y+m<p+y){w=true
}if(t.y-m-C>p){u=true
}if(x&&w){v.bottom=true
}else{if(!x&&u){v.top=true
}else{if(w){v.bottom=true
}else{v.top=true
}}}q=(e)?e.flip(k,-1*k):k;
if(t.x+q+z<j+H){v.right=true
}else{if(t.x-q+l>j){v.left=true
}else{v.right=true
}}if(v.top){E.y=t.y-m-i
}if(v.bottom){E.y=F.y+i
}if((v.left&&!s)||(v.right&&s)){E.x=t.x-k+l
}if((v.right&&!s)||(v.left&&s)){E.x=t.x+z-D
}return{x:E.x,y:E.y,directions:v}
},id:function(){return this.id
},getContent:function(){return this.content
},show:function(j){var i=this;
i.$node=j;
i.manager.loadProfile(j,{success:function(n){var k=i.manager.config,l=i.manager,p=i.$panel,o=l.$lastSelectedNode,m;
if(n){i.content=n;
if(l.areDifferentLinkNodes(o,j)){return
}p.html(n);
if(c&&c.parseFragment){c.parseFragment(p.get(0))
}m=p.find(".company-miniprofile-content, .school-miniprofile-content");
if(m.length){f=f||h.imports("scripts.FollowToggler");
if(!i.followToggler){b.bind("follow-toggler:follow:success follow-toggler:unfollow:success",d.bind(i.afterFollowingCompany,i))
}if(f){i.followToggler=new f(m,{toggleContainerClass:"follow-actions-container",selectedClass:"current",companyId:i.id})
}}var q=i.calculatePosition(j);
if(q){p.css({"visibility":"hidden"}).removeClass("hidden").offset({top:q.y,left:q.x}).addClass("hidden").css({"visibility":"visible"});
i.setPointer(q.directions);
i.manager.showPanel(p)
}}}});
return i
},afterFollowingCompany:function(k,i){if(this.id===i._config.companyId){var j=g("<div>").append(i._$el.clone()).html();
this.manager.updateMiniProfileInCache(this.$node,j)
}},setPointer:function(n){var m=this.$panel,l=[],j,k;
l=[];
for(var i in n){l.push(i)
}m.find(".triangle").removeClass("top bottom left right").addClass(l.join(" "));
if(m.find(".miniprofile-shared-connections").length){j="triangle-bottom";
k="triangle-bottom-grey"
}else{j="triangle-bottom-grey";
k="triangle-bottom"
}m.find("."+j).removeClass(j).addClass(k)
}});
g.fn.MiniProfileManager=(function(j){var i={};
g.extend(i,{config:j,profileRegistry:{},defaultShownBelow:false,$panel:null,showPanelTimer:null,currentProfileId:null,mouseInsidePanel:false,mouseInsideLink:false,$lastSelectedNode:null,$lastMouseOverNode:null,isHiding:null,initPanel:function(){var k=this,l=k.config,m;
if(!k.$panel){m=g("<div></div>");
k.$panel=m;
m.attr("id",k.config.PANEL_ID_NAME);
g("body").append(m);
m.css("z-index",k.config.zIndex);
m.mouseenter(function(){k.mouseInsidePanel=true
});
m.mouseleave(function(){k.mouseInsidePanel=false
})
}},showPanel:function(k){k.removeClass("hidden")
},hidePanel:function(k){k.addClass("hidden")
},isPanelHidden:function(k){return k.hasClass("hidden")
},setDefaultShownBelow:function(k){this.defaultShownBelow=k
},getDefaultShownBelow:function(){return this.defaultShownBelow
},delayShowPanel:function(l,m){var k=this;
k.showPanelTimer=setTimeout(function(){if(k.mouseInsideLink){l.show(m)
}k.showPanelTimer=null
},j.SHOW_PANEL_DELAY)
},delayHidePanel:function(o,l){var k=this,m=k.config,n;
if(k.mouseInsidePanel){return
}k.isHiding=true;
setTimeout(function(){var p=k.areDifferentLinkNodes(l,k.$lastSelectedNode);
if((!k.mouseInsidePanel&&!k.mouseInsideLink)||(k.mouseInsideLink&&p)){k.hidePanel(o)
}if(k.isHiding){k.isHiding=false;
n=k.registerMiniProfile(k.$lastSelectedNode);
if(p){k.delayShowPanel(n,k.$lastSelectedNode)
}}},m.HIDE_PANEL_DELAY)
},loadProfile:function(l,u){var v=this,o=v.config,n="throw /*LI:DBE*/ 1;",m=l.attr(o.MINIPROFILE_JS_ATTRIBUTE_NAME),w=l.attr(o.MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME)||"tl/shared/profile/mini_profile_shell",k=l.attr(o.MINIPROFILE_URL_ATTRIBUTE_NAME),r=(typeof window.console!=="undefined")?window.console:{log:g.noop()},p,t,s;
if(k){t=v.getProfileContent(k);
if(t){u.success(t);
return
}}if(m){g.getScript(m)
}var q=function(x){if(x){u.success(x);
g("body").trigger(o.NEW_CONTENT_EVENT)
}};
g.ajax({type:"GET",url:k,headers:{"X-IsAJAXForm":1},data:"",dataType:"text",success:function(C,x,y){var A,z=false,B=a,E=y.getResponseHeader("content-type")||"";
if(E.indexOf("html")!==-1){u.success(C)
}else{if(B&&B.Render){B.Render.render({template:w,response:y,success:q})
}else{if(w&&window.dust){try{C=C.replace(n,"");
A=g.parseJSON(C);
dust.render(w,A.content,function(G,F){if(G){return
}q(F)
})
}catch(D){}}}}},error:function(x,z,y){}})
},getProfileContent:function(k){var l=this.profileRegistry[k];
if(!l){return null
}return l.getContent()
},getMiniProfile:function(m){var k=this,l=m.attr(j.MINIPROFILE_URL_ATTRIBUTE_NAME);
return k.profileRegistry[l]
},registerMiniProfile:function(p){var l=this,n=l.config,o=l.getMiniProfile(p),k,m;
k=p.attr(n.MINIPROFILE_ID_ATTRIBUTE_NAME);
if(!k){k="LI-"+Math.floor(Math.random()*9999999);
p.attr(n.MINIPROFILE_ID_ATTRIBUTE_NAME,k)
}if(!o){m=p.attr(n.MINIPROFILE_URL_ATTRIBUTE_NAME);
o=new g.fn.MiniProfile(k,l.$panel,l);
l.profileRegistry[m]=o
}return o
},updateMiniProfileInCache:function(m,l){var k=m.attr(j.MINIPROFILE_URL_ATTRIBUTE_NAME);
this.profileRegistry[k].content=l
},areDifferentLinkNodes:function(n,m){var k=this,l=k.config;
return(!n||!m||n.attr(l.MINIPROFILE_ID_ATTRIBUTE_NAME)!==m.attr(l.MINIPROFILE_ID_ATTRIBUTE_NAME))
},handleMouseEvent:function(r){var s=this,n=s.config,m=g(r.target),o,q,k,p,l;
if(!s.$panel){s.initPanel()
}s.$lastMouseOverNode=m;
o=m.closest("."+n.MINIPROFILE_SEARCH_CLASS_NAME);
if(o.length){s.mouseInsideLink=true;
p=s.registerMiniProfile(o);
if(!s.currentProfileId||s.currentProfileId!==p.id){s.currentProfileId=p.id;
if(s.showPanelTimer){l=s.showPanelTimer;
window.clearTimeout(l);
l=null
}s.$lastSelectedNode=o;
if(s.isHiding){}else{s.isHiding=false;
s.delayShowPanel(p,o)
}}}else{s.mouseInsideLink=false;
if(s.mouseInsidePanel){return
}s.currentProfileId=null;
if(!s.isPanelHidden(s.$panel)&&s.$panel.find("."+n.MINIPROFILE_CONTENT_CLASS_NAME).length){s.delayHidePanel(s.$panel,s.$lastSelectedNode)
}}}});
return i
}({SHOW_PANEL_DELAY:500,HIDE_PANEL_DELAY:400,PANEL_ID_NAME:"lui-mini-profile-body",PANEL_ZINDEX:1007,MINIPROFILE_SEARCH_CLASS_NAME:"new-miniprofile-container",MINIPROFILE_CONTENT_CLASS_NAME:"new-miniprofile-content",MINIPROFILE_ID_ATTRIBUTE_NAME:"data-li-miniprofile-id",MINIPROFILE_JS_ATTRIBUTE_NAME:"data-li-getjs",MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME:"data-li-tl",MINIPROFILE_URL_ATTRIBUTE_NAME:"data-li-url",NEW_CONTENT_EVENT:"show-mini-profile"}));
g(function(){var j=g(document);
function i(l){g.fn.MiniProfileManager.handleMouseEvent(l)
}(function k(){if(j.on){j.on("mouseover",i)
}}())
})
}(window.LIModules));(function(){dust.register("tl/shared/profile/mini_profile_info",N);
function N(ax,aw){return ax.section(aw.get(["MiniProfile"],false),aw,{"block":M},null)
}function M(ax,aw){return ax.section(aw.get(["mini_profile"],false),aw,{"block":L},null)
}function L(ax,aw){return ax.exists(aw.get(["showFollow"],false),aw,{"block":K},null).write('<div class="miniprofile-body ').helper("eq",aw,{"block":J},{"key":H,"value":"enabled"}).write('"><p class="photo">').exists(aw.get(["pictureId"],false),aw,{"else":G,"block":F},null).write('</p><p class="name"><a tabindex="-1" aria-hidden="true" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-name-link" ').helper("eq",aw,{"block":E},{"key":aw.get(["lix_enable_ugc_align"],false),"value":"enabled"}).write(">").reference(aw.get(["full_name"],false),aw,"h").write("</a>").exists(aw.get(["networkDistance"],false),aw,{"block":ar},null).helper("eq",aw,{"block":ao},{"key":al,"value":"enabled"}).write('</p><div class="title" title="').reference(aw.get(["headline"],false),aw,"h").write('"><span ').helper("eq",aw,{"block":ak},{"key":aw.get(["lix_enable_ugc_align"],false),"value":"enabled"}).write(">").reference(aw.get(["fmt__trunc_headline"],false),aw,"h").write('</span></div><div class="miniprofile-actions">').helper("eq",aw,{"else":aj,"block":p},{"key":e,"value":"unMention"}).write("</div></div>").exists(aw.get(["showPositionIndustry"],false),aw,{"block":d},null)
}function K(ax,aw){return ax
}function J(ax,aw){return ax.exists(aw.get(["isInfluencer"],false),aw,{"block":I},null)
}function I(ax,aw){return ax.write("is-expanded")
}function H(ax,aw){return ax.reference(aw.get(["lix_influencerIcon"],false),aw,"h")
}function G(ax,aw){return ax.write('<a tabindex="-1" aria-hidden="true" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-photo-placeholder"><img aria-hidden="true" alt="').reference(aw.get(["full_name"],false),aw,"h").write('" src="').reference(aw.get(["no_photo_img_link"],false),aw,"h").write('" width="100" height="100" /></a>')
}function F(ax,aw){return ax.write('<a tabindex="-1" aria-hidden="true" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-photo"><img aria-hidden="true" tabindex="-1" alt="').reference(aw.get(["full_name"],false),aw,"h").write('" src="').reference(aw.get(["resolved_photo"],false),aw,"h").write('"/></a>')
}function E(ax,aw){return ax.helper("dirAttr",aw,{},{"text":aw.get(["full_name"],false)})
}function ar(ax,aw){return ax.helper("gt",aw,{"block":aq},{"key":aw.get(["networkDistance"],false),"value":"0","type":"number"})
}function aq(ax,aw){return ax.write('<span class="degree">').helper("partial",aw,{"block":ap},{"distanceP":aw.get(["networkDistance"],false),"fNameP":aw.get(["firstName"],false),"lNameP":aw.get(["lastName"],false)}).write("</span>")
}function ap(ax,aw){return ax.partial("tl/shared/degree_icon",aw,null)
}function ao(ax,aw){return ax.exists(aw.get(["isInfluencer"],false),aw,{"block":an},null)
}function an(ax,aw){return ax.partial("tl/shared/badge_image_icon",aw,{"iconTypeP":"influencer","influencerName":am,"trackingCode":"inf_bdg_prof"})
}function am(ax,aw){return ax.reference(aw.get(["firstName"],false),aw,"h")
}function al(ax,aw){return ax.reference(aw.get(["lix_influencerIcon"],false),aw,"h")
}function ak(ax,aw){return ax.helper("dirAttr",aw,{},{"text":aw.get(["fmt__trunc_headline"],false)})
}function aj(ax,aw){return ax.exists(aw.get(["showPositionIndustry"],false),aw,{"block":ai},null).exists(aw.get(["networkDistance"],false),aw,{"else":ae,"block":Z},null)
}function ai(ax,aw){return ax.write('<div class="location-industry">').exists(aw.get(["fmt_location"],false),aw,{"block":ah},null).exists(aw.get(["fmt_industry"],false),aw,{"block":af},null).write("</div>")
}function ah(ax,aw){return ax.reference(aw.get(["fmt_location"],false),aw,"h",["s"]).exists(aw.get(["fmt_industry"],false),aw,{"block":ag},null)
}function ag(ax,aw){return ax.write("<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>")
}function af(ax,aw){return ax.reference(aw.get(["fmt_industry"],false),aw,"h")
}function ae(ax,aw){return ax.exists(aw.get(["showFollow"],false),aw,{"else":ad,"block":aa},null)
}function ad(ax,aw){return ax.exists(aw.get(["showConnect"],false),aw,{"else":ac,"block":ab},null)
}function ac(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function ab(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["connect"],false),aw,"h").write('" role="button">').reference(aw.get(["miniprofile_connect"],false),aw,"h").write("</a>")
}function aa(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["follow"],false),aw,"h").write('" role="button">').reference(aw.get(["miniprofile_follow"],false),aw,"h").write("</a>")
}function Z(ax,aw){return ax.helper("gt",aw,{"block":Y},{"key":aw.get(["networkDistance"],false),"value":"-1","type":"number"})
}function Y(ax,aw){return ax.helper("select",aw,{"block":X},{"key":q})
}function X(ax,aw){return ax.helper("eq",aw,{"block":W},{"value":"0"}).helper("eq",aw,{"block":V},{"value":"1"}).helper("eq",aw,{"block":D},{"value":"2"}).helper("default",aw,{"block":v},null)
}function W(ax,aw){return ax.write('<a class="miniprofile-button bt-view-profile" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function V(ax,aw){return ax.exists(aw.get(["showSendMessage"],false),aw,{"else":U,"block":P},null)
}function U(ax,aw){return ax.exists(aw.get(["showFollow"],false),aw,{"else":T,"block":R},null)
}function T(ax,aw){return ax.exists(aw.get(["showViewProfile"],false),aw,{"block":S},null)
}function S(ax,aw){return ax.write('<a class="miniprofile-button bt-view-profile" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function R(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["follow"],false),aw,"h").write('">').reference(aw.get(["miniprofile_follow"],false),aw,"h").write("</a>").exists(aw.get(["showViewProfile"],false),aw,{"block":Q},null)
}function Q(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function P(ax,aw){return ax.write('<a class="miniprofile-button bt-send" href="').reference(aw.get(["send_message"],false),aw,"h").write('">').reference(aw.get(["miniprofile_send_a_message"],false),aw,"h").write("</a>").exists(aw.get(["showViewProfile"],false),aw,{"block":O},null)
}function O(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function D(ax,aw){return ax.exists(aw.get(["showConnect"],false),aw,{"else":C,"block":x},null)
}function C(ax,aw){return ax.exists(aw.get(["showFollow"],false),aw,{"else":B,"block":z},null)
}function B(ax,aw){return ax.exists(aw.get(["showViewProfile"],false),aw,{"block":A},null)
}function A(ax,aw){return ax.write('<a class="miniprofile-button bt-view-profile" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function z(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["follow"],false),aw,"h").write('">').reference(aw.get(["miniprofile_follow"],false),aw,"h").write("</a>").exists(aw.get(["showViewProfile"],false),aw,{"block":y},null)
}function y(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function x(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["connect"],false),aw,"h").write('">').reference(aw.get(["miniprofile_connect"],false),aw,"h").write("</a>").exists(aw.get(["showViewProfile"],false),aw,{"block":w},null)
}function w(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function v(ax,aw){return ax.exists(aw.get(["showFollow"],false),aw,{"else":u,"block":r},null)
}function u(ax,aw){return ax.exists(aw.get(["showConnect"],false),aw,{"else":t,"block":s},null)
}function t(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary" href="').reference(aw.get(["pview"],false),aw,"h").write('&trk=miniprofile-primary-view-button">').reference(aw.get(["miniprofile_view_profile"],false),aw,"h").write("</a>")
}function s(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["connect"],false),aw,"h").write('">').reference(aw.get(["miniprofile_connect"],false),aw,"h").write("</a>")
}function r(ax,aw){return ax.write('<a class="miniprofile-button bt-connect" href="').reference(aw.get(["follow"],false),aw,"h").write('">').reference(aw.get(["miniprofile_follow"],false),aw,"h").write("</a>")
}function q(ax,aw){return ax.reference(aw.get(["networkDistance"],false),aw,"h")
}function p(ax,aw){return ax.notexists(aw.get(["excludeUnmention"],false),aw,{"block":o},null)
}function o(ax,aw){return ax.partial("tl/shared/mentions/remove_mention_dialog_content",aw,null).exists(aw.get(["groupID"],false),aw,{"else":n,"block":f},null).helper("jsControl",aw,{},{"name":"RemoveMentionDialog"})
}function n(ax,aw){return ax.exists(aw.get(["shareID"],false),aw,{"block":m},null).exists(aw.get(["commentID"],false),aw,{"block":k},null)
}function m(ax,aw){return ax.exists(aw.get(["updateID"],false),aw,{"block":l},null)
}function l(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary remove-mention-confirm" href="').reference(aw.get(["remove_mention_from_update_link"],false),aw,"h").write('" data-li-mention-class="').reference(aw.get(["shareID"],false),aw,"h").write("-").reference(aw.get(["memberID"],false),aw,"h").write('">').reference(aw.get(["miniprofile_remove_mention"],false),aw,"h").write("</a>")
}function k(ax,aw){return ax.exists(aw.get(["updateID"],false),aw,{"block":j},null)
}function j(ax,aw){return ax.exists(aw.get(["discussionScopeID"],false),aw,{"else":i,"block":h},null)
}function i(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary remove-mention-confirm" href="').reference(aw.get(["remove_mention_from_article_comment_link"],false),aw,"h").write('" data-li-mention-class="').reference(aw.get(["commentID"],false),aw,"h").write("--").reference(aw.get(["memberID"],false),aw,"h").write('">').reference(aw.get(["miniprofile_remove_mention"],false),aw,"h").write("</a>")
}function h(ax,aw){return ax.exists(aw.get(["discussionID"],false),aw,{"block":g},null)
}function g(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary remove-mention-confirm" href="').reference(aw.get(["remove_mention_from_comment_link"],false),aw,"h").write('" data-li-mention-class="').reference(aw.get(["commentID"],false),aw,"h").write("-").reference(aw.get(["discussionID"],false),aw,"h").write("-").reference(aw.get(["memberID"],false),aw,"h").write('">').reference(aw.get(["miniprofile_remove_mention"],false),aw,"h").write("</a>")
}function f(ax,aw){return ax.write('<a class="miniprofile-button bt-secondary remove-mention-confirm" href="').reference(aw.get(["remove_mention_from_group_discussion_comment"],false),aw,"h").write('" data-li-mention-class="').reference(aw.get(["commentID"],false),aw,"h").write("-").reference(aw.get(["discussionScopeID"],false),aw,"h").write("-").reference(aw.get(["groupID"],false),aw,"h").write("-").reference(aw.get(["memberID"],false),aw,"h").write('">').reference(aw.get(["miniprofile_remove_mention"],false),aw,"h").write("</a>")
}function e(ax,aw){return ax.reference(aw.get(["context"],false),aw,"h")
}function d(ax,aw){return ax.write('<div class="miniprofile-summary-sections">').exists(aw.get(["currentCompaniesSummary"],false),aw,{"block":c},null).exists(aw.get(["pastCompaniesSummary"],false),aw,{"block":a},null).exists(aw.get(["educationsSummary"],false),aw,{"block":au},null).write("</div>")
}function c(ax,aw){return ax.helper("gt",aw,{"block":b},{"key":aw.getPath(false,["currentCompaniesSummary","length"]),"value":"0","type":"number"})
}function b(ax,aw){return ax.write('<div class="label summary-label">').reference(aw.get(["miniprofile_current_position"],false),aw,"h").write('</div><div class="summary">').reference(aw.get(["_truncated_current_position"],false),aw,"h").write("</div>")
}function a(ax,aw){return ax.helper("gt",aw,{"block":av},{"key":aw.getPath(false,["pastCompaniesSummary","length"]),"value":"0","type":"number"})
}function av(ax,aw){return ax.write('<div class="label summary-label">').reference(aw.get(["miniprofile_past_position"],false),aw,"h").write('</div><div class="summary">').reference(aw.get(["_truncated_past_position"],false),aw,"h").write("</div>")
}function au(ax,aw){return ax.helper("gt",aw,{"block":at},{"key":aw.getPath(false,["educationsSummary","length"]),"value":"0","type":"number"})
}function at(ax,aw){return ax.write('<div class="label summary-label">').reference(aw.get(["miniprofile_education"],false),aw,"h").write('</div><div class="summary">').reference(aw.get(["_truncated_educations"],false),aw,"h").write("</div>")
}return N
})();
(function(){dust.register("mini_profile_info",dust.cache["tl/shared/profile/mini_profile_info"])
})();(function(){dust.register("tl/shared/profile/sorted_shared_connections",p);
var w={"fmtName":h,"viewProfileLink":b,"picLink":f,"img_src":e,"connectionsLink":l};
function p(z,y){y=y.shiftBlocks(w);
return z.exists(y.get(["MiniProfile"],false),y,{"else":o,"block":s},null)
}function o(z,y){y=y.shiftBlocks(w);
return z.section(y.get(["sorted_shared_connections"],false),y,{"block":m},null)
}function m(z,y){y=y.shiftBlocks(w);
return z.write("<ul>").section(y.get(["sortedSharedConnections"],false),y,{"block":k},{"numConnections":"4"}).write("</ul>")
}function k(z,y){y=y.shiftBlocks(w);
return z.helper("lt",y,{"block":v},{"key":u,"value":t,"type":"number"})
}function i(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["full_name"],false),y,"h")
}function g(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["profile_link"],false),y,"h",["s"])
}function f(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["pic_link_1"],false),y,"h",["s"])
}function e(z,y){y=y.shiftBlocks(w);
return z.exists(y.get(["pictureId"],false),y,{"else":d,"block":c},null)
}function d(z,y){y=y.shiftBlocks(w);
return z.write("/scds/common/u/img/icon/icon_no_photo_40x40.png")
}function c(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["linkAuto_media_1"],false),y,"h",["s"])
}function v(z,y){y=y.shiftBlocks(w);
return z.write('<li><a href="').block(y.getBlock("viewProfileLink"),y,{},null).write('"><img class="photo" src="').block(y.getBlock("img_src"),y,{},null).write('" alt="').block(y.getBlock("fmtName"),y,{},null).write('" /><span class="name"> ').block(y.getBlock("fmtName"),y,{},null).write(' </span><span class="headline"> ').reference(y.get(["headline"],false),y,"h").write(" </span></a></li>")
}function u(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["$idx"],false),y,"h")
}function t(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["maxIdx"],false),y,"h")
}function s(z,y){y=y.shiftBlocks(w);
return z.exists(y.getPath(false,["sorted_shared_connections","sortedSharedConnections"]),y,{"block":r},null)
}function r(z,y){y=y.shiftBlocks(w);
return z.section(y.get(["mini_profile"],false),y,{"block":q},null)
}function q(z,y){y=y.shiftBlocks(w);
return z.write('<div class="miniprofile-shared-connections">').section(y.get(["sorted_shared_connections"],false),y,{"block":n},null).write("</div>")
}function n(z,y){y=y.shiftBlocks(w);
return z.write('<div class="shared-connections">').write('<span class="label"><a href="').block(y.getBlock("connectionsLink"),y,{},null).write('"><span class="connections-label">&nbsp;</span></a>').reference(y.get(["sharedConnectionsCount"],false),y,"h").write("</span><ul>").section(y.get(["sortedSharedConnections"],false),y,{"block":j},null).write("</ul></div>")
}function l(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["connections_link"],false),y,"h",["s"])
}function j(z,y){y=y.shiftBlocks(w);
return z.write('<li><a href="').block(y.getBlock("viewProfileLink"),y,{},null).write('" title="').block(y.getBlock("fmtName"),y,{},null).write('"><img src="').exists(y.getPath(true,["pictureId"]),y,{"else":a,"block":x},null).write('" alt="').block(y.getBlock("fmtName"),y,{},null).write('" width="30" height="30"/></a></li>')
}function h(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["full_name"],false),y,"h")
}function b(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["profile_link"],false),y,"h",["s"])
}function a(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["media_gh"],false),y,"h")
}function x(z,y){y=y.shiftBlocks(w);
return z.reference(y.get(["media_link"],false),y,"h")
}return p
})();
(function(){dust.register("sorted_shared_connections",dust.cache["tl/shared/profile/sorted_shared_connections"])
})();(function(){dust.register("tl/shared/profile/mini_profile_shell",c);
function c(e,d){return e.section(d.get(["MiniProfile"],false),d,{"block":b},null)
}function b(e,d){return e.exists(d.get(["full_name"],false),d,{"block":a},null)
}function a(e,d){return e.write('<div class="new-miniprofile-content js-new-miniprofile-content"><div class="triangle triangle-top"></div>').partial("tl/shared/profile/mini_profile_info",d,null).partial("tl/shared/profile/sorted_shared_connections",d,null).write('<div class="triangle triangle-bottom"></div></div>')
}return c
})();
(function(){dust.register("mini_profile_shell",dust.cache["tl/shared/profile/mini_profile_shell"])
})();(function(){dust.register("tl/shared/degree_icon",b);
function b(d,c){return d.helper("param",c,{},{"key":"fNameP","defaultVal":""}).helper("param",c,{},{"key":"lNameP","defaultVal":""}).helper("param",c,{},{"key":"title","defaultVal":""}).helper("param",c,{},{"key":"distanceP","defaultVal":"-1"}).partial(a,c,null)
}function a(d,c){return d.write("tl/shared/degree_icon_").reference(c.get(["distanceP"],false),c,"h")
}return b
})();
(function(){dust.register("degree_icon",dust.cache["tl/shared/degree_icon"])
})();(function(){dust.register("tl/shared/degree_icon_base",e);
function e(g,f){return g.write('<abbr aria-hidden="true" title="').exists(f.get(["title"],false),f,{"else":d,"block":b},null).write('" class="degree-icon ').block(f.getBlock("customStyle"),f,{},null).write('">').block(f.getBlock("iconTxt"),f,{"block":a},null).write("</abbr>")
}function d(g,f){return g.block(f.getBlock("distanceStr"),f,{"block":c},null)
}function c(g,f){return g.reference(f.get(["degree_icon_base__text_plain__formatted_name"],false),f,"h")
}function b(g,f){return g.reference(f.get(["title"],false),f,"h")
}function a(g,f){return g.reference(f.get(["distanceP"],false),f,"h").reference(f.get(["degree_icon_base__text_plain__degree_icon_symbol"],false),f,"h",["et","s"])
}return e
})();
(function(){dust.register("degree_icon_base",dust.cache["tl/shared/degree_icon_base"])
})();(function(){dust.register("tl/shared/degree_icon_-1",a);
function a(c,b){return c
}return a
})();
(function(){dust.register("degree_icon_-1",dust.cache["tl/shared/degree_icon_-1"])
})();(function(){dust.register("tl/shared/degree_icon_0",c);
var d={"distanceStr":b,"iconTxt":a};
function c(f,e){e=e.shiftBlocks(d);
return f.partial("tl/shared/degree_icon_base",e,null)
}function b(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_0__text_plain__you_distance_str_key"],false),e,"h")
}function a(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_0__text_plain__you_icon_txt_key"],false),e,"h")
}return c
})();
(function(){dust.register("degree_icon_0",dust.cache["tl/shared/degree_icon_0"])
})();(function(){dust.register("tl/shared/degree_icon_1",c);
var d={"distanceStr":b,"iconTxt":a};
function c(f,e){e=e.shiftBlocks(d);
return f.partial("tl/shared/degree_icon_base",e,null)
}function b(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_1__text_plain__NAME_is_your_connection"],false),e,"h",["et","s"])
}function a(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_1__text_plain__1st"],false),e,"h",["mk","s"])
}return c
})();
(function(){dust.register("degree_icon_1",dust.cache["tl/shared/degree_icon_1"])
})();(function(){dust.register("tl/shared/degree_icon_2",c);
var d={"distanceStr":b,"iconTxt":a};
function c(f,e){e=e.shiftBlocks(d);
return f.partial("tl/shared/degree_icon_base",e,null)
}function b(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_2__text_plain__NAME_is_2nd_degree_contact_key"],false),e,"h",["et","s"])
}function a(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_2__text_plain__2nd"],false),e,"h",["mk","s"])
}return c
})();
(function(){dust.register("degree_icon_2",dust.cache["tl/shared/degree_icon_2"])
})();(function(){dust.register("tl/shared/degree_icon_3",c);
var d={"distanceStr":b,"iconTxt":a};
function c(f,e){e=e.shiftBlocks(d);
return f.partial("tl/shared/degree_icon_base",e,null)
}function b(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_3__text_plain__NAME_is_3rd_degree_connection_key"],false),e,"h",["et","s"])
}function a(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_3__text_plain__3rd"],false),e,"h",["mk","s"])
}return c
})();
(function(){dust.register("degree_icon_3",dust.cache["tl/shared/degree_icon_3"])
})();(function(){dust.register("tl/shared/degree_icon_100",c);
var d={"distanceStr":b,"iconTxt":a};
function c(f,e){e=e.shiftBlocks(d);
return f.partial("tl/shared/degree_icon_base",e,null)
}function b(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_100__text_plain__you_and_NAME_have_groups_in_common_key"],false),e,"h",["et","s"])
}function a(f,e){e=e.shiftBlocks(d);
return f.reference(e.get(["degree_icon_100__text_plain__group_icon_txt_key"],false),e,"h")
}return c
})();
(function(){dust.register("degree_icon_100",dust.cache["tl/shared/degree_icon_100"])
})();(function(){dust.register("tl/shared/degree_icon_200",d);
var e={"distanceStr":c,"iconTxt":b,"customStyle":a};
function d(g,f){f=f.shiftBlocks(e);
return g.partial("tl/shared/degree_icon_base",f,null)
}function c(g,f){f=f.shiftBlocks(e);
return g.reference(f.get(["degree_icon_200__text_plain__NAME_is_in_your_teams_network"],false),f,"h",["et","s"])
}function b(g,f){f=f.shiftBlocks(e);
return g.reference(f.get(["degree_icon_200__text_plain__TeamLink"],false),f,"h")
}function a(g,f){f=f.shiftBlocks(e);
return g.write("teamlink")
}return d
})();
(function(){dust.register("degree_icon_200",dust.cache["tl/shared/degree_icon_200"])
})();(function(){dust.register("tl/apps/biz/partial/_biz_share_uscp_activity",c);
function c(e,d){return e.section(d.get(["biz_share_uscp_activity"],false),d,{"block":b},null)
}function b(e,d){return e.section(d.get(["elements"],false),d,{"block":a},{"actorId":d.getPath(false,["currentActor","id"]),"actorType":d.getPath(false,["currentActor","type"]),"hasCSPrivileges":d.getPath(false,["currentActor","hasCSPrivileges"]),"contextType":d.getPath(false,["activityContext","type"]),"contextId":d.getPath(false,["activityContext","id"]),"contextUrn":d.getPath(false,["activityContext","urn"])})
}function a(e,d){return e.partial("tl/shared/uscp/feed/_activity",d,{"activityActorId":d.getPath(false,["actor","urnMap","id"]),"activityIdRaw":d.getPath(false,["urnMap","id"]),"activityId":d.get(["id"],false),"activityUrn":d.get(["urn"],false)})
}return c
})();
(function(){dust.register("_biz_share_uscp_activity",dust.cache["tl/apps/biz/partial/_biz_share_uscp_activity"])
})();