Tweet
","",""].join("");this.document.write(e),this.document.close()},e(u)})});provide("sandbox/minimal",function(e){using("sandbox/baseframe","util/env","util/promise","util/util",function(t,n,r,i){function s(e,t){if(!e)return;this._frame=e,this._win=e.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=t}i.aug(s.prototype,{createElement:function(e){return this._doc.createElement(e)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(e){return this.layout(i.bind(function(){return this._body.appendChild(e)},this))},setBaseTarget:function(e){var t=this._doc.createElement("base");return t.target=e,this.layout(i.bind(function(){return this._head.appendChild(t)},this))},setTitle:function(e){if(!e)return;this._frame.title=e},element:function(){return this._frame},document:function(){return this._doc}}),s.createSandbox=function(e,n,r,i){var o=new t(e,n,r,i);return o.ready().then(function(e){return new s(e.frame,e.layout)})},e(s)})});provide("dom/delegate",function(e){using("util/env",function(t){function i(e){var t=e.getAttribute("data-twitter-event-id");return t?t:(e.setAttribute("data-twitter-event-id",++r),r)}function s(e,t,n){var r=0,i=e&&e.length||0;for(r=0;r#"+d.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+d.screen_name+""});default:return _("Tweet")}}function O(){var e=c.getElementById("l");c.title=_("Tweet Button"),e.innerHTML=A()}function M(e,t){var n=e.id+"-desc",r=document.createElement("p");r.id=n,r.className="aria",r.innerHTML=t,c.body.appendChild(r),e.setAttribute("aria-describedby",n)}function D(e){var t="scrollbars=yes,resizable=yes,toolbar=no,location=yes",n=550,r=420,i=screen.height,s=screen.width,o=Math.round(s/2-n/2),u=0;return i>r&&(u=Math.round(i/2-r/2)),window.open(e,null,t+",width="+n+",height="+r+",left="+o+",top="+u)}function P(e){var t,n,r=parseInt(e,10),i=new RegExp("^\\"+_(",")),s={ja:1,ko:1};return isNaN(r)?"":r<1e4?r.toString().split("").reverse().join("").replace(/(\d{3})/g,"$1"+_(",")).split("").reverse().join("").replace(i,""):r<1e5?s[d.lang]?(n=(Math.floor(r/100)/100).toString(),n+_("10k unit")):(t=(Math.round(r/100)/10).toString(),t.replace(/\./,_("."))+_("K")):_("100K+")}function H(e){return e=e||window.event,e&&e.preventDefault?e.preventDefault():e.returnValue=!1,e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1}function B(e){return e.replace(/(<)|(>)/g,function(e){var t;return e[0]==="<"?t="<":t=">",t})}function j(e){for(var t=0,n=e.length;t0&&(h.title=_("This page has been shared %{tweets} times. View these Tweets.",{tweets:e.count}),M(h,h.title)))},d.type=~t.indexOf(g,d.type)?d.type:"share",d.size=m[d.size]?d.size:"m",F(c.documentElement,m[d.size]||""),d.align=="right"&&F(c.body,"right");if(d.type=="mention"||d.screen_name)(N=u.screenName(d.screen_name))?d.screen_name=N:(delete d.screen_name,d.type=="mention"&&(d.type="share",d.count="none"));d.type=="hashtag"||d.button_hashtag?((T=u.hashTag(d.button_hashtag,!1))?(d.button_hashtag=T,d.hashtags=d.button_hashtag+","+(d.hashtags||"")):(delete d.button_hashtag,d.type="share"),d.count="none"):d.type=="share"?(d.url=d.url||c.referrer,w=d.counturl||d.url,E=w&&"http://twitter.com/search?q="+n.encodePart(w),d.size=="l"&&d.count=="vertical"&&(d.count="none"),y.push(v[d.count]||"hcount"),L()):d.count="none",y.push(C),F(c.body,y.join(" ")),c.body.setAttribute("data-scribe","section:"+d.type),O(),F(c.body,"ready"),b={text:d.text,screen_name:d.screen_name,hashtags:d.hashtags,url:d.url,via:d.via,related:d.related,placeid:d.placeid,original_referer:c.referrer,partner:d.partner,tw_p:"tweetbutton"},S=twttr.config.intentURL+"?"+n.encode(b),x=d.dnt&&d.dnt.toLowerCase()==="true",i.addPixel({page:"button",section:d.type,action:"impression"},{language:d.lang,client_version:f+":"+d.size+(d.count!=="none"?":c":""),widget_origin:c.referrer},!1,x),h.href=E,p.href=S,p.onclick=function(e){return e=e||window.event,i.scribeInteraction(e,{},!1,x),o.withHub({nohub:function(){D(S,d.id)},timeout:function(){D(S,d.id)},success:function(e){e.openIntent(S,d.id),e.trigger("click",{region:"tweet"},d.id)}}),H(e)},d.searchlink!="disabled"?(F(h.parentNode,"enabled"),h.onclick=function(e){e=e||window.event,i.scribeInteraction(e,{},!1,x),o.withHub(function(e){e.trigger("click",{region:"tweetcount"},d.id)});if(e.altKey||e.shiftKey||e.metaKey)return;return window.open(E),H(e)}):h.onclick=function(e){H(e)}})});;