(function(n){function t(n){return Object.keys(n).filter(function(t){return typeof n[t]!="undefined"&&n[t]!==""}).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&")}var i="scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0";n.fbButton=function(){var u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=u.url,r;if(!n)throw new Error("url is not defined");return r=t({kid_directed_site:"0",sdk:"joey",u:n,display:"popup",ref:"plugin",src:"share_button"}),window.open("https://www.facebook.com/sharer/sharer.php?"+r,"_blank",i)};n.email=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=n.url,i=n.title,r=n.description,u=(r||"")+"\r\n\r\n"+(t||"")+"\r\n\r\n",f="mailto:?subject="+encodeURIComponent(i)+"&body="+encodeURIComponent(u);return window.location.assign(f)};n.tw=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},u=n.title,f=n.url,r=n.hashtags,e=r===undefined?[]:r,o=t({text:u,url:f,hashtags:e.join(",")});return window.open("https://twitter.com/intent/tweet?"+o,"_blank",i)};n.linkedin=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=n.title,r=n.url,u=n.description,f=t({title:i,summary:u,url:r});return window.open("https://www.linkedin.com/shareArticle?mini=true&"+f,"_blank")}})(window.weShare=window.weShare||{})