1/*! For license information please see 9545.e8a5fb54fcd5f736.js.LICENSE.txt */ 2(self.webpackChunktexasmonthly=self.webpackChunktexasmonthly||[]).push([[9545],{9545:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>O});var n=r(4692),i=r.n(n),o=r(7350),a=r.n(o),s=r(3783),c=r(6356),l=r(4939),u=r(6879),f=r.n(u),h=r(4692);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}const v=function(){return t=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$image=e,this.caption=r.trim(),this.credit=n.trim(),this.imageOrientation=e.get(0).height>e.get(0).width?"portrait":"landscape",this.insertAfter=i,this.elementsToHide="string"==typeof o?[o]:o,this.$lightboxModal=null,this.$image?0!==h(this.insertAfter).length||console.error("Element to insert after not found."):console.error("Image not found.")},e=[{key:"init",value:function(){var t=this;this.$lightboxModal=h(this.buildLightbox()),this.$lightboxModal.insertAfter(h(this.insertAfter)),this.showLightbox(),this.$lightboxModal.on("click",(function(){t.destroyLightbox()})),this.addTouchEventListeners(),h(document).on("keydown.lightbox",(function(e){"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||t.destroyLightbox()})),window.addEventListener("resize",(0,l.nF)((function(){t.setLightboxHeight(!0)}),200))}},{key:"addTouchEventListeners",value:function(){var t=this,e=this.$lightboxModal.get(0),r=0,n=!1;e.addEventListener("touchstart",(function(t){r=t.touches[0].clientY,n=!0,e.style.transition="none"})),e.addEventListener("touchmove",(function(t){if(n){var i=t.touches[0].clientY-r;e.style.transform="translateY(".concat(i,"px)")}})),e.addEventListener("touchend",(function(){n&&(n=!1,t.destroyLightbox())}))}},{key:"buildLightbox",value:function(){var t="portrait"===this.imageOrientation?"h-full ml-auto":"max-h-[80vh]";this.$image.removeClass("lazyloaded lazyloading ls-is-cached").addClass("w-full object-contain !opacity-0 ".concat(t)),this.$image.removeAttr("width"),this.$image.removeAttr("style"),this.$image.removeAttr("decoding"),this.$image.removeAttr("sizes"),this.$image.removeAttr("srcset"),this.$image.removeAttr("src"),this.$image.attr("sizes","100vw");var e=this.$image[0].outerHTML,r=this.caption?'<span class="lightbox-modal__caption md:self-start" data-id="img-caption">'.concat(this.caption,"</span>"):"",n=this.credit?'<span class="lightbox-modal__credits shrink-0 text-gray-500 dark:text-dm-500 md:self-start" data-id="img-credit">'.concat(this.credit,"</span>"):"",i='\n <figcaption class="flex w-full flex-col justify-between gap-2 px-5 py-2 font-rs-narrow text-sm font-bold tracking-wide opacity-0 transition-opacity duration-200 md:px-0 md:py-4 lg:flex-row lg:gap-x-4 '.concat("portrait"===this.imageOrientation?"landscape:max-w-60 landscape:flex-col landscape:self-end":"landscape:px-0",'">\n ').concat(r,"\n ").concat(n,"\n </figcaption>");return'\n <div class="lightbox-modal '.concat(this.imageOrientation,"-image group fixed inset-0 z-[501] hidden h-screen cursor-pointer bg-gray-100 dark:bg-dm-990 before:content-[''] before:w-full before:h-screen dark:before:bg-dm-990 before:bg-gray-100 before:absolute before:top-0 before:-translate-y-full after:content-[''] after:w-full after:h-screen after:bg-gray-100 dark:after:bg-dm-990 after:absolute after:top-full\">\n <div class=\"lightbox-modal__content-wrapper flex flex-col items-center md:px-9 md:landscape:py-5 justify-center h-full\">\n <figure class=\"lightbox-modal__figure relative z-[2] flex w-full flex-col items-center ").concat("portrait"===this.imageOrientation?"justify-center landscape:h-[inherit] landscape:flex landscape:flex-row landscape:gap-x-4 landscape:justify-center md:max-lg:max-w-[90%] lg:max-xl:portrait:h-[inherit]":"",'">\n <div class="lightbox-modal__image w-full ').concat("portrait"===this.imageOrientation?"landscape:col-start-2 lg:max-xl:portrait:col-start-2 md:landscape:w-auto h-auto landscape:h-full":"h-full",'">\n ').concat(e,"\n </div>\n ").concat(i,'\n </figure>\n <div class="loader !absolute z-[1]"></div>\n </div>\n </div>')}},{key:"destroyLightbox",value:function(){var t=this;this.$lightboxModal.fadeOut(250,"linear",(function(){h(document).off("keydown.lightbox"),h(window).off("resize.lightbox"),t.$lightboxModal.remove(),t.elementsToHide.length>0&&t.elementsToHide.forEach((function(t){h(t).removeClass("tm-hidden")})),h("body").removeClass("inactive")}))}},{key:"showLightbox",value:function(){var t=this;h("body").addClass("inactive"),this.elementsToHide.length>0&&this.elementsToHide.forEach((function(t){h(t).addClass("tm-hidden")})),this.setLightboxHeight(),this.$lightboxModal.fadeIn(250,"linear",(function(){var e=t.$lightboxModal.find(".lightbox-modal__image img");f().loader.unveil(e.get(0)),e.hasClass("lazyloaded")||e.hasClass("ls-is-cached")?t.showImage(e):e.one("load",(function(){t.showImage(e)}))}))}},{key:"showImage",value:function(){f().autoSizer.checkElems();var t="portrait"===this.imageOrientation?this.$lightboxModal.find(".lightbox-modal__figure img"):this.$lightboxModal.find(".lightbox-modal__figure"),e=this.$lightboxModal.find(".lightbox-modal__image img"),r=this.$lightboxModal.find("figcaption");t.removeAttr("style");var n=(0,l.mr)(e);t.attr("style","max-width: ".concat(n,"px;")),"landscape"===this.imageOrientation&&this.$lightboxModal.find(".lightbox-modal__image").css("height","calc(100% - "+r.outerHeight()+"px)"),r.removeClass("opacity-0").addClass("opacity-100"),e.removeClass("!opacity-0"),this.$lightboxModal.find(".loader").addClass("hidden")}},{key:"setLightboxHeight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"block"===this.$lightboxModal.get(0).style.display?this.$lightboxModal.attr("style","height: ".concat(window.innerHeight,"px; display: block;")):this.$lightboxModal.attr("style","height: ".concat(window.innerHeight,"px;")),t&&this.showImage()}}],e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}
vendor: 4,547 bytes, line 2
2function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:j(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",g="completed",v={};function b(){}function w(){}function x(){}var k={};l(k,a,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(I([])));S&&S!==r&&n.call(S,a)&&(k=S);var O=x.prototype=b.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==m(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var i=h;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=T(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=f(e,r,n);if("normal"===l.type){if(i=n.done?g:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=g,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(m(e)+" is not iterable")}return w.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},E(_.prototype),l(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(O),l(O,c,"Generator"),l(O,a,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function b(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t,e,r){return(e=S(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,S(n.key),n)}}function S(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}const O=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$articleHero=i()(".article-hero").find("header"),this.mdMq=window.matchMedia("(min-width: 768px)"),this.sidebarMq=window.matchMedia("(max-width: 1280px)"),this.wideClasses=".promo-in-body, .alignfull, .alignwide, .align-fullbleed",this.calledSidebarAd=!1,this.verticalOffsetThreshold=630,this.fromIssue=i()(".issue-tease").length>0,this.fromIssueOffset=120,this.heroType="default",this.pointsReached={25:!1,50:!1,75:!1,100:!1},this.throttledScrollHandler=null,this.init()},e=[{key:"init",value:function(){var t=this;this.checkDropCap(),this.fixReversedOLs(),this.fixResizedImageCaptions(),i()(window).on("resize.imageCaptions",a()((function(){t.fixResizedImageCaptions()}),500)),this.setHeroType(),i()(this.wideClasses).length>0?(this.initSidebarAdResizeListener(),this.checkVerticalOffset()):this.loadSidebarAd(),i()("body").hasClass("live-blog-post")&&this.initLiveBlogListeners(),this.initAdListeners(),this.initSectionReferrerListener(),this.initArticleScrollListener(),i()(".empty-article-notice .issue-link").length>0&&this.updateMagazineLink(),this.initLightboxButtons()}},{key:"initLiveBlogListeners",value:function(){var t=this,e=i()(".btn--reload-page"),r=i()(".article-content").find(".article-editors-note");e.on("click",(function(t){t.preventDefault(),i()(this).addClass("reloading"),window.location.href="".concat(window.location.origin).concat(window.location.pathname.slice(0,-1),"#latest")})),new IntersectionObserver((function(t){t.map((function(t){!t.isIntersecting&&t.boundingClientRect.y<0?e.addClass("fixed"):e.removeClass("fixed")}))})).observe(r.get(0)),window.addEventListener("stickyAdDisplayed",(function(r){var n;if(null!==(n=r.detail)&&void 0!==n&&n.element&&t.mdMq.matches){var i=r.detail.element.getBoundingClientRect();e.get(0).style.setProperty("--top-position",i.top+r.detail.element.offsetHeight+10+"px")}}))}},{key:"checkDropCap",value:function(){i()(".body-text > p:first-child").each((function(t){"J"!==i()(this).text().substr(0,1)&&"Q"!==i()(this).text().substr(0,1)||i()(this).addClass("dropcap-descender")}))}},{key:"fixReversedOLs",value:function(){i()(".article-content").find("ol[reversed]").each((function(t){var e;e=i()(this).attr("start")?parseInt(i()(this).attr("start"))+1:i()(this).find("li").length+1,i()(this).css("counter-reset","step-counter ".concat(e))}))}},{key:"setHeroType",value:function(){this.heroType=i()("body").find("[data-hero-type]").data("hero-type")}},{key:"initSidebarAdResizeListener",value:function(){var t=this;i()(window).on("resize.sidebarAd",a()((function(){t.checkVerticalOffset()}),500))}},{key:"destroySidebarAdResizeListener",value:function(){i()(window).off("resize.sidebarAd")}},{key:"checkViewportSize",value:function(t,e,r){r&&r.matches?e.unobserve(t):e.observe(t)}},{key:"loadSidebarAd",value:function(){!this.calledSidebarAd&&window.googletag&&googletag.apiReady&&!0!==txmoAdConfig.disabled&&(null!==document.getElementById("acm-ad-tag-div-gpt-vertical-top")&&(window.divgptverticaltop(),window.txmoAdRefresh.refresh_slot("div-gpt-vertical-top")),this.calledSidebarAd=!0,this.destroySidebarAdResizeListener())}},{key:"checkVerticalOffset",value:function(){var t=this,e=!0;t.sidebarMq.matches||(i()(this.wideClasses).each((function(r,n){n.offsetTop<t.verticalOffsetThreshold&&(e=!1),t.checkIssueTeaserClearance(n)})),e&&!this.calledSidebarAd&&this.loadSidebarAd())}},{key:"checkIssueTeaserClearance",value:function(t){this.fromIssue&&"hero-default"!==this.heroType&&"hero-default-small"!==this.heroType&&t.offsetTop<i()(".
2issue-tease").height()+this.fromIssueOffset&&i()(t).css({"margin-top":i()(".issue-tease").height()+this.fromIssueOffset-t.offsetTop})}},{key:"fixResizedImageCaptions",value:function(){var t=i()(".article-content").find(".wp-block-image.is-resized");t.length>0&&t.each((function(){var t=i()(this).find("img"),e=i()(this).find("figcaption");t.length>0&&e.length>0&&e.css("max-width",t.width())}))}},{key:"initSectionReferrerListener",value:function(){var t=[{selector:".eoa__recommended-posts",referrer:"Recommended Section"},{selector:".eoa__trending",referrer:"Trending Section (EOA)"},{selector:".link-dump-tout.recirculation-tout",referrer:"Multi Story Tout (Link Dump)"},{selector:".link-dump-tout.eoa-link-dump",referrer:"Read Next (Link Dump) EOA"},{selector:".single-story-tout",referrer:"Single Story Tout"},{selector:".multi-story-tout",referrer:"Multi Story Tout"}];i()(".eoa__recommended-posts a, .eoa__trending-posts a, .link-dump-tout a, .single-story-tout a, .multi-story-tout a, .article-text p a").on("click",(function(e){var r=i()(e.currentTarget);if(new URL(e.currentTarget.href).hostname===window.location.hostname){var n=t.find((function(t){return r.closest(t.selector).length>0}))||{referrer:"Article Body"};sessionStorage.setItem("sectionReferrer",n.referrer);var o=r.text().trim();o||(o=r.attr("aria-label")||r.attr("href")),dataLayer.push({event:"txmoClick",clickLocation:n.referrer,clickAction:"click",clickLabel:o})}}))}},{key:"initArticleScrollListener",value:function(){var t=this,e={referrer:document.referrer,url:document.location.href},r=document.querySelector(".main-article-wrapper");this.throttledScrollHandler=a()((function(){t.handleScroll(r,e)}),75),window.addEventListener("scroll",this.throttledScrollHandler)}},{key:"handleScroll",value:function(t,e){var r=window.scrollY,n=t.clientHeight,i=Math.floor(r/n*100);i>=25&&!this.pointsReached[25]?(this.pointsReached[25]=!0,(0,s.Z)("tmarticlescroll_25percent",new Date,e)):i>=50&&!this.pointsReached[50]?(this.pointsReached[50]=!0,(0,s.Z)("tmarticlescroll_halfpage",new Date,e)):i>=75&&!this.pointsReached[75]?(this.pointsReached[75]=!0,(0,s.Z)("tmarticlescroll_75percent",new Date,e)):i>=100&&!this.pointsReached[100]&&(this.pointsReached[100]=!0,(0,s.Z)("tmarticlescroll_fullpage",new Date,e)),Object.values(this.pointsReached).every((function(t){return t}))&&window.removeEventListener("scroll",this.throttledScrollHandler)}},{key:"initAdListeners",value:function(){var t=this;if(window.txmoAdBus)var e=window.txmoAdBus.subscribe((function(r){if("txmo_ads_response_received"===r.type){var n=r.detail,i=n.adDefinition,o=n.slotEl;"1 - Horizontal Banner Flex"===i.name&&(o.parentElement.parentElement.className.includes("promo-footer__ad")?t.enableStickyAdObserver(i,"promo-footer--article-template",!0):(!document.body.className.includes("big-map-post")||document.body.className.includes("big-map-post")&&window.matchMedia("(max-width: 767px)").matches)&&t.enableStickyAdObserver(i,"promo-topper--article-template",!1),e())}}));else window.addEventListener("txmoAdBusReady",(function(){t.initAdListeners()}))}},{key:"enableStickyAdObserver",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var n=document.getElementsByClassName(e);if(n[0]){var i=new CustomEvent("stickyAdDisplayed",{detail:{element:n[0]}});if(r)window.dispatchEvent(i);else if(window.matchMedia("(max-width: 767px)").matches){n[0].style.position="sticky",window.dispatchEvent(i);var o=document.querySelector("section.eoa");o&&o.classList.add("sticky-offset");var a=document.querySelector("div.article-text");a&&a.classList.add("sticky-offset")}else new IntersectionObserver((function(t,e){t.forEach((function(t){if(t.intersectionRatio<1){if(!r){t.target.classList.add("is-sticky");var e=document.querySelector("section.eoa");e&&e.classList.add("sticky-offset");var o=document.querySelector("div.article-text");o&&o.classList.add("sticky-offset"),document.querySelector(":root").style.setProperty("--sticky-topper-offset",n[0].clientHeight+20+"px")}window.dispatchEvent(i)}}))}),{rootMargin:"-1px 0px 0px 0px",threshold:1}).observe(n[0]);t.settings.custom_refresh&&(t.settings.interval&&clearInterval(t.settings.interval),(!t.settings.refresh_limit||t.settings.refresh_count<t.settings.refresh_limit)&&(t.settings.interval=setInterval((function(){if("visible"===document.visibilityState&&!document.hidden){var e=window.txmoAds[t.tag_id].getConfig("targeting")||{};window.txmoAds[t.tag_id].setConfig({targeting:x(x({},e),{},{refresh:"true"})}),window.txmoAdRefresh.refresh_slot(t.tag_id),t.settings.refresh_count++}}),3e4)))}}}},{key:"destroyStickyAdObserver",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){t.classList.remove("is-sticky");var n=document.querySelector("section.eoa");n&&n.classList.remove("sticky-offset");var i=document.querySelector("div.article-text");i&&i.classList.remove("sticky-offset"),document.querySelector(":root").style.setProperty("--sticky-topper-offset","0px"),t.style.position="relative",t.style.top="auto",r&&r.unobserve(t);var o=new CustomEvent("stickyAdDestroyed",{detail:{element:t}});window.dispatchEvent(o),e&&clearTimeout(e)}}},{key:"updateMagazineLink",value:(n=y().mark((function t(){var e,r,n,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.A)((0,l.fw)());case 2:(e=t.sent)&&(r=i()(".empty-article-notice .issue-title").text().trim(),n=i()(".empty-article-notice a.issue-link"),(o=e.find((function(t){return t.friendlyName===r})))&&(n[0].href=(0,l.Fr)()?o.mobileUrl:o.desktopUrl));case 4:case"end":return t.stop()}}),t)})),o=function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){b(o,r,i,a,s,"next",t)}function s(t){b(o,r,i,a,s,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"initLightboxButtons",value:function(){var t=i()("figure.wp-block-image.has-lightbox");t.length>0&&t.each((function(){var t=i()(this).find("figcaption");if(t.length){var e=t.outerHeight();i()(this).find(".lightbox-expand").css("bottom",e+12+"px")}}));var e=i()("section.tm-gallery.has-lightbox div.tm-gallery-item-image");e.length>0&&e.each((function(){i()(this).addClass("group cursor-pointer relative")})),i()("div.article-content figure.wp-block-image.has-lightbox").on("click",(function(t){var e=i()(t.currentTarget).find("img").clone(),r=i()(t.currentTarget).find("figcaption.wp-element-caption span.caption").html();r||(r=i()(t.currentTarget).find("figcaption.wp-element-caption span").html());var n=i()(t.currentTarget).find("figcaption.wp-element-caption span.credits").html();new v(e,r,n,".site-wrapper","ul.share-article").init()})),i()("div.article-content section.tm-gallery.has-lightbox div.tm-gallery-item-image").on("click",(function(t){var e=i()(t.currentTarget).find("img").clone(),r=i()(t.currentTarget).parent().find(".tm-gallery-item-caption").html(),n=i()(t.currentTarget).parent().find(".tm-gallery-item-credit").html();new v(e,r,n,".site-wrapper","ul.share-article").init()})),i()("div.image-duo.has-lightbox figure").on("click",(function(t){var e=i()(t.currentTarget).find("img").clone(),r=i()(t.currentTarget).find(".image-duo__caption").html(),n=i()(t.currentTarget).find(".image-duo__credit").html();new v(e,r,n,".site-wrapper","ul.share-article").init()})),i()("div.image-pair.has-lightbox figure").on("click",(function(t){var e=i()(t.currentTarget).find("img").clone(),r=i()(t.currentTarget).find(".image-pair__caption").html(),n=i()(t.currentTarget).find(".image-pair__credit").html();new v(e,r,n,".site-wrapper","ul.share-article").init()}))}}],e&&L(t.prototype,e),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,o}()},6356:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(6630);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),s=new M(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",g="suspendedYield",v="executing",m="completed",y={};function b(){}function w(){}function x(){}var k={};f(k,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(I([])));
vendor: 4,747 bytes, line 2
2S&&S!==r&&n.call(S,c)&&(k=S);var O=x.prototype=b.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,a,s,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=T(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var l=d(e,r,n);if("normal"===l.type){if(i=n.done?m:g,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},E(_.prototype),f(_.prototype,l,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(O),f(O,u,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}var l=!1;n.T2.subscribe((function(t){var e;null!==(e=t.user)&&void 0!==e&&null!==(e=e.userData)&&void 0!==e&&null!==(e=e.entitlements)&&void 0!==e&&e.hasDigital&&(l=!0)}));const u=function(){var t,e=(t=o().mark((function t(){var e,r,n,i,s,c,u,f,h,d=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=d.length>0&&void 0!==d[0]&&d[0],l||e){t.next=3;break}return t.abrupt("return");case 3:if(r=sessionStorage.getItem("eMagsCookiesFetched"),n=sessionStorage.getItem("eMagsIssues"),r&&n){t.next=30;break}return console.debug("eMagsPromise Fetching Data"),t.prev=7,t.next=10,fetch("/wp-json/emags/get-data");case 10:return i=t.sent,t.next=13,i.text();case 13:if(s=t.sent,void 0!==(c=JSON.parse(s)).cookieStrings){u=a(c.cookieStrings);try{for(u.s();!(f=u.n()).done;)h=f.value,document.cookie=h}catch(t){u.e(t)}finally{u.f()}}if(sessionStorage.setItem("eMagsCookiesFetched",!0),void 0===c.issues){t.next=21;break}return n=JSON.stringify(c.issues),sessionStorage.setItem("eMagsIssues",n),t.abrupt("return",JSON.parse(n));case 21:t.next=28;break;case 23:return t.prev=23,t.t0=t.catch(7),console.error("error",t.t0),sessionStorage.setItem("eMagsCookiesFetched",!1),t.abrupt("return",null);case 28:t.next=31;break;case 30:return t.abrupt("return",JSON.parse(n));case 31:case"end":return t.stop()}}),t,null,[[7,23]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}()},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},171:(t,e,r)=>{var n=r(1873),i=r(659),o=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},4128:(t,e,r)=>{var n=r(1800),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},659:(t,e,r)=>{var n=r(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:(t,e,r)=>{var n=r(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},1800:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},8221:(t,e,r)=>{var n=r(3805),i=r(124),o=r(9374),a=Math.max,s=Math.min;t.exports=function(t,e,r){var c,l,u,f,h,d,p=0,g=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=c,n=l;return c=l=void 0,p=e,f=t.apply(n,r)}function b(t){var r=t-d;return void 0===d||r>=e||r<0||v&&t-p>=u}function w(){var t=i();if(b(t))return x(t);h=setTimeout(w,function(t){var r=e-(t-d);return v?s(r,u-(t-p)):r}(t))}function x(t){return h=void 0,m&&c?y(t):(c=l=void 0,f)}function k(){var t=i(),r=b(t);if(c=arguments,l=this,d=t,r){if(void 0===h)return function(t){return p=t,h=setTimeout(w,e),g?y(t):f}(d);if(v)return clearTimeout(h),h=setTimeout(w,e),y(d)}return void 0===h&&(h=setTimeout(w,e)),f}return e=o(e)||0,n(r)&&(g=!!r.leading,u=(v="maxWait"in r)?a(o(r.maxWait)||0,e):u,m="trailing"in r?!!r.trailing:m),k.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=d=l=h=void 0},k.flush=function(){return void 0===h?f:x(i())}
vendor: 1,051 bytes, lines 2-3
2,k}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},4394:(t,e,r)=>{var n=r(171),i=r(346);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},124:(t,e,r)=>{var n=r(9325);t.exports=function(){return n.Date.now()}},7350:(t,e,r)=>{var n=r(8221),i=r(3805);t.exports=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}},9374:(t,e,r)=>{var n=r(4128),i=r(3805),o=r(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=s.test(t);return r||c.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}}}]); 3//# sourceMappingURL=9545.e8a5fb54fcd5f736.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.