PageSourceSearch

https://www.winnipegfreepress.com/wp-content/client-mu-plugins/frontend/front-page.js?ver=202609171525

js winnipegfreepress.com collected 2026-09-24 08:35:22 UTC 55,112 bytes, 1 lines download raw bytes

1function e(e,n){if(e)do{if(t(e,n))return!0;if(e.nodeType===Node.DOCUMENT_NODE)break}while(e=e.parentNode);return!1}function t(e,t){return!(!e||!t)&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function n(e,n){if(!e||!n)return!1;t(e,n)||(e.className=""===e.className?n:e.className+" "+n)}function o(e,t){if(!e||!t)return!1;e.className=(" "+e.className+" ").replace(" "+t+" "," ").trim()}function i(e,t,n){return"string"!=typeof e?null:{type:e,element:t,useCapture:n}}function a(e,t){var n=document.getElementById(t);n&&e&&n.addEventListener(e.type,e.element,e.useCapture)}function r(e,t){if(e)for(var n=t.length,o=0;o<n;o++){var i=t[o];Array.isArray(i)&&(i=i[0]),a(e,i)}}function s(e,t){return e.getBoundries().top<=t.getBoundries().top&&e.getBoundries().bottom>=t.getBoundries().bottom}function l(e,t=!1){if(!e)return!1;var n=f("element",e);if(n.getBoundries().top==n.getBoundries().bottom)return!1;var o=f("page");return!0===t?s(o,n):function(e,t,n){return s(t,n)||t.getBoundries().top<=n.getBoundries().top&&t.getBoundries().bottom<=n.getBoundries().bottom||t.getBoundries().top>=n.getBoundries().top&&t.getBoundries().bottom>=n.getBoundries().bottom}(0,o,n)}function c(){return jQuery(window).width()<728}function u(e,t){try{const n=jQuery(`.load-more-${e}`).first();void 0===n||void 0===n.offset()?loadingCategoryPage=!1:n.offset().top<jQuery(window).scrollTop()+jQuery(window).height()+400?(loadingCategoryPage=!0,n.trigger("click")):function(e,t){0<(t=(t||0)+300)&&t<=900?setTimeout((function(){u(e,t)}),t):loadingCategoryPage=!1}(e,t)}catch(e){console.log("Load more trigger failed"),console.warn(e),loadingCategoryPage=!1}}function d(){account.is_logged_in?jQuery("html").addClass("html-"+account.subscription_type_uri):jQuery("html").addClass("html-not-logged-in"),account.is_recent_subscriber||"true"===function(){let e={},t=window.location.search.slice(1);t=t.split("#")[0];const n=t.split("&");for(let t of n){const n=m(t);"string"==typeof n.name&&"string"==typeof n.value&&h(e,n)}return e}().recent_subscriber?jQuery("html").addClass("html-recent-subscriber"):jQuery("html").addClass("html-not-recent-subscriber")}function p(e){const t=document.getElementsByClassName(e);return t&&t.length>0?t[0]:null}function f(e,t){var n={boundries:{top:0,bottom:0},getBoundries:function(){return this.boundries}};if("element"==(e=e||"page")&&t){var o=t.offsetTop;n.boundries={top:o,bottom:o+(t.clientHeight?t.clientHeight:t.offsetHeight)}}else{var i=jQuery(window).scrollTop();n.boundries={top:i,bottom:i+window.innerHeight}}return n}function g(){return{content:p("content"),sideBar:p("side-bar")}}function m(e){const t={},n=e.split("=");if(n.length<1)return t;let o,i=n[0].replace(/\[\d*\]/,(function(e){return o=e.slice(1,-1),""})),a=void 0===n[1]||n[1];return"boolean"!=typeof i&&(i=i.toLowerCase()),"boolean"!=typeof a&&(a=a.toLowerCase()),i.length<1||(t.name=i,t.value=a,o&&(t.num=o)),t}function h(e,t){if(e[t.name])if(e[t.name]&&"string"==typeof e[t.name]&&(e[t.name]=Array(e[t.name])),void 0===t.num)e[t.name].push(t.value);else{let n=e[t.name];if(t.num>=n.length){const o=t.num-(n.length-1),i=null;e[t.name]=[...n,...Array(o).fill(i)]}e[t.name][t.num]=t.value}else e[t.name]=t.value}const y=["path","domain","max-age","expires","secure","samesite"],b=3600;function v(e=0){return new Date(Date.now()+1e3*e).toUTCString()}function w(e,t,n={}){try{let o="string"==typeof t?t:JSON.stringify(t);n.domain=n.domain||"."+publicationVariables.publicationUri+".com",n.path=n.path||"/",void 0===n["max-age"]&&void 0===n.expires&&(n["max-age"]=b);const i=function(e={}){const t=Object.keys(e).reduce(((t,n)=>{if(y.includes(n)&&Object.prototype.hasOwnProperty.call(e,n)){let o=function(e,t){let n=t[e];return"secure"===e&&(n=void 0),n}(n,e);t=`${t};${n}${void 0===o?"":"="+o}`}return t}),"");return t||""}(n),a=`${encodeURIComponent(o)}${i}`,r=`${encodeURIComponent(e)}=${a}`;document.cookie=r}catch(e){}}function _(e,t){return e.split(t).map((function(e){return e.trim()}))}function j(e){let t=document.cookie;if(!t)return null;{t=decodeURIComponent(t);const n=_(t,";").map((e=>_(e,"=")));
1for(const[t,o]of n)if(t===e)try{return JSON.parse(o.trim())}catch(e){return o??null}}return null}var Q={wallpaperSlot:null},k={},C=null;const x=[728,90],S=[970,90],O=[970,250],T=[300,50],D=[320,50],N=[300,250],I=[300,600],E={LEADERBOARD:x,SUPER_LEADERBOARD:S,BILLBOARD:O,MOBILE_BANNER:T,MOBILE_LEADERBOARD:D,MREC:N,FILMSTRIP:I},P={type:"event","page-view":"page_view","page-title":"page_title","page-location":"page_location","page-path":"page_path",author:"author","content-type":"content_type","content-sponsor":"content_sponsor","publish-date":"publish_date","word-count":"word_count","wordpress-categories":"wordpress_categories",category:"event_category",action:"action_location",source:"action_source",entity:"entity"};function A(){return k}function M(){return 1==account.is_logged_in&&1==account.adfree_option}function z(){return!account.is_logged_in||!account.pbs_subscription}function $(){return jQuery(window).width()>969?[x,S,O]:x}function B(e,t){let n;t||(t="big-box-ad-top");let o=jQuery(`.${t}`).length;"ad-banner"==t&&(1==o&&"undefined"!=typeof articleData?"undefined"!=typeof articleData&&(o=3):o++),n=1==o?"top":2==o?"middle":"bottom";let i=pageVariables.gptadunit,a=null;return"ad-leaderboard"==t?a=c()?[T,D]:jQuery(window).width()>969?[x,S]:x:"top-billboard-ad"==t?jQuery(window).width()>727&&(a=$()):"top-superleaderboard-ad"==t?jQuery(window).width()>727&&(a=jQuery(window).width()>969?S:x):"ad-banner"==t?a=c()?[T,D]:$():"ad-mobile-banner"==t?c()&&(a=[T,D]):"ad-article"==t||"big-box-ad-top"==t?a=N:"ad-halfbox"==t?(a=N,n="spotlight"):"ad-skyscraper"==t?(a=[[160,600],I],n="skyscraper_top"==e?"top":"bottom"):"ad-spillbox"==t?c()?(a=[D,N,T],z()&&a.push(I)):a=N:"ad-wallpaper"==t?a=[4,4]:"ad-desktop-outstream-banner"==t?a=[2,2]:"ad-mobile-interstitial"==t?a=[320,480]:c()?(a=[N,D,T],z()&&a.push(I)):a=N,function(e,t,n,o,i,a){if(M()||"undefined"==typeof googletag){let e=new Date;return console.log("isAdsDisabled: "+e),void R()}const r="undefined"==typeof articleData?"index":"story";let s=null;return googletag.cmd.push((function(){try{let l=!1;const c=googletag.pubads().getSlots();for(const t of c){const o=t.getAdUnitPath();if(t.getSlotElementId()==e&&o==n){l=!0;break}}l||(s=googletag.defineSlot(n,a,e).addService(googletag.pubads()),s.setConfig({autoRefresh:{heavyAds:!0}}),s.setConfig({targeting:{loc:i,pos:o.toString(),page:r}}),jQuery.each(k,(function(e,t){s.setConfig({targeting:{[e]:t}})})),googletag.display(e),"ad-leaderboard"==t?(googletag.pubads().addEventListener("impressionViewable",(function(e){"leaderboard"==e.slot.getSlotElementId()&&(jQuery("#leaderboard iframe").height()<200?setTimeout((function(){R()}),1e3):R())})),googletag.pubads().addEventListener("slotRenderEnded",(function(e){if("leaderboard"==e.slot.getSlotElementId()){const e=jQuery("#leaderboard div iframe").height();0!=e&&null!=e&&e>200&&R()}else if("mobile-interstitial"==e.slot.getSlotElementId()&&jQuery("#mobile-interstitial iframe").height()>400){var t=jQuery(".mobile-interstitial-container");t.css({top:0,position:"fixed",width:"100%",height:"100%",zIndex:3e4,background:"#000"});var n=jQuery("#mobile-interstitial");n.css({textAlign:"center",width:"100%",height:"100%"}),n.find("iframe").css({margin:"auto",top:0,bottom:0,left:0,right:0,position:"absolute"});var o=document.createElement("div");o.setAttribute("style","top:0;right:0;width:50px;height:50px;position:absolute;cursor:pointer;z-index:11000000;"),o.setAttribute("id","close-mobile-interstitial");var i=document.createElement("img");i.setAttribute("src","https://wfpads.s3.amazonaws.com/mobile/close2x.png"),i.setAttribute("style","max-width:22px;margin:14px;max-height:100%;position:absolute;top:0;bottom:0;left:0;right:0;"),o.appendChild(i),jQuery(o).on("click",(function(){t.hide(),jQuery(".fullPageAd").hide()})),t.append(o)}}))):"ad-wallpaper"==t&&(Q.wallpaperSlot=s))}catch(e){console.warn("Trying to add ad to already defined slot")}})),s}(e,t,i,o,n,a)}let L=!1,U=setTimeout((function(){R()}),1e4);function R(){L||(L=!0,clearTimeout(U),jQuery(".billboard-ad-space.sticky").removeClass("sticky"),jQuery("nav.leaderboard-sticky").removeClass("leaderboard-sticky"))}function V(e){const t=jQuery.extend(!0,{},e);!function(e){for(const t of[].concat(Object.keys(e))){const n=Object.prototype.hasOwnProperty.call(P,t)?P[t]:null;n!=t&&(n&&(e[n]=e[t]),delete e[t])}}(t);const n=P.type;let o=t[P.action];if(o&&"page-view"!=o){const e=t[P.category];o=t[P.action]=e;const n=location.pathname;t.event_location="object"==typeof articleData?"article":"/"==n?"homepage":n}else o=P["page-view"],function(e){delete e[P.action],"object"==typeof articleData&&(void 0!==articleData.word_count&&(e[P["word-count"]]=articleData.word_count),void 0!==articleData.publish_date&&(e[P["publish-date"]]=articleData.publish_date),"string"==typeof articleData.content_type&&(e[P["content-type"]]=articleData.content_type),"string"==typeof articleData.content_sponsor&&(e[P["content-sponsor"]]=articleData.content_sponsor),"string"==typeof articleData.author&&(e[P.author]=articleData.author),"string"==typeof articleData.wordpress_categories&&(e[P["wordpress-categories"]]=articleData.wordpress_categories)),"string"==typeof e["page-title"]&&(e[P["page-title"]]=e["page-title"],delete e["page-title"]),"string"==typeof e["page-path"]&&(e[P["page-path"]]=e["page-path"],delete e["page-path"]),"string"==typeof e["page-location"]&&(e[P["page-location"]]=e["page-location"],delete e["page-location"])}(t);const i=[n,o,t];Promise.resolve(window.gtag).then((e=>{"function"==typeof e&&e.apply(this,i)}))}function F(e){var t=6,n=setInterval((function(){0===(t-=1)?clearInterval(n):"undefined"!=typeof fbq&&(clearInterval(n),e())}),300)}function q(e){let t={};"object"==typeof e.fbOptions&&(t=jQuery.extend({},e.fbOptions)),t.action_source="website",t.client_user_agent=navigator.userAgent,t.event_source_url=location.href,e.fbOptions=t}setTimeout((function(){jQuery(".billboard-ad-space").is(":visible")||R()}),500);const W={login:[{providers:["google"],action:"LoginSuccess",category:"LoginSuccess",label:"success","non-interaction":!1}],logout:[{providers:["google"],action:"LogoutSuccess",category:"LogoutSuccess",label:"success","non-interaction":!1}],subscribe_success:[{providers:["google","fb"],action:"init-page",category:"started-",label:null,"non-interaction":!1,cxOptions:{conversionType:"subscription"},fbOptions:{eventName:"Subscribe",value:"14.00",currency:"CAD"}}],student_subscribe_success:[{providers:["google","fb"],action:"started-student-subscription",category:"started-student-subscription",label:null,"non-interaction":!1}],create_account:[{providers:["google","marfeel"],action:"registration",category:"registration",label:"success","non-interaction":!1,cxOptions:{conversionType:"createAccount"},marfeelOptions:{conversionName:"registration"}},{providers:["google"],action:"init-page",category:"finalizedCreateAccount",label:null,"non-interaction":!1,cxOptions:{conversionType:"createAccount"}},{providers:["google"],action:"init-page",category:"started-",label:null,"non-interaction":!1,cxOptions:{conversionType:"createAccount"}}],end_of_meter_displayed:[{providers:["google","fb","marfeel"],action:"article-page",category:"displayedEndOfMeterMessage",label:null,"non-interaction":!1,fbOptions:{eventName:"trackCustom",value:"displayedEndOfMeterMessage"}
1,marfeelOptions:{pageVarValue:"dynamic-signwall"}}],end_of_meter_message_sent:[{providers:["google","fb","marfeel"],action:"article-page",category:"clickedEndOfMeter",label:null,"non-interaction":!1,fbOptions:{eventName:"trackCustom",value:"clickedEndOfMeter"},marfeelOptions:{conversionName:"clickedEndOfMeter"}}],end_of_trial_displayed:[{providers:["google","fb","marfeel"],action:"article-page",category:"displayedEndOfTrialMessage",label:null,fbOptions:{eventName:"trackCustom",value:"displayedEndOfTrialMessage"},marfeelOptions:{pageVarValue:"dynamic-paywall"}}],wfp_bsn_promo_displayed:[{providers:["google","fb","marfeel"],action:"article-page",category:"displayedWFPBSNPromoMessage",label:null,fbOptions:{eventName:"trackCustom",value:"displayedWFPBSNPromo"},marfeelOptions:{pageVarValue:"dynamic-paywall"}}],end_of_trial_button_clicked:[{providers:["google","fb","marfeel"],action:"article-page",category:"clickedEndOfTrial",label:null,"non-interaction":!1,fbOptions:{eventName:"trackCustom",value:"clickedEndOfTrial"},marfeelOptions:{conversionName:"clickedEndOfTrial"}}],email_verif_required:[{providers:["google"],action:"init-page",category:"createdPendingAccount",label:null,"non-interaction":!1}],newsletter_subscribed:[{providers:["google"],action:"email-preferences",category:"subscribed-",label:"/email-alerts","non-interaction":!1}],business_already_subscriber:[{providers:["google"],action:"business-already-subscriber",category:"BusinessAlreadySubscriber",label:null,"non-interaction":!1}],business_eligible:[{providers:["google"],action:"business-eligible",category:"BusinessEligible",label:null,"non-interaction":!1}],business_limit_reached:[{providers:["google"],action:"business-limit-reached",category:"BusinessLimitReached",label:null,"non-interaction":!1}]};function J(e,t){switch(t.label=t.label??window.location.href,e){case"create_account":case"subscribe_success":if("started-"==t.category){const e=j("fpnp__subscription_type")??"grace";t.category+=e}break;case"end_of_trial_button_clicked":"object"==typeof articleData&&(t.label=articleData.title);case"end_of_trial_displayed":"object"==typeof t.cxOptions&&(t.cxOptions.hasRecentlyExpiredTrial="end-of-trial"==account.content_to_display?"true":"false")}}function H(e,t){return!(Array.isArray(e.providers)&&!e.providers.includes(t))}function Y(e){const t={google:[],fb:[],marfeel:[]};e.reduce(((e,n)=>{for(const e of Object.keys(t))H(n,e)&&t[e].push(n)}),t),function(e=[]){for(const t of e)try{V(t)}catch(e){console.log(`Failed to send GA event:\n${e}`)}}(t.google),function(e=[]){for(const t of e)try{if(Object.prototype.hasOwnProperty.call(t,"fbOptions")){const e=t.fbOptions.eventName;e&&(delete t.fbOptions.eventName,F((function(){if(q(t),"trackCustom"==e){const e=t.fbOptions.value;delete t.fbOptions.value,fbq("trackCustom",e,t.fbOptions)}})))}}catch(e){console.log(`Failed to send FB event:\n${e}`)}}(t.fb),function(e=[]){for(const t of e)try{if(Object.prototype.hasOwnProperty.call(t,"marfeelOptions")){const e=t.marfeelOptions.conversionName,n=t.marfeelOptions.pageVarV
1alue;window.marfeel=window.marfeel||{cmd:[]},e&&window.marfeel.cmd.push(["compass",function(t){t.trackConversion(e)}]),n&&window.marfeel.cmd.push(["compass",function(e){e.setPageVar("closed",n)}])}}catch(e){console.log(`Failed to send Marfeel event:\n${e}`)}}(t.marfeel)}function G(e){Y(function(e){const t=[];if(Object.prototype.hasOwnProperty.call(W,e)){const n=JSON.parse(JSON.stringify(W[e]));for(const o of n)"object"==typeof o&&(J(e,o),t.push(o))}return t}(e))}function X(e,t=[],n=null,o=null){const i=jQuery.extend({},e);return i.providers=t,o&&(i.marfeelOptions=o),i}function Z(e=0){e>0||V({action:"page-view"})}function K(e,t,n,o){e.length>0&&e.each((function(){jQuery(this).on("click",(function(e){let i=jQuery(this).attr("href");const a=function(e,t,n,o,i={},a={}){return X({category:e,action:t,label:n},o,jQuery.extend({},i),jQuery.extend({},a))}(t,n,o,["google","fb","marfeel"],{eventName:"trackCustom",value:t},{conversionName:t});Y([a]),void 0!==i&&(e.preventDefault(),setTimeout((function(){location.href=i}),500))}))}))}let ee,te=[];function ne(){return new Promise((e=>{M()||jQuery.when(accountDeferral).done((function(){const t=A();let i=["not-logged-in"];account.is_logged_in&&(i=[account.subscription_type_uri],account.subscribed_newsletters.length>0&&(t.sn=account.subscribed_newsletters)),account.whitelist_group&&i.push(`whitelist_${account.whitelist_group}`),t.ut=i,account.bulk_business&&(t.bb=account.bulk_business,t.bl=account.bulk_location),M()||(C||(C=JSON.parse(pageVariables.dfpData)),"undefined"!=typeof googletag&&googletag.cmd&&googletag.cmd.push((function(){let e=[];Array.isArray(C.channels)&&(e=C.channels);let t="index";C.imp&&(t=C.imp),k.ck=e,k.imp=t,k.pr="news",C.sponsor&&(k.sponsor=C.sponsor),C.contentid&&(k.cid=C.contentid.toString()),document.referrer&&(k.referrer=document.referrer.split("/")[2]),googletag.setConfig({disableInitialLoad:!0}),googletag.setConfig({centering:!0}),googletag.setConfig({collapseDiv:null}),googletag.setConfig({lazyLoad:{fetchMarginPercent:120,renderMarginPercent:50,mobileScaling:1.1}}),googletag.enableServices();const n=setInterval((function(){googletag.apiReady&&(clearInterval(n),adsDeferral.resolve())}),500)}))),jQuery.when(adsDeferral).done((function(){k=t,e(),function(){try{const e=function(){const e=c()?function(){let e=j("numMobilePageLoads");!1===e?e=1:e++;w("numMobilePageLoads",e);const t=["ad-skyscraper"];(e%3==0&&0===document.referrer.indexOf(window.location.protocol+"//"+window.location.host)||window.location.search.indexOf("display=mobileint")>-1)&&t.push("ad-mobile-interstitial");return re(t)}():re(["ad-article","ad-desktop-outstream-banner","ad-skyscraper"]);jQuery(".ad").each(((e,t)=>{t.style.display=M()?"none":"block"}));const t=ae();return Promise.all([e,t]).then((e=>e.flat()))}();M()||(jQuery(window).width()>727&&jQuery(".top-billboard-ad").length&&!account.is_logged_in&&!M()&&oe("top-billboard-ad-container","top-billboard-ad"),jQuery(window).width()>727&&jQuery(".top-superleaderboard-ad").length&&account.is_logged_in&&!M()&&oe("top-superleaderboard-ad-container","top-superleaderboard-ad"),ee=jQuery(window).width(),oe("leaderboard","ad-leaderboard"),ee>1025&&jQuery("div.ad-wallpaper").length>0&&oe("wallpaper","ad-wallpaper")),e.then((function(e){googletag.cmd.push((function(){googletag.pubads().refresh()}))}))}catch(e){console.log(e)}}(),window.location.pathname.endsWith("/weather")&&(M()?function(){const e=g();n(e.sideBar,"hidden"),n(e.content,"full")}():function(){const e=g();o(e.sideBar,"hidden"),o(e.content,"full")}())}))}))}))}function oe(e,t){jQuery.when(accountDeferral).done((function(){B(e,t)}))}function ie(e,t,n){if(M())return;let o,i=jQuery(".ad-spillbox").length;o=1==i?"top":2==i?"middle":"bottom";let a=pageVariables.gptadunit,r=null;c()?(r=[E.MOBILE_LEADERBOARD,E.MREC,E.MOBILE_BANNER],z()&&r.push(E.FILMSTRIP)):r=E.MREC;const s="undefined"==typeof articleData?"index":"story",l=A();googletag.cmd.push((function(){let n=null;try{let t=!1;const c=googletag.pubads().getSlots();for(const n of c){const o=n.getAdUnitPath();if(n.getSlotElementId()==e&&o==a){t=!0;break}}t||(n=googletag.defineSlot(a,r,e).addService(googletag.pubads()),n.setConfig({autoRefresh:{heavyAds:!0}}),n.setConfig({targeting:{loc:o,pos:i.toString(),page:s}}),jQuery.each(l,(function(e,t){n.setConfig({targeting:{[e]:t}})})),googletag.display(e))}catch(e){console.warn("Trying to add ad to already defined slot")}n&&t.slots.push(n)}))}function ae(){const e=[];for(const t of jQuery(".ad .placeholder")){const n=jQuery(t);if(M())n.style.display="none";else{n.removeClass("placeholder");const t=n.attr("id"),o=n.prop("classList")[0],i=jQuery.when(accountDeferral).then((function(){return B(t,o)}));e.push(i)}}return Promise.all(e)}function re(e){const t=[];
1return jQuery(e).each((function(e,n){jQuery(`.${n}`).each((function(e,o){if(M())o.style.display="none";else{const e=o.id,i=jQuery.when(accountDeferral).then((function(){return B(e,n)}));t.push(i)}}))})),Promise.all(t)}function se(e){const t=e.replace("Clicked","Displayed"),n={eventName:"trackCustom",value:t};return X({category:t,action:account.is_logged_in?account.subscription_type_uri:"not-logged-in",label:window.location.href},["google","fb"],n)}function le(e,t=!1){const n="event-name"+(account&&account.is_logged_in?"":"-guest"),o=e.attr(n);o&&(Y([se(o)]),t&&(e.attr("href"),!account.is_logged_in&&e.hasClass("iservices")&&(accountServerUrl,encodeURIComponent(e.attr("href")))),K(e,o,"subscribe-page",window.location.href))}function ce(){jQuery.when(accountDeferral).done((function(){jQuery(".subscribe-more.expand").on("click",(function(){jQuery(this).siblings(".subscribe-info-container").show()})),jQuery(".subscribe-more.collapse").on("click",(function(){jQuery(this).parent().parent().hide()})),jQuery.when(accountDeferral).done((function(){const e=jQuery(".button.squeeze-button");e.length>0&&e.each((function(){const e=jQuery(this);e.show(),e.removeClass("inactive"),e.is(":visible")?le(e,!0):e.on("visibility",(function(){e.is(":visible")&&le(jQuery(this),!0)}))}))})),function(){const e=jQuery(".subscription-content-toggle");e.each((function(){le(jQuery(this),!1)})),e.on("click",(function(e){const t=jQuery(e.target);t.toggleClass("down"),t.next(".subscription-content").toggle()}))}()}))}function ue(){window.IntersectionObserver&&(jQuery.event.special.visibility={setup:function(){var e=this,t=new IntersectionObserver((function(t){var n=jQuery.Event("visibility");n.visible=!!t[0].intersectionRatio,(jQuery.event.dispatch||jQuery.event.handle).call(e,n)}),{root:document.body});t.observe(e),jQuery.data(this,"observer",t)},teardown:function(){var e=jQuery.data(this,"observer");e&&(e.unobserve(this),jQuery.removeData(this,"observer"))}}),ce()}const de=24192e5,pe=864e5,fe='{"used": [], "shortExpiration": 0}',ge=["subscription-offer","newsletter-signup"],me='\n<div id="exit-intent-subscription-offer" class="v4-modal hidden">\n\t<a href="javascript:void(0);"><span class="icon-close login-close-btn V4-close-link fas fa-times"></span></a>\n\t<h2>Before you go</h2>\n\t<h4>Take advantage of this subscription offer.</h4>\n';function he(){const e=jQuery("body").scrollTop();
1jQuery(document).off("keypress"),jQuery(".modal-bg").remove(),jQuery("html").css("margin-right",""),jQuery("html").css("overflow",""),jQuery(window).scrollTop(e)}function ye(e,t){const n=jQuery(window).scrollTop();jQuery("html").css("margin-right","15px"),jQuery("html").css("overflow","hidden");jQuery("body").prepend('<div class="modal-bg"><div class="modal" tabindex="-1"><div class="modal-content"></div></div></div>'),jQuery("body").scrollTop(n);const o=jQuery(".modal-content");o.is(":empty")&&(t&&(Number.isInteger(t.maxWidth)&&(t.maxWidth>0?o.css({"max-width":t.maxWidth}):o.css({"max-width":"initial"})),t.callback&&setTimeout((function(){t.callback.apply(this,t.callbackParams)}),t.callbackTimeout||50)),o.append(e)),jQuery(".icon-close",o).on("click",(function(){he()}))}function be(){const e=JSON.parse(localStorage.getItem("exitIntentState")||fe);if(e.shortExpiration>Date.now())return;const t=function(){const e=ge.filter((e=>{switch(e){case"notifications-signup":return"true"!==localStorage.getItem("notificationsBannerDisplayed");case"subscription-offer":return"/subscribe"!==document.location.pathname&&(!account||"grace"!=account.subscription_type_uri&&"vacation-stop"!=account.subscription_type_uri&&!account.pbs_subscription);default:return!0}}));if(e.length<1)return!1;const t=Math.floor(Math.random()*e.length);return e[t]}();if(!t)return;const n=function(e){const t=Date.now()+1e3;return e.used=e.used.filter((e=>e.expiration>t)),e}(e);if(n.used.length>0){if(n.used.find((e=>e.intent===t)))return}localStorage.setItem("exitIntentState",JSON.stringify(n));let o=null,i={},a=Promise.resolve();switch(t){case"notifications-signup":o=function(){try{import(`${pageVariables.siteUrl}/wp-content/client-mu-plugins/frontend/notification-topics.js`).then((e=>{e.trackBannerAppearance()}))}catch(e){console.debug("Dynamic import is not supported or notification topics disabled by site")}ve(t)};break;case"newsletter-signup":i={subscribed:account&&account.subscribed_newsletters||[]};default:a=function(e,t={}){return new Promise(((n,o)=>{const i={type:"GET",url:"",timeout:5e3,success:(t,i,a)=>{"success"===i&&200==a.status||o(a.status),"subscription-offer"==e||t.startsWith("<div ")||o("Invalid exit intent content"),n(t)},error:(e,t)=>{o(t)}};if("subscription-offer"==e)i.url=`${pageVariables.siteUrl}/subscribe`;else{i.url=`${pageVariables.siteUrl}/get-exit-intent`;let n={intent:e,options:t};i.data=n}jQuery.ajax(i)}))}(t,i),o=we}a.then((e=>{const n=jQuery(e);if(n.closest("div").length>0){if("subscription-offer"==t){const e=n.find(".article-content");if(e.length>0){const t=e.find(".exit-intent-subscription-offer"),n=jQuery('<div class="subscription-grid">');n.append(t),jQuery("div.container").append(`${me}${n.prop("outerHTML")}</div>`);const o=jQuery(".squeeze-button").attr("event-name").replace("selected","Clicked");jQuery(".squeeze-button").attr("event-name",`${o}_ExitIntent`)}}else{if(!(n.find("div").length>0))throw Error("Missing exit intent content");jQuery("div.container").append(n)}localStorage.setItem("exitIntent",t)}else console.warn("Missing exit intent content")})).catch((e=>{console.warn(`Error getting exit intent: ${e}`)})).finally((()=>{const e=localStorage.getItem("exitIntent");e&&jQuery(document).on("mouseleave",{intentId:e},o)}))}function ve(e){const t=JSON.parse(localStorage.getItem("exitIntentState")||fe);t.shortExpiration=Date.now()+pe,t.used.push({intent:e,expiration:Date.now()+de}),localStorage.setItem("exitIntentState",JSON.stringify(t)),jQuery(document).off("mouseleave")}function we(e){const t=localStorage.getItem("exitIntent"),n=jQuery(`#exit-intent-${t}`);localStorage.removeItem("exitIntent");let o=null;if(n&&n.length>0&&e.clientY<0){const t=n.html();n.remove(),he(),"subscription-offer"===e.data.intentId?o={maxWidth:1080,callback:function(){ue()}}:"newsletter-signup"===e.data.intentId&&(o={maxWidth:720}),ye(t,o),jQuery(`#${e.data.intentId}`).first().removeClass("hidden"),jQuery(".icon-close, .V4-close-link").on("click",(function(){he()}))}ve(t)}function _e(e,t,n,o,i,a){if(navigator.share&&window.matchMedia("only screen and (max-width: 760px)").matches)navigator.share({title:e,text:n,url:o}).then((()=>{shareButton.textContent="Thanks for sharing!"})).catch(console.error);else{ye(`\n\t\t\t<div class="share-container v4-modal">\n\t\t\t\t<a href="javascript:void(0)"><span class="icon-close login-close-btn V4-close-link fas fa-times"></span></a>\n\t\t\t\t<h2>${t}</h2>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a id="copyLink"><i class="fa-solid fa-link"></i> ${i}</a></li>\n\t\t\t\t\t<li><a rel="noopener" target="_blank" href="https://bsky.app/intent/compose?text=${encodeURIComponent(n+" "+o)}">\n\t\t\t\t\t\t<i class="fa-brands fa-bluesky"></i> Bluesky\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a rel="noopener" target="_blank" href="https://twitter.com/intent/tweet?url=${encodeURIComponent(o)}&text=${encodeURIComponent(n)}">\n\t\t\t\t\t\t<i class="fa-brands fa-x-twitter"></i> Twitter\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a rel="noopener" target="_blank" href="https://t.me/share/url?url=${encodeURIComponent(o)}&text=${encodeURIComponent(n)}">\n\t\t\t\t\t\t<i class="fa-brands fa-telegram"></i> Telegram\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a rel="noopener" target="_blank" href="https://api.whatsapp.com/se
1nd?text=${encodeURIComponent(n+" "+o)}">\n\t\t\t\t\t\t<i class="fa-brands fa-whatsapp"></i> WhatsApp\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a id="shareEmail" rel="noopener" target="_blank" href="mailto:?subject=${e}&body=${encodeURIComponent(n+" "+o)}">\n\t\t\t\t\t\t<i class="fa-regular fa-envelope"></i> Email\n\t\t\t\t\t</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>`),jQuery("#copyLink").on("click",(function(){navigator.clipboard.writeText(a).then((()=>{jQuery("#copyLink").html('<i class="fa-solid fa-link"></i> Copied!'),setTimeout((function(){jQuery("#copyLink").html(`<i class="fa-solid fa-link"></i> ${i}`)}),2500)})).catch(console.error)}))}}function je(e={}){return new Promise((async t=>{if(pageVariables.isFreeSite)account.content_to_display="full-access",accountDeferral.resolve(),t(account);else if(document.location.host.endsWith(`${publicationVariables.publicationUri}.com`)||document.location.host.endsWith(".lndo.site")){let o={fingerprint_hash:await async function(){const e=j("fingerprint_hash");return"string"==typeof e?e:await async function(){const e=await FPJS.load(),t=await e.get();return w("fingerprint_hash",t.visitorId),t.visitorId}()}()};jQuery.extend(o,e),(n=o,new Promise(((e,t)=>{jQuery.ajax({type:"POST",url:`${accountServerUrl}/api/v2/auth/identify`,data:n,dataType:"json",xhrFields:{withCredentials:!0},timeout:3e3,success:t=>{e(t)},error:(e,n)=>{t(n)}})}))).then((e=>{account=e,accountDeferral.resolve(),t(account)})).catch((()=>{account.content_to_display="full-access",accountDeferral.resolve(),t(account)}))}else account.content_to_display="end-of-meter",accountDeferral.resolve(),t(account);var n}))}const Qe={view_type:{view_type_desktop:"grid",view_type_mobile:"compact"},dark_mode:{dark_mode_desktop:"off",dark_mode_mobile:"off"},font_size:{font_size_desktop:16,font_size_mobile:16},section:{closed_sections:[]}};function ke(e){return account.is_logged_in&&void 0!==account.display_preferences[e]?account.display_preferences[e]:!account.is_logged_in&&j(`${e}Preferences`)?j(`${e}Preferences`):Qe[e]}function Ce(e,t){var n;
1Array.isArray(t.closed_sections)&&(0==t.closed_sections.length?t.closed_sections.push("null"):t.closed_sections.indexOf("null")>-1&&t.closed_sections.splice(t.closed_sections.indexOf("null"),1)),account.is_logged_in?(account.display_preferences[e]=t,n={setting_key:e,setting_value:t},new Promise(((e,t)=>{jQuery.ajax({type:"POST",url:`${accountServerUrl}/api/v2/user/update_setting`,data:n,dataType:"json",xhrFields:{withCredentials:!0},success:function(){e()},error:function(e,n,o){t(o)}})}))):w(`${e}Preferences`,t)}function xe(){return ke("font_size")[c()?"font_size_mobile":"font_size_desktop"]}const Se=["WebkitTransition","OTransition","msTransition","transition"],Oe=["webkitTransitionEnd","oTransitionEnd otransitionend","MSTransitionEnd","transitionend"],Te=31536e3,De=["nav-open-btn","nav-open-btn2","nav-close-btn"],Ne=["more-open-btn"];let Ie={},Ee=!1,Pe=0,Ae=0;function Me(e,t){return e&&("nav-close-btn"==t.target.id||!function(e,t){if(e)do{if(e.id===t)return!0;if(e.nodeType===Node.DOCUMENT_NODE)break}while(e=e.parentNode);return!1}(t.target,"slide-menu"))}function ze(){Ee=!1,Ie={navOpen:!1,navClass:"js-nav",moreNavOpen:!1,moreNavClass:"moreNav"},Ie.doc=document.documentElement,Ie.init=function(){if(Ee)return;Ee=!0;let a=function(){const e=Oe.length;let t=0;for(;t<e;){if(`on${Oe[t]}`in window)return{name:"transition"==Se[t]&&-1!=navigator.userAgent.indexOf("Firefox")?"MozTransition":"transition",event:Oe[t]};t++}return null}();a&&(!function(e,a){const s=document.getElementById("inner-wrap"),l=function(t){t&&t.target===s&&document.removeEventListener(a.event,l,!1),e.navOpen=!1};e.openNav=function(){e.navOpen||(n(e.doc,e.navClass),e.navOpen=!0)},e.closeNav=function(){if(e.navOpen){qe(document.getElementById("content"),a)>0?document.addEventListener(a.event,l,!1):l(null)}o(e.doc,e.navClass)},e.toggleNav=function(n){e.navOpen&&t(e.doc,e.navClass)?e.closeNav():e.openNav(),n&&"object"==typeof n.target&&De.includes(n.target.className)&&n.preventDefault()},r(i("click",e.toggleNav,!1),De)}(Ie,a),function(e,a){const s=function(t){const n=document.getElementById("inner-wrap");t&&t.target===n&&document.removeEventListener(a.transitionEnd,s,!1),e.moreNavOpen=!1};e.closeMoreNav=function(){if(e.moreNavOpen){qe(document.getElementById("inner-wrap"),a)>0?document.addEventListener(a.transitionEnd,s,!1):s(null)}o(e.doc,e.moreNavClass)},e.openMoreNav=function(){e.moreNavOpen||(n(e.doc,e.moreNavClass),e.moreNavOpen=!0)},e.toggleMoreNav=function(n){e.moreNavOpen&&t(e.doc,e.moreNavClass)?e.closeMoreNav():e.openMoreNav(),n&&"object"==typeof n.target&&Ne.includes(n.target.className)&&n.preventDefault()},r(i("click",e.toggleMoreNav,!1),Ne)}(Ie,a),document.addEventListener("click",(function(t){const n=Me(Ie.navOpen,t),o=function(t,n){return t&&(e(n.target,"more-nav-close-btn")||!e(n.target,"more-nav"))}(Ie.moreNavOpen,t);o?(t.preventDefault(),Ie.closeMoreNav()):n&&!Ie.moreNavOpen&&(t.preventDefault(),Ie.closeNav())}),!0)),n(Ie.doc,"js-ready")}()}function $e(e){let t=null;e.hasClass("list-view")?t="list":e.hasClass("compact-view")?t="compact":e.hasClass("grid-view")&&(t="grid"),function(e){const t=ke("view_type");t[c()?"view_type_mobile":"view_type_desktop"]=e,Ce("view_type",t)}(t),setTimeout((function(){location.reload()}),100)}function Be(){ye('\n\t\t<div class="text-size-container v4-modal">\n\t\t<a href="#" class="cancel-text-size"><span class="icon-close login-close-btn V4-close-link fas fa-times"></span></a>\n\t\t<div class="font-preview text-wrapper">\n\t\t\t<h1>Preview size</h1>\n\t\t\t<h2>This is what text will look like for you.</h2>\n\t\t\t<p>Use the plus and minus signs below to customize the size of your text on winnipegfreepress.com, then hit the &quot;save&quot; button to save your preference. To return to the default text size, click the &quot;default&quot; button, then &quot;save.&quot;</p>\n\t\t</div>\n\t\n\t\t<div class="resizer-container">\n\t\t\t<button id="font-down">-</button>\n\t\t\t<button id="reset">Default</button>\n\t\t\t<button id="font-up">+</button>\n\t\t</div>\n\t\t\n\t\t<div class="spreadItems">\n\t\t\t<button class="cancel-text-size">Cancel</button>\n\t\t\t<button class="submit">Save</button>\n\t\t</div>\n\t</div>');
1const e=jQuery(".modal-content");let t=xe();jQuery(".content-wrapper").css("font-size",t+"px"),jQuery("#font-down",e).on("click",(function(){if(t-2>=8){jQuery(".font-preview").css("font-size","-=2");let e=t-=2;jQuery("#font-size").text(e),jQuery(".content-wrapper").css("font-size",e+"px")}t<=8&&jQuery("#font-down").addClass("inactive"),t<30&&jQuery("#font-up").removeClass("inactive")})),jQuery("#reset",e).on("click",(function(){t=16,jQuery(".font-preview").css("font-size",t+"px"),jQuery("#font-down").removeClass("inactive"),jQuery("#font-up").removeClass("inactive"),jQuery("#font-size").text(t),jQuery(".content-wrapper").css("font-size",t+"px")})),jQuery("#font-up",e).on("click",(function(){if(t+2<=30){jQuery(".font-preview").css("font-size","+=2");let e=t+=2;jQuery("#font-size").text(e),jQuery(".content-wrapper").css("font-size",e+"px")}t>=30&&jQuery("#font-up").addClass("inactive"),t>8&&jQuery("#font-down").removeClass("inactive")})),jQuery(".submit",e).on("click",(function(){jQuery(".content-wrapper").css("font-size",t+"px"),jQuery("ul .slide-menu-inner").removeClass("show"),jQuery("ul .slide-menu-inner").slideUp(350),he(),function(e){const t=ke("font_size");t[c()?"font_size_mobile":"font_size_desktop"]=e,Ce("font_size",t)}(t)})),jQuery(".cancel-text-size",e).on("click",(function(){!function(){const e=xe();jQuery(".content-wrapper").css("font-size",e+"px"),jQuery("ul .slide-menu-inner").removeClass("show"),jQuery("ul .slide-menu-inner").slideUp(350),he()}()}))}function Le(){jQuery(".view-type-anchor").on("click",(function(e){e.preventDefault(),$e(jQuery(this))})),jQuery.when(accountDeferral).done((function(){var e;"grid"==(e=ke("view_type")[c()?"view_type_mobile":"view_type_desktop"])?(jQuery(".tile-container").addClass("grid-view").removeClass("list-view").removeClass("compact-view"),jQuery(".view-type-anchor").removeClass("active"),jQuery(".view-type-anchor.grid-view").addClass("active")):"compact"==e?(jQuery(".tile-container").removeClass("grid-view").removeClass("list-view").addClass("compact-view"),jQuery(".view-type-anchor").removeClass("active"),jQuery(".view-type-anchor.compact-view").addClass("active")):"list"==e&&(jQuery(".tile-container").addClass("list-view").removeClass("compact-view").removeClass("grid-view"),jQuery(".view-type-anchor").removeClass("active"),jQuery(".view-type-anchor.list-view").addClass("active"))}))}function Ue(e){let t=null;var n,o;e.hasClass("dark-mode")?t="dark":e.hasClass("light-mode")?t="light":e.hasClass("default-mode")&&(t="default"),localStorage.setItem("theme",t),n=t,(o=ke("dark_mode"))[c()?"dark_mode_mobile":"dark_mode_desktop"]=n,Ce("dark_mode",o),Re(t),jQuery("ul .slide-menu-inner").removeClass("show"),jQuery("ul .slide-menu-inner").slideUp(350)}function Re(e){"dark"==e?(jQuery("html").removeClass("light-theme"),jQuery("html").addClass("dark-theme"),jQuery(".dark-mode-anchor").removeClass("active"),jQuery(".dark-mode-anchor.dark-mode").addClass("active")):"light"==e?(jQuery("html").removeClass("dark-theme"),jQuery("html").addClass("light-theme"),jQuery(".dark-mode-anchor").removeClass("active"),jQuery(".dark-mode-anchor.light-mode").addClass("active")):"default"==e&&(jQuery("html").removeClass("dark-theme"),jQuery("html").removeClass("light-theme"),jQuery(".dark-mode-anchor").removeClass("active"),jQuery(".dark-mode-anchor.default-mode").addClass("active"))}function Ve(){jQuery(".dark-mode-anchor").on("click",(function(e){e.preventDefault(),Ue(jQuery(this))})),localStorage.getItem("theme")?Re(localStorage.getItem("theme")):Re("default"),jQuery.when(accountDeferral).done((function(){const e=ke("dark_mode")[c()?"dark_mode_mobile":"dark_mode_desktop"];"off"!=e&&(localStorage.setItem("theme",e),Re(e))}))}function Fe(){jQuery(".text-size-anchor").on("click",(function(e){e.preventDefault(),Be()})),jQuery.when(accountDeferral).done((function(){const e=xe();jQuery("#font-size").text(e),jQuery(".content-wrapper").css("font-size",e+"px")})),jQuery(".translate-anchor").on("click",(function(e){e.preventDefault(),ye('<div class="translate-container v4-modal">\n\t\t<a href="javascript:void(0)" onclick="closeSiteModal()"><span class="icon-close login-close-btn V4-close-link fas fa-times"></span></a>\n\t\t<br />\n\t\t<div id="google_translate_element"></div>\n\t\t<script type="text/javascript">\n\t\tfunction googleTranslateElementInit() {\n\t\t\tnew google.translate.TranslateElement({pageLanguage: "en", layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL, gaTrack: true, gaId: "UA-350959-63"}, "google_translate_element");\n\t\t}\n\t\t<\/script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"><\/script>\n\t\t\n\t\t<p><strong>A word about translation:</strong> Please remember this service is performed by a computer service, meaning errors may be introduced and context or nuance lost in translation.</p>\n\t</div>
1'),jQuery(".V4-close-link",jQuery(".modal-content")).on("click",(function(){const e={};jQuery("#google_translate_element select").children("option:selected").val()?(e.expires=v(Te),w("googletranslate","/en/jQuery{chosenLang}",e)):(e.expires=0,w("googletranslate",null,e)),jQuery("ul .slide-menu-inner").removeClass("show"),jQuery("ul .slide-menu-inner").slideUp(350),he()}))}))}function qe(e,t){const n=window.getComputedStyle(e,"")[t.name+"Duration"];return t.event&&t.name?parseFloat(n):0}function We(){jQuery(".slide-menu-section").on("click",(function(e){e.preventDefault();var t=jQuery(this);!function(e){const t=e.next();t.length>0&&e.closest(".account-icons").find(".slide-menu-inner.show").each((function(){const e=jQuery(this);e.length>0&&t[0]!=e[0]&&(e.removeClass("show"),e.slideUp(350))}))}(t);var n=!1;!0!==t.children().hasClass("entypo-plus")&&!0!==t.children().hasClass("entypo-minus")||(n=!0),t.next().hasClass("show")?(t.next().removeClass("show"),t.next().slideUp(350),n&&(jQuery(this).find("i")[0].className="entypo-plus")):(t.parent().parent().find("li .slide-menu-inner-test").removeClass("show"),t.parent().parent().find("li .slide-menu-inner-test").slideUp(350),t.next().toggleClass("show"),t.next().slideToggle(350),n&&(jQuery(this).find("i")[0].className="entypo-minus"))})),jQuery(document).on("click",(function(e){if(e.target==document||"BODY"===e.target.tagName||"DIV"===e.target.tagName||"H3"===e.target.tagName||"NAV"===e.target.tagName||"HTML"===e.target.tagName)jQuery(".slide-menu-section").next().hasClass("show")&&(jQuery(".slide-menu-section").next().removeClass("show"),jQuery(".slide-menu-section").next().slideUp(350));else if("A"===e.target.tagName&&"slide-menu-section"===e.target.className&&0===e.target.children.length&&!e.followedLink){e.preventDefault();const t=jQuery.extend(jQuery.Event(e.type),{which:1,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});t.followedLink=!0;const n=new e.originalEvent.constructor(e.type,t);e.target.dispatchEvent(n)}}))}let Je="",He=[],Ye=!1;function Ge(){var e;didScroll&&!Ye&&He.length>0&&l(He[0],!0)&&(Y([X({category:`displayed-${e=Je}-signup-box`,action:`${e}-homepage`,label:window.location.href},["google"])]),Ye=!0)}function Xe(e,t){const n=e.find(".input-error");n.html(t),n.show()}function Ze(e,t,n){let o="";var i;(i={email:n,newsletter_uri:t},new Promise(((e,t)=>{jQuery.ajax({type:"POST",url:`${accountServerUrl}/api/v2/newsletters/subscribe`,data:i,dataType:"json",xhrFields:{withCredentials:!0},success:function(t){e(t)},error:function(e){t(e)}})}))).then((n=>{o=void 0!==n.debug_message?n.debug_message:"You have been successfully subscribed",account.is_logged_in?(e.find(".email-subscribe-link").after("<p>"+o+"</p>"),e.find(".email-subscribe-link").hide()):e.find(".sign-up-box").text(o),function(e){Y([X({category:`subscribed-${e}`,action:"newsletter-prompt",label:window.location.href},["google","fb"],null)])}(t)})).catch((t=>{o=t.responseJSON&&void 0!==t.responseJSON.debug_message?t.responseJSON.debug_message:"An unexpected error has occurred. Please try again later.",account.is_logged_in?(e.find(".email-subscribe-link").after("<p>"+o+"</p>"),e.find(".email-subscribe-link").hide()):Xe(e.find(".sign-up-box"),o)}))}let Ke=null;function et(){account.is_logged_in?jQuery("body").on("click","a.read-later",(function(e){e.preventDefault();const t=jQuery(this).attr("data-click-article-id");var n;(n={click_article_id:t,to_save:!0},new Promise(((e,t)=>{jQuery.ajax({url:`${accountServerUrl}/api/v2/user/save_article`,type:"POST",dataType:"json",data:n,xhrFields:{withCredentials:!0},success:t=>{e(t)},error:(e,n,o)=>{t(o)}})}))).then((()=>{jQuery("a.read-later[data-click-article-id="+t+"]").addClass("saved")})).catch((e=>{console.warn(e)}))})):jQuery("head").append(jQuery("<style rel='stylesheet' type='text/css'>.read-later { display: none !important; }</style>"))}async function tt(){jQuery(window).on("scroll",(function(){didScroll=!0,function(e){const t=e.scrollTop();Math.abs(Pe-t)<=100||(t>Pe&&t>Ae?jQuery("html").removeClass("navdrop").addClass("navsinch"):t+jQuery(window).height()<jQuery(document).height()&&jQuery("html").removeClass("navsinch").addClass("navdrop"),Pe=t)}(jQuery(this)),Ge()})),window.closeSiteModal=he,window.openSiteModal=ye,window.shareSiteModal=_e,ze(),w("googtrans",j("googletranslate"));const e="undefined"==typeof articleData?{}:{click_article_id:articleData.id,is_free:articleData.is_free,is_premium:articleData.is_premium};account=await je(e),d(),await async function(){const e=[nt(),ot()];return Promise.allSettled(e)}(),await new Promise((e=>{jQuery(document).ready((function(){var e;"function"==typeof ga&&account.content_to_display&&ga("set","dimension9",account.content_to_display),K(jQuery(".block-not-logged-in a:contains('Create Account')"),"showInterestToCreateAccount","header",window.location.href),K(jQuery(".block-non-subscriber a:contains('Subscribe')"),"showInterestToSubscribe","header",window.location.href),K(jQuery("a.block-non-subscriber:contains('Subscribe')"),"showInterestToSubscribe","header",window.location.href),K(jQuery(".one-click-reg-container input[type='submit']"),"showInterestToCreateAccount","article-page",window.location.href),Z(),e=account.events_to_fire,publicationVariables.publicationUri,void 0!==e&&0!=e.length&&jQuery.each(e,(function(e,t){G(t)})),account.events_to_fire=[]})),e()})),jQuery("header").length?Ae=jQuery("header").outerHeight():jQuery(".scroll-hide").length&&(Ae=jQuery(".scroll-hide").outerHeight()),We(),jQuery(window).width()>768&&jQuery(".education-search-sidebar details").attr("open",!0),Le(),Ve(),Fe()}function nt(){return new Promise((async e=>{if(et(),"winnipegfreepress"==publicationVariables.publicationUri&&
1!publicationVariables.isCommunityReview){if(account.is_logged_in){const e=jQuery.extend({},ke("intro"));if(!0===j("introjs-dontShowAgain"))e.dontShow=!0,Ce("intro",e);else{!function(e){const t=jQuery.extend({},ke("intro"));var n=e.default(),o=1,i=!0;if(t.step?o=parseInt(t.step):localStorage.introStep&&(o=parseInt(localStorage.introStep)),(void 0===t.dontShow||"false"===String(t.dontShow).toLowerCase())&&o<8&&"winnipegfreepress"==publicationVariables.publicationUri&&!publicationVariables.isCommunityReview){var a="#nav-open-btn",r=!1;jQuery(window).width()<601&&(jQuery(".jumbo-header").length||(a="#nav-open-btn2"),r=!0),n.onexit((function(){jQuery("html").css("overflow",""),jQuery(window).off("scroll"),jQuery("html").removeClass("js-nav"),jQuery(".slide-menu").css("transition","")})),n.onbeforechange((function(){if(i)i=!1;else{var e=this.currentStep()+1,n=e+1;if(2==this.currentStep()&&r||3==this.currentStep()||4==this.currentStep()||6==this.currentStep()?(jQuery(".slide-menu").css("transition","none"),jQuery("html").addClass("js-nav")):(jQuery("html").removeClass("js-nav"),jQuery(".slide-menu").css("transition","")),n>o&&(o=n,localStorage.introStep=n,t.step=n,Ce("intro",t),"undefined"!=typeof googletag&&googletag.apiReady)){const t=X({action:"event"},["google"]);let o={};o=2==n?{category:"tutorial_begin"+this._introItems[this._currentStep].label,label:e}:8==n?{category:"tutorial_complete"+this._introItems[this._currentStep].label,label:e}:{category:"tutorial_step"+this._introItems[this._currentStep].label,label:e},jQuery.extend(!0,t,o),Y([t])}}setTimeout((function(){jQuery(".introjs-tooltip.introjs-floating").parent().css("top","300px"),jQuery(".introjs-tooltip.introjs-floating").parent().siblings(".introjs-helperLayer").css("top","300px"),window.scrollTo(0,0)}),400)})),n.setOptions({hidePrev:!0,scrollToElement:!1,dontShowAgain:!0,dontShowAgainLabel:"Skip the tour",showBullets:!0,showProgress:!1}),n.addStep({title:"Site Tour",label:"_welcome",intro:"<h4>Welcome!</h4><p>We’d like to take a moment to show you some features that could improve your experience on our website.</p>"}),r?(n.addStep({element:document.querySelector(a),title:"Site Tour",label:"_all_sections",intro:"<h4>All Sections</h4><p>Use this menu to access every section of our website, including the replica E-Edition of the print newspaper, obituaries, puzzles and much more.</p>"}),n.addStep({element:document.querySelector(".slide-menu .fa-question"),title:"Site Tour",label:"_contact_us",intro:"<h4>Contact us</h4><p>Click this ‘?’ button to fill out a contact form.</p>"})):(n.addStep({element:document.querySelector("#hubspot-messages-iframe-container"),title:"Site Tour",label:"_contact_us",intro:"<h4>Contact us</h4><p>Use this live-chat window to connect directly with our digital customer service team on weekdays from 8 a.m. to 4 p.m. Evenings and weekends, click the ‘?’ at the top right corner of this page to fill out a contact form.</p>"}),n.addStep({element:document.querySelector("#nav-open-btn"),title:"Site Tour",label:"_all_sections",intro:"<h4>All Sections</h4><p>Use this menu to access every section of our website, including the replica E-Edition of the print newspaper, obituaries, puzzles and much more.</p>"})),n.addStep({element:document.querySelector(".menu-item-600000214"),title:"Site Tour",label:"_e_edition",intro:'<h4>E-Edition</h4><p>The Replica E-Edition is a digital edition you can flip through just like a printed newspaper. Access the E-Edition here, or download our Android or iOS app on your phone or tablet.</p><div><a target="_blank" href="https://play.google.com/store/apps/details?id=com.winnipegfreepress.android.prod&amp;pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1"><img style="max-width: 150px;" alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"></a> <a target="_blank" href="https://itunes.apple.com/ca/app/wfp-e-edition/id1444679805?mt=8" style="display:inline-block;overflow:hidden;margin: 1em .5em 0;"><img width="135" height="40" src="/wp-content/themes/fp-inc-base-theme/images/apple-app-store-download.svg"></a></div>'}),n.addStep({element:document.querySelector(".slide-menu .fa-user-cog"),title:"Site Tour",label:"_my_account",intro:"<h4>My Account</h4><p>Click this icon to access your account settings. You can change your password, manage your subscription and adjust your email preferences, including signing up for our newsletters. If you’ve clicked “Save to Read Later” on an article, you’ll find it here.</p>"}),n.addStep({title:"Site Tour",label:"_news_break",intro:'<h4>News Break</h4><p>The Free Press’s News Break app offers an ad-free, curated news experience which you can customize.</p><div><a target="_blank" href="https://play.google.com/store/apps/details?id=com.winnipegfreepress.newsbreak"><img style="max-width: 150px;margin: 0;" alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"></a><a target="_blank" href="https://itunes.apple.com/ca/app/news-break-by-the-winnipeg-free-press/id1202914748" style="display:inline-block;overflow:hidden;margin: 1em .5em 0;"><img width="135" height="40" src="/wp-content/themes/fp-inc-base-theme/images/apple-app-store-download.svg"></a></div>'}),n.addStep({element:document.querySelector(".menu-item-600377936"),title:"Site Tour",label:"_free_press_101",intro:"<h4>Free Press 101</h4><p>Visit this page to learn more about how the Free Press puts together its stories, from information gathering and editing to language use and headline construction.</p>"}),jQuery("html").css("overflow","hidden"),jQuery(window).scroll((function(){window.scrollTo(0,0)})),n.start(),n.goToStep(o)}}(await import(`${pageVariables.siteUrl}/wp-content/client-mu-plugins/frontend/lib/intro.v7.2.0.module.js`))}}be(),loadMoreDeferral.resolve()}e()}))}function ot(){return new Promise((e=>{if(null!=account.message&&null!=account.message){if(ye(`<div id="modal-message" class="V4-login-wrapper">\n\t\t\t\t<div id="loginPopup" class="V4-login-container">\n\t\t\t\t\t<div class="V4-manage-user" style="display: block;">\n\t\t\t\t\t\t<a href="javascript:void(0);" onclick="window.closeSiteModal();"><span class="icon-close login-close-btn V4-close-link fas fa-times"></span></a>\n\t\t\t\t\t\t${account.message}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>`),!account.message.startsWith("<")){const e=1e3*Math.ceil(account.message.replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n").split(" ").length/3);setTimeout((()=>{he()}),e)}account.message=null}e()}))}window.FP_Cookie_get=j,window.FP_Cookie_set=w,window.FP_Cookie_delete=function(e){if(!e)return;const t=`.${publicationVariables.publicationUri}.com`,n={};n.domain=t,n.expires=0,w(e,null,n)},window.FP_Cookie_prepareExpires=v,window.FP_LoadMore=function(e,t,n,o){(function(e,t,n,o){return new Promise(((i,a)=>{loadingCategoryPage=!0,jQuery.ajax({url:pageVariables.siteUrl+"/get-category-tiles",cache:!0,type:"GET",data:{category:t,page_number:n,is_multi_section:o},success:t=>{e.replaceWith(t),loadingCategoryPage=!1,i()},error:()=>{loadingCategoryPage=!1,a()}})}))})(e,t,n,o).then((()=>{loadMoreDeferral.resolve();try{Z(n)}catch(e){console.log("Failed to send load more event"),console.warn(e)}})).then((async()=>{try{1==account.is_logged_in&&1==account.adfree_option?jQuery(".article-ad, .ad").each((function(){account.is_logged_in&&account.adfree_option?jQuery(this).hide():jQuery(this).show()})):ae().then((function(e){e.length>0&&googletag.cmd.push((function(){googletag.pubads().refresh(e)}))}))}catch(e){console.log("Failed to setup ads"),console.warn(e)}})).catch((e=>{console.warn(e),loadMoreDeferral.reject()}))},window.FP_Spillbox_handleTabs=function(e){const t=jQuery(e);jQuery(".spill-list",t).hide(),jQuery(".spill-sections ul:first-child",t).show(),jQuery(".spill-tabs li:first-child a",t).addClass("active"),jQuery(".spill-tabs li a",t).on("click",(function(e){e.preventDefault();const n=jQuery(this).attr("rel"),o=jQuery(this).parent().index();jQuery(".spill-tabs a",t).removeClass("active"),jQuery(".spill-list",t).hide(),jQuery(this).addClass("active"),jQuery(this).parents(".tile-content").find(`.spill-list.${n}`).show(),jQuery.when(adsDeferral).done((function(){const e=te[t.attr("id")];if(!e.initializedTabs.includes(o)){ie(t.find(`.spill-list.${n}`).find(".ad-spillbox").first().attr("id"),e),e.initializedTabs.push(o),function(e){let t=null;const n=e.attr("id");let o=-1;jQuery(".spill-tabs li a",e).each((function(e,t){if(jQuery(t).hasClass("active"))return o=e,!0})),jQuery.when(adsDeferral).done((function(){o>-1&&(t=te[n].slots[o]),null==t||M()||googletag.pubads().refresh([t])}))}(t)}}))})),jQuery.when(adsDeferral).done((function(){const e={};e.elementID=t.attr("id"),e.slots=[],e.initializedTabs=[],function(e){void 0!==e.elementID&&(te[e.elementID]=e)}(e);ie(t.find(".spill-list").first().find(".ad-spillbox").first().attr("id"),e),e.initializedTabs.push(0)}))},window.FP_Newsletter_init=function(e,t=!1){jQuery.when(accountDeferral).done((function(){(t||account.is_logged_in&&-1==jQuery.inArray(e,account.subscribed_newsletters)||!account.is_logged_in)&&(Je=e,He=jQuery(".newsletter-prompt."+e),He.show())}))},window.FP_Newsletter_checkForm=function(e,t){const n=e.find(".sign-up-box");if(n.find("input[type=checkbox]:checked").length<n.find("input[type=checkbox]").length)return void Xe(n,"Please review and check the boxes below.");const o=n.find("#email-prompt").val();""!=o?!function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}(o)?Xe(n,"Please enter a valid email address."):Ze(e,t,o):Xe(n,"Please enter your email address.")},window.FP_Newsletter_subscribe=Ze,window.FP_Site_setupInfiniteScroll=function(e){var t=setInterval((function(){if(didScroll&&!loadingCategoryPage){didScroll=!1;const n=jQuery(".tile-container.first-load").first();0==n.length&&"string"==typeof e?0==jQuery("#flipp-ux-slot-23fdsf").length&&(loadingCategoryPage=!0,function(e){if(Ke)return;const t=document.querySelector(".tile-container");
1Ke=new MutationObserver((function(t,n){for(const o of t)if(o.addedNodes.length)return n.disconnect(),void e()})),Ke.observe(t,{childList:!0,subtree:!0})}((function(){clearInterval(t)})),u(e)):n.length>0&&jQuery(n).offset().top<jQuery(window).scrollTop()+jQuery(window).height()+400&&(n.find(".load-more").first().trigger("click"),n.removeClass("first-load"))}}),250)},jQuery(window).ready((async function(){tt(),window.localStorage.removeItem("page-article-ids"),jQuery(".tile-container").addClass("first-load"),jQuery(".tile-container").first().removeClass("first-load"),jQuery(".earlug div").hide(),jQuery(".earlug div:first").show(),jQuery(".scores-nav > li").on("click",(function(){jQuery(".earlug div").hide();const e=jQuery(this).attr("rel");jQuery("#"+e).fadeIn(),jQuery(".scores-nav > li").removeClass("active"),jQuery(this).addClass("active")})),jQuery.when(accountDeferral).done((async function(){1==account.is_logged_in&&1==account.adfree_option?jQuery(".article-ad, .ad").remove():await ne()}))}));//# sourceMappingURL=front-page.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.