Okay, Jason Momoa Can Really Throw a Trident .

Trending Entertainment Topics

1 Views

        

0&&p>s&&(p=s);for(var y=0;y

=0?(u=f.substr(0,v),c=f.substr(v+1)):(u=f,c=""),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)}; }, {}]; window.modules["1129"] = [function(require,module,exports){"use strict";var stringifyPrimitive=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}};module.exports=function(r,e,t,n){return e=e||"&",t=t||"=",null===r&&(r=void 0),"object"==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?map(r[n],function(r){return i+encodeURIComponent(stringifyPrimitive(r))}).join(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).join(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):""};var isArray=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};function map(r,e){if(r.map)return r.map(e);for(var t=[],n=0;n=0;r--){var l=localStorage().key(r);e(read(l),l)}}function remove(e){return localStorage().removeItem(e)}function clearAll(){return localStorage().clear()}module.exports={name:"localStorage",read:read,write:write,each:each,remove:remove,clearAll:clearAll}; }, {"1169":1169}]; window.modules["1171"] = [function(require,module,exports){module.exports={name:"memoryStorage",read:read,write:write,each:each,remove:remove,clearAll:clearAll};var memoryStorage={};function read(e){return memoryStorage[e]}function write(e,r){memoryStorage[e]=r}function each(e){for(var r in memoryStorage)memoryStorage.hasOwnProperty(r)&&e(memoryStorage[r],r)}function remove(e){delete memoryStorage[e]}function clearAll(e){memoryStorage={}} }, {}]; window.modules["article-nav.client"] = [function(require,module,exports){"use strict";var dom=require(1),_throttle=require(23),$visibility=require(28),$popup=require(40),$gtm=require(41);DS.controller("article-nav",[function(){return function(t){var e=dom.find(".page-header"),i=dom.find(".article-content"),o=dom.find(t,".deepscroll-headline"),r=dom.find(t,".deepscroll-rubric"),n=dom.find(t,".deepscroll-rubric-sponsored"),l=dom.find(".article .article-header .rubric"),s=dom.find("#deepscroll_center_divider"),a=dom.find(".clay-paragraph"),d=dom.find(t,".logo"),c=dom.find(t,".dyn-cut-logo"),p=dom.find(t,".article-nav-top"),u=dom.find(t,".article-nav-deepscroll"),m=dom.find('link[rel="canonical"]'),f=m&&m.getAttribute("href"),g=dom.find('meta[property="og:image"]')?dom.find('meta[property="og:image"]').getAttribute("content"):"",h=dom.find('meta[property="og:title"]')?dom.find('meta[property="og:title"]').getAttribute("content"):"",y=dom.find(t,".share-link.facebook"),v=dom.find(t,".share-link.twitter"),w=dom.find(t,".share-link.pinterest"),b=t.classList.contains("header-simple"),x=window.getComputedStyle(d,null).getPropertyValue("--targetFlexBasis"),C=window.getComputedStyle(d,null).getPropertyValue("--verticalStart")||0,L=window.getComputedStyle(d,null).getPropertyValue("--verticalEnd")||0;function _(){!1,$()}function $(){var o,r,n,l=t.getBoundingClientRect().top,s=window.getComputedStyle(d,null).getPropertyValue("--baseFlexBasis"),m=s-x,f=(e.getBoundingClientRect().top-55)/-106,g=Math.abs(f),h=C-L-2,y=Math.round(C-(h*g+2)),v=Math.ceil(s-m*g);if(fl?t.classList.add("after-scroll"):t.classList.remove("after-scroll"),window.scrollY>l?e.classList.add("header-after-scroll"):e.classList.remove("header-after-scroll"),$visibility.getViewportWidth()>=1180&&i&&(o=a?$visibility.getPageOffset(a).top-70:0,r=$visibility.getPageOffset(i).top,n=Math.max(r,o),Math.max(window.scrollY,document.body.scrollTop)>=n)?t.classList.add("deep-scroll"):t.classList.remove("deep-scroll")}function k(t){var e=t.currentTarget,i=e.getAttribute("href"),o=e.getAttribute("data-handle"),r=$popup.getPopupClass(e.classList),n=$visibility.isBelowPrimaryContent(e)?"bottom":"top";$gtm.reportNow({event:"social-share-widget",clickLocation:n,socialNetwork:r}),$visibility.getViewportWidth()>=768&&r&&(t.preventDefault(),$popup.popWindow(r,o,i))}!function(){var e=_throttle($,30);if(dom.findAll(t,".share-link").forEach(function(t){return t.addEventListener("click",k)}),y&&(y.href="http://www.facebook.com/sharer/sharer.php?u="+f+"?utm_source=fb&utm_medium=s3&utm_campaign=sharebutton-t"),v&&(v.href="https://twitter.com/share?text="+encodeURIComponent(h)+"&url="+f+"?utm_source=tw&utm_medium=s3&utm_campaign=sharebutton-t&via="+v.getAttribute("data-handle")),w&&(w.href="http://pinterest.com/pin/create/button/?url="+f+"?utm_source=pin&utm_medium=s3&utm_campaign=sharebutton-t&description="+encodeURIComponent(h)+"&media="+g),b)return;window.addEventListener("scroll",e),window.addEventListener("resize",_),l?l.classList.contains("rubric-sponsor-story")&&n?(r.classList.remove("visible"),n.classList.add("visible"),n.textContent=l.text||l.textContent):(r.textContent=l.text||l.textContent,r.href=l.href||"#"):(s.style.display="none",r.style.display="none");_(),o.textContent=h}()}}]); }, {"1":1,"23":23,"28":28,"40":40,"41":41}]; window.modules["nav-search-button.client"] = [function(require,module,exports){"use strict";var dom=require(1),$gtm=require(41);DS.controller("nav-search-button",[function(){function t(t){var e=dom.find("body");this.el=t,this.button=dom.find(t,".nav-search-button-trigger"),this.search=dom.find(t,".nav-search-form"),this.inputField=dom.find(t,".search-input"),e.addEventListener("click",this.collapseSearch.bind(this)),e.addEventListener("touchend",this.collapseSearch.bind(this)),document.addEventListener("keydown",this.escapeSearch.bind(this))}return t.prototype={events:{".nav-search-button-trigger click":"expandSearch",".nav-search-form submit":"submitHandler"},toggleClasses:function(){var t=dom.find("body");this.el.classList.toggle("closed"),this.el.classList.toggle("open"),t.classList.toggle("disabled"),t.classList.toggle("search-active")},expandSearch:function(){this.toggleClasses(),this.el.classList.contains("open")&&this.inputField.focus()},collapseSearch:function(t){!this.el.contains(t.target)&&this.el.classList.contains("open")&&this.toggleClasses()},escapeSearch:function(t){27===t.keyCode&&this.el.classList.contains("open")&&this.toggleClasses()},submitHandler:function(t){t.preventDefault(),this.search.submit(),this.emitTrackingEvent()},emitTrackingEvent:function(){$gtm.reportCustomEvent({category:"search",label:"on="+window.location.href,action:this.inputField.value})}},t}]); }, {"1":1,"41":41}]; window.modules["nav-dropdown-button.client"] = [function(require,module,exports){"use strict";var dom=require(1);function getNextSiblings(n){for(var t=[],e=n;e=e.nextElementSibling;)t.push(e);return t}module.exports=function(n){var t,e=n.querySelector(".nav-dropdown-button-trigger"),o=dom.find("body"),i=dom.find("header.page-header"),s=dom.find('[data-editable="main"]');function d(){var e,d=window.innerWidth0&&(this.isNavVariation&&e1?"s":""),this.el.classList.remove("no-comments"))},n.prototype.shouldRenderCommentStream=function(){return-1!==e.indexOf("@published")},n}]); }, {"1":1,"34":34,"80":80,"81":81}]; window.modules["ad.client"] = [function(require,module,exports){"use strict";var _forEach=require(27),_max=require(29),$visibility=require(28),flaggedComponentsOnPage=function(){var e,t=document.querySelector(".article-content"),n=[];return t&&_forEach(['.article-sidebar[data-width="large"]'],function(a){e=t.querySelectorAll(a),_forEach(e,function(e){n.push(e)})}),n}();function getElementsVerticalOverlap(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return!(n.top>a.bottom||n.righta.right)?a.bottom-n.top:0}function getElementsOverlapAmount(e,t){var n,a=[];return _forEach(t,function(t){n=getElementsVerticalOverlap(e,t),a.push(n)}),_max(a)}function getCutAdChannel(e){return{all:"",animals:"Self/SoU",beauty:"Style/Beauty","career money productivity":"Power/Money",celebrity:"Culture/Celebrity","crime-assault":"Power","culture-media":"Culture",fashion:"Style/Fashion","feminism-politics-identity":"Power/Politics","relationships-friends family":"Self","health-wellness":"Self/Health","home design":"Style/Design_Hunting","learning creativity":"Self/SoU",living:"Style",other:"",parenting:"Self/Motherhood","mental health personality social behavior":"Self","relationships-sex dating marriage":"Self/sex_relationships",shopping:"Style/Shopping",weddings:"Style/Weddings"}[e]||""}function getVultureAdChannel(e){var t="";switch(e){case"tv":case"music":case"movies":case"books":case"comedy":case"art":case"theater":t=e;break;default:t=""}return t}function getIntelligencerAdChannel(e){var t="";switch(e){case"politics-domestic":case"politics-international":t="Politics";break;case"business":case"internet-culture":case"products-apps-software":case"products-consumer-electronics":t="Business";break;case"tech-industry":case"tech-society":t="Technology";break;default:t=""}return t}function getNYMagAdChannel(e){var t="";switch(e){case"all":t=e;break;case"company information":t="company";break;case"new york guides & things to do":t="to-do";break;case"other":t=e;break;case"sponsored guides":t="s-guides";break;default:t=""}return t}function appendSectionToDfpAds(){var e,t,n,a=document.querySelector("meta[property='og:site_name']"),i=document.querySelector("article[data-content-channel]"),o=document.querySelectorAll('[data-name^="/4088/"]');a&&(e=a.content),i&&(t=i.getAttribute("data-content-channel").toLowerCase()),t&&("The Cut"===e?n=getCutAdChannel(t):"Vulture"===e?n=getVultureAdChannel(t):"Intelligencer"===e?n=getIntelligencerAdChannel(t):"New York Magazine"===e&&(n=getNYMagAdChannel(t)),n&&_forEach(o,function(e){e.setAttribute("data-name",e.getAttribute("data-name")+"/"+n)}))}function injectGoogleScripts(){var e=document.createElement("script"),t=document.createElement("script"),n=document.createDocumentFragment();e.src="//www.googletagservices.com/tag/js/gpt.js",e.async="async",t.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",t.async="async",n.appendChild(e),n.appendChild(t),document.getElementsByTagName("body")[0].appendChild(n)}appendSectionToDfpAds(),injectGoogleScripts(),DS.controller("ad",["adService",function(e){return function(t){var n,a,i=e.create(t),o=t.getAttribute("data-offload"),r=new $visibility.Visible(t,{preloadThreshold:o?window.innerHeight/2:200}),s=!1;function l(){window.innerWidth>=1180&&t.parentElement.classList.contains("ad-repeat")&&flaggedComponentsOnPage.length&&(n=getElementsOverlapAmount(t,flaggedComponentsOnPage),a=parseInt(t.parentElement.getAttribute("data-gap"),10),t.style.marginTop=a+30+n+"px")}function c(){l(),e.refresh(i)}function d(){e.remove(i),s||(s=!0,r.on("shown",c))}r.preload&&$visibility.isElementNotHidden(t)?(e.addToPageLoadQueue(i),o&&r.on("hidden",d)):(r.on("preload",function(){!i.slot&&$visibility.isElementNotHidden(t)&&(l(),e.load(i))}),o&&r.on("hidden",d)),this.adData=i}}]); }, {"27":27,"28":28,"29":29}]; window.modules["coral-talk.client"] = [function(require,module,exports){"use strict";var coralEmbed,dom=require(1),store=require(89),visibility=require(28),auth0=require(7),TALK_AUTH="talk:auth_token",hasEmbedScriptLoaded=!1,hasCoralTalkRendered=!1;function renderComments(e){if(hasEmbedScriptLoaded&&!hasCoralTalkRendered){var t={talk:"".concat(window.location.protocol,"//").concat(e.CORAL_TALK_HOST),auth_token:store.get(TALK_AUTH),asset_url:e.TALK_ASSET_URL};hasCoralTalkRendered=!0,coralEmbed=window.Coral.Talk.render(e.commentStreamContainer,t)}}function coralLogin(){coralEmbed.login(store.get(TALK_AUTH))}function embedScript(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.addEventListener("load",function(){hasEmbedScriptLoaded=!0,renderComments(t)}),document.getElementsByTagName("head")[0].appendChild(n)}function attemptScriptEmbedding(e){hasEmbedScriptLoaded?renderComments(e):embedScript(e.EMBED_URL,e)}function addVisibilityListener(e,t){new visibility.Visible(e,{preloadThreshold:750}).on("preload",function(){return attemptScriptEmbedding(t)})}function removeSignInButton(e){e&&e.parentNode&&dom.removeElement(e)}function init(e){var t=e.getAttribute("data-coral-talk-host"),n="".concat(window.location.protocol,"//").concat(t,"/embed.js"),i=document.documentElement.getAttribute("data-uri"),o="http://".concat(i,".html"),r="true"===e.getAttribute("data-maintenance"),a=-1!==o.indexOf("@published"),c=e.querySelector(".coral-talk-container"),d=e.querySelector(".coral-talk-btn-signin"),l={CORAL_TALK_HOST:t,EMBED_URL:n,commentStreamContainer:c,signInButton:d,TALK_ASSET_URL:o};!r&&a&&(auth0.on("init",function(){addVisibilityListener(e,l),d.addEventListener("click",function(){return auth0.showLogin()}),auth0.isAuthenticated()&&removeSignInButton(d)}),auth0.on("login",function(t,n){removeSignInButton(d),store.set(TALK_AUTH,t["http://nymag.com/coral_talk"],n),visibility.isElementInViewport(e)&&attemptScriptEmbedding(l),hasCoralTalkRendered&&coralLogin()}),auth0.on("logout",function(){store.remove(TALK_AUTH)}))}module.exports=init; }, {"1":1,"7":7,"28":28,"89":89}]; window.modules["choreographer.client"] = [function(require,module,exports){"use strict";var cookie=require(26),_require=require(65),insertSpeedBumpComponents=_require.insertSpeedBumpComponents,_require2=require(61),generateGrowl=_require2.generateGrowl,gtm=require(41),_require3=require(62),getLocalStorage=_require3.getLocalStorage,_require4=require(66),getClientHistory=_require4.getClientHistory,updateClientHistoryWithPageData=_require4.updateClientHistoryWithPageData,auth0=require(7),_require5=require(64),Scenario=_require5.Scenario,cidReadyEvent="nymcid-set",cidKey="nymcid",logger=require(63).Logger(function(){return getLocalStorage("show_choreographer_logs")});function initializeChoreographer(e){var o=e.getAttribute("data-site-slug"),t=pageShouldCountAsView(),r=auth0.isSubscriber();return o?getClientId(cidKey,8e3).then(function(e){return logger.h1("Choreographer initialized"),logger.log("clientId: ".concat(e)),logger.log("page counts as a view: ".concat(t)),t?updateClientHistoryWithPageData(e,o):getClientHistory(e)}).then(function(n){logger.group(),logger.h2("Client history"),logger.table(n),logger.groupEnd();var i=readJSONFromScript(e.querySelector("script")),c=i.scenarios,a=i.touts,l=c.map(function(e){return Scenario(e,n,o,r)}).filter(function(e){return logger.group(),logger.h2("Evaluating scenarios"),logger.log(e),logger.groupEnd(),e.shouldShow}).reduce(function(e,o){var t=o.action,r=o.min,n=o.count,i=a.find(function(e){return e.value===t});return!i||e[i.type]?e:(e[i.type]=i,e[i.type].viewCount=n-r,e)},{});logger.group(),logger.h2("Active Touts"),logger.log(l),logger.groupEnd(),executeTouts(e,t,l,n)}).catch(console.error):console.error("siteSlug not found.")}function documentIncludesComponent(e){return document.querySelector('[data-uri*="/'.concat(e,'/"]'))}function pageShouldCountAsView(){return!documentIncludesComponent("product")}function executeTouts(e,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,n=r.global,i={totalArticleCount:n.total||0,standardArticleCount:n.Article||0,featureArticleCount:n.Feature||0,magazineArticleCount:n.Magazine||0};o&&t["content-cliff"]?cliff(findTemplate(e,"content-cliff"),t["content-cliff"],t["content-cliff"].viewsLeft,r):t["growl-newletter"]||!t["promo-growl"]?t["speed-bump"]&&insertSpeedBumpComponents(findTemplate(e,"speed-bump"),t["speed-bump"],i):promoGrowl(findTemplate(e,"growl-message"),{contentClass:"promo-content",title:void 0,name:t["promo-growl"].name,scrollDepth:t["promo-growl"].promoGrowlScrollDepth,cta:t["promo-growl"].promoGrowlCTA,body:t["promo-growl"].promoGrowlMessage,link:t["promo-growl"].promoGrowlLink,baseTrackingData:i})}function promoGrowl(e,o){var t=o.contentClass,r=o.scrollDepth,n=o.name,i=o.title,c=o.body,a=o.cta,l=o.link,u=o.baseTrackingData;var g,s=(g='\n \n "),document.createRange().createContextualFragment(g));s.querySelector("a").addEventListener("click",function(){var e=u;e.event="eec.promotionClick",e.ecommerce={promoClick:{promotions:[{name:n,creative:c,id:"promo growl",position:"growl"}]}},gtm.reportNow(e)}),generateGrowl(e,"#growl-message",{content:s,scrollDepth:r,onShow:function(){var e=u;e.event="eec.promotionView",e.ecommerce={promoView:{promotions:[{name:n,creative:c,id:"promo growl",position:"growl"}]}},gtm.reportNow(e)}})}function cliff(e,o,t,r){var n=r.first_visit,i=r.global,c={totalArticleCount:i.total||0,standardArticleCount:i.Article||0,featureArticleCount:i.Feature||0,magazineArticleCount:i.Magazine||0},a=o.name,l=o.contentCliffWarningBody,u=o.contentCliffBody,g=document.importNode(e,!0).querySelector(".content-cliff"),s=document.querySelector(".article-content > .clay-paragraph");g&&(s.insertAdjacentHTML("afterend",g.outerHTML),require("content-cliff.client")(document.querySelector(".content-cliff"),{cliffOptions:o,viewsLeft:t,firstVisit:Number(n),onWarn:function(){var e=c;e.event="eec.promotionView",e.ecommerce={promoView:{promotions:[{name:a,creative:l,id:"warning growl",position:"growl"}]}},gtm.reportNow(e)},onClickWarn:function(){var e=c;e.event="eec.promotionClick",e.ecommerce={promoClick:{promotions:[{name:a,creative:l,id:"warning growl",position:"growl"}]}},gtm.reportNow(e)},onShow:function(){var e=c;e.event="eec.promotionView",e.ecommerce={promoView:{promotions:[{name:a,creative:u,id:"content cliff",position:"in-article"}]}},gtm.reportNow(e)},onClickCliff:function(){var e=c;e.event="eec.promotionClick",e.ecommerce={promoClick:{promotions:[{name:a,creative:u,id:"content cliff",position:"in-article"}]}},gtm.reportNow(e)}}))}function getClientId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,t=cookie.get(e);return t?Promise.resolve(t):new Promise(function(t,r){var n=setTimeout(function(){r("could not find key: ".concat(e," on cookie after ").concat(o,"ms"))},o);window.addEventListener(cidReadyEvent,function(){clearTimeout(n),t(cookie.get(e))})})}function readJSONFromScript(e){try{return JSON.parse(e.innerHTML)}catch(e){return{touts:[],scenarios:[]}}}function findTemplate(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=e&&e.querySelector('[data-template-id="'.concat(o,'"]'));return t&&t.content}module.exports=function(e){auth0.on("init",function(){initializeChoreographer(e)})}; }, {"7":7,"26":26,"41":41,"61":61,"62":62,"63":63,"64":64,"65":65,"66":66,"content-cliff.client":"content-cliff.client"}]; window.modules["growl.client"] = [function(require,module,exports){"use strict";require(112);var _some=require(113),dom=require(1),localStorageKeyRoot="slideout-",_require=require(62),getLocalStorage=_require.getLocalStorage,setLocalStorage=_require.setLocalStorage;module.exports=function(e,t){var o=t.content,r=t.onShow,i=t.scrollDepth,n=void 0===i?50:i,s=t.dismissable,a=void 0!==s&&s,l=Number(n||e.getAttribute("data-display-at-page-scroll-percentage")),c=dom.find(e,".modal"),d=t.id||e.getAttribute("id"),u=localStorageKeyRoot+d,g=getLocalStorage(u);function m(){c.classList.add("hidden")}function v(){setLocalStorage(u,!0),m()}a&&g?e.remove():(o&&e.querySelector("[data-content]").appendChild(o),l&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=new IntersectionObserver(function(e){_some(e,"isIntersecting")&&(c.style.top="inherit",c.classList.remove("hidden","initial"),"function"==typeof r&&r(),t.unobserve(c))});c.style.top="".concat(document.querySelector("body").scrollHeight/(100/e),"px"),t.observe(c)}(l),e.querySelector(".dismiss-modal").addEventListener("click",function(){return a?v():m()}),e.addEventListener("growl:hide",m),e.addEventListener("growl:dismiss",v))}; }, {"1":1,"62":62,"112":112,"113":113}]; window.modules["speed-bump.client"] = [function(require,module,exports){"use strict";var gtm=require(41),visibility=require(28);module.exports=function(e,i){if(i&&e){var o=i.name,r=i.speedbumpDescription,t=i.speedbumpMessage,n=i.speedbumpLink,s=i.baseTrackingData,c=new visibility.Visible(e,{shownThreshold:.5});e.querySelector(".description").innerHTML=r,e.querySelector(".promo-link").innerHTML=t,e.querySelector(".promo-link").href=n,e.classList.remove("collapsed"),c.on("shown",function(){if(visibility.isElementNotHidden(e)){var i=s;i.event="eec.promotionView",i.ecommerce={promoView:{promotions:[{name:o,creative:r,id:"speed bump",position:"in-article"}]}},gtm.reportNow(i),c.destroy()}}),e.querySelector(".promo-link").addEventListener("click",function(){var e=s;e.event="eec.promotionClick",e.ecommerce={promoClick:{promotions:[{name:o,creative:r,id:"speed bump",position:"in-article"}]}},gtm.reportNow(e)})}}; }, {"28":28,"41":41}]; window.modules["content-cliff.client"] = [function(require,module,exports){"use strict";var _require=require(61),generateGrowl=_require.generateGrowl,auth0=require(7),isProduction=require(6)(),_require2=require(62),getLocalStorage=_require2.getLocalStorage,setLocalStorage=_require2.setLocalStorage,logger=require(63).Logger(function(){return!isProduction});function findTemplate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.querySelector('[data-template-id="'.concat(t,'"]'));return n&&n.content}module.exports=function(e,t){if(t){logger.group(),logger.h2("Content Cliff");var n,o=t.cliffOptions,r=t.viewCount,c=t.firstVisit,i=t.onWarn,a=t.onClickWarn,l=t.onShow,u=t.onClickCliff,f=o.contentCliffWarningTitle,s=o.contentCliffWarningBody,d=o.contentCliffWarningCTA,g=o.contentCliffWarningLink,v=o.contentCliffWarningScrollDepth,h=findTemplate(e,"content-cliff-warning-growl"),w=300,p=["taboola"],m="#content-cliff",q=e,C=(n=0,document.querySelectorAll("[data-word-count]").forEach(function(e){n+=Number(e.getAttribute("data-word-count")||0,10)||0}),n),S=function(e,t){function n(e){return Math.round(e.getTime()/1e3/60)}var o=n(e),r=n(t);return o-r}(new Date,new Date(c))\n \n

\n \n \n "),document.createRange().createContextualFragment(q));var q;function C(){var e=new Date,t=e.getMonth(),n=e.getFullYear();return"content-cliff-warning-displayed-".concat(n,"-").concat(t)}return m.querySelector("a").addEventListener("click",a),{warn:function(){generateGrowl(e,"#content-cliff-warning-growl",{content:m,onShow:function(){var e;i(),e=C(),setLocalStorage(e,"true")},scrollDepth:h})},shouldWarn:function(e){return t=C(),!("true"===getLocalStorage(t))||e0&&void 0!==arguments[0]?arguments[0]:"";return document.querySelectorAll("".concat(e," ~ *"))}(m)).forEach(function(e){return e.remove()}),t=o.contentCliffStatus,n=o.contentCliffPromo,r=o.contentCliffCTA,c=o.contentCliffURL,i=e.querySelector("[data-content-cliff-status]"),a=e.querySelector("[data-content-cliff-promo]"),(f=e.querySelector("[data-content-cliff-cta]"))&&f.setAttribute("href",c),f&&f.insertAdjacentHTML("afterbegin",r),i&&i.insertAdjacentHTML("afterbegin",t),a&&a.insertAdjacentHTML("afterbegin",n),f&&f.addEventListener("click",u),q.classList.remove("collapsed"),p.forEach(function(e){var t=document.querySelector('[data-uri*="/'.concat(e,'/"]'));t&&t.remove()}),A.addEventListener("click",function(){return auth0.showLogin()})}}[function(){if(C1&&i.classList.add("multi-children"),a=0;a=s&&(this.showModal(),e.removeEventListener("scroll",a))},200).bind(this);!s||i>s?this.showModal():e.addEventListener("scroll",a)},showModal:function(){this.signUpView.classList.remove("hidden"),this.successView.classList.add("hidden"),this.modal.classList.remove("hidden")},clearError:function(){this.errorMessage.classList.add("hidden"),this.email.classList.remove("error")},submitForm:function(t){var e=new XMLHttpRequest;return t.preventDefault(),this.email.value.search(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i)=200&&e=1180?t.push({mode:a?"thumbnails-f":"thumbnails-b",container:"taboola-desktop-below-article-thumbnails",placement:"Desktop Below Article Thumbnails",target_type:"mix"}):window.innerWidth>=768?t.push({mode:a?"thumbnails-g":"thumbnails-c",container:"taboola-tablet-below-article-thumbnails",placement:"Tablet Below Article Thumbnails",target_type:"mix"}):t.push({mode:a?"thumbnails-h":"thumbnails-d",container:"taboola-mobile-below-article-thumbnails",placement:"Mobile Below Article Thumbnails",target_type:"mix"})}module.exports=function(t){var e,a,o,i,n=t.getAttribute("data-taboolaId"),l=t.getAttribute("data-site-slug");t.classList.contains("disabled")||(window._taboola=window._taboola||[],window._taboola.push({article:"auto"}),e=document.createElement("script"),a=document.getElementsByTagName("script")[0],o="//cdn.taboola.com/libtrc/".concat(n,"/loader.js"),i="tb_loader_script",document.getElementById(i)||(e.async=1,e.src=o,e.id=i,a.parentNode.insertBefore(e,a)),window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),pushUnits(window._taboola,l),window._taboola.push({flush:!0}))}; }, {}]; window.modules["article.client"] = [function(require,module,exports){"use strict";var $visibility=require(28),$gtm=require(41);DS.controller("article",[function(){var e=40;function t(t){var i=document.querySelector(".wrapper > .tertiary"),n=t.querySelector(".article-header"),r=n?n.querySelector("img"):null,o=function(){i.style.paddingTop=n.getBoundingClientRect().height+e+"px"};i&&n&&(window.innerWidth-1,o=new RegExp("[\\?&]tag=[^&]+");if(r&&n)return(i=_get(e,"search","")).match(o)||(e.search=(i?i+"&":"?")+"tag="+n),e.href}(u,r)||f(s,r,u))&&(u.href=i))}function h(e){var t,n,r=dom.closest(e.target,"a"),o=r&&r.href;o&&o.length&&(r.href=(n=(t=o).split(i)).length>1?decodeURIComponent(n[1]):t)}return function(e){var i=function(e){return!!(r=e.getAttribute("data-skimlinks"))}(e),a=function(e){return!!(n=e.getAttribute("data-amazon"))}(e);visit.onceReady(function(e){o=e}),(i||a)&&(!function(e){t=(e.getAttribute("data-excluded-hostnames")||"").toLowerCase().split(",")}(e),globalClick.addHandler(_,h))}}]); }, {"1":1,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35,"36":36}]; window.modules["sailthru-personalization-pixel.client"] = [function(require,module,exports){"use strict";DS.controller("sailthru-personalization-pixel",[function(){return function(){var t,e=document.querySelector(".sailthru-personalization-pixel"),o=e.getAttribute("data-horizon");(t=document.createElement("script")).type="text/javascript",t.async=!0,t.src="https://ak.sail-horizon.com/horizon/v1.js",t.onload=function(){Sailthru.setup({domain:o,useStoredTags:!1})},e.appendChild(t)}}]); }, {}]; window.modules["gtm.client"] = [function(require,module,exports){"use strict";var $gtm=require(41);DS.controller("gtm",[function(){return function(t){$gtm.init(t.getAttribute("data-container-id"))}}]); }, {"41":41}]; window.modules["global-nav.client"] = [function(require,module,exports){"use strict";var dom=require(1),auth0=require(7),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find(".global-nav"),gtm=require(41),pageUri=require(110).getPageUri();function gtmSendReport(t,n,i){var e={eventCategory:"ecommerce",eventAction:"componentClick",brand:t,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"vertical-link"===i&&(e.eventLabel=n.href),gtm.reportNow(e)}function init(t){auth0.on("init",function(){signInButton.addEventListener("click",function(t){auth0.showLogin(),gtmSendReport("Sign In",t.target,"user-info-link")}),signOutButton.addEventListener("click",function(t){auth0.logout(),gtmSendReport("Sign Out",t.target,"user-info-link")}),auth0.isAuthenticated()&&t.classList.add("signed-in"),auth0.isSubscriber()&&t.classList.add("subscribed")}),auth0.on("login",function(){t.classList.add("signed-in"),auth0.isSubscriber()&&t.classList.add("subscribed")}),auth0.on("logout",function(){t.classList.remove("signed-in"),t.classList.remove("subscribed")})}globalNav.addEventListener("click",function(t){var n=t.target;n.classList.contains("global-nav-track")&&gtmSendReport(n.text,n,"vertical-link")}),module.exports=init; }, {"1":1,"7":7,"41":41,"110":110}]; window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";var eventify=require(136),_pickBy=require(57),_each=require(210),fingerprintjs2=require(209),DS=require(208);function registerGlobals(){window.DS=DS,window.Eventify=eventify,window.Fingerprint2=fingerprintjs2,DS.value("Eventify",eventify),DS.value("Fingerprint2",fingerprintjs2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var r=_pickBy(n.definitions,function(e){return e.providerStrategy===n.providers.controller}),o=Object.keys(r);function t(e){return function(r){try{n.get(e,r)}catch(e){logMountError(r,e)}}}_each(o,function(n){var r=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),o=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(r,t(n)),_each(o,t(n))}),this.components=o}]),DS.get("components")}function logMountError(e,n){var r=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+r,n)}registerGlobals(),document.addEventListener("DOMContentLoaded",function(){mountDollarSliceComponents()}); }, {"57":57,"136":136,"208":208,"209":209,"210":210}]; window.modules["ads.legacy"] = [function(require,module,exports){"use strict";var _map=require(37),_forEach=require(27),_isString=require(156),_each=require(210),_debounce=require(100),_sortBy=require(96),page=require(110),visit=require(35);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var n,r,o,s,d,u,c={},l=this,g=[],f=visit.getQueryParamsObject(["utm_campaign"]);i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,n=function(e){var t,a,n=e.data;return n.loaded?e:(n.loaded=!0,t=null,(t=n.sizes?u.defineSlot(n.name,n.sizes,n.id).addService(u.pubads()):u.defineOutOfPageSlot(n.name,n.id).addService(u.pubads())).setTargeting("adid",n.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=l.getAdCount(n.label),t.setTargeting("label",n.label+"_"+n.site+"-"+a),u.display(n.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),e.slot=t,e)},r=function(e){var a,i,n,r=t(),o=e.getAttribute("data-name"),s=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),u=e.getAttribute("data-site");r=e.id,s&&s.length?(s=s.split(","),a=[],_map(s,function(e){e=e.split("x"),i=parseInt(e[0]),n=parseInt(e[1]),a.push([i,n])})):(e.classList.add("oop"),a=!1),this.data={id:r,name:o,sizes:a,loaded:!1,label:d,site:u},c[r]=this},s=function(e){u.cmd.push(function(){var t=n(e);c[e.data.id]=t})},o=function(e){e.slot?u.pubads().refresh([e.slot],{changeCorrelator:!1}):e&&s(e)},u.cmd.push(function(){var e,t,n,r=page.getMeta("article:tag"),o=page.getMeta("author"),s=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");n=[],_forEach([r,o,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&n.push(e)})}),u.pubads().setTargeting("kw",n),s=s.slice(s.lastIndexOf("/")+1),u.pubads().setTargeting("pn",s),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=s,this.create=function(e){return new r(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),o(t)):o(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(c);return _each(i,function(i){(t=c[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return c[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(g,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?s(e):i.setTimeout(function(){s(e)},1200)}),g=[]},10),this.addToPageLoadQueue=function(e){g.push(e),d()}}]); }, {"27":27,"35":35,"37":37,"96":96,"100":100,"110":110,"156":156,"210":210}]; window.modules["chartbeat.legacy"] = [function(require,module,exports){"use strict";var page=require(110),auth0=require(7);DS.service("chartbeat",["$document","$window",function(t,e){var a,n,o,i,c,s=t.getElementById("cb-sponsor-data");function r(){var a=t.createElement("script");e._sf_endpt=(new Date).getTime(),a.setAttribute("language","javascript"),a.setAttribute("type","text/javascript"),a.setAttribute("src","//static.chartbeat.com/js/chartbeat.js"),t.body.appendChild(a)}e._sf_async_config={uid:19989,useCanonical:!0,domain:"nymag.com",sections:(a=page.getSiteBase(),n=page.getSiteName(),o=n||a,"The Cut"!==o&&"Vulture"!==o||(o+=[",",o,page.getChannel()].join(" ")),o)},(i=page.getPrimaryPageComponent())&&"Sponsored Story"===i.getAttribute("data-type")?(e._sf_async_config.sponsorName=s&&s.getAttribute("data-sponsor"),e._sf_async_config.type="Sponsored"):e._sf_async_config.sponsorName=void 0,(c=t.querySelectorAll(".article-author")).length&&(e._sf_async_config.authors=c[0].textContent.trim()),e._cbq=e._cbq||[],auth0.on("init",function(){var a,n;e._cbq.push(["_acct",auth0.isAuthenticated()?"lgdin":"anon"]),a=r,"complete"===t.readyState?a():(n="function"==typeof e.onload?e.onload:function(){},e.onload=function(){n(),a()})})}]),setTimeout(function(){DS.get("chartbeat")},0); }, {"7":7,"110":110}]; window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}}); }, {}]; window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]); }, {}]; require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)) .forEach((key) => window.require(key)); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules) .filter((key) => typeof key === 'string' && key.match(/\.client$/)) .forEach((key) => { let controllerFn = window.require(key); if (typeof controllerFn === 'function') { const name = key.replace('.client', ''), instancesSelector = `[data-uri*="_components/${name}/"]`, defaultSelector = `[data-uri$="_components${name}"]`, instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); for (let el of instances) { tryToMount(controllerFn, el, name); } for (let el of defaults) { tryToMount(controllerFn, el, name); } } }); } // note: legacy controllers that require legacy services (e.g. dollar-slice) must // wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first mountLegacyServices(); mountComponentModules(); // ]]