/* * @overview underscore - JavaScript's utility _ belt * @copyright Copyright (c) 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * @license Licensed under MIT license * See https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE * @version 1.8.0 */ (()=>{var u=function o(r,i,s){function a(t,e){if(!i[t]){if(!r[t]){var n="function"==typeof u&&u;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},r[t][0].call(n.exports,function(e){return a(r[t][1][e]||e)},n,n.exports,o,r,i,s)}return i[t].exports}for(var c="function"==typeof u&&u,e=0;e",!0===u.buttons[e].call(window,n,t)&&o.appendChild(n)}),o}};u.buttons.x=function(t,n){var e=n.options.url,o=n.extract.title,r=n.options.twitter_via,e={url:u.url(e)};return o&&(e.text=i.truncate(o,100)),e.via=r?"@"===r.substr(0,1)?r.substr(1):r:"embedly",t.href="https://x.com/intent/tweet?"+a.createQuery(e),s.addEvent(t,"click",function(e){s.event(e).stop(),window.open(t.href,"_blank","width=550,height=410,top=150,left=150"),u.log(n.options.url,"x")}),!0},u.buttons.reddit=function(t,n){var e={url:u.url(n.options.url),title:n.extract.title};return t.href="https://www.reddit.com/submit?"+a.createQuery(e),s.addEvent(t,"click",function(e){s.event(e).stop(),window.open(t.href,"_blank","width=700,height=500,top=150,left=150"),u.log(n.options.url,"reddit")}),!0},u.buttons.email=function(e,t){var n=t.extract.title||"",o=t.options.url||"";return e.href="mailto:?subject="+encodeURIComponent(n)+"&body="+encodeURIComponent(o),s.addEvent(e,"click",function(){u.log(t.options.url,"email")}),!0},u.buttons.facebook=function(t,n){var e={u:u.url(n.options.url)};return t.href="https://www.facebook.com/sharer/sharer.php?"+a.createQuery(e),s.addEvent(t,"click",function(e){s.event(e).stop(),window.open(t.href,"_blank","width=700,height=425,top=150,left=150"),u.log(n.options.url,"facebook")}),!0},u.buttons.card=function(e,n){return s.addEvent(e,"click",function(e){s.event(e).stop();var t={url:n.options.url};i.each(["image","embed","title","description","lang"],function(e){n.options.hasOwnProperty(e)&&(t[e]=n.options[e])}),n.__hub.notify("card.repeat",t),u.log(n.options.url,"repeat")}),!0},u.buttons.linkedin=function(t,n){var e={url:u.url(n.options.url),mini:"true"};return t.href="https://www.linkedin.com/shareArticle?"+a.createQuery(e),s.addEvent(t,"click",function(e){s.event(e).stop(),window.open(t.href,"_blank","width=700,height=425,top=150,left=150"),u.log(n.options.url,"linkedin")}),!0},u.buttons.embedly=function(e,t){var n={utm_source:a.getDomain(document.URL),utm_medium:"referral",utm_campaign:"cards"};return e.href=a.appendQuery("http://embed.ly/cards",n),e.target="_blank",s.addEvent(e,"click",function(){u.log(t.options.url,"whats-this")}),!0},u.css=function(e){var t;if(!u._css)return u._css=!0,t=c.CDN_BASE_URL+"css/social."+c.EMB_ASSET_VERSION+".css",o.css(t,e),!1;e()},u.card=function(t){var n=t.elem.parentNode;if(!i.isElement(n)||"DIV"!==n.nodeName&&!s.hasClass(n,"embedly-card"))return!1;u.css(function(){var e=u.buttons(t);s.addEvent(n,"mouseenter",function(){s.addClass(e,"embd-active")}),s.addEvent(n,"mouseleave",function(){s.removeClass(e,"embd-active")}),n.appendChild(e),t.__hub.notify("card.share.init")})},t.exports=u},{"./dom.js":6,"./log/front.js":18,"./ready.js":21,"./urlparse.js":24,"./utils.js":25,conf:"conf"}],23:[function(e,t,n){var o=e("./utils.js"),e={Tunnel:function(e){this.init(e)}};e.Tunnel.prototype.init=function(e){this.parent=e,this.child=null,this.ready=!1,this.queue=[]},e.Tunnel.prototype.connect=function(e){this.child=e,this.child.on("receiver.send",o.bind(function(e,t){(t=o.isNone(t)?{}:t).method=e,setTimeout(o.bind(function(){this.parent.notify("message",t)},this),1)},this)),this.ready=!0,this.release()},e.Tunnel.prototype.release=function(){for(var e=0;e