Follow
","",""].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){function r(e){var t=e.getAttribute("data-twitter-event-id");return t?t:(e.setAttribute("data-twitter-event-id",++n),n)}function i(e,t,n){var r=0,i=e&&e.length||0;for(r=0;r1&&String(n)!=="[object Object]"){if(n===null||n===undefined)i.expires=-1;return typeof i.expires=="number"&&(s=i.expires,o=new Date((new Date).getTime()+s*60*1e3),i.expires=o),n=String(n),document.cookie=[encodeURIComponent(e),"=",i.raw?n:encodeURIComponent(n),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}return i=n||{},a=i.raw?function(e){return e}:decodeURIComponent,(u=(new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)")).exec(document.cookie))?a(u[1]):null})})});provide("tfw/util/tracking",function(e){using("dom/cookie","dom/delegate","sandbox/minimal","util/donottrack","util/promise","util/querystring","tfw/util/env","util/iframe","util/util","$xd/json2.js",function(t,n,r,i,s,o,u,a,f){function b(){return p?m:(r.createSandbox({id:"rufous-sandbox"},{display:"none"}).then(f.bind(function(e){d=e,c=_(),h=D(),v.fulfill([c,h])},this)),p=!0,m)}function w(e,t,n,r){var i=!f.isObject(e),s=t?!f.isObject(t):!1;if(i||s)return;x(L(e),A(t,n,r),!0)}function E(e,t,n,r,i){var s=S(e.target||e.srcElement);s.action=i||"click",w(s,t,n,r)}function S(e,t){var n;return t=t||{},!e||e.nodeType!==1?t:((n=e.getAttribute("data-scribe"))&&f.forEach(n.split(" "),function(e){var n=f.trim(e).split(":"),r=n[0],i=n[1];r&&i&&!t[r]&&(t[r]=i)}),S(e.parentNode,t))}function x(e,t,n){var r,i,s,u,a;if(!f.isObject(e)||!f.isObject(t))return;s=f.aug({},t,{event_namespace:e}),n?(u={l:H(s)},s.dnt&&(u.dnt=1),P(o.url(g,u))):(r=c.firstChild,r.value=+(+r.value||s.dnt||0),a=H(s),i=d.createElement("input"),i.type="hidden",i.name="l",i.value=a,c.appendChild(i))}function T(e,t,n,r){var i=!f.isObject(e),s=t?!f.isObject(t):!1;if(i||s)return;m.then(function(){x(L(e),A(t,n,r))})}function N(e,t){if(!f.isObject(e))return;m.then(function(){x(L(f.aug({action:"impression"},e)),O(t))})}function C(){return m.then(function(){if(c.children.length<=2)return s.reject();var e=s.every(d.appendChild(c),d.appendChild(h)).then(function(e){var t=e[0],r=e[1];return n.on(r,"load",function(){k(t,r)(),twttr.events.trigger("logFlushed")}),t.submit(),e});return c=_(),h=D(),e})}function k(e,t){return function(){var n=e.parentNode;if(!n)return;n.removeChild(e),n.removeChild(t)}}function L(e){return f.aug({client:"tfw"},e||{})}function A(e,t,n){var r=e&&e.widget_origin||document.referrer;return e=M("tfw_client_event",e,n||i(r)),e.format_version=1,t||(e.widget_origin=r),e}function O(e){return M("syndicated_impression",{},e)}function M(e,t,n){return t=t||{},f.aug(t,{_category_:e,triggered_on:t.triggered_on||+(new Date),dnt:!!n})}function _(){var e=d.createElement("form"),t=d.createElement("input"),n=d.createElement("input");return l++,e.action=g,e.method="POST",e.target="rufous-frame-"+l,e.id="rufous-form-"+l,t.type="hidden",t.name="dnt",t.value=0,n.type="hidden",n.name="tfw_redirect",n.value=y,e.appendChild(t),e.appendChild(n),e}function D(){var e="rufous-frame-"+l;return a({id:e,name:e,width:0,height:0,border:0},{display:"none"},d.document())}function P(e){var t=new Image;t.src=e}function H(e){var t=Array.prototype.toJSON,n;return delete Array.prototype.toJSON,n=JSON.stringify(e),t&&(Array.prototype.toJSON=t),n}var l=0,c,h,p=!1,d,v,m=new s(function(e){v=e}),g="https://syndication.twitter.com/i/jot/syndication",y="https://platform.twitter.com/jot.html";twttr.widgets&&twttr.widgets.endpoints&&(g=twttr.widgets.endpoints.rufous||g,y=twttr.widgets.endpoints.rufousRedirect||y),e({enqueue:T,enqueueAudienceImpression:N,flush:C,initPostLogging:b,scribeInteraction:E,extractTermsFromDOM:S,addPixel:w})})});provide("tfw/util/session",function(e){using("dom/cookie","util/querystring",function(t,n){function r(e){var n=t("secure_session"),r=document.location;return n=="true"||n=="default"?e?r.protocol==="https:":!0:t("auth_token_session")?!0:!1}function i(e){var t=document.location,n=twttr.config&&twttr.config.secureHost?twttr.config.secureHost:t.host;if(r()&&t.protocol!=="https:")return window.onload=function(){document.location.replace("https://"+n+t.pathname+t.search+t.hash+"&original_redirect_referrer="+e)},!0}function s(){var e,r=t("twid"),i;if(r&&(e=r.split("|")[0]))return i=n.decode(e),i.c?i.c:i.u}e({isLoggedIn:r,forwardSSL:i,getUserId:s})})});provide("util/events",function(e){using("util/util",function(t){var n={bind:function(e,t){return this._handlers=this._handlers||{},this._handlers[e]=this._handlers[e]||[],this._handlers[e].push(t)},unbind:function(e,n){if(!this._handlers[e])return;if(n){var r=t.indexOf(this._handlers[e],n);r>=0&&this._handlers[e].splice(r,1)}else this._handlers[e]=[]},trigger:function(e,n){var r=this._handlers&&this._handlers[e];n=n||{},n.type=e,t.forEach(r,function(e){t.async(t.bind(e,this,[n]))})}};e({Emitter:n})})});provide("xd/jsonrpc",function(e){using("util/util","util/events",function(t,n){function r(e){return(JSON.parse||JSON.decode)(e)}function i(e){this.con=e}function s(){this.id=s.id++}function o(){e(function(e){return new i(e)})}t.aug(i.prototype,{expose:function(e){this.con.bind("message",this._handleRequest(e))},call:function(e){var t=this,n;return this._requests||(this._requests={},this.con.bind("message",function(e){var n;try{e=r(e)}catch(i){return}if(!e.callback)return;typeof e.id=="number"&&(n=t._requests[e.id])&&(e.error?n.trigger("error",e):n.trigger("success",e),delete t._requests[e.id])})),n=new s,this._requests[n.id]=n,n.send(this.con,e,Array.prototype.slice.call(arguments,1))},_handleRequest:function(e){var t=this;return function(i){var s,o;try{i=r(i)}catch(u){return}if(i.callback)return;typeof i.id=="number"&&typeof e[i.method]=="function"&&(o=t._responseCallbacks(i.id),s=e[i.method].apply(e,i.params.concat(o)),typeof s!="undefined"&&o[0](s))}},_responseCallbacks:function(e){var t=this.con;return[function(r){t.send(JSON.stringify({id:e,result:r,callback:!0}))},function n(r){t.send(JSON.stringify({id:e,error:n,callback:r}))}]}}),s.id=0,t.aug(s.prototype,n.Emitter,{send:function(e,t,n){return e.send(JSON.stringify({id:this.id,method:t,params:n})),this},success:function(e){return this.bind("success",e),this},error:function(e){return this.bind("error",e),this}}),typeof JSON!="undefined"&&o()})});provide("xd/flash",function(e){function t(e,t){var n=t||Math.floor(Math.random()*100),r=['','','','',""].join(" ");return r}e({object:t})});provide("xd/base",function(e){using("util/util","util/events",function(t,n){function r(){}t.aug(r.prototype,n.Emitter,{transportMethod:"",init:function(){},send:function(e){var t;this._ready?this._performSend(e):t=this.bind("ready",function(){this.unbind("ready",t),this._performSend(e)})},ready:function(){this.trigger("ready",this),this._ready=!0},isReady:function(){return!!this._ready},receive:function(e){this.trigger("message",e)}}),e({Connection:r})})});provide("xd/parent",function(e){using("xd/base","util/util","util/env",function(t,n,r){function u(e){var t=[];return n.forIn(e,function(e,n){t.push(e+"="+n)}),t.join(",")}function a(){}function f(e){this.transportMethod="PostMessage",this.options=e,this._createChild()}function l(e){this.transportMethod="Flash",this.options=e,this.token=Math.random().toString(16).substring(2),this._setup()}function c(e){this.transportMethod="Fallback",this.options=e,this._createChild()}var i="__ready__",s=0,o;a.prototype=new t.Connection,n.aug(a.prototype,{_createChild:function(){this.options.window?this._createWindow():this._createIframe()},_createIframe:function(){function l(){e.child=r.contentWindow,e._ready||e.init()}var e=this,t={allowTransparency:!0,frameBorder:"0",scrolling:"no",tabIndex:"0",name:this._name()},r,i,s,u=n.aug(n.aug({},t),this.options.iframe),a,f=!1;window.postMessage?(o||(o=document.createElement("iframe")),r=o.cloneNode(!1)):r=document.createElement('