PageSourceSearch

https://www.is.fi/_next/static/chunks/pages/_app-f98ccbdc3d854bc3.js

js is.fi collected 2026-09-24 08:34:59 UTC 391,855 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(t,i,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(80990)}])},347:(t,i,n)=>{"use strict";n.d(i,{M:()=>u});var r=n(41362);let s={hideSections:!1,iOSSmartAppBannerMetaTagsEnabled:!1,newNavbar:!1,removeOnlyLoginHashAfterReturningFromLogin:!1,sendPaywallLoadingTimeAnalytics:!1,showClassificationInLists:!1,showFeedbackAndRectificationForms:!1,showSpecialArticleTail:!1,sportsLiveArticleEnabled:!1,sportsScoreServiceEnabled:!1,unfoldSpecialArticleHtml:!1,urheiluLivePageEnabled:!1,stickyVideoEnabled:!1,compactWeatherWidget:!1,dsFunctionButtons:!1,articleActionsPosition:"bottom",titleSource:"pageMetaTitle",topNews:{ingressFallback:!1,icon:"chevron"}},a=t=>({...s,...t}),o={iOSSmartAppBannerMetaTagsEnabled:!0,topNews:{ingressFallback:!1,icon:"chevron"}},l={hs:a({unfoldSpecialArticleHtml:!0,showSpecialArticleTail:!0,sendPaywallLoadingTimeAnalytics:!0,showFeedbackAndRectificationForms:!0,newNavbar:!0,hideSections:!0,removeOnlyLoginHashAfterReturningFromLogin:!0,showClassificationInLists:!0,iOSSmartAppBannerMetaTagsEnabled:!0,articleActionsPosition:"top",dsFunctionButtons:!0,topNews:{ingressFallback:!0,icon:"arrow"}}),is:a({unfoldSpecialArticleHtml:!0,newNavbar:!0,sportsLiveArticleEnabled:!0,urheiluLivePageEnabled:!0,iOSSmartAppBannerMetaTagsEnabled:!0,stickyVideoEnabled:!0}),al:a({...o,unfoldSpecialArticleHtml:!0,showSpecialArticleTail:!0,newNavbar:!0,sportsScoreServiceEnabled:!0,showFeedbackAndRectificationForms:!0,titleSource:"assetTitle"}),sk:a({...o,unfoldSpecialArticleHtml:!0,showSpecialArticleTail:!0,removeOnlyLoginHashAfterReturningFromLogin:!0,sportsScoreServiceEnabled:!0}),jan:a({...o}),js:a({...o}),ks:a({...o}),kmv:a({...o}),mk:a({...o}),nu:a({...o}),rks:a({...o}),ss:a({...o}),suk:a({...o}),tyr:a({...o}),vs:a({...o})},u=t=>{let i=l[t];return{...i,newNavbar:"is"===t?r.A.newNavbarIS:i.newNavbar,removeOnlyLoginHashAfterReturningFromLogin:"hs"===t?r.A.removeOnlyLoginHashAfterReturningFromLoginHS:i.removeOnlyLoginHashAfterReturningFromLogin,iOSSmartAppBannerMetaTagsEnabled:("hs"===t?r.A.iOSSmartAppBannerMetaTagsEnabledHS:"is"!==t||r.A.iOSSmartAppBannerMetaTagsEnabledIS)&&i.iOSSmartAppBannerMetaTagsEnabled,urheiluLivePageEnabled:"is"===t?r.A.urheiluLivePageEnabledIS:i.urheiluLivePageEnabled,compactWeatherWidget:"sk"===t?r.A.compactWeatherWidgetSK:i.compactWeatherWidget}}},365:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.resetState=function(){for(var t=[a,o],i=0;i<t.length;i++){var n=t[i];n&&n.parentNode&&n.parentNode.removeChild(n)}a=o=null,l=[]},i.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var t=[a,o],i=0;i<t.length;i++){var n=t[i]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,s=(r=n(79020))&&r.__esModule?r:{default:r},a=void 0,o=void 0,l=[];function u(){0===l.length||l[l.length-1].focusContent()}s.default.subscribe(function(t,i){a||o||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(o=a.cloneNode()).addEventListener("focus",u)),(l=i).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(a.parentElement&&a.parentElement.removeChild(a),o.parentElement&&o.parentElement.removeChild(o))})},464:(t,i,n)=>{"use strict";n.d(i,{$V:()=>u,HL:()=>f,M0:()=>b,ND:()=>h,P0:()=>g,Pi:()=>y,Qp:()=>p,SH:()=>d,mG:()=>v,rg:()=>w,tD:()=>m});var r=n(29454),s=n(78101),a=n(60697);let o="cookieConsent",l=["sppd","spcx","spam","spma","spad","spem"],u=t=>{t&&null===s.s.getItem(o)&&s.s.setItem(o,JSON.stringify(t))},c=()=>{var t;return null!=(t=s.s.getJSON(o))?t:{}},d=()=>1===c().spem,h=()=>1===c().spad,p=()=>1===c().sppd,f=()=>1===c().spcx,m=()=>1===c().spma,g=()=>h()||f(),b=()=>p()||h()||f(),v=t=>{let i=c();return t?l.map(t=>{var n;return"".concat(t).concat(null!=(n=i[t])?n:0)}).join("-"):Object.entries(i).map(t=>{let[i,n]=t;
1return"".concat(i).concat(n)}).join("-")},y=()=>9===c().spcx||g(),w=t=>{let{clearCookieConsents:i,brand:n}=t;if(i){s.s.removeItem(o),s.s.removeAllMatchingKeys("_sp_user_consent");let t={path:"/",domain:".".concat((0,a.JX)(n),".fi")};r.A.remove("consentUUID",t)}}},1981:(t,i,n)=>{"use strict";n.d(i,{c:()=>r,u:()=>s});let r={rO:"Chrome",eO:"Edge",oO:"Opera",Og:"Safari",OO:"Firefox",Sg:"ChatGPTBrowser"},s={Fg:"Android",ao:"iOS",Cg:"Mac",Wg:"Windows"}},2132:(t,i,n)=>{"use strict";n.d(i,{l:()=>r,y:()=>s});let r={SavedArticle:"saved_article",ClickedSubscribe:"clicked_subscribe",ClickedNewsletterSubscription:"subscribed_newsletter",ClickedNewsletterUnsubscription:"unsubscribed_newsletter",ListenedArticle:"listened_article",NytCampaignSubscription:"requested_promotion_code",LoggedIn:"logged_in",LoggedOut:"logged_out",ViewedFrontPage:"viewed_frontpage",HitPaywall:"hit_paywall",ViewedArticle:"viewed_article",ReadArticle:"read_article"},s={Paywall:"Paywall",PromoTicker:"PromoTicker",TopMenu:"TopMenu"}},2200:(t,i,n)=>{"use strict";let r;n.d(i,{EG:()=>v,F5:()=>h,Og:()=>g,Vq:()=>f,X5:()=>w,ZD:()=>m,am:()=>S,b3:()=>y,kD:()=>p,p5:()=>b});var s=n(51144),a=n(19221),o=n(464),l=n(96078),u=n(78101),c=n(70158),d=n(74730);let h=(t,i,n,r)=>{let s="function getCachedUserAdParams(){\n    try {\n      var localStorageKey = '".concat(a.z,"';\n      var cachedUserAdParams = window && window.localStorage ? window.localStorage.getItem(localStorageKey) : null;\n      if (!cachedUserAdParams) {\n        return null;\n      }\n      return JSON.parse(cachedUserAdParams);\n    } catch (e) {\n      return null;\n    }\n  }\n  function getCachedCeIdFromStorage(isLoggedIn) {\n    try {\n      var key = isLoggedIn ? '").concat(l.oP,"' : '").concat(l.IA,"';\n      var lastUsed = parseInt(window.localStorage.getItem(key + '").concat(u.x,"') || '0');\n      if (lastUsed && (Math.floor(Date.now() / 1000) - lastUsed > ").concat(l.we,")) {\n        return undefined;\n      }\n      return window.localStorage.getItem(key) || undefined;\n    } catch (e) {\n      return undefined;\n    }\n  }");return"\n  ".concat(s,"\n  try {\n    function getCurrentRelativePath() {\n      var currentPathName = window.location.pathname;\n      var paramsString = window.location.search;\n      return paramsString ? currentPathName + paramsString : currentPathName;\n    };\n    window.utag_data = ").concat(JSON.stringify(t.adMetadata),";\n    var cachedParams = getCachedUserAdParams();\n    var loginUrlWithPlaceholders = '").concat(A(i,n),"'\n    window.utag_data.ccm_login_url = loginUrlWithPlaceholders.replaceAll('PATH_PLACEHOLDER',  encodeURIComponent(encodeURIComponent(getCurrentRelativePath())));\n    ").concat(r?"window.utag_data.ccm_cop_funnel_url = ".concat(JSON.stringify(r),";"):"","\n    window.utag_data.user_auth_consent_id_enabled = true;\n    if (cachedParams) {\n      window.utag_data.user_sad_id = cachedParams.user_sad_id;\n      window.utag_data.user_subscription_status = cachedParams.user_subscription_status;\n      window.utag_data.user_odc_status = cachedParams.user_odc_status;\n      window.utag_data.user_ocm_status = cachedParams.user_ocm_status;\n      window.utag_data.user_is_subscriber = cachedParams.user_is_subscriber || 'false';\n      window.utag_data.user_is_cop_subscriber = cachedParams.user_is_cop_subscriber || 'false';\n      window.utag_data.user_is_logged_in = cachedParams.user_is_logged_in || 'false';\n      window.utag_data.user_sndp_visitid = cachedParams.user_sndp_visitid;\n      window.utag_data.user_sndp_ceid = getCachedCeIdFromStorage(cachedParams.user_is_logged_in === 'true');\n      ").concat("window.utag_data.user_auth_consent_id = cachedParams.user_auth_consent_id;","\n    }\n  } catch (ex) { console.error(ex); }")},p=t=>{r&&window.removeEventListener("page-view-start",r);let i=()=>{var n,s,a;window.removeEventListener("page-view-start",i),r=void 0,null==(n=window.sanomaAd)||n.setAdData({iabtcf:{...t.iabtcf,acceptedCategories:t.acceptedCategories},cdpSegments:t.cdpSegments,videoCdpSegments:t.appVideoCdpSegments,glimr:t.glimr,deviceValues:t.deviceValues,ECID:t.ECID,userSaID:t.userSaID,userODCStatus:t.userODCStatus,appv:t.appv,appTestMode:t.appTestMode,appType:t.appType,attributeActivationServerAttributes:t.attributeActivationServerAttributes}),null==(s=window.sanomaAd)||s.loadAds(),"visible"===document.visibilityState?null==(a=window.sanomaAd)||a.showAds():document.addEventListener("visibilitychange",()=>{var t;null==(t=window.sanomaAd)||t.showAds()},{once:!0})};r=i,window.addEventListener("page-view-start",i)},f=(t,i,n,r,s,a)=>{try{var o;if("function"==typeof(null==(o=window.utag)?void 0:o.view)&&(null==r?void 0:r.adMetadata)){let o=g(t,i,n),l={...r.adMetadata,...o,user_test_group:s,...a?{ccm_cop_funnel_url:a}:{}};window.utag.view(l)}}catch(t){console.error(t)}},m=t=>{var i,n,r;try{null==(n=window.sanomaAd)||null==(i=n.queue)||i.push(()=>{var i;return null==(i=window.sanomaAd)?void 0:i.render(t)})}catch(t){try{null==(r=window.sanomaAd)||r.log(String(t))}catch(t){}}},g=(t,i,n)=>{let r=A(i,n).replaceAll(d.HS,encodeURIComponent(encodeURIComponent((0,d.vy)())));if(t.authenticationStatus!==s.J.Authenticated)return{user_sad_id:void 0,user_subscription_status:0,user_odc_status:void 0,user_ocm_status:void 0,user_auth_consent_id:void 0,user_is_subscriber:"false",user_is_cop_subscriber:"false",user_is_logged_in:"false",ccm_login_url:r,user_auth_consent_id_enabled:!0,user_sndp_visitid:(0,o.ND)()?(0,l.h9)():void 0,user_sndp_ceid:(0,c.oF)(!1)};{let n,s=t.adId,a=t.odcValue,u=t.ocmValue,d=t.subscriptionDetail
1s.legacyAdSubscriptionInfo,h=t.subscriptionDetails.isSubscriber?"true":"false";return{user_sad_id:s,user_subscription_status:d,user_odc_status:a,user_ocm_status:u,user_is_subscriber:h,user_is_cop_subscriber:t.subscriptionDetails.isCopSubscriber?"true":"false",user_is_logged_in:"true",user_auth_consent_id:(n=t.hashedAccountId,"".concat(n,"_").concat(i)),ccm_login_url:r,user_auth_consent_id_enabled:!0,user_sndp_visitid:(0,o.ND)()?(0,l.h9)():void 0,user_sndp_ceid:(0,c.oF)(!0)}}},b=(t,i,n)=>{if(window.utag_data)try{let r=g(t,i,n);window.utag_data.ccm_login_url=r.ccm_login_url,window.utag_data.user_sad_id=r.user_sad_id,window.utag_data.user_subscription_status=r.user_subscription_status,window.utag_data.user_odc_status=r.user_odc_status,window.utag_data.user_ocm_status=r.user_ocm_status,window.utag_data.user_is_subscriber=r.user_is_subscriber,window.utag_data.user_is_cop_subscriber=r.user_is_cop_subscriber,window.utag_data.user_is_logged_in=r.user_is_logged_in,window.utag_data.user_auth_consent_id=r.user_auth_consent_id,window.utag_data.user_auth_consent_id_enabled=r.user_auth_consent_id_enabled,window.utag_data.user_sndp_visitid=r.user_sndp_visitid,window.utag_data.user_sndp_ceid=r.user_sndp_ceid}catch(t){console.error(t)}},v=()=>{void 0!==window.__sadapi&&window.__sadapi("cmp/openPrivacyManager")},y=t=>void 0!==window.__sadapi?window.__sadapi("cmp/grantPurpose",null,t):Promise.resolve(),w=t=>{void 0!==window.__tcfapi&&window.__tcfapi("addEventListener",2,t)},A=(t,i)=>(0,d.xj)(t,i,!1),S=t=>{var i,n;null==(i=(n=window).__tcfapi)||i.call(n,"removeEventListener",2,t)}},3717:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4039:(t,i,n)=>{"use strict";n.d(i,{h:()=>d});var r=n(27964),s=n(17924),a=n(63593),o=n(39149),l=n.n(o),u=n(62498),c=n(14232);let d=(t,i)=>{let n,o,d,h,p,f,m=(0,r.c)(10),g=(0,c.useRef)(0),b=(0,c.useRef)(!1),v=(0,c.useRef)(null),y=(0,c.useRef)(null),w=(0,c.useRef)(i),{useInkBridge:A}=(0,a.g$)();m[0]!==i?(n=()=>{w.current=i},m[0]=i,m[1]=n):n=m[1],(0,c.useEffect)(n),m[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{var t,i,n,r;(null==(t=v.current)?void 0:t.isConnected)||(v.current=document.querySelector("[data-scroll-depth-root]"),y.current=null);let s=v.current;if((null==s?void 0:s.offsetHeight)===0&&((null==(i=y.current)?void 0:i.isConnected)||(y.current=null!=(n=null==(r=s.closest("main"))?void 0:r.querySelector("[data-scroll-depth-fallback-root]"))?n:null),s=y.current),!s)return 0;let a=s.getBoundingClientRect().top+window.scrollY,o=s.offsetHeight;return 0===o?0:Math.min(100,Math.max(0,Math.round((window.scrollY+window.innerHeight-a)/o*100)))},m[2]=o):o=m[2];let S=o;m[3]!==A?(d=()=>{let t=()=>{let t=S();t>g.current&&(g.current=t,A&&(0,s.Wr)({type:u.oi.ScrollUpdate,contentScrollDepth:g.current}),t>=100&&w.current&&!b.current&&(b.current=!0,w.current()))},i=l()(t,160,{leading:!0,trailing:!0,maxWait:160});return t(),window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),i.cancel(),g.current=0,b.current=!1,v.current=null,y.current=null}},m[3]=A,m[4]=d):d=m[4],m[5]!==t||m[6]!==A?(h=[S,A,t],m[5]=t,m[6]=A,m[7]=h):h=m[7],(0,c.useEffect)(d,h),m[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{let t=S();return t>g.current&&(g.current=t),g.current},m[8]=p):p=m[8];let _=p;return m[9]===Symbol.for("react.memo_cache_sentinel")?(f={getMaxScrollDepth:_},m[9]=f):f=m[9],f}},4361:(t,i,n)=>{t.exports=n(18540)},4597:(t,i,n)=>{"use strict";n.d(i,{A:()=>y});var r=n(64357),s=n(55617),a=n(5138),o=n(80067),l=n(36994),u=n(48930),c=n(98465),d=n(79921),h=n(15244),p=n(55679),f=n(82793),m=n(37206),g=n(34063);class b extends s.A{constructor(t,i,n,s){super(),this.h=t,this.B=i,this.j=n,this.C=s,this.banners={},this.h=t,this.B=i,this.j=n,this.C=s,this.D=10,this.N=null,this.F=null,this.R=new h.A,r.Ay.S(this.R),this.T=null,this.I=null}q(t){if(this.P()&&(this._(t),null!=t&&t.banners)){let n=t.request_time,r="number"!=typeof n||isNaN(n)?null:n,s=this.k(),a=this.$(),l=this.L();this.banners={};let u=t.banners;for(let t in u){var i;let n=this.K(t,r,l),c=u[t],d=null;if(null!=c&&null!=c.banner&&(d=c.banner),this.U(t,d,r,n,s,a)){if(n){let i=s[t];i&&(this.banners[t]=i)}continue}let h=null;null!=d&&(i=d,h=new o.A(i.id,i.placement_id,i.html,i.is_test_send,i.is_control,i.expires_at,i.properties,i.stable_key||null)),h&&(this.banners[t]=h)}this.W(),this.R.A(this.banners)}}U(t,i,n,r,s,a){return!this.M(t,i,s)&&null!=n&&(!!r||this.X(i,a,n))}K(t,i,n){if(null==i)return!1;let r=n[t];return"number"==typeof r&&!isNaN(r)&&i<r}M(t,i,n){if(!i)return!1;let r=i.stable_key;if("string"!=typeof r||0===r.length)return!1;let s=n[t],a=null==s?void 0:s.G;return"string"==typeof a&&0!==a.length&&a!==r}X(t,i,n){if(!t)return!1;let r=t.stable_key;if("string"!=typeof r||0===r.length)return!1;for(let t of i){if(t.stable_key!==r)continue;let i=t.dismissal_time;if("number"==typeof i&&!isNaN(i)&&i>=n)return!0}return!1}_(t){var i;let n=null==(i=null==t?void 0:t.dismissals)?void 0:i.acknowledged;if(!n||!(0,m.cy)(n)||0===n.length)return;let r=this.$();if(0===r.length)return;let s={};for(let t of n)t.banner_id&&t.dismissal_time&&(s[this.H(t.banner_id,t.dismissal_time)]=!0);let a=r.filter(t=>!s[this.H(t.banner_id,t.dismissal_time)]);a.length!==r.length&&this.J(a)}H(t,i){return`${t}:${i}`}O(t,i,n,r=!0){var s;let a=()=>{"function"==typeof n&&n()};if(!this.P())return void(null==(s=this.h)||s.V(()=>{this.O(t,i,n)}));let o=this.B;if(!o)return void a();r&&this.Y();let h=o.Z({},!0);h.time_ms=new Date().valueOf();let p=[];for(let i of t)p.push({id:i});
1h.placements=p,h.pending_dismissals=this.$().map(t=>({banner_id:t.banner_id,dismissal_time:t.dismissal_time}));let f=o.tt(h,l.A.it.st),m=!1;o.et(h,(r=-1)=>{let s=this.B;if(!s)return void a();let o=new Date().valueOf();l.A.nt(this.j,l.A.it.st,o),-1!==r&&f.push(["X-Braze-Req-Tokens-Remaining",r.toString()]);let p=h.time_ms;null==p||"number"!=typeof p||isNaN(p)||this.rt(t,p),u.A.ot({url:`${s.ht()}/banners/sync`,headers:f,data:h,lt:t=>{s.ut(h,t,f)?(s.ct(),this.q(t),m=!1,"function"==typeof i&&i()):(m=!0,a())},error:t=>{s.dt(t,"retrieving banners"),m=!0,a()},ft:(r,a)=>{var o,u,h;let p;if(this.I=t,m){let t=(null==(o=this.h)?void 0:o.vt())||d.xm,i=(null==(u=this.h)?void 0:u.gt())||d.MF,n=(null==(h=this.h)?void 0:h.bt())||d.T,r=this.N;(null==r||r<t)&&(r=t),p=Math.min(n,(0,c.C)(t,r*i))}s.yt(a,()=>{this.O(t,i,n,!1)},l.A.it.st,t=>this.Bt(t),()=>this.Y(),p)}})},l.A.it.st,n)}jt(){return this.I}Ct(t,i){let n={id:t.id};return i&&(n.bid=i),p.A.Dt(f.w.Nt,n).lt}wt(t){if(!t.G)return!1;let i=this.$();if(i.some(i=>i.banner_id===t.id&&i.stable_key===t.G))return g.A.info(`Not dismissing banner ID ${t.id}. The banner has already been dismissed.`),!1;let n={id:t.id},r=this.k(),s=r[t.placementId];return s&&s.G===t.G&&(delete r[t.placementId],this.banners=r,this.W(),this.R.A(this.banners)),i.push({banner_id:t.id,dismissal_time:new Date().valueOf(),stable_key:t.G}),this.J(i),t.Ft(),p.A.Dt(f.w.Rt,n).lt}Y(){null!=this.F&&(clearTimeout(this.F),this.F=null)}Bt(t){this.Y(),this.F=t}k(){let t={};this.j&&(t=this.j.St(a.d.It.Tt));let i={};for(let r in t){var n;let s=null;null!=t[r]&&(n=t[r],s=new o.A(n.id,n.pid,n.html,n.its,n.ic,n.eat,n.pr,n.sk||null)),s&&(i[s.placementId]=s)}return i}W(){var t;if(!this.j)return;let i={};for(let n in this.banners){let r=(null==(t=this.banners[n])?void 0:t.qt())||null;i[n]=r}this.j.Pt(a.d.It.Tt,i),this._t()}_t(){var t,i;null==(t=this.j)||t.Pt(a.d.It.kt,null==(i=this.C)?void 0:i.$t())}xt(){var t;return(null==(t=this.j)?void 0:t.St(a.d.It.kt))||null}Et(){return this.T}Lt(t){this.T=t}zt(){var t;let i=null==(t=this.C)?void 0:t.$t(),n=this.xt();return null==n||i===n}Kt(t){return this.R.Ut(t)}Wt(){var t;return(null==(t=this.j)?void 0:t.St(a.d.It.At))||{}}Mt(t){this.j&&this.j.Pt(a.d.It.At,t)}$(){var t;return(null==(t=this.j)?void 0:t.St(a.d.It.Xt))||[]}J(t){var i;if(!this.j)return;let n=null==(i=this.h)?void 0:i.Gt(),r=null!=n?n:d._S,s=t.length<=r?t:t.slice(-r);this.j.Pt(a.d.It.Xt,s)}L(){var t;return(null==(t=this.j)?void 0:t.St(a.d.It.Ht))||{}}rt(t,i){if(!this.j)return;let n=this.L();for(let r of t)n[r]=i;this.j.Pt(a.d.It.Ht,n)}changeUser(){this.Jt(),this.Y()}clearData(){this.Y()}P(){return!!this.h&&(!!this.h.Ot()||(0!==this.h.Qt()&&this.Jt(),!1))}Jt(){this.banners={},this.j&&(this.j.Vt(a.d.It.Tt),this.j.Vt(a.d.It.At),this.j.Vt(a.d.It.Xt),this.j.Vt(a.d.It.Ht)),this.R.A({})}}let v={i:!1,provider:null,o:()=>(v.t(),v.provider||(v.provider=new b(r.Ay.l(),r.Ay.m(),r.Ay.p(),r.Ay.u()),r.Ay.v(v.provider)),v.provider),t:()=>{v.i||(r.Ay.g(v),v.i=!0)},destroy:()=>{v.provider=null,v.i=!1}},y=v},5138:(t,i,n)=>{"use strict";n.d(i,{A:()=>p,d:()=>h});var r=n(74224),s=n(43226),a=n(37206),o=n(82793),l=n(34063),u=n(44917),c=n(16798),d=n(79835);let h={Ou:{Cu:"ab.storage.userId",Nl:"ab.storage.deviceId",am:"ab.storage.sessionId"},It:{ag:"ab.test",tS:"ab.storage.events",eS:"ab.storage.attributes",sS:"ab.storage.attributes.anonymous_user",Mc:"ab.storage.device",Hl:"ab.storage.sdk_metadata",Yl:"ab.storage.session_id_for_cached_metadata",xu:"ab.storage.pushToken",rS:"ab.storage.cardImpressions",Rd:"ab.storage.serverConfig",oS:"ab.storage.triggers",aS:"ab.storage.triggers.ts",fm:"ab.storage.messagingSessionStart",bi:"ab.storage.cc",ji:"ab.storage.ccLastFullSync",yi:"ab.storage.ccLastCardUpdated",_c:"ab.storage.globalRateLimitCurrentTokenCount",Jc:"ab.storage.dynamicRateLimitCurrentTokenCount",Zt:"ab.storage.ccClicks",ps:"ab.storage.ccImpressions",fs:"ab.storage.ccDismissals",nS:"ab.storage.lastDisplayedTriggerTimesById",iS:"ab.storage.lastDisplayedTriggerTime",SS:"ab.storage.triggerFireInstancesById",oc:"ab.storage.signature",ES:"ab.storage.brazeSyncRetryCount",zi:"ab.storage.sdkVersion",ho:"ab.storage.ff",do:"ab.storage.ffImpressions",To:"ab.storage.ff
1LastRefreshAt",bo:"ab.storage.ff.sessionId",lS:"ab.storage.lastReqToEndpoint",_S:"ab.storage.requestAttempts",Pa:"ab.storage.deferredIam",Uc:"ab.storage.lastSdkReq",uS:"ab.storage.alias",Tt:"ab.storage.banners",At:"ab.storage.banners.impressions",Xt:"ab.storage.banners.dismissals",kt:"ab.storage.banners.sessionId",Ht:"ab.storage.banners.lastRequestedTime",Re:"ab.storage.dust.mite",_e:"ab.storage.dust.host",Fe:"ab.storage.dust.auth",Me:"ab.storage.dust.expiration",We:"ab.storage.dust.refreshLock",_r:"ab.storage.dust.msgClaims",fn:"ab.storage.chat.sessionId",mn:"ab.storage.chat.messages",wn:"ab.storage.chat.status",bn:"ab.storage.chat.error",hn:"ab.storage.chat.brazeSessionId"},Se:"ab.optOut"};class p{constructor(t,i){this.TS=t,this.cS=i,this.TS=t,this.cS=i}Vl(t){let i=(0,a.HP)(h.Ou),n=new p.De(t);for(let t of i)n.remove(h.Ou[t])}Ju(t,i){let n=null;null!=i&&i instanceof s.A&&(n=i.qt()),this.TS.store(t,n)}hS(t){let i=this.$u(t);null!=i&&(i.gm=new Date().valueOf(),this.Ju(t,i))}$u(t){let i,n=this.TS.wr(t),r=(t=>{let i;try{i=JSON.parse(t)}catch(t){i=null}return i})(n);if(r)(i=s.A._u(r)||null)&&this.Ju(t,i);else{let r=s.A.AS(n);i=s.A._u(r)||null,r!==n&&i&&this.Ju(t,i)}return i}xm(t){this.TS.remove(t)}Wl(){let t;for(let i of(0,a.HP)(h.Ou))null!=(t=this.$u(h.Ou[i]))&&this.Ju(h.Ou[i],t)}ll(t){let i;if(null==t||0===t.length)return!1;i=(0,a.cy)(t)?t:[t];let n=this.cS.wr(h.It.tS);null!=n&&(0,a.cy)(n)||(n=[]);for(let t=0;t<i.length;t++)n.push(i[t].qt());return this.cS.store(h.It.tS,n)}wm(t){return null!=t&&this.ll([t])}RS(){let t=this.cS.wr(h.It.tS);this.cS.remove(h.It.tS),null==t&&(t=[]);let i=[],n=!1,s=null;if((0,a.cy)(t))for(let n=0;n<t.length;n++)r.A.gS(t[n])?i.push(r.A._u(t[n])):s=n;else n=!0;if(n||null!=s){let a="Stored events could not be deserialized as Events";n&&(a+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(a+=", value at index "+s+" does not look like an event"),a+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),i.push(new r.A(null,o.w.Zl,new Date().valueOf(),null,{e:a}))}return i}Pt(t,i){return!!(0,a.BY)(h.It,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.cS.store(t,i)}St(t){return!!(0,a.BY)(h.It,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.cS.wr(t)}Vt(t){return!!(0,a.BY)(h.It,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.cS.remove(t),!0)}clearData(){let t=(0,a.HP)(h.Ou),i=(0,a.HP)(h.It);for(let i=0;i<t.length;i++){let n=t[i];this.TS.remove(h.Ou[n])}for(let t=0;t<i.length;t++){let n=i[t];this.cS.remove(h.It[n])}}IS(t){return t||h.It.sS}Nc(t){let i=this.cS.wr(h.It.eS);null==i&&(i={});let n=this.IS(t[u.A.rl]),r=i[n];for(let s in t)s!==u.A.rl&&(null==i[n]||r&&null==r[s])&&this.Fu(t[u.A.rl],s,t[s])}Fu(t,i,n){let r=this.cS.wr(h.It.eS);null==r&&(r={});let s=this.IS(t),a=r[s];if(null==a&&(a={},null!=t&&(a[u.A.rl]=t)),i===u.A.Eu)for(let t in null==a[i]&&(a[i]={}),n)a[i][t]=n[t];else a[i]=n;return r[s]=a,this.cS.store(h.It.eS,r)}bS(){let t=this.cS.wr(h.It.eS);this.cS.remove(h.It.eS);let i=[];for(let n in t)null!=t[n]&&i.push(t[n]);return i}qu(t){let i=this.cS.wr(h.It.eS);if(null!=i){let n=this.IS(null),r=i[n];null!=r&&(i[n]=void 0,this.cS.store(h.It.eS,i),r[u.A.rl]=t,this.Nc(r))}let n=this.$u(h.Ou.am),r=null;null!=n&&(r=n.Iu);let s=this.RS();if(null!=s)for(let i=0;i<s.length;i++){let n=s[i];null==n.userId&&n.sessionId==r&&(n.userId=t),this.wm(n)}}dS(){return this.cS.fS}}p.eg=class{constructor(t){this.eu=t,this.eu=t,this.fS=c.A.NS()?3:10}mS(t){return t+"."+this.eu}store(t,i){try{return localStorage.setItem(this.mS(t),JSON.stringify({v:i})),!0}catch(t){return l.A.info("Storage failure: "+(0,d.u)(t)),!1}}wr(t){try{let i=null,n=localStorage.getItem(this.mS(t));return null!=n&&(i=JSON.parse(n)),null==i?null:i.v}catch(t){return l.A.info("Storage retrieval failure: "+(0,d.u)(t)),null}}remove(t){try{localStorage.removeItem(this.mS(t))}catch(t){return l.A.info("Storage removal failure: "+(0,d.u)(t)),!1}}},p.rg=class{constructor(){this.KS={},this.YS=5242880,this.fS=3}store(t,i){let n=this.CS(i);return n>this.YS?(l.A.info("Storage failure: object is ≈"+n+" bytes which is greater than the max of "+this.YS),!1):(this.KS[t]={value:i},!0)}CS(t){let i=[],n=[t],r=0;for(;n.length;){let t=n.pop();if("boolean"==typeof t)r+=4;else if("string"==typeof t)r+=2*t.length;else if("number"==typeof t)r+=8;else if("object"==typeof t&&-1===i.indexOf(t))for(let r in i.push(t),t)n.push(t[r])}return r}wr(t){let i=this.KS[t];return null==i?null:i.value}remove(t){this.KS[t]=null}},p.De=class{constructor(t,i,n){this.eu=t,this.DS=i,this.eu=t,this.GS=this.MS(),this.US=24*("number"==typeof n&&n>0?n:400)*60,this.pS={},this.DS=!!i}mS(t){return null!=this.eu?t+"."+this.eu:t}MS(){let t=0,i=document.location.hostname,n=i.split("."),r="ab._gd";
1for(;t<n.length-1&&-1===document.cookie.indexOf(r+"="+r);)t++,i="."+n.slice(-1-t).join("."),document.cookie=r+"="+r+";domain="+i+";";return document.cookie=r+"=;expires="+new Date(0).toUTCString()+";domain="+i+";",i}Ke(){let t=new Date;return t.setTime(t.getTime()+60*this.US*1e3),t.getFullYear()}vS(){let t=(0,a.zu)(h.Ou),i=document.cookie.split(";");for(let n=0;n<i.length;n++){let r=i[n];for(;" "===r.charAt(0);)r=r.substring(1);let s=!1;for(let i=0;i<t.length;i++)if(0===r.indexOf(t[i])){s=!0;break}if(s){let t=r.split("=")[0];-1===t.indexOf("."+this.eu)&&this.yS(t)}}}store(t,i){let n;this.vS();let r=this.mS(t),s=new Date;s.setTime(s.getTime()+60*this.US*1e3);let a="expires="+s.toUTCString(),o="domain="+this.GS,u=r+"="+(n=this.DS?i:encodeURIComponent(i))+";"+a+";"+o+";path=/";if(u.length>=4093)return l.A.info("Storage failure: string is "+u.length+" chars which is too large to store as a cookie."),this.pS[r]=!0,this.yS(r),!1;try{document.cookie=u}catch(t){return l.A.info("Storage failure: "+(0,d.u)(t)),this.pS[r]=!0,!1}let c=this.DS?String(n):decodeURIComponent(n);return this.LS(r)!==c?(l.A.info(`Storage failure: unable to verify cookie write for "${r}". Falling back to other storage.`),this.pS[r]=!0,this.yS(r),!1):(delete this.pS[r],!0)}wr(t){let i=this.mS(t);return this.pS[i]?null:this.LS(i)}LS(t){let i=[],n=t+"=",r=document.cookie.split(";");for(let s=0;s<r.length;s++){let a=r[s];for(;" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(n))try{let t;t=this.DS?a.substring(n.length,a.length):decodeURIComponent(a.substring(n.length,a.length)),i.push(t)}catch(i){return l.A.info("Storage retrieval failure: "+(0,d.u)(i)),this.yS(t),null}}return i.length>0?i[i.length-1]:null}remove(t){this.yS(this.mS(t))}yS(t){let i=t+"=;expires="+new Date(0).toUTCString();document.cookie=i,document.cookie=i+";path=/";let n=i+";domain="+this.GS;document.cookie=n,document.cookie=n+";path=/"}},p.tg=class{constructor(t,i,n,r){this.eu=t,this.BS=[],i&&this.BS.push(new p.De(t,void 0,r)),n&&this.BS.push(new p.eg(t)),this.BS.push(new p.rg)}store(t,i){let n=!0;for(let r=0;r<this.BS.length;r++)n=this.BS[r].store(t,i)&&n;return n}wr(t){for(let i=0;i<this.BS.length;i++){let n=this.BS[i].wr(t);if(null!=n)return n}return null}remove(t){new p.De(this.eu).remove(t);for(let i=0;i<this.BS.length;i++)this.BS[i].remove(t)}}},5652:(t,i,n)=>{"use strict";n.d(i,{Kf:()=>s,MV:()=>r,fd:()=>o,lI:()=>a});let r={clickLogin:"click login",clickRegistration:"click registration",clickSubscribe:"click subscribe",clickSubscribeSecondary:"click subscribe secondary",closeMittarimuuri:"close mittarimuuri",showKovamuuri:"show kovamuuri",showArkistomuuri:"show arkistomuuri",showKirjautumismuuri:"show kirjautumismuuri",showLehtimuuri:"show lehtimuuri",showMittarimuuri:"show mittarimuuri",showPaivanlehti:"show paivanlehti"},s={LoginDone:"login.loginDone"},a={showHardPaywall:"paywall.showKovamuuri",showArchivedPaywall:"paywall.showArkistomuuri",showEditionPaywall:"paywall.showPaivanlehti",showLoginWall:"paywall.showKirjautumismuuri",clickSubscribe:"paywall.clickSubscribe",clickLogin:"paywall.clickLogin",closeMeteredWall:"paywall.closeMittarimuuri",showLehtimuuri:"paywall.showLehtimuuri",closeLehtimuuri:"paywall.closeLehtimuuri"},o={showPaywall:"paywall_shown",clickSubscribe:"paywall_subscribe_start",clickLogin:"paywall_login_start",dismissWall:"paywall_dismissed",loginDone:"login_logged_in"}},7235:(t,i,n)=>{"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function s(t){this.setState((function(i){var n=this.constructor.getDerivedStateFromProps(t,i);return null!=n?n:null}).bind(this))}function a(t,i){try{var n=this.props,r=this.state;this.props=t,this.state=i,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function o(t){var i=t.prototype;if(!i||!i.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate)return t;var n=null,o=null,l=null;if("function"==typeof i.componentWillMount?n="componentWillMount":"function"==typeof i.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof i.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof i.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof i.componentWillUpdate?l="componentWillUpdate":"function"==typeof i.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(t.displayName||t.name)+" uses "+("function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==o?"\n  "+o:"")+(null!==l?"\n  "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof t.getDerivedStateFromProps&&(i.componentWillMount=r,i.componentWillReceiveProps=s),"function"==typeof i.getSnapshotBeforeUpdate){if("function"!=typeof i.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");i.componentWillUpdate=a;var u=i.componentDidUpdate;i.componentDidUpdate=function(t,i,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,t,i,r)}}return t}n.r(i),n.d(i,{polyfill:()=>o}),r.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},7264:(t,i,n)=>{"use strict";n.d(i,{B:()=>a});var r=n(33399),s=n(34950);let a=(t,i)=>{if((null==t?void 0:t.type)===r.g6.pageRender)if((0,s.BG)(i))return i.sectionTheme;else return t.sectionTheme}},7966:(t,i,n)=>{"use strict";n.d(i,{A:()=>p});var r=n(30354),s=n(55679),a=n(13612),o=n(34063),l=n(82793),u=n(5138);class c{constructor(t){this.j=t,this.j=t}logClick(t){let i=new a.A;if(t.Yt(),null==t.url||""===t.url)return o.A.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),i;if(t.id&&this.j){let i=this.j.St(u.d.It.Zt)||{};i[t.id]=!0,this.j.Pt(u.d.It.Zt,i)}let n=this.ls([t]);if(null==n)return i;let r=l.w.us;return s.A.Dt(r,n)}cs(t){let i=new a.A;if(!t.Ft())return o.A.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),i;if(t.id&&this.j){let i=this.j.St(u.d.It.fs)||{};i[t.id]=!0,this.j.Pt(u.d.It.fs,i)}let n=this.ls([t]);return null==n?i:s.A.Dt(l.w.gs,n)}ds(t){let i=new a.A(!0),n=[],c=[],d={};for(let i of(this.j&&(d=this.j.St(u.d.It.ps)||{}),t))i.js()?(i instanceof r.A?c.push(i):n.push(i),i.id&&(d[i.id]=!0)):o.A.info(`Card ${i.id} logged an impression too recently. Ignoring analytics event.`);let h=this.ls(n),p=this.ls(c);if(null==h&&null==p)return i.lt=!1,i;if(this.j&&this.j.Pt(u.d.It.ps,d),null!=h){let t=l.w.vs,n=s.A.Dt(t,h);i.Cs(n)}if(null!=p){let t=s.A.Dt(l.w.ws,p);i.Cs(t)}return i}ls(t){let i,n=null;for(let r=0;r<t.length;r++)null!=(i=t[r].id)&&""!==i&&((n=n||{}).ids=n.ids||[],n.ids.push(i));return n}}var d=n(64357);let h={i:!1,na:null,ra:()=>
1(h.t(),h.na||(h.na=new c(d.Ay.p())),h.na),t:()=>{h.i||(d.Ay.g(h),h.i=!0)},destroy:()=>{h.na=null,h.i=!1}},p=h},8464:(t,i,n)=>{"use strict";n.d(i,{A:()=>b});var r=n(64357),s=n(34063),a=n(55617),o=n(5138),l=n(15244),u=n(98465),c=n(79921),d=n(48930),h=n(33865);class p extends h.z{constructor(t,i=!1,n={},r){super(n),this.id=t,this.enabled=i,this.trackingString=r,this.id=t,this.enabled=i,this.trackingString=r}qt(){let t={};return t[p.bs.qs]=this.id,t[p.bs.Jr]=this.enabled,t[p.bs.Or]=this.properties,t[p.bs.Vr]=this.trackingString,t}}p.bs={qs:"id",Jr:"e",Or:"pr",Vr:"fts"},p.ei={qs:"id",Jr:"enabled",Or:"properties",Vr:"fts"};var f=n(36994);class m extends a.A{constructor(t,i,n,s){super(),this.h=t,this.B=i,this.j=n,this.C=s,this.Rr=[],this.Xr=0,this.h=t,this.B=i,this.j=n,this.C=s,this.Kr=null,this.Lr=new l.A,this.D=10,this.N=null,this.F=null,r.Ay.S(this.Lr)}q(t){var i;if((null==(i=this.h)?void 0:i.Qr())&&null!=t&&t.feature_flags){for(let i of(this.Rr=[],t.feature_flags)){let t=function(t){if(t[p.ei.qs]&&"boolean"==typeof t[p.ei.Jr])return new p(t[p.ei.qs],t[p.ei.Jr],t[p.ei.Or],t[p.ei.Vr]);s.A.info(`Unable to create feature flag from ${JSON.stringify(t,null,2)}`)}(i);t&&this.Rr.push(t)}this.Xr=new Date().getTime(),this.Yr(),this.Lr.A(this.Rr)}}Zr(){let t={};this.j&&(t=this.j.St(o.d.It.ho));let i={};for(let n in t){let r=function(t){if(t[p.bs.qs]&&"boolean"==typeof t[p.bs.Jr])return new p(t[p.bs.qs],t[p.bs.Jr],t[p.bs.Or],t[p.bs.Vr]);s.A.info(`Unable to deserialize feature flag from ${JSON.stringify(t,null,2)}`)}(t[n]);r&&(i[r.id]=r)}return i}uo(){var t;return(null==(t=this.j)?void 0:t.St(o.d.It.do))||{}}vo(t){this.j&&this.j.Pt(o.d.It.do,t)}Kt(t){return this.Lr.Ut(t)}refreshFeatureFlags(t,i,n=!1,r=!0,s="sdk"){let a=()=>{"function"==typeof i&&i(),this.Lr.A(this.Rr)};if(!this.Fo(n,s))return!this.Kr&&this.h&&(this.Kr=this.h.po(()=>{this.refreshFeatureFlags(t,i,!1,!0,s)})),void a();let o=this.B;if(!o)return void a();r&&this.Y();let l=o.Z({},!0),h=o.tt(l,f.A.it.jo,s),p=!1;o.et(l,(r=-1)=>{let o=this.B;if(!o)return void a();let m=new Date().valueOf();f.A.nt(this.j,f.A.it.jo,m),-1!==r&&h.push(["X-Braze-Req-Tokens-Remaining",r.toString()]),d.A.ot({url:`${o.ht()}/feature_flags/sync`,headers:h,data:l,lt:i=>{o.ut(l,i,h)?(o.ct(),this.q(i),p=!1,"function"==typeof t&&t()):(p=!0,a())},error:t=>{o.dt(t,"retrieving feature flags"),p=!0,a()},ft:(r,a)=>{var l,d,h;let m;if(p){let t=(null==(l=this.h)?void 0:l.vt())||c.xm,i=(null==(d=this.h)?void 0:d.gt())||c.MF,n=(null==(h=this.h)?void 0:h.bt())||c.T,r=this.N;(null==r||r<t)&&(r=t),m=Math.min(n,(0,u.C)(t,r*i))}o.yt(a,()=>{this.refreshFeatureFlags(t,i,n,!0,s)},f.A.it.jo,t=>this.Bt(t),()=>this.Y(),m)}})},f.A.it.jo,i)}Y(){null!=this.F&&(clearTimeout(this.F),this.F=null)}Bt(t){this.Y(),this.F=t}Fo(t,i="sdk"){if(!this.h)return!1;if(!t&&"dust"!==i){let t=this.h.wo();if(null==t)return!1;let i=!1;if(!isNaN(t)){if(-1===t)return s.A.info("Feature flag refreshes not allowed"),!1;i=new Date().getTime()>=(this.Xr||0)+1e3*t}if(!i)return s.A.info(`Feature flag refreshes were rate limited to ${t} seconds`),!1}return this.h.Qr()}yo(){var t;return(null==(t=this.j)?void 0:t.St(o.d.It.bo))||null}Co(){var t,i;null==(t=this.j)||t.Pt(o.d.It.bo,null==(i=this.C)?void 0:i.$t())}Ro(){var t;let i=null==(t=this.C)?void 0:t.$t(),n=this.yo();return null==n||i===n}Yr(){if(!this.j)return;let t={};for(let i of this.Rr){let n=i.qt();t[i.id]=n}this.j.Pt(o.d.It.ho,t),this.j.Pt(o.d.It.To,this.Xr),this.Co()}changeUser(){this.Y()}clearData(){this.Y()}}let g={i:!1,provider:null,o:()=>(g.t(),g.provider||(g.provider=new m(r.Ay.l(),r.Ay.m(),r.Ay.p(),r.Ay.u()),r.Ay.v(g.provider),r.Ay.ar("ffr",()=>{var t;null==(t=g.provider)||t.refreshFeatureFlags(void 0,void 0,!1,!0,"dust")})),g.provider),t:()=>{g.i||(r.Ay.g(g),g.i=!0)},destroy:()=>{g.provider=null,g.i=!1}},b=g},9848:(t,i,n)=>{"use strict";n.d(i,{B:()=>g});var r=n(70784),s=n(64357),a=n(55617),o=n(77904),l=n(74224),u=n(37206),c=n(5138);class d{constructor(t,i,n,r,s){this.triggerId=t,this.Ra=i,this.Sa=n,this._a=r,this.qa=s,this.triggerId=t,this.Ra=i,this.Sa=n,this._a=r,this.qa=s}static fromJson(t,i,n,r,s){return null==t||null==t.trigger_id?null:new d(t.trigger_id,i,n,r,s)}}var h=n(76362),p=n(28005),f=n(34063);class m extends a.A{constructor(t,i,n,r,s){super(),this.sg=t,this.Rs=i,this.j=n,this.Ru=r,this.hg=s,this.sg=t,this.Rs=i,this.j=n,this.Ru=r,this.hg=s,this.ng=[],this.lg=[],this.gg=null,this.fg={},this.cg={},this.triggers=[],this.ug=0,this.dg(),this.pg()}mg(){if(this.j){this.gg=this.j.St(c.d.It.iS)||this.gg,this.fg=this.j.St(c.d.It.SS)||this.fg,this.cg=this.j.St(c.d.It.nS)||this.cg;for(let t=0;t<this.triggers.length;t++){let i=this.triggers[t];i.id&&null!=this.cg[i.id]&&i.Hm(this.cg[i.id])}}}dg(){if(!this.j)return;this.ug=this.j.St(c.d.It.aS)||0;let t=this.j.St(c.d.It.oS)||[],i=[];for(let n=0;n<t.length;n++)i.push(h.A._u(t[n]));this.triggers=i,this.mg()}pg(){let t=this,i=function(i,n,r,s,a){return function(){t.bg(i,n,r,s,a)}},n={};for(let t of this.triggers)t.id&&(n[t.id]=t);let r=!1;for(let t=0;t<this.triggers.length;t++){let s=this.triggers[t];if(s.id&&null!=this.fg[s.id]){let t=this.fg[s.id],a=[];for(let r=0;r<t.length;r++){let o=t[r],c=s.Jm(o._a||0);if(c>0){let t,r;a.push(o),null!=o.wg&&(t=o.wg),null!=o.yg&&l.A.gS(o.yg)&&(r=l.A._u(o.yg));let d=[];if(o.Tg&&(0,u.cy)(o.Tg))for(let t=0;t<o.Tg.length;t++){let i=n[o.Tg[t]];null!=i&&d.push(i)}this.lg.push(window.setTimeout(i(s,o._a||0,t,r,d),c))}}this.fg[s.id].length>a.length&&(this.fg[s.id]=a,r=!0,0===this.fg[s.id].length&&delete this.fg[s.id])}}r&&this.j&&this.j.Pt(c.d.It.SS,this.fg)}$g(){if(!this.j)return;let t=[];for(let i=0;i<this.triggers.length;i++)t.push(this.triggers[i].qt());this.ug=new Date().valueOf(),this.j.Pt(c.d.It.oS,t),this.j.Pt(c.d.It.aS,this.ug)}vg(){this.j&&((this.j.St(c.d.It.aS)||0)>this.ug?this.dg():this.mg())}q(t){let i=!1;if(null!=t&&t.triggers){let n;this.hg.Ga(),this.mg();let r={},s={};this.triggers=[];for(let n=0;n<t.triggers.length;n++){let a=h.A.fromJson(t.triggers[n]);if(a){a.id&&null!=this.cg[a.id]&&(a.Hm(this.cg[a.id]),r[a.id]=this.cg[a.id]),a.id&&null!=this.fg[a.id]&&(s[a.id]=this.fg[a.id]);for(let t=0;t<a.Nm.length;t++)if(a.Nm[t]._m(p.A.Os,null)){i=!0;break}this.triggers.push(a)}}(0,u.n4)(this.cg,r)||(this.cg=r,this.j&&this.j.Pt(c.d.It.nS,this.cg)),(0,u.n4)(this.fg,s)||(this.fg=s,this.j&&this.j.Pt(c.d.It.SS,this.fg)),this.$g(),i&&(f.A.info("Trigger with test c
1ondition found, firing test."),this.Pe(p.A.Os)),this.Pe(p.A.OPEN);let a=this.ng;this.ng=[];for(let t=0;t<a.length;t++)n=Array.prototype.slice.call(a[t]),this.Pe(...n)}}bg(t,i,n,r,s){let a,l,u,c=r=>{this.mg();let s=new Date().valueOf();t.Lm(i)||(!1===navigator.onLine&&t.type===h.A.Ba.za&&r.imageUrl?f.A.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.Fm(s)&&this.kg(t,s,n)?0===this.Rs.$h()?f.A.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Rs.A([r]),this.jg(t,s)):f.A.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},p=()=>{this.mg();let a=s.pop();if(null!=a)if(this.Dg(a,i,n,r,s),a.Lm(i)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${a.id} has already elapsed.`;s.length>0&&(t+=" Continuing to fall back."),f.A.info(t),p()}else{f.A.info(`Server aborted in-app message display. Falling back to lower priority ${a.type} trigger action ${t.id}.`);let o=1e3*a.Im-(new Date().valueOf()-i);o>0?this.lg.push(window.setTimeout(()=>{this.bg(a,i,n,r,s)},o)):this.bg(a,i,n,r,s)}};switch(t.type){case h.A.Ba.za:if(null==(a=(0,o.g)(t.data))){f.A.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(l=this.hg.ja(a)){f.A.error(l),p();break}c(a);break;case h.A.Ba.Rm:if(null==(u=d.fromJson(t.data,c,p,i,t.qa||0))){f.A.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.hg.Ta(u,n,r);break;default:f.A.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}Pe(t,i=null,n){if(!(0,u.BY)(p.A,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Ru&&this.Ru.Vd())return f.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.ng.push(arguments);this.vg();let r=new Date().valueOf(),s=r-(this.gg||0),a=!0,o=!0,l=[];for(let n=0;n<this.triggers.length;n++){let s=this.triggers[n],u=r+1e3*s.Im;if(s.Fm(u)&&(null==s.startTime||s.startTime.valueOf()<=r)&&(null==s.endTime||s.endTime.valueOf()>=r)){let n=!1;for(let r=0;r<s.Nm.length;r++)if(s.Nm[r]._m(t,i)){n=!0;break}n&&(a=!1,this.kg(s,u,t)&&(o=!1,l.push(s)))}}if(a)return void f.A.info(`Trigger event ${t} did not match any trigger conditions.`);if(o)return void f.A.info(`Ignoring ${t} trigger event because a trigger was displayed ${s/1e3}s ago.`);l.sort((t,i)=>t.priority-i.priority);let c=l.pop();null!=c&&(f.A.info(`Firing ${c.type} trigger action ${c.id} from trigger event ${t}.`),this.Dg(c,r,t,n,l),0===c.Im?this.bg(c,r,t,n,l):this.lg.push(window.setTimeout(()=>{this.bg(c,r,t,n,l)},1e3*c.Im)))}changeUser(t=!1){if(this.triggers=[],this.j&&this.j.Vt(c.d.It.oS),!t){this.ng=[],this.gg=null,this.cg={},this.fg={},this.hg&&this.hg.xa();for(let t=0;t<this.lg.length;t++)clearTimeout(this.lg[t]);this.lg=[],this.j&&(this.j.Vt(c.d.It.iS),this.j.Vt(c.d.It.nS),this.j.Vt(c.d.It.SS))}}clearData(){this.triggers=[],this.gg=null,this.cg={},this.fg={},this.hg&&this.hg.xa();for(let t=0;t<this.lg.length;t++)clearTimeout(this.lg[t]);this.lg=[]}kg(t,i,n){if(null==this.gg)return!0;if(n===p.A.Os)return f.A.info("Ignoring minimum interval between trigger because it is a test type."),!0;let r=t.Mm;return null==r&&(r=this.sg),i-this.gg>=1e3*r}Dg(t,i,n,r,s){let a;this.mg(),t.id&&(this.fg[t.id]=this.fg[t.id]||[]);let o={};o._a=i,o.wg=n,null!=r&&(a=r.qt()),o.yg=a;let l=[];for(let t of s)t.id&&l.push(t.id);o.Tg=l,t.id&&this.fg[t.id].push(o),this.j&&this.j.Pt(c.d.It.SS,this.fg)}jg(t,i){this.mg(),t.Hm(i),this.gg=i,t.id&&(this.cg[t.id]=i),this.j&&(this.j.Pt(c.d.It.iS,i),this.j.Pt(c.d.It.nS,this.cg))}}let g={i:!1,provider:null,o:()=>(g.t(),g.provider||g.ig(),g.provider),ig:()=>{if(!g.provider){let t=s.Ay.er(s.lw._l);g.provider=new m(null!=t?t:30,r.A.ra().ta(),s.Ay.p(),s.Ay.nn(),r.A.ra()),s.Ay.v(g.provider)}},t:()=>{g.i||(g.ig(),s.Ay.g(g),g.i=!0)},destroy:()=>{g.provider=null,g.i=!1}}},12470:(t,i,n)=>{"use strict";n.d(i,{w:()=>s});var r=n(64357);function s(){if(r.Ay.rr())return r.Ay.zr()}},13612:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});
1class r{constructor(t=!1,i=[]){this.lt=t,this.Ne=i,this.lt=t,this.Ne=i}Cs(t){this.lt=this.lt&&t.lt,this.Ne.push(...t.Ne)}}},13811:(t,i,n)=>{"use strict";n.d(i,{l:()=>r});let r=()=>{var t;return window.isSecureContext&&(null==(t=window.crypto)?void 0:t.randomUUID)?window.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let i=16*Math.random()|0;return("x"===t?i:3&i|8).toString(16)})}},13890:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});class r{constructor(t,i){this.triggerId=t,this.messageExtras=i,this.triggerId=t,this.messageExtras=i,this.extras={},this.isControl=!0,this.hs=!1}static fromJson(t){return new r(t.trigger_id,t.message_extras)}js(){return!this.hs&&(this.hs=!0,!0)}sm(){return this.hs}}},14270:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.resetState=function(){var t=document.getElementsByTagName("html")[0];for(var i in n)s(t,n[i]);var a=document.body;for(var o in r)s(a,r[o]);n={},r={}},i.log=function(){};var n={},r={};function s(t,i){t.classList.remove(i)}var a=function(t,i,n){n.forEach(function(n){i[n]||(i[n]=0),i[n]+=1,t.add(n)})},o=function(t,i,n){n.forEach(function(n){i[n]&&(i[n]-=1),0===i[n]&&t.remove(n)})};i.add=function(t,i){return a(t.classList,"html"==t.nodeName.toLowerCase()?n:r,i.split(" "))},i.remove=function(t,i){return o(t.classList,"html"==t.nodeName.toLowerCase()?n:r,i.split(" "))}},15244:(t,i,n)=>{"use strict";n.d(i,{A:()=>s});var r=n(40814);class s{constructor(){this.So={}}Ut(t){if("function"!=typeof t)return null;let i=r.A.de();return this.So[i]=t,i}removeSubscription(t){delete this.So[t]}removeAllSubscriptions(){this.So={}}$h(){return Object.keys(this.So).length}A(t){let i=[];for(let n in this.So){let r=this.So[n];i.push(r(t))}return i}}},16798:(t,i,n)=>{"use strict";n.d(i,{A:()=>c});var r=n(37206);class s{ff(){}cf(){}jc(t){}static lf(t,i){if(t&&i){if(t=t.toLowerCase(),(0,r.cy)(i.uf)){for(let n=0;n<i.uf.length;n++)if(-1!==t.indexOf(i.uf[n].toLowerCase()))return i.identity}else if(-1!==t.indexOf(i.uf.toLowerCase()))return i.identity}}}var a=n(1981);class o extends s{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const t=this.hf();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}this.OS=null}ff(){return this.browser}cf(){return this.version}jc(t){if(this.OS)return Promise.resolve(this.OS);let i=i=>{for(let n=0;n<t.length;n++){let r=o.lf(i,t[n]);if(r)return this.OS=r,this.OS}return i};return this.userAgentData.platform?Promise.resolve(i(this.userAgentData.platform)):this.getHighEntropyValues().then(t=>t.platform?i(t.platform):navigator.platform).catch(()=>navigator.platform)}hf(){let t={},i=this.userAgentData.brands;if(i&&i.length)for(let n of i){let i=this.af(a.c),r=n.brand.match(i);if(r&&r.length>0){t.browser=r[0],t.version=n.version;break}}return t}af(t){let i=[];for(let n in t)i.push(t[n]);return RegExp("("+i.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class l extends s{constructor(){super(),this.Vm=l.hf(navigator.userAgent||"")}ff(){return this.Vm[0]||"Unknown Browser"}cf(){return this.Vm[1]||"Unknown Version"}jc(t){for(let i=0;i<t.length;i++){let n=t[i].string,r=l.lf(n,t[i]);if(r)return r===a.u.Cg&&navigator.maxTouchPoints>1&&(r=a.u.ao),Promise.resolve(r)}return Promise.resolve(navigator.platform)}static hf(t){let i,n=t.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chatgptbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(n[1]===a.c.rO){if(t.includes(a.c.Sg))return[a.c.Sg,n[2]];if(null!=(i=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(i=i.slice(1))[0]=i[0].replace("OPR",a.c.oO),i[0]=i[0].replace("EdgA",a.
1c.eO),"Edg"===i[0]&&(i[0]=a.c.eO),[i[0],i[1]]}if(n[1]===a.c.Og&&null!=(i=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(i=i.slice(1))[0]=i[0].replace("EdgiOS",a.c.eO),[i[0],i[1]];if((n=n[2]?[n[1],n[2]]:[null,null])[0]===a.c.Og&&null!=(i=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&n.splice(1,1,i[1]),null!=(i=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&n.splice(1,1,i[2]),n[0]===a.c.oO&&null!=(i=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",i[1]||""];if(n[0]){let t=n[0].toLowerCase();"crios"===t&&(n[0]=a.c.rO),"tizen"===t&&(n[0]="Samsung Smart TV",n[1]=null),"samsungbrowser"===t&&(n[0]="Samsung Browser")}return n}}class u{constructor(){let t;t=navigator.userAgent.toLowerCase().includes(a.c.Sg.toLowerCase())||!navigator.userAgentData?l:o,this.xg=new t,this.userAgent=navigator.userAgent,this.browser=this.xg.ff(),this.version=this.xg.cf(),this.OS=null,this.jc().then(t=>this.OS=t);const i=navigator;this.language=(i.userLanguage||i.language||i.browserLanguage||i.systemLanguage||"").toLowerCase(),this.kl=u.Bg(this.userAgent)}NS(){return this.browser===a.c.Og}Ic(){return this.OS||null}jc(){return this.OS?Promise.resolve(this.OS):this.xg.jc(u.Pg).then(t=>(this.OS=t,t))}static Bg(t){t=t.toLowerCase();let i=["bot","spider","slurp","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","mediapartners-google","teoma","taiko","facebookexternalhit","facebookcatalog","meta-webindexer","meta-externalads","meta-externalagent","meta-externalfetcher"];for(let n=0;n<i.length;n++)if(-1!==t.indexOf(i[n]))return!0;return!1}}u.Pg=[{string:navigator.platform,uf:"Win",identity:a.u.Wg},{string:navigator.platform,uf:"Mac",identity:a.u.Cg},{string:navigator.platform,uf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,uf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,uf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,uf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,uf:"SunOS",identity:"SunOS"},{string:navigator.platform,uf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,uf:"X11",identity:"X11"},{string:navigator.userAgent,uf:["iPhone","iPad","iPod"],identity:a.u.ao},{string:navigator.platform,uf:"Pike v",identity:a.u.ao},{string:navigator.userAgent,uf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,uf:"Tizen",identity:"Tizen"},{string:navigator.userAgent,uf:"Coolita",identity:"Other Smart TV"},{string:navigator.userAgent,uf:"WhaleTV",identity:"Other Smart TV"},{string:navigator.platform,uf:["Linux armv7l","Android"],identity:a.u.Fg},{string:navigator.userAgent,uf:["Android"],identity:a.u.Fg},{string:navigator.platform,uf:"Linux",identity:"Linux"}];let c=new u},17924:(t,i,n)=>{"use strict";n.d(i,{Bv:()=>o,Wr:()=>s,g7:()=>u,yb:()=>a}),n(37876),n(27964);var r=n(62498);let s=t=>{var i,n;null==(n=window.InkBridge)||null==(i=n.webToNative)||i.call(n,t)},a=(t,i)=>{window.addEventListener(t,i)},o=(t,i)=>{window.removeEventListener(t,i)},l=[r.oi.StartSubscriptionFunnel],u=t=>{var i;return(null==(i=window.inkAppFeatureFlags)?void 0:i.webToNativeAppEvents)?window.inkAppFeatureFlags.webToNativeAppEvents.includes(t):l.includes(t)}},18385:()=>{},18858:(t,i,n)=>{"use strict";n.d(i,{R7:()=>c,oN:()=>o,pZ:()=>u});var r=n(37876),s=n(27964),a=n(14232);let o={"html.ads.enabled":!1,"html.personalizationengine.frontpage.enabled":!0,"html.personalizationengine.redirect.percentage":0},l=(0,a.createContext)(void 0),u=t=>{let i,n=(0,s.c)(3),{children:a,configProperties:o}=t;return n[0]!==a||n[1]!==o?(i=(0,r.jsx)(l.Provider,{value:o,children:a}),n[0]=a,n[1]=o,n[2]=i):i=n[2],i},c=()=>{let t=(0,a.useContext)(l);if(void 0===t)throw Error("useConfigProperties must be used within a ConfigPropertiesProvider");return t}},19221:(t,i,n)=>{"use strict";n.d(i,{q:()=>s,z:()=>r});let r="userAdParams",s="userProfile"},20184:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(t){return t.removeAttribute("aria-hidden")}
1):document.querySelectorAll(o).forEach(function(t){return t.removeAttribute("aria-hidden")})),o=null},i.log=function(){},i.assertNodeList=l,i.setElement=function(t){var i=t;if("string"==typeof i&&a.canUseDOM){var n=document.querySelectorAll(i);l(n,i),i=n}return o=i||o},i.validateElement=u,i.hide=function(t){var i=!0,n=!1,r=void 0;try{for(var s,a=u(t)[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)s.value.setAttribute("aria-hidden","true")}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}},i.show=function(t){var i=!0,n=!1,r=void 0;try{for(var s,a=u(t)[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)s.value.removeAttribute("aria-hidden")}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}},i.documentNotReadyOrSSRTesting=function(){o=null};var r,s=(r=n(68547))&&r.__esModule?r:{default:r},a=n(36078),o=null;function l(t,i){if(!t||!t.length)throw Error("react-modal: No elements were found for selector "+i+".")}function u(t){var i=t||o;return i?Array.isArray(i)||i instanceof HTMLCollection||i instanceof NodeList?i:[i]:((0,s.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},20615:(t,i,n)=>{"use strict";n.d(i,{o:()=>o});var r=n(99142),s=n(33399);let a=r.Ikc({content_id:r.MfU(r.lqM(r.aig()),void 0),page_author:r.MfU(r.lqM(r.YjP()),void 0),page_category:r.MfU(r.lqM(r.YjP()),void 0),page_full_category:r.MfU(r.lqM(r.YjP()),void 0),page_title:r.MfU(r.lqM(r.YjP()),void 0),page_paywall_status:r.MfU(r.lqM(r.YjP()),void 0)}),o=t=>{var i,n;let{assetData:r,analyticsMetadataV2:o,brand:l,platform:u,environment:c}=t,d=null!=(i=null!=(n=r&&"analyticsMetadataV2"in r?r.analyticsMetadataV2:void 0)?n:o)?i:{},h=a.safeParse(d),p=h.success?h.data:{},f=r&&"ingress"in r&&"string"==typeof r.ingress?r.ingress:void 0,m=r&&"tags"in r&&Array.isArray(r.tags)?r.tags.map(t=>t.key):void 0;return{app_id:"nf-".concat(l,"-").concat(null!=u?u:s.OD.Web,"-").concat(c),article_id:p.content_id,author:p.page_author,description:f,tags:(null==m?void 0:m.length)?m:void 0,page_category:p.page_category,page_full_category:p.page_full_category,page_title:p.page_title,paywall_status:p.page_paywall_status}}},23191:(t,i,n)=>{"use strict";n.d(i,{U:()=>u,s:()=>l});var r=n(37876),s=n(27964),a=n(14232);let o=(0,a.createContext)(void 0),l=(0,a.memo)(t=>{let i,n=(0,s.c)(3),{children:a,config:l}=t;return n[0]!==a||n[1]!==l?(i=(0,r.jsx)(o.Provider,{value:l,children:a}),n[0]=a,n[1]=l,n[2]=i):i=n[2],i}),u=()=>{let t=(0,a.useContext)(o);if(void 0===t)throw Error("useConfig must be used within a ConfigProvider");return t}},23305:(t,i,n)=>{"use strict";n.d(i,{Cr:()=>d,Hg:()=>y,TD:()=>m,YA:()=>b,_P:()=>p,le:()=>v,oM:()=>g,zJ:()=>w});var r=n(76984),s=n(63881),a=n(32037),o=n(91421),l=n(99373),u=n(68684);let c="sndp-jwt",d=async t=>{let{url:i,requestOptions:n={},getValidSessionToken:r,rawText:s}=t,o=await r(),{headers:l,...u}=n,c={headers:h(o,l),...u};return s?(0,a.d)({url:i,requestOptions:c,rawText:!0}):(0,a.d)({url:i,requestOptions:c})},h=(t,i)=>{let n=new Headers(i);return n.has("Accept")||n.set("Accept","application/json"),n.has("SNDP-Authorization")||n.set("SNDP-Authorization",null!=t?t:""),n},p=async function(t,i,n,r){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=o.c.getItem(c);if(l){if(r||!f(l))try{let{sessionToken:t}=await (0,s.ug)(i,a);return t}catch(i){console.error("Failed to refresh JWT token – clearing user info from LS and refreshing the page"),(0,u.Hf)(t,n,!0,!0),window.location.replace(document.location.href);return}return l}},f=t=>{try{let i=o.c.getItemLastSaveTime(c);return!!i&&m(t,parseInt(i))}catch(t){return!1}},m=(t,i)=>{try{let n=v(t);return A(i,n.duration+20)}catch(t){return!1}},g=()=>{let t=o.c.getItem(c);return!!t&&f(t)},b=()=>!o.c.getItem(c),v=t=>{try{return(0,r.s)(t)}catch(i){throw console.error("Malformed JWT token: ".concat(t)),Error("Malformed JWT token")}},y=(t,i)=>{o.c.setItem(c,t,i)},w=()=>{o.c.removeItem(c)},A=(t,i)=>{try{let n=(0,l._g)();return!isNaN(t)&&n-t<i}catch(t){return!1}}},23486:(t,i,n)=>{"use strict";n.d(i,{A:()=>l});var r=n(95315),s=n(79921),a=n(15244),o=n(34063);class l{constructor(t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g){this.id=t,this.viewed=i,this.title=n,this.imageUrl=r,this.description=s,this.updated=a,this.expiresAt=o,this.url=l,this.linkText=u,this.aspectRatio=c,this.extras=d,this.pinned=h,this.dismissible=p,this.clicked=f,this.language=m,this.altImageText=g,this.id=t,this.viewed=i||!1,this.title=n||"",this.imageUrl=r,this.description=s||"",this.updated=a||null,this.expiresAt=o||null,this.url=l,this.linkText=u,null==c?this.aspectRatio=null:(c=parseFloat(c.toString()),this.aspectRatio=isNaN(c)?null:c),this.extras=d||{},this.pinned=h||!1,this.dismissible=p||!1,this.dismissed=!1,this.clicked=f||!1,this.isControl
1=!1,this.language=m||null,this.altImageText=g||null,this.test=!1,this.ti=null,this.es=null,this.ii=null}subscribeToClickedEvent(t){return this.si().Ut(t)}subscribeToDismissedEvent(t){return this.ns().Ut(t)}removeSubscription(t){this.si().removeSubscription(t),this.ns().removeSubscription(t)}removeAllSubscriptions(){this.si().removeAllSubscriptions(),this.ns().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let t=this.te;!t&&this.id&&(t=document.getElementById(this.id)),t&&(t.style.height=t.offsetHeight+"px",t.className=t.className+" ab-hide",setTimeout(function(){t&&t.parentNode&&(t.style.height="0",t.style.margin="0",setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},l.hi))},s.RW))}si(){return null==this.ti&&(this.ti=new a.A),this.ti}ns(){return null==this.es&&(this.es=new a.A),this.es}js(){let t=new Date().valueOf();return!(null!=this.ii&&t-this.ii<l.li)&&(this.ii=t,this.viewed=!0,!0)}Yt(){this.viewed=!0,this.clicked=!0,this.si().A()}Ft(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.ns().A(),!0)}ni(t){if(null==t||t[l.ei.qs]!==this.id)return!0;if(t[l.ei.ri])return!1;if(null!=t[l.ei.Es]&&null!=this.updated&&parseInt(t[l.ei.Es])<(0,r.UK)(this.updated.valueOf()))return!0;if(t[l.ei.ys]&&!this.viewed&&(this.viewed=!0),t[l.ei.Ls]&&!this.clicked&&(this.clicked=t[l.ei.Ls]),null!=t[l.ei.As]&&(this.title=t[l.ei.As]),null!=t[l.ei.Bs]&&(this.imageUrl=t[l.ei.Bs]),null!=t[l.ei.Ds]&&(this.description=t[l.ei.Ds]),null!=t[l.ei.Es]){let i=(0,r.Zo)(t[l.ei.Es]);null!=i&&(this.updated=i)}if(null!=t[l.ei.Fs]){let i;i=t[l.ei.Fs]===l.ui?null:(0,r.Zo)(t[l.ei.Fs]),this.expiresAt=i}if(null!=t[l.ei.URL]&&(this.url=t[l.ei.URL]),null!=t[l.ei.Gs]&&(this.linkText=t[l.ei.Gs]),null!=t[l.ei.Hs]){let i=parseFloat(t[l.ei.Hs].toString());this.aspectRatio=isNaN(i)?null:i}return null!=t[l.ei.Is]&&(this.extras=t[l.ei.Is]),null!=t[l.ei.Js]&&(this.pinned=t[l.ei.Js]),null!=t[l.ei.Ks]&&(this.dismissible=t[l.ei.Ks]),null!=t[l.ei.Ms]&&(this.language=t[l.ei.Ms]),null!=t[l.ei.Ns]&&(this.altImageText=t[l.ei.Ns]),null!=t[l.ei.Os]&&(this.test=t[l.ei.Os]),!0}qt(){o.A.error("Must be implemented in a subclass")}}l.ui=-1,l.ei={qs:"id",ys:"v",Ks:"db",ri:"r",Es:"ca",Js:"p",Fs:"ea",Is:"e",xs:"tp",Bs:"i",As:"tt",Ds:"ds",URL:"u",Gs:"dm",Hs:"ar",Ls:"cl",Os:"t",Ms:"language",Ns:"image_alt"},l.ks={zs:"captioned_image",Ei:"text_announcement",Ti:"short_news",oi:"banner_image",ai:"control"},l.bs={qs:"id",ys:"v",Ks:"db",Ii:"cr",Es:"ca",Js:"p",Ni:"t",Fs:"ea",Is:"e",xs:"tp",Bs:"i",As:"tt",Ds:"ds",URL:"u",Gs:"dm",Hs:"ar",Ls:"cl",Os:"s",Ms:"l",Ns:"ia"},l.Ai={ci:"ADVERTISING",mi:"ANNOUNCEMENTS",Si:"NEWS",Di:"SOCIAL"},l.hi=400,l.li=1e4},23801:(t,i,n)=>{"use strict";n.r(i),n.d(i,{default:()=>m});var r=n(64357),s=n(34063);let a=function(t){let i=atob((t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/")),n=new Uint8Array(i.length);for(let t=0;t<i.length;++t)n[t]=i.charCodeAt(t);return n};var o=n(5138),l=n(44341),u=n(44917),c=n(37206),d=n(79835),h=n(29213);class p{constructor(t,i,n,r,s,a,o,l,u,c,d){this.iu=t,this.eu=i,this.tu=n,this.su=s,this.ru=a,this.ou=o,this.h=l,this.nu=u,this.uu=c,this.j=d,this.iu=t,this.eu=i,this.tu=n,this.hu=r+"/safari/"+i,this.su=s||"/service-worker.js",this.ou=o,this.h=l,this.nu=u||!1,this.uu=c||!1,this.j=d,this.au=h.A.cu(),this.fu=h.A.du()}lu(){return this.uu}pu(t,i,n,r,a){t.unsubscribe().then(t=>{t?this.bu(i,n,r,a):(s.A.error("Failed to unsubscribe device from push."),"function"==typeof a&&a(!1))}).catch(t=>{s.A.error("Push unsubscription error: "+t),"function"==typeof a&&a(!1)})}mu(t,i,n){var r;let a,o=(t=>{if("string"==typeof t)return t;if(0!==t.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return t.endpoint;let i=t.endpoint;return t.gu&&-1===t.endpoint.indexOf(t.gu)&&(i=t.endpoint+"/"+t.gu),i})(t),l=null,u=null;if(null!=t.getKey)try{let i=Array.from(new Uint8Array(t.getKey("p256dh"))),n=Array.from(new Uint8Array(t.getKey("auth")));l=btoa(String.fromCharCode.apply(null,i)),u=btoa(String.fromCharCode.apply(null,n))}catch(t){s.A.error((0,d.u)(t))}let c=t.options&&(a=t.options.applicationServerKey)&&a.byteLength&&a.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(a)))).replace(/\+/g,"-").replace(/\//g,"_"):null;null==(r=this.iu)||r.yu(o,i,l,u,c),o&&"function"==typeof n&&n(o,l,u)}vu(){var t;null==(t=this.iu)||t.wu(!0)}Pu(t,i){var n;null==(n=this.iu)||n.wu(!1),s.A.info(t),"function"==typeof i&&i(!1)}
1ku(t,i,n,r){var a;if("default"===i.permission)try{window.safari.pushNotification.requestPermission(this.hu,t,{api_key:this.eu,device_id:(null==(a=this.tu)?void 0:a.Ye().id)||""},i=>{"granted"===i.permission&&this.iu&&this.iu.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.ku(t,i,n,r)})}catch(t){this.Pu("Could not request permission for push: "+t,r)}else"denied"===i.permission?this.Pu("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",r):"granted"===i.permission&&(s.A.info("Device successfully subscribed to push."),this.mu(i.deviceToken,new Date,n))}requestPermission(t,i,n){let r=r=>{switch(r){case"granted":return void("function"==typeof t&&t());case"default":return void("function"==typeof i&&i());case"denied":return void("function"==typeof n&&n());default:s.A.error("Received unexpected permission result "+r)}},a=!1;if("default"!==window.Notification.permission)r(Notification.permission);else{let t=window.Notification.requestPermission(t=>{a&&r(t)});t?t.then(t=>{r(t)}):a=!0}}bu(t,i,n,r){let a={userVisibleOnly:!0};null!=i&&(a.applicationServerKey=i),t.pushManager.subscribe(a).then(t=>{s.A.info("Device successfully subscribed to push."),this.mu(t,new Date,n)}).catch(t=>{h.A.isPushBlocked()?(s.A.info("Permission for push notifications was denied."),"function"==typeof r&&r(!1)):(s.A.error("Push subscription failed: "+t),"function"==typeof r&&r(!0))})}Du(){if(this.nu)return navigator.serviceWorker.getRegistration(this.su);let t=this.ru?{scope:this.ru}:void 0;return navigator.serviceWorker.register(this.su,t).then(()=>navigator.serviceWorker.ready.then(t=>(t&&"function"==typeof t.update&&t.update().catch(t=>{s.A.info("ServiceWorker update failed: "+t)}),t)))}Su(t){this.nu||(t.unregister(),s.A.info("Service worker successfully unregistered."))}subscribe(t,i){if(!h.A.isPushSupported())return s.A.info(p.Au),void("function"==typeof i&&i(!1));if(this.au){if(!this.nu&&null!=window.location){let t=this.su;-1===t.indexOf(window.location.host)&&(t=window.location.host+t),-1===t.indexOf(window.location.protocol)&&(t=window.location.protocol+"//"+t)}if(h.A.isPushBlocked())return void this.Pu("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",i);if(this.h&&!this.h.Wu()&&0===this.h.Qt())return s.A.info("Waiting for VAPID key from server config before subscribing to push."),void this.h.ju(()=>{this.subscribe(t,i)});let n=h.A.isPushPermissionGranted(),r=()=>{!n&&this.iu&&this.iu.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Nu(t,i)};this.requestPermission(r,()=>{let t="Permission for push notifications was ignored.";h.A.isPushBlocked()&&(t+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),s.A.info(t),"function"==typeof i&&i(!0)},()=>{s.A.info("Permission for push notifications was denied."),"function"==typeof i&&i(!1)})}else if(this.fu){if(null==this.ou||""===this.ou)return s.A.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof i&&i(!0));let n=window.safari.pushNotification.permission(this.ou);this.ku(this.ou,n,t,i)}}registerPush(t,i){if(!h.A.isPushSupported())return s.A.info(p.Au),void("function"==typeof i&&i(!1));if(this.au){if(h.A.isPushBlocked())return void this.Pu("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",i);if(this.h&&!this.h.Wu()&&0===this.h.Qt())return s.A.info("Waiting for VAPID key from server config before registering push."),void this.h.ju(()=>{this.registerPush(t,i)});if(!h.A.isPushPermissionGranted())return void s.A.info("Push permission has not been granted, so registerPush is a no-op. Call requestPushPermission to prompt the user for permission.");this.Nu(t,i)}else if(this.fu){if(null==this.ou||""===this.ou)return s.A.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof i&&i(!0));let n=window.safari.pushNotification.permission(this.ou);"granted"===n.permission?this.ku(this.ou,n,t,i):"denied"===n.permission?this.Pu("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",i):s.A.info("Push permission has not been granted, so registerPush is a no-op. Call requestPushPermission to prompt the user for permission.")}}Nu(t,i){this.Du().then(n=>
1{null==n?(s.A.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),"function"==typeof i&&i(!0)):n.pushManager.getSubscription().then(r=>{var u;let d=null;if(null!=(null==(u=this.h)?void 0:u.Wu())&&(d=a(this.h.Wu())),r){let a,u=null,h=null;if(this.j&&(a=this.j.St(o.d.It.xu)),a&&!(0,c.cy)(a)){let t;try{t=l.A._u(a).Uu}catch(i){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(h=new Date(u=t)).setMonth(u.getMonth()+6)}null!=d&&r.options&&r.options.applicationServerKey&&r.options.applicationServerKey.byteLength&&r.options.applicationServerKey.byteLength>0&&!(0,c.n4)(d,new Uint8Array(r.options.applicationServerKey))?(r.options.applicationServerKey.byteLength>12?s.A.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):s.A.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.pu(r,n,d,t,i)):r.expirationTime&&new Date(r.expirationTime).valueOf()<=new Date().valueOf()?(s.A.info("Push subscription is expired, creating new subscription."),this.pu(r,n,d,t,i)):a&&(0,c.cy)(a)?this.pu(r,n,d,t,i):null==h?(s.A.info("No push subscription creation date found, creating new subscription."),this.pu(r,n,d,t,i)):h.valueOf()<=new Date().valueOf()?(s.A.info("Push subscription older than 6 months, creating new subscription."),this.pu(r,n,d,t,i)):(s.A.info("Device already subscribed to push, sending existing subscription to backend."),this.mu(r,u,t))}else this.bu(n,d,t,i)}).catch(t=>{s.A.error("Error checking current push subscriptions: "+t)})}).catch(t=>{s.A.error("ServiceWorker registration failed: "+t)})}unsubscribe(t,i){h.A.isPushSupported()?this.au?navigator.serviceWorker.getRegistration(this.su).then(n=>{n?n.pushManager.getSubscription().then(r=>{r?(this.vu(),r.unsubscribe().then(r=>{r?(s.A.info("Device successfully unsubscribed from push."),"function"==typeof t&&t()):(s.A.error("Failed to unsubscribe device from push."),"function"==typeof i&&i()),this.Su(n)}).catch(t=>{s.A.error("Push unsubscription error: "+t),"function"==typeof i&&i()})):(s.A.info("Device already unsubscribed from push."),"function"==typeof t&&t())}).catch(t=>{s.A.error("Error unsubscribing from push: "+t),"function"==typeof i&&i()}):(s.A.info("Device already unsubscribed from push."),"function"==typeof t&&t())}):this.fu&&(this.vu(),s.A.info("Device unsubscribed from push."),"function"==typeof t&&t()):(s.A.info(p.Au),"function"==typeof t&&t())}}p.Au="Push notifications are not supported in this browser.";let f={i:!1,na:null,ra:()=>(f.t(),f.na||(f.na=new p(r.Ay.zr(),r.Ay.Fa(),r.Ay.Ie(),r.Ay.ht(),r.Ay.er(r.lw.Ha),r.Ay.er(r.lw.Ka),r.Ay.er(r.lw.La),r.Ay.l(),r.Ay.er(r.lw.Na),r.Ay.er(r.lw.Oa),r.Ay.p())),f.na),t:()=>{f.i||(r.Ay.g(f),f.i=!0)},destroy:()=>{f.na=null,f.i=!1}},m=f},24733:(t,i,n)=>{"use strict";n.d(i,{Gq:()=>u,T$:()=>l,q0:()=>o});var r=n(86700),s=n(33399),a=n(31064);let o=15e3,l=(t,i)=>{var n;if(i&&t&&(0,r.ub)(t)&&t.paidType&&(n=t.paidType,t.shareUrl&&(n===a.H.archived||n===a.H.archivedPaid||n===a.H.dynamicPaywall||n===a.H.edition||n===a.H.paid||n===a.H.paidNoIndicator)))return!0},u=(t,i)=>i!==s.OD.Android||(null==t?void 0:t.appType)==="instant"||(null==t?void 0:t.isGoogleAccountAllowedToSubscribe)},25562:(t,i,n)=>{"use strict";n.d(i,{Ne:()=>a,uJ:()=>o,wu:()=>s});var r=n(34063);function s(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"}function a(t){let i=t.length;for(let n=t.length-1;n>=0;n--){let r=t.charCodeAt(n);r>127&&r<=2047?i++:r>2047&&r<=65535&&(i+=2),r>=56320&&r<=57343&&n--}return i}function o(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");let i=window.atob(t),n=new Uint8Array(i.length);for(let t=0;t<i.length;t++)n[t]=i.charCodeAt(t);let r=new Uint16Array(n.buffer);return String.fromCharCode(...r)}catch(t){return r.A.error("Unable to decode Base64: "+t),null}}},26578:(t,i,n)=>{"use strict";n.r(i),n.d(i,{changeUser:()=>u});var r=n(64357),s=n(25562),a=n(34063),o=n(44917),l=n(41232);function u(t,i){if(!r.Ay.rr())return;if(null==t||0===t.length||t!=t)return void a.A.error("changeUser requires a non-empty userId.");if((0,s.Ne)(t)>o.A.Ur)return void a.A.error(`Rejected user id "${t}" because it is longer than ${o.A.Ur} bytes.`);if(null!=i&&!(0,l.rK)(i,"set signature for new user","signature"))return;let n=r.Ay.nn();n&&n.changeUser(t.toString(),r.Ay.$r(),i)}},28005:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});let r={OPEN:"open",Nr:"purchase",Ar:"push_click",Be:"custom_event",rm:"iam_click",Os:"test"}},29213:(t,i,n)=>{"use strict";n.d(i,{A:()=>s});let r={cu:()=>
1"serviceWorker"in navigator&&"u">typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,du:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>r.cu()||r.du(),isPushBlocked:()=>{let t=r.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,i=r.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||i},isPushPermissionGranted:()=>r.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,va:()=>r.isPushBlocked()?{ba:!1,reason:"blocked"}:r.isPushSupported()?r.isPushPermissionGranted()?{ba:!1,reason:"permissionGranted"}:{ba:!0}:{ba:!1,reason:"unsupported"},Ia:(t,i)=>"blocked"===t?`${i} containing a push prompt is not being shown because the user has already declined push permission prompt.`:"unsupported"===t?`${i} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${i} containing a push prompt is not being shown because the user has already accepted the permission prompt.`},s=r},29429:(t,i,n)=>{"use strict";var r=n(14232),s="function"==typeof Object.is?Object.is:function(t,i){return t===i&&(0!==t||1/t==1/i)||t!=t&&i!=i},a=r.useState,o=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function c(t){var i=t.getSnapshot;t=t.value;try{var n=i();return!s(t,n)}catch(t){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,i){return i()}:function(t,i){var n=i(),r=a({inst:{value:n,getSnapshot:i}}),s=r[0].inst,d=r[1];return l(function(){s.value=n,s.getSnapshot=i,c(s)&&d({inst:s})},[t,n,i]),o(function(){return c(s)&&d({inst:s}),t(function(){c(s)&&d({inst:s})})},[t]),u(n),n};i.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},29454:(t,i,n)=>{"use strict";function r(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var r in n)"__proto__"!==r&&(t[r]=n[r])}return t}n.d(i,{A:()=>s});var s=function t(i,n){function s(t,s,a){if("u">typeof document){"number"==typeof(a=r({},n,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var l in a)a[l]&&(o+="; "+l,!0!==a[l]&&(o+="="+a[l].split(";")[0]));return document.cookie=t+"="+i.write(s,t)+o}}return Object.create({set:s,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},s=0;s<n.length;s++){var a=n[s].split("="),o=a.slice(1).join("=");try{var l=decodeURIComponent(a[0]);if(l in r||(r[l]=i.read(o,l)),t===l)break}catch(t){}}return t?r[t]:r}},remove:function(t,i){s(t,"",r({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,r({},this.attributes,i))},withConverter:function(i){return t(r({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(i)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},30049:(t,i,n)=>{"use strict";n.d(i,{Dy:()=>s,IM:()=>r,Tx:()=>a,jK:()=>o});let r=375,s=576,a=768,o=980},30354:(t,i,n)=>{"use strict";n.d(i,{A:()=>s});var r=n(23486);class s extends r.A{constructor(t,i,n,r,s,a){super(t,i,null,null,null,n,r,null,null,null,s,a),this.isControl=!0,this.ae="ab-control-card",this.oe=!1}qt(){let t={};return t[r.A.bs.xs]=r.A.ks.ai,t[r.A.bs.qs]=this.id,t[r.A.bs.ys]=this.viewed,t[r.A.bs.Es]=this.updated,t[r.A.bs.Fs]=this.expiresAt,t[r.A.bs.Is]=this.extras,t[r.A.bs.Js]=this.pinned,t[r.A.bs.Os]=this.test,t}}},30952:(t,i,n)=>{"use strict";n.d(i,{J:()=>a});var r=n(64357),s=n(42087);function a(t,i){if(r.Ay.rr())return s.A.o().lr(t,i,"client")}},31064:(t,i,n)=>{"use strict";n.d(i,{H:()=>r});let r={archived:"archived",archivedPaid:"archived-paid",free:"free",paid:"paid",paidNoIndicator:"paid-no-indicator",edition:"edition",metered:"metered",authenticated:"authenticated",dynamicPaywall:"dynamic-paywall"}},32037:(t,i,n)=>{"use strict";n.d(i,{d:()=>a});var r=n(44304);let s=t=>.1*Math.pow(2,t-1)*1e3,a=async t=>{let{url:i,requestOptions:n,timeout:r,rawText:a,maxRetries:l=0,incrementalTimeout:u}=t;return o({url:i,requestOptions:n,retriesLeft:l,timeout:r,rawText:a,incrementalTimeout:u,retryDelay:s,currentRetryAttempt:0})},o=async t=>{let{url:i,requestOptions:n={},retriesLeft:s,timeout:a,rawText:l,incrementalTimeout:u,retryDelay:c,currentRetryAttempt:d}=t;
1try{let t=await (0,r.u9)(i,{headers:{Accept:"application/json"},...n},a);if(!t.ok)throw{status:t.status,description:"Failed to to fetch url ".concat(i," with status ").concat(t.status)};if(l)return await t.text();try{return await t.json()}catch(t){throw SyntaxError("JSON parsing failed: ".concat(t instanceof Error?t.message:String(t)),{cause:t})}}catch(h){let t;if(0===s)return Promise.reject(h);let r=d+1;return await (t=c(r),new Promise(i=>{setTimeout(i,t)})),o({url:i,requestOptions:n,retriesLeft:s-1,timeout:u&&a?a+15e3:a,rawText:l,incrementalTimeout:void 0,retryDelay:c,currentRetryAttempt:r})}}},33399:(t,i,n)=>{"use strict";n.d(i,{AF:()=>o,OD:()=>s,g6:()=>r,jL:()=>a});let r={pageNotFound:"page-not-found",redirect:"redirect",unhandledError:"unhandled-error",pageRender:"page-render",clientSideRender:"client-side-render"},s={Web:"web",Android:"android",iOS:"ios"},a={Disabled:"Disabled",UseWebAdScript:"UseWebAdScript",UseMobileAdScript:"UseMobileAdScript"},o={Web:"web",MobileApps:"mobile-apps",Shopping:"shopping"}},33865:(t,i,n)=>{"use strict";n.d(i,{z:()=>s});var r=n(34063);class s{constructor(t){this.properties=t,this.properties=t||{}}tp(t,i,n){let r=this.properties[t];return null==r?(this.rp(t),null):i(r)?r.value:(this.ep(n),null)}getStringProperty(t){return this.tp(t,this.op,"string")}getNumberProperty(t){return this.tp(t,this.sp,"number")}getBooleanProperty(t){return this.tp(t,this.ip,"boolean")}getImageProperty(t){return this.tp(t,this.np,"image")}getJsonProperty(t){return this.tp(t,this.pp,"jsonobject")}getTimestampProperty(t){return this.tp(t,this.up,"datetime")}ep(t){r.A.info(`Property is not of type ${t}.`)}rp(t){r.A.info(`${t} not found in properties.`)}op(t){return"string"===t.type&&"string"==typeof t.value}sp(t){return"number"===t.type&&"number"==typeof t.value}ip(t){return"boolean"===t.type&&"boolean"==typeof t.value}np(t){return"image"===t.type&&"string"==typeof t.value}pp(t){return"jsonobject"===t.type&&"object"==typeof t.value&&t.value.constructor==Object}up(t){return"datetime"===t.type&&"number"==typeof t.value}}},33954:(t,i,n)=>{"use strict";n.r(i),n.d(i,{default:()=>l,refreshFeatureFlags:()=>o});var r=n(64357),s=n(8464);function a(t,i,n=!1){if(r.Ay.rr())return s.A.o().refreshFeatureFlags(t,i,n)}function o(t,i){a(t,i)}let l=a},34063:(t,i,n)=>{"use strict";n.d(i,{A:()=>s});let r={init:function(t){void 0===t&&void 0!==r.zg||(r.zg=!!t),r.i||(r.i=!0)},destroy:function(){r.i=!1,r.zg=void 0,r.df=void 0},setLogger:function(t){"function"==typeof t?(r.init(),r.df=t):r.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){r.init(),r.zg?(console.log("Disabling Braze logging"),r.zg=!1):(console.log("Enabled Braze logging"),r.zg=!0)},info:function(t){if(r.zg){let i="Braze: "+t;null!=r.df?r.df(i):console.log(i)}},warn:function(t){if(r.zg){let i="Braze SDK Warning: "+t+" (v6.13.0)";null!=r.df?r.df(i):console.warn(i)}},error:function(t){if(r.zg){let i="Braze SDK Error: "+t+" (v6.13.0)";null!=r.df?r.df(i):console.error(i)}}},s=r},34950:(t,i,n)=>{"use strict";n.d(i,{BG:()=>o,BU:()=>d,JK:()=>l,Jx:()=>a,RX:()=>c,SJ:()=>u,o6:()=>r});let r=t=>!("object"!=typeof t||null===t||Array.isArray(t))&&Object.entries(t).every(t=>{let[i,n]=t;return"string"==typeof i&&s(n)}),s=t=>Array.isArray(t)&&t.every(t=>"number"==typeof t),a=t=>!!t&&("Advertorial"===t.resourceType||"Article"===t.resourceType),o=t=>!!t&&"Article"===t.resourceType,l=t=>!!t&&"Audio"===t.resourceType,u=t=>!!t&&("Article"===t.resourceType||"SportLiveArticle"===t.resourceType),c=t=>!!t&&"Advertorial"===t.resourceType,d=t=>"standard"===t.itemType&&("advertorial"===t.theme||"advertorial_right_lane"===t.theme)},35990:(t,i,n)=>{"use strict";n.d(i,{AI:()=>l,Xv:()=>o});var r=n(78101);let s="sndp-auto-welcome-back-rejections",a=()=>{var t;return null!=(t=r.s.getJSON(s))?t:[]},o=()=>{let t=a();r.s.setJSON(s,[...t,Date.now()])},l=()=>{let t=a();return 0!==t.length&&Math.max(...t)+15552e6<Date.now()?(r.s.removeItem(s),!0):t.length<3?Math.max(...t)+6048e5<Date.now():t.length<6?Math.max(...t)+12096e5<Date.now():t.length<9&&Math.max(...t)+2592e6<Date.now()}},36078:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.canUseDOM=i.SafeNodeList=i.SafeHTMLCollection=void 0;var r,s=((r=n(78755))&&r.__esModule?r:{default:r}).default,a=s.canUseDOM?window.HTMLElement:{};i.SafeHTMLCollection=s.canUseDOM?window.HTMLCollection:{},i.SafeNodeList=s.canUseDOM?window.NodeList:{},i.canUseDOM=s.canUseDOM,i.default=a},36893:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.resetState=function(){a=[]},i.log=function(){},i.handleBlur=u,i.handleFocus=c,i.markForFocusLater=function(){a.push(document.activeElement)},i.returnFocus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=null;try{0!==a.length&&(i=a.pop()).focus({preventScroll:t});return}catch(t){console.warn(["You tried to return focus to",i,"but it is not in the DOM anymore"].join(" "))}},i.popWithoutFocus=function(){a.length>0&&a.pop()},i.setupScopedFocus=function(t){o=t,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},i.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,s=(r=n(77289))&&r.__esModule?r:{default:r},a=[],o=null,l=!1;function u(){l=!0}function c(){l&&(l=!1,o&&setTimeout(function(){o.contains(document.activeElement)||((0,s.default)(o)[0]||o).focus()},0))}},36994:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=n(79921),s=n(5138);let a={it:{Jh:"data",Mi:"content_cards/sync",jo:"feature_flags/sync",Da:"template",st:"banners/sync",Xa:"push/unregister",Bn:"conversational_chat/config",$n:"conversational_chat/message"},sd:t=>null==t?void 0:t.St(s.d.It.lS),qm:t=>null==t?void 0:t.St(s.d.It._S),Om:(t,i)=>{null==t||t.Pt(s.d.It.lS,i)},Gm:(t,i)=>{null==t||t.Pt(s.d.It._S,i)},zc:(t,i)=>{if(!t||!i)return -1;let n=a.sd(t);if(null==n)return -1;let r=n[i];return null==r||isNaN(r)?-1:r},Xc:(t,i)=>{let n=r.et;if(!t||!i)return n;let s=a.qm(t);return null==s?n:null==(n=s[i])||isNaN(n)?r.et:n},nt:(t,i,n)=>{if(!t||!i)return;let r=a.sd(t);null==r&&(r={}),r[i]=n,a.Om(t,r)},$c:(t,i,n)=>{if(!t||!i)return;let r=a.qm(t);null==r&&(r={}),r[i]=n,a.Gm(t,r)},Ji:(t,i)=>{t&&i&&a.$c(t,i,r.et)},Oc:(t,i)=>{if(!t||!i)return;let n=a.Xc(t,i);a.$c(t,i,n+1)}},o=a},37156:(t,i,n)=>{"use strict";n.d(i,{E:()=>g});var r=n(27964),s=n(89099),a=n.n(s),o=n(14232),l=n(56840),u=n(53243);let c=t=>(0,u.s)(t)[0];var d=n(52333),h=n(88869);let p=new Map,f=!1,m=()=>{if(!(0,h.dS)())for(let t of p.values())t()},g=(t,i,n)=>{let s,u,h,g,b,v,y,w=(0,r.c)(15);w[0]!==n?(s=null!=n?n:{},w[0]=n,w[1]=s):s=w[1],w[2]!==s?({enabled:g,revalidateOnFreshNavigation:u,...h}
1=s,w[2]=s,w[3]=u,w[4]=h,w[5]=g):(u=w[3],h=w[4],g=w[5]);let A=void 0===g||g,{cache:S}=(0,l.iX)();if(w[6]!==S||w[7]!==A||w[8]!==t){var _;b=A||null===t||null==(_=S.get(c(t)))?void 0:_.data,w[6]=S,w[7]=A,w[8]=t,w[9]=b}else b=w[9];let E=b;return w[10]!==t?(v=t?c(t):null,w[10]=t,w[11]=v):v=w[11],((t,i)=>{let n,s,u=(0,r.c)(6),{mutate:c,cache:d}=(0,l.iX)();u[0]!==d||u[1]!==i||u[2]!==c||u[3]!==t?(n=()=>{if(i&&null!==t)return f||(f=!0,a().events.on("routeChangeComplete",m)),p.set(t,()=>{var i;null!=(i=d.get(t))&&i.isValidating||c(t)}),()=>{p.delete(t)}},s=[i,t,c,d],u[0]=d,u[1]=i,u[2]=c,u[3]=t,u[4]=n,u[5]=s):(n=u[4],s=u[5]),(0,o.useEffect)(n,s)})(v,null!=u&&u),w[12]!==E||w[13]!==h?(y={revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,fallbackData:E,...h},w[12]=E,w[13]=h,w[14]=y):y=w[14],(0,d.u)(A?t:null,i,y)}},37206:(t,i,n)=>{"use strict";n.d(i,{$P:()=>l,BY:()=>a,Gv:()=>u,HP:()=>c,cy:()=>o,n4:()=>function t(i,n){if(i===n)return 0!==i||1/i==1/n;if(null==i||null==n)return i===n;let r=i.toString();if(r!==n.toString())return!1;switch(r){case"[object RegExp]":case"[object String]":return""+i==""+n;case"[object Number]":return+i!=+i?+n!=+n:0==+i?1/i==1/n:+i==+n;case"[object Date]":case"[object Boolean]":return+i==+n}let s="[object Array]"===r;if(!s){if("object"!=typeof i||"object"!=typeof n)return!1;let t=i.constructor,r=n.constructor;if(t!==r&&!("function"==typeof t&&t instanceof t&&"function"==typeof r&&r instanceof r)&&"constructor"in i&&"constructor"in n)return!1}let a=[],o=[],l=a.length;for(;l--;)if(a[l]===i)return o[l]===n;if(a.push(i),o.push(n),s){if((l=i.length)!==n.length)return!1;for(;l--;)if(!t(i[l],n[l]))return!1}else{let r,s=c(i);if(l=s.length,c(n).length!==l)return!1;for(;l--;)if(r=s[l],!Object.prototype.hasOwnProperty.call(n,r)||!t(i[r],n[r]))return!1}return a.pop(),o.pop(),!0},zu:()=>s});var r=n(34063);function s(t){let i=[];for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&void 0!==t[n]&&i.push(t[n]);return i}function a(t,i,n,a){let o=s(t);return -1!==o.indexOf(i)||(r.A.error(`${n} Valid values from ${a} are "${o.join('"/"')}".`),!1)}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function l(t){return"[object Date]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){let i=[];for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.push(n);return i}},38679:(t,i,n)=>{"use strict";let r;n.d(i,{d:()=>o});var s=n(14232);let a=new Set,o=()=>(0,s.useSyncExternalStore)(l,d,h),l=t=>(a.add(t),1===a.size&&window.addEventListener("deviceUserDataEvent",u),()=>{a.delete(t),0===a.size&&window.removeEventListener("deviceUserDataEvent",u)}),u=t=>{r=t.detail,c()},c=()=>{for(let t of a)t()},d=()=>r,h=()=>{}},38745:(t,i,n)=>{"use strict";n.r(i),n.d(i,{logCustomEvent:()=>h});var r=n(64357),s=n(55679),a=n(34063),o=n(82793),l=n(28005),u=n(9848),c=n(41232),d=n(79921);function h(t,i){if(!r.Ay.rr())return!1;if(null==t||t.length<=0)return a.A.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!(0,c.Dz)(t,"log custom event","the event name"))return!1;let[n,h]=(0,c.fB)(i,d.em.$e,"eventProperties",`log custom event "${t}"`,"event");if(!n)return!1;let p=r.Ay.l();if(p&&p.Le(t))return a.A.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;let f=s.A.Dt(o.w.CustomEvent,{n:t,p:h});if(f.lt)for(let n of(a.A.info(`Logged custom event "${t}".`),f.Ne))u.B.o().Pe(l.A.Be,[t,i],n);return f.lt}},38806:(t,i,n)=>{"use strict";t.exports=n(29429)},39149:(t,i,n)=>{var r=0/0,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return h.Date.now()};function b(t){var i=typeof t;return!!t&&("object"==i||"function"==i)}function v(t){if("number"==typeof t)return t;if("symbol"==typeof(i=t)||i&&"object"==typeof i&&"[object Symbol]"==p.call(i))return r;if(b(t)){var i,n="function"==typeof t.valueOf?t.valueOf():t;t=b(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var c=o.test(t);return c||l.test(t)?u(t.slice(2),c?2:8):a.test(t)?r:+t}t.exports=function(t,i,n){var r,s,a,o,l,u,c=0,d=!1,h=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(i){var n=r,a=s;return r=s=void 0,c=i,o=t.apply(a,n)}function w(t){var n=t-u,r=t-c;return void 0===u||n>=i||n<0||h&&r>=a}function A(){var t,n,r,s=g();if(w(s))return S(s);l=setTimeout(A,(t=s-u,n=s-c,r=i-t,h?m(r,a-n):r))}function S(t){return(l=void 0,p&&r)?y(t):(r=s=void 0,o)}function _(){var t,n=g(),a=w(n);if(r=arguments,s=this,u=n,a){if(void 0===l)return c=t=u,l=setTimeout(A,i),d?y(t):o;if(h)return l=setTimeout(A,i),y(u)}return void 0===l&&(l=setTimeout(A,i)),o}return i=v(i)||0,b(n)&&(d=!!n.leading,a=(h="maxWait"in n)?f(v(n.maxWait)||0,i):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=u=s=l=void 0},_.flush=function(){return void 0===l?o:S(g())},_}},39721:(t,i,n)=>{"use strict";n.r(i),n.d(i,{requestPushPermission:()=>a});var r=n(64357),s=n(23801);function a(t,i){if(r.Ay.rr())return s.default.ra().subscribe((i,n,s)=>{let a=r.Ay.nn();a&&a.requestImmediateDataFlush(),"function"==typeof t&&t(i,n,s)},i)}},40492:(t,i,n)=>{"use strict";n.d(i,{T:()=>h,f:()=>d});var r=n(37876),s=n(27964),a=n(17924),o=n(62498),l=n(14232),u=n(63593);let c=(0,l.createContext)(null),d=t=>{let i,n,d,h,p,f,m=(0,s.c)(10),{children:g}=t,{useInkBridge:b}=(0,u.g$)(),[v,y]=(0,l.useState)(void 0);m[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{y(window.inkAppFontScale)},n=[],m[0]=i,m[1]=n):(i=m[0],n=m[1]),(0,l.useEffect)(i,n),m[2]!==b?(d=()=>
1{if(!b)return;let t=t=>{var i;y(null==(i=t.detail)?void 0:i.fontScale)};return(0,a.yb)(o.mB.SetFontScale,t),()=>{(0,a.Bv)(o.mB.SetFontScale,t)}},h=[b],m[2]=b,m[3]=d,m[4]=h):(d=m[3],h=m[4]),(0,l.useEffect)(d,h),m[5]!==v?(p={fontScale:v},m[5]=v,m[6]=p):p=m[6];let w=p;return m[7]!==g||m[8]!==w?(f=(0,r.jsx)(c,{value:w,children:g}),m[7]=g,m[8]=w,m[9]=f):f=m[9],f},h=()=>{let t=(0,l.useContext)(c);if(!t)throw Error("useInkFontScale must be used within <InkFontScaleProvider />");return t}},40814:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});let r={de:function(){if("u">typeof window&&window.crypto){if("function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if("function"==typeof window.crypto.getRandomValues)try{let t=new Uint8Array(16);window.crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let i=Array.from(t,t=>("0"+t.toString(16)).slice(-2));return[i.slice(0,4).join(""),i.slice(4,6).join(""),i.slice(6,8).join(""),i.slice(8,10).join(""),i.slice(10,16).join("")].join("-")}catch(t){}}let t=(t=!1)=>{let i=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+i.substr(0,4)+"-"+i.substr(4,4):i};return t()+t(!0)+t(!0)+t()}}},41116:(t,i,n)=>{"use strict";var r;Object.defineProperty(i,"__esModule",{value:!0}),i.default=((r=n(47514))&&r.__esModule?r:{default:r}).default,t.exports=i.default},41232:(t,i,n)=>{"use strict";n.d(i,{B9:()=>_,Dz:()=>b,L4:()=>x,To:()=>k,Z2:()=>S,ZJ:()=>v,fB:()=>A,nx:()=>m,rK:()=>w,uZ:()=>y,xs:()=>E});var r=n(37206),s=n(25562),a=n(34063),o=n(95315),l=n(59045),u=n(64357),c=n(79921);let d=/^[^\x00-\x1F\x22]+$/,h=/[$.]/,p=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],f=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,m=/^brazeActions:\/\/v\d+\//,g=/^[^\s]+$/;function b(t,i,n){let r=null!=t&&"string"==typeof t&&(""===t||null!=t.match(d));return r||a.A.error(`Cannot ${i} because ${n} "${t}" is invalid.`),r}function v(t){return null!=t&&t.match(h)&&-1===p.indexOf(t)&&a.A.warn("Custom attribute keys cannot contain '$' or '.'"),b(t,"set custom user attribute","the given key")}function y(t){let i=typeof t;return null==t||"number"===i||"boolean"===i||(0,r.$P)(t)||"string"===i}function w(t,i,n,r=!1){let s="string"==typeof t||null===t&&r;return s||a.A.error(`Cannot ${i} because ${n} "${t}" is invalid.`),s}function A(t,i,n,l,u){let d,h,p;if(null==t&&(t={}),"object"!=typeof t||(0,r.cy)(t))return a.A.error(`${i} requires that ${n} be an object. Ignoring ${u}.`),[!1,null];i===c.em.Mu?(d=76800,h="75KB"):(d=51200,h="50KB");let f=JSON.stringify(t);if((0,s.Ne)(f)>d)return a.A.error(`Could not ${l} because ${n} was greater than the max size of ${h}.`),[!1,null];try{p=JSON.parse(f)}catch(t){return a.A.error(`Could not ${l} because ${n} did not contain valid JSON.`),[!1,null]}for(let n in t){if(i===c.em.Mu&&!v(n)||!b(n,l,`the ${u} property name`))return[!1,null];let s=t[n];if(i!==c.em.Mu&&null==s){delete t[n],delete p[n];continue}if((0,r.$P)(s)&&(p[n]=(0,o.EQ)(s)),!function(t,i,n,s,l){let u;return(u=(0,r.Gv)(t)||(0,r.cy)(t)?function t(i,n,s){let l=-1!==s;if(l&&s>50)return a.A.error("Nested attributes cannot be more than 50 levels deep."),!1;let u=l?s+1:-1;if((0,r.cy)(i)&&(0,r.cy)(n)){for(let s=0;s<i.length&&s<n.length;s++)if((0,r.$P)(i[s])&&(n[s]=(0,o.EQ)(i[s])),!t(i[s],n[s],u))return!1}else{if(!(0,r.Gv)(i))return y(i);for(let s of(0,r.HP)(i)){let a=i[s];if(l&&!v(s)||((0,r.$P)(a)&&(n[s]=(0,o.EQ)(a)),!t(a,n[s],u)))return!1}}return!0}(t,i,l?1:-1):y(t))||a.A.error(`Cannot ${n} because ${s} "${t}" is invalid.`),u}(s,p[n],l,`the ${u} property "${n}"`,i===c.em.Mu))return[!1,null]}return[!0,p]}function S(t,i){let n=!1,s=!1,o=()=>{a.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let a of i)if("string"==typeof a){if(s)return o(),[!1,!1];if(!b(a,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];n=!0}else{if(!(0,r.Gv)(a)||n)return o(),[!1,!1];if(!A(a,c.em.Mu,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];s=!0}return[n,s]}function _(t){if("string"!=typeof t)return!1;let i=t.length;return!(0===i||i>256)&&f.test(t.toLowerCase())}function E(t){if(!(l.V.properties.type in t))return!1;let i=t[l.V.properties.type];switch(i){case l.V.types.io:if(l.V.properties.eo in t)return!0;break;case l.V.types.logCustomEvent:case l.V.types.setEmailNotificationSubscriptionType:case l.V.types.setPushNotificationSubscriptionType:case l.V.types.setCustomUserAttribute:case l.V.types.addToSubscriptionGroup:case l.V.types.removeFromSubscriptionGroup:case l.V.types.addToCustomAttributeArray:case l.V.types.removeFromCustomAttributeArray:case l.V.types.co:case l.V.types.mo:if(l.V.properties.so in t)return!0;break;case l.V.types.requestPushPermission:return!0;default:{let n=u.Ay.br();return null!=n&&n.dl(i)&&l.V.properties.so in t}}return!1}function k(t){let i=!1;
1if(Object.keys(l.V.types).forEach(n=>{l.V.types[n]!==t.toString()||(i=!0)}),!i){let n=u.Ay.br();null!=n&&n.dl(t)&&(i=!0)}return i}function x(t){return g.test(t)}},41362:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});let r={newNavbarIS:!1,coloredAddressBars:!1,semanticSearchPrototypingEnabled:!1,groupLaneItemEnabled:!1,removeOnlyLoginHashAfterReturningFromLoginHS:!1,loadBrazeInMobile:!1,iOSSmartAppBannerMetaTagsEnabledHS:!1,iOSSmartAppBannerMetaTagsEnabledIS:!1,urheiluLivePageEnabledIS:!0,useMainVideoPreview:!1,giftArticlesEnabled:!1,hideAdvertorialsForCopSubscribers:!0,enableNestedThreads:!0,useMiniplayerPageUrl:!0,compactWeatherWidgetSK:!1,removeCommentCountParentheses:!1,teaserCommentCountEnabled:{al:!0},followUpQuestionsEnabled:{is:!0},copEnabled:{}}},42087:(t,i,n)=>{"use strict";n.d(i,{A:()=>C});var r=n(64357),s=n(48930),a=n(55617),o=n(30354),l=n(81761),u=n(46151),c=n(30952);class d{constructor(t,i){this.cards=t,this.lastUpdated=i,this.cards=t,this.lastUpdated=i}getUnviewedCardCount(){let t=0;for(let i of this.cards)i.viewed||i instanceof o.A||t++;return t}ur(t){(0,l.a)(t)}cr(t){return(0,u.K)(t)}Cr(){(0,c.J)()}hr(){return!0}}d.mr=6e4,d.gr=500,d.jr=1e4;var h=n(95315),p=n(54924),f=n(23486);class m extends f.A{constructor(t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g){super(t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g),this.ae="ab-classic-card",this.oe=!0}qt(){let t={};return t[f.A.bs.xs]=f.A.ks.Ti,t[f.A.bs.qs]=this.id,t[f.A.bs.ys]=this.viewed,t[f.A.bs.As]=this.title,t[f.A.bs.Bs]=this.imageUrl,t[f.A.bs.Ds]=this.description,t[f.A.bs.Es]=this.updated,t[f.A.bs.Fs]=this.expiresAt,t[f.A.bs.URL]=this.url,t[f.A.bs.Gs]=this.linkText,t[f.A.bs.Hs]=this.aspectRatio,t[f.A.bs.Is]=this.extras,t[f.A.bs.Js]=this.pinned,t[f.A.bs.Ks]=this.dismissible,t[f.A.bs.Ls]=this.clicked,t[f.A.bs.Ms]=this.language,t[f.A.bs.Ns]=this.altImageText,t[f.A.bs.Os]=this.test,t}}class g extends f.A{constructor(t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g){super(t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g),this.ae="ab-captioned-image",this.oe=!0,this.test=!1}qt(){let t={};return t[f.A.bs.xs]=f.A.ks.zs,t[f.A.bs.qs]=this.id,t[f.A.bs.ys]=this.viewed,t[f.A.bs.As]=this.title,t[f.A.bs.Bs]=this.imageUrl,t[f.A.bs.Ds]=this.description,t[f.A.bs.Es]=this.updated,t[f.A.bs.Fs]=this.expiresAt,t[f.A.bs.URL]=this.url,t[f.A.bs.Gs]=this.linkText,t[f.A.bs.Hs]=this.aspectRatio,t[f.A.bs.Is]=this.extras,t[f.A.bs.Js]=this.pinned,t[f.A.bs.Ks]=this.dismissible,t[f.A.bs.Ls]=this.clicked,t[f.A.bs.Ms]=this.language,t[f.A.bs.Ns]=this.altImageText,t[f.A.bs.Os]=this.test,t}}class b extends f.A{constructor(t,i,n,r,s,a,o,l,u,c,d,h,p){super(t,i,null,n,null,r,s,a,null,o,l,u,c,d,h,p),this.ae="ab-image-only",this.oe=!1,this.test=!1}qt(){let t={};return t[f.A.bs.xs]=f.A.ks.oi,t[f.A.bs.qs]=this.id,t[f.A.bs.ys]=this.viewed,t[f.A.bs.Bs]=this.imageUrl,t[f.A.bs.Es]=this.updated,t[f.A.bs.Fs]=this.expiresAt,t[f.A.bs.URL]=this.url,t[f.A.bs.Hs]=this.aspectRatio,t[f.A.bs.Is]=this.extras,t[f.A.bs.Js]=this.pinned,t[f.A.bs.Ks]=this.dismissible,t[f.A.bs.Ls]=this.clicked,t[f.A.bs.Ms]=this.language,t[f.A.bs.Ns]=this.altImageText,t[f.A.bs.Os]=this.test,t}}var v=n(34063);function y(t,i,n,r,s,a,l,u,c,d,h,p,y,w,A,S,_,E){let k;if(i===f.A.ks.Ei||i===f.A.ks.Ti)k=new m(t,n,r,s,a,l,u,c,d,h,p,y,w,A,_,E);else if(i===f.A.ks.zs)k=new g(t,n,r,s,a,l,u,c,d,h,p,y,w,A,_,E);else if(i===f.A.ks.oi)k=new b(t,n,s,l,u,c,h,p,y,w,A,_,E);else{if(i!==f.A.ks.ai)return v.A.error("Ignoring card with unknown type "+i),null;k=new o.A(t,n,l,u,p,y)}return S&&(k.test=S),k}function w(t){return t[f.A.ei.ri]?null:y(t[f.A.ei.qs],t[f.A.ei.xs],t[f.A.ei.ys],t[f.A.ei.As],t[f.A.ei.Bs],t[f.A.ei.Ds],(0,h.Zo)(t[f.A.ei.Es]),t[f.A.ei.Fs]===f.A.ui?null:(0,h.Zo)(t[f.A.ei.Fs]),t[f.A.ei.URL],t[f.A.ei.Gs],t[f.A.ei.Hs],t[f.A.ei.Is],t[f.A.ei.Js],t[f.A.ei.Ks],t[f.A.ei.Ls],t[f.A.ei.Os]||!1,t[f.A.ei.Ms],t[f.A.ei.Ns])}var A=n(5138),S=n(15244),_=n(36994),E=n(98465),k=n(79921),x=n(54099);class I extends a.A{constructor(t,i,n,s,a){super(),this.Ss=t,this.j=i,this.h=n,this.Ts=s,this.B=a,this.Ss=t,this.j=i,this.h=n,this.Ts=s,this.B=a,this.Rs=new S.A,r.Ay.S(this.Rs),this.Us=0,this.$s=0,this.cards=[],this.Ps();const o=x.A._s.Xs;new x.A(o,v.A).Qs(o.Ws.Vs,t=>{this.Ys(t)}),this.Zs=null,this.T=null,this.fi=null,this.di=null,this.pi=10}vi(){return this.Zs}Ci(t){this.Zs=t}Et(){return this.T}Lt(t){this.T=t}Ps(){if(!this.j)return;let t=this.j.St(A.d.It.bi)||[],i=[];for(let r=0;r<t.length;r++){var n;let s=y((n=t[r])[f.A.bs.qs],n[f.A.bs.xs],n[f.A.bs.ys],n[f.A.bs.As],n[f.A.bs.Bs],n[f.A.bs.Ds],(0,h.jU)(n[f.A.bs.Es]),(0,h.jU)(n[f.A.bs.Fs]),n[f.A.bs.URL],n[f.A.bs.Gs],n[f.A.bs.Hs],n[f.A.bs.Is],n[f.A.bs.Js],n[f.A.bs.Ks],n[f.A.bs.Ls],n[f.A.bs.O
1s]||!1,n[f.A.bs.Ms],n[f.A.bs.Ns])||void 0;null!=s&&i.push(s)}this.cards=this.wi(this.gi(i,!1)),this.Us=this.j.St(A.d.It.ji)||this.Us,this.$s=this.j.St(A.d.It.yi)||this.$s}Ri(t,i=!1,n=0,r=0){let s;if(i)for(let t of(s=[],this.cards))t.test&&s.push(t);else s=this.cards.slice();for(let n=0;n<t.length;n++){let r=t[n],a=null;for(let t=0;t<this.cards.length;t++)if(r.id===this.cards[t].id){a=this.cards[t];break}if(i){let t=w(r);null!=a&&a.viewed&&t&&(t.viewed=!0),null!=t&&s.push(t)}else if(null==a){let t=w(r);null!=t&&s.push(t)}else if(!a.ni(r)){for(let t=0;t<s.length;t++)if(r.id===s[t].id){s.splice(t,1);break}}}this.cards=this.wi(this.gi(s,i)),this.Ui(),this.Us=n,this.$s=r,this.j&&(this.j.Pt(A.d.It.ji,this.Us),this.j.Pt(A.d.It.yi,this.$s))}q(t){if(this.ki()&&null!=t&&t.cards){this.j&&this.j.Pt(A.d.It.zi,r.Ay.qi());let i=t.full_sync;i||this.Ps(),this.Ri(t.cards,i,t.last_full_sync_at,t.last_card_updated_at),this.Rs.A(this.xi(!0))}}Fi(t){this.Li(),this.fi=t}Ys(t){var i;if(!this.ki())return;this.Ps();let n=this.cards.slice(),r=null;r=null==(i=this.Ss)?void 0:i.getUserId();for(let i=0;i<t.length;i++)if(r===t[i].userId||null==r&&null==t[i].userId){let r=t[i].card,s=null;for(let t=0;t<this.cards.length;t++)if(r.id===this.cards[t].id){s=this.cards[t];break}if(null==s){let t=w(r);null!=t&&n.push(t)}else if(!s.ni(r)){for(let t=0;t<n.length;t++)if(r.id===n[t].id){n.splice(t,1);break}}}this.cards=this.wi(this.gi(n,!1)),this.Ui(),this.Rs.A(this.xi(!0))}gi(t,i){let n={},r={},s={};this.j&&(n=this.j.St(A.d.It.Zt)||{},r=this.j.St(A.d.It.ps)||{},s=this.j.St(A.d.It.fs)||{});let a={},o={},l={};for(let i=0;i<t.length;i++){let u=t[i].id;u&&(n[u]&&(t[i].clicked=!0,a[u]=!0),r[u]&&(t[i].viewed=!0,o[u]=!0),s[u]&&(t[i].dismissed=!0,l[u]=!0))}return i&&this.j&&(this.j.Pt(A.d.It.Zt,a),this.j.Pt(A.d.It.ps,o),this.j.Pt(A.d.It.fs,l)),t}wi(t){let i=[],n=new Date,r={};this.j&&(r=this.j.St(A.d.It.fs)||{});let s=!1;for(let a=0;a<t.length;a++){let o=t[a].url;if(!this.Ts&&o&&(0,p.P)(o)){v.A.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}let l=t[a].expiresAt,u=!0;if(null!=l&&(u=l>=n),u=u&&!t[a].dismissed)i.push(t[a]);else{let i=t[a].id;i&&(r[i]=!0),s=!0}}return s&&this.j&&this.j.Pt(A.d.It.fs,r),i}Ui(){var t;let i=[];for(let t=0;t<this.cards.length;t++)i.push(this.cards[t].qt());null==(t=this.j)||t.Pt(A.d.It.bi,i)}Li(){this.fi&&(clearTimeout(this.fi),this.fi=null)}lr(t,i,n="sdk"){var a;let o=this.B,l=this.j;if(!o||!l)return void("function"==typeof i&&i());if("client"===n&&(_.A.Ji(l,_.A.it.Mi),this.Li()),!this.ki())return void(null==(a=this.h)||a.$i(()=>{this.lr(t,i,"client")}));let u=o.Z({},!0);l.St(A.d.It.zi)!==r.Ay.qi()&&this.Bi(),u.last_full_sync_at=this.Us,u.last_card_updated_at=this.$s;let c=o.tt(u,_.A.it.Mi,n),d=!1;o.et(u,(n=-1)=>{if(this.j){let t=new Date().valueOf();_.A.nt(this.j,_.A.it.Mi,t)}-1!==n&&c.push(["X-Braze-Req-Tokens-Remaining",n.toString()]),s.A.ot({url:`${o.ht()}/content_cards/sync`,data:u,headers:c,lt:n=>{o.ut(u,n,c)?(o.ct(),this.q(n),d=!1,"function"==typeof t&&t()):(d=!0,"function"==typeof i&&i())},error:t=>{o.dt(t,"retrieving content cards"),d=!0,"function"==typeof i&&i()},ft:(n,r)=>{var s,a,l;let u;if(d){let t=(null==(s=this.h)?void 0:s.vt())||k.xm,i=(null==(a=this.h)?void 0:a.gt())||k.MF,n=(null==(l=this.h)?void 0:l.bt())||k.T,r=this.di;(null==r||r<t)&&(r=t),u=Math.min(n,(0,E.C)(t,r*i))}o.yt(r,()=>{this.lr(t,i)},_.A.it.Mi,t=>this.Fi(t),()=>this.Li(),u)}})},_.A.it.Mi,i)}xi(t){t||this.Ps();let i=this.wi(this.cards);i.sort((t,i)=>t.pinned&&!i.pinned?-1:i.pinned&&!t.pinned?1:t.updated&&i.updated&&t.updated>i.updated?-1:t.updated&&i.updated&&i.updated>t.updated?1:0);let n=Math.max(this.$s||0,this.Us||0);return 0===n&&(n=void 0),this.j&&this.j.St(A.d.It.yi)===this.$s&&void 0===n&&(n=this.$s),new d(i,(0,h.Zo)(n))}Kt(t){return this.Rs.Ut(t)}Bi(){this.Us=0,this.$s=0,this.j&&(this.j.Vt(A.d.It.ji),this.j.Vt(A.d.It.yi))}changeUser(t){t||(this.cards=[],this.Rs.A(new d(this.cards.slice(),null)),this.j&&(this.j.Vt(A.d.It.bi),this.j.Vt(A.d.It.Zt),this.j.Vt(A.d.It.ps),this.j.Vt(A.d.It.fs))),this.Li(),this.Bi()}clearData(t){this.Us=0,this.$s=0,this.cards=[],this.Rs.A(new d(this.cards.slice(),null)),t&&this.j&&(this.j.Vt(A.d.It.bi),this.j.Vt(A.d.It.Zt),this.j.Vt(A.d.It.ps),this.j.Vt(A.d.It.fs),this.j.Vt(A.d.It.ji),this.j.Vt(A.d.It.yi)),this.Li()}ki(){return!!this.h&&(!!this.h.Pi()||(0!==this.h.Qt()&&this.Xi(),!1))}Xi(){this.Rs.A(new d([],new Date)),this.j&&this.j.Vt(A.d.It.bi)}}let O={i:!1,provider:null,o:()=>(O.t(),O.provider||(O.provider=new I(r.Ay.ir(),r.Ay.p(),r.Ay.l(),r.Ay.dr(),r.Ay.m()),r.Ay.v(O.provider),r.Ay.ar("ccr",()=>{var t;null==(t=O.provider)||t.lr(void 0,void 0,"dust")})),O.provider),t:()=>{O.i||(r.Ay.g(O),O.i=!0)},destroy:()=>{O.provider=null,O.i=!1}},C=O},42488:(t,i,n)=>{"use strict";n.d(i,{A:()=>a});var r=n(73817),s=n(73128);class a extends s.A{constructor(t,i,n,s,a,o,l,u,c,d,h,p){super(t,void 0,void 0,i,n,void 0,void 0,void 0,s=s||r.uR.MANUA
1L,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o,l,void 0,void 0,void 0,u,void 0,void 0,void 0,c,d,p,void 0,void 0),this.messageFields=h,this.messageFields=h}od(){return!1}Yt(t){if(this.Bo===r.o6.ME){if(this.rd)return!1;this.rd=!0}return this.ti.A(t),!0}qt(){let t=super.qt(r.o6.ME);return t[r.Ot.wE]=this.messageFields,t}static Ea(t){return new a(t[r.Ot.UE],t[r.Ot.Is],t[r.Ot.PE],t[r.Ot.rE],t[r.Ot.mE],t[r.Ot.lE],t[r.Ot.YE],t[r.Ot.XE],t[r.Ot.fE],t[r.Ot.CSS],t[r.Ot.wE],t[r.Ot.jE])}}},43226:(t,i,n)=>{"use strict";n.d(i,{A:()=>l});var r=n(40814),s=n(34063),a=n(37206),o=n(79835);class l{constructor(t,i,n){this.Iu=t,null==t&&(t=r.A.de()),!n||isNaN(n)?this.lm=new Date().valueOf():this.lm=n,this.Iu=t,this.gm=new Date().valueOf(),this.pm=i}qt(){return`g:${encodeURIComponent(this.Iu)}|e:${this.pm}|c:${this.lm}|l:${this.gm}`}static AS(t){let i;if("string"!=typeof t)return null;let n=t.lastIndexOf("|e:"),r=t.substring(0,n),s=r.split("g:")[1];return i=/[|:]/.test(s)?encodeURIComponent(s):s,t=t.replace(r,`g:${i}`)}static _u(t){let i;if("string"==typeof t)try{let n=t.split("|");if(!(0,a.cy)(n)||4!==n.length)return null;let r=t=>t.split(":")[1],s=t=>{let i=parseInt(r(t));if(!isNaN(i))return i};(i=new l(decodeURIComponent(r(n[0])),s(n[1]),s(n[2]))).gm=s(n[3])}catch(i){s.A.info(`Unable to parse cookie string ${t}, failed with error: ${(0,o.u)(i)}`)}else{if(null==t||null==t.g)return null;(i=new l(t.g,t.e,t.c)).gm=t.l}return i}}},43935:(t,i,n)=>{"use strict";n.d(i,{D7:()=>p,FJ:()=>b,FN:()=>E,Ie:()=>A,Le:()=>S,Rk:()=>f,U4:()=>g,tv:()=>m});var r=n(59712),s=n(78101),a=n(50559);let o="pe-test-group-frontpage",l="pe-active-ab-test",u="pe-test-group-random-percentage",c="pe-sampled-test-groups-",d="pe-active-ab-test-",h="pe-test-group-",p="frontpage",f=[p,"alsoreadthese","reelsfocus"],m="pe",g=t=>{var i;return null!=(i=s.s.getItem(h+t))?i:void 0},b=()=>{let t={};for(let i of f){let n=h+i,r=s.s.getItem(n);r&&(t[i]=r)}return t},v=(t,i)=>{s.s.setJSON(c+t,i)},y=(t,i)=>{s.s.setItem(d+t,i)},w=t=>{s.s.removeItem(d+t)},A=(t,i,n)=>{let r,a=h+i;g(i)!==t&&n.get(a)!==t&&x(n.get(a)||t),r=h+i,s.s.setItem(r,n.get(r)||t)},S=t=>{let i=g(t);i&&(s.s.removeItem(h+t),k(i))},_=(t,i)=>{let n=Math.random(),r=0;for(let s of Object.keys(t.groups)){let a=t.groups[s];if(a&&n<=(r+=a/i))return s}},E=(t,i)=>{var n,r;let h,f,b,E,k=new URLSearchParams(window.location.search),x=(h="html.personalizationengine.redirect.percentage.".concat(i),f=Number(t["html.personalizationengine.redirect.percentage"])||0,t[h]?Number(t[h]):f),I=(b="html.personalizationengine.ab.test.configuration.".concat(i),E=null!=(n=t["html.personalizationengine.ab.test.configuration"])?n:void 0,t[b]?t[b]:E),O=i!==p||(0,a.h)(),C=null!=(r=s.s.getItem(d+i))?r:void 0,T=k.has(o)||(()=>{let t=s.s.getItem(u);if(null!==t)return parseFloat(t);{let t=Math.random();return s.s.setItem(u,"".concat(t)),t}})()<=x,P=g(i);if(!1===O||void 0===O&&!T){P&&!k.has(o)&&S(i),C&&!k.has(l)&&w(i);return}P&&C||(P=m),!C||!I||I.some(t=>t.testId===C)||k.has(o)||k.has(l)||(w(i),S(i),P=m);let N=k.get(o);N?y(p,N):I&&P===m&&(P=((t,i,n)=>{var r;let a=null!=(r=s.s.getJSON(c+t))?r:{},o=i.reduce((t,i)=>{let n=i.testId;return Object.prototype.hasOwnProperty.call(a,n)?{...t,[n]:a[n]}:t},{}),l=1-Object.keys(o).reduce((t,i)=>{var r;return t+(null!=(r=o[i])?r:0)/n},0),u=i.filter(t=>!Object.prototype.hasOwnProperty.call(o,t.testId)),d={...o};for(let i of u){let r=Object.keys(i.groups).reduce((t,n)=>{var r;return t+(null!=(r=i.groups[n])?r:0)},0);v(t,d={...d,[i.testId]:r});let s=_(i,l*n);if(s)return y(t,i.testId),s;l-=r/n}return m})(i,I,x)),(P!==g(i)||k.get(o))&&A(P,i,k)},k=t=>{(0,r.$)({event:"eventInfo",eventCategory:"personalization group",eventAction:"leave",eventLabel:t})},x=t=>{(0,r.$)({event:"eventInfo",eventCategory:"personalization group",eventAction:"join",eventLabel:t})}},44304:(t,i,n)=>{"use strict";n.d(i,{fM:()=>r,u9:()=>s});let r=t=>"object"==typeof t&&null!==t&&"status"in t&&"number"==typeof t.status&&"isTimeout"in t&&"boolean"==typeof t.isTimeout&&"timeout"in t&&"number"==typeof t.timeout&&"description"in t&&"string"==typeof t.description,s=function(t,i){let n,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4;"AbortController"in window&&"function"==typeof window.AbortController&&(r=(n=new AbortController).signal);let a=setTimeout(()=>{null==n||n.abort()},s);return fetch(t,{signal:r,...i}).catch(i=>{if(null!=i&&"object"==typeof i&&"name"in i&&"AbortError"===i.name)throw{status:0,isTimeout:!0,timeout:s,description:"Aborted request to url ".concat(t," due to it taking longer than ").concat(s," ms.")};throw i}).finally(()=>{clearTimeout(a)})}},44341:(t,i,n)=>{"use strict";n.d(i,{A:()=>s});var r=n(95315);class s{constructor(t,i,n,r,s){this.endpoint=t,this.Uu=i,this.publicKey=n,this.zd=r,this.Td=s,this.endpoint=t||null,this.Uu=i||null,this.publicKey=n||null,this.zd=r||null,this.Td=s||null}qt(){return{e:this.endpoint,c:this.Uu,p:this.publicKey,u:this.zd,v:this.Td}}static _u(t){return new s(t.e,(0,r.jU)(t.c),t.p,t.u,t.v)}}},44537:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i){var n=(0,s.default)(t);if(!n.length)return void i.preventDefault();var r=void 0,a=i.shiftKey,o=n[0],l=n[n.length-1],u=function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return i.activeElement.shadowRoot?t(i.activeElement.shadowRoot):i.activeElement}();if(t===u){if(!a)return;r=l}if(l!==u||a||(r=o),o===u&&a&&(r=l),r){i.preventDefault(),r.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(u);if(d>-1&&(d+=a?-1:1),void 0===(r=n[d])){i.preventDefault(),(r=a?l:o).focus();return}i.preventDefault(),r.focus()}};var r,s=(r=n(77289))&&r.__esModule?r:{default:r};t.exports=i.default},44917:(t,i,n)=>{"use strict";n.d(i,{A:()=>c});var r=n(37206),s=n(34063),a=n(82793),o=n(41232),l=n(79921),u=n(95315);class c{constructor(t,i){this.Ss=t,this.Ru=i,this.Ss=t,this.Ru=i}getUserId(t){let i=this.Ss.getUserId();if("function"!=typeof t)return i;s.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),t(i)}addAlias(t,i){return!(0,o.rK)(t,"add alias","the alias",!1)||t.length<=0?(s.A.error("addAlias requires a non-empty alias"),!1):!(0,o.rK)(i,"add alias","the label",!1)||i.length<=0?(s.A.error("addAlias requires a non-empty label"),!1):this.Ru.Hu(t,i).lt}setFirstName(t){return!!(0,o.rK)(t,"set first name","the firstName",!0)&&this.Ss.Bu("first_name",t)}setLastName(t){return!!(0,o.rK)(t,"set last name","the lastName",!0)&&this.Ss.Bu("last_name",t)}setEmail(t){return null===t||(0,o.B9)(t)?this.Ss.Bu("email",t):(s.A.error(`Cannot set email address - "${t}
1" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!(0,r.BY)(c.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.Ss.Bu("gender",t)}setDateOfBirth(t,i,n){return null===t&&null===i&&null===n?this.Ss.Bu("dob",null):(t=null!=t?parseInt(t.toString()):null,i=null!=i?parseInt(i.toString()):null,n=null!=n?parseInt(n.toString()):null,null==t||null==i||null==n||isNaN(t)||isNaN(i)||isNaN(n)||i>12||i<1||n>31||n<1?(s.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Ss.Bu("dob",`${t}-${i}-${n}`))}setCountry(t){return!!(0,o.rK)(t,"set country","the country",!0)&&this.Ss.Bu("country",t)}setHomeCity(t){return!!(0,o.rK)(t,"set home city","the homeCity",!0)&&this.Ss.Bu("home_city",t)}setLanguage(t){return!!(0,o.rK)(t,"set language","the language",!0)&&this.Ss.Bu("language",t)}setEmailNotificationSubscriptionType(t){return!!(0,r.BY)(c.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.Bu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!(0,r.BY)(c.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.Bu("push_subscribe",t)}setPhoneNumber(t){return!!(0,o.rK)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(c.Ku)?this.Ss.Bu("phone",t):(s.A.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,i,n,r,a){return null==t||null==i?(s.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),i=parseFloat(i.toString()),null!=n&&(n=parseFloat(n.toString())),null!=r&&(r=parseFloat(r.toString())),null!=a&&(a=parseFloat(a.toString())),isNaN(t)||isNaN(i)||null!=n&&isNaN(n)||null!=r&&isNaN(r)||null!=a&&isNaN(a)?(s.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||i>180||i<-180?(s.A.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=n&&n<0||null!=a&&a<0?(s.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ru.setLastKnownLocation(this.Ss.getUserId(),t,i,r,n,a).lt)}setCustomUserAttribute(t,i,n){if(!(0,o.ZJ)(t))return!1;let s=i=>
1{let[n]=(0,o.fB)(i,l.em.Mu,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return n};if((0,r.cy)(i)){let[n,r]=(0,o.Z2)(t,i);if(!n&&!r&&0!==i.length)return!1;if(n||0===i.length)return this.Ru.Yu(a.w.Vu,t,i).lt;for(let t of i)if(!s(t))return!1}else if((0,r.Gv)(i)){if(!s(i))return!1;if(n)return this.Ru.Yu(a.w.Qu,t,i).lt}else if(!(void 0!==i&&(0,o.uZ)(i))||((0,r.$P)(i)&&(i=(0,u.EQ)(i)),"string"==typeof i&&!(0,o.Dz)(i,`set custom user attribute "${t}"`,"the element in the given array")))return!1;return this.Ss.setCustomUserAttribute(t,i)}addToCustomAttributeArray(t,i){return!!(0,o.Dz)(t,"add to custom user attribute array","the given key")&&!(null!=i&&!(0,o.Dz)(i,"add to custom user attribute array","the given value"))&&this.Ru.Yu(a.w.Xu,t,i).lt}removeFromCustomAttributeArray(t,i){return!!(0,o.Dz)(t,"remove from custom user attribute array","the given key")&&!(null!=i&&!(0,o.Dz)(i,"remove from custom user attribute array","the given value"))&&this.Ru.Yu(a.w.Zu,t,i).lt}incrementCustomUserAttribute(t,i){if(!(0,o.Dz)(t,"increment custom user attribute","the given key"))return!1;null==i&&(i=1);let n=parseInt(i.toString());return isNaN(n)||n!==parseFloat(i.toString())?(s.A.error(`Cannot increment custom user attribute because the given incrementValue "${i}" is not an integer.`),!1):this.Ru.Yu(a.w.Ya,t,n).lt}setCustomLocationAttribute(t,i,n){return!!(0,o.Dz)(t,"set custom location attribute","the given key")&&((null!==i||null!==n)&&(i=null!=i?parseFloat(i.toString()):null,n=null!=n?parseFloat(n.toString()):null,null==i&&null!=n||null!=i&&null==n||null!=i&&(isNaN(i)||i>90||i<-90)||null!=n&&(isNaN(n)||n>180||n<-180))?(s.A.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \xb190 and \xb1180 respectively, or must both be null for removal."),!1):this.Ru.Va(t,i,n).lt)}addToSubscriptionGroup(t){return!(0,o.rK)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(s.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.Wa(t,c.Qa.SUBSCRIBED).lt}removeFromSubscriptionGroup(t){return!(0,o.rK)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(s.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.Wa(t,c.Qa.UNSUBSCRIBED).lt}setLineId(t){return(0,o.rK)(t,"set LINE user ID","the ID",!0)&&0!==(null==t?void 0:t.length)?t&&t.length>c.Za?(s.A.error(`Rejected LINE user ID ${t} because it is longer than ${c.Za} characters.`),!1):this.Ss.Bu("native_line_id",t):(s.A.error("setLineId requires a non-empty ID"),!1)}yu(t,i,n,r,s){this.Ss.yu(t,i,n,r,s),this.Ru.el()}wu(t){this.Ss.wu(t)}}c.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},c.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},c.Ku=/^[0-9 .\\(\\)\\+\\-]+$/,c.Qa={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},c.rl="user_id",c.Eu="custom",c.Ur=997,c.Za=33},46151:(t,i,n)=>{"use strict";n.d(i,{K:()=>u});var r=n(34063),s=n(78914),a=n(64357),o=n(7966),l=n(23486);function u(t){return!!a.Ay.rr()&&(t instanceof l.A?o.A.ra().logClick(t).lt:(r.A.error("card "+s.z.tr),!1))}},47514:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.bodyOpenClassName=i.portalClassName=void 0;var r=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}}(),a=n(14232),o=m(a),l=m(n(98477)),u=m(n(95062)),c=m(n(51856)),d=function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i.default=t,i}(n(20184)),h=n(36078),p=m(h),f=n(7235);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,i){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&("object"==typeof i||"function"==typeof i)?i:t}var b=i.portalClassName="ReactModalPortal",v=i.bodyOpenClassName="ReactModal__Body--open",y=h.canUseDOM&&void 0!==l.default.createPortal,w=function(t){return document.createElement(t)},A=function(){return y?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},S=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function i(){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");for(var t,n,s,a=arguments.length,u=Array(a),d=0;d<a;d++)u[d]=arguments[d];return n=s=g(this,(t=i.__proto__||Object.getPrototypeOf(i)).call.apply(t,[this].concat(u))),s.removePortal=function(){y||l.default.unmountComponentAtNode(s.node);var t=(0,s.props.parentSelector)();t&&t.contains(s.node)?t.removeChild(s.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},s.portalRef=function(t){s.portal=t},s.renderPortal=function(t){var n=A()(s,o.default.createElement(c.default,r({defaultStyles:i.defaultStyles},t)),s.node);s.portalRef(n)},g(s,n)}return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),s(i,[{key:"c
1omponentDidMount",value:function(){h.canUseDOM&&(y||(this.node=w("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),y||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(t){return{prevParent:(0,t.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(t,i,n){if(h.canUseDOM){var r=this.props,s=r.isOpen,a=r.portalClassName;t.portalClassName!==a&&(this.node.className=a);var o=n.prevParent,l=n.nextParent;l!==o&&(o.removeChild(this.node),l.appendChild(this.node)),(t.isOpen||s)&&(y||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(h.canUseDOM&&this.node&&this.portal){var t=this.portal.state,i=Date.now(),n=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||i+this.props.closeTimeoutMS);n?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-i)):this.removePortal()}}},{key:"render",value:function(){return h.canUseDOM&&y?(!this.node&&y&&(this.node=w("div")),A()(o.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:i.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(t){d.setElement(t)}}]),i}
1(a.Component);S.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(p.default),u.default.instanceOf(h.SafeHTMLCollection),u.default.instanceOf(h.SafeNodeList),u.default.arrayOf(u.default.instanceOf(p.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},S.defaultProps={isOpen:!1,portalClassName:b,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,i){return o.default.createElement("div",t,i)},contentElement:function(t,i){return o.default.createElement("div",t,i)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(S),i.default=S},48930:(t,i,n)=>{"use strict";n.d(i,{A:()=>u,s:()=>l});var r=n(34063),s=n(66045),a=n(79835);function o(t,i,n,s,a){let o=!1;if(window.XMLHttpRequest&&(o=!0),!o)return r.A.error("This browser does not have any supported ajax options!"),null;let l=new XMLHttpRequest;for(let r of(l.onload=()=>{let t=!1;if(4!==l.readyState)return;t=l.status>=200&&l.status<300||304===l.status;let i=l.getAllResponseHeaders();t?s(l,i):a(l,i)},l.onerror=()=>{a(l,l.getAllResponseHeaders())},l.ontimeout=()=>{a(l)},l.open(t,i,!0),"POST"===t&&(l.setRequestHeader("Content-type","application/json"),l.setRequestHeader("X-Requested-With","XMLHttpRequest")),n||[]))l.setRequestHeader(r[0],r[1]);return l}let l=t=>{let i,n,r={},s=t.toString().split("\r\n");if(!s)return r;for(let t of s)t&&(i=t.slice(0,t.indexOf(":")).toLowerCase().trim(),n=t.slice(t.indexOf(":")+1).trim(),r[i]=n);return r},u={ot:t=>{let i,n;try{if(!(i=o("POST",t.url,t.headers,(i,n)=>{if("function"==typeof t.lt){let r;try{r=JSON.parse(i.responseText)}catch(a){let r={error:""===i.responseText?s.A.Ql:s.A.vc,response:i.responseText};(0,t.lt)(r,n)}r&&t.lt(r,n)}"function"==typeof t.ft&&t.ft(!0,n)},(i,n)=>{"function"==typeof t.error&&t.error(i.status),"function"==typeof t.ft&&t.ft(!1,n)})))return;n=JSON.stringify(t.data),i.send(n)}catch(t){r.A.error(`Network request error: ${(0,a.u)(t)}`)}},get:t=>{let i;try{if(!(i=o("GET",t.url,t.headers,i=>{"function"==typeof t.lt&&t.lt(i.responseText),"function"==typeof t.ft&&t.ft(!0)},i=>{"function"==typeof t.error&&t.error(i.status),"function"==typeof t.ft&&t.ft(!1)})))return;i.send()}catch(t){r.A.error(`Network request error: ${(0,a.u)(t)}`)}}}},49466:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=n(73817),s=n(77904),a=n(73128);class o extends a.A{constructor(t,i,n,s,a,o,l,u,c,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k,x,I,O,C,T,P){super(t,i,void 0,n,s,a,o,l,u=u||r.uR.MANUAL,c,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k,x=x||r.A5.FIT_CENTER,void 0,I,O,C,T,P),this.Ao=r.KP.CENTER}qt(){return super.qt(r.o6.tE)}static Ea(t){return new o(t[r.Ot.UE],t[r.Ot.cE],t[r.Ot.Is],t[r.Ot.PE],t[r.Ot.iE],t[r.Ot.URI],t[r.Ot.pE],t[r.Ot.rE],t[r.Ot.mE],t[r.Ot.GE],t[r.Ot.Bs],t[r.Ot.xE],t[r.Ot.HE],t[r.Ot.FE],t[r.Ot.BE],t[r.Ot.bE],t[r.Ot.gE],t[r.Ot.lE],t[r.Ot.YE],t[r.Ot.hE],t[r.Ot.KE],t[r.Ot.WE],t[r.Ot.XE],(0,s.x)(t[r.Ot.yE]),t[r.Ot.dE],t[r.Ot.fE],t[r.Ot.CSS],t[r.Ot.jE],t[r.Ot.LANGUAGE],t[r.Ot.Ns])}}},50559:(t,i,n)=>{"use strict";n.d(i,{A:()=>u,h:()=>l});var r=n(59712),s=n(78101),a=n(43935);let o="pe-optin-status",l=()=>{let t=s.s.getItem(o);return"opt-in"===t||"opt-out"!==t&&void 0},u=t=>
1{let i=t?"opt-in":"opt-out",n=t?a.tv:(0,a.U4)(a.D7),r=new URLSearchParams(window.location.search);c(i,n),s.s.setItem(o,i),t?(0,a.Ie)(a.tv,a.D7,r):(0,a.Le)(a.D7)},c=(t,i)=>{(0,r.$)({event:"eventInfo",eventCategory:"personal frontpage",eventAction:t,eventLabel:null!=i?i:""})}},51144:(t,i,n)=>{"use strict";n.d(i,{J:()=>r});let r={Unknown:"Unknown",Authenticated:"Authenticated",Unauthenticated:"Unauthenticated",AutoWelcomeBack:"AutoWelcomeBack"}},51799:(t,i,n)=>{"use strict";n.d(i,{h:()=>l});var r=n(27964),s=n(14232),a=n(464),o=n(68239);let l=()=>{let t,i,n,l=(0,r.c)(3);l[0]===Symbol.for("react.memo_cache_sentinel")?(t={spem:!1,spad:!1,sppd:!1,spcx:!1,spma:!1},l[0]=t):t=l[0];let[u,c]=(0,s.useState)(t);l[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{c({spem:(0,a.SH)(),spad:(0,a.ND)(),sppd:(0,a.Qp)(),spcx:(0,a.HL)(),spma:(0,a.tD)()})},l[1]=i):i=l[1];let d=i;return l[2]===Symbol.for("react.memo_cache_sentinel")?(n=[d],l[2]=n):n=l[2],(0,s.useEffect)(d,n),(0,o.$)(d),u}},51856:(t,i,n)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s="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},a=function(){function t(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}}(),o=n(14232),l=b(n(95062)),u=g(n(36893)),c=b(n(44537)),d=g(n(20184)),h=g(n(14270)),p=n(36078),f=b(p),m=b(n(79020));function g(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i.default=t,i}function b(t){return t&&t.__esModule?t:{default:t}}n(365);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,w=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function i(t){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");var n=function(t,i){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&("object"==typeof i||"function"==typeof i)?i:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t));return n.setOverlayRef=function(t){n.overlay=t,n.props.overlayRef&&n.props.overlayRef(t)},n.setContentRef=function(t){n.content=t,n.props.contentRef&&n.props.contentRef(t)},n.afterClose=function(){var t=n.props,i=t.appElement,r=t.ariaHideApp,s=t.htmlOpenClassName,a=t.bodyOpenClassName,o=t.parentSelector,l=o&&o().ownerDocument||document;a&&h.remove(l.body,a),s&&h.remove(l.getElementsByTagName("html")[0],s),r&&y>0&&0==(y-=1)&&d.show(i),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){("Tab"===t.code||9===t.keyCode)&&(0,c.default)(n.content,t),n.props.shouldCloseOnEsc&&("Escape"===t.code||27===t.keyCode)&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose
vendor: 4,435 bytes, line 1
1=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,i){var r=(void 0===i?"undefined":s(i))==="object"?i:{base:v[t],afterOpen:v[t]+"--after-open",beforeClose:v[t]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof i&&i?a+" "+i:a},n.attributesFromObject=function(t,i){return Object.keys(i).reduce(function(n,r){return n[t+"-"+r]=i[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t),a(i,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,i){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!i.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var t=this.props,i=t.appElement,n=t.ariaHideApp,r=t.htmlOpenClassName,s=t.bodyOpenClassName,a=t.parentSelector,o=a&&a().ownerDocument||document;s&&h.add(o.body,s),r&&h.add(o.getElementsByTagName("html")[0],r),n&&(y+=1,d.hide(i)),m.default.register(this)}},{key:"render",value:function(){var t=this.props,i=t.id,n=t.className,s=t.overlayClassName,a=t.defaultStyles,o=t.children,l=n?{}:a.content,u=s?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",s),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},d=r({id:i,ref:this.setContentRef,style:r({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),h=this.props.contentElement(d,o);return this.props.overlayElement(c,h)}}]),i}(o.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string}
1,i.default=w,t.exports=i.default},52333:(t,i,n)=>{"use strict";n.d(i,{u:()=>f});var r=n(14232),s=n(38806),a=n(56840),o=n(53243);let l=r.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(i=>{t.status="fulfilled",t.value=i},i=>{t.status="rejected",t.reason=i}),t}}),u={dedupe:!0},c=(t,i,n)=>{var r;return!!i&&(null==(r=t.get(i))?void 0:r.has(n))===!0},d=(t,i,n)=>{if(!i)return;let r=t.get(i);r||(r=new Set,t.set(i,r)),r.add(n)},h=Promise.resolve(o.U);h.status="fulfilled",h.value=o.U;let p=()=>o.n;o.O.defineProperty(o.S,"defaultValue",{value:o.d});let f=(0,a.qm)((t,i,n)=>{let{cache:f,compare:m,suspense:g,fallbackData:b,revalidateOnMount:v,revalidateIfStale:y,refreshInterval:w,refreshWhenHidden:A,refreshWhenOffline:S,keepPreviousData:_,strictServerPrefetchWarning:E}=n,[k,x,I,O]=o.a.get(f),[C,T]=(0,o.s)(t),P=(0,r.useRef)(!1),N=(0,r.useRef)(!1),j=(0,r.useRef)(C),R=(0,r.useRef)(i),D=(0,r.useRef)(n),M=()=>D.current.isVisible()&&D.current.isOnline(),[U,B,z,L]=(0,o.c)(f,C),F=(0,r.useRef)({}).current,$=(0,o.i)(b)?(0,o.i)(n.fallback)?o.U:n.fallback[C]:b,q=n.cacheData,V=C?null==q?void 0:q[C]:o.U,W=C?O[C]:o.U,J=(0,o.i)(W)&&!(0,o.i)(V),G=J?V:W,H=(t,i)=>{for(let n in F)if("data"===n){if(!m(t[n],i[n])&&(!(0,o.i)(t[n])||!m(ea,i[n])))return!1}else if(i[n]!==t[n])return!1;return!0},K=!P.current,Z=(0,r.useMemo)(()=>{let t=U(),n=L(),r=t=>{let n=(0,o.m)(t);return(delete n._k,(()=>{if(!C||!i||D.current.isPaused())return!1;if(K&&!(0,o.i)(v))return v;let t=(0,o.i)($)?n.data:$;return!(g&&J&&(0,o.i)(t))&&((0,o.i)(t)||y)})())?{isValidating:!0,isLoading:!0,...n}:n},s=r(t),a=t===n?s:r(n),l=s;return[()=>{let t=r(U());return H(t,l)?(l.data=t.data,l.isLoading=t.isLoading,l.isValidating=t.isValidating,l.error=t.error,l):(l=t,t)},()=>a]},[f,C]),X=(0,s.useSyncExternalStore)((0,r.useCallback)(t=>z(C,(i,n)=>{H(n,i)||t()}),[f,C]),Z[0],Z[1]),Y=k[C]&&k[C].length>0,Q=X.data,ee=(0,o.i)(Q)?$&&(0,o.b)($)?l($):$:Q,et=X.error,ei=(0,r.useRef)(ee),en=(0,r.useRef)(o.U),er=en.current;er||(en.current=er=new WeakMap);let es=(0,r.useRef)(null),ea=_?(0,o.i)(Q)?(0,o.i)(ei.current)?ee:ei.current:Q:ee,eo=C&&(0,o.i)(ee),el=(0,r.useRef)(null);o.I||(0,s.useSyncExternalStore)(p,()=>(el.current=!1,el),()=>(el.current=!0,el));let eu=el.current;E&&eu&&!g&&eo&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ec=!(!C||!i||D.current.isPaused())&&(!Y||!!(0,o.i)(et))&&(K&&!(0,o.i)(v)?v:(!g||!J||!eo)&&(g?!(0,o.i)(ee)&&y:(0,o.i)(ee)||y)),ed=K&&ec,eh=(0,o.i)(X.isValidating)?ed:X.isValidating,ep=(0,o.i)(X.isLoading)?ed:X.isLoading,ef=(0,r.useCallback)(async t=>{let i,r,s=R.current;if(!C||!s||N.current||D.current.isPaused())return!1;let a=!0,l=t||{},u=!I[C]||!l.dedupe,h=J&&!c(er,q,C)&&!(0,o.i)(G)&&(0,o.i)(U().data),p=()=>o.j?!N.current&&C===j.current&&P.current:C===j.current,f={isValidating:!1,isLoading:!1},g=()=>{B(f)},b=()=>{let t=I[C];t&&t[1]===r&&delete I[C]},v={isValidating:!0};(0,o.i)(U().data)&&(v.isLoading=!0);try{if(u&&(B(v),n.loadingTimeout&&(0,o.i)(U().data)&&setTimeout(()=>{a&&p()&&D.current.onLoadingSlow(C,n)},n.loadingTimeout),h&&d(er,q,C),I[C]=[h?G:s(T),(0,o.g)()],h&&O[C]&&delete O[C]),[i,r]=I[C],i=await i,u&&setTimeout(b,n.dedupingInterval),!I[C]||I[C][1]!==r)return u&&p()&&D.current.onDiscarded(C),!1;f.error=o.U;let t=x[C];if(!(0,o.i)(t)&&(r<=t[0]||r<=t[1]||0===t[1]))return g(),u&&p()&&D.current.onDiscarded(C),!1;let l=U().data;f.data=m(l,i)?l:i,u&&p()&&D.current.onSuccess(i,C,n)}catch(n){b();let t=D.current,{shouldRetryOnError:i}=t;!t.isPaused()&&(f.error=n,u&&p()&&(t.onError(n,C,t),(!0===i||(0,o.e)(i)&&i(n))&&(!D.current.revalidateOnFocus||!D.current.revalidateOnReconnect||M())&&t.onErrorRetry(n,C,t,t=>{let i=k[C];i&&i[0]&&i[0](o.E,t)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,g(),!0},[C,f]),em=(0,r.useCallback)((...t)=>(0,o.f)(f,j.current,...t),[]);if((0,o.u)(()=>{let t=es.current;t&&(es.current=null,d(er,t.cacheData,t.key),(0,o.i)(U().data)&&B({data:t.data,error:o.U,_k:t._k}),O[t.key]&&delete O[t.key])}),(0,o.u)(()=>{R.current=i,D.current=n,(0,o.i)(Q)||(ei.current=Q)}),(0,o.u)(()=>
1{if(i||!J||(0,o.i)(G)||c(er,q,C)||!(0,o.i)(U().data))return;d(er,q,C);let t=x[C];(({value:t,getCacheData:i,canCommit:n,setCache:r})=>{let s=t=>{n()&&(0,o.i)(i())&&r(t)};Promise.resolve(t).then(t=>{s({data:t,error:o.U})},t=>{s({error:t})})})({value:G,getCacheData:()=>U().data,canCommit:()=>!N.current&&C===j.current&&x[C]===t,setCache:t=>B({...t,_k:T})})}),(0,o.u)(()=>{if(!C)return;let t=ef.bind(o.U,u),i=0;D.current.revalidateOnFocus&&(i=Date.now()+D.current.focusThrottleInterval);let n=(0,a.aw)(C,k,(n,r={})=>{if(n==o.F){let n=Date.now();D.current.revalidateOnFocus&&n>i&&M()&&(i=n+D.current.focusThrottleInterval,t())}else if(n==o.R)D.current.revalidateOnReconnect&&M()&&t();else if(n==o.M)return ef();else if(n==o.E)return ef(r);else if(n==o.h&&(ei.current=o.U,r.revalidate))return ef()});return N.current=!1,j.current=C,P.current=!0,B({_k:T}),ec&&!I[C]&&((0,o.i)(ee)||o.I?t():(0,o.r)(t)),()=>{N.current=!0,n()}},[C]),(0,o.u)(()=>{let t;function i(){let i=(0,o.e)(w)?w(U().data):w;i&&-1!==t&&(t=setTimeout(n,i))}function n(){!U().error&&(A||D.current.isVisible())&&(S||D.current.isOnline())?ef(u).then(i):i()}return i(),()=>{t&&(clearTimeout(t),t=-1)}},[w,A,S,C]),(0,r.useDebugValue)(ea),g){if(!o.j&&o.I&&eo&&(0,o.i)(G))throw Error("Fallback data is required when using Suspense in SSR.");eo&&(R.current=i,D.current=n,N.current=!1);let t=!(0,o.i)(G)&&eo,r=o.U;if(t&&J?(ee=r=G&&(0,o.b)(G)?l(G):G,ea=r,o.I||(es.current={data:r,_k:T,key:C,cacheData:q})):l(t?em(G):h),!(0,o.i)(et)&&eo)throw et;let s=eo&&(0,o.i)(r)?ef(u):h;!(0,o.i)(ea)&&eo&&(s.status="fulfilled",s.value=!0),l(s)}return{mutate:em,get data(){return F.data=!0,ea},get error(){return F.error=!0,et},get isValidating(){return F.isValidating=!0,eh},get isLoading(){return F.isLoading=!0,ep}}})},53243:(t,i,n)=>{"use strict";n.d(i,{E:()=>u,F:()=>a,I:()=>P,M:()=>l,O:()=>f,R:()=>o,S:()=>Y,U:()=>p,a:()=>d,b:()=>v,c:()=>k,d:()=>K,e:()=>g,f:()=>q,g:()=>$,h:()=>c,i:()=>m,j:()=>T,k:()=>G,m:()=>b,n:()=>h,o:()=>J,p:()=>S,q:()=>X,r:()=>N,s:()=>L,t:()=>Z,u:()=>j});var r=n(14232),s=Object.prototype.hasOwnProperty;let a=0,o=1,l=2,u=3,c=4,d=new WeakMap,h=()=>{},p=h(),f=Object,m=t=>t===p,g=t=>"function"==typeof t,b=(t,i)=>({...t,...i}),v=t=>g(t.then),y={},w={},A="undefined",S=typeof window!=A,_=typeof document!=A,E=S&&"Deno"in window,k=(t,i)=>{let n=d.get(t);return[()=>!m(i)&&t.get(i)||y,r=>{if(!m(i)){let s=t.get(i);i in w||(w[i]=s),n[5](i,b(s,r),s||y)}},n[6],()=>!m(i)&&i in w?w[i]:!m(i)&&t.get(i)||y]},x=!0,[I,O]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],C={initFocus:t=>(_&&document.addEventListener("visibilitychange",t),I("focus",t),()=>{_&&document.removeEventListener("visibilitychange",t),O("focus",t)}),initReconnect:t=>{let i=()=>{x=!0,t()},n=()=>{x=!1};
1return I("online",i),I("offline",n),()=>{O("online",i),O("offline",n)}}},T=!r.useId,P=!S||E,N=t=>S&&typeof window.requestAnimationFrame!=A?window.requestAnimationFrame(t):setTimeout(t,1),j=P?r.useEffect:r.useLayoutEffect,R="u">typeof navigator&&navigator.connection,D=!P&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),M=new WeakMap,U=(t,i)=>t===`[object ${i}]`,B=0,z=t=>{let i,n,r=typeof t,s=f.prototype.toString.call(t),a=U(s,"Date"),o=U(s,"RegExp"),l=U(s,"Object");if(f(t)!==t||a||o)i=a?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(i=M.get(t))return i;if(i=++B+"~",M.set(t,i),Array.isArray(t)){for(n=0,i="@";n<t.length;n++)i+=z(t[n])+",";M.set(t,i)}if(l){i="#";let r=f.keys(t).sort();for(;!m(n=r.pop());)m(t[n])||(i+=n+":"+z(t[n])+",");M.set(t,i)}}return i},L=t=>{if(g(t))try{t=t()}catch(i){t=""}let i=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?z(t):"",i]},F=0,$=()=>++F;async function q(...t){let[i,n,r,s]=t,a=b({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{}),o=a.populateCache,u=a.rollbackOnError,c=a.optimisticData,h=a.throwOnError;if(g(n)){let t=[];for(let r of i.keys())!/^\$(inf|sub)\$/.test(r)&&n(i.get(r)._k)&&t.push(r);return Promise.all(t.map(f))}return f(n);async function f(n){let s,[f]=L(n);if(!f)return;let[b,y]=k(i,f),[w,A,S,_]=d.get(i),E=()=>{let t=w[f];return(g(a.revalidate)?a.revalidate(b().data,n):!1!==a.revalidate)&&(delete S[f],delete _[f],t&&t[0])?t[0](l).then(()=>b().data):b().data};if(t.length<3)return E();let x=r,I=!1,O=$();A[f]=[O,0];let C=!m(c),T=b(),P=T.data,N=T._c,j=m(N)?P:N;if(C&&y({data:c=g(c)?c(j,P):c,_c:j}),g(x))try{x=x(j)}catch(t){s=t,I=!0}if(x&&v(x)){let t;if(x=await x.catch(t=>{s=t,I=!0}),O!==A[f][0]){if(I)throw s;return x}I&&C&&(t=s,"function"==typeof u?u(t):!1!==u)&&(o=!0,y({data:j,_c:p}))}if(o&&!I&&(g(o)?y({data:o(x,j),error:p,_c:p}):y({data:x,error:p,_c:p})),A[f][1]=$(),Promise.resolve(E()).then(()=>{y({_c:p})}),I){if(h)throw s;return}return x}}let V=(t,i)=>{for(let n in t)t[n][0]&&t[n][0](i)},W=(t,i)=>{if(!d.has(t)){let n=b(C,i),r=Object.create(null),s=q.bind(p,t),l=h,u=Object.create(null),f=(t,i)=>{let n=u[t]||[];return u[t]=n,n.push(i),()=>{let t=n.indexOf(i);t>=0&&(n[t]=n[n.length-1],n.pop())}},m=(i,n,r)=>{t.set(i,n);let s=u[i];if(s)for(let t of s)t(n,r)},g=i=>{let n=d.get(t),[,s,a,o]=n,l=$();for(let t in n[8]++,a)delete a[t];for(let t in o)delete o[t];for(let t in s)s[t]=[l,l];let h={};for(let i of[...t.keys()]){let n=t.get(i);t.delete(i);let r=u[i];if(r)for(let t of r)t(h,n)}let p=!i||!1!==i.revalidate;for(let t in r){let i=r[t];for(let t=0;t<i.length;t++)i[t](c,{revalidate:p&&!t})}},v=()=>{if(!d.has(t)&&(d.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,m,f,g,0]),!P)){let i=n.initFocus(setTimeout.bind(p,V.bind(p,r,a))),s=n.initReconnect(setTimeout.bind(p,V.bind(p,r,o)));l=()=>{i&&i(),s&&s(),d.delete(t)}}};return v(),[t,s,v,l,g]}let n=d.get(t);return[t,n[4],p,p,n[7]]},[J,G,,,H]=W(new Map),K=b({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(t,i,n,r,s)=>{let a=n.errorRetryCount,o=s.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(m(a)||!(o>a))&&setTimeout(r,l,s)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:function t(i,n){var r,a;if(i===n)return!0;if(i&&n&&(r=i.constructor)===n.constructor){if(r===Date)return i.getTime()===n.getTime();if(r===RegExp)return i.toString()===n.toString();if(r===Array){if((a=i.length)===n.length)for(;a--&&t(i[a],n[a]););return -1===a}if(!r||"object"==typeof i){for(r in a=0,i)if(s.call(i,r)&&++a&&!s.call(n,r)||!(r in n)||!t(i[r],n[r]))return!1;return Object.keys(n).length===a}}return i!=i&&n!=n},isPaused:()=>!1,cache:J,mutate:G,unload:H,fallback:{}},{isOnline:()=>x,isVisible:()=>{let t=_&&document.visibilityState;return m(t)||"hidden"!==t}}),Z=(t,i)=>{let n=b(t,i);if(i){let{use:r,fallback:s,cacheData:a}=t,{use:o,fallback:l,cacheData:u}=i;r&&o&&(n.use=r.concat(o)),s&&l&&(n.fallback=b(s,l)),a&&u&&(n.cacheData=b(a,u))}return n},X=(0,r.createContext)({}),Y=t=>{let{value:i}=t,n=(0,r.useContext)(X),s=g(i),a=(0,r.useMemo)(()=>s?i(n):i,[s,n,i]),o=(0,r.useMemo)(()=>s?a:Z(n,a),[s,n,a]),l=a&&a.provider,u=(0,r.useRef)(p);l&&!u.current&&(u.current=W(l(o.cache||J),a));let c=u.current;return c&&(o.cache=c[0],o.mutate=c[1],o.unload=c[4]),j(()=>
1{if(c)return c[2]&&c[2](),c[3]},[]),(0,r.createElement)(X.Provider,b(t,{value:o}))}},54099:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});class r{constructor(t,i){this.database=t,this.df=i,this.parent="u"<typeof window?self:window,this.database=t,this.df=i}vf(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var t;try{if(null==this.vf())return!1;{let i=null==(t=this.vf())?void 0:t.open("Braze IndexedDB Support Test");if(i&&(i.onupgradeneeded=()=>i.result.close(),i.onsuccess=()=>i.result.close()),"u">typeof window){let t=window,i=t.chrome||t.browser||t.Df;if(i&&i.runtime&&i.runtime.id)return this.df.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.df.info("Not using IndexedDB for storage due to following error: "+t),!1}}Bf(t,i){var n;let r=null==(n=this.vf())?void 0:n.open(this.database.Sf,this.database.VERSION);if(null==r)return"function"==typeof i&&i(),!1;let s=this;return r.onupgradeneeded=t=>{var i;s.df.info("Upgrading indexedDB "+s.database.Sf+" to v"+s.database.VERSION+"...");let n=null==(i=t.target)?void 0:i.result;for(let t in s.database.Ws)s.database.Ws.hasOwnProperty(t)&&!n.objectStoreNames.contains(s.database.Ws[t])&&n.createObjectStore(s.database.Ws[t])},r.onsuccess=n=>{var r;let a=null==(r=n.target)?void 0:r.result;a.onversionchange=()=>{a.close(),"function"==typeof i&&i(),s.df.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(a)},r.onerror=t=>{var n;return s.df.info("Could not open indexedDB "+s.database.Sf+" v"+s.database.VERSION+": "+(null==(n=t.target)?void 0:n.errorCode)),"function"==typeof i&&i(),!0},!0}setItem(t,i,n,r,s){if(!this.isSupported())return"function"==typeof s&&s(),!1;let a=this;return this.Bf(o=>{if(!o.objectStoreNames.contains(t))return a.df.error("Could not store object "+i+" in "+t+" on indexedDB "+a.database.Sf+" - "+t+" is not a valid objectStore"),"function"==typeof s&&s(),void o.close();let l=o.transaction([t],"readwrite");l.oncomplete=()=>o.close();let u=l.objectStore(t).put(n,i);u.onerror=()=>{a.df.error("Could not store object "+i+" in "+t+" on indexedDB "+a.database.Sf),"function"==typeof s&&s()},u.onsuccess=()=>{"function"==typeof r&&r()}},s)}getItem(t,i,n){if(!this.isSupported())return!1;let r=this;return this.Bf(s=>{if(!s.objectStoreNames.contains(t))return r.df.error("Could not retrieve object "+i+" in "+t+" on indexedDB "+r.database.Sf+" - "+t+" is not a valid objectStore"),void s.close();let a=s.transaction([t],"readonly");a.oncomplete=()=>s.close();let o=a.objectStore(t).get(i);o.onerror=()=>{r.df.error("Could not retrieve object "+i+" in "+t+" on indexedDB "+r.database.Sf)},o.onsuccess=t=>{var i;let r=null==(i=t.target)?void 0:i.result;null!=r&&n(r)}})}kr(t,i,n){if(!this.isSupported())return"function"==typeof n&&n(),!1;let r=this;return this.Bf(s=>{if(!s.objectStoreNames.contains(t))return r.df.error("Could not retrieve last record from "+t+" on indexedDB "+r.database.Sf+" - "+t+" is not a valid objectStore"),"function"==typeof n&&n(),void s.close();let a=s.transaction([t],"readonly");a.oncomplete=()=>s.close();let o=a.objectStore(t).openCursor(null,"prev");o.onerror=()=>{r.df.error("Could not open cursor for "+t+" on indexedDB "+r.database.Sf),"function"==typeof n&&n()},o.onsuccess=t=>{var r;let s=null==(r=t.target)?void 0:r.result;null!=s&&null!=s.value&&null!=s.key?i(s.key,s.value):"function"==typeof n&&n()}},n)}Ae(t,i){if(!this.isSupported())return!1;let n=this;return this.Bf(r=>{if(!r.objectStoreNames.contains(t))return n.df.error("Could not delete record "+i+" from "+t+" on indexedDB "+n.database.Sf+" - "+t+" is not a valid objectStore"),void r.close();let s=r.transaction([t],"readwrite");s.oncomplete=()=>r.close(),s.objectStore(t).delete(i).onerror=()=>{n.df.error("Could not delete record "+i+" from "+t+" on indexedDB "+n.database.Sf)}})}Qs(t,i){if(!this.isSupported())return!1;let n=this;return this.Bf(r=>{if(!r.objectStoreNames.contains(t))return n.df.error("Could not retrieve objects from "+t+" on indexedDB "+n.database.Sf+" - "+t+" is not a valid objectStore"),void r.close();let s=r.transaction([t],"readwrite");s.oncomplete=()=>r.close();let a=s.objectStore(t),o=a.openCursor(),l=[];o.onerror=()=>{l.length>0?(n.df.info("Cursor closed midway through for "+t+" on indexedDB "+n.database.Sf),i(l)):n.df.error("Could not open cursor for "+t+" on indexedDB "+n.database.Sf)},o.onsuccess=t=>{var n;let r=null==(n=t.target)?void 0:n.result;null!=r?(null!=r.value&&null!=r.key&&(a.delete(r.key).onsuccess=()=>{l.push(r.value)}),"function"==typeof r.continue&&r.continue()):l.length>0&&i(l)}})}clearData(){if(!this.isSupported())return!1;let t=[];for(let i in this.database.Ws)this.database.Ws.hasOwnProperty(i)&&this.database.Ws[i]!==this.database.Ws.ke&&t.push(this.database.Ws[i]);let i=this;return this.Bf(function(n){let r=n.transaction(t,"readwrite");r.oncomplete=()=>n.close();for(let n=0;n<t.length;n++){let s=t[n];r.objectStore(s).clear().onerror=function(){i.df.error("Could not clear "+this.source.name+" on indexedDB "+i.database.Sf)}}r.onerror=function(){i.df.error("Could not clear object stores on indexedDB "+i.database.Sf)}})}}r._s={Xs:{Sf:"AppboyServiceWorkerAsyncStorage",VERSION:6,Ws:{Jh:"data",Fr:"pushClicks",Gu:"pushSubscribed",Cf:"fallbackDevice",Vs:"cardUpdates",ke:"optOut",Dr:"pendingData",ac:"sdkAuthenticationSignature"},ze:1}}},54924:(t,i,n)=>{"use strict";function r(t){null==t&&(t="");let i=t.split("?").slice(1).join("?"),n={};if(null!=i){let t=i.split("&");for(let i=0;i<t.length;i++){let r=t[i].split("=");""!==r[0]&&(n[r[0]]=r[1])}}return n}function s(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}n.d(i,{P:()=>s,y:()=>r})},55617:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});class r{q(t){}changeUser(t=!1){}clearData(t=!1){}}},55679:(t,i,n)=>{"use strict";n.d(i,{A:()=>l});var r=n(34063),s=n(64357),a=n(74224),o=n(13612);let l={Dt:(t,i,n)=>{var l,u;let c=new o.A,d=s.Ay.u();if(!d)return r.A.info(`Not logging event with type "${t}" because the current session ID could not be found.`),c;let h=d.ol();
1return c.Ne.push(new a.A(n||(null==(l=s.Ay.ir())?void 0:l.getUserId()),t,new Date().valueOf(),h,i)),c.lt=(null==(u=s.Ay.p())?void 0:u.ll(c.Ne))||!1,c}}},56760:(t,i,n)=>{"use strict";n.d(i,{b:()=>s});var r=n(5138);function s(t){let i,n=null==t?void 0:t.St(r.d.It.uS);return n&&(i={label:n.l,name:n.a}),i}},56840:(t,i,n)=>{"use strict";n.d(i,{Ht:()=>f,aw:()=>p,iX:()=>c,qm:()=>h});var r=n(53243),s=n(85111),a=n(14232);let o=r.p&&window.__SWR_DEVTOOLS_USE__,l=o?window.__SWR_DEVTOOLS_USE__:[],u=t=>(0,r.e)(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],c=()=>{let t=(0,a.useContext)(r.q);return(0,a.useMemo)(()=>(0,r.m)(r.d,t),[t])},d=l.concat(t=>(i,n,a)=>{let o=n&&((...t)=>{let[a]=(0,r.s)(i),[,,,o]=r.a.get(r.o);if(a.startsWith(s.q))return n(...t);let l=o[a];return(0,r.i)(l)?n(...t):(delete o[a],l)});return t(i,o,a)}),h=t=>function(...i){let n=c(),[s,a,o]=u(i),l=(0,r.t)(n,o),h=t,{use:p}=l,f=(p||[]).concat(d);for(let t=f.length;t--;)h=f[t](h);return h(s,a||l.fetcher||null,l)},p=(t,i,n)=>{let r=i[t]||(i[t]=[]);return r.push(n),()=>{let t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},f=(t,i)=>(...n)=>{let[r,s,a]=u(n),o=(a.use||[]).concat(i);return t(r,s,{...a,use:o})};o&&(window.__SWR_DEVTOOLS_REACT__=a)},56905:(t,i,n)=>{"use strict";n.d(i,{k:()=>r});let r={ManualFrontpage:"manual-frontpage",PeFrontpage:"pe-frontpage",Other:"other"}},57543:(t,i,n)=>{"use strict";n.d(i,{L:()=>a,a:()=>o});var r=n(59575),s=n(78101);let a=()=>{{var t;let i=o();return null!=(t=(0,r.k3)(s.s.getItem(r.dv)))?t:i}},o=()=>window.matchMedia("(prefers-color-scheme: dark)").matches},57551:(t,i,n)=>{"use strict";n.d(i,{A:()=>a});var r=n(15244),s=n(73817);class a{constructor(t,i,n,o,l,u,c){this.text=t,this.backgroundColor=i,this.textColor=n,this.borderColor=o,this.clickAction=l,this.uri=u,this.id=c,this.text=t||"",this.backgroundColor=i||s.S9._E,this.textColor=n||s.S9.AE,this.borderColor=o||this.backgroundColor,this.clickAction=l||s.Os.NONE,this.uri=u,null==c&&(c=a.fa),this.id=c,this.rd=!1,this.ti=new r.A}subscribeToClickedEvent(t){return this.ti.Ut(t)}removeSubscription(t){this.ti.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}Yt(){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}static fromJson(t){return new a(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}a.fa=-1},57603:(t,i,n)=>{"use strict";n.r(i),n.d(i,{unregisterPush:()=>c});var r=n(64357),s=n(23801),a=n(5138),o=n(44341),l=n(48930),u=n(36994);function c(t,i){if(r.Ay.rr())return function(){if(!r.Ay.rr())return;let t=r.Ay.m();if(!t)return;let i=r.Ay.p(),n=null==i?void 0:i.St(a.d.It.xu);if(!n||"object"!=typeof n||Array.isArray(n))return;let s=o.A._u(n);if(!s.endpoint)return;let c=t.Z({},!0);c.push_token=s.endpoint;let d=t.tt(c,u.A.it.Xa);t.et(c,(n=-1)=>{r.Ay.rr()&&(u.A.nt(i,u.A.it.Xa,new Date().valueOf()),-1!==n&&d.push(["X-Braze-Req-Tokens-Remaining",n.toString()]),l.A.ot({url:`${t.ht()}/push/unregister`,data:c,headers:d,lt:i=>{t.ut(c,i,d)&&t.ct()}}))},u.A.it.Xa)}(),s.default.ra().unsubscribe(t,i)}},59045:(t,i,n)=>{"use strict";n.d(i,{$6:()=>c,V:()=>l,dy:()=>f,jj:()=>d,mY:()=>u,qj:()=>p});var r=n(34063),s=n(79835),a=n(25562),o=n(41232);let l={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",co:"openLink",mo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},u={ya:"unknownBrazeAction",cp:"noPushPrompt"},c=(t,i)=>t===u.ya?`${i} contains an unknown braze action type and will not be displayed.`:"";function d(t){try{let i=t.match(o.nx),n=i?i[0].length:null,s=n?t.substring(n):null;if(null==n||n>t.length-1||!s)return void r.A.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);let l=(0,a.uJ)(s);return l?JSON.parse(l):void r.A.error(`Failed to decode base64 encoded brazeAction: ${s}`)}catch(i){return void r.A.error(`Failed to process brazeAction URL ${t} : ${(0,s.u)(i)}`)}}function h(t,i){let n=!1;if(i){for(let r of i)if(n=n||t(r))return!0}return!1}function p(t){let i=l.properties.type,n=l.properties.eo;try{if(null==t)return!0;let r=t[i];
1return r===l.types.io?h(p,t[n]):!(0,o.To)(r)}catch(t){return!0}}function f(t){if(!t||!(0,o.xs)(t))return!1;let i=l.properties.type,n=l.properties.eo,r=t[i];return r===l.types.io?h(f,t[n]):r===l.types.requestPushPermission}},59575:(t,i,n)=>{"use strict";n.d(i,{dv:()=>m,NP:()=>v,k3:()=>y,DP:()=>w});var r=n(37876),s=n(27964),a=n(17924),o=n(62498),l=n(14232),u=n(60697),c=n(57543),d=n(78101),h=n(97843);let p=(t,i,n,r)=>{let s=i(t);return null!==t&&(null==r?void 0:r.some(t=>t===s))?s:n};var f=n(72848);let m="darkMode",g=t=>!!t&&"true"===t.toString(),b=(0,l.createContext)(null),v=(0,l.memo)(t=>{let i,v,w,A,S,_,E,k,x,I,O,C,T,P,N=(0,s.c)(28),{children:j,sectionTheme:R}=t,D=(0,f.P)(),[M,U]=(0,l.useState)(R);N[0]===Symbol.for("react.memo_cache_sentinel")?(i=[!0,!1],N[0]=i):i=N[0];let[B,z]=((t,i,n,r)=>{let s=p(d.s.getItem(t),n,i,r),[a,o]=(0,l.useState)(s),u=(0,l.useCallback)(i=>{let n=i instanceof Function?i(a):i;return o(n),null!=n?d.s.setItem(t,String(n)):d.s.removeItem(t),i},[a,t]),c=(0,l.useCallback)(s=>{s.key===t&&u(p(s.newValue,n,i,r))},[r,i,t,u,n]);return(0,h.l)("storage",c),[a,u]})(m,void 0,y,i),[L,F]=(0,l.useState)(void 0);N[1]===Symbol.for("react.memo_cache_sentinel")?(v=(0,c.a)(),N[1]=v):v=N[1];let[$,q]=(0,l.useState)(v);N[2]!==D||N[3]!==R?(w=(0,u.N9)(D,R),N[2]=D,N[3]=R,N[4]=w):w=N[4];let[V,W]=(0,l.useState)(w);M!==R&&(U(R),W((0,u.N9)(D,R))),N[5]!==z?(A=()=>{let t=t=>{var i;z((null==(i=t.detail)?void 0:i.colorScheme)==="dark")};return(0,a.yb)(o.mB.SetColorScheme,t),()=>{(0,a.Bv)(o.mB.SetColorScheme,t)}},S=[z],N[5]=z,N[6]=A,N[7]=S):(A=N[6],S=N[7]),(0,l.useEffect)(A,S),N[8]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{let t=window.matchMedia("(prefers-color-scheme: dark)"),i=t=>{q(t.matches)};return t.addEventListener("change",i),()=>{t.removeEventListener("change",i)}},E=[],N[8]=_,N[9]=E):(_=N[8],E=N[9]),(0,l.useEffect)(_,E),N[10]!==B||N[11]!==$||N[12]!==L?(k=()=>{var t,i,r;r=null!=(t=null!=(i=null!=L?L:B)?i:$)&&t,n.g.document.documentElement.classList.toggle("sndp-dark",g(r))},x=[L,B,$],N[10]=B,N[11]=$,N[12]=L,N[13]=k,N[14]=x):(k=N[13],x=N[14]),(0,l.useEffect)(k,x),N[15]!==B||N[16]!==$?(I=null==B?g($):g(B),N[15]=B,N[16]=$,N[17]=I):I=N[17],N[18]!==z?(O=t=>{z(null!=t&&t)},N[18]=z,N[19]=O):O=N[19],N[20]===Symbol.for("react.memo_cache_sentinel")?(C=t=>{F(t)},N[20]=C):C=N[20],N[21]!==V||N[22]!==I||N[23]!==O?(T={designSystem:V,isDarkMode:I,setDarkMode:O,setDesignSystem:W,setTransientDarkMode:C},N[21]=V,N[22]=I,N[23]=O,N[24]=T):T=N[24];let J=T;return N[25]!==j||N[26]!==J?(P=(0,r.jsx)(b.Provider,{value:J,children:j}),N[25]=j,N[26]=J,N[27]=P):P=N[27],P}),y=t=>{switch(t){case"true":return!0;case"false":return!1;default:return null}},w=()=>{let t=(0,l.useContext)(b);if(!t)throw Error("useTheme must be used within <ThemeProvider />");return t}},59712:(t,i,n)=>{"use strict";n.d(i,{$:()=>b,$Y:()=>z,Bc:()=>O,FO:()=>k,IO:()=>J,Kv:()=>_,LJ:()=>Q,M4:()=>y,MM:()=>Y,MV:()=>S,PL:()=>V,PQ:()=>P,Pm:()=>Z,SV:()=>$,Uk:()=>ee,W2:()=>B,WO:()=>L,Wh:()=>C,XE:()=>v,Xo:()=>T,YT:()=>h,ZD:()=>g,_E:()=>R,bO:()=>A,bm:()=>H,c8:()=>x,hb:()=>I,nU:()=>E,oL:()=>M,p1:()=>D,pH:()=>w,ps:()=>F,q4:()=>W,rK:()=>q,uB:()=>j,vE:()=>U,yX:()=>et,yw:()=>p,zH:()=>d});var r=n(17924),s=n(5652),a=n(62498);n(31064);var o=n(63881),l=n(464),u=n(91421),c=n(78101);let d=(t,i,n)=>m(f(t),i,n),h=t=>{let i=d(t);return"window.dataLayer && window.dataLayer.push && window.dataLayer.push(".concat(JSON.stringify(i),")")},p=(t,i)=>{var n;if(null==(n=window.dataLayer)?void 0:n.push){let n=m(f(i));n.event="virtualPageview";let r=document.location.pathname;n.page={...n.page,pageName:r,b2bBrandSafety:t},window.dataLayer.push(n)}},f=t=>(null==t?void 0:t.analyticsMetadata)?t.analyticsMetadata:null,m=(t,i,n)=>t?{page:t,page_brand:i,cookie_consent:null==n?void 0:n.consents}:{},g=(t,i)=>{i?(0,r.Wr)({type:a.oi.SendAnalyticsUIEvent,event:{name:t.event_name,...t}}):b(t)},b=t=>{var i;null==(i=window.dataLayer)||i.push(t)},v=(t,i)=>{b({event:"eventInfo",eventCategory:"ui action",eventAction:t,eventLabel:i})},y=(t,i)=>{b({event:"ui_event",event_name:t,label:i})},w=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";b({event:"ui_event",event_name:t,label:i,ui_context:n})},A=(t,i)=>()=>
1{v(t,i)},S=(t,i)=>{b({event:"eventInfo",eventCategory:"save article",eventAction:t,eventLabel:i})},_=t=>"OptIn"===t||"OptOut"!==t&&void 0,E=()=>{var t;let i=!1;if(null==(t=window.utag_data)?void 0:t.adKeywords){let t=window.utag_data.adKeywords;Object.keys(t).length&&"brandsfIndication"in t&&(i=t.brandsfIndication)}return i},k=()=>{b({event:"loginStatus",user:{loggedIn:0},page:{b2bBrandSafety:E()}})},x=t=>{let i=G();b({event:"loginStatus",user:{loggedIn:1,sanomaAccountODC:+("OPTIN"===t.odcValue),sanomaAccountOCM:_(t.ocmValue),sanomaAccountID:t.hashedAccountId,sanomaEncodedAccountID:t.accountIdEncoded,sanomaAccountUserType:t.userType,subscriptionDetails:{...t.subscriptionDetails}},...i&&{sndpEntitlements:i},page:{b2bBrandSafety:E()}})},I=()=>{b({event:"eventInfo",eventAction:"login done",eventCategory:"login",eventLabel:"SSO"})},O=t=>{b({event:"eventInfo",eventAction:"login failure",eventCategory:"login",eventLabel:t})},C=(t,i)=>{b({event:"eventInfo",eventCategory:"follow topic",eventAction:t,eventLabel:i})},T=(t,i)=>{b({event:"eventInfo",eventCategory:"braze",eventAction:t,eventLabel:i})},P=(t,i)=>{b({event:"eventInfo",eventCategory:"google extended access",eventAction:t,eventLabel:i})},N=(t,i)=>{b({event:"eventInfo",eventCategory:"local news ".concat(t),eventAction:i})},j=(t,i)=>{N(t,"display module ".concat(i))},R=(t,i,n)=>{N(t,"location method ".concat(i,"-").concat(n))},D=(t,i)=>{N(t,"impression visible for second ".concat(i))},M=(t,i)=>{N(t,"location method ".concat(i," pinned-box"))},U=(t,i)=>{N(t,"show more ".concat(i))},B=t=>{N(t,"change reference group")},z=(t,i)=>{b({event:"eventInfo",eventCategory:"social share",eventAction:t,eventLabel:i})},L=function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];b({event:"eventInfo",eventCategory:"comments",eventAction:t,eventLabel:n.map(t=>t.toString().trim()).filter(t=>t.length>0).join("/")})},F=t=>{b({event:"eventInfo",eventCategory:"newsletter",eventAction:t})},$=t=>{b({event:"eventInfo",eventCategory:"iframe lane item",eventAction:"impression",eventLabel:t})},q=()=>{b({event:"eventInfo",eventCategory:"login",eventAction:"auto welcome back dismissed"})},V=()=>{b({event:"eventInfo",eventCategory:"promobox",eventAction:"article opened"})},W=(t,i,n)=>{i&&n?K(t,n):void 0!==window.__sadapi&&window.__sadapi("cdp/sendEvent",null,t)},J=t=>{(0,l.HL)()&&(null==t?void 0:t.length)&&c.s.setJSON(o.lu,t,!1)},G=()=>c.s.getJSON(o.lu),H=()=>{u.c.removeItem(o.lu)},K=(t,i)=>{let n=X(t),o=((t,i)=>{let n=X(t);if(!i||n!==s.fd.showPaywall)return i;{let{dataTags:t,themeTags:n,contentLength:r,...s}=i;return s}})(t,i);(0,r.Wr)({type:a.oi.SendCDPAnalyticsEvent,event:{eventType:n,cdpMetadata:{page:o}}})},Z=t=>{let{assetId:i,error:n,errorMessage:r}=t;b({event:"eventInfo",eventAction:n?"error":"listen article",eventLabel:null!=r?r:i,eventCategory:"audio"})},X=t=>{switch(t){case s.lI.showHardPaywall:case s.lI.showArchivedPaywall:case s.lI.showEditionPaywall:case s.lI.showLoginWall:case s.lI.showLehtimuuri:return s.fd.showPaywall;case s.lI.clickLogin:return s.fd.clickLogin;case s.lI.clickSubscribe:return s.fd.clickSubscribe;case s.lI.closeMeteredWall:case s.lI.closeLehtimuuri:return s.fd.dismissWall;case s.Kf.LoginDone:return s.fd.loginDone}},Y=t=>{if(t&&("Article"===t.resourceType||"Advertorial"===t.resourceType||"Recipe"===t.resourceType||"Audio"===t.resourceType)){var i;return null==(i=t.analyticsMetadataV2)?void 0:i.ga_id}},Q=t=>{var i;if(t&&("Audio"===t.resourceType||"Article"===t.resourceType)&&(null==(i=t.adMetadata)?void 0:i.freeWheelSite))return t.adMetadata.freeWheelSite},ee=(t,i)=>{let n=(null==t?void 0:t.resourceType)==="Article"&&void 0!==t.liveArticle;i&&(i.liveArticle=n)},et=t=>{var i;if(t&&("Audio"===t.resourceType||"Article"===t.resourceType)&&(null==(i=t.adMetadata)?void 0:i.ad_site_name))return t.adMetadata.ad_site_name}},60697:(t,i,n)=>{"use strict";n.d(i,{JX:()=>p,N9:()=>o,TD:()=>l,US:()=>f,jJ:()=>h,w9:()=>c});var r=n(99742);let s={hs:{fullBrandName:"Helsingin Sanomat",domain:"hs"},al:{fullBrandName:"Aamulehti",domain:"aamulehti"},is:{fullBrandName:"Ilta-Sanomat",domain:"is"},jan:{fullBrandName:"Janakkalan Sanomat",domain:"janakkalansanomat"},js:{fullBrandName:"J\xe4ms\xe4n Seutu",domain:"jamsanseutu"},kmv:{fullBrandName:"KMV-lehti",domain:"kmvlehti"},ks:{fullBrandName:"Kankaanp\xe4\xe4n Seutu",domain:"kankaanpaanseutu"},mk:{fullBrandName:"Merikarvia-lehti",domain:"merikarvialehti"},nu:{fullBrandName:"Nokian Uutiset",domain:"nokianuutiset"},rks:{fullBrandName:"Rannikkoseutu",domain:"rannikkoseutu"},sk:{fullBrandName:"Satakunnan Kansa",domain:"satakunnankansa"},ss:{fullBrandName:"Syd\xe4n-Satakunta",domain:"sydansatakunta"},suk:{fullBrandName:"Suur-Keuruu",domain:"suurkeuruu"},tyr:{fullBrandName:"Tyrv\xe4\xe4n Sanomat",domain:"tyrvaansanomat"},vs:{fullBrandName:"Valkeakosken Sanomat",domain:"valkeakoskensanomat"}},a=Object.keys(s),o=(t,i)=>"menaiset"===i?"mn":"business"===i?"business":"hs"!==t&&"is"!==t&&a.includes(t)?"aluemedia":t,l=t=>{let[i]=Object.entries(s).map(t=>{let[i,{domain:n}]=t;return{url:"".concat(n,".fi"),brandName:i}}).filter(i=>null==t?void 0:t.includes(i.url));
1if(null==t?void 0:t.includes("10.0.2.2")){let t=r.env.DEFAULT_PRODUCT;if(t&&u(t))return t}if(void 0===t||!i||!u(i.brandName))throw Error("Could not detect brand from hostname: ".concat(t," provided to getBrandFromHostname"));return i.brandName},u=t=>Object.keys(s).includes(t),c=t=>s[t].fullBrandName,d=["local","dev","test","preview-test","qa","prod","preview-prod"],h=(t,i)=>{let n,r=(n=p(t),{local:"http://local.".concat(n,".fi:3000"),dev:"https://dev.".concat(n,".fi"),test:"https://test.".concat(n,".fi"),"preview-test":"https://esikatselu-test.".concat(n,".fi"),"preview-prod":"https://esikatselu.".concat(n,".fi"),prod:"https://www.".concat(n,".fi"),qa:"https://qa.".concat(n,".fi")}),s=r.test;return d.includes(i)?r[i]:s},p=t=>s[t].domain,f=t=>{switch(t){case"is":return"iltasanomat";case"hs":return"helsinginsanomat";default:return p(t)}}},61028:(t,i,n)=>{"use strict";n.d(i,{h:()=>E});var r=n(27964),s=n(72848),a=n(32037),o=n(91421),l=n(99373),u=n(70158),c=n(99142);let d="cep-init",h=c.KCZ([c.zMY(),c.chJ()]),p=async(t,i)=>{let n="/api/cep/".concat("v1","/").concat(i,"/").concat(t);return await (0,a.d)({url:n,requestOptions:{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}}})},f=async(t,i,n)=>{if("propensity"!==t||!i)return!1;let r=o.c.getItem(d,864e5);if(r){let t=h.safeParse(JSON.parse(r));if(t.success)return t.data}try{let t=(0,u.xy)();if(!t)return!1;let i=await p(t,n);return o.c.setItem(d,String(i.allowCepInitialization),(0,l._g)()),i.allowCepInitialization}catch(t){return console.error("Failed to fetch CEP",String(t)),o.c.setItem(d,"null",(0,l._g)()),null}};var m=n(23191),g=n(18858),b=n(63593),v=n(72974),y=n(92739),w=n(51144),A=n(37156),S=n(59712),_=n(68684);let E=t=>{var i,n,a;let o,l,u=(0,r.c)(9),c=(0,s.P)(),d=(0,m.U)(),h=null==(i=d.braze)?void 0:i.sdkEndpoint,p=null==(n=d.braze)?void 0:n.clientTokens[c],{userProfile:E}=(0,y.sb)(),k=(0,g.R7)(),x=!0===k["braze.web-sdk.enabled"],I=k["braze.web-sdk.anon.tracking.mode"],O=k["braze.web-sdk.page-views.threshold"],{loadBraze:C}=(0,b.g$)(),{pageViews:T}=(0,v.ju)(),P=E.authenticationStatus===w.J.Unknown;u[0]!==c||u[1]!==I||u[2]!==C?(o=()=>f(I,C,c),u[0]=c,u[1]=I,u[2]=C,u[3]=o):o=u[3];let{data:N,isLoading:j}=(0,A.E)((0,_.M3)(E)?null:"allowCepInitialization",o),R=((t,i,n,r)=>{if(t.authenticationStatus!==w.J.Unauthenticated)return!1;switch(i){case"propensity":return null!=n?n:r;case"pageView":return r;default:return!1}})(E,I,N,!!O&&(null!=T?T:0)>=O),D=((0,_.M3)(E)&&(null!=(a=(0,S.Kv)(E.ocmValue))?a:"OPTIN"===E.odcValue)||R)&&x&&C&&t&&!!h&&!!p;if(j||P||null===t){let t;return u[4]===Symbol.for("react.memo_cache_sentinel")?(t={shouldLoadBraze:void 0,sdkEndpoint:void 0,clientToken:void 0},u[4]=t):t=u[4],t}if(D&&h&&p){let t;return u[5]!==p||u[6]!==h?(t={shouldLoadBraze:!0,sdkEndpoint:h,clientToken:p},u[5]=p,u[6]=h,u[7]=t):t=u[7],t}return u[8]===Symbol.for("react.memo_cache_sentinel")?(l={shouldLoadBraze:!1,sdkEndpoint:void 0,clientToken:void 0},u[8]=l):l=u[8],l}},61127:(t,i,n)=>{"use strict";n.d(i,{Ww:()=>eD,ml:()=>eM});var r=n(37876),s=n(27964),a=n(64357),o=n(54099),l=n(34063),u=n(5138),c=n(72928),d=n(12470),h=n(26578),p=n(29213),f=n(39721),m=n(28005),g=n(9848),b=n(57603),v=n(42087),y=n(30952),w=n(79921),A=n(78978),S=n(37206),_=n(41232),E=n(4597);function k(t,i,n){if(!a.Ay.rr())return void l.A.warn(w.em.ee);let r=a.Ay.l();if(!r)return;if(!(0,S.cy)(t)||0===t.length)return void l.A.warn("placementIds should be a non-empty array.");let s=E.A.o();if(!1===r.Ot()&&l.A.error(A.L.aa),!s.P())return void r.V(()=>{k(t,i,n)});let o=r.re();t.length>o&&(l.A.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${o} (max allowed).`),t=t.slice(0,o)),0!==(t=t.filter(t=>!!(0,_.L4)(t)||(l.A.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${t}`),!1))).length&&(l.A.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),s.O(t,i,n))}var x=n(82793),I=n(55679),O=n(8464),C=n(72848),T=n(18858),P=n(92739),N=n(68239),j=n(2132),R=n(23191),D=n(63593),M=n(4039),U=n(89099),B=n(14232),z=n(20615),L=n(33399),F=n(74730),$=n(61028),q=n(51144),V=n(59712),W=n(464),J=n(68684),G=n(98203);let H=["article_tail","shopping_confirmation"],K=(t,i)=>H.concat(t).map(t=>[i,t].join("_")),Z="braze_banners_refreshed_v1";
1var X=n(81761),Y=n(75161),Q=n(33954),ee=n(70784),et=n(13890),ei=n(42488),en=n(73128),er=n(93908),es=n(83607),ea=n(49466),eo=n(76577),el=n(91149);function eu(t,i){return null==t||isNaN(t=parseInt(t.toString()))?"":(i&&!isNaN(parseFloat(i.toString()))||(i=1),"rgba("+[(0xff0000&(t>>>=0))>>>16,(65280&t)>>>8,255&t,((0xff000000&t)>>>24)/255*i].join(",")+")")}var ec=n(73817);function ed(t){if(!a.Ay.rr())return!1;if(!(t instanceof en.A||t instanceof et.A))return l.A.error(ec.iA.EE),!1;let i=t instanceof et.A?x.w.om:x.w.ua;return ee.A.ra().Dt(t,i).lt}var eh=n(59045),ep=n(16798),ef=n(1981),em=n(81415);function eg(t,i,r){if(a.Ay.rr())if(_.nx.test(t)){let i=(0,eh.jj)(t);if(!i)return;let r=t=>{if(!(0,_.xs)(t))return void l.A.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);let i=eh.V.properties.type,s=eh.V.properties.eo,o=eh.V.properties.so,u=t[i];if(u===eh.V.types.io)for(let i of t[s])r(i);else{let i,r,s=t[o];switch(u){case eh.V.types.logCustomEvent:Promise.resolve().then(n.bind(n,38745)).then(({logCustomEvent:t})=>{a.Ay.vr()?t(...r=Array.prototype.slice.call(s)):l.A.error(w.em.ee)});break;case eh.V.types.requestPushPermission:Promise.resolve().then(n.bind(n,39721)).then(({requestPushPermission:t})=>{a.Ay.vr()?"Safari"===ep.A.browser&&ep.A.OS===ef.u.ao?window.navigator.standalone&&t():t():l.A.error(w.em.ee)});break;case eh.V.types.setEmailNotificationSubscriptionType:case eh.V.types.setPushNotificationSubscriptionType:case eh.V.types.setCustomUserAttribute:case eh.V.types.addToSubscriptionGroup:case eh.V.types.removeFromSubscriptionGroup:case eh.V.types.addToCustomAttributeArray:case eh.V.types.removeFromCustomAttributeArray:(i=(0,d.w)())&&i[u](...Array.prototype.slice.call(s));break;case eh.V.types.co:case eh.V.types.mo:r=Array.prototype.slice.call(s),em.uD.openUri(...r);break;default:{let t=a.Ay.br(),i=null!=t?t.lo(u):null;i?a.Ay.vr()?i(Array.prototype.slice.call(s)):l.A.error(w.em.ee):l.A.info(`Ignoring unknown Braze Action: ${u}`)}}}};r(i)}else em.uD.openUri(t,i,r)}function eb(t,i,n){if(!a.Ay.rr())return!1;if(!(t instanceof ei.A))return l.A.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let r=x.w.pa;null!=i&&(r=x.w.ha);let s=ee.A.ra().Dt(t,r,i,n);if(s.lt)for(let n=0;n<s.Ne.length;n++)g.B.o().Pe(m.A.rm,[t.triggerId,i],s.Ne[n]);return s.lt}var ev=n(54924);let ey=(t,i,n,r)=>{let s=n.getAttribute("href"),a=n.onclick;return o=>{if(null!=a&&"function"==typeof a&&!1===a.bind(n)(o))return;let l=(0,ev.y)(s).abButtonId;if(null!=l&&""!==l||(l=n.getAttribute("id")||void 0),null!=s&&""!==s&&0!==s.indexOf("#")){let a="blank"===(n.getAttribute("target")||"").toLowerCase().replace("_",""),u=r||t.openTarget===ec.vG.BLANK||a,c=()=>{eb(t,l,s),em.uD.openUri(s,u,o)};u?c():t.tl(i,c)}else eb(t,l,s||void 0);return o.stopPropagation(),!1}};var ew=n(93157),eA=n(57551),eS=n(40814),e_=n(79808),eE=n(68929);let ek={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"ليس لدينا أي تحديث. يرجى التحقق مرة أخرى لاحقاً",FEED_TIMEOUT_MESSAGE:"يرجى تكرار المحاولة لاحقا"},cs:{NO_CARDS_MESSAGE:"V tuto chv\xedli pro v\xe1s nem\xe1me ž\xe1dn\xe9 aktualizace.<br/>Zkontrolujte pros\xedm znovu později.",FEED_TIMEOUT_MESSAGE:"Pros\xedm zkuste to znovu později."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\xf8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\xf8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\xfcgbar.<br/>Bitte sp\xe4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\xe4ter noch einmal versuchen."},es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\xe9belo m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\xe9ntelo m\xe1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\xf3n.<br/>Vuelva a verificar m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\xe1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\xe4ivityksi\xe4 ei ole saatavilla.<br/>Tarkista my\xf6hemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yrit\xe4 my\xf6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \xe0 jour disponible.<br/>Veuillez v\xe9rifier ult\xe9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\xe9essayer ult\xe9rieurement."},he:{NO_CARDS_MESSAGE:".אין לנו עדכונים. בבקשה בדוק שוב בקרוב",FEED_TIMEOUT_MESSAGE:".בבקשה נסה שוב בקרוב"},hi:{NO_CARDS_MESSAGE:"हमारे पास कोई अपडेट नहीं हैं। कृपया बाद में फिर से जाँच करें.।",FEED_TIMEOUT_MESSAGE:"कृपया बाद में दोबारा प्रयास करें।."},id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare pi\xf9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\xf9 tardi."},ja:{NO_CARDS_MESSAGE:"アップデートはありません。<br/>後でもう一度確認してください。",FEED_TIMEOUT_MESSAGE:"後でもう一度試してください。"},ko:{NO_CARDS_MESSAGE:"업데이트가 없습니다. 다음에 다시 확인해 주십시오.",FEED_TIMEOUT_MESSAGE:"나중에 다시 시도해 주십시오."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",FEED_TIMEOUT_MESSAGE:"Vennligst pr\xf8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Proszę sprawdzić ponownie p\xf3źniej.",FEED_TIMEOUT_MESSAGE:"Proszę spr\xf3bować ponownie p\xf3źniej."},pt:{NO_CARDS_MESSAGE:"N\xe3o temos atualiza\xe7\xf5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\xe3o temos nenhuma atualiza\xe7\xe3o.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.",FEED_TIMEOUT_MESSAGE:"Пожалуйста, повторите попытку позже."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>
1F\xf6rs\xf6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\xf6rs\xf6k igen senare."},th:{NO_CARDS_MESSAGE:"เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.",FEED_TIMEOUT_MESSAGE:"กรุณาลองใหม่ภายหลัง."},uk:{NO_CARDS_MESSAGE:"Оновлення недоступні.<br/>ласка, перевірте знову пізніше.",FEED_TIMEOUT_MESSAGE:"Будь ласка, спробуйте ще раз пізніше."},vi:{NO_CARDS_MESSAGE:"Ch\xfang t\xf4i kh\xf4ng c\xf3 cập nhật n\xe0o.<br/>Vui l\xf2ng kiểm tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui l\xf2ng thử lại sau."},"zh-hk":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-hans":{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."},"zh-hant":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-tw":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},zh:{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."}};class ex{constructor(t,i=!1){if(this.language=t,null!=t&&(t=t.toLowerCase()),null!=t&&null==ek[t]){const i=t.indexOf("-");i>0&&(t=t.substring(0,i))}if(null==ek[t]){const n="Braze does not yet have a localization for language "+t+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";i?l.A.error(n):l.A.info(n),t="en"}this.language=t}get(t){return ek[this.language][t]}Ca(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}let eI={i:!1,na:null,ra:()=>{if(eI.t(),!eI.na){let t=ep.A.language,i=!1;a.Ay.er(a.lw.al)&&(t=a.Ay.er(a.lw.al),i=!0),eI.na=new ex(t,i)}return eI.na},t:()=>{eI.i||(a.Ay.g(eI),eI.i=!0)},destroy:()=>{eI.na=null,eI.i=!1}};function eO(t,i,n){let r;if(!a.Ay.rr())return;if((0,e_.n)(void 0,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text[dir=rtl]{border-width:5px 10px 5px 25px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{dis
1play:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img img{width:100%;height:100%;object-fit:cover;object-position:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.827
158621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100
1%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}"),function(){if(a.Ay.er(a.lw.vl))return;let t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(i)}}(),null==t)return!1;if(t instanceof et.A)return l.A.info("User received control for a multivariate test, logging to Braze servers."),ed(t),!0;if(!(t instanceof en.A)||t.constructor===en.A)return!1;t._h();let s=t instanceof ei.A;if(s&&!t.trusted&&!a.Ay.dr())return l.A.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==i&&(i=document.body),t.zo()&&i.querySelectorAll(`.ab-modal-interactions, .${ec.jt}`).length>0)return l.A.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if(em.uD.$a()){let i=em.uD.Ua();if(i===em.j3.PORTRAIT&&t.orientation===ec.I5.LANDSCAPE||i===em.j3.LANDSCAPE&&t.orientation===ec.I5.PORTRAIT){let n=i===em.j3.PORTRAIT?"portrait":"landscape",r=t.orientation===ec.I5.PORTRAIT?"portrait":"landscape";return l.A.info(`Not showing ${r} in-app message ${t.message} because the screen is currently ${n}`),!1}}if(!a.Ay.dr()){let i=!1;if(t.buttons&&t.buttons.length>0){let n=t.buttons;for(let t=0;t<n.length;t++)if(n[t].clickAction===ec.Os.URI){let r=n[t].uri;if((0,ev.P)(r)){i=!0;break}}}else t.clickAction===ec.Os.URI&&(i=(0,ev.P)(t.uri));if(i)return l.A.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}let o=document.createElement("div");if(o.className="ab-iam-root v3",t.zo()&&(o.className+=` ${ec.jt}`),o.className+=(r="",t.animateIn&&(r+=" ab-animate-in"),t.animateOut&&(r+=" ab-animate-out"),t instanceof es.A?r+=" ab-effect-fullscreen":t instanceof ei.A?r+=" ab-effect-html":t instanceof ea.A?r+=" ab-effect-modal":t instanceof er.A&&(r+=" ab-effect-slide"),r),t.language&&!s&&(o.lang=t.language),t.Eo()&&(o.id=t.htmlId),a.Ay.er(a.lw.Ee)&&(o.style.zIndex=(a.Ay.er(a.lw.Ee)+1).toString()),i.appendChild(o),t.Oo()){let i=document.createElement("style");i.innerHTML=t.css,i.id=t.ko(),null!=a.Ay.er(a.lw.sr)&&i.setAttribute("nonce",a.Ay.er(a.lw.sr)),document.getElementsByTagName("head")[0].appendChild(i)}let u=t instanceof er.A,c=function(t,i,n,r,s,o,u=document.body,c="ltr"){if(t.$o=document.activeElement,t instanceof ei.A){let n=document.createElement("iframe");if(n.setAttribute("title","Modal Message"),s&&(n.style.zIndex=(s+1).toString()),(0,ew.Te)(n,t.message,o),n.onload=()=>{let s=n.contentWindow;s.focus();let a=s.document.getElementsByTagName("head")[0];if(null!=a){if(t.Oo()){let i=document.createElement("style");i.innerHTML=t.css||"",i.id=t.ko()||"",null!=o&&i.setAttribute("nonce",o),a.appendChild(i)}let i=s.document.createElement("base");null!=i&&(i.setAttribute("target","_parent"),a.appendChild(i))}let l=s.document.getElementsByTagName("title");l&&l.length>0&&n.setAttribute("title",l[0].textContent||"");let u=Object.assign(Object.assign({},(0,ew.KV)(n,(i,n)=>t.tl(i,n))),{closeMessage:function(){t.tl(n)},logClick:function(){eb(t,...arguments)}});if(s.appboyBridge=u,s.brazeBridge=u,t.Bo!==ec.o6.CE){let i=s.document.getElementsByTagName("a");for(let s=0;s<i.length;s++)i[s].onclick=ey(t,n,i[s],r);let a=s.document.getElementsByTagName("button");for(let i=0;i<a.length;i++)a[i].onclick=ey(t,n,a[i],r)}let c=s.document.body;if(null!=c){t.Eo()&&(c.id=t.htmlId||"");let i=document.createElement("hidden");i.onclick=u.closeMessage,i.className="ab-programmatic-close-button",c.appendChild(i)}s.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==n.className.indexOf("ab-start-hidden")&&(n.className=n.className.replace("ab-start-hidden",""),i(n))},n.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",ep.A.OS===ef.u.ao){let i=document.createElement("div");return i.className="ab-ios-scroll-wrapper",i.appendChild(n),t._o=i,i}return t._o=n,n}let d=function(t,i,n,r,s,o=document.body,u="ltr"){var c;let d=null,h=document.createElement("div");h.dir=u,h.className="ab-in-app-message ab-start-hidden ab-background",s&&(h.style.zIndex=(s+1).toString()),t.zo()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1")),t.Oo()||(h.style.color=eu
1(t.textColor),h.style.backgroundColor=eu(t.backgroundColor),null==(c=t.backgroundColor)||isNaN(c=parseInt(c.toString()))||(0xff000000&c)>>>24!=0||(h.className+=" ab-no-shadow"));let p=()=>{-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?n(`Cannot show in-app message ${t.message} because another message is being shown.`):i(h))},f=(i=!0)=>{let r=document.querySelectorAll(".ab-iam-root");r&&0!==r.length||(r=o.querySelectorAll(".ab-iam-root")),r&&r.length>0&&((r[0].classList.remove("ab-iam-img-loading"),d&&(clearTimeout(d),d=null),i)?p():n(`Cannot show in-app message ${t.message} because the image failed to load.`))};if(t.imageStyle===ec.uy.GRAPHIC&&(h.className+=" graphic"),t.orientation===ec.I5.LANDSCAPE&&(h.className+=" landscape"),null!=t.buttons&&0===t.buttons.length){t.clickAction!==ec.Os.NONE&&(h.className+=" ab-clickable");let i=i=>(t.tl(h,()=>{(function(t){if(!a.Ay.rr())return;if(!(t instanceof en.A))return l.A.error(ec.iA.EE);let i=ee.A.ra().Dt(t,x.w.pa);if(i){t.sm()||ed(t);for(let n=0;n<i.Ne.length;n++)g.B.o().Pe(m.A.rm,[t.triggerId],i.Ne[n])}i.lt})(t),t.clickAction===ec.Os.URI&&eg(t.uri||"",r||t.openTarget===ec.vG.BLANK,i)}),i.stopPropagation(),!1);h.onclick=i,h.addEventListener("keydown",t=>{if(t.keyCode===el.c.Lo||t.keyCode===el.c.qo)return i(t)})}let b=function(t,i,n,r="ltr"){let s=document.createElement("button");s.setAttribute("aria-label",t),s.setAttribute("role","button"),s.dir=r,(0,eo.P4)(s,"touchstart"),s.className="ab-close-button";let a=(0,eo.RJ)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",i);return s.appendChild(a),a.setAttribute("aria-hidden","true"),s.addEventListener("keydown",t=>{t.keyCode!==el.c.qo&&t.keyCode!==el.c.Lo||(n(),t.stopPropagation())}),s.onclick=t=>{n(),t.stopPropagation()},s}("Close Message",t.Oo()?void 0:eu(t.closeButtonColor),()=>{t.tl(h)},u);h.appendChild(b),s&&(b.style.zIndex=(s+2).toString());let v=document.createElement("div");v.className="ab-message-text",v.dir=u,v.setAttribute("role","article");let y=(t.messageAlignment||t.Ao).toLowerCase();v.className+=" "+y+"-aligned";let w=!1,A=document.createElement("div");if(A.className="ab-image-area",t.imageUrl){let i=document.createElement("img");if(i.setAttribute("src",t.imageUrl),t.Do(i),0===document.querySelectorAll(".ab-iam-img-loading").length){w=!0;let t=document.querySelectorAll(".ab-iam-root");t&&t.length>0&&t[0].classList.add("ab-iam-img-loading"),d=window.setTimeout(()=>{f(!1)},6e4),i.onload=()=>{f()},i.onerror=()=>{f(!1)}}if(t.cropType===ec.A5.CENTER_CROP){let t=document.createElement("div");t.className="ab-center-cropped-img",t.appendChild(i),A.appendChild(t)}else A.appendChild(i);h.appendChild(A),v.className+=" ab-with-image"}else if(t.icon){A.className+=" ab-icon-area";let i=document.createElement("span");i.className="ab-icon",t.Oo()||(i.style.backgroundColor=eu(t.iconBackgroundColor),i.style.color=eu(t.iconColor));let n=document.createElement("i");n.className="fa",n.appendChild(document.createTextNode(t.icon)),n.setAttribute("aria-hidden","true"),i.appendChild(n),A.appendChild(i),h.appendChild(A),v.className+=" ab-with-icon"}if((0,eo.P4)(v,"touchstart"),t.header&&t.header.length>0){let i=document.createElement("h1");i.className="ab-message-header",t.Go=eS.A.de(),i.id=t.Go;let n=(t.headerAlignment||ec.KP.CENTER).toLowerCase();i.className+=" "+n+"-aligned",t.Oo()||(i.style.color=eu(t.headerTextColor)),i.appendChild(document.createTextNode(t.header)),v.appendChild(i)}let S=t.Ho();return v.appendChild(S),h.appendChild(v),w||p(),t._o=h,h}(t,i,n,r,s,u,c);if(t instanceof es.A||t instanceof ea.A){var h,p;let i=t instanceof es.A?"ab-fullscreen":"ab-modal";d.className+=` ${i} ab-centered`,((t,i,n)=>{if(t.buttons&&t.buttons.length>0){let r=document.createElement("div");r.className="ab-message-buttons",i.appendChild(r);let s=i.getElementsByClassName("ab-message-text")[0];null!=s&&(s.className+=" ab-with-buttons");let o=r=>s=>(t.tl(i,()=>{(function(t,i){var n;if(!a.Ay.rr())return;if(!(t instanceof eA.A))return l.A.error("button must be an InAppMessageButton object");
1if(!(i instanceof en.A))return l.A.error(ec.iA.EE);let r=ee.A.ra().ga(t,i);if(r.lt)for(let s=0;s<r.Ne.length;s++)g.B.o().Pe(m.A.rm,[i.triggerId,null==(n=t.id)?void 0:n.toString()],r.Ne[s]);r.lt})(r,t),r.clickAction===ec.Os.URI&&eg(r.uri||"",n||t.openTarget===ec.vG.BLANK,s)}),s.stopPropagation(),!1);for(let i=0;i<t.buttons.length;i++){let n=t.buttons[i],s=document.createElement("button");s.className="ab-message-button",s.setAttribute("type","button"),(0,eo.P4)(s,"touchstart");let a=n.text;""===n.text&&(a="\xa0"),s.appendChild(document.createTextNode(a)),t.Oo()||(s.style.backgroundColor=eu(n.backgroundColor),s.style.color=eu(n.textColor),s.style.borderColor=eu(n.borderColor)),s.onclick=o(n),r.appendChild(s)}}})(t,d,r),(t=>{let i=t.querySelectorAll(".ab-close-button, .ab-message-button");for(let t=0;t<i.length;t++)i[t].tabIndex=0;if(i.length>0){let n=i[0],r=i[i.length-1];t.addEventListener("keydown",i=>{let s=document.activeElement;i.keyCode===el.c.Qo&&(i.shiftKey||s!==r&&s!==t?i.shiftKey&&(s===n||s===t)&&(i.preventDefault(),r.focus()):(i.preventDefault(),n.focus()))})}})(d),h=t.Go,(p=d).setAttribute("role","dialog"),p.setAttribute("aria-modal","true"),h?p.setAttribute("aria-labelledby",h):p.setAttribute("aria-label","Modal Message")}else if(t instanceof er.A){let i,n;d.className+=" ab-slideup",d.setAttribute("tabindex","0"),d.setAttribute("role","alert");let r=d.getElementsByClassName("ab-close-button")[0];if(null!=r){let i=(0,eo.RJ)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",t.Oo()?void 0:eu(t.closeButtonColor));i.setAttribute("class",`ab-chevron ${c}`),r.appendChild(i)}(0,eo.sr)(d,eo.X.ie,t=>{d.className+=" ab-swiped-left",null!=r&&null!=r.onclick&&r.onclick(t)}),(0,eo.sr)(d,eo.X.ne,t=>{d.className+=" ab-swiped-right",null!=r&&null!=r.onclick&&r.onclick(t)}),t.slideFrom===ec.r2.TOP?(i=eo.X.No,n=" ab-swiped-up"):(i=eo.X.Po,n=" ab-swiped-down"),(0,eo.sr)(d,i,t=>{d.className+=n,null!=r&&null!=r.onclick&&r.onclick(t)})}return d}(t,i=>{if(t.zo()&&t.od()){let n=document.createElement("div");if(n.className="ab-page-blocker",t.Oo()||(n.style.backgroundColor=eu(t.frameColor)),a.Ay.er(a.lw.Ee)&&(n.style.zIndex=a.Ay.er(a.lw.Ee).toString()),o.appendChild(n),!a.Ay.er(a.lw.Zh)){let r=new Date().valueOf();n.onclick=n=>{new Date().valueOf()-r>ec.Oy.sE&&(t.tl(i),n.stopPropagation())}}o.appendChild(i),i.focus(),t.Wh(o)}else if(u){let n=document.querySelectorAll(".ab-slideup"),r=null;for(let t=n.length-1;t>=0;t--)if(n[t]!==i){r=n[t];break}if(t.slideFrom===ec.r2.TOP){let t=0;null!=r&&(t=r.offsetTop+r.offsetHeight),i.style.top=Math.max(t,0)+"px"}else{let t=0;null!=r&&(t=(window.innerHeight||document.documentElement.clientHeight)-r.offsetTop),i.style.bottom=Math.max(t,0)+"px"}}else s&&!a.Ay.er(a.lw.Zh)&&(0,eE.B)(i)&&i.contentWindow&&i.contentWindow.addEventListener("keydown",function(i){i.keyCode===el.c.Yh&&t.closeMessage()});ed(t),t.dismissType===ec.uR.AUTO_DISMISS&&setTimeout(()=>{o.contains(i)&&t.tl(i)},t.duration),"function"==typeof n&&n()},t=>{l.A.info(t),o.parentNode&&o.parentNode.removeChild(o)},a.Ay.er(a.lw.Ja),a.Ay.er(a.lw.Ee),a.Ay.er(a.lw.sr),i,eI.ra().Ca());return(s||u)&&(o.appendChild(c),t.Wh(o)),!0}var eC=n(99577),eT=n(38745),eP=n(17924),eN=n(62498);let ej=new Set([j.l.HitPaywall,j.l.ViewedArticle,j.l.ReadArticle]),eR=(0,B.createContext)({shouldLoadBraze:void 0,initialized:!1,messageCenter:void 0,brazeContentCards:[],brazeContentCardsUpToDate:!1,brazeBanners:[],getBanner:()=>void 0,requestContentCardsRefresh:()=>void 0,brazeFeatureFlags:[],brazeFeatureFlagsUpToDate:!1,getBrazeFeatureFlag:()=>void 0,handleBrazeCustomEvent:()=>void 0,logBrazeFeatureFlagImpression:()=>void 0,requestBrazeBannersRefresh:()=>void 0,registerAuthEventData:()=>void 0,subscribeToBrazePushNotifications:()=>void 0,pushNotificationsEnabled:!1,unsubscribeFromBrazePushNotifications:()=>void 0}),eD=t=>{let i,n,w,A,S,_,E,x,I,V,H,et,ei,en,er,es,ea,eo,el,eu,ec,ed,eh=(0,s.c)(53),{children:ep}=t,ef=(0,C.P)(),{userProfile:em}=(0,P.sb)(),eg=(0,T.R7)(),[eb,ev]=(0,B.useState)(null),[ey,ew]=(0,B.useState)(null);eh[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],eh[0]=i):i=eh[0];let[eA,eS]=(0,B.useState)(i),[e_,eE]=(0,B.useState)(!1),[ek,ex]=(0,B.useState)();eh[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],eh[1]=n):n=eh[1];let[eI,eT]=(0,B.useState)(n),[eP,eN]=(0,B.useState)(!1);eh[2]===Symbol.for("react.memo_cache_sentinel")?(w=[],eh[2]=w):w=eh[2];let[ej,eD]=(0,B.useState)(w),[eM,eL]=(0,B.useState)(!1),[eF,e$]=(0,B.useState)(!1),eq=(0,B.useRef)(void 0),eV=(0,B.useRef)(void 0),{sdkEndpoint:eW,clientToken:eJ,shouldLoadBraze:eG}=(0,$.h)(eb);eh[3]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{ev((0,W.ND)()),ew((0,W.tD)())},S=[],eh[3]=A,eh[4]=S):(A=eh[3],S=eh[4]),(0,B.useEffect)(A,S);let eH=eg["html.braze.banner-placements"];
1eh[5]!==eH?(_=Array.isArray(eH)?eH.filter(eU):[],eh[5]=eH,eh[6]=_):_=eh[6];let eK=_;eh[7]===Symbol.for("react.memo_cache_sentinel")?(E=t=>{let i=t.eventStatus;if("useractioncomplete"===i||"tcloaded"===i){let t=(0,W.ND)(),i=(0,W.tD)();if(t){let t;a.Ay.vr()||(new u.A.De(null,!0).remove(u.d.Se),t=o.A._s.Xs,new o.A(t,l.A).Ae(t.Ws.ke,t.ze),l.A.info("enableSDK was called"),a.Ay.destroy(!1),a.Ay.qe(!1))}else{let t,i,n,r,s;(t=a.Ay.nn())&&t.requestImmediateDataFlush(),i=a.Ay.er(a.lw.xe),r="This-cookie-will-expire-in-"+(n=new u.A.De(null,!0,i)).Ke(),n.store(u.d.Se,r),s=o.A._s.Xs,new o.A(s,l.A).setItem(s.Ws.ke,s.ze,!0),l.A.info("disableSDK was called"),a.Ay.destroy(!1),a.Ay.qe(!0),(0,c.o)(),eL(!1)}ev(t),ew(i)}},eh[7]=E):E=eh[7];let eZ=E;(0,N.$)(eZ),eh[8]!==eb||eh[9]!==ey||eh[10]!==eM||eh[11]!==em.authenticationStatus?(x=()=>{let t;eM&&em.authenticationStatus===q.J.Authenticated&&(t=(0,d.w)())&&eb&&(t.setCustomUserAttribute("$google_ad_user_data",ey),t.setCustomUserAttribute("$google_ad_personalization",ey))},I=[eb,ey,eM,em.authenticationStatus],eh[8]=eb,eh[9]=ey,eh[10]=eM,eh[11]=em.authenticationStatus,eh[12]=x,eh[13]=I):(x=eh[12],I=eh[13]),(0,B.useEffect)(x,I),eh[14]!==ef||eh[15]!==eJ||eh[16]!==eW||eh[17]!==em||eh[18]!==eK?(V=()=>{if(eJ&&eW){var t;let i;a.Ay.initialize(eJ,{baseUrl:eW,allowUserSuppliedJavascript:!0,openInAppMessagesInNewTab:!0}),(0,J.M3)(em)&&void 0!==em.hashedAccountId&&(0,h.changeUser)(em.hashedAccountId),function(){if(a.Ay.rr())return p.A.isPushPermissionGranted()}()&&(0,f.requestPushPermission)(()=>{e$(!0)}),t=t=>{let i;t.isControl&&eO(t),("/"===(i=window.location.pathname)||i.includes("/art-"))&&eO(t)},a.Ay.rr()&&("function"!=typeof t||ee.A.ra().ia(function(i){return t(i[0]),i.slice(1)})),function(t){if(!a.Ay.rr())return;let i=v.A.o();if(i.Kt(t),!i.Et()){let t=a.Ay.nn();if(t){let n=t.rn(()=>{i.lr(void 0,void 0,"client")});n&&i.Lt(n)}}}(t=>{let[i,n]=(0,Y.e)(t.cards.filter(t=>t.extras.product===ef),t=>t.isControl);i.length>0&&(0,X.a)(i),eT(n),eN(!0)}),function(t){if(!a.Ay.rr())return;let i=O.A.o();if(i.Ro()){let i=function(){if(!a.Ay.rr())return;let t=[],i=a.Ay.l();if(i&&!i.Qr())return t;let n=O.A.o().Zr();for(let i in n)t.push(n[i]);return t}();i&&"function"==typeof t&&t(i)}i.Kt(t)}(t=>{eS(t)}),(0,Q.refreshFeatureFlags)(()=>{eE(!0)}),function(){if(!a.Ay.rr())return;let t=a.Ay.nn();if(!t)return;t.openSession();let i=o.A._s.Xs,n=new o.A(i,l.A);n.kr(i.Ws.Fr,(r,s)=>{let a=s.lastClick,o=s.trackingString;l.A.info(`Firing push click trigger from ${o} push click at ${a}`);let u=t.Sr(a,o),c=function(){g.B.o().Pe(m.A.Ar,[o],u)};t.Br(c,c),n.Ae(i.Ws.Fr,r)}),n.Qs(i.Ws.Dr,function(i){t.Er(i)})}(),(0,G.j)(t=>{let i=K(eK,ef);eD(Object.values(t).filter(t=>{let n,r,s;return n=t,r=i,s=ef,!!n&&n.placementId.startsWith(s)&&r.includes(n.placementId)}))}),i=K(eK,ef),sessionStorage.getItem(Z)||(k(i),sessionStorage.setItem(Z,"1")),eL(!0)}},H=[eJ,eW,em,ef,eK],eh[14]=ef,eh[15]=eJ,eh[16]=eW,eh[17]=em,eh[18]=eK,eh[19]=V,eh[20]=H):(V=eh[19],H=eh[20]),(0,B.useEffect)(V,H),eh[21]!==ef||eh[22]!==eI?(et=()=>{(0,eC.zo)(ef,eI,ex)},ei=[ef,eI],eh[21]=ef,eh[22]=eI,eh[23]=et,eh[24]=ei):(et=eh[23],ei=eh[24]),(0,B.useEffect)(et,ei),eh[25]!==ef||eh[26]!==ej?(en=t=>ej.find(i=>i.placementId==="".concat(ef,"_").concat(t)),eh[25]=ef,eh[26]=ej,eh[27]=en):en=eh[27];let eX=en;eh[28]!==eA?(er=t=>{let i=void 0===t?"sndp-feature-flags":t;return eA.find(t=>t.id===i)},eh[28]=eA,eh[29]=er):er=eh[29];let eY=er;eh[30]===Symbol.for("react.memo_cache_sentinel")?(es=(t,i)=>{eq.current=t,eV.current=i},eh[30]=es):es=eh[30];let eQ=es;((t,i,n,r)=>{let a,o,l,u,c,d,h=(0,s.c)(28),{loginDone:p,logoutDone:f}=(0,P.sb)(),m=(0,C.P)(),{environment:g}=(0,R.U)(),{platform:b}=(0,D.g$)();h[0]!==r||h[1]!==n||h[2]!==m||h[3]!==g||h[4]!==i||h[5]!==b?(a=()=>{i({type:j.l.LoggedIn,payload:(0,z.o)({assetData:n.current,analyticsMetadataV2:r.current,brand:m,platform:b,environment:g})})},h[0]=r,h[1]=n,h[2]=m,h[3]=g,h[4]=i,h[5]=b,h[6]=a):a=h[6];let v=(0,B.useEffectEvent)(a);h[7]!==r||h[8]!==n||h[9]!==m||h[10]!==g||h[11]!==i||h[12]!==b?(o=()=>{i({type:j.l.LoggedOut,payload:(0,z.o)({assetData:n.current,analyticsMetadataV2:r.current,brand:m,platform:b,environment:g})})},h[7]=r,h[8]=n,h[9]=m,h[10]=g,h[11]=i,h[12]=b,h[13]=o):o=h[13];let y=(0,B.useEffectEvent)(o);h[14]!==t||h[15]!==p||h[16]!==v?(l=()=>{p&&t&&v()},h[14]=t,h[15]=p,h[16]=v,h[17]=l):l=h[17],h[18]!==t||h[19]!==p?(u=[p,t],h[18]=t,h[19]=p,h[20]=u):u=h[20],(0,B.useEffect)(l,u),h[21]!==t||h[22]!==f||h[23]!==y?(c=()=>{f&&t&&y()},h[21]=t,h[22]=f,h[23]=y,h[24]=c):c=h[24],h[25]!==t||h[26]!==f?(d=[f,t],h[25]=t,h[26]=f,h[27]=d):d=h[27],(0,B.useEffect)(c,d)})(eM,ez,eq,eV),((t,i)=>{let n,r,a,o,l=(0,s.c)(15),u=(0,U.useRouter)(),c=(0,C.P)(),{environment:d}=(0,R.U)(),{platform:h}=(0,D.g$)();if(l[0]!==u.asPath){let t;l[2]===Symbol.for("react.memo_cache_sentinel")?(t=/[?#]/,l[2]=t):t=l[2],n=u.asPath.split(t),l[0]=u.asPath,l[1]=n}else n=l[1];let p=n[0];l[3]!==c||l[4]!==d||l[5]!==i||l[6]!==h?(r=()=>{i({type:j.l.ViewedFrontPage,payload:{app_id:"nf-".concat(c,"-").concat(null!=h?h:L.OD.Web,"-").concat(d)}})},l[3]=c,l[4]=d,l[5]=i,l[6]=h,l[7]=r):r=l[7];let f=(0,B.useEffectEvent)(r);l[8]!==t||l[9]!==p||l[10]!==f?(a=()=>{t&&p&&(0,F.DQ)(p)&&f()},l[8]=t,l[9]=p,l[10]=f,l[11]=a):a=l[11],l[12]!==t||l[13]!==p?(o=[t,p],l[12]=t,l[13]=p,l[14]=o):o=l[14],(0,B.useEffect)(a,o)})(eM,ez),((t,i,n,r)=>{let a,o,l,u,c,d,h,p,f,m=(0,s.c)(25),g=(0,C.P)(),{environment:b}=(0,R.U)(),{platform:v,useInkBridge:y}=(0,D.g$)(),w=(0,U.useRouter)();if(m[0]!==w.asPath){let t;m[2]===Symbol.for("react.memo_cache_sentinel")?(t=/[?#]/,m[2]=t):t=m[2],a=w.asPath.split(t),m[0]=w.asPath,m[1]=a}else a=m[1];let A=a[0],S=(0,B.useRef)(!1),_=(0,B.useRef)(!1);m[3]!==r||m[4]!==n||m[5]!==g||m[6]!==t||m[7]!==b||m[8]!==i||m[9]!==v||m[10
1]!==y?(o=()=>{n.current&&!_.current&&(t||y)&&(document.querySelector('[data-ab="paywall-content"], [data-ab="paywall-loading"]')||(_.current=!0,i({type:j.l.ViewedArticle,payload:(0,z.o)({assetData:n.current,analyticsMetadataV2:r.current,brand:g,platform:v,environment:b})})))},m[3]=r,m[4]=n,m[5]=g,m[6]=t,m[7]=b,m[8]=i,m[9]=v,m[10]=y,m[11]=o):o=m[11];let E=(0,B.useEffectEvent)(o);m[12]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{S.current=!1,_.current=!1},m[12]=l):l=m[12],m[13]!==A?(u=[A],m[13]=A,m[14]=u):u=m[14],(0,B.useEffect)(l,u),m[15]!==E?(c=()=>{S.current=!0,E()},m[15]=E,m[16]=c):c=m[16];let k=(0,B.useEffectEvent)(c);m[17]!==k?(d=()=>{let t=setTimeout(k,5e3);return()=>{clearTimeout(t)}},m[17]=k,m[18]=d):d=m[18],m[19]!==A?(h=[A],m[19]=A,m[20]=h):h=m[20],(0,B.useEffect)(d,h),m[21]!==E?(p=()=>{S.current&&E()},m[21]=E,m[22]=p):p=m[22],m[23]!==t?(f=[t],m[23]=t,m[24]=f):f=m[24],(0,B.useEffect)(p,f)})(eM,ez,eq,eV),((t,i,n,r)=>{let s=(0,C.P)(),{environment:a}=(0,R.U)(),{platform:o,useInkBridge:l}=(0,D.g$)(),u=(0,U.useRouter)().asPath.split(/[?#]/)[0],c=(0,B.useRef)(!1),d=(0,B.useRef)(!1),h=(0,B.useRef)(()=>{});h.current=()=>{n.current&&!d.current&&(t||l)&&(document.querySelector('[data-ab="paywall-content"], [data-ab="paywall-loading"]')||(d.current=!0,i({type:j.l.ReadArticle,payload:(0,z.o)({assetData:n.current,analyticsMetadataV2:r.current,brand:s,platform:o,environment:a})})))};let p=(0,B.useCallback)(()=>{c.current=!0,h.current()},[]);(0,B.useEffect)(()=>{c.current=!1,d.current=!1},[u]),(0,M.h)(u,p),(0,B.useEffect)(()=>{c.current&&h.current()},[t])})(eM,ez,eq,eV),eh[31]===Symbol.for("react.memo_cache_sentinel")?(ea=()=>{(0,f.requestPushPermission)(()=>{e$(!0)})},eh[31]=ea):ea=eh[31];let e0=ea;eh[32]===Symbol.for("react.memo_cache_sentinel")?(eo=()=>{(0,b.unregisterPush)(()=>{e$(!1)})},eh[32]=eo):eo=eh[32];let e1=eo;eh[33]===Symbol.for("react.memo_cache_sentinel")?(el=()=>{eN(!1);let t=function(){if(a.Ay.rr())return v.A.o().xi(!1)}();(null==t?void 0:t.lastUpdated)&&t.lastUpdated.getTime()+6e4>Date.now()?(eT(t.cards),eN(!0)):(0,y.J)(()=>{eN(!0)},()=>{eN(!0)})},eh[33]=el):el=eh[33];let e3=el;eh[34]!==ef||eh[35]!==eK?(eu=()=>{k(K(eK,ef))},eh[34]=ef,eh[35]=eK,eh[36]=eu):eu=eh[36];let e2=eu;eh[37]!==ej||eh[38]!==eI||eh[39]!==eP||eh[40]!==eA||eh[41]!==e_||eh[42]!==eX||eh[43]!==eY||eh[44]!==eM||eh[45]!==ek||eh[46]!==eF||eh[47]!==e2||eh[48]!==eG?(ec={shouldLoadBraze:eG,initialized:eM,messageCenter:ek,brazeContentCards:eI,brazeContentCardsUpToDate:eP,brazeBanners:ej,getBanner:eX,requestContentCardsRefresh:e3,requestBrazeBannersRefresh:e2,brazeFeatureFlags:eA,brazeFeatureFlagsUpToDate:e_,getBrazeFeatureFlag:eY,logBrazeFeatureFlagImpression:eB,handleBrazeCustomEvent:ez,registerAuthEventData:eQ,subscribeToBrazePushNotifications:e0,pushNotificationsEnabled:eF,unsubscribeFromBrazePushNotifications:e1},eh[37]=ej,eh[38]=eI,eh[39]=eP,eh[40]=eA,eh[41]=e_,eh[42]=eX,eh[43]=eY,eh[44]=eM,eh[45]=ek,eh[46]=eF,eh[47]=e2,eh[48]=eG,eh[49]=ec):ec=eh[49];let e4=ec;return eh[50]!==ep||eh[51]!==e4?(ed=(0,r.jsx)(eR.Provider,{value:e4,children:ep}),eh[50]=ep,eh[51]=e4,eh[52]=ed):ed=eh[52],ed},eM=()=>(0,B.useContext)(eR);function eU(t){return"string"==typeof t&&t.length>0}function eB(t){t&&(!function(t){if(!a.Ay.rr()||!t)return;let i="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",n=O.A.o().Zr();if(!n[t])return l.A.info(i);let r=n[t].trackingString;if(!r)return l.A.info(i);let s=O.A.o().uo();s[r]?l.A.info("Not logging another feature flag impression. This ID was already logged this session."):(s[r]=!0,O.A.o().vo(s),I.A.Dt(x.w.xo,{fid:t,fts:r}).lt)}(t.id),(0,V.Xo)("feature flag impression",((t,i)=>{var n;let r=null==i||null==(n=i.properties.id)?void 0:n.value;if(r){let i="object"==typeof r?JSON.stringify(r):String(r);return"".concat(t,"_").concat(i)}return t})(t.id,t)))}function ez(t){let i;i=Object.fromEntries(Object.entries(t.payload).filter(t=>{let[,i]=t;return"string"==typeof i||"number"==typeof i||"boolean"==typeof i||Array.isArray(i)||"object"==typeof i&&null!==i})),a.Ay.vr()&&(0,eT.logCustomEvent)(t.type,i),ej.has(t.type)&&(0,eP.Wr)({type:eN.oi.SendBrazeCustomerEngagementAnalyticsEvent,event:{name:t.type,parameters:i}})}},62498:(t,i,n)=>{"use strict";n.d(i,{IF:()=>a,L3:()=>s,mB:()=>l,oi:()=>o,sz:()=>r});let r={SUBSCRIBE:"action_subscribe"},s={SUBSCRIBE:"subscribe",SUBSCRIBE_EXTERNAL_LINK_ACCOUNT:"subscribe_ios_external_link_account"},a={INFO:"info",WARNING:"warning",ERROR:"error"},o={ReadyToReceiveEvents:"readyToReceiveEvents",InitialPageViewData:"initialPageViewData",SessionTokenRequest:"getSessionToken",StartLogin:"startLogin",StartRegistration:"startRegistration",InitiateVideoMiniplayer:"initiateVideoMiniplayer",InitiateAudioMiniplayer:"initiateAudioMiniplayer",InitiateAudioMiniplayerV2:"initiateAudioMiniplayerV2",ShowConsentManager:"showConsentManager",StartSubscriptionFunnel:"startSubscriptionFunnel",InitialPaywallData:"initialPaywallData",InitialSubscriptionView:"initialSubscriptionView",SendToEventRelay:"sendToEventRelay",SendAnalyticsUIEvent:"sendAnalyticsUIEvent",SendCDPAnalyticsEvent:"sendCDPAnalyticsEvent",SendBrazeCustomerEngagementAnalyticsEvent:"sendBrazeCustomerEngagementAnalyticsEvent",GetUserLocation:"getUserLocation",RequestUserLocationPermission:"requestUserLocationPermission",ContentShareEvent:"contentShareEvent",MediaPlayerMetadata:"mediaPlayerMetadata",OpenImageGalleryEvent:"openImageGalleryEvent",PauseMiniplayerEvent:"pauseEvent",StopMiniplayerEvent:"stopEvent",PlayerReadyEvent:"playerReadyEvent",PlayerStatusEvent:"statusEvent",MessageEvent:"messageEvent",SubscribeToNotificationCategory:"subscribeToNotificationCategory",ScrollUpdate:"scrollUpdate",AcceptEmbedConsent:"acceptEmbedConsent"},l={SessionTokenResponse:"sessionTokenEvent",DeviceUserDataResponse:"deviceUserDataEvent",MiniPlayerEvent:"miniPlayerMediaEvent",UserLocationResponse:"userLocationEvent",ShowComments:"showComments",SetColorScheme:"setColorScheme",SetFeatureFlags:"setFeatureFlags",InitialMiniplayerState:"initialMiniplayerState",SetSafeAreaInsets:"setSafeAreaInsets",SetFontScale:"setFontScale",WebViewVisibilityChange:"webViewVisibilityChange",PlayerPlay:"playEvent",PlayerPause:"pauseEvent",PlayerStop:"stopEvent",PlayerResume:"resumeEvent",PlayerMute:"muteEvent",PlayerUnmute:"unmuteEvent",PlayerCheckStatus:"checkStatusEvent"}},63593:(t,i,n)=>{"use strict";n.d(i,{g$:()=>p,gJ:()=>h,yy:()=>d});var r=n(37876),s=n(27964),a=n(17924),o=n(62498),l=n(33399),u=n(14232),c=n(68260);let d=(0,u.createContext)(void 0),h=(0,u.memo)(t=>{var i;let n,h,p,m,g=(0,s.c)(10),{children:b,pageFeatures:v}=t,[y,w]=(0,u.useState)(c.Bv),A=null!=(i=y.platform)?i:v.platform;g[0]!==y||g[1]!==v||g[2]!==A?(n={...v,...y,platform:A},g[0]=y,g[1]=v,g[2]=A,g[3]=n):n=g[3];let S=n;return g[4]!==v.useInkBridge?(h=()=>{let t=()=>{if(window.inkAppFeatureFlags){var t;let i=null==(t=window.inkAppFeatureFlags.webToNativeAppEvents)?void 0:t.reduce(f,{}),n=window.inkAppFeatureFlags.platform;w({...c.Bv,...window.inkAppFeatureFlags,platform:void 0!==n&&Object.values(l.OD).includes(n)?n:void 0,...i})}};t(),window.inkAppFeatureFlags&&window.addEventListener("inkAppFeatureFlagsUpdated",t);let i=t=>{var i,n;let r=null==(n=t.detail)||null==(i=n.webToNativeAppEvents)?void 0:i.reduce(f,{});w(i=>({...i,...t.detail,...r}))};return v.useInkBridge&&(0,a.yb)(o.mB.SetFeatureFlags,i),()=>{window.inkAppFeatureFlags&&window.removeEventListener("inkAppFeatureFlagsUpdated",t),v.useInkBridge&&(0,a.Bv)(o.mB.SetFeatureFlags,i)}},p=[v.useInkBridge],g[4]=v.useInkBridge,g[5]=h,g[6]=p):(h=g[5],p=g[6]),(0,u.useEffect)(h,p),g[7]!==b||g[8]!==S?(m=(0,r.jsx)(d.Provider,{value:S,children:b}),g[7]=b,g[8]=S,g[9]=m):m=g[9],m}),p=()=>{let t=(0,u.useContext)(d);if(!t)throw Error("usePageFeatures must be used within a PageFeaturesProvider");return t};function f(t,i){return{...t,[i]:!0}}},63881:(t,i,n)=>{"use strict";n.d(i,{lu:()=>d,nj:()=>f,ug:()=>m});var r=n(17924),s=n(62498),a=n(59712),o=n(32037),l=n(44304),u=n(23305),c=n(99373);let d="sndp-entitlements",h=null,p=async()=>({...await (0,o.d)({url:"/api/safe/v2/web/session-token",requestOptions:{credentials:"include",headers:{Accept:"text/plain",Pragma:"no-cache","Cache-Control":"no-cache, no-store, must-revalidate"}},timeout:5e3,maxRetries:4}),receivedAt:(0,c._g)()}),f=async(t,i,n)=>{try{let r=await (0,u._P)(t,i,n);if(!r)return;return(await (0,o.d)({url:"/api/safe/v2/web/richie-token",requestOptions:{credentials:"include",headers:{"sndp-authorization":r,Accept:"application/json",Pragma:"no-cache","Cache-Control":"no-cache, no-store, must-revalidate"}},timeout:15e3,maxRetries:2})).richieToken}catch(t){console.error("Failed to fetch richie token from SAFE",t);return}},m=async(t,i)=>{let n=await v(t,i),{receivedAt:r,sessionToken:s}=n;if(s){let{userProfile:t}=(0,u.le)(s);return(0,u.Hg)(s,r),{...n,action:"continue",userModel:t}}throw Error("No session returned from backend. This is expected when user is not authenticated")},g=(t,i,n,r)=>{(!r||i>=r)&&console.error("getSessionTokenFromInk: ".concat(t),{responseCount:i,errorFromSessionTokenResponse:n})},b=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15e3,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((n,a)=>{let o=window.setTimeout(()=>{(0,r.Bv)(s.mB.SessionTokenResponse,d),g("timeout for getting valid session token from app. VisibilityState ".concat(document.visibilityState),l),a(Error("Timeout on INK-app response with ".concat(s.mB.SessionTokenResponse)))},t),l=0,d=t=>{var h,p,f,m,b,v,y,w,A;l++;let S=null!=(h=null==(f=t.detail)||null==(p=f.session)?void 0:p.sessionToken)?h:null==(m=t.detail)?void 0:m.sessionToken;if(S){let a=null!=(b=null==(y=t.detail)||null==(v=y.session)?void 0:v.receivedAt)?b:(0,c._g)();(0,u.TD)(S,a)?((0,r.Bv)(s.mB.SessionTokenResponse,d),clearTimeout(o),n({action:"continue",sessionToken:S,receivedAt:a,ceId:void 0})):(g("received expired or invalid session token from app even after a retry with force refresh",l,null==(w=t.detail)?void 0:w.error,2),(0,r.Wr)({type:s.oi.SessionTokenRequest,forceRefresh:!i}))}else(0,r.Bv)(s.mB.SessionTokenResponse,d),g("did not receive token from forceRefresh",l,null==(A=t.detail)?void 0:A.error,2),clearTimeout(o),a(Error("No sessionToken in INK-app response"))};(0,r.yb)(s.mB.SessionTokenResponse,d),"visible"!==document.visibilityState&&g("Requesting session token while article is hidden (".concat(document.visibilityState,")"),0),(0,r.Wr)({type:s.oi.SessionTokenRequest,forceRefresh:!1})})},v=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null!==h?h:h=(async()=>{try{return t?await b(15e3,i):await p()}catch(t){throw(0,l.fM)(t)&&t.isTimeout&&(0,a.Bc)("Failed to fetch session token because of timeout. Reason was: ".concat(t.description)),t}finally{h=null}})()}},64357:(t,i,n)=>{"use strict";n.d(i,{lw:()=>et,Ay:()=>en});var r=n(5138),s=n(15244),a=n(54099),o=n(34063);class l{constructor(t,i,n){this.j=t,this.tc=i,this.sc=n,this.j=t,this.tc=i||!1,this.sc=n,this.ec=new s.A,this.rc=0,this.nc=1}hc(){return this.tc}uc(){return this.j.St(r.d.It.oc)}setSdkAuthenticationSignature(t){let i=this.uc();this.j.Pt(r.d.It.oc,t);let n=a.A._s.Xs;new a.A(n,o.A).setItem(n.Ws.ac,this.nc,t),i!==t&&this.ct()}cc(){this.j.Vt(r.d.It.oc);let t=a.A._s.Xs;new a.A(t,o.A).Ae(t.Ws.ac,this.nc)}subscribeToSdkAuthenticationFailures(t){return this.sc.Ut(t)}mc(t){this.sc.A(t)}gc(){this.ec.removeAllSubscriptions()}lc(){this.rc+=1}bc(){return this.rc}
1ct(){this.rc=0}}var u=n(55617);class c{constructor(){this.ul={}}yr(t,i){this.ul[t]=i}lo(t){return this.ul[t]||null}dl(t){return null!=this.lo(t)}}var d=n(16798);class h{constructor(t){this.id=t,this.id=t}wa(){let t={};return null!=this.browser&&(t.browser=this.browser),null!=this.dc&&(t.browser_version=this.dc),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}let p={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};var f=n(43226),m=n(40814),g=n(37206),b=n(79835);class v{constructor(t,i){this.j=t,this.fc=i,this.j=t,null==i&&(i=(0,g.zu)(p)),this.fc=i}Ye(t=!0){let i=this.j.$u(r.d.Ou.Nl);null==i&&(i=new f.A(m.A.de()),t&&this.j.Ju(r.d.Ou.Nl,i));let n=new h(i.Iu);for(let t=0;t<this.fc.length;t++)switch(this.fc[t]){case p.BROWSER:n.browser=d.A.browser;break;case p.BROWSER_VERSION:n.dc=d.A.version;break;case p.OS:n.os=this.jc();break;case p.RESOLUTION:n.kc=screen.width+"x"+screen.height;break;case p.LANGUAGE:n.language=d.A.language;break;case p.TIME_ZONE:n.timeZone=this.wc(new Date);break;case p.USER_AGENT:n.userAgent=d.A.userAgent}return n}jc(){if(d.A.Ic())return d.A.Ic();let t=this.j.St(r.d.It.Mc);return t&&t.os_version?t.os_version:d.A.jc()}wc(t){let i=!1;if("u">typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){let t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){o.A.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,b.u)(t)),i=!0}if(i)return"";let n=t.getTimezoneOffset();return this.Tc(n)}Tc(t){let i=Math.trunc(t/60),n=Math.trunc(t%60),r="GMT";return 0!==t&&(r+=(t<0?"+":"-")+(("00"+Math.abs(i)).slice(-2)+":")+("00"+Math.abs(n)).slice(-2)),r}}var y=n(66045),w=n(74224),A=n(95315),S=n(55679),_=n(82793),E=n(36994),k=n(79921),x=n(56760),I=n(48930);class O{constructor(t,i,n,r,s,a,o,l,u,c,d,h){this.tu=t,this.j=i,this.Cl=n,this.Ss=r,this.C=s,this.h=a,this.eu=o,this.Rl=l,this.Tl=u,this.wl=c,this.appVersion=d,this.ql=h,this.Xl=t=>null==t?"":`${t} `,this.tu=t,this.j=i,this.Cl=n,this.Ss=r,this.C=s,this.h=a,this.eu=o,this.Rl=l,this.Tl=u,this.wl=c,this.appVersion=d,this.ql=h,this.$l=["npm"],this.xl={}}Z(t,i=!1,n=!1){let s=this.tu.Ye(!n),a=s.wa(),o=this.j.St(r.d.It.Mc);(0,g.n4)(o,a)||(t.device=a),t.api_key=this.eu,t.time=(0,A.UK)(new Date().valueOf(),!0);let l=this.j.St(r.d.It.Hl)||[],u=this.j.St(r.d.It.Yl)||"";this.$l.length>0&&(!(0,g.n4)(l,this.$l)||u!==this.C.$t())&&(t.sdk_metadata=this.$l),t.sdk_version=this.Tl,this.wl&&(t.sdk_flavor=this.wl),t.app_version=this.appVersion,t.app_version_code=this.ql,t.device_id=s.id;let c=this.Ss.getUserId();if(i&&null!==c&&(t.user_id=c),!c&&!this.Cl.hc()){let i=(0,x.b)(this.j);i&&(t.alias=i)}return t}ut(t,i,n){let r=i.auth_error,s=i.error;if(!r&&!s)return!0;if(r){let i;this.Cl.lc();let s={errorCode:r.error_code};for(let t of n)(0,g.cy)(t)&&"X-Braze-Auth-Signature"===t[0]&&(s.signature=t[1]);t.respond_with&&t.respond_with.user_id?s.userId=t.respond_with.user_id:t.user_id&&(s.userId=t.user_id);let a=r.reason;return a?(s.reason=a,i=`due to ${a}`):i=`with error code ${r.error_code}.`,this.Cl.hc()||(i+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),o.A.error(`SDK Authentication failed ${i}`),this.Jl(t.events||[],t.attributes||[]),this.Cl.mc(s),!1}if(s){let n,r=s;switch(r){case y.A.Ql:return n="Received successful response with empty body.",S.A.Dt(_.w.Zl,{e:n}),o.A.info(n),!1;case y.A.vc:return n="Received successful response with invalid JSON",S.A.Dt(_.w.Zl,{e:n+": "+i.response}),o.A.info(n),!1;case y.A.Rc:r=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Rl}`;break;case y.A.qc:r="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case y.A.Ac:r="No device identifier. Please contact Braze Technical Support for assistance."}o.A.error("Backend error: "+r)}return!1}Dc(t,i,n){return!!(t&&0!==t.length||i&&0!==i.length||n)}yc(t,i,n,r=!1,s="sdk"){let a=[],o=t=>t||"",l=o(this.Ss.getUserId()),u=this.ka(t),c=[],d=[],h,p=null;if(i.length>0){let t=[];
1for(let n of i){if(h=n.wa(),this.Cl.hc()){if(l&&!h.user_id){p||(p={}),p.events||(p.events=[]),p.events.push(h);continue}if(o(h.user_id)!==l){d.push(h);continue}}t.push(h)}t.length>0&&(u.events=t)}if(n.length>0){let t=[];for(let i of n)i&&(this.Cl.hc()&&o(i.user_id)!==l?c.push(i):t.push(i));t.length>0&&(u.attributes=t)}if(this.Jl(d,c),u=this.Z(u,!1,r),p){let t={requestData:p=this.Z(p,!1,r),headers:this.tt(p,E.A.it.Jh,s)};a.push(t)}if(u&&!this.Dc(u.events,u.attributes,t))return p?a:null;let f={requestData:u,headers:this.tt(u,E.A.it.Jh,s)};return a.push(f),a}Jl(t,i){if(t){let i=[];for(let n of t){let t=w.A.fromJson(n);t.time=(0,A.YX)(t.time),i.push(t)}this.j.ll(i)}if(i)for(let t of i)this.j.Nc(t)}dt(t,i){let n="HTTP error ";null!=t&&(n+=t+" "),n+=i,o.A.error(n)}Bc(t){return S.A.Dt(_.w.Sc,{n:t})}ka(t,i){let n={};t&&(n.triggers=!0);let r=null!=i?i:this.Ss.getUserId();if(r&&(n.user_id=r),!n.user_id&&!this.Cl.hc()){let t=(0,x.b)(this.j);t&&(n.alias=t)}return n.config={config_time:this.h.Qt()},{respond_with:n}}Cc(t){let i=new Date().valueOf(),n=k.mO.toString(),r=E.A.zc(this.j,t);return -1!==r&&(n=(i-r).toString()),n}tt(t,i,n="sdk"){let r=[["X-Braze-Api-Key",this.eu]],s=this.Cc(i);r.push(["X-Braze-Last-Req-Ms-Ago",s]);let a=E.A.Xc(this.j,i).toString();r.push(["X-Braze-Req-Attempt",a]);let o=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(r.push(["X-Braze-TriggersRequest","true"]),o=!0),i===E.A.it.Mi){r.push(["X-Braze-ContentCardsRequest","true"]);let t=E.A.Xc(this.j,E.A.it.Mi);t&&"client"!==n||(t=1,E.A.$c(this.j,E.A.it.Mi,t));let i=Math.max(0,t-1);r.push(["BRAZE-SYNC-RETRY-COUNT",i.toString()]),o=!0}if(i===E.A.it.jo&&(r.push(["X-Braze-FeatureFlagsRequest","true"]),o=!0),o&&r.push(["X-Braze-DataRequest","true"]),"dust"===n&&r.push(["X-Braze-Request-Initiated-By","di"]),this.Cl.hc()){let t=this.Cl.uc();null!=t&&r.push(["X-Braze-Auth-Signature",t])}return r}Lc(t,i,n,r){if(this.xl[r])return;let s=window.setTimeout(()=>{o.A.info(`Retrying rate limited ${this.Xl(r)}SDK request.`),this.et(i,n,r)},t);this.xl[r]=s}fo(){for(let t in this.xl){let i=this.xl[t];window.clearTimeout(i)}this.xl={}}et(t,i,n,s){if(!this.Ec(n))return o.A.info(`${this.Xl(n)}SDK request being rate limited.`),void("function"==typeof s&&s());let a=this.Fc();if(!a.Kc)return this.Lc(a.Pc,t,i,n),void o.A.info(`${this.Xl(n)}SDK request being rate limited. Request will be retried in ${Math.trunc(a.Pc/1e3)} seconds.`);this.j.Pt(r.d.It.Uc,new Date().valueOf());let l=t.device;l&&l.os_version instanceof Promise?l.os_version.then(n=>{t.device.os_version=n,i(a.xc)}):i(a.xc)}Hc(t){let i=t?(0,I.s)(t):null;if(!i||!i["retry-after"])return null;let n=i["retry-after"];return isNaN(n)&&!isNaN(Date.parse(n))?{type:"date",value:Date.parse(n)}:isNaN(parseFloat(n.toString()))?(S.A.Dt(_.w.Zl,{e:"Received unexpected value for retry-after header in /sync response: "+n}),null):{type:"timestamp",value:1e3*parseFloat(n.toString())}}yt(t,i,n,r,s,a){let o;if(E.A.Xc(this.j,n)>=k.uR)return;a=a||0;let l=this.Hc(t);s();let u=t=>{r(window.setTimeout(()=>{i()},t)),E.A.Oc(this.j,n)};if(l&&!isNaN(l.value)){switch(l.type){case"date":(o=l.value-new Date().getTime()+a)<0&&i();break;case"timestamp":o=l.value+a}u(o)}else a?u(a):E.A.Ji(this.j,n)}Gc(t){var i;null==(i=this.j)||i.Pt(r.d.It._c,t)}Wc(t,i){let n=this.Yc();null==n&&(n={}),n[t]=i,this.j.Pt(r.d.It.Jc,n)}Qc(){var t;return null==(t=this.j)?void 0:t.St(r.d.It._c)}Yc(){var t;return null==(t=this.j)?void 0:t.St(r.d.It.Jc)}Vc(t,i,n,r,s=""){let a;if(s){let t=this.Yc();a=null==t||isNaN(t[s])?i:t[s]}else(null==(a=this.Qc())||isNaN(a))&&(a=i);return Math.min(a+(t-r)/1e3/n,i)}Zc(t,i){return Math.max(0,(1-t)*i*1e3)}ed(t,i=""){var n,s,a,o,l;let u={Kc:!0,xc:-1,Pc:0};if(null==t&&(t=!0),!t&&!i)return u;let c,d,h=null;if(t)h=null==(n=this.j)?void 0:n.St(r.d.It.Uc);else{let t=E.A.sd(this.j);if(null==t||null==t[i])return u;h=t[i]}if(null==h||isNaN(h)||(t?(c=(null==(s=this.h)?void 0:s.nd())||-1,d=(null==(a=this.h)?void 0:a.ad())||-1):(c=(null==(o=this.h)?void 0:o.hd(i))||-1,d=(null==(l=this.h)?void 0:l.ud(i))||-1),-1===c||-1===d))return u;let p=new Date().valueOf(),f=this.Vc(p,c,d,h,i);return f<1?(u.Kc=!1,u.Pc=this.Zc(f,d)):(u.xc=f=Math.trunc(f)-1,t?this.Gc(f):this.Wc(i,f)),u}Fc(){return this.ed(!0)}Ec(t){let i=this.ed(!1,t);return!(i&&!i.Kc)}
1ct(){this.Cl.ct()}ht(){return this.Rl}addSdkMetadata(t){for(let i of t)-1===this.$l.indexOf(i)&&this.$l.push(i)}}var C=n(73817),T=n(13612),P=n(29213),N=n(98465);class j{constructor(t,i,n,r,a,o,l,u,c,d){this.eu=t,this.baseUrl=i,this.C=n,this.tu=r,this.Ss=a,this.h=o,this.j=l,this.Ad=u,this.Cl=c,this.B=d,this.eu=t,this.baseUrl=i,this.$d=0,this.fS=l.dS()||0,this.Id=null,this.C=n,this.tu=r,this.Ss=a,this.h=o,this.j=l,this.Cl=c,this.B=d,this.Ad=u,this.Pd=new s.A,this.Od=null,this.Ud=50,this._d=!1,this.Jd=!1}Kd(t,i){return!t&&!i&&this.Cl.bc()>=this.Ud}Wd(t){let i=this.C.dm();if(t.length>0){let n=this.Ss.getUserId();for(let r of t){let t=!r.userId&&!n||r.userId===n;r.type===_.w.Sm&&t&&(i=!0)}}return i}Xd(t=!1,i=!0,n,s,a,l=!1,u=!1,c="sdk"){i&&this.Hd();let d=this.j.RS(),h=this.j.bS(),p=!1,f=(t,o,l=-1)=>{let u=new Date().valueOf();E.A.nt(this.j,E.A.it.Jh,u),-1!==l&&o.push(["X-Braze-Req-Tokens-Remaining",l.toString()]);let c=!1;I.A.ot({url:this.baseUrl+"/data/",data:t,headers:o,lt:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.$d=Math.max(this.$d-1,0)),this.B.ut(t,i,o)?(this.Cl.ct(),this.h.wd(i),null!=t.respond_with&&t.respond_with.user_id!=this.Ss.getUserId()||(null!=t.device&&this.j.Pt(r.d.It.Mc,t.device),null!=t.sdk_metadata&&(this.j.Pt(r.d.It.Hl,t.sdk_metadata),this.j.Pt(r.d.It.Yl,this.C.$t())),this.Ad(i),E.A.$c(this.j,E.A.it.Jh,1),"function"==typeof n&&n())):i.auth_error&&(c=!0)},error:()=>{c=!0,null!=t.respond_with&&t.respond_with.triggers&&(this.$d=Math.max(this.$d-1,0)),this.B.Jl(t.events,t.attributes),"function"==typeof s&&s()},ft:(t,n)=>{"function"==typeof a&&a(!c);let r=this.B.Hc(n),s=0;if(r)switch(r.type){case"date":s=Math.max(r.value-new Date().valueOf(),0);break;case"timestamp":s=r.value}if(i&&!p){if(c){E.A.Oc(this.j,E.A.it.Jh);let t=this.h.vt(),i=this.h.gt(),n=this.h.bt(),r=this.Id;(null==r||r<t)&&(r=t);let a=Math.min(n,(0,N.C)(t,r*i))+s;this.Qd(a)}else this.Qd(Math.max(1e3*this.fS,s));p=!0}}})},m=this.Wd(d),g=t||m;if(this.Kd(l,m))return void o.A.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.B.Dc(d,h,g))return this.Qd(),void("function"==typeof a&&a(!0));let b=this.B.yc(g,d,h,u,c);g&&this.$d++;let v=!1;if(b)for(let t of b)this.B.et(t.requestData,i=>f(t.requestData,t.headers,i),E.A.it.Jh,s),v=!0;this.Cl.hc()&&i&&!v?this.Qd():m&&(o.A.info("Invoking new session subscriptions"),this.Pd.A(),this.Jd=!0)}Vd(){return this.$d>0}Qd(t=1e3*this.fS){this._d||(this.Hd(),this.Od=window.setTimeout(()=>{if(document.hidden){let t="visibilitychange",i=()=>{document.hidden||(document.removeEventListener(t,i,!1),this.Xd())};document.addEventListener(t,i,!1)}else this.Xd()},t),this.Id=t)}Hd(){null!=this.Od&&(clearTimeout(this.Od),this.Od=null)}initialize(){this._d=!1,this.Qd()}destroy(){this.Pd.removeAllSubscriptions(),this.Cl.gc(),this.Hd(),this._d=!0,this.Xd(void 0,!1,void 0,void 0,void 0,void 0,!0),this.Od=null,this.Jd=!1}rn(t){let i=this.Pd.Ut(t);return this.Jd&&t(),i}openSession(){let t=this.C.$t()!==this.C.ol();t&&(this.j.hS(r.d.Ou.Nl),this.j.hS(r.d.Ou.Cu)),this.Xd(!1,void 0,()=>{t&&(this.j.Vt(r.d.It.do),this.j.Vt(r.d.It.At))}),this.el(),t&&Promise.resolve().then(n.bind(n,23801)).then(t=>{if(this._d)return;let i=t.default.ra();if(null!=i&&(P.A.isPushPermissionGranted()||P.A.isPushBlocked())){let t=()=>{i.lu()?o.A.info("Push token maintenance is disabled, not refreshing token for backend."):i.subscribe()},n=()=>{let i=this.j.St(r.d.It.xu);(null==i||i)&&t()},s=a.A._s.Xs;new a.A(s,o.A).kr(s.Ws.Gu,(i,n)=>{n&&t()},n)}})}Yd(){this.j.Vt(r.d.It.ho),this.j.Vt(r.d.It.bi),this.j.Vt(r.d.It.Pa)}Zd(){this.j.Vt(r.d.It.Uc),this.j.Vt(r.d.It.lS),this.j.Vt(r.d.It._c),this.j.Vt(r.d.It.Jc)}changeUser(t,i,n){let s=this.Ss.getUserId();if(s!==t){this.C.jm(),this.Yd(),function(){let t=document.querySelectorAll(".ab-iam-root");for(let i=0;i<t.length;i++){let n=t[i];if(n.id){let t=n.id+"-css",i=document.getElementById(t);i&&i.parentNode&&i.parentNode.removeChild(i)}n.parentNode&&n.parentNode.removeChild(n)}let i=document.getElementsByClassName(C.iA.TE);for(let t=0;t<i.length;t++){let n=i[t].classList;n.contains(C.iA.TE)&&n.remove(C.iA.TE)}}(),null!=s&&this.Xd(void 0,!1,void 0,void 0,void 0),this.Ss.Lu(t),n?this.Cl.setSdkAuthenticationSignature(n):this.Cl.cc();for(let t=0;t<i.length;t++)i[t].changeUser(null==s);this.B.fo(),null!=s&&this.j.Vt(r.d.It.rS),this.j.Vt(r.d.It.Mc),this.j.Vt(r.d.It.uS),this.Zd(),this.openSession(),o.A.info('Changed user to "'+t+'".')}else{let i="Doing nothing.";n&&this.Cl.uc()!==n&&(this.Cl.setSdkAuthenticationSignature(n),i="Updated SDK authentication signature"),o.A.info(`Current user is already ${t}. ${i}`)}}requestImmediateDataFlush(t){this.Hd(),this.C.ol(),this.Xd(void 0,void 0,void 0,()=>{o.A.error("Failed to flush data, request will be retried automatically.")},t,!0)}Br(t,i,n="sdk"){this.C.ol(),o.A.info("Requesting explicit trigger refresh."),this.Xd(!0,void 0,t,i,void 0,void 0,void 0,n)}Hu(t,i){let n=_.w.vm,s={a:t,l:i},a=S.A.Dt(n,s);return a&&(o.A.info(`Logged alias ${t} with label ${i}
1`),this.j.Pt(r.d.It.uS,s)),a}Yu(t,i,n){if(this.h.zu(i))return o.A.info(`Custom Attribute "${i}" is blocklisted, ignoring.`),new T.A;let r=S.A.Dt(t,{key:i,value:n});if(r){let t="object"==typeof n?JSON.stringify(n,null,2):n;o.A.info(`Logged custom attribute: ${i} with value: ${t}`)}return r}setLastKnownLocation(t,i,n,r,s,a){let l={latitude:i,longitude:n};null!=r&&(l.altitude=r),null!=s&&(l.ll_accuracy=s),null!=a&&(l.alt_accuracy=a);let u=S.A.Dt(_.w.bm,l,t||void 0);return u&&o.A.info(`Set user last known location as ${JSON.stringify(l,null,2)}`),u}Sr(t,i){let n=this.C.ol();return new w.A(this.Ss.getUserId(),_.w.km,t,n,{cid:i})}ym(t,i){return new a.A(t,i)}el(){let t=a.A._s.Xs;this.ym(t,o.A).setItem(t.Ws.Jh,1,{baseUrl:this.baseUrl,data:{api_key:this.eu,device_id:this.tu.Ye().id},userId:this.Ss.getUserId(),sdkAuthEnabled:this.Cl.hc()})}Er(t){for(let i of t)if(i.api_key===this.eu)this.B.Jl(i.events,i.attributes);else{let t=a.A._s.Xs;new a.A(t,o.A).setItem(t.Ws.Dr,m.A.de(),i)}}Va(t,i,n){let r,s;return this.h.zu(t)?(o.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new T.A):(null===i&&null===n?(r=_.w.Am,s={key:t}):(r=_.w.Dm,s={key:t,latitude:i,longitude:n}),S.A.Dt(r,s))}Wa(t,i){return S.A.Dt(_.w.$m,{group_id:t,status:i})}}class R{constructor(t=0,i=[],n=[],r=[],s=null,a=null,o={enabled:!1},l={enabled:!1,refresh_rate_limit:void 0},u={enabled:!0,capacity:k.uy,refill_rate:k.Fn,endpoint_overrides:{}},c=null,d=null,h=null,p=null,f=null){this.Ed=t,this.Sd=i,this.Fd=n,this.Ld=r,this.kd=s,this.Td=a,this.yd=o,this.Rr=l,this.Bd=u,this.banners=c,this.dust=d,this.xd=h,this.Gd=p,this.Md=f}qt(){return{s:"6.13.0",l:this.Ed,e:this.Sd,a:this.Fd,p:this.Ld,m:this.kd,v:this.Td,c:this.yd,f:this.Rr,grl:this.Bd,b:this.banners,d:this.dust,rb:this.xd,mst:this.Gd,ch:this.Md}}static _u(t){let i=t.l;return"6.13.0"!==t.s&&(i=0),new R(i,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl,t.b,t.d,t.rb,t.mst,t.ch)}}class D{constructor(t){this.j=t,this.j=t,this.ld=new s.A,this.dd=new s.A,this.vd=new s.A,this.md=new s.A,this.gd=new s.A,this.bd=new s.A,this.fd=null,this.pd=null}Cd(){var t;if(null==this.pd){let i=null==(t=this.j)?void 0:t.St(r.d.It.Rd);this.pd=null!=i?R._u(i):new R}return this.pd}Qt(){return this.Cd().Ed}wd(t){var i,n,s,a,o,l;if(null!=t&&null!=t.config){let u=t.config;if(u.time>this.Cd().Ed){let t=t=>null==t?this.Cd().Bd:t,c=new R(u.time,u.events_blacklist,u.attributes_blacklist,u.purchases_blacklist,u.messaging_session_timeout,u.vapid_public_key,u.content_cards,u.feature_flags,t(u.global_request_rate_limit),u.banners,u.dust,u.request_backoff,u.minimum_session_timeout,u.conversational_chat),d=!1;null!=c.Td&&this.Wu()!==c.Td&&(d=!0);let h=!1;null!=c.yd.enabled&&this.Pi()!==c.yd.enabled&&(h=!0);let p=!1;null!=c.Rr.enabled&&this.Qr()!==c.Rr.enabled&&(p=!0);let f=!1;null!=(null==(i=c.banners)?void 0:i.enabled)&&this.Ot()!==(null==(n=c.banners)?void 0:n.enabled)&&(f=!0);let m=!1;null!=(null==(s=c.dust)?void 0:s.enabled)&&this.Ih()!==(null==(a=c.dust)?void 0:a.enabled)&&(m=!0);let g=!1;null!=(null==(o=c.Md)?void 0:o.enabled)&&this.Zi()!==(null==(l=c.Md)?void 0:l.enabled)&&(g=!0),null!=c.Md&&this.dn()!==(c.Md.widget_url||null)&&(g=!0),this.pd=c,this.j.Pt(r.d.It.Rd,c.qt()),d&&this.ld.A(),h&&this.dd.A(),p&&this.vd.A(),f&&this.md.A(),m&&this.gd.A(),g&&this.bd.A()}}}ju(t){let i=this.ld.Ut(t);return this.fd&&this.ld.removeSubscription(this.fd),this.fd=i,i}$i(t){return this.dd.Ut(t)}po(t){return this.vd.Ut(t)}V(t){return this.md.Ut(t)}Tr(t){return this.gd.Ut(t)}ln(t){return this.bd.Ut(t)}Le(t){return -1!==this.Cd().Sd.indexOf(t)}zu(t){return -1!==this.Cd().Fd.indexOf(t)}Pr(t){return -1!==this.Cd().Ld.indexOf(t)}jd(){return this.Cd().kd}Wu(){return this.Cd().Td}Pi(){return this.Cd().yd.enabled||!1}Dd(){let t=this.Cd().Bd;return!(!t||null==t.enabled)&&t.enabled}nd(){if(!this.Dd())return -1;let t=this.Cd().Bd;return null==t.capacity||t.capacity<10?-1:t.capacity}ad(){if(!this.Dd())return -1;let t=this.Cd().Bd;return null==t.refill_rate||t.refill_rate<=0?-1:t.refill_rate}Nd(t){let i=this.Cd().Bd.endpoint_overrides;return null==i?null:i[t]}hd(t){let i=this.Nd(t);return null==i||isNaN(i.capacity)||i.capacity<=0?-1:i.capacity}ud(t){let i=this.Nd(t);return null==i||isNaN(i.refill_rate)||i.refill_rate<=0?-1:i.refill_rate}Qr(){return this.Cd().Rr.enabled&&null==this.wo()?(S.A.Dt(_.w.Zl,{e:"Missing feature flag refresh_rate_limit."}),!1):this.Cd().Rr.enabled||!1}wo(){return this.Cd().Rr.refresh_rate_limit}Ot(){var t;return(null==(t=this.Cd().banners)?void 0:t.enabled)||null}re(){var t;return(null==(t=this.Cd().banners)?void 0:t.max_placements)||0}Gt(){var t;let i=null==(t=this.Cd().banners)?void 0:t.dismissals_cache_size;return null!=i&&"number"==typeof i&&i>0?i:k._S}Ih(){var t;return(null==(t=this.Cd().dust)?void 0:t.enabled)||!1}Zi(){var t;return(null==(t=this.Cd().Md)?void 0:t.enabled)||!1}dn(){var t;return(null==(t=this.Cd().Md)?void 0:t.widget_url)||null}vt(){var t;let i=null==(t=this.Cd().xd)?void 0:t.min_sleep_duration_ms;return null!=i?i:k.xm}gt(){var t;let i=null==(t=this.Cd().xd)?void 0:t.scale_factor;return null!=i?i:k.MF}bt(){var t;let i=null==(t=this.Cd().xd)?void 0:t.max_sleep_duration_ms;return null!=i?i:k.T}qd(){return this.Cd().Gd}}class M{constructor(t,i,n,r){this.j=t,this.Ss=i,this.h=n,this.tm=r,this.j=t,this.Ss=i,this.h=n;const s=this.h.qd();this.im=s?1e3*s:1e4,(null==r||isNaN(r))&&(r=1800),r<this.im/1e3&&o.A.info("Specified session timeout of "+r+"s is too small, using the minimum session timeout of "+this.im/1e3+"s instead."),this.tm=Math.max(r,this.im/1e3)}nm(t,i){return new w.A(this.Ss.getUserId(),_.w.hm,t,i.Iu,{d:(0,A.UK)(t-i.lm)})}Kl(){return this.j.$u(r.d.Ou.am)}$t(){let t=this.j.$u(r.d.Ou.am);return null==t?null:t.Iu}dm(){let t=new Date().valueOf(),i=this.h.jd();if(null==i)return!1;let n=this.j.St(r.d.It.fm),s=null==n||t-n>1e3*i;return s&&this.j.Pt(r.d.It.fm,t),s}Fl(t,i){return null==i||null==i.pm||!(t-i.lm<this.im)&&i.pm<t}ol(){let t=new Date().valueOf(),i=t+1e3*this.tm,n=this.j.$u(r.d.Ou.am);if(this.Fl(t,n)){let s="Generating session start event with time "+t;if(null!=n){let t=n.gm;t-n.lm<this.im&&(t=n.lm+this.im),this.j.wm(this.nm(t,n)),s+=" (old session ended "+t+")"}s+=". Will expire "+i.valueOf(),o.A.info(s);let a=new f.A(m.A.de(),i);return this.j.wm(new w.A(this.Ss.getUserId(),_.w.Sm,t,a.Iu)),this.j.Ju(r.d.Ou.am,a),null==this.j.St(r.d.It.fm)&&this.j.Pt(r.d.It.fm,t),a.Iu}if(null!=n)return n.gm=t,n.pm=i,this.j.Ju(r.d.Ou.am,n),n.Iu}jm(){let t=this.j.$u(r.d.Ou.am);null!=t&&(this.j.xm(r.d.Ou.am),this.j.wm(this.nm(new Date().valueOf(),t)))}}let U={Bl:function(t,i=!1,n){let s,a=U.og(),o=U.zl(),l=new r.A.tg(t,a&&!i,o,n);return s=o?new r.A.eg(t):new r.A.rg,new r.A(l,s)}
1,og:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)},zl:function(){let t=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(r.d.It.ag,"true"),localStorage.getItem(r.d.It.ag)?(localStorage.removeItem(r.d.It.ag),t=!0):t=!1}catch(i){if(!(i instanceof Error&&("QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&localStorage.length>0))throw i;t=!0}}catch(t){o.A.info("Local Storage not supported!")}return t}};var B=n(9848);let z=[r.d.It.Re,r.d.It._e,r.d.It.Fe,r.d.It.Me];function L(t){return!!t&&Math.floor(new Date().valueOf()/1e3)>=t}function F(t){return!!(t.Oe&&t.host)&&!L(t.expiration)}class ${constructor(t){this.j=t,this.j=t,this.Ue=null,this.Ge=null}read(){return this.j?{Oe:this.j.St(r.d.It.Re),host:this.j.St(r.d.It._e),He:this.j.St(r.d.It.Fe),expiration:this.j.St(r.d.It.Me)}:{Oe:null,host:null,He:null,expiration:null}}write(t){let i=this.j;i&&(i.Pt(r.d.It.Re,t.Oe),i.Pt(r.d.It._e,t.host),t.He?i.Pt(r.d.It.Fe,t.He):i.Vt(r.d.It.Fe),t.expiration?i.Pt(r.d.It.Me,t.expiration):i.Vt(r.d.It.Me))}clear(){let t=this.j;t&&(t.Vt(r.d.It.Re),t.Vt(r.d.It._e),t.Vt(r.d.It.Fe),t.Vt(r.d.It.Me))}Ve(){let t=this.j;if(!t)return m.A.de();let i=t.St(r.d.It.We),n=new Date().valueOf();if(i&&"number"==typeof i.e&&i.e>n)return null;let s=m.A.de();t.Pt(r.d.It.We,{t:s,e:n+2e3});let a=t.St(r.d.It.We);return a&&a.t===s?s:null}Je(t){let i=this.j;if(!i)return;let n=i.St(r.d.It.We);n&&n.t!==t||i.Vt(r.d.It.We)}Qe(t,i){if(this.Ue||null!==this.Ge)return!1;let n=this.read();if(F(n))return t(n),!0;let r=new Date().valueOf()+2e3,s=()=>{let n=this.read();F(n)?(this.Xe(),t(n)):new Date().valueOf()>=r&&(this.Xe(),o.A.info("Timed out waiting for another tab to refresh real-time messaging configuration"),i())};return this.Ue=t=>{if(t.key){for(let i=0;i<z.length;i++)if(0===t.key.indexOf(z[i]))return void s()}},window.addEventListener("storage",this.Ue),this.Ge=window.setInterval(s,100),!0}Xe(){this.Ue&&(window.removeEventListener("storage",this.Ue),this.Ue=null),null!==this.Ge&&(window.clearInterval(this.Ge),this.Ge=null)}destroy(){this.Xe()}}let q=["ccr","ffr","tgr"];class V{constructor(t){this.j=t,this.j=t}Mr(t){let i=this.j;if(!i||!function(t){for(let i of q)if(i===t)return!0;return!1}(t))return!0;
1let n=new Date().valueOf(),s=i.St(r.d.It._r);if(s&&this.Ir(s[t],n))return!1;let a={};if(s)for(let t in s)this.Ir(s[t],n)&&(a[t]=s[t]);a[t]=n,i.Pt(r.d.It._r,a);let o=i.St(r.d.It._r);return!o||o[t]===n}Wr(){this.j&&this.j.Vt(r.d.It._r)}Ir(t,i){return"number"==typeof t&&500>Math.abs(i-t)}}var W=n(25562);let J="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";class G extends u.A{constructor(t,i,n,r){super(),this.B=t,this.j=i,this.h=n,this.B=t,this.j=i,this.h=n,this.mite=null,this.Ze=null,this.Fn=null,this.Jn=null,this.Ln=r||null,this.Pn=null,this.Kn=null,this.Vn=null,this.T=null,this.Wn=0,this.Qn=15,this.Yn=null,this.Zn=null,this.ih=null,this.th=!0,this.sh=null,this.eh=null,this.nh=null,this.hh=null,this.oh=!1,this.rh=new Map,this.lh=null,this.ah=null,this.uh=null,this.gh=null,this.dh=new $(i),this.mh=null,this.fh=new V(i),this.ph=!1,this.wh()}qn(){return this.gh||(this.gh=function(){let t="";for(let i=0;i<10;i++)t+=J.charAt(Math.floor(Math.random()*J.length));return t}()),this.gh}bh(){this.Wn=0,this.sh=null,this.th=!0}yh(){return null!==this.Kn&&this.Kn===this.uh}Sh(t,i){let n=t.type;if(!n)return void o.A.warn(`Received real-time message without type: ${JSON.stringify(t)}`);if(o.A.info(`Received real-time message of type '${n}'`),"cir"===n)return void this.Rh(i||this.Kn);if(!this.fh.Mr(n))return void o.A.info(`Another tab is handling the real-time message of type '${n}', skipping it`);let r=this.rh.get(n);if(r&&r.$h()>0)try{r.A(t)}catch(t){o.A.error(`Error invoking subscription for message type '${n}': ${t}`)}else o.A.info(`No subscribers for real-time message type '${n}'`)}Rh(t){t&&this.Ch(t)&&(o.A.info("Real-time messaging connection is ready"),this.uh=t)}kh(t){this.uh===t&&(this.uh=null)}wh(){if(!this.j)return;let t=this.dh.read();t.mite&&t.host?(this.mite=t.mite,this.Ze=t.host,this.Fn=t.auth,this.Jn=t.expiration,o.A.info("Restored real-time messaging configuration from storage")):(t.mite||t.host)&&(o.A.warn("Incomplete real-time messaging configuration in storage, clearing"),this.jh())}xh(){let t=this.dh.read();t.mite&&t.host&&(t.auth!==this.Fn&&o.A.info("Using real-time messaging configuration refreshed by another tab"),this.mite=t.mite,this.Ze=t.host,this.Fn=t.auth,this.Jn=t.expiration)}Hr(){this.lh||this.ah||(this.lh=this.Mh("ddr",t=>{var i,n,r;let s=t.body;if(!s)return;let a=s.r_ms;if("number"!=typeof a)return;let l=s.e,u=(null==(i=this.h)?void 0:i.vt())||k.xm,c=(null==(n=this.h)?void 0:n.gt())||k.MF,d=Math.min((null==(r=this.h)?void 0:r.bt())||k.T,(0,N.C)(u,u*c)),h=Math.round(a+d),p=l?` (${l})`:"";o.A.info(`Admin requested disconnect${p}, reconnecting in ${h}ms (r_ms=${a} + backoff=${d})`),this.Fh(),this.ih=window.setTimeout(()=>{this.ih=null,this.Nh()},h)}),this.ah=this.Mh("ttl",t=>{let i=t.body;if(!i)return;o.A.info(`ttl message: ${JSON.stringify(i)}`);let n=i.t_ms;if("number"!=typeof n)return;o.A.info(`Time to live set to ${n}ms, will reconnect when expired`);let r=i.rcs;"string"==typeof r&&(this.Pn=r),null!==this.Zn&&window.clearTimeout(this.Zn),this.Zn=window.setTimeout(()=>{this.Zn=null,o.A.info("Time to live expired, performing gapless reconnection"),this.Th()},n)}))}Dh(){this.eh||this.nh||(this.hh=()=>{this.oh=!0,this.th=!1},window.addEventListener("beforeunload",this.hh),this.eh=()=>{this.oh=!0,this.Je(),(this.Kn||this.Vn)&&(o.A.info("Page unloading, closing real-time connection gracefully"),this.th=!1,this.Fh())},window.addEventListener("pagehide",this.eh),this.nh=t=>{t.persisted&&this.Uh()&&!this.Kn&&!this.Vn&&(o.A.info("Page restored from bfcache, reconnecting"),this.oh=!1,this.bh(),this.Nh())},window.addEventListener("pageshow",this.nh))}Et(){return this.T}Lt(t){this.T=t}Mh(t,i){if("function"!=typeof i)return null;let n=this.rh.get(t);return n||(n=new s.A,this.rh.set(t,n),en.S(n)),n.Ut(i)}Ah(t,i){let n=this.rh.get(t);n&&n.removeSubscription(i)}Uh(){return!!(this.mite&&this.Ze)}Eh(){return L(this.Jn)}jh(){this.mite=null,this.Ze=null,this.Fn=null,this.Jn=null,this.Pn=null,this.dh.clear()}Gh(t,i,n=!1){let r=()=>{"function"==typeof i&&i()},s=()=>{this.Nh(),"function"==typeof t&&t()};if(this.ph)return void r();let a=this.B,l=this.j;if(!a||!l)return o.A.error("NetworkManager or StorageManager not available"),void r();if(!this.h||!this.h.Ih())return o.A.info("Real-time messaging is not enabled, skipping refresh"),void r();let u=this.mh||this.dh.Ve();if(!u&&!n)return o.A.info("Another tab is refreshing real-time messaging configuration, waiting for the result"),void this.dh.Qe(()=>{this.xh(),s()},()=>this.Gh(t,i,!0));this.mh=u,this.Uh()?o.A.info("Refreshing real-time messaging configuration"):o.A.info("Fetching initial real-time messaging configuration");let c=a.Z({},!0),d=a.tt(c,E.A.it.Jh),h=new Date().valueOf();E.A.nt(l,E.A.it.Jh,h),I.A.ot({url:`${a.ht()}/dust/config`,headers:d,data:c,lt:t=>
1{if(!this.ph){if(this.Je(),!a.ut(c,t,d))return o.A.error("Failed to validate server response for real-time messaging configuration"),void r();a.ct(),t.mite&&t.host?(this.mite=t.mite,this.Ze=t.host,this.Fn=t.auth||null,this.Jn=t.expiration||null,o.A.info("Received real-time messaging configuration from server"),this.dh.write({mite:this.mite,host:this.Ze,auth:this.Fn,expiration:this.Jn}),s()):(o.A.info("Real-time messaging configuration not available - this SDK version may not be supported"),this.jh(),r())}},error:t=>{this.ph||(this.Je(),a.dt(t,"retrieving DUST config"),r())}})}Je(){this.mh&&(this.dh.Je(this.mh),this.mh=null)}Nh(){if(!this.ph&&this.h&&this.h.Ih())if(this.Vn)o.A.info("Real-time messaging connection attempt already in progress");else{if(this.xh(),this.Uh())return this.Eh()?(o.A.info("Real-time messaging auth token has expired, refreshing configuration"),void this.Gh(void 0,()=>{o.A.error("Failed to refresh expired real-time messaging configuration")})):void(this.Lh()&&(this.Ln||this.Ze)&&(this.Kn&&(o.A.info("Real-time connection already exists, closing before starting new subscription"),this.Fh()),this.Oh()));o.A.error("Cannot start real-time subscription without configuration")}}Lh(){return this.mite?function(t,i){if(!t)return t;let n=t.split(":");return n.length<3?(o.A.warn("Real-time messaging identifier is not a full identifier, using it as-is"),t):!function(t){if(!t)return!1;for(let i=0;i<t.length;i++)if(!(0,W.wu)(t.charAt(i)))return!1;return!0}(i)?(o.A.warn("Generated per-tab real-time messaging identifier is invalid, using the shared identifier"),t):n[0]+":"+n[1]+":"+i}(this.mite,this.qn()):null}Ph(){var t,i,n;let r,s,a=this.Lh(),o=this.Ln||this.Ze;return a&&o?(t=this.Wn,i=this.Fn||void 0,n=this.Pn||void 0,r=/^https?:\/\//i.test(o)?o:`https://${o}`,s=`mite=${encodeURIComponent(a)}&attempts=${t}`,i&&(s+=`&auth=${encodeURIComponent(i)}`),n&&(s+=`&rcs=${encodeURIComponent(n)}`),`${r}/sse?${s}`):null}Ch(t){return this.Kn===t||this.Vn===t}Oh(t){if(this.ph)return;let i=this.Ph();if(i){this.Ln&&o.A.info(`Using custom real-time messaging host: ${this.Ln}`);try{let n=new EventSource(i);this.Vn=n,o.A.info(`createConnection: ${i}`),n.onopen=()=>{this.Ch(n)?(this.Vn===n&&(this.Vn=null),t?(o.A.info("Gapless reconnection: new connection established, closing old connection"),t.close()):o.A.info("Real-time messaging connection established"),this.Kn=n,this.uh!==n&&(this.uh=null),this.Wn=0,this.sh=null,this.th=!0):n.close()},n.addEventListener("msg",t=>{this.Ch(n)?this.qh(t.data,n):(o.A.info("Ignoring real-time message from superseded connection"),n.close())}),n.onerror=()=>{let i=n.readyState;if(this.Ch(n)){if(this.oh||(0===i?o.A.info("Real-time messaging failed to connect"):o.A.info("Real-time messaging connection lost")),t&&this.Kn!==n)return o.A.info("Gapless reconnection failed, keeping old connection"),n.close(),this.Vn===n&&(this.Vn=null),void(this.th&&this.Wn<this.Qn&&this.Bh());if(this.Vn&&this.Kn===n)return n.close(),this.Kn=null,void this.kh(n);this.Fh(),this.th&&this.Wn<this.Qn?this.Bh():(this.Wn>=this.Qn&&o.A.error(`Max retry attempts (${this.Qn}) reached for real-time messaging, giving up for current session`),this.th=!1)}else n.close()}}catch(t){o.A.error(`Failed to create real-time messaging connection: ${t instanceof Error?t.message:String(t)}`)}}}Bh(){var t,i,n;this.Wn++;let r=(null==(t=this.h)?void 0:t.vt())||k.xm,s=(null==(i=this.h)?void 0:i.gt())||k.MF,a=(null==(n=this.h)?void 0:n.bt())||k.T,l=this.sh;(null==l||l<r)&&(l=r);let u=Math.min(a,(0,N.C)(r,l*s));this.sh=u,o.A.info(`Retrying real-time messaging connection in ${u}ms (attempt ${this.Wn}/${this.Qn})`),this.Yn=window.setTimeout(()=>{this.Yn=null,this.Nh()},u)}Th(){if(this.Vn)o.A.info("Real-time messaging connection attempt already in progress");else{if(this.xh(),this.Uh())return this.Eh()?(o.A.info("Auth token expired during gapless reconnection, falling back to regular reconnection"),this.Fh(),void this.Nh()):void(this.Vn?o.A.info("Real-time connection attempt already in progress, skipping gapless reconnection"):(null!==this.Zn&&(window.clearTimeout(this.Zn),this.Zn=null),this.Oh(this.Kn||void 0)));o.A.error("Cannot perform gapless reconnection without configuration")}}Fh(){null!==this.Yn&&(window.clearTimeout(this.Yn),this.Yn=null),null!==this.Zn&&(window.clearTimeout(this.Zn),this.Zn=null),null!==this.ih&&(window.clearTimeout(this.ih),this.ih=null),this.uh=null,this.Vn&&(this.Vn.close(),this.Vn=null),this.Kn&&(this.Kn.close(),this.Kn=null,o.A.info("Real-time messaging connection closed"))}qh(t,i){try{let n=JSON.parse(t);this.Sh(n,i)}
1catch(t){o.A.warn(`Failed to parse real-time message: ${t instanceof Error?t.message:String(t)}`)}}changeUser(t=!1){this.Fh(),t||(this.Uh()&&o.A.info("Clearing cached real-time messaging configuration for user change"),this.jh()),this.bh()}clearData(t=!1){this.th=!1,this.Fh(),t&&(this.Uh()&&o.A.info("Clearing cached real-time messaging configuration (wipeData)"),this.jh(),this.fh.Wr()),this.bh()}destroy(){this.ph=!0,this.th=!1,this.Fh(),this.Je(),this.dh.destroy(),this.jh(),this.lh&&(this.Ah("ddr",this.lh),this.lh=null),this.ah&&(this.Ah("ttl",this.ah),this.ah=null),this.hh&&(window.removeEventListener("beforeunload",this.hh),this.hh=null),this.eh&&(window.removeEventListener("pagehide",this.eh),this.eh=null),this.nh&&(window.removeEventListener("pageshow",this.nh),this.nh=null),this.T&&(en.removeSubscription(this.T),this.T=null)}}let H={i:!1,provider:null,o:()=>{if(H.t(),!H.provider){let t=en.er("dustHost");H.provider=new G(en.m(),en.p(),en.l(),t),en.v(H.provider),H.provider.Hr()}return H.provider},t:()=>{H.i||(en.g(H),H.i=!0)},destroy:()=>{H.provider&&H.provider.destroy(),H.provider=null,H.i=!1}};var K=n(44341),Z=n(44917);class X{constructor(t,i){this.h=t,this.j=i,this.h=t,this.j=i}getUserId(){let t=this.j.$u(r.d.Ou.Cu);if(null==t)return null;let i=t.Iu,n=(0,W.Ne)(i);if(n>Z.A.Ur){for(;n>Z.A.Ur;)i=i.slice(0,i.length-1),n=(0,W.Ne)(i);t.Iu=i,this.j.Ju(r.d.Ou.Cu,t)}return i}Lu(t){let i=null==this.getUserId();this.j.Ju(r.d.Ou.Cu,new f.A(t)),i&&this.j.qu(t)}setCustomUserAttribute(t,i){if(this.h.zu(t))return o.A.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;let n={};return n[t]=i,this.Bu(Z.A.Eu,n,!0)}Bu(t,i,n=!1,r=!1){let s=this.j.Fu(this.getUserId(),t,i),a="",l=t,u=i;return n&&(a=" custom","object"==typeof i&&(l=Object.keys(i)[0],"object"==typeof(u=i[l])&&(u=JSON.stringify(u,null,2)))),!r&&s&&o.A.info(`Logged${a} attribute ${l} with value ${u}`),s}yu(t,i,n,s,l){this.Bu("push_token",t,!1,!0),this.Bu("custom_push_public_key",n,!1,!0),this.Bu("custom_push_user_auth",s,!1,!0),this.Bu("custom_push_vapid_public_key",l,!1,!0);let u=a.A._s.Xs,c=new a.A(u,o.A),d=new K.A(t,i,n,s,l);this.j.Pt(r.d.It.xu,d.qt()),c.setItem(u.Ws.Gu,u.ze,!0)}wu(t){if(this.Bu("push_token",null,!1,!0),this.Bu("custom_push_public_key",null,!1,!0),this.Bu("custom_push_user_auth",null,!1,!0),this.Bu("custom_push_vapid_public_key",null,!1,!0),t){let t=a.A._s.Xs,i=new a.A(t,o.A);this.j.Pt(r.d.It.xu,!1),i.setItem(t.Ws.Gu,t.ze,!1)}}}var Y=n(54924),Q=n(81415);let ee={hl:"allowCrawlerActivity",cl:"baseUrl",xe:"cookieExpiryInDays",ml:"noCookies",fl:"devicePropertyAllowlist",Oa:"disablePushTokenMaintenance",El:"enableLogging",Il:"enableSdkAuthentication",Na:"manageServiceWorkerExternally",_l:"minimumIntervalBetweenTriggerActionsInSeconds",gl:"sessionTimeoutInSeconds",Sl:"appVersion",Al:"appVersionNumber",Ha:"serviceWorkerLocation",La:"safariWebsitePushId",al:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",Ee:"inAppMessageZIndex",Te:"conversationalChatZIndex",Ja:"openInAppMessagesInNewTab",Zh:"requireExplicitInAppMessageDismissal",vl:"doNotLoadFontAwesome",Nl:"deviceId",Ka:"serviceWorkerScope",_e:"dustHost",Ol:"sdkFlavor",tn:"openCardsInNewTab"},et={hl:"allowCrawlerActivity",cl:"baseUrl",xe:"cookieExpiryInDays",ml:"noCookies",fl:"devicePropertyAllowlist",Oa:"disablePushTokenMaintenance",El:"enableLogging",Il:"enableSdkAuthentication",Na:"manageServiceWorkerExternally",_l:"minimumIntervalBetweenTriggerActionsInSeconds",gl:"sessionTimeoutInSeconds",Sl:"appVersion",Al:"appVersionNumber",Ha:"serviceWorkerLocation",La:"safariWebsitePushId",al:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",Ee:"inAppMessageZIndex",Te:"conversationalChatZIndex",Ja:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",Zh:"requireExplicitInAppMessageDismissal",vl:"doNotLoadFontAwesome",Nl:"deviceId",Ka:"serviceWorkerScope",_e:"dustHost",Ol:"sdkFlavor"};class ei{constructor(){this.eu="",this.Tl="",this.wl=void 0,this.Cl=null,this.bl=null,this.tu=null,this.B=null,this.Ru=null,this.h=null,this.C=null,this.j=null,this.Ss=null,this.Rl="",this.isInitialized=!1,this.Pl=!1,this.Dl=new s.A,this.Ll=new s.A,this.options={},this.jl=[],this.yl=[],this.So=[],this.Tl="6.13.0"}Ml(t){this.Dl.Ut(t)}On(t){this.Ll.Ut(t)}initialize(t,i){var a,u,h;if(this.vr())return o.A.info("Braze has already been initialized with an API key."),!0;this.options=i||{};
1let m=this.er(et.El),b=(0,Y.y)(Q.uD.Ul());if(b&&"true"===b.brazeLogging&&(m=!0),o.A.init(m),o.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return o.A.error("Braze requires a valid API key to be initialized."),!1;this.eu=t;let y=this.er(et.cl);if(null==y||""===y||"string"!=typeof y)return o.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(y)&&(y=`https://${y}`);let w=y;if((y=document.createElement("a")).href=w,"/"===y.pathname&&(y=`${y}api/v3`),this.Rl=y.toString(),d.A.kl&&!this.er(et.hl))return o.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Pl=!0,!1;let A=this.er(et.ml)||!1,S=this.er(et.xe),_=U.zl();if(this.j=U.Bl(t,A,S),A&&this.j.Vl(t),new r.A.De(null,!0).wr(r.d.Se))return o.A.info("Ignoring all activity due to previous opt out"),this.Pl=!0,!1;for(let t of(0,g.HP)(this.options))-1===(0,g.zu)(ee).indexOf(t)&&o.A.warn(`Ignoring unknown initialization option '${t}'.`);if(null!=this.er(et.Ol)){let t=this.er(et.Ol);-1!==["mparticle","wordpress","tealium"].indexOf(t)?this.wl=t:o.A.error("Invalid sdk flavor passed: "+t)}let E=this.er(ee.fl);if(null!=E)if((0,g.cy)(E)){let t=[];for(let i=0;i<E.length;i++)(0,g.BY)(p,E[i],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(E[i]);E=t}else o.A.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),E=null;let k=this.er(et.Nl);
1if(k){let t=new f.A(k);this.j.Ju(r.d.Ou.Nl,t)}this.tu=new v(this.j,E),this.bl=new c,this.h=new D(this.j),this.Ss=new X(this.h,this.j),this.C=new M(this.j,this.Ss,this.h,this.er(et.gl));let x=new s.A;this.Cl=new l(this.j,this.er(et.Il),x),this.S(x),this.B=new O(this.tu,this.j,this.Cl,this.Ss,this.C,this.h,this.eu,this.Rl,this.Tl,this.wl||"",this.er(et.Sl),this.er(et.Al)),this.Ru=new j(this.eu,this.Rl,this.C,this.tu,this.Ss,this.h,this.j,t=>{if(this.vr())for(let i of this.$r())i.q(t)},this.Cl,this.B),this.Ru.initialize(),A||this.j.Wl(),o.A.info(`Initialized for the Braze backend at "${this.er(et.cl)}" with API key "${this.eu}".`),B.B.t(),function(){let t=en.l(),i=en.nn();if(!t||!i)return;let n=H.o(),r=()=>{if(!n.Et()){n.Dh();let r=i.rn(()=>{t.Ih()&&n.Gh()});return r&&n.Lt(r),n.Uh()&&n.Nh(),r}return n.Et()};t.Tr(()=>{en.vr()&&(t.Ih()?(n.Gh(),r()):(n.Fh(),n.Uh()&&n.jh()))}),t.Ih()&&r()}(),this.h.po(()=>{var t;this.isInitialized&&(null==(t=this.h)?void 0:t.Qr())&&Promise.resolve().then(n.bind(n,33954)).then(t=>{this.isInitialized&&(0,t.default)()})}),this.Ru.rn(()=>{var t;this.isInitialized&&(null==(t=this.h)?void 0:t.Qr())&&Promise.resolve().then(n.bind(n,33954)).then(t=>{this.isInitialized&&(0,t.default)(void 0,void 0,!0)})}),this.Dl.A(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),this.ar("tgr",()=>{var t;null==(t=this.Ru)||t.Br(void 0,void 0,"dust")});let I=null==(a=this.C)?void 0:a.Kl();return _||null==I||(null==(u=this.C)?void 0:u.Fl(new Date().valueOf(),I))||null==(h=this.Ru)||h.Br(),!0}destroy(t){if(o.A.destroy(),this.vr()){for(let t of(this.Ll.A(),this.Ll.removeAllSubscriptions(),this.jl))t.destroy();for(let t of(this.jl=[],this.yl))t.clearData(!1);this.B&&this.B.fo(),this.yl=[],this.removeAllSubscriptions(),this.So=[],null!=this.Ru&&this.Ru.destroy(),this.Ru=null,this.Cl=null,this.bl=null,this.tu=null,this.B=null,this.h=null,this.C=null,this.Ss=null,this.options={},this.wl=void 0,this.isInitialized=!1,this.Pl=!1,t&&(this.j=null)}}rr(){return!this.Gl()&&(!!this.vr()||(console.warn(k.em.ee),!1))}Fa(){return this.eu}Gr(){return this.Cl}ht(){return this.Rl}br(){return this.bl}Ie(){return this.tu}m(){return this.B}er(t){return this.options[t]}$r(){return this.yl}nn(){return this.Ru}l(){return this.h}u(){return this.C}p(){return this.j}zr(){if(this.Ss&&this.Ru)return new Z.A(this.Ss,this.Ru)}ir(){return this.Ss}dr(){return!0===this.er(et.nr)}g(t){let i=!1;for(let n of this.jl)n===t&&(i=!0);i||this.jl.push(t)}v(t){let i=!1;for(let n of this.yl)n.constructor===t.constructor&&(i=!0);t instanceof u.A&&!i&&this.yl.push(t)}S(t){t instanceof s.A&&this.So.push(t)}removeAllSubscriptions(){if(this.rr())for(let t of this.So)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(let i of this.So)i.removeSubscription(t)}qe(t){this.Pl=t}vr(){return this.isInitialized}Gl(){return this.Pl}ar(t,i){return this.rr()?H.o().Mh(t,i):null}qi(){return this.Tl}}let en=new ei},66045:(t,i,n)=>{"use strict";n.d(i,{A:()=>r});let r={Rc:"invalid_api_key",qc:"blacklisted",Ac:"no_device_identifier",vc:"invalid_json_response",Ql:"empty_response",__:"sdk_auth_error"}},67701:(t,i,n)=>{"use strict";n.d(i,{A:()=>d,m:()=>c});var r=n(37876),s=n(27964),a=n(14232),o=n(89384);let l={isStickyHeaderVisible:!0,setIsStickyHeaderVisible:o.t,addAdPositionOnPage:o.t},u=(0,a.createContext)(l),c=(0,a.memo)(t=>{let i,n,o=(0,s.c)(5),{children:c,appState:d}=t,h=(0,a.useRef)(null);o[0]!==d?(i={...l,...d,stickyHeaderRef:h},o[0]=d,o[1]=i):i=o[1];let p=i;return o[2]!==c||o[3]!==p?(n=(0,r.jsx)(u.Provider,{value:p,children:c}),o[2]=c,o[3]=p,o[4]=n):n=o[4],n}),d=()=>(0,a.useContext)(u)},68239:(t,i,n)=>{"use strict";n.d(i,{$:()=>o});var r=n(27964),s=n(14232),a=n(2200);let o=t=>{let i,n,o=(0,r.c)(3),c=(0,s.useRef)(void 0);o[0]!==t?(i=()=>{let i=l(t,c);return(0,a.X5)(i),()=>{u(c)}},n=[t],o[0]=t,o[1]=i,o[2]=n):(i=o[1],n=o[2]),(0,s.useEffect)(i,n)},l=(t,i)=>(n,r)=>{r&&n.listenerId?(i.current=n.listenerId,t(n,r)):(console.error("Failed to add event listener to Privacy Manager"),i.current=void 0)},u=t=>{t.current&&(c(t.current,t=>{t||console.error("Failed to remove event listener from Privacy Manager")}),t.current=void 0)},c=(t,i)=>{var n,r;null==(n=(r=window).__tcfapi)||n.call(r,"removeEventListener",2,i,t)}},68260:(t,i,n)=>{"use strict";n.d(i,{Bv:()=>p,U4:()=>
1o,iC:()=>S});var r=n(41362),s=n(33399),a=n(74730);let o={enableGoogleExtendedAccessOnArticlePage:!0,renderHeader:!0,renderFooter:!0,renderActionButtons:!0,adState:s.jL.UseWebAdScript,enableArticleTailFollowTags:!0,enableAutoWelcomeBack:!0,enableGTM:!0,gtmSource:s.AF.Web,enableImageViewer:!0,useDefaultMinWidth:!0,forceFullPageNavigation:!1,addBaseTag:!1,disableMeteredSoftWall:!1,isLiveArticleEmbedPage:!1,hideTickerLane:!1,useInkBridge:!1,useInkAuth:!1,acceptedChannelFilter:"web-html",hideSideLane:!1,enableStickyVideo:!0,useInkMiniplayer:!1,enableSubscribeLink:!0,offerSelector:{useWebSAFE:!0},loadBraze:!0,showNotificationSubscriptionComponent:!1,storeInkConsentsToBrowserStorage:!1,fetchNodeAreas:!0},l={...o,enableGoogleExtendedAccessOnArticlePage:!1,renderHeader:!1,renderFooter:!1,renderActionButtons:!1,adState:s.jL.UseMobileAdScript,enableArticleTailFollowTags:!1,enableAutoWelcomeBack:!1,enableGTM:!0,gtmSource:s.AF.MobileApps,enableImageViewer:!0,forceFullPageNavigation:!0,hideTickerLane:!0,disableMeteredSoftWall:!1,useInkBridge:!0,useInkAuth:!0,acceptedChannelFilter:"apps-html",hideSideLane:!0,enableStickyVideo:!0,useInkMiniplayer:!0,offerSelector:{useWebSAFE:!1},loadBraze:r.A.loadBrazeInMobile,showNotificationSubscriptionComponent:!0},u={...l,loadBraze:!1},c={...o,renderHeader:!1,renderFooter:!1,adState:s.jL.Disabled,enableAutoWelcomeBack:!1,enableGTM:!1,enableImageViewer:!1,useDefaultMinWidth:!1,addBaseTag:!0,disableMeteredSoftWall:!0,isLiveArticleEmbedPage:!0,loadBraze:!1},d={...o,adState:s.jL.UseWebAdScript,enableAutoWelcomeBack:!1,enableGTM:!0,enableImageViewer:!1,addBaseTag:!0,disableMeteredSoftWall:!0,forceFullPageNavigation:!0,enableSubscribeLink:!1},h={...l,renderHeader:!1,useInkBridge:!1,useInkAuth:!1,enableAutoWelcomeBack:!1,enableImageViewer:!1,disableMeteredSoftWall:!1,enableStickyVideo:!1,useInkMiniplayer:!1,showNotificationSubscriptionComponent:!1,enableGTM:!0,gtmSource:s.AF.Shopping,loadBraze:!1},p={platform:void 0,pictureInPictureEnabled:!1,useRuutuPlayerDebugVersion:!1,ruutuPlayerVersion:void 0,openImageGalleryEvent:!1,iOSExternalLinkAccount:void 0},f={...o,renderHeader:!1,renderFooter:!1,renderActionButtons:!1,adState:s.jL.Disabled,enableArticleTailFollowTags:!1,enableAutoWelcomeBack:!1,enableGTM:!1,enableImageViewer:!1,useDefaultMinWidth:!1,forceFullPageNavigation:!1,addBaseTag:!1,disableMeteredSoftWall:!1,isLiveArticleEmbedPage:!1,hideTickerLane:!1,useInkBridge:!1,useInkAuth:!1,acceptedChannelFilter:"web-html",hideSideLane:!0,enableStickyVideo:!1,useInkMiniplayer:!1,enableSubscribeLink:!1,offerSelector:{useWebSAFE:!1},loadBraze:!1},m={enableSubscribeLink:!1},g={...m,storeInkConsentsToBrowserStorage:!0,gtmSource:s.AF.Shopping},b={storeInkConsentsToBrowserStorage:!0},v={loadBraze:!1},y={enableAutoWelcomeBack:!1},w={enableAutoWelcomeBack:!1,enableStickyVideo:!1,useInkMiniplayer:!1,enableGoogleExtendedAccessOnArticlePage:!1,adState:s.jL.Disabled,enableGTM:!1,loadBraze:!1,storeInkConsentsToBrowserStorage:!1,fetchNodeAreas:!1},A=t=>(0,a.e4)(t)?l:o,S=(t,i)=>{switch(t){case"/iframe/livearticles/[articleId]":return c;case"/iframe/laneitems/[laneItemId]/ingress":case"/paywall/v1/[paywallType]":case"/weatherWidget":return u;case"/nopeat/[reelId]":return{...A(i),...v};case"/tilaus/[...slug]":return(0,a.e4)(i)?h:d;case"/public-transit-screen/[vehicle]":return f;case"/player/[assetId]":case"/miniplayer/[assetId]":return{...A(i),...w};case"/tilaa":case"/tilaa/[campaignId]":return{...A(i),...m};case"/tilaa/android":case"/tilaa/android/[campaignId]":return{...A(i),...g};case"/tilaa/ios":case"/tilaa/ios/[campaignId]":return{...A(i),...g,enableAutoWelcomeBack:!1};case"/lehti/[product]/[id]":return{...o,...y};case"/iframe/laneitems/[laneItemId]":case"/prototypes/comments/[articleId]":return{...A(i),...b};default:return A(i)}}},68547:t=>{"use strict";t.exports=function(){}},68684:(t,i,n)=>{"use strict";n.d(i,{Cw:()=>k,Go:()=>C,Hf:()=>E,IM:()=>j,M0:()=>P,M3:()=>N,dG:()=>_,jL:()=>S,s1:()=>I,wm:()=>x,xA:()=>T,xJ:()=>O});var r=n(72928),s=n(17924),a=n(62498),o=n(51144),l=n(63881),u=n(59712),c=n(71152),d=n(2200),h=n(78101),p=n(99373),f=n(74730),m=n(19221),g=n(35990),b=n(464),v=n(23305),y=n(70158);let w=function(t,i,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;switch(h.s.setJSON(m.q,t),A(t,i,n),t.authenticationStatus){case o.J.Unknown:case o.J.AutoWelcomeBack:null==a||a(!0);break;case o.J.Authenticated:{(0,y.Rx)();let t=(i,n)=>{n&&"tcloaded"===i.eventStatus&&setTimeout(()=>{(0,y.IV)(!0,r),(0,u.IO)(s),null==a||a(!0),(0,d.am)(t)},200)};(0,d.X5)(t);return}case o.J.Unauthenticated:{(0,y.tZ)(),(0,y.Rx)();let t=(i,n)=>{n&&"tcloaded"===i.eventStatus&&setTimeout(()=>{(0,y.IV)(!1,r),null==a||a(!0),(0,d.am)(t)},200)};(0,d.X5)(t);return}default:(0,y.tZ)(),(0,y.Rx)(),null==a||a(!0)}},A=(t,i,n)=>{(0,b.ND)()&&h.s.setJSON(m.z,(0,d.Og)(t,i,n)),(0,d.X5)((r,s)=>{s&&"useractioncomplete"===r.eventStatus&&((0,b.ND)()?h.s.setJSON(m.z,(0,d.Og)(t,i,n)):h.s.removeItem(m.z))})},S=(t,i,n,r)=>{k(t,r),x(n),n||(window.location.href=(0,f.ZX)(t,i))},_=(t,i,n,r)=>{k(t,r),I(n),n||(window.location.href=(0,f.Ln)(t,i))},E=(t,i,n,s)=>{w({authenticationStatus:o.J.Unauthenticated,expires:void 0},t,i),(0,v.zJ)(),(0,u.bm)(),n&&(0,r.o)(),(0,b.rg)({clearCookieConsents:s,brand:t})},k=(t,i)=>{w({authenticationStatus:o.J.Unknown},t,i)},x=(t,i)=>{t&&((0,s.Wr)({type:a.oi.StartLogin}),i&&i.preventDefault())},I=(t,i)=>{t&&((0,s.Wr)({type:a.oi.StartRegistration}),i&&i.preventDefault())},O=async(t,i,n,r,s,a,u)=>{try{let t=await (0,l.ug)(s,u),i={...t.userModel,authenticationStatus:o.J.Authenticated};return w({...i,expires:(0,p.ps)()},n,r,t.ceId,t.analyticsEntitlements,a),{user:i,ceId:t.ceId}}catch(s){if(E(n,r,!0,i),null==a||a(!0),t&&(0,g.AI)())return{user:{authenticationStatus:o.J.AutoWelcomeBack}};return{user:{authenticationStatus:o.J.Unauthenticated}}}},C=(t,i,n,r,s)=>{let a={authenticationStatus:o.J.Unknown};if(!(0,c.Bd)()||i)return a;let l=h.s.getJSON(m.q),u="true"===(0,f.vR)(s,"fromAWB");return l&&!(l.authenticationStatus!==o.J.Unknown&&l.authenticationStatus!==o.J.AutoWelcomeBack&&void 0!==l.expires&&l.expires<=Date.now())&&!(0,f.vJ)()&&((0,v.oM)()||(0,v.YA)())?t&&(0,g.AI)()&&l.authenticationStatus===o.J.Unauthenticated&&!u?{authenticationStatus:o.J.AutoWelcomeBack}:(u&&(0,g.Xv)(),l):(w({authenticationStatus:o.J.Unknown},n,r),a)},T=()=>{var t;return!!(0,c.Bd)()&&(null==(t=h.s.getJSON(m.q))?void 0:t.authenticationStatus)===o.J.Authenticated},P=t=>t===o.J.Authenticated||t===o.J.Unauthenticated,N=t=>t.authenticationStatus===o.J.Authenticated,j=t=>{if(!N(t))return;let{firstName:i,lastName:n}=t;if(i||n)return"".concat(null==i?void 0:i.charAt(0)).concat(null==n?void 0:n.charAt(0))}},68929:(t,i,n)=>{"use strict";n.d(i,{B:()=>r});let r=t=>null!==t&&"IFRAME"===t.tagName},70158:(t,i,n)=>{"use strict";n.d(i,{C7:()=>l,IV:()=>o,Rx:()=>d,gH:()=>p,oF:()=>h,tZ:()=>c,xy:()=>u});var r=n(96078),s=n(78101),a=n(464);let o=(t,i)=>{i&&(0,a.Pi)()&&(t?s.s.setItem(r.oP,i):s.s.setItem(r.IA,i))},l=()=>{var t;return(0,a.P0)()&&null!=(t=s.s.getItem(r.oP,r.we))?t:void 0},u=()=>{var t;return(0,a.P0)()&&null!=(t=s.s.getItem(r.IA,r.we))?t:void 0},c=()=>{s.s.removeItem(r.oP),s.s.removeItem(r.oP+s.x)},d=()=>{s.s.removeItem(r._7)},h=t=>t?l():u(),p=()=>{s.s.removeItem(r.IA),s.s.removeItem(r.IA+s.x)}},70784:(t,i,n)=>{"use strict";n.d(i,{A:()=>C});var r=n(48930),s=n(64357),a=n(13890),o=n(42488),l=n(73128),u=n(57551),c=n(55679),d=n(77904),h=n(98465),p=n(13612),f=n(82793),m=n(34063),g=n(15244),b=n(76362),v=n(41232),y=n(59045),w=n(29213),A=n(36994),S=n(5138),_=n(83607),E=n(49466),k=n(93908),x=n(73817);class I{constructor(t,i,n,r){this.B=t,this.C=i,this.j=n,this.Ss=r,this.B=t,this.C=i,this.j=n,this.Ss=r,this.So=new g.A,s.Ay.S(this.So),this.Xo=1e3,this.Uo=6e4,this.Vo=null,this.Wo=null,this.Yo=null,this.Zo={}}ta(){return this.So}ia(t){return this.So.Ut(t)}oa(){return this.Vo}la(t){this.Vo=t}Dt(t,i,n,r){let s,l=new p.A;if(i===f.w.ua||t instanceof a.A){if(!t.js())return m.A.info("This in-app message has already received an impression. Ignoring analytics event."),l;if(this.ma(t.triggerId))return m.A.info("An impression for this in-app message trigger has already been logged. Ignoring analytics event."),l}
1else if((i===f.w.pa||t instanceof o.A&&i===f.w.ha)&&!t.Yt(r))return m.A.info("This in-app message has already received a click. Ignoring analytics event."),l;return null==(s=t instanceof a.A?{trigger_ids:[t.triggerId]}:this.ca(t))?l:(t.messageExtras&&(s.message_extras=t.messageExtras),null!=n&&(s.bid=n),c.A.Dt(i,s))}ga(t,i){let n=new p.A;if(!t.Yt())return m.A.info("This in-app message button has already received a click. Ignoring analytics event."),n;let r=this.ca(i);return null==r?n:t.id===u.A.fa?(m.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),n):(null!=t.id&&(r.bid=t.id),c.A.Dt(f.w.ha,r))}da(t){let i=t.messageFields;return null!=i&&i.is_push_primer||!1}ja(t){let i;if(!(t instanceof l.A))return;let n=t=>{if(!t)return;let i=(0,y.jj)(t);if((0,y.qj)(i))return(0,y.$6)(y.mY.ya,"In-App Message");if((0,y.dy)(i)){let t=w.A.va();if(!t.ba)return w.A.Ia(t.reason,"In-App Message")}};if(this.da(t)){let t=w.A.va();if(!t.ba)return w.A.Ia(t.reason,"In-App Message")}for(let r of t.buttons||[])if(r.clickAction===x.Os.URI&&r.uri&&v.nx.test(r.uri)&&(i=n(r.uri)))return i;return t.clickAction===x.Os.URI&&t.uri&&v.nx.test(t.uri)?n(t.uri):void 0}Aa(t,i){i!==this.Yo&&this.Ma(),this.Wo=t,this.Yo=i}Ma(){null!=this.Wo&&(clearTimeout(this.Wo),this.Wo=null,this.Yo=null)}Ta(t,i,n,s){let a=this.B;if(!a)return;this.Yo&&t.triggerId!==this.Yo&&(this.Ma(),A.A.Ji(this.j,A.A.it.Da));let o=a.ka(!1),l=a.Z(o);l.template={trigger_id:t.triggerId,trigger_event_type:i},null!=n&&(l.template.data=n.wa());let u=a.tt(l,A.A.it.Da);a.et(l,(a=-1)=>{let o=this.B;if(!o)return;let c=new Date().valueOf();A.A.nt(this.j,A.A.it.Da,c),-1!==a&&u.push(["X-Braze-Req-Tokens-Remaining",a.toString()]);let p,f,g=!1;r.A.ot({url:`${o.ht()}/template/`,data:l,headers:u,lt:i=>{if(!o.ut(l,i,u))return void("function"==typeof t.Sa&&t.Sa());if(o.ct(),null==i||null==i.templated_message)return;let n=i.templated_message;if(n.type!==b.A.Ba.za)return;let r=(0,d.g)(n.data);if(null==r)return;let s=this.ja(r);s?(m.A.error(s),"function"==typeof t.Sa&&t.Sa()):"function"==typeof t.Ra&&t.Ra(r)},error:i=>{g=!0,p=i,f=`getting user personalization for message ${t.triggerId}.`},ft:(r,a)=>{if(new Date().valueOf()-t._a<t.qa){let r=0;if(g){let i=Math.min(t.qa,this.Uo),n=this.Xo;null==s&&(s=n),r=Math.min(i,(0,h.C)(n,3*s))}o.yt(a,()=>{this.Ta(t,i,n,r)},A.A.it.Da,i=>this.Aa(i,t.triggerId),()=>this.Ma(),r)}g&&o.dt(p,f)}})},A.A.it.Da)}ma(t){if(null==t||""===t)return!1;let i=new Date().valueOf(),n=this.Zo[t];return null!=n&&i-n<x.Oy.aE||(this.Zo[t]=i,!1)}xa(){this.Zo={}}ca(t){if(null==t.triggerId)return m.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let i={};return null!=t.triggerId&&(i.trigger_ids=[t.triggerId]),i}Mo(t){return!!this.j&&!(!(t&&t instanceof l.A&&t.constructor!==l.A)||t instanceof a.A)&&this.j.Pt(S.d.It.Pa,t.qt())}sa(){let t;if(!this.j)return null;let i=this.j.St(S.d.It.Pa);if(!i)return null;switch(i.type){case x.o6.oE:t=_.A.Ea(i);break;case x.o6.ME:case x.o6.CE:case x.o6.DE:t=o.A.Ea(i);break;case x.o6.tE:case x.o6.eE:t=E.A.Ea(i);break;case x.o6.RE:t=k.A.Ea(i)}return t&&this.Ga(),t}Ga(){this.j&&this.j.Vt(S.d.It.Pa)}}let O={na:null,i:!1,ra:()=>(O.t(),O.na||(O.na=new I(s.Ay.m(),s.Ay.u(),s.Ay.p(),s.Ay.ir())),O.na),t:()=>{O.i||(s.Ay.g(O),O.i=!0)},destroy:()=>{O.na=null,O.i=!1}},C=O},71152:(t,i,n)=>{"use strict";n.d(i,{Bd:()=>s,F2:()=>a,Fr:()=>l,UN:()=>d,_Z:()=>h,j$:()=>o,mb:()=>p,nI:()=>c,v1:()=>u});var r=n(30049);let s=()=>"u">typeof document,a=()=>s()&&/Chrome/i.test(window.navigator.userAgent),o=t=>s()&&window.innerWidth>=Number(t.toString().replace("px","")),l=t=>s()&&!!(/Android/i.exec(t)||/webOS/i.exec(t)||/iPhone/i.exec(t)||/iPad/i.exec(t)||/iPod/i.exec(t)||/BlackBerry/i.exec(t)||/Windows Phone/i.exec(t)),u=t=>s()&&!!(/iPad/i.exec(t)||/Android/i.exec(t)&&!/Mobile/i.exec(t)),c=t=>s()?/iPhone/i.exec(t)||/iPad/i.exec(t)||/iPod/i.exec(t)?"ios":/Android/i.exec(t)?"android":/Windows Phone/i.exec(t)?"windowsphone":"unknown":"unknown",d=t=>{if("ios"===c(t)){let t=/OS (\d+)_(\d+)_?(\d+)?/.exec(navigator.appVersion);if(!t)return{major:18,minor:0,patch:0};{var i,n,r;let[s,a,o]=[parseInt(null!=(i=t[1])?i:"18",10),parseInt(null!=(n=t[2])?n:"0",10),parseInt(null!=(r=t[3])?r:"0",10)];return{major:s,minor:a,patch:o}}}return null},h=t=>t&&s()&&window.innerWidth<r.Dy,p=()=>
1s()&&!!navigator.share&&l(navigator.userAgent)},72848:(t,i,n)=>{"use strict";n.d(i,{P:()=>u,j:()=>l});var r=n(37876),s=n(27964),a=n(14232);let o=(0,a.createContext)(void 0),l=(0,a.memo)(t=>{let i,n=(0,s.c)(3),{children:a,brand:l}=t;return n[0]!==a||n[1]!==l?(i=(0,r.jsx)(o.Provider,{value:l,children:a}),n[0]=a,n[1]=l,n[2]=i):i=n[2],i}),u=()=>{let t=(0,a.useContext)(o);if(void 0===t)throw Error("useBrand must be used within a BrandProvider");return t}},72928:(t,i,n)=>{"use strict";n.d(i,{o:()=>u});var r=n(64357),s=n(37206),a=n(34063),o=n(54099),l=n(79921);function u(){let t=r.Ay.p();if(null==t)return void a.A.warn(l.em.ee);t.clearData();let i=(0,s.HP)(o.A._s);for(let t=0;t<i.length;t++){let n=i[t],r=o.A._s[n];new o.A(r,a.A).clearData()}if(r.Ay.rr())for(let t of r.Ay.$r())t.clearData(!0);let n=r.Ay.m();n&&n.fo()}},72974:(t,i,n)=>{"use strict";n.d(i,{JT:()=>d,bN:()=>f,ju:()=>m});var r=n(37876),s=n(27964),a=n(89099),o=n(14232),l=n(71152),u=n(464),c=n(78101);let d="sndp-pageviews",h=(0,o.createContext)(null),p=!0,f=t=>{let i,n,f,m,b=(0,s.c)(8),{children:v}=t,[y,w]=(0,o.useState)(g),A=(0,a.useRouter)();b[0]!==A.events?(i=()=>{let t=()=>{if((0,l.Bd)())if((0,u.HL)()){let t=c.s.getItem(d),i=(t?Number(t):0)+1;c.s.setItem(d,String(i)),w(i)}else c.s.removeItem(d),w(null)};return p&&(t(),p=!1),A.events.on("routeChangeComplete",t),()=>{A.events.off("routeChangeComplete",t)}},n=[A.events],b[0]=A.events,b[1]=i,b[2]=n):(i=b[1],n=b[2]),(0,o.useEffect)(i,n),b[3]!==y?(f={pageViews:y},b[3]=y,b[4]=f):f=b[4];let S=f;return b[5]!==v||b[6]!==S?(m=(0,r.jsx)(h.Provider,{value:S,children:v}),b[5]=v,b[6]=S,b[7]=m):m=b[7],m},m=()=>{let t=(0,o.useContext)(h);if(!t)throw Error("usePageViews must be used within a PageViewsProvider");return t};function g(){return(0,l.Bd)()?Number(c.s.getItem(d)):null}},73128:(t,i,n)=>{"use strict";n.d(i,{A:()=>d});var r=n(64357),s=n(16798),a=n(76577),o=n(91149),l=n(15244),u=n(68929),c=n(73817);class d{constructor(t,i,n,r,s,a,o,u,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k,x,I,O,C,T,P,N,j,R){this.message=t,this.messageAlignment=i,this.slideFrom=n,this.extras=r,this.triggerId=s,this.clickAction=a,this.uri=o,this.openTarget=u,this.dismissType=d,this.duration=h,this.icon=p,this.imageUrl=f,this.imageStyle=m,this.iconColor=g,this.iconBackgroundColor=b,this.backgroundColor=v,this.textColor=y,this.closeButtonColor=w,this.animateIn=A,this.animateOut=S,this.header=_,this.headerAlignment=E,this.headerTextColor=k,this.frameColor=x,this.buttons=I,this.cropType=O,this.orientation=C,this.htmlId=T,this.css=P,this.messageExtras=N,this.language=j,this.altImageText=R,this.message=t,this.messageAlignment=i||c.KP.CENTER,this.duration=h||5e3,this.slideFrom=n||c.r2.BOTTOM,this.extras=r||{},this.triggerId=s,this.clickAction=a||c.Os.NONE,this.uri=o,this.openTarget=u||c.vG.NONE,this.dismissType=d||c.uR.AUTO_DISMISS,this.icon=p,this.imageUrl=f,this.imageStyle=m||c.uy.TOP,this.iconColor=g||c.S9.AE,this.iconBackgroundColor=b||c.S9._E,this.backgroundColor=v||c.S9.AE,this.textColor=y||c.S9.IE,this.closeButtonColor=w||c.S9.NE,this.animateIn=A,null==this.animateIn&&(this.animateIn=!0),this.animateOut=S,null==this.animateOut&&(this.animateOut=!0),this.header=_,this.headerAlignment=E||c.KP.CENTER,this.headerTextColor=k||c.S9.IE,this.frameColor=x||c.S9.LE,this.buttons=I||[],this.cropType=O||c.A5.FIT_CENTER,this.orientation=C,this.htmlId=T,this.css=P,this.isControl=!1,this.messageExtras=N,this.language=j,this.altImageText=R,this.Hh=!1,this.hs=!1,this.rd=!1,this.zh=!1,this.Kh=!1,this._o=null,this.$o=null,this.ti=new l.A,this.Qh=new l.A,this.Ao=c.KP.CENTER}subscribeToClickedEvent(t){return this.ti.Ut(t)}subscribeToDismissedEvent(t){return this.Qh.Ut(t)}removeSubscription(t){this.ti.removeSubscription(t),this.Qh.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.Qh.removeAllSubscriptions()}closeMessage(){this.tl(this._o)}zo(){return!0}od(){return this.zo()}Eo(){return null!=this.htmlId&&this.htmlId.length>4}Oo(){return this.Eo()&&null!=this.css&&this.css.length>0}ko(){if(this.Eo()&&this.Oo())return this.htmlId+"-css"}js(){return!this.hs&&(this.hs=!0,!0)}sm(){return this.hs}Yt(t){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}Ft(){return!this.zh&&(this.zh=!0,this.Qh.A(),!0)}hide(t){if(t&&t.parentNode){let i=t.closest(".ab-iam-root");
1if(null==i&&(i=t),this.zo()&&null!=i.parentNode){let t=i.parentNode.classList;t&&t.contains(c.iA.TE)&&t.remove(c.iA.TE),document.body.removeEventListener("touchmove",d.Vh)}i.className=i.className.replace(c.Xn,c.Ef)}return this.animateOut||!1}tl(t,i){let n,r;if(null==t||this.Kh)return;this.Kh=!0,this._o=null;let a=!1;(n=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t)&&(a=this.hide(n));let o=document.body;null!=o&&(r=o.scrollTop);let l=()=>{if(t&&t.parentNode){let i=t.closest(".ab-iam-root");null==i&&(i=t),i.parentNode&&i.parentNode.removeChild(i)}let n=this.ko();if(null!=n){let t=document.getElementById(n);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=o&&"Safari"===s.A.browser&&(o.scrollTop=r),i?i():this.Ft()};a?setTimeout(l,c.Oy.gr):l(),this.$o&&this.$o.focus()}Ho(){return document.createTextNode(this.message||"")}Do(t){t.setAttribute("alt",this.altImageText||"")}static Vh(t){if(t.targetTouches&&t.targetTouches.length>1)return;let i=t.target;i&&i.classList&&i.classList.contains("ab-message-text")&&i.scrollHeight>i.clientHeight||document.querySelector(`.${c.iA.TE}`)&&t.cancelable&&t.preventDefault()}Wh(t){this.Kh=!1;let i=t.parentNode;this.zo()&&null!=i&&this.orientation!==c.I5.LANDSCAPE&&(null!=i.classList&&i.classList.add(c.iA.TE),document.body.addEventListener("touchmove",d.Vh,!!(0,a.CF)()&&{passive:!1})),t.className+=" "+c.Xn}static Xh(t){if(t.keyCode===o.c.Yh&&!r.Ay.er(r.lw.Zh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let t=document.getElementsByClassName("ab-html-message"),i=!1;for(let n of t){let t=null;(0,u.B)(n)&&n.contentWindow&&(t=n.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,a.jp)(t),i=!0)}if(!i){let t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,a.jp)(t)}}}_h(){this.Hh||r.Ay.er(r.lw.Zh)||(document.addEventListener("keydown",d.Xh,!1),r.Ay.On(()=>{document.removeEventListener("keydown",d.Xh)}),this.Hh=!0)}qt(t){let i={};return t&&(i[c.Ot.UE]=this.message,i[c.Ot.cE]=this.messageAlignment,i[c.Ot.nE]=this.slideFrom,i[c.Ot.Is]=this.extras,i[c.Ot.PE]=this.triggerId,i[c.Ot.iE]=this.clickAction,i[c.Ot.URI]=this.uri,i[c.Ot.pE]=this.openTarget,i[c.Ot.rE]=this.dismissType,i[c.Ot.mE]=this.duration,i[c.Ot.GE]=this.icon,i[c.Ot.Bs]=this.imageUrl,i[c.Ot.xE]=this.imageStyle,i[c.Ot.HE]=this.iconColor,i[c.Ot.FE]=this.iconBackgroundColor,i[c.Ot.BE]=this.backgroundColor,i[c.Ot.bE]=this.textColor,i[c.Ot.gE]=this.closeButtonColor,i[c.Ot.lE]=this.animateIn,i[c.Ot.YE]=this.animateOut,i[c.Ot.hE]=this.header,i[c.Ot.KE]=this.headerAlignment,i[c.Ot.WE]=this.headerTextColor,i[c.Ot.XE]=this.frameColor,i[c.Ot.yE]=this.buttons,i[c.Ot.dE]=this.cropType,i[c.Ot.uE]=this.orientation,i[c.Ot.fE]=this.htmlId,i[c.Ot.CSS]=this.css,i[c.Ot.xs]=t,i[c.Ot.jE]=this.messageExtras,i[c.Ot.LANGUAGE]=this.language,i[c.Ot.Ns]=this.altImageText),i}}d.sl=c.S9,d.SlideFrom=c.r2,d.ClickAction=c.Os,d.DismissType=c.uR,d.OpenTarget=c.vG,d.ImageStyle=c.uy,d.Orientation=c.I5,d.TextAlignment=c.KP,d.CropType=c.A5,d.il=c.o6,d.gr=c.Oy.gr,d.sE=c.Oy.sE,d.bs=c.Ot},73817:(t,i,n)=>{"use strict";n.d(i,{A5:()=>p,Ef:()=>b,I5:()=>d,KP:()=>h,Os:()=>o,Ot:()=>y,Oy:()=>m,S9:()=>s,Xn:()=>g,iA:()=>r,jt:()=>v,o6:()=>f,r2:()=>a,uR:()=>l,uy:()=>c,vG:()=>u});let r={EE:"inAppMessage must be an InAppMessage object",TE:"ab-pause-scrolling"},s={IE:0xff333333,AE:0xffffffff,_E:0xff0073d5,SE:0xffefefef,OE:0xff555555,LE:0xc0333333,NE:0xff9b9b9b},a={TOP:"TOP",BOTTOM:"BOTTOM"},o={URI:"URI",NONE:"NONE"},l={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u={NONE:"NONE",BLANK:"BLANK"},c={TOP:"TOP",GRAPHIC:"GRAPHIC"},d={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},h={START:"START",CENTER:"CENTER",END:"END"},p={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},f={RE:"SLIDEUP",tE:"MODAL",eE:"MODAL_STYLED",oE:"FULL",ME:"WEB_HTML",CE:"HTML",DE:"HTML_FULL"},m={gr:500,sE:200,aE:2e3},g="ab-show",b="ab-hide",v="ab-iam-showing",y={UE:"m",cE:"ma",nE:"sf",Is:"e",PE:"ti",iE:"ca",URI:"u",pE:"oa",rE:"dt",mE:"d",GE:"i",Bs:"iu",xE:"is",HE:"ic",FE:"ibc",BE:"bc",bE:"tc",gE:"cbc",lE:"ai",YE:"ao",hE:"h",KE:"ha",WE:"htc",XE:"fc",yE:"b",dE:"ct",uE:"o",fE:"hi",CSS:"css",xs:"type",wE:"messageFields",jE:"me",LANGUAGE:"l",Ns:"ia"}},74224:(t,i,n)=>{"use strict";n.d(i,{A:()=>l});var r=n(64357),s=n(56760),a=n(37206),o=n(95315);class l{constructor(t,i,n,r,s){this.userId=t,this.type=i,this.time=n,this.sessionId=r,this.data=s,this.userId=t,this.type=i,this.time=(0,o.S3)(n),this.sessionId=r,this.data=s}wa(){var t;
1let i={name:this.type,time:(0,o.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(i.user_id=this.userId);let n=(null==(t=r.Ay.Gr())?void 0:t.hc())||!1;if(!i.user_id&&!n){let t=(0,s.b)(r.Ay.p());t&&(i.alias=t)}return i}qt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new l(t.user_id,t.name,t.time,t.session_id,t.data)}static gS(t){return null!=t&&(0,a.Gv)(t)&&null!=t.t&&""!==t.t}static _u(t){return new l(t.u,t.t,t.ts,t.s,t.d)}}},74730:(t,i,n)=>{"use strict";n.d(i,{DQ:()=>D,FM:()=>z,HS:()=>c,II:()=>_,JT:()=>b,Ln:()=>E,Mn:()=>J,N2:()=>d,NR:()=>W,OE:()=>O,Vp:()=>U,YA:()=>F,ZX:()=>x,_G:()=>w,e4:()=>B,fi:()=>L,fr:()=>P,kc:()=>y,mp:()=>R,v1:()=>M,vJ:()=>C,vR:()=>N,vy:()=>g,wW:()=>V,xj:()=>I,zf:()=>q}),n(33399);var r=n(347);n(43935);var s=n(96078),a=n(60697),o=n(464),l=n(57543);let u="/api/safe/v1/web",c="PATH_PLACEHOLDER",d=(t,i)=>null!=i?i:"/aihe/".concat(t),h=t=>"string"==typeof t[1]||"number"==typeof t[1]&&Number.isFinite(t[1]),p=t=>f({...t,target:g(t.targetQueryParams),mergeFragments:!0}),f=t=>{let{currentOrigin:i,brand:n,target:r,mergeFragments:s,noJsRedirect:a=!1}=t;if(a){let t=new URL(g(),i);return{redirectUrl:m(t,n,s),cancelUrl:t}}let o=new URL("/jsRedirect/",i);o.searchParams.append("target",r);let l=new URL(o.toString());return{redirectUrl:m(o,n,s),cancelUrl:l}},m=(t,i,n)=>{let s="#kirjaudu";if((0,r.M)(i).removeOnlyLoginHashAfterReturningFromLogin&&n){let{hash:t}=window.location,i=t?t.replace("#",""):"";s="#kirjaudu".concat(i?"&"+i:"")}let a=new URL(t.toString());return a.hash=s,a},g=t=>{let i=window.location.pathname,n=new URLSearchParams(window.location.search);t&&Object.entries(t).forEach(t=>{let[i,r]=t;n.set(i,r)});let r=n.toString();return r?"".concat(i,"?").concat(r):i},b=t=>{let{brand:i,appsHost:n,campaign:r}=t,s="".concat(n.replace("{domain}",(0,a.JX)(i)),"/api/safe/v3/apps"),o=v(r);return"".concat(s,"/subscription-funnel/").concat(o)},v=t=>t.startsWith("/")?t.slice(1):t,y=(t,i,n)=>{if("string"!=typeof n||!n)return;let r=(0,a.jJ)(t,i),s=v(n);return q("".concat(r,"/tilaus/").concat(s),{cop:"true"})},w=(t,i)=>{if(t)return q(t,{uaid:(0,s.GM)(i)})},A=t=>{let{brand:i,loginRoot:n,service:r,origin:s,redirectUri:a,cancelUri:o,T_ccs:l,platform:u,styleOverride:c}=t,d=null!=c?c:S(i);return q(n,{redirectUri:a,accessTokenUri:"".concat(s,"/api/safe/v1/web/access-token"),cancelUri:o,style:d,service:r,T_ccs:l,platform:u})},S=t=>(0,l.L)()?"".concat(t,"_dark"):t,_=(t,i)=>{let n=x(t,i);return"".concat(n,"&iframe=true&autoWelcomeBack=true")},E=function(t,i,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=window.location.origin,a="".concat(s,"/api/safe/v1/web/access-token"),l=S(t),c=i["shogun.servicename"],d="string"==typeof c?c:t,{redirectUrl:h,cancelUrl:f}=p({currentOrigin:s,brand:t,noJsRedirect:r.noJsRedirect});return q("".concat(u,"/registration"),{redirectUri:h.toString(),accessTokenUri:a,cancelUri:f.toString(),style:l,service:d,T_ccs:(0,o.mG)()||void 0,platform:r.platform,...n})},k={hs:"helsinginsanomat",is:"iltasanomat",al:"aamulehti",sk:"satakunnankansa",jan:"janakkalansanomat",js:"jamsanseutu",ks:"kankaanpaanseutu",kmv:"kmvlehti",mk:"merikarvialehti",nu:"nokianuutiset",rks:"rannikkoseutu",suk:"suurkeuruu",ss:"sydansatakunta",tyr:"t
1yrvaansanomat",vs:"valkeakoskensanomat"},x=function(t,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i["shogun.servicename"],s="string"==typeof r?r:k[t],a=window.location.origin,{redirectUrl:l,cancelUrl:c}=p({currentOrigin:a,brand:t,noJsRedirect:n.noJsRedirect,targetQueryParams:n.targetQueryParams});return A({brand:t,loginRoot:"".concat(u,"/start-login"),service:s,origin:a,redirectUri:l.toString(),cancelUri:c.toString(),T_ccs:(0,o.mG)()||void 0,platform:n.platform})},I=(t,i,n)=>{let r=(0,a.jJ)(t,i),{redirectUrl:s,cancelUrl:o}=f({brand:t,currentOrigin:r,target:c,noJsRedirect:n,mergeFragments:!1});return A({brand:t,loginRoot:"".concat(r).concat(u,"/start-login"),service:(0,a.US)(t),origin:r,redirectUri:s.toString(),cancelUri:o.toString(),styleOverride:t})},O=(t,i)=>{let n=window.location.origin,r=S(t),{redirectUrl:s}=p({currentOrigin:n,brand:t});return q("".concat(u,"/logout"),{redirectUri:s.toString(),ref:i,style:r})},C=()=>T("kirjaudu"),T=t=>window.location.hash.includes(t),P=(t,i)=>{if(window.location.hash){let n=j(i),r="".concat(window.location.pathname).concat(window.location.search).concat(null!=n?n:"");t.replace(r,void 0,{shallow:!0}).catch(t=>{console.error("Error replacing hash:",t)})}},N=(t,i)=>{let n=new URL(window.location.href),r=n.searchParams.get(i);return r&&(n.searchParams.delete(i),t.replace(n,void 0,{shallow:!0}).catch(t=>{console.error("Error removing query param ".concat(i,": ").concat(String(t)))})),r},j=t=>{if(!(0,r.M)(t).removeOnlyLoginHashAfterReturningFromLogin)return;let{hash:i}=window.location,n=i.replace("#","").split("&").filter(t=>!t.startsWith("kirjaudu"));if(0!==n.length)return"#"+n.join("&")},R=t=>"/haku/?query=".concat(t.trim().replace(/\/./g,"").replace(/ /g,"+")),D=t=>!!t&&("/"===t||"/etusivu/"===t),M=t=>{var i,n,r,s;return null!=(i=null!=(n=null!=(r=null!=(s=/((dynamic|interactive|alasin-delivery|pakki-delivery|sanalouhos|sanajuuri)(\.dev)?(\.datadesk)?).hs.fi/.exec(t))?s:/vaalikone(\.datadesk\.hs)?.fi/.exec(t))?r:/[a-z0-9-]+\.sanomagames\.fi/.exec(t))?n:/(^|[^a-z0-9-])10kysymysta\.fi\/*embed/.exec(t))?i:/(^|[^a-z0-9-])sanavelho\.fi\/.*embed/.exec(t)},U=t=>"edition"===t.nodeType?t.nodeUrl:"/",B=t=>!!(null==t?void 0:t.includes("apps-html")),z=(t,i,n)=>q($(t,i),n),L="https://oma-staging.sanoma.fi",F="https://oma.sanoma.fi",$=(t,i)=>{switch(i){case"dev":case"test":case"preview-test":return"".concat(L).concat(t);case"qa":case"prod":case"preview-prod":return"".concat(F).concat(t)}},q=(t,i)=>{if(!i)return t;let n=Object.entries(i).filter(h).map(t=>t.map(encodeURIComponent).join("=")).join("&"),r=t.includes("?")?"&":"?",s=0===n.length?"":r;return"".concat(t).concat(s).concat(n)},V=(t,i)=>z(t,i,{ref:"footer"}),W=(t,i,n)=>q("/nopeat/".concat(t,"/"),{...(null==i?void 0:i.length)&&{tagInclude:i.join(","),tagIncludeMode:"any"},...(null==n?void 0:n.length)&&{sectionFilter:n.join(",")}}),J=t=>t.startsWith("/mainos/")},74978:(t,i,n)=>{"use strict";n.d(i,{Mx:()=>d,e:()=>b,qd:()=>p,gS:()=>y,Mu:()=>h,vy:()=>v});var r=n(23486),s=n(7966),a=n(78914),o=n(64357),l=n(34063),u=n(30952),c=n(74730);let d={SimpleFeaturePromoMain:"simple_feature_promo_main",SimpleFeaturePromoWide:"simple_feature_promo_wide",InfoHighLight:"info_highlight"},h=t=>f(t,"title")&&f(t,"description")&&m(t,"imageUrl")&&m(t,"linkText")&&m(t,"url"),p=(t,i)=>i.find(i=>i.extras.placement===t),f=(t,i)=>g(t,i)&&"string"==typeof t[i],m=(t,i)=>f(t,i)||!g(t,i)||void 0===t[i]||null===t[i],g=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),b=(t,i)=>{try{let n=new URL(t),r=new URLSearchParams(n.search),s=n.origin===c.fi||n.origin===c.YA;if(!r.has("login_hint")&&s)return(0,c.zf)(t,{login_hint:i})}catch(t){console.error("Failed to add login_hint to content card URL - ".concat(String(t)))}return t},v=t=>"true"===t.extras.dismissible,y=(t,i)=>{try{null==i||i(),o.Ay.rr()&&(t instanceof r.A?s.A.ra().cs(t).lt:l.A.error("card "+a.z.tr)),(0,u.J)(()=>{},()=>{console.error("Failed to refresh content cards")})}catch(t){console.error("Failed to log content card dismiss event",t)}}},75161:(t,i,n)=>{"use strict";n.d(i,{e:()=>r});let r=(t,i)=>t.reduce((t,n)=>{let[r,s]=t;return i(n)?[[...r,n],s]:[r,[...s,n]]},[[],[]])},76362:(t,i,n)=>{"use strict";n.d(i,{A:()=>v});var r=n(95315),s=n(34063);class a{constructor(t){this.tf=t,this.tf=t}sf(t){return null==this.tf||this.tf===t[0]}static fromJson(t){return new a(t?t.event_name:null)}qt(){return this.tf}}var o=n(37206);class l{constructor(t,i,n,s){this.zE=t,this.kE=i,this.comparator=n,this.vE=s,this.zE=t,this.kE=i,this.comparator=n,this.vE=s,this.kE===l.VE.JE&&this.comparator!==l.ZE.qE&&this.comparator!==l.ZE.$E&&this.comparator!==l.ZE.tT&&this.comparator!==l.ZE.sT&&(this.vE=(0,r.Zo)(this.vE))}sf(t){let i=null;switch(null!=t&&(i=t[this.zE]),this.comparator){case l.ZE.eT:return null!=i&&i.valueOf()===this.vE.valueOf();case l.ZE.iT:return null==i||i.valueOf()!==this.vE.valueOf();case l.ZE.lT:return null!=i&&typeof i==typeof this.vE&&i>this.vE;case l.ZE.qE:return this.kE===l.VE.JE?null!=i&&(0,o.$P)(i)&&(0,r.Jd)(i)<=this.vE.valueOf():null!=i&&typeof i==typeof this.vE&&i>=this.vE;case l.ZE.rT:return null!=i&&typeof i==typeof this.vE&&i<this.vE;case l.ZE.$E:return this.kE===l.VE.JE?null!=i&&(0,o.$P)(i)&&(0,r.Jd)(i)>=this.vE.valueOf():null!=i&&typeof i==typeof this.vE&&i<=this.vE;case l.ZE.hT:return null!=i&&"string"==typeof i&&typeof i==typeof this.vE&&null!=i.match(this.vE);case l.ZE.nT:return null!=i;case l.ZE.uT:return null==i;case l.ZE.tT:return null!=i&&(0,o.$P)(i)&&(0,r.DA)(i)<this.vE;case l.ZE.sT:return null!=i&&(0,o.$P)(i)&&(0,r.DA)(i)>this.vE;case l.ZE.oT:return null==i||typeof i!=typeof this.vE||"string"!=typeof i||null==i.match(this.vE)}return!1}static fromJson(t){return new l(t.property_key,t.property_type,t.comparator,t.property_value)}qt(){let t=this.vE;return(0,o.$P)(this.vE)&&(t=(0,r.UK)(t.valueOf())),{k:this.zE,t:this.kE,c:this.comparator,v:t}}static _u(t){return new l(t.k,t.t,t.c,t.v)}}l.VE={ET:"boolean",aT:"number",TT:"string",JE:"date"},l.ZE={eT:1,iT:2,lT:3,qE:4,rT:5,$E:6,hT:10,nT:11,uT:12,tT:15,sT:16,oT:17};class u{constructor(t){this.filters=t,this.filters=t}sf(t){let i=!0;for(let n=0;n<this.filters.length;n++){let r=this.filters[n],s=!1;for(let i=0;i<r.length;i++)if(r[i].sf(t)){s=!0;break}if(!s){i=!1;break}}return i}static fromJson(t){if(null==t||!(0,o.cy)(t))return null;let i=[];for(let n=0;n<t.length;n++){let r=[],s=t[n];for(let t=0;t<s.length;t++)r.push(l.fromJson(s[t]));i.push(r)}return new u(i)}qt(){let t=[];for(let i=0;i<this.filters.length;i++){let n=this.filters[i],r=[];for(let t=0;t<n.length;t++)r.push(n[t].qt());t.push(r)}return t}static _u(t){let i=[];for(let n=0;n<t.length;n++){let r=[],s=t[n];for(let t=0;t<s.length;t++)r.push(l._u(s[t]));i.push(r)}return new u(i)}}class c{constructor(t,i){this.tf=t,this.if=i,this.tf=t,this.if=i}sf(t){if(null==this.tf||null==this.if)return!1;let i=t[0],n=t[1];return i===this.tf&&this.if.sf(n)}static fromJson(t){return new c(t?t.event_name:null,t?u.fromJson(t.property_filters):null)}qt(){return{e:this.tf,pf:this.if?this.if.qt():null}}}class d{constructor(t,i){this.rf=t,this.nf=i,this.rf=t,this.nf=i}sf(t){if(null==this.rf)return!1;let i=b.ef(t[0],this.rf);if(!i)return!1;let n=null==this.nf||0===this.nf.length;if(null!=this.nf){for(let i=0;i<this.nf.length;i++)if(this.nf[i]===t[1]){n=!0;break}}return i&&n}static fromJson(t){return new d(t?t.id:null,t?t.buttons:null)}qt(){return this.rf}}class h{constructor(t){this.productId=t,this.productId=t}sf(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new h(t?t.product_id:null)}qt(){return this.productId}}class p{constructor(t,i){this.productId=t,this.if=i,this.productId=t,this.if=i}sf(t){if(null==this.productId||null==this.if)return!1;let i=t[0],n=t[1];return i===this.productId&&this.if.sf(n)}static fromJson(t){return new p(t?t.product_id:null,t?u.fromJson(t.property_filters):null)}qt(){return{id:this.productId,pf:this.if?this.if.qt():null}}}class f{constructor(t){this.rf=t,this.rf=t}sf(t){return null==this.rf||b.ef(t[0],this.rf)}static fromJson(t){return new f(t?t.campaign_id:null)}qt(){return this.rf}}var m=n(28005),g=n(79835);class b{constructor(t,i){this.type=t,this.data=i,this.type=t,this.data=i}_m(t,i){return b.Em[this.type]===t&&(null==this.data||this.data.sf(i))}static ef(t,i){let n=null;try{n=window.atob(t)}catch(i){return s.A.info("Failed to unencode analytics id "+t+": "+(0,g.u)(i)),!1}return i===n.split("_")[0]}static fromJson(t){let i=t.type,n=null;switch(i){case b.Ba.OPEN:case b.Ba.Os:break;case b.Ba.Nr:n=h.fromJson(t.data);break;case b.Ba.Cm:n=p.fromJson(t.data);break;case b.Ba.Ar:n=f.fromJson(t.data);break;case b.Ba.Be:n=a.fromJson(t.data);break;case b.Ba.Pm:n=c.fromJson(t.data);break;case b.Ba.rm:n=d.fromJson(t.data)}return new b(i,n)}
1qt(){return{t:this.type,d:this.data?this.data.qt():null}}static _u(t){let i,n=null;switch(t.t){case b.Ba.OPEN:case b.Ba.Os:break;case b.Ba.Nr:n=new h(t.d);break;case b.Ba.Cm:n=new p((i=t.d||{}).id,u._u(i.pf||[]));break;case b.Ba.Ar:n=new f(t.d);break;case b.Ba.Be:n=new a(t.d);break;case b.Ba.Pm:n=new c((i=t.d||{}).e,u._u(i.pf||[]));break;case b.Ba.rm:n=new d(t.d)}return new b(t.t,n)}}b.Ba={OPEN:"open",Nr:"purchase",Cm:"purchase_property",Ar:"push_click",Be:"custom_event",Pm:"custom_event_property",rm:"iam_click",Os:"test"},b.Em={},b.Em[b.Ba.OPEN]=m.A.OPEN,b.Em[b.Ba.Nr]=m.A.Nr,b.Em[b.Ba.Cm]=m.A.Nr,b.Em[b.Ba.Ar]=m.A.Ar,b.Em[b.Ba.Be]=m.A.Be,b.Em[b.Ba.Pm]=m.A.Be,b.Em[b.Ba.rm]=m.A.rm,b.Em[b.Ba.Os]=m.A.Os;class v{constructor(t,i=[],n,r,s=0,a,o,l=0,u=v.Tm,c,d,h){this.id=t,this.Nm=i,this.startTime=n,this.endTime=r,this.priority=s,this.type=a,this.data=o,this.Im=l,this.zm=u,this.qa=c,this.Mm=d,this.Bm=h,this.id=t,this.Nm=i||[],void 0===n&&(n=null),this.startTime=n,void 0===r&&(r=null),this.endTime=r,this.priority=s||0,this.type=a,this.Im=l||0,null==c&&(c=1e3*(this.Im+30)),this.qa=c,this.data=o,null!=u&&(this.zm=u),this.Mm=d,this.Bm=h||null}Fm(t){return null==this.Bm||this.zm!==v.Tm&&t-this.Bm>=1e3*this.zm}Hm(t){this.Bm=t}Jm(t){return Math.max(t+1e3*this.Im-new Date().valueOf(),0)}Lm(t){let i=new Date().valueOf()-t,n=null==t||isNaN(i)||null==this.qa||i<this.qa;return n||s.A.info(`Trigger action ${this.type} is no longer eligible for display - fired ${i}ms ago and has a timeout of ${this.qa}ms.`),!n}static fromJson(t){let i=t.id,n=[];for(let i=0;i<t.trigger_condition.length;i++)n.push(b.fromJson(t.trigger_condition[i]));let s=(0,r.Zo)(t.start_time),a=(0,r.Zo)(t.end_time),l=t.priority,u=t.type,c=t.delay,d=t.re_eligibility,h=t.timeout,p=t.data,f=t.min_seconds_since_last_trigger;return(0,o.BY)(v.Ba,u,"Could not construct Trigger from server data","Trigger.Types")?new v(i,n,s,a,l,u,p,c,d,h,f):null}qt(){let t=[];for(let i=0;i<this.Nm.length;i++)t.push(this.Nm[i].qt());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.Im,r:this.zm,tm:this.qa,ss:this.Mm,ld:this.Bm}}static _u(t){let i=[],n=t.c||[];for(let t=0;t<n.length;t++)i.push(b._u(n[t]));return new v(t.i,i,(0,r.jU)(t.s),(0,r.jU)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}v.Ba={za:"inapp",Rm:"templated_iam"},v.Tm=-1},76577:(t,i,n)=>{"use strict";n.d(i,{CF:()=>l,K:()=>d,Kz:()=>c,P4:()=>u,RJ:()=>f,X:()=>o,e0:()=>a,jp:()=>h,sr:()=>p});var r=n(34063),s=n(79835);let a={lp:null,td:function(t,i=!1,n=!1,r=!1){if(null==t)return!1;i=i||!1,n=n||!1;let s=t.getBoundingClientRect();return null!=s&&(s.top>=0&&s.top<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(s.left>=0||!r)&&(s.bottom>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(s.right<=(window.innerWidth||document.documentElement.clientWidth)||!r)}},o={No:"up",Po:"down",ie:"left",ne:"right"};function l(){if(null==a.lp){a.lp=!1;try{let t=Object.defineProperty({},"passive",{get:()=>{a.lp=!0}});window.addEventListener("testPassive",()=>{},t),window.removeEventListener("testPassive",()=>{},t)}catch(t){r.A.error((0,s.u)(t))}}return a.lp}function u(t,i,n=()=>{}){t.addEventListener(i,n,!!l()&&{passive:!0})}function c(t){return a.td(t,!0,!1,!1)}function d(t){return a.td(t,!1,!0,!1)}function h(t){if(t.onclick){let i=document.createEvent("MouseEvents");i.initEvent("click",!0,!0),t.onclick.apply(t,[i])}}function p(t,i,n){let r=null,s=null;u(t,"touchstart",t=>{r=t.touches[0].clientX,s=t.touches[0].clientY}),u(t,"touchmove",a=>{if(null==r||null==s)return;let l=r-a.touches[0].clientX,u=s-a.touches[0].clientY;Math.abs(l)>Math.abs(u)&&Math.abs(l)>=25?((l>0&&i===o.ie||l<0&&i===o.ne)&&n(a),r=null,s=null):Math.abs(u)>=25&&((u>0&&i===o.No&&t.scrollTop===t.scrollHeight-t.offsetHeight||u<0&&i===o.Po&&0===t.scrollTop)&&n(a),r=null,s=null)})}function f(t,i,n){let r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg");s.setAttribute("viewBox",t),s.setAttribute("xmlns",r);let a=document.createElementNS(r,"path");return a.setAttribute("d",i),null!=n&&a.setAttribute("fill",n),s.appendChild(a),s}},76984:(t,i,n)=>{"use strict";n.d(i,{s:()=>s});
1class r extends Error{}function s(t,i){let n;if("string"!=typeof t)throw new r("Invalid token specified: must be a string");i||(i={});let s=+(!0!==i.header),a=t.split(".")[s];if("string"!=typeof a)throw new r(`Invalid token specified: missing part #${s+1}`);try{n=function(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=i,decodeURIComponent(atob(n).replace(/(.)/g,(t,i)=>{let n=i.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(t){return atob(i)}}(a)}catch(t){throw new r(`Invalid token specified: invalid base64 for part #${s+1} (${t.message})`)}try{return JSON.parse(n)}catch(t){throw new r(`Invalid token specified: invalid json for part #${s+1} (${t.message})`)}}r.prototype.name="InvalidTokenError"},77289:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function t(i){return[].slice.call(i.querySelectorAll("*"),0).reduce(function(i,n){return i.concat(n.shadowRoot?t(n.shadowRoot):[n])},[]).filter(r)};var n=/^(input|select|textarea|button|object|iframe)$/;function r(t){var i,r,s=t.getAttribute("tabindex");null===s&&(s=void 0);var a=isNaN(s);return(a||s>=0)&&(i=!a,r=t.nodeName.toLowerCase(),(n.test(r)&&!t.disabled||"a"===r&&t.href||i)&&function(t){for(var i=t,n=t.getRootNode&&t.getRootNode();i&&i!==document.body;){if(n&&i===n&&(i=n.host.parentNode),function(t){var i=t.offsetWidth<=0&&t.offsetHeight<=0;if(i&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t),r=n.getPropertyValue("display");return i?"contents"!==r&&("visible"!==n.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0):"none"===r}catch(t){return console.warn("Failed to inspect element style"),!1}}(i))return!1;i=i.parentNode}return!0}(t))}t.exports=i.default},77328:(t,i,n)=>{t.exports=n(80483)},77904:(t,i,n)=>{"use strict";n.d(i,{g:()=>h,x:()=>p});var r=n(13890),s=n(83607),a=n(42488),o=n(57551),l=n(49466),u=n(93908),c=n(34063),d=n(73817);function h(t){let i;if(!t)return null;if(t.is_control)return r.A.fromJson(t);let n=t.type;null!=n&&(n=n.toUpperCase());let h=t.message,p=t.text_align_message,f=t.slide_from,m=t.extras,g=t.trigger_id,b=t.click_action,v=t.uri,y=t.open_target,w=t.message_close,A=t.duration,S=t.icon,_=t.image_url,E=t.image_style,k=t.icon_color,x=t.icon_bg_color,I=t.bg_color,O=t.text_color,C=t.close_btn_color,T=t.header,P=t.text_align_header,N=t.header_text_color,j=t.frame_color,R=[],D=t.btns;null==D&&(D=[]);for(let t=0;t<D.length;t++)R.push(o.A.fromJson(D[t]));let M=t.crop_type,U=t.orientation,B=t.animate_in,z=t.animate_out,L=t.html_id,F=t.css;null!=L&&""!==L&&null!=F&&""!==F||(L=void 0,F=void 0);let $=t.message_extras,q=t.language,V=t.image_alt;if(n===d.o6.tE||n===d.o6.eE)i=new l.A(h,p,m,g,b,v,y,w,A,S,_,E,k,x,I,O,C,B,z,T,P,N,j,R,M,L,F,$,q,V);else if(n===d.o6.oE)i=new s.A(h,p,m,g,b,v,y,w,A,S,_,E,k,x,I,O,C,B,z,T,P,N,j,R,M,U,L,F,$,q,V);else if(n===d.o6.RE)i=new u.A(h,p,f,m,g,b,v,y,w,A,S,_,k,x,I,O,C,B,z,L,F,$,q,V);else{if(n!==d.o6.ME&&n!==d.o6.CE&&n!==d.o6.DE)return void c.A.error("Ignoring message with unknown type "+n);{let n=t.message_fields;(i=new a.A(h,m,g,w,A,B,z,j,L,F,n,$)).trusted=t.trusted||!1}}return i.Bo=n,i}function p(t){let i=[];for(let n of t)i.push(new o.A(n.text,n.backgroundColor,n.textColor,n.borderColor,n.clickAction,n.uri,n.id));return i}},78101:(t,i,n)=>{"use strict";let r;n.d(i,{s:()=>h,x:()=>l});var s=n(71152),a=n(99373);let o="sndp-storage-test-key",l="-last-used";class u{get length(){return this.fallbackStorageItems.size}getItem(t){var i;return null!=(i=this.fallbackStorageItems.get(t))?i:null}setItem(t,i){this.fallbackStorageItems.set(t,i)}removeItem(t){this.fallbackStorageItems.delete(t)}clear(){this.fallbackStorageItems.clear()}key(t){var i;let n=this.fallbackStorageItems.keys(),r=0;for(;r<t;)n.next(),r++;return null!=(i=n.next().value)?i:null}constructor(){this.fallbackStorageItems=new Map}}let c=()=>{if(!(0,s.Bd)())throw Error("BrowserStorage must only be used in the browser");return r||(r=d("localStorage")?localStorage:d("sessionStorage")?sessionStorage:new u)},d=t=>{try{if(!window[t])return!1;return window[t].setItem(o,o),window[t].getItem(o),window[t].removeItem(o),!0}catch(t){return!1}},h={getItem:(t,i)=>{let n=c();if(i){var r;let s=(0,a._g)(),o=t+l,u=parseInt(null!=(r=n.getItem(o))?r:"0");if(u&&s-u>i)return n.removeItem(t),n.removeItem(o),null;n.setItem(o,s.toString())}return n.getItem(t)},getJSON:(t,i)=>{let n=h.getItem(t,i);if(!n)return null;try{return JSON.parse(n)}catch(t){return null}},setItem:function(t,i){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=c();r.setItem(t,i),n&&r.setItem(t+l,(0,a._g)().toString())},setJSON:function(t,i){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h.setItem(t,JSON.stringify(i),n)},removeItem:function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=c();n.removeItem(t),i&&n.removeItem(t+l)},removeAllMatchingKeys:t=>{if(!t)return;let i=c();
1Object.keys(i).forEach(n=>{n.includes(t)&&i.removeItem(n)})}}},78755:(t,i,n)=>{var r;!function(){"use strict";var s=!!("u">typeof window&&window.document&&window.document.createElement),a={canUseDOM:s,canUseWorkers:"u">typeof Worker,canUseEventListeners:s&&!!(window.addEventListener||window.attachEvent),canUseViewport:s&&!!window.screen};void 0===(r=(function(){return a}).call(i,n,i,t))||(t.exports=r)}()},78914:(t,i,n)=>{"use strict";n.d(i,{z:()=>r});let r={tr:"must be a Card object"}},78978:(t,i,n)=>{"use strict";n.d(i,{L:()=>r});let r={aa:"Banners are disabled. Make sure you have at least one campaign and relaunch the app.",ea:"data-update-subscription-id"}},79020:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(t){return console.log(t)}),console.log("end portalOpenInstances ----------")},i.resetState=function(){r=new n};var n=function t(){var i=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.register=function(t){-1!==i.openInstances.indexOf(t)||(i.openInstances.push(t),i.emit("register"))},this.deregister=function(t){var n=i.openInstances.indexOf(t);-1===n||(i.openInstances.splice(n,1),i.emit("deregister"))},this.subscribe=function(t){i.subscribers.push(t)},this.emit=function(t){i.subscribers.forEach(function(n){return n(t,i.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;i.default=r},79052:t=>{!function(){"use strict";var i={431:function(t){function i(t){if("string"!=typeof t)throw TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,i){for(var n,r="",s=0,a=-1,o=0,l=0;l<=t.length;++l){if(l<t.length)n=t.charCodeAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(r.length<2||2!==s||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",s=0):s=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),a=l,o=0;continue}}else if(2===r.length||1===r.length){r="",s=0,a=l,o=0;continue}}i&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+t.slice(a+1,l):r=t.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var t,r,s="",a=!1,o=arguments.length-1;o>=-1&&!a;o--)o>=0?r=arguments[o]:(void 0===t&&(t=""),r=t),i(r),0!==r.length&&(s=r+"/"+s,a=47===r.charCodeAt(0));if(s=n(s,!a),a)if(s.length>0)return"/"+s;else return"/";return s.length>0?s:"."},normalize:function(t){if(i(t),0===t.length)return".";var r=47===t.charCodeAt(0),s=47===t.charCodeAt(t.length-1);return(0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&s&&(t+="/"),r)?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var s=arguments[n];i(s),s.length>0&&(void 0===t?t=s:t+="/"+s)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(i(t),i(n),t===n||(t=r.resolve(t))===(n=r.resolve(n)))return"";for(var s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var a=t.length,o=a-s,l=1;l<n.length&&47===n.charCodeAt(l);++l);for(var u=n.length-l,c=o<u?o:u,d=-1,h=0;h<=c;++h){if(h===c){if(u>c){if(47===n.charCodeAt(l+h))return n.slice(l+h+1);else if(0===h)return n.slice(l+h)}else o>c&&(47===t.charCodeAt(s+h)?d=h:0===h&&(d=0));break}var p=t.charCodeAt(s+h);if(p!==n.charCodeAt(l+h))break;47===p&&(d=h)}var f="";for(h=s+d+1;h<=a;++h)(h===a||47===t.charCodeAt(h))&&(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(l+d):(l+=d,47===n.charCodeAt(l)&&++l,n.slice(l))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,s=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;return -1===s?r?"/":".":r&&1===s?"//":t.slice(0,s)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');i(t);var r,s=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var l=n.length-1,u=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!o){s=r+1;break}}else -1===u&&(o=!1,u=r+1),l>=0&&(c===n.charCodeAt(l)?-1==--l&&(a=r):(l=-1,a=u))}return s===a?a=u:-1===a&&(a=t.length),t.slice(s,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){s=r+1;break}}else -1===a&&(o=!1,a=r+1);return -1===a?"":t.slice(s,a)},extname:function(t){i(t);for(var n=-1,r=0,s=-1,a=!0,o=0,l=t.length-1;l>=0;--l){var u=t.charCodeAt(l);if(47===u){if(!a){r=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===u?-1===n?n=l:1!==o&&(o=1):-1!==n&&(o=-1)}
1return -1===n||-1===s||0===o||1===o&&n===s-1&&n===r+1?"":t.slice(n,s)},format:function(t){var i,n;if(null===t||"object"!=typeof t)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return i=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||""),i?i===t.root?i+n:i+"/"+n:n},parse:function(t){i(t);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var s=t.charCodeAt(0),a=47===s;a?(r.root="/",n=1):n=0;for(var o=-1,l=0,u=-1,c=!0,d=t.length-1,h=0;d>=n;--d){if(47===(s=t.charCodeAt(d))){if(!c){l=d+1;break}continue}-1===u&&(c=!1,u=d+1),46===s?-1===o?o=d:1!==h&&(h=1):-1!==o&&(h=-1)}return -1===o||-1===u||0===h||1===h&&o===u-1&&o===l+1?-1!==u&&(0===l&&a?r.base=r.name=t.slice(1,u):r.base=r.name=t.slice(l,u)):(0===l&&a?(r.name=t.slice(1,o),r.base=t.slice(1,u)):(r.name=t.slice(l,o),r.base=t.slice(l,u)),r.ext=t.slice(o,u)),l>0?r.dir=t.slice(0,l-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r}},n={};function r(t){var s=n[t];if(void 0!==s)return s.exports;var a=n[t]={exports:{}},o=!0;try{i[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}r.ab="//",t.exports=r(431)}()},79706:(t,i,n)=>{"use strict";var r=n(3717);function s(){}function a(){}a.resetWarningCache=s,t.exports=function(){function t(t,i,n,s,a,o){if(o!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:i,element:t,elementType:t,instanceOf:i,node:t,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:a,resetWarningCache:s};return n.PropTypes=n,n}},79808:(t,i,n)=>{"use strict";n.d(i,{n:()=>s});var r=n(64357);function s(t,i,n){let s=t||document.querySelector("head"),a=`ab-${i}-css-definitions-${"6.13.0".replace(/\./g,"-")}`;if(!s)return;let o=s.ownerDocument||document;if(null==o.getElementById(a)){let t=o.createElement("style");t.innerHTML=n||"",t.id=a;let i=r.Ay.er(r.lw.sr);null!=i&&t.setAttribute("nonce",i),s.appendChild(t)}}},79835:(t,i,n)=>{"use strict";n.d(i,{u:()=>r});let r=t=>t instanceof Error?t.message:String(t)},79921:(t,i,n)=>{"use strict";n.d(i,{$k:()=>r,Fn:()=>o,MF:()=>p,RW:()=>s,T:()=>f,_S:()=>d,em:()=>m,et:()=>c,mO:()=>l,uR:()=>u,uy:()=>a,xm:()=>h});let r=100,s=500,a=30,o=30,l=72e5,u=15,c=1,d=200,h=1e4,p=3,f=3e5,m={ee:"Braze must be initialized before calling methods.",$e:"logCustomEvent",QE:"logEcommerceEvent",Mu:"setCustomUserAttribute"}},80067:(t,i,n)=>{"use strict";n.d(i,{A:()=>a});var r=n(33865),s=n(15244);class a extends r.z{constructor(t,i,n,r=!1,s=!1,a=-1,o={},l=null){super(o),this.id=t,this.placementId=i,this.html=n,this.ss=r,this.isControl=s,this.ts=a,this.G=l,this.id=t,this.placementId=i,this.html=n,this.ss=r,this.isControl=s,this.ts=a,this.hs=!1,this.rs=!1,this.es=null}subscribeToDismissedEvent(t){return this.ns().Ut(t)}removeSubscription(t){null!=this.es&&this.es.removeSubscription(t)}removeAllSubscriptions(){null!=this.es&&this.es.removeAllSubscriptions()}os(){return this.isControl}ns(){return null==this.es&&(this.es=new s.A),this.es}Ft(){return!this.rs&&(this.rs=!0,this.ns().A(),this.removeAllSubscriptions(),!0)}qt(){return{id:this.id,pid:this.placementId,html:this.html,its:this.ss,ic:this.isControl,eat:this.ts,pr:this.properties,sk:this.G}}}},80990:(t,i,n)=>{"use strict";n.r(i),n.d(i,{default:()=>ea});var r=n(37876),s=n(27964),a=n(59575),o=n(18385),l=n(77328),u=n.n(l),c=n(79052),d=n(14232),h=n(53243),p=n(37156),f=n(71152),m=n(99742);let g="brand-stylesheet",b=t=>{let i,n,l,h,p,b=(0,s.c)(16),{assetManifest:v}=t,{designSystem:w}=(0,a.DP)();b[0]!==v||b[1]!==w?(i=()=>{var t;if(!(0,f.Bd)()){let t=v.find(t=>t.includes(w));if(t){let i=(0,o.readFileSync)((0,c.join)(m.cwd(),"public","css",t),"utf-8");return{designSystem:w,fileName:t,styles:i}}throw console.error("Could not find the CSS file for ".concat(w)),Error("Could not decide what CSS file to use for ".concat(w,"!"))}let i=document.getElementById(g),n=null==i?void 0:i.getAttribute("data-stylesheet-name");return{designSystem:null!=n?n:w,fileName:null==i?void 0:i.getAttribute("data-stylesheet-version"),styles:null!=(t=null==i?void 0:i.innerHTML)?t:""}},b[0]=v,b[1]=w,b[2]=i):i=b[2];let A=i;b[3]!==A?(n=()=>A(),b[3]=A,b[4]=n):n=b[4];let[S]=(0,d.useState)(n),{data:_}=y(v,w,S);if(b[5]!==v||b[6]!==w){let t;b[8]!==w?(t=t=>t.includes(w),b[8]=w,b[9]=t):t=b[9],l=v.find(t),b[5]=v,b[6]=w,b[7]=l}else l=b[7];let E=null!=_?_:"";return b[10]!==E?(h={__html:E},b[10]=E,b[11]=h):h=b[11],b[12]!==w||b[13]!==l||b[14]!==h?(p=(0,r.jsx)(u(),{children:(0,r.jsx)("style",{id:g,"data-stylesheet-name":w,"data-stylesheet-version":l,dangerouslySetInnerHTML:h},"brand-stylesheet")}),b[12]=w,b[13]=l,b[14]=h,b[15]=p):p=b[15],p},v=async t=>{let i=await fetch(t);if(!i.ok){let i=Error("Failed to fetch stylesheet "+t);throw console.error("Virhe! Tyylien lataaminen ep\xe4onnistui. Jos n\xe4et t\xe4m\xe4n viestin, kokeile p\xe4ivitt\xe4\xe4 sivu."),i}return i.text()},y=(t,i,n)=>{let r,a,o,l,u,c=(0,s.c)(14);if(c[0]!==t||c[1]!==i){let n;c[3]!==i?(n=t=>t.includes(i),c[3]=i,c[4]=n):n=c[4],r=t.find(n),c[0]=t,c[1]=i,c[2]=r}else r=c[2];let f=r,m=n.fileName?"/css/".concat(n.fileName):null;c[5]!==m||c[6]!==n.styles?(a=m?{[m]:n.styles}:{},c[5]=m,c[6]=n.styles,c[7]=a):a=c[7];let g=a;c[8]!==g?(o={fallback:g,keepPreviousData:!0},c[8]=g,c[9]=o):o=c[9];let b=(0,p.E)(f?"/css/".concat(f):null,v,o);return c[10]!==m||c[11]!==n.styles?(l=()=>{m&&(0,h.k)(m,n.styles,{revalidate:!1}
1).catch(w)},u=[m,n.styles],c[10]=m,c[11]=n.styles,c[12]=l,c[13]=u):(l=c[12],u=c[13]),(0,d.useEffect)(l,u),b};function w(){}var A=n(72848),S=n(23191),_=n(51799);let E=()=>{let t,i=(0,s.c)(1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{}),(0,r.jsx)(x,{})]}),i[0]=t):t=i[0],t},k=()=>{var t,i;let{datadog:r,environment:s}=(0,S.U)(),a=(0,A.P)(),{sppd:o}=(0,_.h)(),l=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{var t;let i=async(t,i)=>{let{datadogLogs:r}=await Promise.all([n.e(6092),n.e(5384)]).then(n.bind(n,55384)),o=document.location.search.includes("fbclid=")&&document.referrer.includes("facebook.com");r.init({...O(a,s),clientToken:t,forwardErrorsToLogs:!o,forwardConsoleLogs:o?[]:["error"],sessionSampleRate:100*i}),C(r.setGlobalContextProperty,s),l.current=!0};o&&(null==r||null==(t=r.browserLogs)?void 0:t.clientToken)&&"number"==typeof r.browserLogs.samplingRate&&i(r.browserLogs.clientToken,r.browserLogs.samplingRate).catch(t=>{console.error("Unhandled error when trying to initialize Datadog",t)})},[a,null==r||null==(t=r.browserLogs)?void 0:t.clientToken,null==r||null==(i=r.browserLogs)?void 0:i.samplingRate,s,o]),(0,d.useEffect)(()=>{let t=async()=>{let{datadogLogs:t}=await Promise.all([n.e(6092),n.e(5384)]).then(n.bind(n,55384));t.setTrackingConsent(o?"granted":"not-granted")};l.current&&t().catch(t=>{console.error("Unhandled error when trying to toggle Datadog Browser Logs after consent change",t)})},[o]),null},x=()=>{var t,i;let r=(0,A.P)(),{environment:s,datadog:a}=(0,S.U)(),{sppd:o}=(0,_.h)(),l=(0,d.useRef)("number"==typeof(null==a||null==(t=a.rum)?void 0:t.samplingRate[r])&&I(a.rum.samplingRate[r])),u=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{let t=async()=>{let{datadogRum:t}=await Promise.all([n.e(6092),n.e(688)]).then(n.bind(n,30688));t.init({...O(r,s),applicationId:"a4794ee2-cb3d-4e4d-be4c-e39cd00b82b6",clientToken:"pub2ec493a091be2ef971de7dfe2c41c428",sessionSampleRate:100,sessionReplaySampleRate:0,trackResources:!0}),C(t.setGlobalContextProperty,s),u.current=!0};o&&l.current&&t().catch(t=>{console.error("Unhandled error when trying to initialize Datadog RUM",t)})},[r,null==a||null==(i=a.rum)?void 0:i.samplingRate,s,o]),(0,d.useEffect)(()=>{let t=async()=>{let{datadogRum:t}=await Promise.all([n.e(6092),n.e(688)]).then(n.bind(n,30688));t.setTrackingConsent(o?"granted":"not-granted")};u.current&&t().catch(t=>{console.error("Unhandled error when trying to toggle Datadog RUM after consent change",t)})},[o]),null},I=t=>Math.random()<=t,O=(t,i)=>({env:"sndp-".concat(i),service:"".concat(t,"-html"),silentMultipleInit:!0,site:"datadoghq.eu",version:"prod-8cde69f3ca5dcc00cfcccca6f6bf73e9bd4e2af7-e416a707-66dd-4e0e-9ecd-3ebd836eb200"}),C=(t,i)=>{t("customer","sndp"),t("product","sndp:html"),t("environment","sndp:".concat(i))};var T=n(63593),P=n(38679),N=n(62498),j=n(24733);let R=()=>{let t,i=(0,s.c)(3),n=(0,P.d)(),{useInkBridge:r}=(0,T.g$)();return i[0]!==n||i[1]!==r?(t=()=>{let t;return r&&!n&&(t=setTimeout(()=>{var t;console.error("Timeout on INK-app response with ".concat(N.mB.DeviceUserDataResponse)),(null==(t=window.AndroidInkBridge)?void 0:t.webToNative)&&("hidden"===document.visibilityState?D():console.error("Applying Ink bridge Android workaround: page already visible, device status received: ",!!n))},j.q0)),()=>{clearTimeout(t)}},i[0]=n,i[1]=r,i[2]=t):t=i[2],(0,d.useEffect)(t),null},D=()=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&(console.error("Applying Ink bridge Android workaround: page became visible, reloading"),window.location.reload())})};var M=n(464);let U=()=>{let t,i,n=(0,s.c)(4),{storeInkConsentsToBrowserStorage:r}=(0,T.g$)(),a=(0,P.d)();return n[0]!==a||n[1]!==r?(t=()=>{r&&a&&(0,M.$V)(a.consents)},i=[a,r],n[0]=a,n[1]=r,n[2]=t,n[3]=i):(t=n[2],i=n[3]),(0,d.useEffect)(t,i),null};var B=n(61127),z=n(18858),L=n(40492),F=n(72974),$=n(92739),q=n(89099),V=n(88869);let W=()=>[...document.querySelectorAll("[data-scroll-restoration-container] > *")].filter(t=>!t.querySelector("[data-ad-position], [data-ad-placeholder]"));var J=n(4361),G=n.n(J),H=n(41116),K=n.n(H),Z=n(60697),X=n(68260),Y=n(7264);let Q={appName:"html",environment:"prod",videoPlayerUrl:"//sf.nm-ovp.nelonenmedia.fi/player/stable/ruutu-player
1-loader.js","hosts.apps":"https://apps.{domain}.fi","hosts.supersaa":"https://www.supersaa.fi","hosts.er.whitelabel":"https://er.sanoma-sndp.fi",datadog:{browserLogs:{clientToken:"pub8ef65a12f830758441bf956054862180",samplingRate:.02},rum:{samplingRate:{hs:0,is:.01,al:0,sk:0,jan:0,js:0,ks:0,kmv:0,mk:0,nu:0,rks:0,suk:0,ss:0,tyr:0,vs:0}}},"hosts.sanomaSSO":"https://tili.sanoma.fi",supersaaWidgetEnv:"prod",googleExtendedAccess:{googleApiClientId:""},iframe:{allow:{"clipboard-write":[],"web-share":[]}},iframeEmbed:{allow:{"clipboard-write":[],"web-share":[]}}},ee=(t,i)=>{let[n,r]=(0,d.useState)(null!=t?t:i);return t&&n!==t&&r(t),n},et=t=>{var i;let n,o,l,u,c,h,p,f,m,g,v,y,w,_,k,x,I,O,C,N,j,D=(0,s.c)(40),{Component:M,pageProps:J,assetManifest:G,brand:H,configProperties:K,envConfig:Z,pageFeatures:X}=t,et=ee(K,z.oN),ei=ee(Z,Q);D[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],D[0]=n):n=D[0];let en=ee(G,n),{pathname:er}=(0,q.useRouter)();(0,V.Fq)(),C=(0,s.c)(6),N=(0,q.useRouter)(),C[0]===Symbol.for("react.memo_cache_sentinel")?(x=new Map,C[0]=x):x=C[0],j=(0,d.useRef)(x),C[1]!==N.asPath||C[2]!==N.events?(I=()=>{let t=null,i=()=>{null==t||t(),t=null;let i=(()=>{let t=W(),i=0;for(let s=0;s<t.length;s++){var n,r;if((null!=(n=null==(r=t[s])?void 0:r.getBoundingClientRect().top)?n:0)+window.scrollY<=window.scrollY)i=s;else break}let s=t[i];return s?{index:i,element:s}:null})();if(!i)return;let n=i.element.getBoundingClientRect().top+window.scrollY;j.current.set(N.asPath,{index:i.index,offset:window.scrollY-n})},n=i=>{if(!(0,V.dS)())return;let n=j.current.get(i);if(!n)return;let r=()=>{let t=W()[n.index];if(!t)return;let i=t.getBoundingClientRect().top+window.scrollY;window.scroll({top:i+n.offset,behavior:"auto"})};r();let s=document.querySelector("[data-scroll-restoration-container]");if(!s)return;let a=new ResizeObserver(r),o=()=>{clearTimeout(l),a.disconnect(),window.removeEventListener("wheel",o),window.removeEventListener("touchstart",o),t=null};t=o;let l=setTimeout(o,2e3);window.addEventListener("wheel",o,{once:!0,passive:!0}),window.addEventListener("touchstart",o,{once:!0,passive:!0}),a.observe(s)};return N.events.on("routeChangeStart",i),N.events.on("routeChangeComplete",n),()=>{null==t||t(),N.events.off("routeChangeStart",i),N.events.off("routeChangeComplete",n)}},C[1]=N.asPath,C[2]=N.events,C[3]=I):I=C[3],C[4]!==N?(O=[N],C[4]=N,C[5]=O):O=C[5],(0,d.useEffect)(I,O),(0,P.d)(),D[1]===Symbol.for("react.memo_cache_sentinel")?(o=[],D[1]=o):o=D[1],(0,d.useEffect)(eo,o);let ea=null==J?void 0:J.page,el=null==J||null==(i=J.page)?void 0:i.assetData;D[2]!==ea||D[3]!==el?(l=(0,Y.B)(ea,el),D[2]=ea,D[3]=el,D[4]=l):l=D[4];let eu=l;if("/jsRedirect"===er){let t,i;return D[5]!==M||D[6]!==J?(t=(0,r.jsx)(M,{...J}),D[5]=M,D[6]=J,D[7]=t):t=D[7],D[8]!==en||D[9]!==H||D[10]!==t?(i=(0,r.jsx)(es,{assetManifest:en,brand:H,children:t}),D[8]=en,D[9]=H,D[10]=t,D[11]=i):i=D[11],i}return D[12]!==M||D[13]!==J?(u=(0,r.jsx)(M,{...J}),D[12]=M,D[13]=J,D[14]=u):u=D[14],D[15]!==en?(c=(0,r.jsx)(b,{assetManifest:en}),D[15]=en,D[16]=c):c=D[16],D[17]!==u||D[18]!==c?(h=(0,r.jsxs)(L.f,{children:[u,c]}),D[17]=u,D[18]=c,D[19]=h):h=D[19],D[20]!==eu||D[21]!==h?(p=(0,r.jsx)(a.NP,{sectionTheme:eu,children:h}),D[20]=eu,D[21]=h,D[22]=p):p=D[22],D[23]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsx)(E,{}),D[23]=f):f=D[23],D[24]!==p?(m=(0,r.jsx)($.jl,{children:(0,r.jsx)(F.bN,{children:(0,r.jsxs)(B.Ww,{children:[p,f]})})}),D[24]=p,D[25]=m):m=D[25],D[26]===Symbol.for("react.memo_cache_sentinel")?(g=(0,r.jsx)(U,{}),v=(0,r.jsx)(R,{}),D[26]=g,D[27]=v):(g=D[26],v=D[27]),D[28]!==X||D[29]!==m?(y=(0,r.jsxs)(T.gJ,{pageFeatures:X,children:[m,g,v]}),D[28]=X,D[29]=m,D[30]=y):y=D[30],D[31]!==et||D[32]!==y?(w=(0,r.jsx)(z.pZ,{configProperties:et,children:y}),D[31]=et,D[32]=y,D[33]=w):w=D[33],D[34]!==H||D[35]!==w?(_=(0,r.jsx)(A.j,{brand:H,children:w}),D[34]=H,D[35]=w,D[36]=_):_=D[36],D[37]!==ei||D[38]!==_?(k=(0,r.jsx)(S.s,{config:ei,children:_}),D[37]=ei,D[38]=_,D[39]=k):k=D[39],k};et.getInitialProps=async t=>{var i;let n=await G().getInitialProps(t),r=(0,f.Bd)()?document.location.hostname:null==(i=t.ctx.req)?void 0:i.headers.host,s=(0,Z.TD)(r),a=(0,X.iC)(t.ctx.pathname,r),o={...n,assetManifest:void 0,brand:s,configProperties:void 0,envConfig:void 0,pageFeatures:a};if((0,f.Bd)())return o;{let[t,i,n]=await Promise.all([ei(s),en(),er()]);return{...o,assetManifest:n,configProperties:t,envConfig:i}}};let ei=async t=>{try{var i;let{getConfigProperties:n}=await Promise.resolve().then(function(){var t=Error("Cannot find module 'server/apis/sc'");throw t.code="MODULE_NOT_FOUND",t});return i=await n(t),["adobelaunch.environment","adobelaunch.mobile.environment","braze.web-sdk.enabled","braze.web-sdk.anon.tracking.mode","braze.web-sdk.page-views.threshold","braze.web-sdk.paywalls","gift.articles.enabled","gtm.id","gtm.id.ink","gtm.id.shopping","tealium.adsitename","html.ads.enabled","html.ab-tests.enabled","html.autowelcomeback.enabled","html.braze.banner-placements","html.commenting.enabled","html.commenting.commentspage.enabled","html.cross-device-consents.enabled","html.gns.extended-access.enabled","html.param.items.fixed.frontpage","html.personalizationengine.frontpage.enabled","html.personalizationengine.redirect.percentage","html.personalizationengine.redirect.percentage.alsoreadthese","html.personalizationengine.redirect.percentage.reelsfocus","html.personalizationengine.redirect.percentage.diamondticker","html.personalizationengine.redirect.percentage.extra","html.personalizationengine.redirect.percentage.frontpage","html.personalizationengine.redirect.percentage.paywall","html.personalizationengine.redirect.percentage.premium","html.personalizationengine.redirect.percentage.recommendations","shogun.servicename","html.paywalls.archived.order-link","html.paywalls.archived.order-link-upgrade","html.paywalls.edition.order-link","html.paywalls.edition.order-link-upgrade","html.paywalls.hard.order-link","html.metered-softwall.order-link","html.metered-softwall.title","html.metered-softwall.description","html.metered-softwall.login-link","html.metered-softwall.login-button-label","html.metered-softwall.order-button-label","html.metered-softwall.shownAfterXPageViews","html.metered-softwall.enabled","html.personalizationengine.ab.test.configuration","html.personalizationengine.ab.test.configuration.alsoreadthese","html.personalizationengine.ab.test.configuration.reelsfocus","html.personalizationengine.ab.test.configuration.diamondticker","html.personalizationengine.ab.test.configuration.extra","html.personalizationengine.ab.test.configuration.frontpage","html.personalizationengine.ab.test.configuration.paywall","html.personalizationengine.ab.test.configuration.premium","html.personalizationengine.ab.test.configuration.recommendations","html.header.personalizationsettings.enabled","html.header.submenu.hideonassetpage","html.app-marketing-banner","html.apps.subscribe.button.title","html.apps.subscribe.button.url.android","html.apps.subscribe.button.url.ios","html.advertorial.adform.pixel.enabled","html.ruutuplayer.debugversion","html.subscribe.button.url.site","html.subscribe.button.title.site","html.apps.paywall.de
1scription.ios","html.apps.notification.subscription","html.apps.android.metered-softwall.order-link","html.apps.android.metered-softwall.title","html.apps.android.metered-softwall.description","html.apps.android.metered-softwall.login-link","html.apps.android.metered-softwall.login-button-label","html.apps.android.metered-softwall.order-button-label","html.apps.android.metered-softwall.shownAfterXPageViews","html.apps.android.metered-softwall.enabled","html.apps.ios.metered-softwall.order-link","html.apps.ios.metered-softwall.title","html.apps.ios.metered-softwall.description","html.apps.ios.metered-softwall.login-link","html.apps.ios.metered-softwall.login-button-label","html.apps.ios.metered-softwall.order-button-label","html.apps.ios.metered-softwall.shownAfterXPageViews","html.apps.ios.metered-softwall.enabled","html.cop.funnel","html.apps.android.puomi-campaign-pages.enabled","html.apps.ios.puomi-campaign-pages.enabled","html.puomi-campaign-pages.enabled","html.apps.android.puomi-campaign-pages.default-campaign-id","html.apps.ios.puomi-campaign-pages.default-campaign-id","html.puomi-campaign-pages.default-campaign-id"].reduce((t,n)=>{let r=i[n];return void 0!==r&&(t[n]=r),t},{})}catch(i){return console.error("Failed to fetch config properties for brand ".concat(t,", using fallback values"),i),z.oN}},en=async()=>{try{return(await Promise.resolve().then(function(){var t=Error("Cannot find module 'server/utils/configuration'");throw t.code="MODULE_NOT_FOUND",t})).publicEnvConfig}catch(t){return console.error("Failed to dynamically import public env config, using fallback values",t),Q}},er=async()=>{try{return(await Promise.resolve().then(function(){var t=Error("Cannot find module 'server/utils/assets'");throw t.code="MODULE_NOT_FOUND",t})).getAssetManifest()}catch(t){return console.error("Failed to fetch asset manifest, fallback to empty array",t),[]}},es=t=>{let i,n,o,l=(0,s.c)(9),{brand:u,children:c,sectionTheme:d,assetManifest:h}=t;return l[0]!==h?(i=(0,r.jsx)(b,{assetManifest:h}),l[0]=h,l[1]=i):i=l[1],l[2]!==c||l[3]!==d||l[4]!==i?(n=(0,r.jsxs)(a.NP,{sectionTheme:d,children:[c,i]}),l[2]=c,l[3]=d,l[4]=i,l[5]=n):n=l[5],l[6]!==u||l[7]!==n?(o=(0,r.jsx)(A.j,{brand:u,children:n}),l[6]=u,l[7]=n,l[8]=o):o=l[8],o},ea=et;function eo(){K().setAppElement("#__next")}},81415:(t,i,n)=>{"use strict";n.d(i,{j3:()=>r,uD:()=>s});let r={PORTRAIT:0,LANDSCAPE:1},s={openUri:function(t,i,n){t&&(i||null!=n&&n.metaKey?window.open(t):window.location=t)},$a:function(){return screen.width<=600},Ua:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?r.LANDSCAPE:r.PORTRAIT;let t=window;if("screen"in t){let i=t.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=i&&"object"==typeof i&&(i=i.type),"landscape-primary"===i||"landscape-secondary"===i?r.LANDSCAPE:r.PORTRAIT}return r.PORTRAIT},Ul:function(){return window.location.href}}},81761:(t,i,n)=>{"use strict";n.d(i,{a:()=>c});var r=n(23486),s=n(64357),a=n(37206),o=n(34063),l=n(78914),u=n(7966);function c(t){if(!s.Ay.rr())return!1;if(!(0,a.cy)(t))return o.A.error("cards must be an array"),!1;for(let i of t)if(!(i instanceof r.A))return o.A.error(`Each card in cards ${l.z.tr}`),!1;return u.A.ra().ds(t).lt}},82793:(t,i,n)=>{"use strict";n.d(i,{w:()=>r});let r={CustomEvent:"ce",qr:"p",km:"pc",ev:"ca",Sc:"i",Zl:"ie",vs:"cci",ws:"ccic",us:"ccc",gs:"ccd",Sm:"ss",hm:"se",ua:"si",pa:"sc",ha:"sbc",tv:"sfe",om:"iec",bm:"lr",vm:"uae",Dm:"lcaa",Am:"lcar",Ya:"inc",Xu:"add",Zu:"rem",Vu:"set",Qu:"ncam",$m:"sgu",xo:"ffi",ro:"bi",Nt:"bc",Rt:"bd"}},83607:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=n(73817),s=n(77904),a=n(73128);class o extends a.A{constructor(t,i,n,s,a,o,l,u,c,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k,x,I,O,C,T,P,N){u=u||r.uR.MANUAL,I=I||r.I5.PORTRAIT,super(t,i,void 0,n,s,a,o,l,u,c,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k,x=x||r.A5.CENTER_CROP,I,O,C,T,P,N),this.Ao=r.KP.CENTER}qt(){return super.qt(r.o6.oE)}static Ea(t){return new o(t[r.Ot.UE],t[r.Ot.cE],t[r.Ot.Is],t[r.Ot.PE],t[r.Ot.iE],t[r.Ot.URI],t[r.Ot.pE],t[r.Ot.rE],t[r.Ot.mE],t[r.Ot.GE],t[r.Ot.Bs],t[r.Ot.xE],t[r.Ot.HE],t[r.Ot.FE],t[r.Ot.BE],t[r.Ot.bE],t[r.Ot.gE],t[r.Ot.lE],t[r.Ot.YE],t[r.Ot.hE],t[r.Ot.KE],t[r.Ot.WE],t[r.Ot.XE],(0,s.x)(t[r.Ot.yE]),t[r.Ot.dE],t[r.Ot.uE],t[r.Ot.fE],t[r.Ot.CSS],t[r.Ot.jE],t[r.Ot.LANGUAGE],t[r.Ot.Ns])}}},85111:(t,i,n)=>{"use strict";n.d(i,{q:()=>r});let r="$inf$"},86700:(t,i,n)=>{"use strict";n.d(i,{E5:()=>s,Xb:()=>a,sK:()=>o,ub:()=>r});let r=t=>"Article"===t.resourceType,s=t=>"Article"===t.resourceType||"Advertorial"===t.resourceType,a=t=>"Article"===t.resourceType||"Advertorial"===t.resourceType||"Audio"===t.resourceType,o=t=>"Reel"===t.resourceType},88869:(t,i,n)=>{"use strict";n.d(i,{dS:()=>h,Fq:()=>m});var r=n(27964),s=n(89099),a=n.n(s),o=n(14232);let l=new Set,u=t=>{for(let i of l)i(t);return!0},c=!1,d=!1,h=()=>c,p=()=>{d?d=!1:c=!1},f=()=>{c=!1,d=!1},m=()=>{let t,i=(0,r.c)(1);i[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],i[0]=t):t=i[0],(0,o.useEffect)(b,t)};function g(){c=!0,d=!0}function b(){let t=(0===l.size&&a().beforePopState(u),l.add(g),()=>l.delete(g));return a().events.on("routeChangeStart",p),a().events.on("routeChangeError",f),()=>{t(),a().events.off("routeChangeStart",p),a().events.off("routeChangeError",f)}}},89099:(t,i,n)=>{t.exports=n(74)},89384:(t,i,n)=>{"use strict";n.d(i,{t:()=>r});let r=()=>{}},91149:(t,i,n)=>{"use strict";n.d(i,{c:()=>r});let r={qo:32,Qo:9,Lo:13,Yh:27}},91421:(t,i,n)=>{"use strict";n.d(i,{c:()=>a});var r=n(99373),s=n(78101);let a={getItem:(t,i)=>i?l(t,i):s.s.getItem(t),getItemLastSaveTime:t=>s.s.getItem(o(t)),setItem:(t,i,n)=>{s.s.setItem(t,i),s.s.setItem(o(t),n.toString())},removeItem:t=>{s.s.removeItem(t),s.s.removeItem(o(t))}},o=t=>"".concat(t).concat("-last-save"),l=(t,i)=>{let n=s.s.getItem(t),r=s.s.getItem(o(t));return!n||!r||u(r,i)?(a.removeItem(t),null):n},u=(t,i)=>{try{let n=(0,r._g)(),s=parseInt(t);return isNaN(s)||n-s>i}catch(t){return!0}}},92739:(t,i,n)=>{"use strict";n.d(i,{jl:()=>S,sb:()=>k});var r=n(37876),s=n(27964),a=n(38679),o=n(89099),l=n(14232),u=n(5652),c=n(51144),d=n(59712),h=n(23305),p=n(96078),f=n(74730),m=n(68684),g=n(67701),b=n(72848),v=n(23191),y=n(18858),w=n(63593);let A=(0,l.createContext)(void 0),S=t=>{var i;let n,s,{children:A}=t,S=(0,y.R7)(),_=(0,b.P)(),k=(n=(0,o.useRouter)(),(s=(0,l.useRef)(n)).current=n,s),x=(0,l.useRef)(!1),I=(0,l.useRef)((0,m.xA)()),[O,C]=(0,l.useState)({profileId:void 0,ceId:void 0,testGroupData:void 0,ecId:void 0}),[T,P]=(0,l.useState)(!1),[N,j]=(0,l.useState)(!1),[R,D]=(0,l.useState)(!1),[M,U]=(0,l.useState)(!1),{enableAutoWelcomeBack:B,useInkAuth:z,useInkBridge:L}=(0,w.g$)(),{environment:F}=(0,v.U)(),$=(0,a.d)(),q=null==$?void 0:$.anonymousProfileId,V=null==$?void 0:$.testGroupData,W=null==$?void 0:$.ceId,J=B&&!0===(null!=(i=S["html.autowelcomeback.enabled"])&&i),{isIframeLaneItem:G}=(0,g.A)(),[H,K]=(0,l.useState)(()=>(0,m.Go)(J,z,_,F,k.current));(0,l.useEffect)(()=>
1{if(z)return;let t=t=>{if(t.persisted){let t=(0,m.Go)(J,z,_,F,k.current);(0,m.M3)(t)!==(0,m.M3)(H)&&window.location.reload()}};return window.addEventListener("pageshow",t),()=>{window.removeEventListener("pageshow",t)}},[J,_,F,z,H,k]),(0,l.useEffect)(()=>{let t=(0,p.iU)(),i=z?V:(0,p.wD)();switch(H.authenticationStatus){case c.J.Authenticated:C({...(0,p.Ym)(H),...z&&W?{ceId:W}:{},testGroupData:i,ecId:t}),j(!0);break;case c.J.Unknown:case c.J.AutoWelcomeBack:break;case c.J.Unauthenticated:default:z?C({profileId:q,ceId:W,testGroupData:V,ecId:t}):C({profileId:(0,p.un)(),ceId:(0,p.gE)(),testGroupData:(0,p.wD)(),ecId:t}),j(!0)}},[q,W,H,z,V]),(0,l.useEffect)(()=>{N&&O.ceId&&(0,p.IU)(_,O.ceId)},[_,N,O.ceId]);let Z=(0,l.useCallback)(async()=>{let{user:t}=await (0,m.xJ)(!1,(0,m.xA)(),_,F,z);K(t)},[_,F,z]);(0,l.useEffect)(()=>{x.current||(async()=>{try{if((0,f.vJ)()){x.current=!0,(0,f.fr)(k.current,_);let{user:t}=await (0,m.xJ)(J,I.current,_,F,z,P);t.authenticationStatus===c.J.Authenticated?((0,d.hb)(),(0,d.q4)(u.Kf.LoginDone,L),D(!0)):(t.authenticationStatus===c.J.Unauthenticated||t.authenticationStatus===c.J.AutoWelcomeBack)&&U(!0),K(t)}else if(H.authenticationStatus===c.J.Unknown){x.current=!0;let{user:t}=await (0,m.xJ)(J,I.current,_,F,z,P,G);K(t)}}catch(t){}})()},[J,_,F,G,k,z,L,H.authenticationStatus]),(0,l.useEffect)(()=>{(0,f.vJ)()||H.authenticationStatus===c.J.Unknown||P(!0)},[]),(0,l.useEffect)(()=>{H.authenticationStatus===c.J.Authenticated&&T?(0,d.c8)(H):H.authenticationStatus===c.J.Unauthenticated&&(0,d.FO)()},[H,T]);let X=(0,l.useCallback)(t=>(0,h._P)(_,z,F,t,G),[_,F,G,z]),Y=(0,l.useCallback)(async t=>{let i=await X(t);if(!i)throw Error("Failed getting session token");let n={...(0,h.le)(i).userProfile,authenticationStatus:c.J.Authenticated};return K(n),{userProfile:n,sessionToken:i}},[X]),Q=(0,l.useCallback)(t=>{z||t!==O.testGroupData&&((0,p.BX)(t),K(i=>({...i,testGroupData:t})))},[O,z,K]);return(0,r.jsx)(E,{value:{userProfile:H,setUserProfile:K,getValidSessionToken:X,refreshSessionTokenAndUpdateContext:Z,refreshSession:Y,userIds:O,userIdsResolved:N,updateTestGroupData:Q,loginDone:R,logoutDone:M,localStorageReady:T},children:A})},_=(0,l.memo)(t=>{let i,n=(0,s.c)(3),{value:a,children:o}=t;return n[0]!==o||n[1]!==a?(i=(0,r.jsx)(A.Provider,{value:a,children:o}),n[0]=o,n[1]=a,n[2]=i):i=n[2],i});_.displayName="UserProfileProvider";let E=_,k=()=>{let t=(0,l.useContext)(A);if(void 0===t)throw Error("useUserProfile must be used within a UserProfileProvider");return t}},93157:(t,i,n)=>{"use strict";n.d(i,{KV:()=>c,Te:()=>h});var r=n(34063),s=n(12470),a=n(79921),o=n(64357),l=n(37206),u=n(44917);let c=(t,i)=>{let c={display:{},web:{}},d=function(){return function(){let t=arguments;Promise.resolve().then(n.bind(n,39721)).then(i=>{o.Ay.vr()?i.requestPushPermission(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})}},h={requestImmediateDataFlush:function(){let t=arguments;n.e(5829).then(n.bind(n,65829)).then(({requestImmediateDataFlush:i})=>{o.Ay.vr()?i(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})},logCustomEvent:function(){let t=arguments;Promise.resolve().then(n.bind(n,38745)).then(({logCustomEvent:i})=>{o.Ay.vr()?i(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})},logPurchase:function(){let t=arguments;n.e(4025).then(n.bind(n,74025)).then(({logPurchase:i})=>{o.Ay.vr()?i(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})},unregisterPush:function(){let t=arguments;Promise.resolve().then(n.bind(n,57603)).then(({unregisterPush:i})=>{o.Ay.vr()?i(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})},requestPushPermission:d(),changeUser:function(){let t=arguments;Promise.resolve().then(n.bind(n,26578)).then(({changeUser:i})=>{o.Ay.vr()?i(...Array.prototype.slice.call(t)):r.A.error(a.em.ee)})}},p=function(t){return function(){h[t](...Array.prototype.slice.call(arguments))}};for(let t of(0,l.HP)(h))c[t]=p(t);let f=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],m=function(t){return function(){let i=(0,s.w)();i&&i[t](...Array.prototype.slice.call(arguments))}},g={};for(let t=0;t<f.length;t++)g[f[t]]=m(f[t]);c.getUser=function(){return g};let b={},v=function(n){return function(){let r=arguments;"function"!=typeof i?b[n](...Array.prototype.slice.call(r)):i(t,function(){b[n](...Array.prototype.slice.call(r))})}},y=c.display;for(let t of(0,l.HP)(b))y[t]=v(t);let w={registerAppboyPushMessages:d()},A=function(t){return function(){w[t](...Array.prototype.slice.call(arguments))}},S=c.web;for(let t of(0,l.HP)(w))S[t]=A(t);return c.NotificationSubscriptionTypes=u.A.NotificationSubscriptionTypes,c},d=(t,i,n)=>{let r=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${n}['"]\\)`,s=t.match(new RegExp(r));if(s){let n=`${s[1]}.setAttribute("nonce", "${i}")`;return`${t.slice(0,s.index+s[0].length)};${n};${t.slice(s.index+s[0].length)}`}return null},h=(t,i,n)=>{let r=null;if(null!=n){(r=document.createElement("html")).innerHTML=i||"";let t=r.getElementsByTagName("style");for(let i=0;i<t.length;i++)t[i].setAttribute("nonce",n);let s=r.getElementsByTagName("script");for(let t=0;t<s.length;t++){s[t].setAttribute("nonce",n),s[t].innerHTML=s[t].innerHTML.replace(/<style>/g,`<style nonce='${n}'>`);let i=d(s[t].innerHTML,n,"script");
1i&&(s[t].innerHTML=i);let r=d(s[t].innerHTML,n,"style");r&&(s[t].innerHTML=r)}}t.srcdoc=r?r.innerHTML:i||""}},93908:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=n(73128),s=n(76577),a=n(73817);class o extends r.A{constructor(t,i,n,r,s,o,l,u,c,d,h,p,f,m,g,b,v,y,w,A,S,_,E,k){b=b||a.S9.OE,g=g||a.S9.SE,super(t,i=i||a.KP.START,n,r,s,o,l,u,c,d,h,p,void 0,f,m,g,b,v,y,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A,S,_,E,k),this.Ao=a.KP.START}zo(){return!1}Ho(){let t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}Wh(t){let i=t.getElementsByClassName("ab-in-app-message")[0];s.e0.td(i,!0,!0)||(this.slideFrom===a.r2.TOP?i.style.top="0px":i.style.bottom="0px"),super.Wh(t)}qt(){return super.qt(a.o6.RE)}static Ea(t){return new o(t[a.Ot.UE],t[a.Ot.cE],t[a.Ot.nE],t[a.Ot.Is],t[a.Ot.PE],t[a.Ot.iE],t[a.Ot.URI],t[a.Ot.pE],t[a.Ot.rE],t[a.Ot.mE],t[a.Ot.GE],t[a.Ot.Bs],t[a.Ot.HE],t[a.Ot.FE],t[a.Ot.BE],t[a.Ot.bE],t[a.Ot.gE],t[a.Ot.lE],t[a.Ot.YE],t[a.Ot.fE],t[a.Ot.CSS],t[a.Ot.jE],t[a.Ot.LANGUAGE],t[a.Ot.Ns])}}},95062:(t,i,n)=>{t.exports=n(79706)()},95315:(t,i,n)=>{"use strict";n.d(i,{DA:()=>h,EQ:()=>l,Jd:()=>d,S3:()=>c,UK:()=>s,YX:()=>a,Zo:()=>o,jU:()=>u});var r=n(37206);function s(t,i=!1){let n=t/1e3;return i&&(n=Math.floor(n)),n}function a(t){return 1e3*t}function o(t){if(null==t)return null;let i=parseInt(t.toString());return isNaN(i)?null:new Date(1e3*i)}function l(t){return null!=t&&(0,r.$P)(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function u(t){return null==t||""===t?null:new Date(t)}function c(t){return null==t||""===t?new Date().valueOf():t}function d(t){return(new Date().valueOf()-t.valueOf())/1e3}function h(t){return(t.valueOf()-new Date().valueOf())/1e3}},96078:(t,i,n)=>{"use strict";n.d(i,{oP:()=>S,_7:()=>_,IA:()=>E,we:()=>T,fH:()=>A,Qp:()=>w,wg:()=>y,zP:()=>Q,BX:()=>D,tv:()=>Z,gE:()=>B,iU:()=>R,un:()=>N,Wc:()=>M,wD:()=>j,GM:()=>L,g$:()=>H,IU:()=>U,el:()=>et,Ym:()=>z,M5:()=>G,h9:()=>F,mp:()=>$,F3:()=>J,iw:()=>X,BZ:()=>ee,eM:()=>Y});var r=n(56905),s=n(31064),a=n(51144),o=n(32037);let l=["hs","is","al","sk"],u=async(t,i)=>(await (0,o.d)({url:"".concat("/api/propensity/v2/").concat(t,"/").concat(encodeURIComponent(i)),requestOptions:{method:"GET",headers:{Accept:"application/json"}},maxRetries:2})).decile;var c=n(71152),d=n(464),h=n(91421),p=n(78101),f=n(99373),m=n(70158),g=n(13811),b=n(50559),v=n(43935);let y=250,w=.3,A=3e4,S="ce-user-account-id-encoded",_="ce-log-user-profile-id",E="ce-user-profile-id",k="pe-user-profile-id",x="pe-test-group-data",I="pe-propensity-decile",O="pe-propensity-decile-owner",C="pe-visit-id",T=33696e3,P="pe-analytics-clicked-teaser",N=()=>{let t=p.s.getItem(k,T);if(!t){let t=(0,g.l)();return p.s.setItem(k,t,!0),t}return t},j=()=>{var t;return null!=(t=p.s.getItem(x,T))?t:void 0},R=()=>{let t=p.s.getJSON("sa-ecid");return(null==t?void 0:t.data)?t.data:void 0},D=t=>{t?p.s.setItem(x,t,!0):p.s.removeItem(x)},M=()=>{if(!(0,c.Bd)())return;let t=h.c.getItem(I,3600);if(null!==t){let i=Number.parseInt(t,10);return Number.isNaN(i)?void 0:i}},U=async(t,i)=>{if(!l.includes(t))return;let n=p.s.getItem(O);null!==n&&n!==i&&(h.c.removeItem(I),p.s.removeItem(O));let r=M();if(void 0!==r)return r;try{let n=await u(t,i);return void 0!==n&&(h.c.setItem(I,n.toString(),(0,f._g)()),p.s.setItem(O,i,!1)),n}catch(t){console.error("Failed to fetch propensity decile from API",String(t));return}},B=()=>{let t=(0,m.xy)();if(!t&&(0,d.P0)()){let t="cen-"+(0,g.l)();return(0,m.IV)(!1,t),t}return t},z=t=>t.authenticationStatus===a.J.Authenticated&&t.accountIdEncoded?{profileId:t.accountIdEncoded,ceId:(0,m.C7)()}:{profileId:N()},L=t=>{if(t.authenticationStatus===a.J.Authenticated&&t.hashedAccountId)return t.hashedAccountId},F=()=>{let t=p.s.getItem(C,1800);if(!t){let t=(0,g.l)();return p.s.setItem(C,t,!0),t}return t},$=(t,i,n,r)=>W(n,t,i)||q(i)||V(n,t,i,r),q=t=>t===s.H.free||t===s.H.metered,V=(t,i,n,r)=>n===s.H.dynamicPaywall&&(!1===r||W(t,i,s.H.paid)),W=(t,i,n)=>i.authenticationStatus===a.J.Authenticated&&i.articlePermissions[t].includes(n),J=t=>t.authenticationStatus===a.J.Authenticated&&t.subscriptionDetail
1s.isSubscriber,G=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.innerWidth;return t<567?"XS":t<768?"S":t<980?"M":t<1207?"L":"XL"},H=()=>{var t;let i=p.s.getJSON("Sanoma_Glimr");if(null==i||null==(t=i.data)?void 0:t.adkv){let t=t=>{var n,r,s;return(null==(s=i.data)||null==(r=s.adkv)||null==(n=r[t])?void 0:n.length)?i.data.adkv[t][0]:void 0};return{county:t("kvg102"),city:t("kvg103")}}return{}},K=()=>{var t;return null!=(t=p.s.getJSON(P))?t:[]},Z=t=>{let i=K(),n=i.find(i=>i.assetId===t);return n&&p.s.setJSON(P,i.filter(t=>t!==n)),n},X=(t,i,n)=>{let{assetId:r,type:s,position:a,positionType:o,positionInGroup:l,peResponseID:u,headlineTest:c,imageTest:d}=t;if(!r)return;let h=K(),m=(0,f._g)(),g={assetId:r,source:et(i,n),timestamp:m,type:s,position:a,positionType:o,positionInGroup:l,peResponseID:u,headlineTestID:null==c?void 0:c.testID,headlineVariantID:null==c?void 0:c.variantID,imageTestID:null==d?void 0:d.testID,imageVariantID:null==d?void 0:d.variantID};h.push(g);let b=h.slice(-10);p.s.setJSON(P,b)},Y=t=>{if(t["html.personalizationengine.frontpage.enabled"]&&(0,c.Bd)()){let t=(0,b.h)();return"boolean"==typeof t?t:!!(0,v.U4)(v.D7)}return!1},Q=(t,i,n,r,s)=>{var a,o;let l=(null==(a=t.links)?void 0:a.length)?1:void 0,u=null==(o=t.links)?void 0:o.map((t,a)=>({...t,peAnalyticsPosition:i,peAnalyticsPositionType:n,peAnalyticsPositionInGroup:a+2,peAnalyticsPersonalized:r,peResponseID:s}));return{...t,links:u,peAnalyticsPosition:i,peAnalyticsPositionType:n,peAnalyticsPositionInGroup:l,peAnalyticsPersonalized:r,peResponseID:s}},ee=(t,i)=>t||i;function et(t,i){return"/"===t.nodeUrl||t.nodeUrl.startsWith("/etusivu")?i?r.k.PeFrontpage:r.k.ManualFrontpage:r.k.Other}},97843:(t,i,n)=>{"use strict";n.d(i,{l:()=>a});var r=n(27964),s=n(14232);let a=(t,i)=>{let n,a,o=(0,r.c)(4);o[0]!==i||o[1]!==t?(n=()=>(window.addEventListener(t,i),()=>{window.removeEventListener(t,i)}),a=[i,t],o[0]=i,o[1]=t,o[2]=n,o[3]=a):(n=o[2],a=o[3]),(0,s.useEffect)(n,a)}},98203:(t,i,n)=>{"use strict";n.d(i,{j:()=>l});var r=n(64357),s=n(4597),a=n(34063),o=n(78978);function l(t){var i;if(!r.Ay.rr())return;let n=s.A.o();if(n.zt()){let i=function(){if(!r.Ay.rr())return;let t={},i=r.Ay.l();if(!1===(null==i?void 0:i.Ot())&&a.A.error(o.L.aa),!(null==i?void 0:i.Ot()))return t;let n=s.A.o().k();for(let i in n)t[i]=function(t,i){let n=t[i];if(!n)return null;let r=n.ts,s=new Date().valueOf();return -1!==r&&1e3*r<s?(a.A.info(`Banner with ID: ${n.id} and placement ID: ${i} has expired.`),null):n}(n,i);return t}();i&&"function"==typeof t&&t(i)}let l=n.Kt(t);if(!n.Et()){let t=null==(i=r.Ay.nn())?void 0:i.rn(()=>{let t=n.jt();t&&t.length>0&&n.O(t)});t&&n.Lt(t)}return l}},98465:(t,i,n)=>{"use strict";n.d(i,{C:()=>r});let r=(t,i)=>(t=Math.ceil(t),Math.floor(Math.random()*((i=Math.floor(i))-t+1))+t)},99142:(t,i,n)=>{"use strict";var r,s,a,o;let l,u,c,d,h;function p(t,i){return"bigint"==typeof i?i.toString():i}n.d(i,{YOg:()=>eR,zMY:()=>eT,MfU:()=>eH,gMt:()=>eL,euz:()=>e$,chJ:()=>eN,aig:()=>eO,Ikc:()=>eM,lqM:()=>eJ,FsL:()=>eZ,YjP:()=>ex,pdi:()=>eV,KCZ:()=>eB});class f{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return void 0!==t&&(this._value=t(),this._getter=void 0),this._value}}function m(t){let i=+!!t.startsWith("^"),n=t.endsWith("$")?t.length-1:t.length;return t.slice(i,n)}function g(t,i,n){Object.defineProperty(t,i,{value:n,writable:!0,enumerable:!0,configurable:!0})}let b="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function v(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function y(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(t){if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function A(t,i=0){if(!0===t.aborted)return!0;for(let n=i;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function S(t,i){return i.map(i=>(i.path??(i.path=[]),i.path.unshift(t),i))}function _(t){return"string"==typeof t?t:t?.message}function E(t,i,n){var r;for(let s=i;s<t.length;s++)(r=t[s]).schema??(r.schema=n)}function k(t,i,n){let r=t.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?t.schema??(t.schema=t.inst):t.schema=t.inst);let s=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,a=t.message?t.message:_(t.inst?._zod.def?.error?.(t))??_(s?.(t))??_(i?.error?.(t))??_(n.customError?.(t))??_(n.localeError?.(t))??"Invalid input",o={};for(let i of Object.keys(t))"inst"!==i&&"schema"!==i&&"continue"!==i&&"input"!==i&&"__proto__"!==i&&(o[i]=t[i]);return o.path??(o.path=[]),o.message=a,i?.reportInput&&(o.input=t.input),o}function x(t,i,n,r=!0){return Object.defineProperty(t,i,{configurable:!0,writable:!0,enumerable:r,value:n}),n}let I=!1,O={configurable:!0,get(){I=!0}};function C(t,i,n){let r=Object.getPrototypeOf(t._zod);if(i in r&&l!==t._zod){l=void 0;return}l=t._zod,Object.defineProperty(r,i,{configurable:!0,get(){Object.defineProperty(this,i,O);let t=I;I=!1;try{let r=n(this);return I?delete this[i]:Object.defineProperty(this,i,{configurable:!0,writable:!0,value:r}),I=I||t,r}catch(n){throw delete this[i],I=I||t,n}},set(t){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:t})}})}let T={value:void 0,enumerable:!1},P="captureStackTrace"in Error?Error:null;function N(t,i,n,r){function s(t){this.def=t,this.constr=c,this.traits=new Set}s.prototype={};let a=n&&new WeakSet;function o(r,o){if(r._zod){if(r._zod.traits.has(t))return}else{T.value=new s(o);try{Object.defineProperty(r,"_zod",T)}finally{T.value=void 0}}if(r._zod.traits.add(t),i(r,o),a){let t=Object.getPrototypeOf(r),i=r._zod.constr.prototype,s=t;
1for(;s&&s!==i;)s=Object.getPrototypeOf(s);let o=s??t;if(!a.has(o)){a.add(o);for(let t in n){let i=Object.getOwnPropertyDescriptor(n,t);i.get?Object.defineProperty(o,t,{...i,enumerable:!1}):function(t,i,n){Object.defineProperty(t,i,{configurable:!0,get(){return this==null?n:x(this,i,n.bind(this))},set(t){x(this,i,t)}})}(o,t,i.value)}}}let l=c.prototype;for(let t in l)Object.prototype.hasOwnProperty.call(l,t)&&(t in r||(r[t]=l[t].bind(r)))}let l=r?.Parent??Object;class u extends l{}function c(t){let i=r?.Parent?function(t){let i=P;if(i){let n=i.stackTraceLimit;if("number"==typeof n){try{i.stackTraceLimit=0}catch{return P=null,new t}try{return new t}finally{i.stackTraceLimit=n}}}return new t}(u):this;o(i,t);let n=i._zod.deferred;if(n){for(let t of n)t();i._zod.deferred=void 0}let s=globalThis.__zod_globalConfig?.postProcessor;return s&&s(i),i}return Object.defineProperty(u,"name",{value:t}),Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:i=>!!r?.Parent&&i instanceof r.Parent||i?._zod?.traits?.has(t)}),Object.defineProperty(c,"name",{value:t}),c}class j extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class R extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(r=globalThis).__zod_globalConfig??(r.__zod_globalConfig={});let D=globalThis.__zod_globalConfig;function M(t){return t&&Object.assign(D,t),D}let U=/^[\s\S]{0,}$/,B=/^-?\d+(?:\.\d+)?$/,z=/^(?:true|false)$/i,L=/^null$/i,F={major:4,minor:6,patch:5},$=N("$ZodType",(t,i)=>{var n;t??(t={}),t._zod.def=i,t._zod.bag=t._zod.bag||{},t._zod.version=F;let r=t._zod.def.checks,s=t._zod.traits.has("$ZodCheck")?[t,...r??[]]:r?.length?[...r]:[];for(let i of s)for(let n of i._zod.onattach)n(t);if(0===s.length)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let i=(i,n,r)=>{let s;if(i.memo)return i;let a=A(i);for(let o of n){if(o._zod.def.when){if(function(t,i=0){if(!0===t.aborted)return!0;for(let n=i;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}(i)||!o._zod.def.when(i))continue}else if(a)continue;let n=i.issues.length,l=o._zod.check(i);if(l instanceof Promise&&r?.async===!1)throw new j;if(s||l instanceof Promise)s=(s??Promise.resolve()).then(async()=>{await l,i.issues.length!==n&&(E(i.issues,n,t),a||(a=A(i,n)))});else{if(i.issues.length===n)continue;E(i.issues,n,t),a||(a=A(i,n))}}return s?s.then(()=>i):i},n=(n,r,a)=>{if(A(n))return n.aborted=!0,n;let o=i(r,s,a);if(o instanceof Promise){if(!1===a.async)throw new j;return o.then(i=>t._zod.parse(i,a))}return t._zod.parse(o,a)};t._zod.run=(r,a)=>{if(a.skipChecks)return t._zod.parse(r,a);if("backward"===a.direction){let i=t._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return i instanceof Promise?i.then(t=>n(t,r,a)):n(i,r,a)}let o=t._zod.parse(r,a);if(o instanceof Promise){if(!1===a.async)throw new j;return o.then(t=>i(t,s,a))}return i(o,s,a)}}},{get"~standard"(){var q;return x(this,"~standard",(q=this,{validate:t=>{let i={async:!1};try{let n=q._zod.run({value:t,issues:[]},i);if(!(n instanceof Promise))return V(n,i)}catch(t){}return W(q,t)},vendor:"zod",version:1}),!1)},set"~standard"(value){x(this,"~standard",value)}}),V=(t,i)=>t.issues.length?{issues:t.issues.map(t=>k(t,i,M()))}:{value:t.value};async function W(t,i){let n={async:!0};return V(await t._zod.run({value:i,issues:[]},n),n)}let J=N("$ZodString",(t,i)=>{$.init(t,i),t._zod.pattern=i.pattern??U,t._zod.parse=(n,r)=>{if(i.coerce)try{n.value=String(n.value)}catch(t){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),G=N("$ZodNumber",(t,i)=>{$.init(t,i),t._zod.pattern=B,t._zod.parse=(n,r)=>{if(i.coerce)try{n.value=Number(n.value)}catch(t){}let s=n.value;if("number"==typeof s&&!Number.isNaN(s)&&Number.isFinite(s))return n;let a="number"==typeof s?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:String(s):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:t,...a?{received:a}:{}}),n}}),H=N("$ZodBoolean",(t,i)=>{$.init(t,i),t._zod.pattern=z,t._zod.parse=(n,r)=>{if(i.coerce)try{n.value=!!n.value}catch(t){}let s=n.value;return"boolean"==typeof s||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:t}),n}}),K=N("$ZodNull",(t,i)=>{$.init(t,i),t._zod.pattern=L,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let r=i.value;return null===r||i.issues.push({expected:"null",code:"invalid_type",input:r,inst:t}),i}});function Z(t,i,n){t.issues.length&&i.issues.push(...S(n,t.issues)),i.value[n]=t.value}let X=N("$ZodArray",(t,i)=>{$.init(t,i);let n=D.memoizer;n?.attach(t),t._zod.parse=(r,s)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),r;r.value=n?n.alloc(t,r,Array(a.length),s):Array(a.length);
1let o=[],l=s?.abortEarly;for(let t=0;t<a.length;t++){let n=a[t],u=i.element._zod.run({value:n,issues:[]},s);if(u instanceof Promise)o.push(u.then(i=>Z(i,r,t)));else if(Z(u,r,t),l&&0!==u.issues.length&&A(u))break}return o.length?Promise.all(o).then(()=>r):r}});function Y(t,i,n,r,s,a){let o=n in r,l="optional"===a;if(o||!l||"optional"!==s){if(t.issues.length){if(void 0!==s&&l&&!o)return;i.issues.push(...S(n,t.issues))}if(!o&&void 0===s){t.issues.length||i.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===t.value?(o||"defaulted"===s&&!l)&&(i.value[n]=void 0):i.value[n]=t.value}}let Q=[],ee=N("$ZodObject",(t,i)=>{let n;$.init(t,i);let r=Object.getOwnPropertyDescriptor(i,"shape"),s=r?.get?r.get.raw:i.shape??{};if(s){let t=()=>{let n={...s};return Object.defineProperty(i,"shape",{value:n}),t.raw=n,n};t.raw=s,Object.defineProperty(i,"shape",{get:t})}let a=new f(()=>(function(t){var i;let n=Object.keys(t.shape),r=Object.getOwnPropertySymbols(t.shape),s=r.length?r:Q,a=s.length?[...n,...s]:n;for(let i of a)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(i)}": expected a Zod schema`);let o=Object.keys(i=t.shape).filter(t=>void 0!==i[t]._zod.optin&&"optional"===i[t]._zod.optout);return{...t,allKeys:a,symbolKeys:s,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(o)}})(i));C(t,"propValues",t=>{let i=t.def.shape,n={};for(let t in i){let r=i[t]._zod;if(r.values){for(let i of(Object.prototype.hasOwnProperty.call(n,t)||g(n,t,new Set),r.values))n[t].add(i);void 0!==r.optin&&n[t].add(void 0)}}return n});let o=i.catchall,l=D.memoizer;l?.attach(t),t._zod.parse=(i,r)=>{n??(n=a.value);let s=i.value;if(!v(s))return i.issues.push({expected:"object",code:"invalid_type",input:s,inst:t}),i;i.value=l?l.alloc(t,i,{},r):{};let u=[],c=n.shape,d=r?.abortEarly,h=i.issues.length;for(let t of n.allKeys){if(d&&i.issues.length!==h){if(A(i,h))break;h=i.issues.length}if("__proto__"===t)continue;let n=c[t],a=n._zod.optin,o=n._zod.optout,l=n._zod.run({value:s[t],issues:[]},r);l instanceof Promise?u.push(l.then(n=>Y(n,i,t,s,a,o))):Y(l,i,t,s,a,o)}return o?function(t,i,n,r,s,a,o){let l=[],u=s.keySet,c=s.catchall._zod,d=c.def.type,h=c.optin,p=c.optout,f=0;for(let s in i){if(o&&n.issues.length!==f){if(A(n,f))break;f=n.issues.length}if(u.has(s))continue;if("__proto__"===s){"never"===d&&l.push(s);continue}if("never"===d){l.push(s);continue}let a=c.run({value:i[s],issues:[]},r);a instanceof Promise?t.push(a.then(t=>Y(t,n,s,i,h,p))):Y(a,n,s,i,h,p)}return(l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:i,inst:a,continue:!0}),t.length)?Promise.all(t).then(()=>n):n}(u,s,i,r,a.value,t,!0===d):u.length?Promise.all(u).then(()=>i):i}});function et(t,i,n,r){for(let n of t)if(0===n.issues.length)return i.value=n.value,i;let s=t.filter(t=>!A(t));return 1===s.length?(i.value=s[0].value,s[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:n,errors:t.map(t=>t.issues.map(t=>k(t,r,M())))}),i)}let ei=N("$ZodUnion",(t,i)=>{$.init(t,i),C(t,"optin",t=>t.def.options.some(t=>"defaulted"===t._zod.optin)?"defaulted":t.def.options.some(t=>void 0!==t._zod.optin)?"optional":void 0),C(t,"optout",t=>t.def.options.some(t=>"optional"===t._zod.optout)?"optional":void 0),C(t,"values",t=>{if(t.def.options.every(t=>t._zod.values))return new Set(t.def.options.flatMap(t=>Array.from(t._zod.values)))}),C(t,"pattern",t=>{if(t.def.options.every(t=>t._zod.pattern)){let i=t.def.options.map(t=>t._zod.pattern);return RegExp(`^(${i.map(t=>m(t.source)).join("|")})$`)}});let n=1===i.options.length?i.options[0]._zod.run:null;t._zod.parse=(r,s)=>{if(n)return n(r,s);let a=!1,o=[];for(let t of i.options){let i=t._zod.run({value:r.value,issues:[]},s);if(i instanceof Promise)o.push(i),a=!0;else{if(0===i.issues.length)return i;o.push(i)}}return a?Promise.all(o).then(i=>et(i,r,t,s)):et(o,r,t,s)}}),en=N("$ZodDiscriminatedUnion",(t,i)=>{i.inclusive=!1,ei.init(t,i);let n=t._zod.parse;C(t,"propValues",t=>{let i={},n=0;for(let r of t.def.options){let s=r._zod.propValues;if(!s||0===Object.keys(s).length)throw Error(`Invalid discriminated union option at index "${t.def.options.indexOf(r)}"`);for(let[r,a]of(s[t.def.discriminator]?.has(void 0)&&n++,Object.entries(s)))for(let t of(Object.prototype.hasOwnProperty.call(i,r)||g(i,r,new Set),a))i[r].add(t)}return!t.def.unionFallback&&n>1&&i[t.def.discriminator]?.delete(void 0),i}),i.options.forEach((t,n)=>{let r,s=(r=Object.getOwnPropertyDescriptor(t._zod.def,"shape"),r?.get?r.get.raw:r?.value);if(s&&!Object.prototype.hasOwnProperty.call(s,i.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=new f(()=>(function(t){let i=new Map;for(let n of t.options){let r=n._zod.propValues?.[t.discriminator];if(!r||0===r.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of r)if(i.has(t)){if(void 0!==t)throw Error(`Duplicate discriminator value "${String(t)}"`);i.set(t,null)}else i.set(t,n)}return i})(i));t._zod.parse=(s,a)=>{let o=s.value;if(!v(o))return s.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),s;let l=o?.[i.discriminator],u=r.value.get(l);return u&&(void 0!==l||"backward"!==a.direction)?u._zod.run(s,a):i.unionFallback||"backward"===a.direction?n(s,a):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,options:Array.from(r.value.keys()).filter(t=>null!==r.value.get(t)),input:o,path:[i.discriminator],inst:t}),s)}}),er=N("$ZodLiteral",(t,i)=>{$.init(t,i);let n=new Set(i.values);t._zod.values=n,C(t,"pattern",t=>{let i=t.def.values;return new RegExp(i.length?`^(${i.map(t=>"string"==typeof t?y(t):t?y(t.toString()):String(t)).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(r,s)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:i.values,input:a,inst:t}),r}}),es=N("$ZodTransform",(t,i)=>{$.init(t,i),t._zod.optin="optional",D.memoizer?.guard(t),t._zod.parse=(n,r)=>{if("backward"===r.direction)throw new R(t.constructor.name);
1let s=i.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(t=>(n.value=t,n));if(s instanceof Promise)throw new j;return n.value=s,n}});function ea(t,i){return t.value=i.issues.length?void 0:i.value,t}let eo=N("$ZodOptional",(t,i)=>{$.init(t,i),C(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),t._zod.optout="optional",C(t,"values",t=>{let i=t.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),C(t,"pattern",t=>{let i=t.def.innerType._zod.pattern;return i?RegExp(`^(${m(i.source)})?$`):void 0}),t._zod.parse=(t,n)=>{if(void 0===t.value){if("defaulted"!==i.innerType._zod.optin)return t;let r=i.innerType._zod.run({value:t.value,issues:[]},n);return r instanceof Promise?r.then(i=>ea(t,i)):ea(t,r)}return i.innerType._zod.run(t,n)}});function el(t,i,n,r){return i.issues.length?t.value=n.catchValue({...i,value:t.value,error:{issues:i.issues.map(t=>k(t,r,M()))},input:t.value}):(t.value=i.value,i.memo&&(t.memo=!0)),t}let eu=N("$ZodCatch",(t,i)=>{$.init(t,i),C(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),C(t,"optout",t=>t.def.innerType._zod.optout),C(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,n)=>{if("backward"===n.direction)return i.innerType._zod.run(t,n);let r=i.innerType._zod.run({value:t.value,issues:[]},n);return r instanceof Promise?r.then(r=>el(t,r,i,n)):el(t,r,i,n)}}),ec=N("$ZodPipe",(t,i)=>{$.init(t,i),C(t,"values",t=>t.def.in._zod.values),C(t,"optin",t=>t.def.in._zod.optin),C(t,"optout",t=>t.def.out._zod.optout),C(t,"propValues",t=>t.def.in._zod.propValues),t._zod.parse=(t,n)=>{if("backward"===n.direction){let r=i.out._zod.run(t,n);return r instanceof Promise?r.then(t=>ed(t,i.in,n)):ed(r,i.in,n)}let r=i.in._zod.run(t,n);return r instanceof Promise?r.then(t=>ed(t,i.out,n)):ed(r,i.out,n)}});function ed(t,i,n){return t.issues.some(t=>"unrecognized_keys"!==t.code)?(t.aborted=!0,t):i._zod.run({value:t.value,issues:t.issues},n)}class eh{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){let n=i[0];return this._map.set(t,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let i=this._map.get(t);return i&&"object"==typeof i&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){let i=t._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ep(t){return t.checks&&(t.checks=[...t.checks]),t}(s=globalThis).__zod_globalRegistry??(s.__zod_globalRegistry=new eh);let ef={get:function(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,p,2)),t.message},set:function(t){this._zod.message=t},enumerable:!0,configurable:!0},em={value:void 0,enumerable:!1},eg=new WeakSet([Object.prototype,Error.prototype]),eb=(t,i)=>{t.name="$ZodError",em.value=i,Object.defineProperty(t,"issues",em),em.value=void 0,Object.defineProperty(t,"message",ef);let n=Object.getPrototypeOf(t);eg.has(n)||(eg.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let t=()=>this.message;return Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0}),t},set(t){Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0})}}))};N("$ZodError",eb);let ev=N("$ZodError",eb,void 0,{Parent:Error}),ey=(a=ev,u=(t,i,n,r)=>{let s=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:i,issues:[]},s);if(o instanceof Promise)throw new j;if(o.issues.length){let t=new(r?.Err??a)(o.issues.map(t=>k(t,s,M())));throw b(t,r?.callee??u),t}return o.value}),ew=(o=ev,c=async(t,i,n,r)=>{let s=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(r?.Err??o)(a.issues.map(t=>k(t,s,M())));throw b(t,r?.callee??c),t}return a.value}),eA=(d=ev,(t,i,n)=>{let r=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new j;return s.issues.length?eS(d,s.issues,r):{success:!0,data:s.value}});function eS(t,i,n){let r;return{success:!1,get error(){return r||(r=new t(i.map(t=>k(t,n,M()))),i=void 0,n=void 0),r},set error(e){r=e,i=void 0,n=void 0}}}let e_=(h=ev,async(t,i,n)=>{let r=n?{...n,async:!0}:{async:!0},s=t._zod.run({value:i,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?eS(h,s.issues,r):{success:!0,data:s.value}}),eE=N("ZodMiniType",(t,i)=>{if(!t._zod)throw Error("Uninitialized schema in ZodMiniType.");$.init(t,i),t.def=i,t.type=i.type},{get with(){return this.check},set with(value){x(this,"with",value)},parse(t,i){return ey(this,t,i,{callee:this.parse})},parseAsync(t,i){return ew(this,t,i,{callee:this.parseAsync})},safeParse(t,i){return eA(this,t,i)},safeParseAsync(t,i){return e_(this,t,i)},check(...t){let i=this.def;return this.clone({...i,checks:[...i.checks??[],...t.map(t=>"function"==typeof t?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]},{parent:!0})},clone(t,i){let n;return n=new this._zod.constr(t??this._zod.def),(!t||i?.parent)&&(n._zod.parent=this),n},brand(){return this},register(t,i){return t.add(this,i),this},apply(t,...i){return 0===i.length?t(this):t(this,...i)}}),ek=N("ZodMiniString",(t,i)=>{J.init(t,i),eE.init(t,i)});function ex(t){return new ek(ep({type:"string",...w(t)}))}let eI=N("ZodMiniNumber",(t,i)=>{G.init(t,i),eE.init(t,i)});function eO(t){return new eI(ep({type:"number",checks:[],...w(t)}))}let eC=N("ZodMiniBoolean",(t,i)=>{H.init(t,i),eE.init(t,i)});function eT(t){return new eC({type:"boolean",...w(t)})}let eP=N("ZodMiniNull",(t,i)=>{K.init(t,i),eE.init(t,i)});function eN(t){return new eP({type:"null",...w(t)})}let ej=N("ZodMiniArray",(t,i)=>{X.init(t,i),eE.init(t,i)});function eR(t,i){return new ej({type:"array",element:t,...w(i)})}let eD=N("ZodMiniObject",(t,i)=>{var n;let r,s;ee.init(t,i),eE.init(t,i),n="shape",(s=n in(r=Object.getPrototypeOf(t))?void 0:r)&&Object.defineProperty(s,n,{configurable:!0,get(){let t={configurable:!0,writable:!0,enumerable:!1,value:void 0};return Object.defineProperty(this,n,t),t.value=(t=>
1t._zod.def.shape)(this),Object.defineProperty(this,n,t),t.value},set(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:!1,value:t})}})});function eM(t,i){return new eD({type:"object",shape:t??{},...w(i)})}let eU=N("ZodMiniUnion",(t,i)=>{ei.init(t,i),eE.init(t,i)});function eB(t,i){return new eU({type:"union",options:t,...w(i)})}let ez=N("ZodMiniDiscriminatedUnion",(t,i)=>{en.init(t,i),eE.init(t,i)});function eL(t,i,n){return new ez({type:"union",options:i,discriminator:t,...w(n)})}let eF=N("ZodMiniLiteral",(t,i)=>{er.init(t,i),eE.init(t,i)});function e$(t,i){return new eF({type:"literal",values:Array.isArray(t)?t:[t],...w(i)})}let eq=N("ZodMiniTransform",(t,i)=>{es.init(t,i),eE.init(t,i)});function eV(t){return new eq({type:"transform",transform:t})}let eW=N("ZodMiniOptional",(t,i)=>{eo.init(t,i),eE.init(t,i)});function eJ(t){return new eW({type:"optional",innerType:t})}let eG=N("ZodMiniCatch",(t,i)=>{eu.init(t,i),eE.init(t,i)});function eH(t,i){let n;return new eG({type:"catch",innerType:t,catchValue:"function"==typeof i?i:((n=()=>i)["~constantCatch"]=!0,n)})}let eK=N("ZodMiniPipe",(t,i)=>{ec.init(t,i),eE.init(t,i)});function eZ(t,i){return new eK({type:"pipe",in:t,out:i})}},99373:(t,i,n)=>{"use strict";n.d(i,{Ic:()=>l,_g:()=>r,a3:()=>s,ps:()=>a,qe:()=>o});let r=()=>Math.floor(Date.now()/1e3),s=t=>{let i=Math.ceil(null!=t?t:0);if(Number.isNaN(i)||i<0)return"0:00";let n=Math.floor(i/3600),r=Math.floor(i%3600/60),s=String(i%60).padStart(2,"0");return n>0?"".concat(n,":").concat(String(r).padStart(2,"0"),":").concat(s):"".concat(r,":").concat(s)},a=()=>Date.now()+864e5,o=t=>{var i;let n=Math.ceil(null!=t?t:0);if(Number.isNaN(n)||n<=0)return"0 sekuntia";let r=Math.floor(n/3600),s=Math.floor(n%3600/60),a=n%60,o=[];return(r>0&&o.push("".concat(r," ").concat(1===r?"tunti":"tuntia")),s>0&&o.push("".concat(s," ").concat(1===s?"minuutti":"minuuttia")),a>0&&o.push("".concat(a," ").concat(1===a?"sekunti":"sekuntia")),1===o.length)?null!=(i=o[0])?i:"":"".concat(o.slice(0,-1).join(", ")," ja ").concat(o.at(-1))},l=t=>{let i=Math.ceil(Number(t));if(isNaN(i))return"0 s";if(i<60)return"".concat(i," s");if(i<3600)return"".concat(Math.floor(i/60)," min");let n=Math.floor(i/3600),r=Math.floor(i%3600/60);return 0===r?"".concat(n," t"):"".concat(n," t ").concat(r," min")}},99577:(t,i,n)=>{"use strict";n.d(i,{d4:()=>s,zo:()=>o});var r=n(74978);let s=t=>(0,r.Mu)(t)&&"string"==typeof t.imageUrl,a=["urgent","announcement","commercial","service_message"],o=(t,i,n)=>{let r=i.filter(l(t)),s=r.reduce((t,i)=>i.viewed?t:t+1,0);n({messages:r,unviewedCount:s})},l=t=>i=>(0,r.Mu)(i)&&i.extras.product===t&&"string"==typeof i.extras.category&&u(i.extras.category),u=t=>a.includes(t)}},t=>{var i=i=>t(t.s=i);t.O(0,[6593,8792],()=>(i(92),i(74))),_N_E=t.O()}]);

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.