var ShareAction;(function(n){function i(n){var t=function(){var t=SelectorHelper.findFirstAncestorWithSelector(n,".b_ans"),i,r;(t||(t=SelectorHelper.findFirstAncestorWithSelector(n,".b_poleContent")),t||(t=SelectorHelper.findFirstAncestorWithSelector(n,".b_algo")),t||(t=SelectorHelper.findFirstAncestorWithSelector(n,"#detail_canvas")),t||(t=SelectorHelper.findFirstAncestorWithSelector(n,".article_action")),t)&&(i=SelectorHelper.findFirstAncestorWithSelector(n,".actionmenu"),i||(i=SelectorHelper.findFirstAncestorWithSelector(n,".actDrawer")),r=n.getAttribute("data-medium"),sj_evt.fire("ga_share",r,t,i))};sj_be(n,"click",t);AccessibilityHelpers.activateButtonByKey(n,[13,32],t)}function t(){var r=_d.querySelectorAll("[data-type='shareMedium']"),u,n,t;if(r)for(u="data-initialized",n=0;n<r.length;n++)(t=r[n],t.getAttribute(u)!=="1")&&(i(t),t.setAttribute(u,"1"))}n.initShareActions=t;sj_be(_w,"load",function(){return t()});sj_evt.bind("ajax.load",function(){return t()})})(ShareAction||(ShareAction={}))