PageSourceSearch

https://www.internationaltraveller.com/_next/static/chunks/6023.7b40308022dc0dbc.js

js internationaltraveller.com collected 2026-10-02 03:29:57 UTC 229,515 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6023],{4624:(e,t,i)=>{i.d(t,{w:()=>s});let s={CustomEvent:"ce",Pr:"p",Ic:"pc",Jc:"ca",Hu:"i",ju:"ie",Ut:"cci",Wt:"ccic",Ht:"ccc",Mt:"ccd",sm:"ss",Jl:"se",Jr:"si",Kr:"sc",Lr:"sbc",Kc:"sfe",Mo:"iec",Fc:"lr",Rc:"uae",Nc:"lcaa",xc:"lcar",vu:"inc",Nu:"add",yu:"rem",fu:"set",gu:"ncam",Oc:"sgu",Ir:"ffi",ro:"bi",ot:"bc"}},6016:(e,t,i)=>{i.d(t,{CF:()=>o,K:()=>h,Kz:()=>u,P4:()=>l,RJ:()=>p,X:()=>r,e0:()=>n,jp:()=>c,sr:()=>d});var s=i(84456),a=i(85518);let n={Wc:null,Do:function(e,t=!1,i=!1,s=!1){if(null==e)return!1;t=t||!1,i=i||!1;let a=e.getBoundingClientRect();return null!=a&&(a.top>=0&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(a.left>=0||!s)&&(a.bottom>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!s)}},r={xo:"up",Co:"down",Zt:"left",ae:"right"};function o(){if(null==n.Wc){n.Wc=!1;try{let e=Object.defineProperty({},"passive",{get:()=>{n.Wc=!0}});window.addEventListener("testPassive",()=>{},e),window.removeEventListener("testPassive",()=>{},e)}catch(e){s.A.error((0,a.u)(e))}}return n.Wc}function l(e,t,i=()=>{}){e.addEventListener(t,i,!!o()&&{passive:!0})}function u(e){return n.Do(e,!0,!1,!1)}function h(e){return n.Do(e,!1,!0,!1)}function c(e){if(e.onclick){let t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),e.onclick.apply(e,[t])}}function d(e,t,i){let s=null,a=null;l(e,"touchstart",e=>{s=e.touches[0].clientX,a=e.touches[0].clientY}),l(e,"touchmove",n=>{if(null==s||null==a)return;let o=s-n.touches[0].clientX,l=a-n.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&t===r.Zt||o<0&&t===r.ae)&&i(n),s=null,a=null):Math.abs(l)>=25&&((l>0&&t===r.xo&&e.scrollTop===e.scrollHeight-e.offsetHeight||l<0&&t===r.Co&&0===e.scrollTop)&&i(n),s=null,a=null)})}function p(e,t,i){let s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg");a.setAttribute("viewBox",e),a.setAttribute("xmlns",s);let n=document.createElementNS(s,"path");return n.setAttribute("d",t),null!=i&&n.setAttribute("fill",i),a.appendChild(n),a}},6646:(e,t,i)=>{i.r(t),i.d(t,{requestImmediateDataFlush:()=>a});var s=i(53913);function a(e){if(!s.Ay.rr())return;let t=s.Ay.nn();t&&t.requestImmediateDataFlush(e)}},7036:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(38113),a=i(81023);class n{constructor(e,t,i,r,o,l,u){this.text=e,this.backgroundColor=t,this.textColor=i,this.borderColor=r,this.clickAction=o,this.uri=l,this.id=u,this.text=e||"",this.backgroundColor=t||s.A.th.sh,this.textColor=i||s.A.th.ih,this.borderColor=r||this.backgroundColor,this.clickAction=o||s.A.ClickAction.NONE,this.uri=l,null==u&&(u=n.Vr),this.id=u,this.So=!1,this.ti=new a.A}subscribeToClickedEvent(e){return this.ti.wt(e)}removeSubscription(e){this.ti.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}$t(){return!this.So&&(this.So=!0,this.ti.L(),!0)}static fromJson(e){return new n(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}n.Vr=-1},8723:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o,refreshFeatureFlags:()=>r});var s=i(53913),a=i(11934);function n(e,t,i=!1){if(s.Ay.rr())return a.A.o().refreshFeatureFlags(e,t,i)}function r(e,t){n(e,t)}let o=n},9542:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(27584);class a{constructor(e,t,i,s,a){this.endpoint=e,this._o=t,this.publicKey=i,this.hc=s,this.xl=a,this.endpoint=e||null,this._o=t||null,this.publicKey=i||null,this.hc=s||null,this.xl=a||null}dt(){return{e:this.endpoint,c:this._o,p:this.publicKey,u:this.hc,v:this.xl}}static Vo(e){return new a(e.e,(0,s.jU)(e.c),e.p,e.u,e.v)}}},11934:(e,t,i)=>{i.d(t,{A:()=>b});var s=i(53913),a=i(84456),n=i(31064),r=i(65455),o=i(81023),l=i(53362),u=i(40019),h=i(92428),c=i(25485);class d extends n.A{constructor(e,t,i,a){super(),this.h=e,this.B=t,this.j=i,this.C=a,this.je=[],this.ye=0,this.h=e,this.B=t,this.j=i,this.C=a,this.Ce=null,this.Re=new o.A,this.S=10,this.T=null,this.I=null,s.Ay.q(this.Re)}N(e){var t;if((null==(t=this.h)?void 0:t.Te())&&null!=e&&e.feature_flags){for(let t of(this.je=[],e.feature_flags)){let e=function(e){if(e[h.A.ui.rs]&&"boolean"==typeof e[h.A.ui.Fe])return new h.A(e[h.A.ui.rs],e[h.A.ui.Fe],e[h.A.ui.we],e[h.A.ui.xe]);a.A.info(`Unable to create feature flag from ${JSON.stringify(e,null,2)}`)}(t);e&&this.je.push(e)}this.ye=new Date().getTime(),this.De(),this.Re.L(this.je)}}Ie(){let e={};this.j&&(e=this.j.lt(r.d.ct.Se));let t={};for(let i in e){let s=function(e){if(e[h.A.ss.rs]&&"boolean"==typeof e[h.A.ss.Fe])return new h.A(e[h.A.ss.rs],e[h.A.ss.Fe],e[h.A.ss.we],e[h.A.ss.xe]);
1a.A.info(`Unable to deserialize feature flag from ${JSON.stringify(e,null,2)}`)}(e[i]);s&&(t[s.id]=s)}return t}qe(){var e;return(null==(e=this.j)?void 0:e.lt(r.d.ct.Ne))||{}}ze(e){this.j&&this.j.ft(r.d.ct.Ne,e)}St(e){return this.Re.wt(e)}refreshFeatureFlags(e,t,i=!1,s=!0){let a=()=>{"function"==typeof t&&t(),this.Re.L(this.je)};if(!this.Ue(i))return!this.Ce&&this.h&&(this.Ce=this.h.$e(()=>{this.refreshFeatureFlags(e,t)})),void a();let n=this.B;if(!n)return void a();s&&this.X();let r=n.$({},!0),o=n.A(r,c.A.H.ke),h=!1;n.J(r,(s=-1)=>{let n=this.B;if(!n)return void a();let d=new Date().valueOf();c.A.K(this.j,c.A.H.ke,d),-1!==s&&o.push(["X-Braze-Req-Tokens-Remaining",s.toString()]),u.A.O({url:`${n.V()}/feature_flags/sync`,headers:o,data:r,W:t=>{if(!n.Y(r,t,o))return h=!0,void a();n.Z(),this.N(t),h=!1,"function"==typeof e&&e()},error:e=>{n._(e,"retrieving feature flags"),h=!0,a()},tt:(s,a)=>{let r;if(h){let e=this.T;(null==e||e<1e3*this.S)&&(e=1e3*this.S),r=Math.min(3e5,(0,l.C)(1e3*this.S,3*e))}n.st(a,()=>{this.refreshFeatureFlags(e,t,i,!0)},c.A.H.ke,e=>this.it(e),()=>this.X(),r)}})},c.A.H.ke,t)}X(){null!=this.I&&(clearTimeout(this.I),this.I=null)}it(e){this.X(),this.I=e}Ue(e){if(!this.h)return!1;if(!e){let e=this.h.Be();if(null==e)return!1;let t=!1;if(!isNaN(e)){if(-1===e)return a.A.info("Feature flag refreshes not allowed"),!1;t=new Date().getTime()>=(this.ye||0)+1e3*e}if(!t)return a.A.info(`Feature flag refreshes were rate limited to ${e} seconds`),!1}return this.h.Te()}Me(){var e;return(null==(e=this.j)?void 0:e.lt(r.d.ct.Xe))||null}_e(){var e,t;null==(e=this.j)||e.ft(r.d.ct.Xe,null==(t=this.C)?void 0:t.bt())}Ae(){var e;let t=null==(e=this.C)?void 0:e.bt(),i=this.Me();return null==i||t===i}De(){if(!this.j)return;let e={};for(let t of this.je){let i=t.dt();e[t.id]=i}this.j.ft(r.d.ct.Se,e),this.j.ft(r.d.ct.Ee,this.ye),this._e()}changeUser(){this.X()}clearData(){this.X()}}let p={i:!1,provider:null,o:()=>(p.t(),p.provider||(p.provider=new d(s.Ay.l(),s.Ay.m(),s.Ay.p(),s.Ay.u(
1)),s.Ay.v(p.provider)),p.provider),t:()=>{p.i||(s.Ay.g(p),p.i=!0)},destroy:()=>{p.provider=null,p.i=!1}},b=p},12468:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t){this.database=e,this.vd=t,this.parent="undefined"==typeof window?self:window,this.database=e,this.vd=t}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var e;try{if(null==this.Dd())return!1;{let t=null==(e=this.Dd())?void 0:e.open("Braze IndexedDB Support Test");if(t&&(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close()),"undefined"!=typeof window){let e=window,t=e.chrome||e.browser||e.pd;if(t&&t.runtime&&t.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(e){return this.vd.info("Not using IndexedDB for storage due to following error: "+e),!1}}Bd(e,t){var i;let s=null==(i=this.Dd())?void 0:i.open(this.database.Sd,this.database.VERSION);if(null==s)return"function"==typeof t&&t(),!1;let a=this;return s.onupgradeneeded=e=>{var t;a.vd.info("Upgrading indexedDB "+a.database.Sd+" to v"+a.database.VERSION+"...");let i=null==(t=e.target)?void 0:t.result;for(let e in a.database.Fs)a.database.Fs.hasOwnProperty(e)&&!i.objectStoreNames.contains(a.database.Fs[e])&&i.createObjectStore(a.database.Fs[e])},s.onsuccess=i=>{var s;let n=null==(s=i.target)?void 0:s.result;n.onversionchange=()=>{n.close(),"function"==typeof t&&t(),a.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},e(n)},s.onerror=e=>{var i;return a.vd.info("Could not open indexedDB "+a.database.Sd+" v"+a.database.VERSION+": "+(null==(i=e.target)?void 0:i.errorCode)),"function"==typeof t&&t(),!0},!0}setItem(e,t,i,s,a){if(!this.isSupported())return"function"==typeof a&&a(),!1;let n=this;return this.Bd(r=>{if(!r.objectStoreNames.contains(e))return n.vd.error("Could not store object "+t+" in "+e+" on indexedDB "+n.database.Sd+" - "+e+" is not a valid objectStore"),"function"==typeof a&&a(),void r.close();let o=r.transaction([e],"readwrite");o.oncomplete=()=>r.close();let l=o.objectStore(e).put(i,t);l.onerror=()=>{n.vd.error("Could not store object "+t+" in "+e+" on indexedDB "+n.database.Sd),"function"==typeof a&&a()},l.onsuccess=()=>{"function"==typeof s&&s()}},a)}getItem(e,t,i){if(!this.isSupported())return!1;let s=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(e))return s.vd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+s.database.Sd+" - "+e+" is not a valid objectStore"),void a.close();let n=a.transaction([e],"readonly");n.oncomplete=()=>a.close();let r=n.objectStore(e).get(t);r.onerror=()=>{s.vd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+s.database.Sd)},r.onsuccess=e=>{var t;let s=null==(t=e.target)?void 0:t.result;null!=s&&i(s)}})}kr(e,t,i){if(!this.isSupported())return"function"==typeof i&&i(),!1;let s=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(e))return s.vd.error("Could not retrieve last record from "+e+" on indexedDB "+s.database.Sd+" - "+e+" is not a valid objectStore"),"function"==typeof i&&i(),void a.close();let n=a.transaction([e],"readonly");n.oncomplete=()=>a.close();let r=n.objectStore(e).openCursor(null,"prev");r.onerror=()=>{s.vd.error("Could not open cursor for "+e+" on indexedDB "+s.database.Sd),"function"==typeof i&&i()},r.onsuccess=e=>{var s;let a=null==(s=e.target)?void 0:s.result;null!=a&&null!=a.value&&null!=a.key?t(a.key,a.value):"function"==typeof i&&i()}},i)}be(e,t){if(!this.isSupported())return!1;let i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(e))return i.vd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.Sd+" - "+e+" is not a valid objectStore"),void s.close();let a=s.transaction([e],"readwrite");a.oncomplete=()=>s.close(),a.objectStore(e).delete(t).onerror=()=>{i.vd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.Sd)}})}Ds(e,t){if(!this.isSupported())return!1;let i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(e))return i.vd.error("Could not retrieve objects from "+e+" on indexedDB "+i.database.Sd+" - "+e+" is not a valid objectStore"),void s.close();let a=s.transaction([e],"readwrite");a.oncomplete=()=>s.close();let n=a.objectStore(e),r=n.openCursor(),o=[];r.onerror=()=>{o.length>0?(i.vd.info("Cursor closed midway through for "+e+" on indexedDB "+i.database.Sd),t(o)):i.vd.error("Could not open cursor for "+e+" on indexedDB "+i.database.Sd)},r.onsuccess=e=>{var i;let s=null==(i=e.target)?void 0:i.result;null!=s?(null!=s.value&&null!=s.key&&(n.delete(s.key).onsuccess=()=>{o.push(s.value)}),"function"==typeof s.continue&&s.continue()):o.length>0&&t(o)}})}clearData(){if(!this.isSupported())return!1;let e=[];for(let t in this.database.Fs)this.database.Fs.hasOwnProperty(t)&&this.database.Fs[t]!==this.database.Fs.le&&e.push(this.database.Fs[t]);let t=this;return this.Bd(function(i){let s=i.transaction(e,"readwrite");s.oncomplete=()=>i.close();for(let i=0;i<e.length;i++){let a=e[i];s.objectStore(a).clear().onerror=function(){t.vd.error("Could not clear "+this.source.name+" on indexedDB "+t.database.Sd)}}s.onerror=function(){t.vd.error("Could not clear object stores on indexedDB "+t.database.Sd)}})}}s.Us={Rs:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Fs:{Yi:"data",vr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",As:"cardUpdates",le:"optOut",zr:"pendingData",qh:"sdkAuthenticationSignature"},me:1}}},13910:(e,t,i)=>{i.r(t),i.d(t,{logCustomEvent:()=>c});var s=i(53913),a=i(59948),n=i(84456),r=i(4624),o=i(86984),l=i(72506),u=i(68711),h=i(72180);function c(e,t){if(!s.Ay.rr())return!1;if(null==e||e.length<=0)return n.A.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,u.Dz)(e,"log custom event","the event name"))return!1;let[i,c]=(0,u.fB)(t,h.aV,"eventProperties",`log custom event "${e}"`,"event");
1if(!i)return!1;let d=s.Ay.l();if(d&&d.ge(e))return n.A.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=a.A.rt(r.w.CustomEvent,{n:e,p:c});if(p.W)for(let i of(n.A.info(`Logged custom event "${e}".`),p.ue))l.B.o().ve(o.A.pe,[e,t],i);return p.W}},15465:(e,t,i)=>{i.d(t,{A:()=>s});let s={oe:function(){if("undefined"!=typeof window&&window.crypto){if("function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if("function"==typeof window.crypto.getRandomValues)try{let e=new Uint8Array(16);window.crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e,e=>("0"+e.toString(16)).slice(-2));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}catch(e){}}let e=(e=!1)=>{let t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},16023:(e,t,i)=>{i.r(t),i.d(t,{Banner:()=>tg,BrazeSdkMetadata:()=>em,CaptionedImage:()=>u,Card:()=>o,ClassicCard:()=>h,ContentCards:()=>P,ControlCard:()=>c,ControlMessage:()=>eF.A,DeviceProperties:()=>ey.A,FeatureFlag:()=>to.A,FullScreenMessage:()=>e$.A,HtmlMessage:()=>eG.A,ImageOnly:()=>l,InAppMessage:()=>eR.A,InAppMessageButton:()=>eU.A,ModalMessage:()=>eq.A,SlideUpMessage:()=>eH.A,User:()=>eQ.A,WindowUtils:()=>G.uD,addSdkMetadata:()=>ef,automaticallyShowInAppMessages:()=>e7,changeUser:()=>eA.changeUser,deferInAppMessage:()=>e9,destroy:()=>ev,disableSDK:()=>ew,enableSDK:()=>ex,getAllBanners:()=>tk,getAllFeatureFlags:()=>tc,getBanner:()=>tv,getCachedContentCards:()=>L,getDeferredInAppMessage:()=>te,getDeviceId:()=>eE,getFeatureFlag:()=>th,getUser:()=>q,handleBrazeAction:()=>V,hideContentCards:()=>eh,initialize:()=>eS,insertBanner:()=>tN,isDisabled:()=>ek,isInitialized:()=>eC,isPushBlocked:()=>ti,isPushPermissionGranted:()=>ts,isPushSupported:()=>ta,logBannerClick:()=>ty,logBannerImpressions:()=>tE,logCardDismissal:()=>v,logContentCardClick:()=>x,logContentCardImpressions:()=>w,logCustomEvent:()=>eN.logCustomEvent,logFeatureFlagImpression:()=>tp,logInAppMessageButtonClick:()=>e5,logInAppMessageClick:()=>eJ,logInAppMessageHtmlClick:()=>eY,logInAppMessageImpression:()=>eX,logPurchase:()=>eT.logPurchase,openSession:()=>ej,refreshFeatureFlags:()=>tl.refreshFeatureFlags,removeAllSubscriptions:()=>eD,removeSubscription:()=>Z,requestBannersRefresh:()=>function e(t,i,s){if(!f.Ay.rr())return void r.A.warn(a.xE);let n=f.Ay.l();if(!n)return;if(!(0,y.cy)(t)||0===t.length)return void r.A.warn("placementIds should be a non-empty array.");if(!f.Ay.ee(f.lw.re))return void r.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");let o=tf.o();if(!1===n.Dt()&&r.A.error(a.FE),!o.k())return void n.P(()=>{e(t,i,s)});let l=n.te();t.length>l&&(r.A.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${l} (max allowed).`),t=t.slice(0,l)),0!==(t=t.filter(e=>!!(0,$.L4)(e)||(r.A.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${e}`),!1))).length&&(r.A.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),o.M(t,i,s))},requestContentCardsRefresh:()=>O,requestImmediateDataFlush:()=>eO.requestImmediateDataFlush,requestPushPermission:()=>tn.requestPushPermission,setLogger:()=>eP,setSdkAuthenticationSignature:()=>eL,showContentCards:()=>eb,showInAppMessage:()=>e6,subscribeToBannersUpdates:()=>tC,subscribeToContentCardsUpdates:()=>ec,subscribeToFeatureFlagsUpdates:()=>td,subscribeToInAppMessage:()=>e8,subscribeToSdkAuthenticationFailures:()=>ez,toggleContentCards:()=>eg,toggleLogging:()=>eB,unregisterPush:()=>tr.unregisterPush,wipeData:()=>eM});var s=i(27584),a=i(72180),n=i(81023),r=i(84456);class o{constructor(e,t,i,s,a,n,r,o,l,u,h,c,d,p,b,g){this.id=e,this.viewed=t,this.title=i,this.imageUrl=s,this.description=a,this.updated=n,this.expiresAt=r,this.url=o,this.linkText=l,this.aspectRatio=u,this.extras=h,this.pinned=c,this.dismissible=d,this.clicked=p,this.language=b,this.altImageText=g,this.id=e,this.viewed=t||!1,this.title=i||"",this.imageUrl=s,this.description=a||"",this.updated=n||null,this.expiresAt=r||null,this.url=o,this.linkText=l,null==u?this.aspectRatio=null:(u=parseFloat(u.toString()),this.aspectRatio=isNaN(u)?null:u),this.extras=h||{},this.pinned=c||!1,this.dismissible=d||!1,this.dismissed=!1,this.clicked=p||!1,this.isControl
1=!1,this.language=b||null,this.altImageText=g||null,this.test=!1,this.ti=null,this.ii=null,this.si=null}subscribeToClickedEvent(e){return this.hi().wt(e)}subscribeToDismissedEvent(e){return this.li().wt(e)}removeSubscription(e){this.hi().removeSubscription(e),this.li().removeSubscription(e)}removeAllSubscriptions(){this.hi().removeAllSubscriptions(),this.li().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let e=this._t;!e&&this.id&&(e=document.getElementById(this.id)),e&&(e.style.height=e.offsetHeight+"px",e.className=e.className+" ab-hide",setTimeout(function(){e&&e.parentNode&&(e.style.height="0",e.style.margin="0",setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},o.ni))},a.RW))}hi(){return null==this.ti&&(this.ti=new n.A),this.ti}li(){return null==this.ii&&(this.ii=new n.A),this.ii}Qt(){let e=new Date().valueOf();return!(null!=this.si&&e-this.si<o.ei)&&(this.si=e,this.viewed=!0,!0)}$t(){this.viewed=!0,this.clicked=!0,this.hi().L()}Kt(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.li().L(),!0)}ri(e){if(null==e||e[o.ui.rs]!==this.id)return!0;if(e[o.ui.Ei])return!1;if(null!=e[o.ui.ps]&&null!=this.updated&&parseInt(e[o.ui.ps])<(0,s.UK)(this.updated.valueOf()))return!0;if(e[o.ui.os]&&!this.viewed&&(this.viewed=!0),e[o.ui.js]&&!this.clicked&&(this.clicked=e[o.ui.js]),null!=e[o.ui.cs]&&(this.title=e[o.ui.cs]),null!=e[o.ui.ns]&&(this.imageUrl=e[o.ui.ns]),null!=e[o.ui.ds]&&(this.description=e[o.ui.ds]),null!=e[o.ui.ps]){let t=(0,s.Zo)(e[o.ui.ps]);null!=t&&(this.updated=t)}if(null!=e[o.ui.us]){let t;t=e[o.ui.us]===o.Ti?null:(0,s.Zo)(e[o.ui.us]),this.expiresAt=t}if(null!=e[o.ui.URL]&&(this.url=e[o.ui.URL]),null!=e[o.ui.ls]&&(this.linkText=e[o.ui.ls]),null!=e[o.ui.fs]){let t=parseFloat(e[o.ui.fs].toString());this.aspectRatio=isNaN(t)?null:t}return null!=e[o.ui.xs]&&(this.extras=e[o.ui.xs]),null!=e[o.ui.bs]&&(this.pinned=e[o.ui.bs]),null!=e[o.ui.gs]&&(this.dismissible=e[o.ui.gs]),null!=e[o.ui.zs]&&(this.language=e[o.ui.zs]),null!=e[o.ui.ks]&&(this.altImageText=e[o.ui.ks]),null!=e[o.ui.qs]&&(this.test=e[o.ui.qs]),!0}dt(){r.A.error("Must be implemented in a subclass")}}o.Ti=-1,o.ui={rs:"id",os:"v",gs:"db",Ei:"r",ps:"ca",bs:"p",us:"ea",xs:"e",ts:"tp",ns:"i",cs:"tt",ds:"ds",URL:"u",ls:"dm",fs:"ar",js:"cl",qs:"t",zs:"language",ks:"image_alt"},o.es={hs:"captioned_image",oi:"text_announcement",ai:"short_news",Ii:"banner_image",Ni:"control"},o.ss={rs:"id",os:"v",gs:"db",Ai:"cr",ps:"ca",bs:"p",ci:"t",us:"ea",xs:"e",ts:"tp",ns:"i",cs:"tt",ds:"ds",URL:"u",ls:"dm",fs:"ar",js:"cl",qs:"s",zs:"l",ks:"ia"},o.mi={Si:"ADVERTISING",Di:"ANNOUNCEMENTS",pi:"NEWS",di:"SOCIAL"},o.ni=400,o.ei=1e4;class l extends o{constructor(e,t,i,s,a,n,r,o,l,u,h,c,d){super(e,t,null,i,null,s,a,n,null,r,o,l,u,h,c,d),this.Xt="ab-image-only",this.Yt=!1,this.test=!1}dt(){let e={};return e[o.ss.ts]=o.es.Ii,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.ns]=this.imageUrl,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class u extends o{constructor(e,t,i,s,a,n,r,o,l,u,h,c,d,p,b,g){super(e,t,i,s,a,n,r,o,l,u,h,c,d,p,b,g),this.Xt="ab-captioned-image",this.Yt=!0,this.test=!1}dt(){let e={};return e[o.ss.ts]=o.es.hs,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.cs]=this.title,e[o.ss.ns]=this.imageUrl,e[o.ss.ds]=this.description,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.ls]=this.linkText,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class h extends o{constructor(e,t,i,s,a,n,r,o,l,u,h,c,d,p,b,g){super(e,t,i,s,a,n,r,o,l,u,h,c,d,p,b,g),this.Xt="ab-classic-card",this.Yt=!0}dt(){let e={};return e[o.ss.ts]=o.es.ai,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.cs]=this.title,e[o.ss.ns]=this.imageUrl,e[o.ss.ds]=this.description,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.ls]=this.linkText,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class c extends o{constructor(e,t,i,s,a,n){super(e,t,null,null,null,i,s,null,null,null,a,n),this.isControl
1=!0,this.Xt="ab-control-card",this.Yt=!1}dt(){let e={};return e[o.ss.ts]=o.es.Ni,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.qs]=this.test,e}}var d=i(59948),p=i(41743),b=i(4624),g=i(65455);class m{constructor(e){this.j=e,this.j=e}logClick(e){let t=new p.A;if(e.$t(),null==e.url||""===e.url)return r.A.info(`Card ${e.id} has no url. Not logging click to Braze servers.`),t;if(e.id&&this.j){let t=this.j.lt(g.d.ct.Et)||{};t[e.id]=!0,this.j.ft(g.d.ct.Et,t)}let i=this.Gt([e]);if(null==i)return t;let s=b.w.Ht;return d.A.rt(s,i)}Jt(e){let t=new p.A;if(!e.Kt())return r.A.info(`Card ${e.id} refused this dismissal. Ignoring analytics event.`),t;if(e.id&&this.j){let t=this.j.lt(g.d.ct.Lt)||{};t[e.id]=!0,this.j.ft(g.d.ct.Lt,t)}let i=this.Gt([e]);return null==i?t:d.A.rt(b.w.Mt,i)}Ot(e){let t=new p.A(!0),i=[],s=[],a={};for(let t of(this.j&&(a=this.j.lt(g.d.ct.Pt)||{}),e))t.Qt()?(t instanceof c?s.push(t):i.push(t),t.id&&(a[t.id]=!0)):r.A.info(`Card ${t.id} logged an impression too recently. Ignoring analytics event.`);let n=this.Gt(i),o=this.Gt(s);if(null==n&&null==o)return t.W=!1,t;if(this.j&&this.j.ft(g.d.ct.Pt,a),null!=n){let e=b.w.Ut,i=d.A.rt(e,n);t.Vt(i)}if(null!=o){let e=d.A.rt(b.w.Wt,o);t.Vt(e)}return t}Gt(e){let t,i=null;for(let s=0;s<e.length;s++)null!=(t=e[s].id)&&""!==t&&((i=i||{}).ids=i.ids||[],i.ids.push(t));return i}}var f=i(53913);let A={i:!1,aa:null,ea:()=>(A.t(),A.aa||(A.aa=new m(f.Ay.p())),A.aa),t:()=>{A.i||(f.Ay.g(A),A.i=!0)},destroy:()=>{A.aa=null,A.i=!1}};function v(e){return!!f.Ay.rr()&&(e instanceof o?A.ea().Jt(e).W:(r.A.error("card "+a.s1),!1))}var y=i(67037);function w(e){if(!f.Ay.rr())return!1;if(!(0,y.cy)(e))return r.A.error("cards must be an array"),!1;for(let t of e)if(!(t instanceof o))return r.A.error(`Each card in cards ${a.s1}`),!1;return A.ea().Ot(e).W}function x(e){return!!f.Ay.rr()&&(e instanceof o?A.ea().logClick(e).W:(r.A.error("card "+a.s1),!1))}var E=i(40019),S=i(31064),k=i(16177);function C(e,t,i,s,a,n,d,p,b,g,m,f,A,v,y,w,x,E){let S;if(t===o.es.oi||t===o.es.ai)S=new h(e,i,s,a,n,d,p,b,g,m,f,A,v,y,x,E);else if(t===o.es.hs)S=new u(e,i,s,a,n,d,p,b,g,m,f,A,v,y,x,E);else if(t===o.es.Ii)S=new l(e,i,a,d,p,b,m,f,A,v,y,x,E);else{if(t!==o.es.Ni)return r.A.error("Ignoring card with unknown type "+t),null;S=new c(e,i,d,p,f,A)}return w&&(S.test=w),S}function N(e){if(e[o.ui.Ei])return null;let t=e[o.ui.rs],i=e[o.ui.ts],a=e[o.ui.os],n=e[o.ui.cs],r=e[o.ui.ns],l=e[o.ui.ds];return C(t,i,a,n,r,l,(0,s.Zo)(e[o.ui.ps]),e[o.ui.us]===o.Ti?null:(0,s.Zo)(e[o.ui.us]),e[o.ui.URL],e[o.ui.ls],e[o.ui.fs],e[o.ui.xs],e[o.ui.bs],e[o.ui.gs],e[o.ui.js],e[o.ui.qs]||!1,e[o.ui.zs],e[o.ui.ks])}var T=i(25485),_=i(53362),I=i(12468);class j extends S.A{constructor(e,t,i,s,a){super(),this.Cs=e,this.j=t,this.h=i,this.vs=s,this.B=a,this.Cs=e,this.j=t,this.h=i,this.vs=s,this.B=a,this.ws=new n.A,f.Ay.q(this.ws),this.ys=0,this.Ss=0,this.cards=[],this.Ts();let o=I.A.Us.Rs;new I.A(o,r.A).Ds(o.Fs.As,e=>{this.Ls(e)}),this.Ns=null,this.D=null,this.Js=null,this.Ms=null,this.$s=10}Bs(){return this.Ns}Es(e){this.Ns=e}jt(){return this.D}yt(e){this.D=e}Ts(){if(!this.j)return;let e=this.j.lt(g.d.ct.Ps)||[],t=[];for(let a=0;a<e.length;a++){var i;let n=C((i=e[a])[o.ss.rs],i[o.ss.ts],i[o.ss.os],i[o.ss.cs],i[o.ss.ns],i[o.ss.ds],(0,s.jU)(i[o.ss.ps]),(0,s.jU)(i[o.ss.us]),i[o.ss.URL],i[o.ss.ls],i[o.ss.fs],i[o.ss.xs],i[o.ss.bs],i[o.ss.gs],i[o.ss.js],i[o.ss.qs]||!1,i[o.ss.zs],i[o.ss.ks])||void 0;null!=n&&t.push(n)}this.cards=this.Xs(this._s(t,!1)),this.ys=this.j.lt(g.d.ct.Gs)||this.ys,this.Ss=this.j.lt(g.d.ct.Hs)||this.Ss}Is(e,t=!1,i=0,s=0){let a;if(t)for(let e of(a=[],this.cards))e.test&&a.push(e);else a=this.cards.slice();for(let i=0;i<e.length;i++){let s=e[i],n=null;for(let e=0;e<this.cards.length;e++)if(s.id===this.cards[e].id){n=this.cards[e];break}if(t){let e=N(s);null!=n&&n.viewed&&e&&(e.viewed=!0),null!=e&&a.push(e)}else if(null==n){let e=N(s);null!=e&&a.push(e)}else if(!n.ri(s)){for(let e=0;e<a.length;e++)if(s.id===a[e].id){a.splice(e,1);break}}}this.cards=this.Xs(this._s(a,t)),this.Ks(),this.ys=i,this.Ss=s,this.j&&(this.j.ft(g.d.ct.Gs,this.ys),this.j.ft(g.d.ct.Hs,this.Ss))}N(e){if(this.Os()&&null!=e&&e.cards){this.j&&this.j.ft(g.d.ct.Qs,f.Ay.Vs());let t=e.full_sync;t||this.Ts(),this.Is(e.cards,t,e.last_full_sync_at,e.last_card_updated_at),this.ws.L(this.Ws(!0))}}Ys(e){this.Zs(),this.Js=e}Ls(e){var t;if(!this.Os())return;this.Ts();let i=this.cards.slice(),s=null;s=null==(t=this.Cs)?void 0:t.getUserId();for(let t=0;t<e.length;t++)if(s===e[t].userId||null==s&&null==e[t].userId){let s=e[t].card,a=null;for(let e=0;e<this.cards.length;e++)if(s.id===this.cards[e].id){a=this.cards[e];break}if(null==a){let e=N(s);null!=e&&i.push(e)}else if(!a.ri(s)){for(let e=0;e<i.length;e++)if(s.id===i[e].id){i.splice(e,1);break}}}this.cards=this.Xs(this._s(i,!1)),this.Ks(),this.ws.L(this.Ws(!0))}_s(e,t){let i={},s={},a={};this.j&&(i=this.j.lt(g.d.ct.Et)||{},s=this.j.lt(g.d.ct.Pt)||{},a=this.j.lt(g.d.ct.Lt)||{});let n={},r={},o={};for(let t=0;t<e.length;t++){let l=e[t].id;l&&(i[l]&&(e[t].clicked=!0,n[l]=!0),s[l]&&(e[t].viewed=!0,r[l]=!0),a[l]&&(e[t].dismissed=!0,o[l]=!0))}return t&&this.j&&(this.j.ft(g.d.ct.Et,n),this.j.ft(g.d.ct.Pt,r),this.j.ft(g.d.ct.Lt,o)),e}Xs(e){let t=[],i=new Date,s={};this.j&&(s=this.j.lt(g.d.ct.Lt)||{});let a=!1;for(let n=0;n<e.length;n++){let o=e[n].url;if(!this.vs&&o&&(0,k.P)(o)){r.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=e[n].expiresAt,u=!0;if(null!=l&&(u=l>=i),u=u&&!e[n].dismissed)t.push(e[n]);else{let t=e[n].id;t&&(s[t]=!0),a=!0}}return a&&this.j&&this.j.ft(g.d.ct.Lt,s),t}Ks(){var e;let t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].dt());null==(e=this.j)||e.ft(g.d.ct.Ps,t)}Zs(){this.Js&&(clearTimeout(this.Js),this.Js=null)}ar(e,t,i=!1){var s;let a=this.B,n=this.j;if(!a||!n)return void("function"==typeof t&&t());if(i&&(T.A.fi(n,T.A.H.Ci),this.Zs()),!this.Os())return void(null==(s=this.h)||s.bi(()=>{this.ar(e,t,!0)}));let r=a.$({},!0);n.lt(g.d.ct.Qs)!==f.Ay.Vs()&&this.vi(),r.last_full_sync_at=this.ys,r.last_card_updated_at=this.Ss;let o=a.A(r,T.A.H.Ci,i),l=!1;a.J(r,(i=-1)=>
1{if(this.j){let e=new Date().valueOf();T.A.K(this.j,T.A.H.Ci,e)}-1!==i&&o.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),E.A.O({url:`${a.V()}/content_cards/sync`,data:r,headers:o,W:i=>{if(!a.Y(r,i,o))return l=!0,void("function"==typeof t&&t());a.Z(),this.N(i),l=!1,"function"==typeof e&&e()},error:e=>{a._(e,"retrieving content cards"),l=!0,"function"==typeof t&&t()},tt:(i,s)=>{let n;if(l){let e=this.Ms;(null==e||e<1e3*this.$s)&&(e=1e3*this.$s),n=Math.min(3e5,(0,_.C)(1e3*this.$s,3*e))}a.st(s,()=>{this.ar(e,t,!1)},T.A.H.Ci,e=>this.Ys(e),()=>this.Zs(),n)}})},T.A.H.Ci,t)}Ws(e){e||this.Ts();let t=this.Xs(this.cards);t.sort((e,t)=>e.pinned&&!t.pinned?-1:t.pinned&&!e.pinned?1:e.updated&&t.updated&&e.updated>t.updated?-1:e.updated&&t.updated&&t.updated>e.updated?1:0);let i=Math.max(this.Ss||0,this.ys||0);return 0===i&&(i=void 0),this.j&&this.j.lt(g.d.ct.Hs)===this.Ss&&void 0===i&&(i=this.Ss),new P(t,(0,s.Zo)(i))}St(e){return this.ws.wt(e)}vi(){this.ys=0,this.Ss=0,this.j&&(this.j.Nt(g.d.ct.Gs),this.j.Nt(g.d.ct.Hs))}changeUser(e){e||(this.cards=[],this.ws.L(new P(this.cards.slice(),null)),this.j&&(this.j.Nt(g.d.ct.Ps),this.j.Nt(g.d.ct.Et),this.j.Nt(g.d.ct.Pt),this.j.Nt(g.d.ct.Lt))),this.Zs(),this.vi()}clearData(e){this.ys=0,this.Ss=0,this.cards=[],this.ws.L(new P(this.cards.slice(),null)),e&&this.j&&(this.j.Nt(g.d.ct.Ps),this.j.Nt(g.d.ct.Et),this.j.Nt(g.d.ct.Pt),this.j.Nt(g.d.ct.Lt),this.j.Nt(g.d.ct.Gs),this.j.Nt(g.d.ct.Hs)),this.Zs()}Os(){return!!this.h&&(!!this.h.wi()||(0!==this.h.Ft()&&this.gi(),!1))}gi(){this.ws.L(new P([],new Date)),this.j&&this.j.Nt(g.d.ct.Ps)}}let D={i:!1,provider:null,o:()=>(D.t(),D.provider||(D.provider=new j(f.Ay.ir(),f.Ay.p(),f.Ay.l(),f.Ay.nr(),f.Ay.m()),f.Ay.v(D.provider),f.Ay.tr("ccr",()=>{var e;null==(e=D.provider)||e.ar()})),D.provider),t:()=>{D.i||(f.Ay.g(D),D.i=!0)},destroy:()=>{D.provider=null,D.i=!1}};function O(e,t){if(f.Ay.rr())return D.o().ar(e,t,!0)}class P{constructor(e,t){this.cards=e,this.lastUpdated=t,this.cards=e,this.lastUpdated=t}getUnviewedCardCount(){let e=0;for(let t of this.cards)t.viewed||t instanceof c||e++;return e}sr(e){w(e)}dr(e){return x(e)}ur(){O()}cr(){return!0}}function L(){if(f.Ay.rr())return D.o().Ws(!1)}P.Cr=6e4,P.hr=500,P.lr=1e4;var z=i(6016),B=i(68788);function M(e,t,i,s="ltr"){let a=document.createElement("button");a.setAttribute("aria-label",e),a.setAttribute("role","button"),a.dir=s,(0,z.P4)(a,"touchstart"),a.className="ab-close-button";let n=(0,z.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",t);return a.appendChild(n),n.setAttribute("aria-hidden","true"),a.addEventListener("keydown",e=>{e.keyCode!==B.c.do&&e.keyCode!==B.c.lo||(i(),e.stopPropagation())}),a.onclick=e=>{i(),e.stopPropagation()},a}var R=i(31120),U=i(80429),F=i(96246),$=i(68711),G=i(94744);function q(){if(f.Ay.rr())return f.Ay.br()}function H(e,t,s){if(f.Ay.rr())if($.nx.test(e)){let t=(0,R.jj)(e);if(!t)return;let s=e=>{if(!(0,$.xs)(e))return void r.A.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);let t=R.V.properties.type,n=R.V.properties.eo,o=R.V.properties.so,l=e[t];if(l===R.V.types.io)for(let t of e[n])s(t);else{let t,s,n=e[o];switch(l){case R.V.types.logCustomEvent:Promise.resolve().then(i.bind(i,13910)).then(({logCustomEvent:e})=>{f.Ay.ao()?e(...s=Array.prototype.slice.call(n)):r.A.error(a.xE)});break;case R.V.types.requestPushPermission:Promise.resolve().then(i.bind(i,36520)).then(({requestPushPermission:e})=>{f.Ay.ao()?"Safari"===U.A.browser&&U.A.OS===F.u.co?window.navigator.standalone&&e():e():r.A.error(a.xE)});break;case R.V.types.setEmailNotificationSubscriptionType:case R.V.types.setPushNotificationSubscriptionType:case R.V.types.setCustomUserAttribute:case R.V.types.addToSubscriptionGroup:case R.V.types.removeFromSubscriptionGroup:case R.V.types.addToCustomAttributeArray:case R.V.types.removeFromCustomAttributeArray:(t=q())&&t[l](...Array.prototype.slice.call(n));break;case R.V.types.mo:case R.V.types.uo:s=Array.prototype.slice.call(n),G.uD.openUri(...s);break;default:r.A.info(`Ignoring unknown Braze Action: ${l}`)}}};s(t)}else G.uD.openUri(e,t,s)}function V(e,t){H(e,t)}var W=i(15465);function K(e){if(null!=e){let t=e.querySelectorAll(".ab-unread-indicator")[0];null==t||t.classList.contains("read")||(t.className+=" read")}}let X={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."}
1,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 J{constructor(e,t=!1){if(this.language=e,null!=e&&(e=e.toLowerCase()),null!=e&&null==X[e]){let t=e.indexOf("-");t>0&&(e=e.substring(0,t))}if(null==X[e]){let i="Braze does not yet have a localization for language "+e+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";t?r.A.error(i):r.A.info(i),e="en"}this.language=e}get(e){return X[this.language][e]}Ho(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}let Y={i:!1,aa:null,ea:()=>{if(Y.t(),!Y.aa){let e=U.A.language,t=!1;f.Ay.ee(f.lw.Ea)&&(e=f.Ay.ee(f.lw.Ea),t=!0),Y.aa=new J(e,t)}return Y.aa},t:()=>{Y.i||(f.Ay.g(Y),Y.i=!0)},destroy:()=>{Y.aa=null,Y.i=!1}};function Z(e){f.Ay.rr()&&f.Ay.removeSubscription(e)}function Q(e){return null!=e&&!!e.getAttribute("data-ab-had-top-impression")}function ee(e){null!=e&&e.setAttribute("data-ab-had-top-impression","true")}function et(e){return null!=e&&!!e.getAttribute("data-ab-had-bottom-impression")}function ei(e){null!=e&&e.setAttribute("data-ab-had-bottom-impression","true")}let es={oo:Q,no:et},ea={};function en(e){e&&(e.className=e.className.replace("ab-show","ab-hide"),setTimeout(()=>{e&&e.parentNode&&e.parentNode.removeChild(e)},P.hr));let t=e.getAttribute(a.og);null!=t&&Z(t);let i=e.getAttribute("data-listener-id");null!=i&&(window.removeEventListener("scroll",ea[i]),delete ea[i])}function er(e,t){let i=Y.ea(),s=document.createElement("div");if(s.className="ab-feed-body",s.setAttribute("aria-label","Feed"),s.setAttribute("role","feed"),null==e.lastUpdated){let e=document.createElement("div");e.className="ab-no-cards-message";let t=document.createElement("i");t.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",e.appendChild(t),s.appendChild(e)}else{let a=!1,n=t=>e.dr(t);for(let o of e.cards){let l=o instanceof c;!l||e.cr()?(s.appendChild(function(e,t,i,s="ltr"){let a=document.createElement("div");a.dir=s,e.language&&(a.lang=e.language),a.className="ab-card ab-effect-card "+e.Xt,e.id&&(a.setAttribute("data-ab-card-id",e.id),a.setAttribute("id",e.id)),a.setAttribute("role","article");let n="",r=!1;e.url&&""!==e.url&&(n=e.url,r=!0);let o=s=>(K(a),r&&(t(e),H(n,i,s)),!1);if(e.pinned){let e=document.createElement("div");e.className="ab-pinned-indicator";let t=document.createElement("i");t.className="fa fa-star",e.appendChild(t),a.appendChild(e)}if(e.imageUrl&&""!==e.imageUrl){let t=document.createElement("div");t.dir=s,t.className="ab-image-area";let i=document.createElement("img");if(i.setAttribute("src",e.imageUrl),i.onload=()=>{a.style.height="auto"},i.setAttribute("alt",e.altImageText||""),t.appendChild(i),a.className+=" with-image",r&&!e.Yt){let i=document.createElement("a");i.setAttribute("href",n),i.onclick=o,e.altImageText||(e.title?i.setAttribute("aria-label",e.title):i.setAttribute("aria-label","Feed Image")),i.appendChild(t),a.appendChild(i)}else a.appendChild(t)}let l=document.createElement("div");if(l.className="ab-card-body",l.dir=s,e.dismissible){e.logCardDismissal=()=>v(e);let t=M("Dismiss Card",void 0,e.dismissCard.bind(e),s);a.appendChild(t),(0,z.sr)(l,z.X.Zt,e=>{a.className+=" ab-swiped-left",t.onclick(e)}),(0,z.sr)(l,z.X.ae,e=>{a.className+=" ab-swiped-right",t.onclick(e)})}let u="",h=!1;if(e.title&&""!==e.title&&(u=e.title,h=!0),h){let e=document.createElement("h1");if(e.className="ab-title",e.id=W.A.oe(),a.setAttribute("aria-labelledby",e.id),r){let t=document.createElement("a");t.setAttribute("href",n),t.onclick=o,t.appendChild(document.createTextNode(u)),e.appendChild(t)}
1else e.appendChild(document.createTextNode(u));l.appendChild(e)}let c=document.createElement("div");if(c.className=h?"ab-description":"ab-description ab-no-title",e.language&&(c.lang=e.language),e.description&&c.appendChild(document.createTextNode(e.description)),r){let t=document.createElement("div");t.className="ab-url-area";let i=document.createElement("a");i.setAttribute("href",n),e.linkText&&i.appendChild(document.createTextNode(e.linkText)),i.onclick=o,t.appendChild(i),c.appendChild(t)}l.appendChild(c),a.appendChild(l);let d=document.createElement("div");return d.className="ab-unread-indicator",e.viewed&&(d.className+=" read"),a.appendChild(d),e._t=a,a}(o,n,t,i.Ho())),a=a||!l):r.A.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!a){let e=document.createElement("div");e.className="ab-no-cards-message",e.innerHTML=i.get("NO_CARDS_MESSAGE")||"",e.setAttribute("role","article"),s.appendChild(e)}}return s}function eo(e,t){if(null!=e&&null!=t){let i=[],s=t.querySelectorAll(".ab-card");e.Eo||(e.Eo={});for(let t=0;t<s.length;t++){let a=s[t].getAttribute("data-ab-card-id"),n=(0,z.Kz)(s[t]),r=(0,z.K)(s[t]);if(e.Eo[a]){n||r||K(s[t]);continue}let o=Q(s[t]),l=et(s[t]),u=o,h=l;if(!o&&n&&(o=!0,ee(s[t])),!l&&r&&(l=!0,ei(s[t])),o&&l){if(u&&h)continue;for(let t of e.cards)if(t.id===a){e.Eo[t.id]=!0,i.push(t);break}}}i.length>0&&e.sr(i)}}function el(e,t){if(null==e||null==t)return;t.setAttribute("aria-busy","true");let i=t.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");let s=new Date().valueOf().toString();t.setAttribute("data-last-requested-refresh",s),setTimeout(()=>{if(t.getAttribute("data-last-requested-refresh")===s){let e=t.querySelectorAll(".fa-spin");for(let t=0;t<e.length;t++)e[t].className=e[t].className.replace(/fa-spin/g,"");let i=t.querySelectorAll(".ab-initial-spinner")[0];if(null!=i){let e=document.createElement("span");e.innerHTML=Y.ea().get("FEED_TIMEOUT_MESSAGE")||"",null!=i.parentNode&&(i.parentNode.appendChild(e),i.parentNode.removeChild(i))}"true"===t.getAttribute("aria-busy")&&t.setAttribute("aria-busy","false")}},P.lr),e.ur()}function eu(e,t,i,s,a){if(!(0,y.cy)(t))return;let n=[];for(let e of t)if(e instanceof o){if(e.url&&$.nx.test(e.url)){let t=(0,R.jj)(e.url);if((0,R.qj)(t)){r.A.error((0,R.$6)(R.mY.Zr,"Content Card"));continue}}n.push(e)}if(e.cards=n,e.lastUpdated=i,null!=s)if(s.setAttribute("aria-busy","false"),null==e.lastUpdated)en(s);else{let t=s.querySelectorAll(".ab-feed-body")[0];if(null!=t){let i=er(e,a);t.parentNode&&t.parentNode.replaceChild(i,t),eo(e,i.parentNode)}}}function eh(e){if(!f.Ay.rr())return;let t=document.querySelectorAll(".ab-feed");for(let i=0;i<t.length;i++)(null==e||null!=e&&t[i].parentNode===e)&&en(t[i])}function ec(e){if(!f.Ay.rr())return;let t=D.o(),i=t.St(e);if(!t.jt()){let e=f.Ay.nn();if(e){let i=e.rn(()=>{t.ar(void 0,void 0,!0)});i&&t.yt(i)}}return i}function ed(e,t,i){let s=e||document.querySelector("head"),a=`ab-${t}-css-definitions-${"6.4.0".replace(/\./g,"-")}`;if(!s)return;let n=s.ownerDocument||document;if(null==n.getElementById(a)){let e=n.createElement("style");e.innerHTML=i||"",e.id=a;let t=f.Ay.ee(f.lw.er);null!=t&&e.setAttribute("nonce",t),s.appendChild(e)}}function ep(){if(f.Ay.ee(f.lw.Na))return;let e="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+e+'"]')){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}}function eb(e,t){var i,s;if(!f.Ay.rr())return;ed(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-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-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .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;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button[dir=rtl]{left:0}.ab-feed .ab-card .ab-close-button[dir=ltr]{right:0}.ab-feed .ab-card .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-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}
1.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{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;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=ltr]{padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=rtl]{padding-right:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area[dir=rtl]{padding:20px 25px 25px 0}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),ep();let n=!1;null==e&&(e=document.body,n=!0);let o=f.Ay.ee(f.lw.tn)||!1,l=D.o().Ws(!1);"function"==typeof t&&eu(l,t(l.cards.slice()),l.lastUpdated,null,o);let u=function(e,t,i){let s=document.createElement("div");s.className="ab-feed ab-hide ab-effect-slide",s.setAttribute("role","dialog"),s.setAttribute("aria-label","Feed"),s.setAttribute("tabindex","-1");let a=document.createElement("div");a.className="ab-feed-buttons-wrapper",a.setAttribute("role","group"),s.appendChild(a);let n=document.createElement("i");n.className="fa fa-times ab-close-button",n.setAttribute("aria-label","Close Feed"),n.setAttribute("tabindex","0"),n.setAttribute("role","button");let r=e=>{en(s),e.stopPropagation()};n.addEventListener("keydown",e=>{e.keyCode!==B.c.do&&e.keyCode!==B.c.lo||r(e)}),n.onclick=r;let o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",e&&null==e.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");let l=t=>{el(e,s),t.stopPropagation()};o.addEventListener("keydown",e=>{e.keyCode!==B.c.do&&e.keyCode!==B.c.lo||l(e)}),o.onclick=l,a.appendChild(o),a.appendChild(n),s.appendChild(er(e,t));let u=()=>eo(e,s);if(s.addEventListener("scroll",u),!i){window.addEventListener("scroll",u);let e=W.A.oe();ea[e]=u,s.setAttribute("data-listener-id",e)}return s}(l,o,n),h=D.o(),c=h.Bs();(null==l.lastUpdated||new Date().valueOf()-l.lastUpdated.valueOf()>P.Cr)&&(null==c||new Date().valueOf()-c>P.Cr)&&(r.A.info(`Cached content cards were older than max TTL of ${P.Cr} ms, requesting an update from the server.`),el(l,u),h.Es(new Date().valueOf()));let d=new Date().valueOf();s=ec(function(e){let i=u.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let e,t=e=500-(new Date().valueOf()-d),s=u.getAttribute("data-last-requested-refresh");s&&(isNaN(t=parseInt(s))||(e-=new Date().valueOf()-t)),setTimeout(function(){i.className=i.className.replace(/fa-spin/g,"")},Math.max(e,0))}let s=e.cards;"function"==typeof t&&(s=t(s.slice())),eu(l,s,e.lastUpdated,u,o)}),s&&u.setAttribute(a.og,s);let p=function(e){let t=e.querySelectorAll(".ab-feed"),i=null;for(let s=0;s<t.length;s++)t[s].parentNode===e&&(i=t[s]);null!=i?(en(i),null!=i.parentNode&&i.parentNode.replaceChild(u,i)):e.appendChild(u),setTimeout(function(){u.className=u.className.replace("ab-hide","ab-show")},0),n&&u.focus(),eo(l,u),function(e,t){let i=t.querySelectorAll(".ab-image-area"),s,a=0;for(let t of(i.length>0&&(a=i[0].offsetWidth),e))if((s=t._t)&&t.imageUrl&&"number"==typeof t.aspectRatio){let e=a/t.aspectRatio;e&&(s.style.height=`${e}px`)}}(l.cards,e)};null!=e?p(e):window.onload=(i=window.onload,function(){"function"==typeof i&&i(new Event("oldLoad")),p(document.body)})}function eg(e,t){f.Ay.rr()&&(document.querySelectorAll(".ab-feed").length>0?eh():eb(e,t))}let em={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};function ef(e){if(!f.Ay.rr())return;let t=f.Ay.m();if(t){if(!(0,y.cy)(e))return r.A.error("Cannot set SDK metadata because metadata is not an array."),!1;for(let t of e)if(!(0,y.BY)(em,t,"sdkMetadata contained an invali
1d value.","BrazeSdkMetadata"))return!1;return t.addSdkMetadata(e),!0}}var eA=i(57911);function ev(){r.A.info("Destroying Braze instance"),f.Ay.destroy(!0)}var ey=i(71647);function ew(){let e=f.Ay.nn();e&&e.requestImmediateDataFlush();let t=new g.A.ne(null,!0),i="This-cookie-will-expire-in-"+t.se();t.store(g.d.ie,i);let s=I.A.Us.Rs;new I.A(s,r.A).setItem(s.Fs.le,s.me,!0),r.A.info("disableSDK was called"),f.Ay.destroy(!1),f.Ay.ce(!0)}function ex(){new g.A.ne(null,!0).remove(g.d.ie);let e=I.A.Us.Rs;new I.A(e,r.A).be(e.Fs.le,e.me),r.A.info("enableSDK was called"),f.Ay.destroy(!1),f.Ay.ce(!1)}function eE(e){if(!f.Ay.rr())return;let t=f.Ay.de();if(!t)return;let i=t.fe().id;if("function"!=typeof e)return i;r.A.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),e(i)}function eS(e,t){return f.Ay.initialize(e,t)}function ek(){return!!new g.A.ne(null,!0).jr(g.d.ie)}function eC(){return f.Ay.ao()}var eN=i(13910),eT=i(73167),e_=i(86984),eI=i(72506);function ej(){if(!f.Ay.rr())return;let e=f.Ay.nn();if(!e)return;e.openSession();let t=I.A.Us.Rs,i=new I.A(t,r.A);i.kr(t.Fs.vr,(s,a)=>{let n=a.lastClick,o=a.trackingString;r.A.info(`Firing push click trigger from ${o} push click at ${n}`);let l=e.$r(n,o),u=function(){eI.B.o().ve(e_.A.wr,[o],l)};e.yr(u,u),i.be(t.Fs.vr,s)}),i.Ds(t.Fs.zr,function(t){e.Fr(t)})}function eD(){f.Ay.rr()&&f.Ay.removeAllSubscriptions()}var eO=i(6646);function eP(e){r.A.setLogger(e)}function eL(e){if(!f.Ay.rr()||""===e||!(0,$.rK)(e,"set signature","signature",!1))return!1;let t=f.Ay.Sr();return!!t&&(t.setSdkAuthenticationSignature(e),!0)}function ez(e){var t;if(f.Ay.rr())return null==(t=f.Ay.Sr())?void 0:t.subscribeToSdkAuthenticationFailures(e)}function eB(){r.A.toggleLogging()}function eM(){let e=f.Ay.p();if(null==e)return void r.A.warn(a.xE);e.clearData();let t=(0,y.HP)(I.A.Us);for(let e=0;e<t.length;e++){let i=t[e],s=I.A.Us[i];new I.A(s,r.A).clearData()}if(f.Ay.rr())for(let e of f.Ay.gr())e.clearData(!0);let i=f.Ay.m();i&&i.fo()}var eR=i(38113),eU=i(7036),eF=i(62553),e$=i(42384),eG=i(91217),eq=i(55413),eH=i(62673),eV=i(41507);function eW(){ed(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)}}"),ep()}function eK(e,t){return null==e||isNaN(e=parseInt(e.toString()))?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(0xff0000&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((0xff000000&e)>>>24)/255*t].join(",")+")")}function eX(e){if(!f.Ay.rr())return!1;if(!(e instanceof eR.A||e instanceof eF.A))return r.A.error(a.fX),!1;let t=e instanceof eF.A?b.w.Mo:b.w.Jr;return eV.A.ea().rt(e,t).W}function eJ(e){if(!f.Ay.rr())return!1;if(!(e instanceof eR.A))return r.A.error(a.fX),!1;let t=eV.A.ea().rt(e,b.w.Kr);if(t){e.zo()||eX(e);for(let i=0;i<t.ue.length;i++)eI.B.o().ve(e_.A.Bo,[e.triggerId],t.ue[i])}return t.W}function eY(e,t,i){if(!f.Ay.rr())return!1;if(!(e instanceof eG.A))return r.A.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let s=b.w.Kr;null!=t&&(s=b.w.Lr);let a=eV.A.ea().rt(e,s,t,i);if(a.W)for(let i=0;i<a.ue.length;i++)eI.B.o().ve(e_.A.Bo,[e.triggerId,t],a.ue[i]);return a.W}let eZ=(e,t,i,s)=>{let a=i.getAttribute("href"),n=i.onclick;return r=>{if(null!=n&&"function"==typeof n&&!1===n.bind(i)(r))return;let o=(0,k.y)(a).abButtonId;if(null!=o&&""!==o||(o=i.getAttribute("id")||void 0),null!=a&&""!==a&&0!==a.indexOf("#")){let n="blank"===(i.getAttribute("target")||"").toLowerCase().replace("_",""),l=s||e.openTarget===eR.A.OpenTarget.BLANK||n,u=()=>{eY(e,o,a),G.uD.openUri(a,l,r)};l?u():e.ll(t,u)}else eY(e,o,a||void 0);return r.stopPropagation(),!1}};var eQ=i(73854);let e0=(e,t)=>{let s={display:{},web:{}},n=function(){return function(){let e=arguments;Promise.resolve().then(i.bind(i,36520)).then(t=>{f.Ay.ao()?t.requestPushPermission(...Array.prototype.slice.call(e)):r.A.error(a.xE)})}},o={requestImmediateDataFlush:function(){let e=arguments;Promise.resolve().then(i.bind(i,6646)).then(({requestImmediateDataFlush:t})=>{f.Ay.ao()?t(...Array.prototype.slice.call(e)):r.A.error(a.xE)})},logCustomEvent:function(){let e=arguments;Promise.resolve().then(i.bind(i,13910)).then(({logCustomEvent:t})=>{if(!f.Ay.ao())return void r.A.error(a.xE);t(...Array.prototype.slice.call(e))})},logPurchase:function(){let e=arguments;Promise.resolve().then(i.bind(i,73167)).then(({logPurchase:t})=>{if(!f.Ay.ao())return void r.A.error(a.xE);t(...Array.prototype.slice.call(e))})},unregisterPush:function(){let e=arguments;Promise.resolve().then(i.bind(i,38957)).then(({unregisterPush:t})=>{f.Ay.ao()?t(...Array.prototype.slice.call(e)):r.A.error(a.xE)})},requestPushPermission:n(),changeUser:function(){let e=arguments;Promise.resolve().then(i.bind(i,57911)).then(({changeUser:t})=>{if(!f.Ay.ao())return void r.A.error(a.xE);t(...Array.prototype.slice.call(e))})}},l=function(e){return function(){o[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,y.HP)(o))s[e]=l(e);let u=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],h=function(e){return function(){let t=q();t&&t[e](...Array.prototype.slice.call(arguments))}},c={};for(let e=0;e<u.length;e++)c[u[e]]=h(u[e]);s.getUser=function(){return c};let d={},p=function(i){return function(){let s=arguments;"function"!=typeof t?d[i](...Array.prototype.slice.call(s)):t(e,function(){d[i](...Array.prototype.slice.call(s))})}},b=s.display;for(let e of(0,y.HP)(d))b[e]=p(e);let g={registerAppboyPushMessages:n()},m=function(e){return function(){g[e](...Array.prototype.slice.call(arguments))}},A=s.web;for(let e of(0,y.HP)(g))A[e]=m(e);return s.NotificationSubscriptionTypes=eQ.A.NotificationSubscriptionTypes,s},e1=(e,t,i)=>{let s=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,a=e.match(new RegExp(s));if(a){let i=`${a[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,a.index+a[0].length)};${i};${e.slice(a.index+a[0].length)}`}return null},e3=(e,t,i)=>{let s=null;if(null!=i){(s=document.createElement("html")).innerHTML=t||"";let e=s.getElementsByTagName("style");for(let t=0;t<e.length;t++)e[t].setAttribute("nonce",i);let a=s.getElementsByTagName("script");for(let e=0;e<a.length;e++){a[e].setAttribute("nonce",i),a[e].innerHTML=a[e].innerHTML.replace(/<style>/g,`<style nonce='${i}'>`);let t=e1(a[e].innerHTML,i,"script");t&&(a[e].innerHTML=t);let s=e1(a[e].innerHTML,i,"style");s&&(a[e].innerHTML=s)}}e.srcdoc=s?s.innerHTML:t||""};function e5(e,t){var i;if(!f.Ay.rr())return!1;if(!(e instanceof eU.A))return r.A.error("button must be an InAppMessageButton object"),!1;if(!(t instanceof eR.A))return r.A.error(a.fX),!1;let s=eV.A.ea().Ur(e,t);if(s.W)for(let a=0;a<s.ue.length;a++)eI.B.o().ve(e_.A.Bo,[t.triggerId,null==(i=e.id)?void 0:i.toString()],s.ue[a]);return s.W}let e4={vo:e=>{let t=e.querySelectorAll(".ab-close-button, .ab-message-button");for(let e=0;e<t.length;e++)t[e].tabIndex=0;if(t.length>0){let i=t[0],s=t[t.length-1];e.addEventListener("keydown",t=>{let a=document.activeElement;t.keyCode===B.c.yo&&(t.shiftKey||a!==s&&a!==e?t.shiftKey&&(a===i||a===e)&&(t.preventDefault(),s.focus()):(t.preventDefault(),i.focus()))})}},ko:(e,t)=>{t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),e?t.setAttribute("aria-labelledby",e):t.setAttribute("aria-label","Modal Message")},wo:(e,t,i)=>{if(e.buttons&&e.buttons.length>0){let s=document.createElement("div");s.className="ab-message-buttons",t.appendChild(s);let a=t.getElementsByClassName("ab-message-text")[0];null!=a&&(a.className+=" ab-with-buttons");let n=s=>a=>(e.ll(t,()=>{e5(s,e),s.clickAction===eR.A.ClickAction.URI&&H(s.uri||"",i||e.openTarget===eR.A.OpenTarget.BLANK,a)}),a.stopPropagation(),!1);for(let t=0;t<e.buttons.length;t++){let i=e.buttons[t],a=document.createElement("button");a.className="ab-message-button",a.setAttribute("type","button"),(0,z.P4)(a,"touchstart");let r=i.text;""===i.text&&(r="\xa0"),a.appendChild(document.createTextNode(r)),e.Oe()||(a.style.backgroundColor=eK(i.backgroundColor),a.style.color=eK(i.textColor),a.style.borderColor=eK(i.borderColor)),a.onclick=n(i),s.appendChild(a)}}}};var e2=i(48434);function e6(e,t,i){let s;if(!f.Ay.rr())return;if(eW(),null==e)return!1;if(e instanceof eF.A)return r.A.info("User received control for a multivariate test, logging to Braze servers."),eX(e),!0;if(!(e instanceof eR.A)||e.constructor===eR.A)return!1;e.mh();let a=e instanceof eG.A;if(a&&!e.trusted&&!f.Ay.nr())return r.A.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==t&&(t=document.body),e.We()&&t.querySelectorAll(".ab-modal-interactions").length>0)return r.A.info(`Cannot show in-app message ${e.message} because another message is being shown.`),!1;if(G.uD.Uo()){let t=G.uD.$o();if(t===G.j3.PORTRAIT&&e.orientation===eR.A.Orientation.LANDSCAPE||t===G.j3.LANDSCAPE&&e.orientation===eR.A.Orientation.PORTRAIT){let i=t===G.j3.PORTRAIT?"portrait":"landscape",s=e.orientation===eR.A.Orientation.PORTRAIT?"portrait":"landscape";return r.A.info(`Not showing ${s} in-app message ${e.message} because the screen is currently ${i}`),!1}}if(!f.Ay.nr()){let t=!1;if(e.buttons&&e.buttons.length>0){let i=e.buttons;for(let e=0;e<i.length;e++)if(i[e].clickAction===eR.A.ClickAction.URI){let s=i[e].uri;t=(0,k.P)(s)}}else e.clickAction===eR.A.ClickAction.URI&&(t=(0,k.P)(e.uri));if(t)return r.A.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}let n=document.createElement("div");if(n.className="ab-iam-root v3",n.className+=(s="",e.animateIn&&(s+=" ab-animate-in"),e.animateOut&&(s+=" ab-animate-out"),e instanceof e$.A?s+=" ab-effect-fullscreen":e instanceof eG.A?s+=" ab-effect-html":e instanceof eq.A?s+=" ab-effect-modal":e instanceof eH.A&&(s+=" ab-effect-slide"),s),e.language&&!a&&(n.lang=e.language),e.Pe()&&(n.id=e.htmlId),f.Ay.ee(f.lw.Jo)&&(n.style.zIndex=(f.Ay.ee(f.lw.Jo)+1).toString()),t.appendChild(n),e.Oe()){let t=document.createElement("style");t.innerHTML=e.css,t.id=e.He(),null!=f.Ay.ee(f.lw.er)&&t.setAttribute("nonce",f.Ay.ee(f.lw.er)),document.getElementsByTagName("head")[0].appendChild(t)}let o=e instanceof eH.A,l=function(e,t,i,s,a,n,o=document.body,l="ltr"){if(e.Ve=document.activeElement,e instanceof eG.A){let i=document.createElement("iframe");
1if(i.setAttribute("title","Modal Message"),a&&(i.style.zIndex=(a+1).toString()),e3(i,e.message,n),i.onload=()=>{let a=i.contentWindow;a.focus();let r=a.document.getElementsByTagName("head")[0];if(null!=r){if(e.Oe()){let t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.He()||"",null!=n&&t.setAttribute("nonce",n),r.appendChild(t)}let t=a.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),r.appendChild(t))}let o=a.document.getElementsByTagName("title");o&&o.length>0&&i.setAttribute("title",o[0].textContent||"");let l=Object.assign(Object.assign({},e0(i,(t,i)=>e.ll(t,i))),{closeMessage:function(){e.ll(i)},logClick:function(){eY(e,...arguments)}});if(a.appboyBridge=l,a.brazeBridge=l,e.Je!==eR.A.Le.Ke){let t=a.document.getElementsByTagName("a");for(let a=0;a<t.length;a++)t[a].onclick=eZ(e,i,t[a],s);let n=a.document.getElementsByTagName("button");for(let t=0;t<n.length;t++)n[t].onclick=eZ(e,i,n[t],s)}let u=a.document.body;if(null!=u){e.Pe()&&(u.id=e.htmlId||"");let t=document.createElement("hidden");t.onclick=l.closeMessage,t.className="ab-programmatic-close-button",u.appendChild(t)}a.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==i.className.indexOf("ab-start-hidden")&&(i.className=i.className.replace("ab-start-hidden",""),t(i))},i.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",U.A.OS===F.u.co){let t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(i),e.Qe=t,t}return e.Qe=i,i}let u=function(e,t,i,s,a,n=document.body,o="ltr"){var l;let u=null,h=document.createElement("div");h.dir=o,h.className="ab-in-app-message ab-start-hidden ab-background",a&&(h.style.zIndex=(a+1).toString()),e.We()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1")),e.Oe()||(h.style.color=eK(e.textColor),h.style.backgroundColor=eK(e.backgroundColor),null==(l=e.backgroundColor)||isNaN(l=parseInt(l.toString()))||(0xff000000&l)>>>24!=0||(h.className+=" ab-no-shadow"));let c=()=>{-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?i(`Cannot show in-app message ${e.message} because another message is being shown.`,eR.A.Ze.Ye):t(h))},d=(t=!0)=>{let i=document.querySelectorAll(".ab-iam-root");i&&0!==i.length||(i=n.querySelectorAll(".ab-iam-root")),i&&i.length>0&&(i[0].classList.remove("ab-iam-img-loading"),u&&(clearTimeout(u),u=null),t?c():r.A.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};if(e.imageStyle===eR.A.ImageStyle.GRAPHIC&&(h.className+=" graphic"),e.orientation===eR.A.Orientation.LANDSCAPE&&(h.className+=" landscape"),null!=e.buttons&&0===e.buttons.length){e.clickAction!==eR.A.ClickAction.NONE&&(h.className+=" ab-clickable");let t=t=>(e.ll(h,()=>{eJ(e),e.clickAction===eR.A.ClickAction.URI&&H(e.uri||"",s||e.openTarget===eR.A.OpenTarget.BLANK,t)}),t.stopPropagation(),!1);h.onclick=t,h.addEventListener("keydown",e=>{if(e.keyCode===B.c.lo||e.keyCode===B.c.do)return t(e)})}let p=M("Close Message",e.Oe()?void 0:eK(e.closeButtonColor),()=>{e.ll(h)},o);h.appendChild(p),a&&(p.style.zIndex=(a+2).toString());let b=document.createElement("div");b.className="ab-message-text",b.dir=o,b.setAttribute("role","article");let g=(e.messageAlignment||e.bo).toLowerCase();b.className+=" "+g+"-aligned";let m=!1,f=document.createElement("div");if(f.className="ab-image-area",e.imageUrl){let t=document.createElement("img");if(t.setAttribute("src",e.imageUrl),e.po(t),0===document.querySelectorAll(".ab-iam-img-loading").length){m=!0;let e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),u=window.setTimeout(()=>{d(!1)},6e4),t.onload=()=>{d()},t.onerror=()=>{d(!1)}}if(e.cropType===eR.A.CropType.CENTER_CROP){let e=document.createElement("div");e.className="ab-center-cropped-img",e.appendChild(t),f.appendChild(e)}else f.appendChild(t);h.appendChild(f),b.className+=" ab-with-image"}else if(e.icon){f.className+=" ab-icon-area";let t=document.createElement("span");t.className="ab-icon",e.Oe()||(t.style.backgroundColor=eK(e.iconBackgroun
1dColor),t.style.color=eK(e.iconColor));let i=document.createElement("i");i.className="fa",i.appendChild(document.createTextNode(e.icon)),i.setAttribute("aria-hidden","true"),t.appendChild(i),f.appendChild(t),h.appendChild(f),b.className+=" ab-with-icon"}if((0,z.P4)(b,"touchstart"),e.header&&e.header.length>0){let t=document.createElement("h1");t.className="ab-message-header",e.ho=W.A.oe(),t.id=e.ho;let i=(e.headerAlignment||eR.A.TextAlignment.CENTER).toLowerCase();t.className+=" "+i+"-aligned",e.Oe()||(t.style.color=eK(e.headerTextColor)),t.appendChild(document.createTextNode(e.header)),b.appendChild(t)}let A=e.jo();return b.appendChild(A),h.appendChild(b),m||c(),e.Qe=h,h}(e,t,i,s,a,o,l);if(e instanceof e$.A||e instanceof eq.A){let t=e instanceof e$.A?"ab-fullscreen":"ab-modal";u.className+=` ${t} ab-centered`,e4.wo(e,u,s),e4.vo(u),e4.ko(e.ho,u)}else if(e instanceof eH.A){let t,i;u.className+=" ab-slideup",u.setAttribute("tabindex","0"),u.setAttribute("role","alert");let s=u.getElementsByClassName("ab-close-button")[0];if(null!=s){let t=(0,z.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",e.Oe()?void 0:eK(e.closeButtonColor));t.setAttribute("class",`ab-chevron ${l}`),s.appendChild(t)}(0,z.sr)(u,z.X.Zt,e=>{u.className+=" ab-swiped-left",null!=s&&null!=s.onclick&&s.onclick(e)}),(0,z.sr)(u,z.X.ae,e=>{u.className+=" ab-swiped-right",null!=s&&null!=s.onclick&&s.onclick(e)}),e.slideFrom===eR.A.SlideFrom.TOP?(t=z.X.xo,i=" ab-swiped-up"):(t=z.X.Co,i=" ab-swiped-down"),(0,z.sr)(u,t,e=>{u.className+=i,null!=s&&null!=s.onclick&&s.onclick(e)})}return u}(e,t=>{if(e.We()&&e.Po()){let i=document.createElement("div");if(i.className="ab-page-blocker",e.Oe()||(i.style.backgroundColor=eK(e.frameColor)),f.Ay.ee(f.lw.Jo)&&(i.style.zIndex=f.Ay.ee(f.lw.Jo).toString()),n.appendChild(i),!f.Ay.ee(f.lw.Oh)){let s=new Date().valueOf();i.onclick=i=>{new Date().valueOf()-s>eR.A.bh&&(e.ll(t),i.stopPropagation())}}n.appendChild(t),t.focus(),e.ah(n)}else if(o){let i=document.querySelectorAll(".ab-slideup"),s=null;for(let e=i.length-1;e>=0;e--)if(i[e]!==t){s=i[e];break}if(e.slideFrom===eR.A.SlideFrom.TOP){let e=0;null!=s&&(e=s.offsetTop+s.offsetHeight),t.style.top=Math.max(e,0)+"px"}else{let e=0;null!=s&&(e=(window.innerHeight||document.documentElement.clientHeight)-s.offsetTop),t.style.bottom=Math.max(e,0)+"px"}}else a&&!f.Ay.ee(f.lw.Oh)&&(0,e2.B)(t)&&t.contentWindow&&t.contentWindow.addEventListener("keydown",function(t){t.keyCode===B.c.Ih&&e.closeMessage()});eX(e),e.dismissType===eR.A.DismissType.AUTO_DISMISS&&setTimeout(()=>{n.contains(t)&&e.ll(t)},e.duration),"function"==typeof i&&i()},e=>{r.A.info(e)},f.Ay.ee(f.lw.To),f.Ay.ee(f.lw.Jo),f.Ay.ee(f.lw.er),t,Y.ea().Ho());return(a||o)&&(n.appendChild(l),e.ah(n)),!0}function e8(e){if(f.Ay.rr())return"function"!=typeof e?null:eV.A.ea().Or(function(t){return e(t[0]),t.slice(1)})}function e7(){if(!f.Ay.rr())return;eW();let e=eV.A.ea();if(null==e.Xr()){let t=e8(e=>e6(e));e.Hr(t)}return e.Xr()}function e9(e){if(f.Ay.rr())return e instanceof eF.A?(r.A.info("Not deferring since this is a ControlMessage."),!1):e instanceof eR.A?eV.A.ea().Ge(e):(r.A.info("Not an instance of InAppMessage, ignoring."),!1)}function te(){if(f.Ay.rr())return eV.A.ea().Ar()}var tt=i(94962);function ti(){if(f.Ay.rr())return tt.A.isPushBlocked()}function ts(){if(f.Ay.rr())return tt.A.isPushPermissionGranted()}function ta(){if(f.Ay.rr())return tt.A.isPushSupported()}var tn=i(36520),tr=i(38957),to=i(92428),tl=i(8723),tu=i(11934);function th(e){if(!f.Ay.rr())return;let t=f.Ay.l();if(t&&!t.Te())return null;let i=tu.A.o().Ie();return i[e]?i[e]:null}function tc(){if(!f.Ay.rr())return;let e=[],t=f.Ay.l();if(t&&!t.Te())return e;let i=tu.A.o().Ie();for(let t in i)e.push(i[t]);return e}function td(e){if(!f.Ay.rr())return;let t=tu.A.o();if(t.Ae()){let t=tc();t&&"function"==typeof e&&e(t)}return t.St(e)}function tp(e){if(!f.Ay.rr())return;if(!e)return!1;let t="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",i=tu.A.o().Ie();if(!i[e])return r.A.info(t),!1;let s=i[e].trackingString;if(!s)return r.A.info(t),!1;let a=tu.A.o().qe();return a[s]?(r.A.info("Not logging another feature flag impression. This ID was already logged this session."),!1):(a[s]=!0,tu.A.o().ze(a),d.A.rt(b.w.Ir,{fid:e,fts:s}).W)}var tb=i(80328);class tg extends tb.z{constructor(e,t,i,s=!1,a=!1,n=-1,r={}){super(r),this.id=e,this.placementId=t,this.html=i,this.xt=s,this.isControl
1=a,this.zt=n,this.id=e,this.placementId=t,this.html=i,this.xt=s,this.isControl=a,this.zt=n,this.kt=!1}At(){return this.isControl}dt(){return{id:this.id,pid:this.placementId,html:this.html,its:this.xt,ic:this.isControl,eat:this.zt,pr:this.properties}}}class tm extends S.A{constructor(e,t,i,s){super(),this.h=e,this.B=t,this.j=i,this.C=s,this.banners={},this.h=e,this.B=t,this.j=i,this.C=s,this.S=10,this.T=null,this.I=null,this.R=new n.A,f.Ay.q(this.R),this.D=null,this.F=null}N(e){if(this.k()&&null!=e&&e.banners){this.banners={};let i=e.banners;for(let e in i){var t;let s=i[e],a=null;null!=s&&null!=s.banner&&(a=new tg((t=s.banner).id,t.placement_id,t.html,t.is_test_send,t.is_control,t.expires_at,t.properties)),a&&(this.banners[e]=a)}this.U(),this.R.L(this.banners)}}M(e,t,i,s=!0){var a;let n=()=>{"function"==typeof i&&i()};if(!this.k())return void(null==(a=this.h)||a.P(()=>{this.M(e,t,i)}));let r=this.B;if(!r)return void n();s&&this.X();let o=r.$({},!0),l=[];for(let t of e)l.push({id:t});o.placements=l;let u=r.A(o,T.A.H.G),h=!1;r.J(o,(s=-1)=>{let a=this.B;if(!a)return void n();let r=new Date().valueOf();T.A.K(this.j,T.A.H.G,r),-1!==s&&u.push(["X-Braze-Req-Tokens-Remaining",s.toString()]),E.A.O({url:`${a.V()}/banners/sync`,headers:u,data:o,W:e=>{if(!a.Y(o,e,u))return h=!0,void n();a.Z(),this.N(e),h=!1,"function"==typeof t&&t()},error:e=>{a._(e,"retrieving banners"),h=!0,n()},tt:(s,n)=>{let r;if(this.F=e,h){let e=this.T;(null==e||e<1e3*this.S)&&(e=1e3*this.S),r=Math.min(3e5,(0,_.C)(1e3*this.S,3*e))}a.st(n,()=>{this.M(e,t,i,!1)},T.A.H.G,e=>this.it(e),()=>this.X(),r)}})},T.A.H.G,i)}et(){return this.F}nt(e,t){let i={id:e.id};return t&&(i.bid=t),d.A.rt(b.w.ot,i).W}X(){null!=this.I&&(clearTimeout(this.I),this.I=null)}it(e){this.X(),this.I=e}ht(){let e={};this.j&&(e=this.j.lt(g.d.ct.ut));let t={};for(let s in e){var i;let a=null;null!=e[s]&&(a=new tg((i=e[s]).id,i.pid,i.html,i.its,i.ic,i.eat,i.pr)),a&&(t[a.placementId]=a)}return t}U(){var e;if(!this.j)return;let t={};for(let i in this.banners){let s=(null==(e=this.banners[i])?void 0:e.dt())||null;t[i]=s}this.j.ft(g.d.ct.ut,t),this.vt()}vt(){var e,t;null==(e=this.j)||e.ft(g.d.ct.gt,null==(t=this.C)?void 0:t.bt())}Bt(){var e;return(null==(e=this.j)?void 0:e.lt(g.d.ct.gt))||null}jt(){return this.D}yt(e){this.D=e}Ct(){var e;let t=null==(e=this.C)?void 0:e.bt(),i=this.Bt();return null==i||t===i}St(e){return this.R.wt(e)}Tt(){var e;return(null==(e=this.j)?void 0:e.lt(g.d.ct.It))||{}}Rt(e){this.j&&this.j.ft(g.d.ct.It,e)}changeUser(){this.qt(),this.X()}clearData(){this.X()}k(){return!!this.h&&(!!this.h.Dt()||(0!==this.h.Ft()&&this.qt(),!1))}qt(){this.banners={},this.j&&(this.j.Nt(g.d.ct.ut),this.j.Nt(g.d.ct.It)),this.R.L({})}}let tf={i:!1,provider:null,o:()=>(tf.t(),tf.provider||(tf.provider=new tm(f.Ay.l(),f.Ay.m(),f.Ay.p(),f.Ay.u()),f.Ay.v(tf.provider)),tf.provider),t:()=>{tf.i||(f.Ay.g(tf),tf.i=!0)},destroy:()=>{tf.provider=null,tf.i=!1}};function tA(e,t){let i=e[t];if(!i)return null;let s=i.zt,a=new Date().valueOf();return -1!==s&&1e3*s<a?(r.A.info(`Banner with ID: ${i.id} and placement ID: ${t} has expired.`),null):i}function tv(e){var t;if(!f.Ay.rr())return;!1===(null==(t=f.Ay.l())?void 0:t.Dt())&&r.A.error(a.FE);let i=tf.o();return i.k()?tA(i.ht(),e):null}function ty(e,t){if(!f.Ay.rr())return;if(!(e instanceof tg))return r.A.error("Banner argument to logBannerClick must be an Banner object."),!1;let i=tf.o(),s=i.ht();return 0===(0,y.HP)(s).length?(r.A.info("Not logging banner click. No banners exist."),!1):s[e.placementId]?i.nt(e,t):(r.A.info(`Not logging banner click for ID ${e.placementId}. The placement ID did not correspond to any banner.`),!1)}let tw="data-ab-banner-placement-id";function tx(e,t){if(e.At()){let t=document.createElement("div");return t.id=e.id,t.className="ab-html-control-banner",t.setAttribute(tw,e.placementId),t}let i=document.createElement("iframe");return i.id=e.id,t&&i.setAttribute("nonce",t),i.className="ab-html-banner",i.setAttribute(tw,e.placementId),i.setAttribute("title","Banner"),e3(i,e.html,t),i.onload=()=>{let t=i.contentWindow,s=t.document.getElementsByTagName("title");s&&s.length>0&&i.setAttribute("title",s[0].textContent||"");let a=Object.assign(Object.assign({},e0(i)),{logClick:function(){ty(e,...arguments)},closeMessage:function(){},setBannerHeight:e=>{isNaN(e)||!isFinite(e)||e<0?r.A.warn(`Invalid banner height: ${e}`):i.style.height=`${e}px`}});
1t.brazeBridge=a,t.appboyBridge=a,t.dispatchEvent(new CustomEvent("ab.BridgeReady"))},i}function tE(e){if(!f.Ay.rr())return;if(!e||e.length<=0)return!1;let t=tf.o(),i=t.ht();if(0===(0,y.HP)(i).length)return r.A.info("Not logging banners impression. No banners exist."),!1;let s=t.Tt(),a=[];for(let t of e){let e=i[t];e?s[e.placementId]?r.A.info(`Not logging banners impression for ID ${t}. This ID was already logged this session.`):(s[e.placementId]=!0,a.push(e.id)):r.A.info(`Not logging banners impression for ID ${t}. The placement ID did not correspond to any banner.`)}return 0!==a.length&&(t.Rt(s),d.A.rt(b.w.ro,{ids:a}).W)}function tS(){let e=document.querySelectorAll(".ab-html-banner, .ab-html-control-banner"),t=[];for(let i=0;i<e.length;i++){let s=e[i],a=s.getAttribute(tw);if(!a)continue;let n=es.oo(s),r=es.no(s);if(n&&r)continue;let o=(0,z.Kz)(s),l=(0,z.K)(s);o&&!n&&ee(s),l&&!r&&ei(s),es.oo(s)&&es.no(s)&&t.push(a)}t.length>0&&tE(t)}function tk(){if(!f.Ay.rr())return;let e={},t=f.Ay.l();if(!1===(null==t?void 0:t.Dt())&&r.A.error(a.FE),!(null==t?void 0:t.Dt()))return e;let i=tf.o().ht();for(let t in i)e[t]=tA(i,t);return e}function tC(e){var t;if(!f.Ay.rr())return;let i=tf.o();if(i.Ct()){let t=tk();t&&"function"==typeof e&&e(t)}let s=i.St(e);if(!i.jt()){let e=null==(t=f.Ay.nn())?void 0:t.rn(()=>{let e=i.et();e&&e.length>0&&i.M(e)});e&&i.yt(e)}return s}function tN(e,t){if(!f.Ay.rr())return;if(!e)return void r.A.error("Not inserting banner: banner was not provided.");if(!t)return void r.A.error("Not inserting banner: parentNode was not provided.");if(!f.Ay.ee(f.lw.re))return void r.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");ed(void 0,"banner",".ab-html-banner{width:100%;height:100%;border:none;display:block}.ab-html-control-banner{width:0;height:0;margin:0;border:none}");let i=tx(e,f.Ay.ee(f.lw.er)),s=tC(s=>{let n=s[e.placementId];n?t.replaceChildren(tx(n,f.Ay.ee(f.lw.er))):function(e){let t=e.getAttribute(a.og);null!=t&&Z(t),e&&e.parentNode&&e.parentNode.removeChild(e)}(i)});s&&i.setAttribute(a.og,s),t.replaceChildren(i),(0,z.P4)(window,"scroll",tS),tS()}},16177:(e,t,i)=>{function s(e){null==e&&(e="");let t=e.split("?").slice(1).join("?"),i={};if(null!=t){let e=t.split("&");for(let t=0;t<e.length;t++){let s=e[t].split("=");""!==s[0]&&(i[s[0]]=s[1])}}return i}function a(e){return!(!e||0!==(e=e.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==e.lastIndexOf("data:",0))}i.d(t,{P:()=>a,y:()=>s})},25485:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(72180),a=i(65455);let n={H:{Yi:"data",Ci:"content_cards/sync",ke:"feature_flags/sync",mn:"template",G:"banners/sync"},vl:e=>null==e?void 0:e.lt(a.d.ct.SE),nm:e=>null==e?void 0:e.lt(a.d.ct._E),rm:(e,t)=>{null==e||e.ft(a.d.ct.SE,t)},um:(e,t)=>{null==e||e.ft(a.d.ct._E,t)},Gu:(e,t)=>{if(!e||!t)return -1;let i=n.vl(e);if(null==i)return -1;let s=i[t];return null==s||isNaN(s)?-1:s},_u:(e,t)=>{let i=s.et;if(!e||!t)return i;let a=n.nm(e);return null==a?i:null==(i=a[t])||isNaN(i)?s.et:i},K:(e,t,i)=>{if(!e||!t)return;let s=n.vl(e);null==s&&(s={}),s[t]=i,n.rm(e,s)},Wu:(e,t,i)=>{if(!e||!t)return;let s=n.nm(e);null==s&&(s={}),s[t]=i,n.um(e,s)},fi:(e,t)=>{e&&t&&n.Wu(e,t,s.et)},sl:(e,t)=>{if(!e||!t)return;let i=n._u(e,t);n.Wu(e,t,i+1)}},r=n},27584:(e,t,i)=>{i.d(t,{DA:()=>c,EQ:()=>o,Jd:()=>h,S3:()=>u,UK:()=>a,YX:()=>n,Zo:()=>r,jU:()=>l});var s=i(67037);function a(e,t=!1){let i=e/1e3;return t&&(i=Math.floor(i)),i}function n(e){return 1e3*e}function r(e){if(null==e)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function o(e){return null!=e&&(0,s.$P)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,""):e}function l(e){return null==e||""===e?null:new Date(e)}function u(e){return null==e||""===e?new Date().valueOf():e}function h(e){return(new Date().valueOf()-e.valueOf())/1e3}function c(e){return(e.valueOf()-new Date().valueOf())/1e3}},31064:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(){}N(e){}changeUser(e=!1){}clearData(e=!1){}}},31120:(e,t,i)=>{i.d(t,{$6:()=>u,V:()=>o,dy:()=>p,jj:()=>h,mY:()=>l,qj:()=>d});var s=i(84456),a=i(85518),n=i(81329),r=i(68711);let o={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",mo:"openLink",uo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},l={Zr:"unknownBrazeAction",Zc:"noPushPrompt"},u=(e,t)=>
1e===l.Zr?`${t} contains an unknown braze action type and will not be displayed.`:"";function h(e){try{let t=e.match(r.nx),i=t?t[0].length:null,a=i?e.substring(i):null;if(null==i||i>e.length-1||!a)return void s.A.error(`Did not find base64 encoded brazeAction in url to process : ${e}`);let o=(0,n.u)(a);return o?JSON.parse(o):void s.A.error(`Failed to decode base64 encoded brazeAction: ${a}`)}catch(t){return void s.A.error(`Failed to process brazeAction URL ${e} : ${(0,a.u)(t)}`)}}function c(e,t){let i=!1;if(t){for(let s of t)if(i=i||e(s))return!0}return!1}function d(e){let t=o.properties.type,i=o.properties.eo;try{if(null==e)return!0;let s=e[t];return s===o.types.io?c(d,e[i]):!(0,r.To)(s)}catch(e){return!0}}function p(e){if(!e||!(0,r.xs)(e))return!1;let t=o.properties.type,i=o.properties.eo,s=e[t];return s===o.types.io?c(p,e[i]):s===o.types.requestPushPermission}},36520:(e,t,i)=>{i.r(t),i.d(t,{requestPushPermission:()=>n});var s=i(53913),a=i(83617);function n(e,t){if(s.Ay.rr())return a.default.ea().subscribe((t,i,a)=>{let n=s.Ay.nn();n&&n.requestImmediateDataFlush(),"function"==typeof e&&e(t,i,a)},t)}},37114:(e,t,i)=>{i.d(t,{A:()=>s});let s={$u:"invalid_api_key",Xu:"blacklisted",Lu:"no_device_identifier",Mu:"invalid_json_response",zu:"empty_response",__:"sdk_auth_error"}},38113:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(53913),a=i(80429),n=i(6016),r=i(68788),o=i(81023),l=i(48434),u=i(72180);class h{constructor(e,t,i,s,a,n,r,l,u,c,d,p,b,g,m,f,A,v,y,w,x,E,S,k,C,N,T,_,I,j,D,O){this.message=e,this.messageAlignment=t,this.slideFrom=i,this.extras=s,this.triggerId=a,this.clickAction=n,this.uri=r,this.openTarget=l,this.dismissType=u,this.duration=c,this.icon=d,this.imageUrl=p,this.imageStyle=b,this.iconColor=g,this.iconBackgroundColor=m,this.backgroundColor=f,this.textColor=A,this.closeButtonColor=v,this.animateIn=y,this.animateOut=w,this.header=x,this.headerAlignment=E,this.headerTextColor=S,this.frameColor=k,this.buttons=C,this.cropType=N,this.orientation=T,this.htmlId=_,this.css=I,this.messageExtras=j,this.language=D,this.altImageText=O,this.message=e,this.messageAlignment=t||h.TextAlignment.CENTER,this.duration=c||5e3,this.slideFrom=i||h.SlideFrom.BOTTOM,this.extras=s||{},this.triggerId=a,this.clickAction=n||h.ClickAction.NONE,this.uri=r,this.openTarget=l||h.OpenTarget.NONE,this.dismissType=u||h.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=b||h.ImageStyle.TOP,this.iconColor=g||h.th.ih,this.iconBackgroundColor=m||h.th.sh,this.backgroundColor=f||h.th.ih,this.textColor=A||h.th.hh,this.closeButtonColor=v||h.th.eh,this.animateIn=y,null==this.animateIn&&(this.animateIn=!0),this.animateOut=w,null==this.animateOut&&(this.animateOut=!0),this.header=x,this.headerAlignment=E||h.TextAlignment.CENTER,this.headerTextColor=S||h.th.hh,this.frameColor=k||h.th.Eh,this.buttons=C||[],this.cropType=N||h.CropType.FIT_CENTER,this.orientation=T,this.htmlId=_,this.css=I,this.isControl=!1,this.messageExtras=j,this.language=D,this.altImageText=O,this.nh=!1,this.kt=!1,this.So=!1,this.Th=!1,this.Qe=null,this.Ve=null,this.ti=new o.A,this.oh=new o.A,this.bo=h.TextAlignment.CENTER}subscribeToClickedEvent(e){return this.ti.wt(e)}subscribeToDismissedEvent(e){return this.oh.wt(e)}removeSubscription(e){this.ti.removeSubscription(e),this.oh.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.ll(this.Qe)}We(){return!0}Po(){return this.We()}Pe(){return null!=this.htmlId&&this.htmlId.length>4}Oe(){return this.Pe()&&null!=this.css&&this.css.length>0}He(){if(this.Pe()&&this.Oe())return this.htmlId+"-css"}Qt(){return!this.kt&&(this.kt=!0,!0)}zo(){return this.kt}$t(e){return!this.So&&(this.So=!0,this.ti.L(),!0)}Kt(){return!this.Th&&(this.Th=!0,this.oh.L(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(".ab-iam-root");if(null==t&&(t=e),this.We()&&null!=t.parentNode){let e=t.parentNode.classList;e&&e.contains(u.y5)&&e.remove(u.y5),document.body.removeEventListener("touchmove",h.rh)}t.className=t.className.replace(h.lh,h.uh)}return this.animateOut||!1}ll(e,t){let i,s;if(null==e)return;this.Qe=null;let n=!1;(i=-1===e.className.indexOf("ab-in-app-message")?e.getElementsByClassName("ab-in-app-message")[0]:e)&&(n=this.hide(i));let r=document.body;null!=r&&(s=r.scrollTop);let o=()=>
1{if(e&&e.parentNode){let t=e.closest(".ab-iam-root");null==t&&(t=e),t.parentNode&&t.parentNode.removeChild(t)}let i=this.He();if(null!=i){let e=document.getElementById(i);e&&e.parentNode&&e.parentNode.removeChild(e)}null!=r&&"Safari"===a.A.browser&&(r.scrollTop=s),t?t():this.Kt()};n?setTimeout(o,h.hr):o(),this.Ve&&this.Ve.focus()}jo(){return document.createTextNode(this.message||"")}po(e){e.setAttribute("alt",this.altImageText||"")}static rh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains("ab-message-text")&&t.scrollHeight>t.clientHeight||document.querySelector(`.${u.y5}`)&&e.cancelable&&e.preventDefault()}ah(e){let t=e.parentNode;this.We()&&null!=t&&this.orientation!==h.Orientation.LANDSCAPE&&(null!=t.classList&&t.classList.add(u.y5),document.body.addEventListener("touchmove",h.rh,!!(0,n.CF)()&&{passive:!1})),e.className+=" "+h.lh}static Ah(e){if(e.keyCode===r.c.Ih&&!s.Ay.ee(s.lw.Oh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let e=document.getElementsByClassName("ab-html-message"),t=!1;for(let i of e){let e=null;(0,l.B)(i)&&i.contentWindow&&(e=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=e&&((0,n.jp)(e),t=!0)}if(!t){let e=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=e&&(0,n.jp)(e)}}}mh(){this.nh||s.Ay.ee(s.lw.Oh)||(document.addEventListener("keydown",h.Ah,!1),s.Ay.Lh(()=>{document.removeEventListener("keydown",h.Ah)}),this.nh=!0)}dt(e){let t={};return e&&(t[h.ss.ra]=this.message,t[h.ss.sa]=this.messageAlignment,t[h.ss._h]=this.slideFrom,t[h.ss.xs]=this.extras,t[h.ss.ta]=this.triggerId,t[h.ss.ia]=this.clickAction,t[h.ss.URI]=this.uri,t[h.ss.oa]=this.openTarget,t[h.ss.pa]=this.dismissType,t[h.ss.ma]=this.duration,t[h.ss.na]=this.icon,t[h.ss.ns]=this.imageUrl,t[h.ss.ua]=this.imageStyle,t[h.ss.ca]=this.iconColor,t[h.ss.fa]=this.iconBackgroundColor,t[h.ss.da]=this.backgroundColor,t[h.ss.la]=this.textColor,t[h.ss.ga]=this.closeButtonColor,t[h.ss.ja]=this.animateIn,t[h.ss.xa]=this.animateOut,t[h.ss.za]=this.header,t[h.ss.ha]=this.headerAlignment,t[h.ss.va]=this.headerTextColor,t[h.ss.wa]=this.frameColor,t[h.ss.ya]=this.buttons,t[h.ss.Sa]=this.cropType,t[h.ss.ba]=this.orientation,t[h.ss.ka]=this.htmlId,t[h.ss.CSS]=this.css,t[h.ss.ts]=e,t[h.ss.qa]=this.messageExtras,t[h.ss.LANGUAGE]=this.language,t[h.ss.ks]=this.altImageText),t}}h.th={hh:0xff333333,ih:0xffffffff,sh:0xff0073d5,Nh:0xffefefef,Rh:0xff555555,Eh:0xc0333333,eh:0xff9b9b9b},h.Ze={Sh:"hd",Ye:"ias",Mh:"of",Dh:"do",Ch:"umt",dh:"tf",Uh:"te"},h.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},h.ClickAction={URI:"URI",NONE:"NONE"},h.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},h.OpenTarget={NONE:"NONE",BLANK:"BLANK"},h.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},h.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},h.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},h.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},h.Le={Tn:"SLIDEUP",An:"MODAL",Io:"MODAL_STYLED",bn:"FULL",Mn:"WEB_HTML",Ke:"HTML",Ao:"HTML_FULL"},h.hr=500,h.bh=200,h.lh="ab-show",h.uh="ab-hide",h.ss={ra:"m",sa:"ma",_h:"sf",xs:"e",ta:"ti",ia:"ca",URI:"u",oa:"oa",pa:"dt",ma:"d",na:"i",ns:"iu",ua:"is",ca:"ic",fa:"ibc",da:"bc",la:"tc",ga:"cbc",ja:"ai",xa:"ao",za:"h",ha:"ha",va:"htc",wa:"fc",ya:"b",Sa:"ct",ba:"o",ka:"hi",CSS:"css",ts:"type",qo:"messageFields",qa:"me",LANGUAGE:"l",ks:"ia"}},38957:(e,t,i)=>{i.r(t),i.d(t,{unregisterPush:()=>n});var s=i(53913),a=i(83617);function n(e,t){if(s.Ay.rr())return a.default.ea().unsubscribe(e,t)}},40019:(e,t,i)=>{i.d(t,{A:()=>o,s:()=>r});var s=i(84456),a=i(37114),n=i(85518);let r=e=>{let t,i,s={},a=e.toString().split("\r\n");if(!a)return s;for(let e of a)e&&(t=e.slice(0,e.indexOf(":")).toLowerCase().trim(),i=e.slice(e.indexOf(":")+1).trim(),s[t]=i);return s},o={O:e=>{let t,i;try{let n=!1;if(window.XMLHttpRequest&&(n=!0),!n)return void s.A.error("This browser does not have any supported ajax options!");t=new XMLHttpRequest;let r=i=>{"function"==typeof e.error&&e.error(t.status),"function"==typeof e.tt&&e.tt(!1,i)};for(let s of(t.onload=()=>{let i=!1;if(4!==t.readyState)return;i=t.status>=200&&t.status<300||304===t.status;let s=t.getAllResponseHeaders();if(i){if("function"==typeof e.W){let i;try{i=JSON.parse(t.responseText)}catch(n){let i={error:""===t.responseText?a.A.zu:a.A.Mu,response:t.responseText};(0,e.W)(i,s)}i&&e.W(i,s)}"function"==typeof e.tt&&e.tt(!0,s)}else r(s)},t.onerror=()=>{r(t.getAllResponseHeaders())},t.ontimeout=()=>{r()},i=JSON.stringify(e.data),t.open("POST",e.url,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers||[]))t.setRequestHeader(s[0],s[1]);t.send(i)}catch(e){s.A.error(`Network request error: ${(0,n.u)(e)}`)}}}},41507:(e,t,i)=>{i.d(t,{A:()=>N});var s=i(40019),a=i(53913),n=i(62553),r=i(91217),o=i(38113),l=i(7036),u=i(59948),h=i(85515),c=i(53362),d=i(41743),p=i(4624),b=i(84456),g=i(81023),m=i(81585),f=i(68711),A=i(31120),v=i(94962),y=i(25485),w=i(65455),x=i(42384),E=i(55413),S=i(62673);class k{constructor(e,t,i,s){this.B=e,this.C=t,this.j=i,this.Cs=s,this.B=e,this.C=t,this.j=i,this.Cs=s,this.Mr=new g.A,a.Ay.q(this.Mr),this.Br=1e3,this._r=6e4,this.qr=null,this.Er=null,this.Gr=null}Nr(){return this.Mr}Or(e){return this.Mr.wt(e)}Xr(){return this.qr}Hr(e){this.qr=e}rt(e,t,i,s){let a,o=new d.A;if(t===p.w.Jr||e instanceof n.A){if(!e.Qt())return b.A.info("This in-app message has already received an impression. Ignoring analytics event."),o}else if((t===p.w.Kr||e instanceof r.A&&t===p.w.Lr)&&!e.$t(s))return b.A.info("This in-app message has already received a click. Ignoring analytics event."),o;return null==(a=e instanceof n.A?{trigger_ids:[e.triggerId]}:this.Qr(e))?o:(e.messageExtras&&(a.message_extras=e.messageExtras),null!=i&&(a.bid=i),u.A.rt(t,a))}Ur(e,t){let i=new d.A;if(!e.$t())return b.A.info("This in-app message button has already received a click. Ignoring analytics event."),i;let s=this.Qr(t);return null==s?i:e.id===l.A.Vr?(b.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=e.id&&
1(s.bid=e.id),u.A.rt(p.w.Lr,s))}Wr(e){let t=e.messageFields;return null!=t&&t.is_push_primer||!1}Yr(e){let t;if(!(e instanceof o.A))return;let i=e=>{if(!e)return;let t=(0,A.jj)(e);if((0,A.qj)(t))return(0,A.$6)(A.mY.Zr,"In-App Message");if((0,A.dy)(t)){let e=v.A.en();if(!e.sn)return v.A.on(e.reason,"In-App Message")}};if(this.Wr(e)){let e=v.A.en();if(!e.sn)return v.A.on(e.reason,"In-App Message")}for(let s of e.buttons||[])if(s.clickAction===o.A.ClickAction.URI&&s.uri&&f.nx.test(s.uri)&&(t=i(s.uri)))return t;return e.clickAction===o.A.ClickAction.URI&&e.uri&&f.nx.test(e.uri)?i(e.uri):void 0}an(e,t){t!==this.Gr&&this.ln(),this.Er=e,this.Gr=t}ln(){null!=this.Er&&(clearTimeout(this.Er),this.Er=null,this.Gr=null)}un(e,t,i,a){let n=this.B;if(!n)return;this.Gr&&e.triggerId!==this.Gr&&(this.ln(),y.A.fi(this.j,y.A.H.mn));let r=n.cn(!1),o=n.$(r);o.template={trigger_id:e.triggerId,trigger_event_type:t},null!=i&&(o.template.data=i.pn());let l=n.A(o,y.A.H.mn);n.J(o,(n=-1)=>{let r=this.B;if(!r)return;let u=new Date().valueOf();y.A.K(this.j,y.A.H.mn,u),-1!==n&&l.push(["X-Braze-Req-Tokens-Remaining",n.toString()]);let d,p,g=!1;s.A.O({url:`${r.V()}/template/`,data:o,headers:l,W:t=>{if(!r.Y(o,t,l))return void("function"==typeof e.hn&&e.hn());if(r.Z(),null==t||null==t.templated_message)return;let i=t.templated_message;if(i.type!==m.A.gn.fn)return;let s=(0,h.g)(i.data);if(null==s)return;let a=this.Yr(s);if(a)return b.A.error(a),void("function"==typeof e.hn&&e.hn());"function"==typeof e.dn&&e.dn(s)},error:t=>{g=!0,d=t,p=`getting user personalization for message ${e.triggerId}.`},tt:(s,n)=>{if(new Date().valueOf()-e.jn<e.vn){let s=0;if(g){let t=Math.min(e.vn,this._r),i=this.Br;null==a&&(a=i),s=Math.min(t,(0,c.C)(i,3*a))}r.st(n,()=>{this.un(e,t,i,s)},y.A.H.mn,t=>this.an(t,e.triggerId),()=>this.ln(),s)}g&&r._(d,p)}})},y.A.H.mn)}Qr(e){if(null==e.triggerId)return b.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let t={};return null!=e.triggerId&&(t.trigger_ids=[e.triggerId]),t}Ge(e){return!!this.j&&!(!(e&&e instanceof o.A&&e.constructor!==o.A)||e instanceof n.A)&&this.j.ft(w.d.ct.yn,e.dt())}Ar(){let e;if(!this.j)return null;let t=this.j.lt(w.d.ct.yn);if(!t)return null;switch(t.type){case o.A.Le.bn:e=x.A.In(t);break;case o.A.Le.Mn:case o.A.Le.Ke:case o.A.Le.Ao:e=r.A.In(t);break;case o.A.Le.An:case o.A.Le.Io:e=E.A.In(t);break;case o.A.Le.Tn:e=S.A.In(t)}return e&&this.kn(),e}kn(){this.j&&this.j.Nt(w.d.ct.yn)}}let C={aa:null,i:!1,ea:()=>(C.t(),C.aa||(C.aa=new k(a.Ay.m(),a.Ay.u(),a.Ay.p(),a.Ay.ir())),C.aa),t:()=>{C.i||(a.Ay.g(C),C.i=!0)},destroy:()=>{C.aa=null,C.i=!1}},N=C},41743:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e=!1,t=[]){this.W=e,this.ue=t,this.W=e,this.ue=t}Vt(e){this.W=this.W&&e.W,this.ue.push(...e.ue)}}},42384:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(85515),a=i(38113);class n extends a.A{constructor(e,t,i,s,n,r,o,l,u,h,c,d,p,b,g,m,f,A,v,y,w,x,E,S,k,C,N,T,_,I,j){super(e,t,void 0,i,s,n,r,o,l=l||a.A.DismissType.MANUAL,u,h,c,d,p,b,g,m,f,A,v,y,w,x,E,S,k=k||a.A.CropType.CENTER_CROP,C=C||a.A.Orientation.PORTRAIT,N,T,_,I,j),this.bo=a.A.TextAlignment.CENTER}dt(){return super.dt(n.es)}static In(e){return new n(e[a.A.ss.ra],e[a.A.ss.sa],e[a.A.ss.xs],e[a.A.ss.ta],e[a.A.ss.ia],e[a.A.ss.URI],e[a.A.ss.oa],e[a.A.ss.pa],e[a.A.ss.ma],e[a.A.ss.na],e[a.A.ss.ns],e[a.A.ss.ua],e[a.A.ss.ca],e[a.A.ss.fa],e[a.A.ss.da],e[a.A.ss.la],e[a.A.ss.ga],e[a.A.ss.ja],e[a.A.ss.xa],e[a.A.ss.za],e[a.A.ss.ha],e[a.A.ss.va],e[a.A.ss.wa],(0,s.x)(e[a.A.ss.ya]),e[a.A.ss.Sa],e[a.A.ss.ba],e[a.A.ss.ka],e[a.A.ss.CSS],e[a.A.ss.qa],e[a.A.ss.LANGUAGE],e[a.A.ss.ks])}}n.es=a.A.Le.bn},48434:(e,t,i)=>{i.d(t,{B:()=>s});let s=e=>null!==e&&"IFRAME"===e.tagName},53362:(e,t,i)=>{i.d(t,{C:()=>s});let s=(e,t)=>(e=Math.ceil(e),Math.floor(Math.random()*((t=Math.floor(t))-e+1))+e)},53913:(e,t,i)=>{i.d(t,{lw:()=>H,Ay:()=>W});var s=i(65455),a=i(81023),n=i(12468),r=i(84456);class o{constructor(e,t,i){this.j=e,this.gh=t,this.ph=i,this.j=e,this.gh=t||!1,this.ph=i,this.Fh=new a.A,this.kh=0,this.fh=1}wh(){return this.gh}jh(){return this.j.lt(s.d.ct.xh)}setSdkAuthenticationSignature(e){let t=this.jh();this.j.ft(s.d.ct.xh,e);let i=n.A.Us.Rs;new n.A(i,r.A).setItem(i.Fs.qh,this.fh,e),t!==e&&this.Z()}yh(){this.j.Nt(s.d.ct.xh);let e=n.A.Us.Rs;new n.A(e,r.A).be(e.Fs.qh,this.fh)}subscribeToSdkAuthenticationFailures(e){return this.ph.wt(e)}Bh(e){this.ph.L(e)}Gh(){this.Fh.removeAllSubscriptions()}Hh(){this.kh+=1}Jh(){return this.kh}Z(){this.kh=0}}var l=i(31064),u=i(80429);class h{constructor(e){this.id=e,this.id=e}pn(){let e={};return null!=this.browser&&(e.browser=this.browser),null!=this.ec&&(e.browser_version=this.ec),null!=this.os&&(e.os_version=this.os),null!=this.resolution&&(e.resolution=this.resolution),null!=this.language&&(e.locale=this.language),null!=this.timeZone&&(e.time_zone=this.timeZone),null!=this.userAgent&&(e.user_agent=this.userAgent),e}}var c=i(71647),d=i(95417),p=i(15465),b=i(67037),g=i(85518);class m{constructor(e,t){this.j=e,this.tc=t,this.j=e,null==t&&(t=(0,b.zu)(c.A)),this.tc=t}fe(e=!0){let t=this.j.tu(s.d.iu.Oa);null==t&&(t=new d.A(p.A.oe()),e&&this.j.uu(s.d.iu.Oa,t));let i=new h(t.eu);for(let e=0;e<this.tc.length;e++)switch(this.tc[e]){case c.A.BROWSER:i.browser=u.A.browser;break;case c.A.BROWSER_VERSION:i.ec=u.A.version;break;case c.A.OS:i.os=this.rc();break;case c.A.RESOLUTION:i.sc=screen.width+"x"+screen.height;break;case c.A.LANGUAGE:i.language=u.A.language;break;case c.A.TIME_ZONE:i.timeZone=this.oc(new Date);break;case c.A.USER_AGENT:i.userAgent=u.A.userAgent}return i}rc(){if(u.A.nc())return u.A.nc();let e=this.j.lt(s.d.ct.ac);return e&&e.os_version?e.os_version:u.A.rc()}oc(e){let t=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=e&&""!==e)return e}}catch(e){r.A.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,g.u)(e)),t=!0}if(t)return"";let i=e.getTimezoneOffset();return this.cc(i)}cc(e){let t=Math.trunc(e/60),i=Math.trunc(e%60),s="GMT";return 0!==e&&(s+=(e<0?"+":"-")+(("00"+Math.abs(t)).slice(-2)+":")+("00"+Math.abs(i)).slice(-2)),s}}var f=i(37114),A=i(94865),v=i(27584),y=i(59948),w=i(4624),x=i(25485),E=i(72180),S=i(62637),k=i(40019);class C{constructor(e,t,i,s,a,n,r,o,l,u,h,c){this.Dn=e,this.j=t,this.La=i,this.Cs=s,this.C=a,this.h=n,this.Pn=r,this.Ua=o,this.Ra=l,this.Pa=u,this.appVersion=h,this.Ru=c,this.qu=e=>null==e?"":`${e} `,this.Dn=e,this.j=t,this.La=i,this.Cs=s,this.C=a,this.h=n,this.Pn=r,this.Ua=o,this.Ra=l,this.Pa=u,this.appVersion=h,this.Ru=c,this.Du=["npm"],this.Tu={}}$(e,t=!1,i=!1){let a=this.Dn.fe(!i),n=a.pn(),r=this.j.lt(s.d.ct.ac);(0,b.n4)(r,n)||(e.device=n),e.api_key=this.Pn,e.time=(0,v.UK)(new Date().valueOf(),!0);let o=this.j.lt(s.d.ct.ku)||[],l=this.j.lt(s.d.ct.wu)||"";this.Du.length>0&&(!(0,b.n4)(o,this.Du)||l!==this.C.bt())&&(e.sdk_metadata=this.Du),e.sdk_version=this.Ra,this.Pa&&(e.sdk_flavor=this.Pa),e.app_version=this.appVersion,e.app_version_code=this.Ru,e.device_id=a.id;let u=this.Cs.getUserId();if(t&&null!==u&&(e.user_id=u),!u&&!this.La.wh()){let t=(0,S.b)(this.j);t&&(e.alias=t)}return e}Y(e,t,i){let s=t.auth_error,a=t.error;if(!s&&!a)return!0;
1if(s){let t;this.La.Hh();let a={errorCode:s.error_code};for(let e of i)(0,b.cy)(e)&&"X-Braze-Auth-Signature"===e[0]&&(a.signature=e[1]);e.respond_with&&e.respond_with.user_id?a.userId=e.respond_with.user_id:e.user_id&&(a.userId=e.user_id);let n=s.reason;return n?(a.reason=n,t=`due to ${n}`):t=`with error code ${s.error_code}.`,this.La.wh()||(t+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),r.A.error(`SDK Authentication failed ${t}`),this.Bu(e.events||[],e.attributes||[]),this.La.Bh(a),!1}if(a){let i,s=a;switch(s){case f.A.zu:return i="Received successful response with empty body.",y.A.rt(w.w.ju,{e:i}),r.A.info(i),!1;case f.A.Mu:return i="Received successful response with invalid JSON",y.A.rt(w.w.ju,{e:i+": "+t.response}),r.A.info(i),!1;case f.A.$u:s=`The API key "${e.api_key}" is invalid for the baseUrl ${this.Ua}`;break;case f.A.Xu:s="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case f.A.Lu:s="No device identifier. Please contact [email protected]"}r.A.error("Backend error: "+s)}return!1}Fu(e,t,i){return!!(e&&0!==e.length||t&&0!==t.length||i)}Ku(e,t,i,s=!1){let a=[],n=e=>e||"",r=n(this.Cs.getUserId()),o=this.cn(e),l=[],u=[],h,c=null;if(t.length>0){let e=[];for(let i of t){if(h=i.pn(),this.La.wh()){if(r&&!h.user_id){c||(c={}),c.events||(c.events=[]),c.events.push(h);continue}if(n(h.user_id)!==r){u.push(h);continue}}e.push(h)}e.length>0&&(o.events=e)}if(i.length>0){let e=[];for(let t of i)t&&(this.La.wh()&&n(t.user_id)!==r?l.push(t):e.push(t));e.length>0&&(o.attributes=e)}if(this.Bu(u,l),o=this.$(o,!1,s),c){let e={requestData:c=this.$(c,!1,s),headers:this.A(c,x.A.H.Yi)};a.push(e)}if(o&&!this.Fu(o.events,o.attributes,e))return c?a:null;let d={requestData:o,headers:this.A(o,x.A.H.Yi)};return a.push(d),a}Bu(e,t){if(e){let t=[];for(let i of e){let e=A.A.fromJson(i);e.time=(0,v.YX)(e.time),t.push(e)}this.j.Go(t)}if(t)for(let e of t)this.j.Pu(e)}_(e,t){let i="HTTP error ";null!=e&&(i+=e+" "),i+=t,r.A.error(i)}xu(e){return y.A.rt(w.w.Hu,{n:e})}cn(e,t){let i={};e&&(i.triggers=!0);let s=null!=t?t:this.Cs.getUserId();if(s&&(i.user_id=s),!i.user_id&&!this.La.wh()){let e=(0,S.b)(this.j);e&&(i.alias=e)}return i.config={config_time:this.h.Ft()},{respond_with:i}}Ou(e){let t=new Date().valueOf(),i=E.mO.toString(),s=x.A.Gu(this.j,e);return -1!==s&&(i=(t-s).toString()),i}A(e,t,i=!1){let s=[["X-Braze-Api-Key",this.Pn]],a=this.Ou(t);s.push(["X-Braze-Last-Req-Ms-Ago",a]);let n=x.A._u(this.j,t).toString();s.push(["X-Braze-Req-Attempt",n]);let r=!1;if(null!=e.respond_with&&e.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),r=!0),t===x.A.H.Ci){s.push(["X-Braze-ContentCardsRequest","true"]);let e=x.A._u(this.j,x.A.H.Ci);e&&!i||(e=1,x.A.Wu(this.j,x.A.H.Ci,e));let t=Math.max(0,e-1);s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),r=!0}if(t===x.A.H.ke&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),r=!0),r&&s.push(["X-Braze-DataRequest","true"]),this.La.wh()){let e=this.La.jh();null!=e&&s.push(["X-Braze-Auth-Signature",e])}return s}Yu(e,t,i,s){if(this.Tu[s])return;let a=window.setTimeout(()=>{r.A.info(`Retrying rate limited ${this.qu(s)}SDK request.`),this.J(t,i,s)},e);this.Tu[s]=a}fo(){for(let e in this.Tu){let t=this.Tu[e];window.clearTimeout(t)}this.Tu={}}J(e,t,i,a){if(!this.Ju(i))return r.A.info(`${this.qu(i)}SDK request being rate limited.`),void("function"==typeof a&&a());let n=this.Qu();if(!n.Vu)return this.Yu(n.Zu,e,t,i),void r.A.info(`${this.qu(i)}SDK request being rate limited. Request will be retried in ${Math.trunc(n.Zu/1e3)} seconds.`);this.j.ft(s.d.ct.tl,new Date().valueOf());let o=e.device;o&&o.os_version instanceof Promise?o.os_version.then(i=>{e.device.os_version=i,t(n.el)}):t(n.el)}il(e){let t=e?(0,k.s)(e):null;if(!t||!t["retry-after"])return null;let i=t["retry-after"];return isNaN(i)&&!isNaN(Date.parse(i))?{type:"date",value:Date.parse(i)}:isNaN(parseFloat(i.toString()))?(y.A.rt(w.w.ju,{e:"Received unexpected value for retry-after header in /sync response: "+i}),null):{type:"timestamp",value:1e3*parseFloat(i.toString())}}st(e,t,i,s,a,n){let r;if(x.A._u(this.j,i)>=E.uR)return;n=n||0;let o=this.il(e);a();let l=e=>{s(window.setTimeout(()=>{t()},e)),x.A.sl(this.j,i)};if(o&&!isNaN(o.value)){switch(o.type){case"date":(r=o.value-new Date().getTime()+n)<0&&t();break;case"timestamp":r=o.value+n}l(r)}else n?l(n):x.A.fi(this.j,i)}rl(e){var t;null==(t=this.j)||t.ft(s.d.ct.ol,e)}al(e,t){let i=this.hl();null==i&&(i={}),i[e]=t,this.j.ft(s.d.ct.ul,i)}cl(){var e;return null==(e=this.j)?void 0:e.lt(s.d.ct.ol)}hl(){var e;return null==(e=this.j)?void 0:e.lt(s.d.ct.ul)}dl(e,t,i,s,a=""){let n;if(a){let e=this.hl();n=null==e||isNaN(e[a])?t:e[a]}else(null==(n=this.cl())||isNaN(n))&&(n=t);return Math.min(n+(e-s)/1e3/i,t)}fl(e,t){return Math.max(0,(1-e)*t*1e3)}ml(e,t=""){var i,a,n,r,o;let l={Vu:!0,el:-1,Zu:0};if(null==e&&(e=!0),!e&&!t)return l;let u,h,c=null;if(e)c=null==(i=this.j)?void 0:i.lt(s.d.ct.tl);else{let e=x.A.vl(this.j);if(null==e||null==e[t])return l;c=e[t]}if(null==c||isNaN(c)||(e?(u=(null==(a=this.h)?void 0:a.Rl())||-1,h=(null==(n=this.h)?void 0:n.gl())||-1):(u=(null==(r=this.h)?void 0:r.bl(t))||-1,h=(null==(o=this.h)?void 0:o.ql(t))||-1),-1===u||-1===h))return l;let d=new Date().valueOf(),p=this.dl(d,u,h,c,t);return p<1?(l.Vu=!1,l.Zu=this.fl(p,h)):(l.el=p=Math.trunc(p)-1,e?this.rl(p):this.al(t,p)),l}Qu(){return this.ml(!0)}Ju(e){let t=this.ml(!1,e);return!(t&&!t.Vu)}Z(){this.La.Z()}V(){return this.Ua}addSdkMetadata(e){for(let t of e)-1===this.Du.indexOf(t)&&this.Du.push(t)}}var N=i(53362),T=i(41743),_=i(94962);class I{constructor(e,t,i,s,n,r,o,l,u,h){this.Pn=e,this.baseUrl=t,this.C=i,this.Dn=s,this.Cs=n,this.h=r,this.j=o,this.fc=l,this.La=u,this.B=h,this.Pn=e,this.baseUrl=t,this.vc=0,this.bE=o.dE()||0,this.bc=null,this.C=i,this.Dn=s,this.Cs=n,this.h=r,this.j=o,this.La=u,this.B=h,this.fc=l,this.wc=new a.A,this.kc=null,this.yc=50,this.jc=!1,this.Sc=!1}Ac(e,t){return!e&&!t&&this.La.Jh()>=this.yc}Dc(e){let t=this.C.Ul();if(e.length>0){let i=this.Cs.getUserId();for(let s of e){let e=!s.userId&&!i||s.userId===i;s.type===w.w.sm&&e&&(t=!0)}}return t}$c(e=!1,t=!0,i,a,n,o=!1,l=!1){t&&this.qc();let u=this.j.RE(),h=this.j.IE(),c=!1,d=(e,r,o=-1)=>{let l=new Date().valueOf();x.A.K(this.j,x.A.H.Yi,l),-1!==o&&r.push(["X-Braze-Req-Tokens-Remaining",o.toString()]);let u=!1;k.A.O({url:this.baseUrl+"/data/",data:e,headers:r,W:t=>{null!=e.respond_with&&e.respond_with.triggers&&(this.vc=Math.max(this.vc-1,0)),this.B.Y(e,t,r)?(this.La.Z(),this.h.Nl(t),null!=e.respond_with&&e.respond_with.user_id!=this.Cs.getUserId()||(null!=e.device&&this.j.ft(s.d.ct.ac,e.device),null!=e.sdk_metadata&&(this.j.ft(s.d.ct.ku,e.sdk_metadata),this.j.ft(s.d.ct.wu,this.C.bt())),this.fc(t),x.A.Wu(this.j,x.A.H.Yi,1
1),"function"==typeof i&&i())):t.auth_error&&(u=!0)},error:()=>{u=!0,null!=e.respond_with&&e.respond_with.triggers&&(this.vc=Math.max(this.vc-1,0)),this.B.Bu(e.events,e.attributes),"function"==typeof a&&a()},tt:(e,i)=>{"function"==typeof n&&n(!u);let s=this.B.il(i),a=0;if(s)switch(s.type){case"date":a=Math.max(s.value-new Date().valueOf(),0);break;case"timestamp":a=s.value}if(t&&!c){if(u){x.A.sl(this.j,x.A.H.Yi);let e=this.bc;(null==e||e<1e3*this.bE)&&(e=1e3*this.bE);let t=Math.min(3e5,(0,N.C)(1e3*this.bE,3*e))+a;this.Cc(t)}else this.Cc(Math.max(1e3*this.bE,a));c=!0}}})},p=this.Dc(u),b=e||p;if(this.Ac(o,p))return void r.A.info("Declining to flush data due to 50 consecutive authentication failures");if(t&&!this.B.Fu(u,h,b))return this.Cc(),void("function"==typeof n&&n(!0));let g=this.B.Ku(b,u,h,l);b&&this.vc++;let m=!1;if(g)for(let e of g)this.B.J(e.requestData,t=>d(e.requestData,e.headers,t),x.A.H.Yi,a),m=!0;this.La.wh()&&t&&!m?this.Cc():p&&(r.A.info("Invoking new session subscriptions"),this.wc.L(),this.Sc=!0)}Mc(){return this.vc>0}Cc(e=1e3*this.bE){this.jc||(this.qc(),this.kc=window.setTimeout(()=>{if(document.hidden){let e="visibilitychange",t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.$c())};document.addEventListener(e,t,!1)}else this.$c()},e),this.bc=e)}qc(){null!=this.kc&&(clearTimeout(this.kc),this.kc=null)}initialize(){this.jc=!1,this.Cc()}destroy(){this.wc.removeAllSubscriptions(),this.La.Gh(),this.qc(),this.jc=!0,this.$c(void 0,!1,void 0,void 0,void 0,void 0,!0),this.kc=null,this.Sc=!1}rn(e){return this.Sc?(e(),null):this.wc.wt(e)}openSession(){let e=this.C.bt()!==this.C.Fo();e&&(this.j.hE(s.d.iu.Oa),this.j.hE(s.d.iu.su)),this.$c(!1,void 0,()=>{e&&(this.j.Nt(s.d.ct.Ne),this.j.Nt(s.d.ct.It))}),this.Au(),e&&Promise.resolve().then(i.bind(i,83617)).then(e=>{if(this.jc)return;let t=e.default.ea();if(null!=t&&(_.A.isPushPermissionGranted()||_.A.isPushBlocked())){let e=()=>{t.Rn()?r.A.info("Push token maintenance is disabled, not refreshing token for backend."):t.subscribe()},i=()=>{let t=this.j.lt(s.d.ct.Wo);(null==t||t)&&e()},a=n.A.Us.Rs;new n.A(a,r.A).kr(a.Fs.cu,(t,i)=>{i&&e()},i)}})}Tc(){this.j.Nt(s.d.ct.Se),this.j.Nt(s.d.ct.Ps),this.j.Nt(s.d.ct.yn)}Lc(){var e,t;this.j.Nt(s.d.ct.tl),this.j.Nt(s.d.ct.SE);let i=x.A.H;for(let t in i){let s=i[t];this.B.al(s,null==(e=this.h)?void 0:e.bl(s))}this.B.rl(null==(t=this.h)?void 0:t.Rl())}changeUser(e,t,i){let a=this.Cs.getUserId();if(a!==e){this.C.tm(),this.Tc(),function(){let e=document.querySelectorAll(".ab-iam-root");for(let t=0;t<e.length;t++){let i=e[t];if(i.id){let e=i.id+"-css",t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}i.parentNode&&i.parentNode.removeChild(i)}let t=document.getElementsByClassName(E.y5);for(let e=0;e<t.length;e++){let i=t[e].classList;i.contains(E.y5)&&i.remove(E.y5)}}(),null!=a&&this.$c(void 0,!1,void 0,void 0,void 0),this.Cs.ou(e),i?this.La.setSdkAuthenticationSignature(i):this.La.yh();for(let e=0;e<t.length;e++)t[e].changeUser(null==a);this.B.fo(),null!=a&&this.j.Nt(s.d.ct.rE),this.j.Nt(s.d.ct.ac),this.j.Nt(s.d.ct.uE),this.Lc(),this.openSession(),r.A.info('Changed user to "'+e+'".')}else{let t="Doing nothing.";i&&this.La.jh()!==i&&(this.La.setSdkAuthenticationSignature(i),t="Updated SDK authentication signature"),r.A.info(`Current user is already ${e}. ${t}`)}}requestImmediateDataFlush(e){this.qc(),this.C.Fo(),this.$c(void 0,void 0,void 0,()=>{r.A.error("Failed to flush data, request will be retried automatically.")},e,!0)}yr(e,t){this.C.Fo(),r.A.info("Requesting explicit trigger refresh."),this.$c(!0,void 0,e,t)}du(e,t){let i=w.w.Rc,a={a:e,l:t},n=y.A.rt(i,a);return n&&(r.A.info(`Logged alias ${e} with label ${t}`),this.j.ft(s.d.ct.uE,a)),n}bu(e,t,i){if(this.h.hu(t))return r.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new T.A;let s=y.A.rt(e,{key:t,value:i});if(s){let e="object"==typeof i?JSON.stringify(i,null,2):i;r.A.info(`Logged custom attribute: ${t} with value: ${e}`)}return s}setLastKnownLocation(e,t,i,s,a,n){let o={latitude:t,longitude:i};null!=s&&(o.altitude=s),null!=a&&(o.ll_accuracy=a),null!=n&&(o.alt_accuracy=n);let l=y.A.rt(w.w.Fc,o,e||void 0);return l&&r.A.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}$r(e,t){let i=this.C.Fo();return new A.A(this.Cs.getUserId(),w.w.Ic,e,i,{cid:t})}Pc(e,t){return new n.A(e,t)}Au(){let e=n.A.Us.Rs;this.Pc(e,r.A).setItem(e.Fs.Yi,1,{baseUrl:this.baseUrl,data:{api_key:this.Pn,device_id:this.Dn.fe().id},userId:this.Cs.getUserId(),sdkAuthEnabled:this.La.wh()})}Fr(e){for(let t of e)if(t.api_key===this.Pn)this.B.Bu(t.events,t.attributes);else{let e=n.A.Us.Rs;new n.A(e,r.A).setItem(e.Fs.zr,p.A.oe(),t)}}Iu(e,t,i){let s,a;return this.h.hu(e)?(r.A.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new T.A):(null===t&&null===i?(s=w.w.xc,a={key:e}):(s=w.w.Nc,a={key:e,latitude:t,longitude:i}),y.A.rt(s,a))}Cu(e,t){return y.A.rt(w.w.Oc,{group_id:e,status:t})}}class j{constructor(e=0,t=[],i=[],s=[],a=null,n=null,r={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:E.uy,refill_rate:E.Fn,endpoint_overrides:{}},u=null,h=null){this.Dl=e,this.Il=t,this.Ml=i,this.Sl=s,this.Pl=a,this.xl=n,this.Gl=r,this.je=o,this.kl=l,this.banners=u,this.dust=h,this.Dl=e,this.Il=t,this.Ml=i,this.Sl=s,this.Pl=a,this.xl=n,this.Gl=r,this.je=o,this.kl=l,this.banners=u,this.dust=h}dt(){return{s:"6.4.0",l:this.Dl,e:this.Il,a:this.Ml,p:this.Sl,m:this.Pl,v:this.xl,c:this.Gl,f:this.je,grl:this.kl,b:this.banners,d:this.dust}}static Vo(e){let t=e.l;return"6.4.0"!==e.s&&(t=0),new j(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl,e.b,e.d)}}class D{constructor(e){this.j=e,this.j=e,this.El=new a.A,this.wl=new a.A,this.Cl=new a.A,this.yl=new a.A,this.Ll=new a.A,this.Tl=null,this.Bl=null}Fl(){if(null==this.Bl){let e=this.j.lt(s.d.ct.jl);this.Bl=null!=e?j.Vo(e):new j}return this.Bl}Ft(){return this.Fl().Dl}Nl(e){var t,i,a,n;if(null!=e&&null!=e.config){let r=e.config;if(r.time>this.Fl().Dl){let e=e=>null==e?this.Fl().kl:e,o=new j(r.time,r.events_blacklist,r.attributes_blacklist,r.purchases_blacklist,r.messaging_session_timeout,r.vapid_public_key,r.content_cards,r.feature_flags,e(r.global_request_rate_limit),r.banners,r.dust),l=!1;null!=o.xl&&this.Zn()!==o.xl&&(l=!0);let u=!1;null!=o.Gl.enabled&&this.wi()!==o.Gl.enabled&&(u=!0);let h=!1;null!=o.je.enabled&&this.Te()!==o.je.enabled&&(h=!0);let c=!1;null!=(null==(t=o.banners)?void 0:t.enabled)&&this.Dt()!==(null==(i=o.banners)?void 0:i.enabled)&&(c=!0);let d=!1;null!=(null==(a=o.dust)?void 0:a.enabled)&&this.Xi()!==(null==(n=o.dust)?void 0:n.enabled)&&(d=!0),this.Bl=o,this.j.ft(s.d.ct.jl,o.dt()),l&&this.El.L(),u&&this.wl.L(),h&&this.Cl.L(),c&&this.yl.L(),d&&this.Ll.L()}}}$n(e){let t=this.El.wt(e);return this.Tl&&this.El.removeSubscription(this.Tl),this.Tl=t,t}bi(e){return this.wl.wt(e)}$e(e){return this.Cl.wt(e)}P(e){return this.yl.wt(e)}Tr(e){return this.Ll.wt(e)}ge(e){return -1!==this.Fl().Il.indexOf(e)}hu(e){return -1!==this.Fl().Ml.indexOf(e)}Dr(e){return -1!==this.Fl().Sl.indexOf(e)}Kl(){return this.Fl().Pl}Zn(){return this.Fl().xl}wi(){return this.Fl().Gl.enabled||!1}_l(){let e=this.Fl().kl;return!(!e||null==e.enabled)&&e.enabled}Rl(){if(!this._l())return -1;let e=this.Fl().kl;return null==e.capacity||e.capacity<10?-1:e.capacity}
1gl(){if(!this._l())return -1;let e=this.Fl().kl;return null==e.refill_rate||e.refill_rate<=0?-1:e.refill_rate}Al(e){let t=this.Fl().kl.endpoint_overrides;return null==t?null:t[e]}bl(e){let t=this.Al(e);return null==t||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}ql(e){let t=this.Al(e);return null==t||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}Te(){return this.Fl().je.enabled&&null==this.Be()?(y.A.rt(w.w.ju,{e:"Missing feature flag refresh_rate_limit."}),!1):this.Fl().je.enabled||!1}Be(){return this.Fl().je.refresh_rate_limit}Dt(){var e;return(null==(e=this.Fl().banners)?void 0:e.enabled)||null}te(){var e;return(null==(e=this.Fl().banners)?void 0:e.max_placements)||0}Xi(){var e;return(null==(e=this.Fl().dust)?void 0:e.enabled)||!1}}class O{constructor(e,t,i,s){this.j=e,this.Cs=t,this.h=i,this.zl=s,this.j=e,this.Cs=t,this.h=i,this.Hl=1e3,(null==s||isNaN(s))&&(s=1800),s<this.Hl/1e3&&(r.A.info("Specified session timeout of "+s+"s is too small, using the minimum session timeout of "+this.Hl/1e3+"s instead."),s=this.Hl/1e3),this.zl=s}Wl(e,t){return new A.A(this.Cs.getUserId(),w.w.Jl,e,t.eu,{d:(0,v.UK)(e-t.Ol)})}bt(){let e=this.j.tu(s.d.iu.Ql);return null==e?null:e.eu}Ul(){let e=new Date().valueOf(),t=this.h.Kl();if(null==t)return!1;let i=this.j.lt(s.d.ct.Vl),a=null==i||e-i>1e3*t;return a&&this.j.ft(s.d.ct.Vl,e),a}Xl(e,t){return null==t||null==t.Yl||!(e-t.Ol<this.Hl)&&t.Yl<e}Fo(){let e=new Date().valueOf(),t=e+1e3*this.zl,i=this.j.tu(s.d.iu.Ql);if(this.Xl(e,i)){let a="Generating session start event with time "+e;if(null!=i){let e=i.Zl;e-i.Ol<this.Hl&&(e=i.Ol+this.Hl),this.j.$l(this.Wl(e,i)),a+=" (old session ended "+e+")"}a+=". Will expire "+t.valueOf(),r.A.info(a);let n=new d.A(p.A.oe(),t);return this.j.$l(new A.A(this.Cs.getUserId(),w.w.sm,e,n.eu)),this.j.uu(s.d.iu.Ql,n),null==this.j.lt(s.d.ct.Vl)&&this.j.ft(s.d.ct.Vl,e),n.eu}if(null!=i)return i.Zl=e,i.Yl=t,this.j.uu(s.d.iu.Ql,i),i.eu}tm(){let e=this.j.tu(s.d.iu.Ql);null!=e&&(this.j.im(s.d.iu.Ql),this.j.$l(this.Wl(new Date().valueOf(),e)))}}let P={Ya:function(e,t=!1){let i,a=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(s.d.ct.lc,"true"),localStorage.getItem(s.d.ct.lc)&&(localStorage.removeItem(s.d.ct.lc),a=!0)}catch(e){if(!(e instanceof Error&&("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage.length>0))throw e;a=!0}}catch(e){r.A.info("Local Storage not supported!")}let n=P.gc(),o=new s.A.uc(e,n&&!t,a);return i=a?new s.A.dc(e):new s.A.mc,new s.A(o,i)},gc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};var L=i(72506);class z extends l.A{constructor(e,t,i){super(),this.B=e,this.j=t,this.B=e,this.j=t,this.mite=null,this.yi=null,this.$i=i||null,this.Ri=null,this.D=null,this.Mi=0,this.ji=5,this.Fi=null,this.Ui=!0,this.xi=null,this.Pi=null,this.ki=null,this.Bi=!1,this.Ji=new Map,this.Oi()}Oi(){if(this.j){let e=this.j.lt(s.d.ct.qi),t=this.j.lt(s.d.ct.zi);e&&t?(this.mite=e,this.yi=t,r.A.info("Restored DUST configuration from storage")):(e||t)&&(r.A.warn("Incomplete DUST configuration in storage, clearing"),this.j.Nt(s.d.ct.qi),this.j.Nt(s.d.ct.zi))}}Hi(){this.xi||this.Pi||(this.ki=()=>{this.Bi=!0,this.Ui=!1},window.addEventListener("beforeunload",this.ki),this.xi=()=>{this.Bi=!0,this.Ri&&(r.A.info("Page unloading, closing real-time connection gracefully"),this.Ui=!1,this.Li())},window.addEventListener("pagehide",this.xi),this.Pi=e=>{e.persisted&&this.Wi()&&!this.Ri&&(r.A.info("Page restored from bfcache, reconnecting"),this.Bi=!1,this.Ui=!0,this.Mi=0,this.Gi())},window.addEventListener("pageshow",this.Pi))}jt(){return this.D}yt(e){this.D=e}Ki(e,t){if("function"!=typeof t)return null;let i=this.Ji.get(e);return i||(i=new a.A,this.Ji.set(e,i),W.q(i)),i.wt(t)}Qi(e,t){let i=this.Ji.get(e);i&&i.removeSubscription(t)}Wi(){return!!(this.mite&&this.yi)}Vi(e,t){let i=()=>{"function"==typeof t&&t()},a=this.B,n=this.j;if(!a||!n)return r.A.error("NetworkManager or StorageManager not available"),void i();let o=W.l();if(o&&!o.Xi())return r.A.info("Real-time messaging is not enabled, skipping refresh"),void i();this.Wi()?r.A.info("Refreshing real-time messaging configuration"):r.A.info("Fetching initial real-time messaging configuration");let l=a.$({},!0),u=a.A(l,x.A.H.Yi,!1),h=new Date().valueOf();
1x.A.K(n,x.A.H.Yi,h),k.A.O({url:`${a.V()}/dust/config`,headers:u,data:l,W:t=>{if(!a.Y(l,t,u))return r.A.error("Failed to validate server response for real-time messaging configuration"),void i();a.Z(),t.mite&&t.host?(this.mite=t.mite,this.yi=t.host,r.A.info("Received real-time messaging configuration from server"),n.ft(s.d.ct.qi,t.mite),n.ft(s.d.ct.zi,t.host),this.Gi(),"function"==typeof e&&e()):(t.mite||r.A.error("Missing messaging identifier in server response"),t.host||r.A.error("Missing messaging host in server response"),i())},error:e=>{a._(e,"retrieving DUST config"),i()}})}Gi(){let e=W.l();if(e&&!e.Xi())return void r.A.info("Real-time messaging is not enabled, skipping connection");if(!this.Wi())return void r.A.error("Cannot start real-time subscription without configuration");this.Ri&&(r.A.info("Real-time connection already exists, closing before starting new subscription"),this.Li());let t=this.mite,i=this.$i||this.yi;if(!t||!i)return;let s=`${/^https?:\/\//i.test(i)?i:`https://${i}`}/sse?mite=${encodeURIComponent(t)}&attempts=${this.Mi}`;this.$i&&r.A.info(`Using custom real-time messaging host: ${this.$i}`);try{this.Ri=new EventSource(s),this.Ri.onopen=()=>{r.A.info("Real-time messaging connection established"),this.Mi=0,this.Ui=!0},this.Ri.addEventListener("msg",e=>{this.Zi(e.data)}),this.Ri.onerror=e=>{var t;let i=null==(t=this.Ri)?void 0:t.readyState;this.Bi||r.A.error(`Real-time messaging connection error (readyState: ${i}, eventPhase: ${null==e?void 0:e.eventPhase})`),this.Li(),this.Ui&&this.Mi<this.ji?this._i():(this.Mi>=this.ji&&r.A.error(`Max retry attempts (${this.ji}) reached for real-time messaging, giving up for current session`),this.Ui=!1)}}catch(e){r.A.error(`Failed to create real-time messaging connection: ${e instanceof Error?e.message:String(e)}`)}}_i(){this.Mi++;let e=Math.min(1e3*Math.pow(2,this.Mi),6e4);r.A.info(`Retrying real-time messaging connection in ${e}ms (attempt ${this.Mi}/${this.ji})`),this.Fi=window.setTimeout(()=>{this.Fi=null,this.Gi()},e)}Li(){null!==this.Fi&&(window.clearTimeout(this.Fi),this.Fi=null),this.Ri&&(this.Ri.close(),this.Ri=null,r.A.info("Real-time messaging connection closed"))}Zi(e){try{let t=JSON.parse(e);if(!t.type)return void r.A.error(`Received real-time message without type: ${JSON.stringify(t)}`);r.A.info(`Received real-time message of type '${t.type}'`);let i=this.Ji.get(t.type);i&&i.he()>0?i.L(t):r.A.info(`No subscribers for real-time message type '${t.type}'`)}catch(e){r.A.error(`Failed to parse real-time message: ${e instanceof Error?e.message:String(e)}`)}}changeUser(e=!1){this.Li(),!e&&this.j?(this.Wi()&&r.A.info("Clearing cached real-time messaging configuration for user change"),this.j.Nt(s.d.ct.qi),this.j.Nt(s.d.ct.zi),this.mite=null,this.yi=null):e&&this.Wi()&&r.A.info("Preserving cached real-time messaging configuration for anonymous->identified user transition"),this.Mi=0,this.Ui=!0}clearData(e=!1){this.Ui=!1,this.Li(),e&&this.j&&(this.Wi()&&r.A.info("Clearing cached real-time messaging configuration (wipeData)"),this.j.Nt(s.d.ct.qi),this.j.Nt(s.d.ct.zi),this.mite=null,this.yi=null),this.Mi=0}destroy(){this.Ui=!1,this.Li(),this.mite=null,this.Mi=0,this.ki&&(window.removeEventListener("beforeunload",this.ki),this.ki=null),this.xi&&(window.removeEventListener("pagehide",this.xi),this.xi=null),this.Pi&&(window.removeEventListener("pageshow",this.Pi),this.Pi=null),this.D&&(W.removeSubscription(this.D),this.D=null)}}let B={i:!1,provider:null,o:()=>{if(B.t(),!B.provider){let e=W.ee("dustHost");B.provider=new z(W.m(),W.p(),e),W.v(B.provider)}return B.provider},t:()=>{B.i||(W.g(B),B.i=!0)},destroy:()=>{B.provider&&B.provider.destroy(),B.provider=null,B.i=!1}};var M=i(81329),R=i(9542),U=i(73854);class F{constructor(e,t){this.h=e,this.j=t,this.h=e,this.j=t}getUserId(){let e=this.j.tu(s.d.iu.su);if(null==e)return null;let t=e.eu,i=(0,M.N)(t);if(i>U.A.mr){for(;i>U.A.mr;)t=t.slice(0,t.length-1),i=(0,M.N)(t);e.eu=t,this.j.uu(s.d.iu.su,e)}return t}ou(e){let t=null==this.getUserId();this.j.uu(s.d.iu.su,new d.A(e)),t&&this.j.ru(e)}setCustomUserAttribute(e,t){if(this.h.hu(e))return r.A.info('Custom Attribute "'+e+'" is blocklisted, ignoring.'),!1;let i={};return i[e]=t,this.nu(U.A.lu,i,!0)}nu(e,t,i=!1,s=!1){let a=this.j.mu(this.getUserId(),e,t),n="",o=e,l=t;return i&&(n=" custom","object"==typeof t&&(o=Object.keys(t)[0],"object"==typeof(l=t[o])&&(l=JSON.stringify(l,null,2)))),!s&&a&&r.A.info(`Logged${n} attribute ${o} with value ${l}`),a}Yn(e,t,i,a,o){this.nu("push_token",e,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",a,!1,!0),this.nu("custom_push_vapid_public_key",o,!1,
1!0);let l=n.A.Us.Rs,u=new n.A(l,r.A),h=new R.A(e,t,i,a,o);this.j.ft(s.d.ct.Wo,h.dt()),u.setItem(l.Fs.cu,l.me,!0)}Hn(e){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),e){let e=n.A.Us.Rs,t=new n.A(e,r.A);this.j.ft(s.d.ct.Wo,!1),t.setItem(e.Fs.cu,e.me,!1)}}}var $=i(16177),G=i(94744);let q={Ph:"allowCrawlerActivity",Wh:"baseUrl",Vh:"noCookies",Kh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ia:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Ea:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Jo:"inAppMessageZIndex",To:"openInAppMessagesInNewTab",Oh:"requireExplicitInAppMessageDismissal",Na:"doNotLoadFontAwesome",Oa:"deviceId",Aa:"serviceWorkerScope",zi:"dustHost",Ta:"sdkFlavor",tn:"openCardsInNewTab"},H={Ph:"allowCrawlerActivity",Wh:"baseUrl",Vh:"noCookies",Kh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ia:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Ea:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Jo:"inAppMessageZIndex",To:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",Oh:"requireExplicitInAppMessageDismissal",Na:"doNotLoadFontAwesome",Oa:"deviceId",Aa:"serviceWorkerScope",zi:"dustHost",Ta:"sdkFlavor"};class V{constructor(){this.Pn="",this.Ra="",this.Pa=void 0,this.La=null,this.Dn=null,this.B=null,this.au=null,this.h=null,this.C=null,this.j=null,this.Cs=null,this.Ua="",this.isInitialized=!1,this.Wa=!1,this.Va=new a.A,this.Fa=new a.A,this.options={},this.Ka=[],this.Ga=[],this.Mr=[],this.Ra="6.4.0"}$a(e){this.Va.wt(e)}Lh(e){this.Fa.wt(e)}initialize(e,t){if(this.ao())return r.A.info("Braze has already been initialized with an API key."),!0;this.options=t||{};let n=this.ee(H.$h),l=(0,$.y)(G.uD.Ha());if(l&&"true"===l.brazeLogging&&(n=!0),r.A.init(n),r.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==e||""===e||"string"!=typeof e)return r.A.error("Braze requires a valid API key to be initialized."),!1;this.Pn=e;let h=this.ee(H.Wh);if(null==h||""===h||"string"!=typeof h)return r.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(h)&&(h=`https://${h}`);let p=h;if((h=document.createElement("a")).href=p,"/"===h.pathname&&(h=`${h}api/v3`),this.Ua=h.toString(),u.A.Ja&&!this.ee(H.Ph))return r.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Wa=!0,!1;let g=this.ee(H.Vh)||!1;if(this.j=P.Ya(e,g),g&&this.j.Xa(e),new s.A.ne(null,!0).jr(s.d.ie))return r.A.info("Ignoring all activity due to previous opt out"),this.Wa=!0,!1;for(let e of(0,b.HP)(this.options))-1===(0,b.zu)(q).indexOf(e)&&r.A.warn(`Ignoring unknown initialization option '${e}'.`);if(null!=this.ee(H.Ta)){let e=this.ee(H.Ta);-1!==["mparticle","wordpress","tealium"].indexOf(e)?this.Pa=e:r.A.error("Invalid sdk flavor passed: "+e)}let f=this.ee(q.Kh);if(null!=f)if((0,b.cy)(f)){let e=[];for(let t=0;t<f.length;t++)(0,b.BY)(c.A,f[t],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&e.push(f[t]);f=e}else r.A.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),f=null;let A=this.ee(H.Oa);if(A){let e=new d.A(A);this.j.uu(s.d.iu.Oa,e)}this.Dn=new m(this.j,f),this.h=new D(this.j),this.Cs=new F(this.h,this.j),this.C=new O(this.j,this.Cs,this.h,this.ee(H.Zh));let v=new a.A;return this.La=new o(this.j,this.ee(H.Yh),v),this.q(v),this.B=new C(this.Dn,this.j,this.La,this.Cs,this.C,this.h,this.Pn,this.Ua,this.Ra,this.Pa||"",this.ee(H.Qh),this.ee(H.Ia)),this.au=new I(this.Pn,this.Ua,this.C,this.Dn,this.Cs,this.h,this.j,e=>{if(this.ao())for(let t of this.gr())t.N(e)},this.La,this.B),this.au.initialize(),g||this.j.Za(),r.A.info(`Initialized for the Braze backend at "${this.ee(H.Wh)}" with API key "${this.Pn}
1".`),L.B.t(),function(){let e=W.l(),t=W.nn();if(!e||!t)return;let i=B.o(),s=()=>{if(!i.jt()){i.Hi();let s=t.rn(()=>{e.Xi()&&i.Vi()});return s&&i.yt(s),i.Wi()&&i.Gi(),s}return i.jt()};e.Xi()?s():e.Tr(()=>{W.ao()&&e.Xi()&&(i.Vi(),s())})}(),this.h.$e(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.Te())&&Promise.resolve().then(i.bind(i,8723)).then(e=>{this.isInitialized&&(0,e.default)()})}),this.au.rn(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.Te())&&Promise.resolve().then(i.bind(i,8723)).then(e=>{this.isInitialized&&(0,e.default)(void 0,void 0,!0)})}),this.Va.L(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(e){if(r.A.destroy(),this.ao()){for(let e of(this.Fa.L(),this.Fa.removeAllSubscriptions(),this.Ka))e.destroy();for(let e of(this.Ka=[],this.Ga))e.clearData(!1);this.B&&this.B.fo(),this.Ga=[],this.removeAllSubscriptions(),this.Mr=[],null!=this.au&&this.au.destroy(),this.au=null,this.La=null,this.Dn=null,this.B=null,this.h=null,this.C=null,this.Cs=null,this.options={},this.Pa=void 0,this.isInitialized=!1,this.Wa=!1,e&&(this.j=null)}}rr(){return!this.Qa()&&(!!this.ao()||(console.warn(E.xE),!1))}Ma(){return this.Pn}Sr(){return this.La}V(){return this.Ua}de(){return this.Dn}m(){return this.B}ee(e){return this.options[e]}gr(){return this.Ga}nn(){return this.au}l(){return this.h}u(){return this.C}p(){return this.j}br(){if(this.Cs&&this.au)return new U.A(this.Cs,this.au)}ir(){return this.Cs}nr(){return!0===this.ee(H.re)}g(e){let t=!1;for(let i of this.Ka)i===e&&(t=!0);t||this.Ka.push(e)}v(e){let t=!1;for(let i of this.Ga)i.constructor===e.constructor&&(t=!0);e instanceof l.A&&!t&&this.Ga.push(e)}q(e){e instanceof a.A&&this.Mr.push(e)}removeAllSubscriptions(){if(this.rr())for(let e of this.Mr)e.removeAllSubscriptions()}removeSubscription(e){if(this.rr())for(let t of this.Mr)t.removeSubscription(e)}ce(e){this.Wa=e}ao(){return this.isInitialized}Qa(){return this.Wa}tr(e,t){return this.rr()?B.o().Ki(e,t):null}Vs(){return this.Ra}}let W=new V},55413:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(85515),a=i(38113);class n extends a.A{constructor(e,t,i,s,n,r,o,l,u,h,c,d,p,b,g,m,f,A,v,y,w,x,E,S,k,C,N,T,_,I){super(e,t,void 0,i,s,n,r,o,l=l||a.A.DismissType.MANUAL,u,h,c,d,p,b,g,m,f,A,v,y,w,x,E,S,k=k||a.A.CropType.FIT_CENTER,void 0,C,N,T,_,I),this.bo=a.A.TextAlignment.CENTER}dt(){return super.dt(n.es)}static In(e){return new n(e[a.A.ss.ra],e[a.A.ss.sa],e[a.A.ss.xs],e[a.A.ss.ta],e[a.A.ss.ia],e[a.A.ss.URI],e[a.A.ss.oa],e[a.A.ss.pa],e[a.A.ss.ma],e[a.A.ss.na],e[a.A.ss.ns],e[a.A.ss.ua],e[a.A.ss.ca],e[a.A.ss.fa],e[a.A.ss.da],e[a.A.ss.la],e[a.A.ss.ga],e[a.A.ss.ja],e[a.A.ss.xa],e[a.A.ss.za],e[a.A.ss.ha],e[a.A.ss.va],e[a.A.ss.wa],(0,s.x)(e[a.A.ss.ya]),e[a.A.ss.Sa],e[a.A.ss.ka],e[a.A.ss.CSS],e[a.A.ss.qa],e[a.A.ss.LANGUAGE],e[a.A.ss.ks])}}n.es=a.A.Le.An},57911:(e,t,i)=>{i.r(t),i.d(t,{changeUser:()=>l});var s=i(53913),a=i(81329),n=i(84456),r=i(73854),o=i(68711);function l(e,t){if(!s.Ay.rr())return;if(null==e||0===e.length||e!=e)return void n.A.error("changeUser requires a non-empty userId.");if((0,a.N)(e)>r.A.mr)return void n.A.error(`Rejected user id "${e}" because it is longer than ${r.A.mr} bytes.`);if(null!=t&&!(0,o.rK)(t,"set signature for new user","signature"))return;let i=s.Ay.nn();i&&i.changeUser(e.toString(),s.Ay.gr(),t)}},59948:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(84456),a=i(53913),n=i(94865),r=i(41743);let o={rt:(e,t,i)=>{var o,l;
1let u=new r.A,h=a.Ay.u();if(!h)return s.A.info(`Not logging event with type "${e}" because the current session ID could not be found.`),u;let c=h.Fo();return u.ue.push(new n.A(i||(null==(o=a.Ay.ir())?void 0:o.getUserId()),e,new Date().valueOf(),c,t)),u.W=(null==(l=a.Ay.p())?void 0:l.Go(u.ue))||!1,u}}},62553:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0,this.kt=!1}static fromJson(e){return new s(e.trigger_id,e.message_extras)}Qt(){return!this.kt&&(this.kt=!0,!0)}zo(){return this.kt}}},62637:(e,t,i)=>{i.d(t,{b:()=>a});var s=i(65455);function a(e){let t,i=null==e?void 0:e.lt(s.d.ct.uE);return i&&(t={label:i.l,name:i.a}),t}},62673:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(38113),a=i(6016);class n extends s.A{constructor(e,t,i,a,n,r,o,l,u,h,c,d,p,b,g,m,f,A,v,y,w,x,E,S){super(e,t=t||s.A.TextAlignment.START,i,a,n,r,o,l,u,h,c,d,void 0,p,b,g=g||s.A.th.Nh,m=m||s.A.th.Rh,f,A,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y,w,x,E,S),this.bo=s.A.TextAlignment.START}We(){return!1}jo(){let e=document.createElement("span");return e.appendChild(document.createTextNode(this.message||"")),e}ah(e){let t=e.getElementsByClassName("ab-in-app-message")[0];a.e0.Do(t,!0,!0)||(this.slideFrom===s.A.SlideFrom.TOP?t.style.top="0px":t.style.bottom="0px"),super.ah(e)}dt(){return super.dt(n.es)}static In(e){return new n(e[s.A.ss.ra],e[s.A.ss.sa],e[s.A.ss._h],e[s.A.ss.xs],e[s.A.ss.ta],e[s.A.ss.ia],e[s.A.ss.URI],e[s.A.ss.oa],e[s.A.ss.pa],e[s.A.ss.ma],e[s.A.ss.na],e[s.A.ss.ns],e[s.A.ss.ca],e[s.A.ss.fa],e[s.A.ss.da],e[s.A.ss.la],e[s.A.ss.ga],e[s.A.ss.ja],e[s.A.ss.xa],e[s.A.ss.ka],e[s.A.ss.CSS],e[s.A.ss.qa],e[s.A.ss.LANGUAGE],e[s.A.ss.ks])}}n.es=s.A.Le.Tn},65455:(e,t,i)=>{i.d(t,{A:()=>d,d:()=>c});var s=i(94865),a=i(95417),n=i(67037),r=i(4624),o=i(84456),l=i(73854),u=i(80429),h=i(85518);let c={iu:{su:"ab.storage.userId",Oa:"ab.storage.deviceId",Ql:"ab.storage.sessionId"},ct:{lc:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",ac:"ab.storage.device",ku:"ab.storage.sdk_metadata",wu:"ab.storage.session_id_for_cached_metadata",Wo:"ab.storage.pushToken",rE:"ab.storage.cardImpressions",jl:"ab.storage.serverConfig",oE:"ab.storage.triggers",nE:"ab.storage.triggers.ts",Vl:"ab.storage.messagingSessionStart",Ps:"ab.storage.cc",Gs:"ab.storage.ccLastFullSync",Hs:"ab.storage.ccLastCardUpdated",ol:"ab.storage.globalRateLimitCurrentTokenCount",ul:"ab.storage.dynamicRateLimitCurrentTokenCount",Et:"ab.storage.ccClicks",Pt:"ab.storage.ccImpressions",Lt:"ab.storage.ccDismissals",aE:"ab.storage.lastDisplayedTriggerTimesById",iE:"ab.storage.lastDisplayedTriggerTime",EE:"ab.storage.triggerFireInstancesById",xh:"ab.storage.signature",lE:"ab.storage.brazeSyncRetryCount",Qs:"ab.storage.sdkVersion",Se:"ab.storage.ff",Ne:"ab.storage.ffImpressions",Ee:"ab.storage.ffLastRefreshAt",Xe:"ab.storage.ff.sessionId",SE:"ab.storage.lastReqToEndpoint",_E:"ab.storage.requestAttempts",yn:"ab.storage.deferredIam",tl:"ab.storage.lastSdkReq",uE:"ab.storage.alias",ut:"ab.storage.banners",It:"ab.storage.banners.impressions",gt:"ab.storage.banners.sessionId",qi:"ab.storage.dust.mite",zi:"ab.storage.dust.host"},ie:"ab.optOut"};class d{constructor(e,t){this.cE=e,this.TE=t,this.cE=e,this.TE=t}Xa(e){let t=(0,n.HP)(c.iu),i=new d.ne(e);for(let e of t)i.remove(c.iu[e])}uu(e,t){let i=null;null!=t&&t instanceof a.A&&(i=t.dt()),this.cE.store(e,i)}hE(e){let t=this.tu(e);null!=t&&(t.Zl=new Date().valueOf(),this.uu(e,t))}tu(e){let t,i=this.cE.jr(e),s=(e=>{let t;try{t=JSON.parse(e)}catch(e){t=null}return t})(i);if(s)(t=a.A.Vo(s)||null)&&this.uu(e,t);else{let s=a.A.AE(i);t=a.A.Vo(s)||null,s!==i&&t&&this.uu(e,t)}return t}im(e){this.cE.remove(e)}Za(){let e;for(let t of(0,n.HP)(c.iu))null!=(e=this.tu(c.iu[t]))&&this.uu(c.iu[t],e)}Go(e){let t;if(null==e||0===e.length)return!1;t=(0,n.cy)(e)?e:[e];let i=this.TE.jr(c.ct.tE);null!=i&&(0,n.cy)(i)||(i=[]);for(let e=0;e<t.length;e++)i.push(t[e].dt());return this.TE.store(c.ct.tE,i)}$l(e){return null!=e&&this.Go([e])}RE(){let e=this.TE.jr(c.ct.tE);this.TE.remove(c.ct.tE),null==e&&(e=[]);let t=[],i=!1,a=null;if((0,n.cy)(e))for(let i=0;i<e.length;i++)s.A.gE(e[i])?t.push(s.A.Vo(e[i])):a=i;else i=!0;if(i||null!=a){let n="Stored events could not be deserialized as Events";i&&(n+=", was "+Object.prototype.toString.call(e)+" not an array"),null!=a&&(n+=", value at index "+a+" does not look like an event"),n+=", seri
1alized values were of type "+typeof e+": "+JSON.stringify(e),t.push(new s.A(null,r.w.ju,new Date().valueOf(),null,{e:n}))}return t}ft(e,t){return!!(0,n.BY)(c.ct,e,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.TE.store(e,t)}lt(e){return!!(0,n.BY)(c.ct,e,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.TE.jr(e)}Nt(e){return!!(0,n.BY)(c.ct,e,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.TE.remove(e),!0)}clearData(){let e=(0,n.HP)(c.iu),t=(0,n.HP)(c.ct);for(let t=0;t<e.length;t++){let i=e[t];this.cE.remove(c.iu[i])}for(let e=0;e<t.length;e++){let i=t[e];this.TE.remove(c.ct[i])}}OE(e){return e||c.ct.sE}Pu(e){let t=this.TE.jr(c.ct.eE);null==t&&(t={});let i=this.OE(e[l.A.Uu]),s=t[i];for(let a in e)a!==l.A.Uu&&(null==t[i]||s&&null==s[a])&&this.mu(e[l.A.Uu],a,e[a])}mu(e,t,i){let s=this.TE.jr(c.ct.eE);null==s&&(s={});let a=this.OE(e),n=s[a];if(null==n&&(n={},null!=e&&(n[l.A.Uu]=e)),t===l.A.lu)for(let e in null==n[t]&&(n[t]={}),i)n[t][e]=i[e];else n[t]=i;return s[a]=n,this.TE.store(c.ct.eE,s)}IE(){let e=this.TE.jr(c.ct.eE);this.TE.remove(c.ct.eE);let t=[];for(let i in e)null!=e[i]&&t.push(e[i]);return t}ru(e){let t=this.TE.jr(c.ct.eE);if(null!=t){let i=this.OE(null),s=t[i];null!=s&&(t[i]=void 0,this.TE.store(c.ct.eE,t),s[l.A.Uu]=e,this.Pu(s))}let i=this.tu(c.iu.Ql),s=null;null!=i&&(s=i.eu);let a=this.RE();if(null!=a)for(let t=0;t<a.length;t++){let i=a[t];null==i.userId&&i.sessionId==s&&(i.userId=e),this.$l(i)}}dE(){return this.TE.bE}}d.dc=class{constructor(e){this.Pn=e,this.Pn=e,this.bE=u.A.fE()?3:10}mE(e){return e+"."+this.Pn}store(e,t){try{return localStorage.setItem(this.mE(e),JSON.stringify({v:t})),!0}catch(e){return o.A.info("Storage failure: "+(0,h.u)(e)),!1}}jr(e){try{let t=null,i=localStorage.getItem(this.mE(e));return null!=i&&(t=JSON.parse(i)),null==t?null:t.v}catch(e){return o.A.info("Storage retrieval failure: "+(0,h.u)(e)),null}}remove(e){try{localStorage.removeItem(this.mE(e))}catch(e){return o.A.info("Storage removal failure: "+(0,h.u)(e)),!1}}},d.mc=class{constructor(){this.KE={},this.YE=5242880,this.bE=3}store(e,t){let i=this.NE(t);return i>this.YE?(o.A.info("Storage failure: object is ≈"+i+" bytes which is greater than the max of "+this.YE),!1):(this.KE[e]={value:t},!0)}NE(e){let t=[],i=[e],s=0;for(;i.length;){let e=i.pop();if("boolean"==typeof e)s+=4;else if("string"==typeof e)s+=2*e.length;else if("number"==typeof e)s+=8;else if("object"==typeof e&&-1===t.indexOf(e))for(let s in t.push(e),e)i.push(e[s])}return s}jr(e){let t=this.KE[e];return null==t?null:t.value}remove(e){this.KE[e]=null}},d.ne=class{constructor(e,t){this.Pn=e,this.GE=t,this.Pn=e,this.DE=this.CE(),this.ME=576e3,this.GE=!!t}mE(e){return null!=this.Pn?e+"."+this.Pn:e}CE(){let e=0,t=document.location.hostname,i=t.split("."),s="ab._gd";for(;e<i.length-1&&-1===document.cookie.indexOf(s+"="+s);)e++,t="."+i.slice(-1-e).join("."),document.cookie=s+"="+s+";domain="+t+";";return document.cookie=s+"=;expires="+new Date(0).toUTCString()+";domain="+t+";",t}se(){let e=new Date;return e.setTime(e.getTime()+60*this.ME*1e3),e.getFullYear()}pE(){let e=(0,n.zu)(c.iu),t=document.cookie.split(";");for(let i=0;i<t.length;i++){let s=t[i];for(;" "===s.charAt(0);)s=s.substring(1);let a=!1;for(let t=0;t<e.length;t++)if(0===s.indexOf(e[t])){a=!0;break}if(a){let e=s.split("=")[0];-1===e.indexOf("."+this.Pn)&&this.vE(e)}}}store(e,t){let i;this.pE();let s=new Date;s.setTime(s.getTime()+60*this.ME*1e3);let a="expires="+s.toUTCString(),n="domain="+this.DE;i=this.GE?t:encodeURIComponent(t);let r=this.mE(e)+"="+i+";"+a+";"+n+";path=/";return r.length>=4093?(o.A.info("Storage failure: string is "+r.length+" chars which is too large to store as a cookie."),!1):(document.cookie=r,!0)}jr(e){let t=[],i=this.mE(e)+"=",s=document.cookie.split(";");for(let a=0;a<s.length;a++){let n=s[a];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(i))try{let e;e=this.GE?n.substring(i.length,n.length):decodeURIComponent(n.substring(i.length,n.length)),t.push(e)}catch(t){return o.A.info("Storage retrieval failure: "+(0,h.u)(t)),this.remove(e),null}}return t.length>0?t[t.length-1]:null}remove(e){this.vE(this.mE(e))}vE(e){let t=e+"=;expires="+new Date(0).toUTCString();document.cookie=t,document.cookie=t+";path=/";let i=t+";domain="+this.DE;document.cookie=i,document.cookie=i+";path=/"}},d.uc=class{constructor(e,t,i){this.Pn=e,this.UE=[],t&&this.UE.push(new d.ne(e)),i&&this.UE.push(new d.dc(e)),this.UE.push(new d.mc)}store(e,t){let i=!0;for(let s=0;s<this.UE.length;s++)i=this.UE[s].store(e,t)&&i;return i}jr(e){for(let t=0;t<this.UE.length;t++){let i=this.UE[t].jr(e);if(null!=i)return i}return null}remove(e){new d.ne(this.Pn).remove(e);for(let t=0;t<this.UE.length;t++)this.UE[t].remove(e)}}},67037:(e,t,i)=>{i.d(t,{$P:()=>o,BY:()=>n,Gv:()=>l,HP:()=>u,cy:()=>r,n4:()=>function e(t,i){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;let s=t.toString();if(s!==i.toString())return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}let a="[object Array]"===s;if(!a){if("object"!=typeof t||"object"!=typeof i)return!1;let e=t.constructor,s=i.constructor;if(e!==s&&!("function"==typeof e&&e instanceof e&&"function"==typeof s&&s instanceof s)&&"constructor"in t&&"constructor"in i)return!1}let n=[],r=[],o=n.length;for(;o--;)if(n[o]===t)return r[o]===i;if(n.push(t),r.push(i),a){if((o=t.length)!==i.length)return!1;for(;o--;)if(!e(t[o],i[o]))return!1}else{let s,a=u(t);if(o=a.length,u(i).length!==o)return!1;for(;o--;)if(s=a[o],!Object.prototype.hasOwnProperty.call(i,s)||!e(t[s],i[s])
1)return!1}return n.pop(),r.pop(),!0},zu:()=>a});var s=i(84456);function a(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&void 0!==e[i]&&t.push(e[i]);return t}function n(e,t,i,n){let r=a(e);return -1!==r.indexOf(t)||(s.A.error(`${i} Valid values from ${n} are "${r.join('"/"')}".`),!1)}function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Date]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}},68711:(e,t,i)=>{i.d(t,{B9:()=>w,Dz:()=>g,L4:()=>S,To:()=>E,Z2:()=>y,ZJ:()=>m,fB:()=>v,nx:()=>p,rK:()=>A,uZ:()=>f,xs:()=>x});var s=i(67037),a=i(81329),n=i(84456),r=i(27584),o=i(31120),l=i(72180);let u=/^[^\x00-\x1F\x22]+$/,h=/[$.]/,c=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],d=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,p=/^brazeActions:\/\/v\d+\//,b=/^[^\s]+$/;function g(e,t,i){let s=null!=e&&"string"==typeof e&&(""===e||null!=e.match(u));return s||n.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),s}function m(e){return null!=e&&e.match(h)&&-1===c.indexOf(e)&&n.A.warn("Custom attribute keys cannot contain '$' or '.'"),g(e,"set custom user attribute","the given key")}function f(e){let t=typeof e;return null==e||"number"===t||"boolean"===t||(0,s.$P)(e)||"string"===t}function A(e,t,i,s=!1){let a="string"==typeof e||null===e&&s;return a||n.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),a}function v(e,t,i,o,u){let h,c,d;if(null==e&&(e={}),"object"!=typeof e||(0,s.cy)(e))return n.A.error(`${t} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];t===l.KG?(h=76800,c="75KB"):(h=51200,c="50KB");let p=JSON.stringify(e);if((0,a.N)(p)>h)return n.A.error(`Could not ${o} because ${i} was greater than the max size of ${c}.`),[!1,null];try{d=JSON.parse(p)}catch(e){return n.A.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in e){if(t===l.KG&&!m(i)||!g(i,o,`the ${u} property name`))return[!1,null];let a=e[i];if(t!==l.KG&&null==a){delete e[i],delete d[i];continue}if((0,s.$P)(a)&&(d[i]=(0,r.EQ)(a)),!function(e,t,i,a,o){let l;return(l=(0,s.Gv)(e)||(0,s.cy)(e)?function e(t,i,a){let o=-1!==a;if(o&&a>50)return n.A.error("Nested attributes cannot be more than 50 levels deep."),!1;let l=o?a+1:-1;if((0,s.cy)(t)&&(0,s.cy)(i)){for(let a=0;a<t.length&&a<i.length;a++)if((0,s.$P)(t[a])&&(i[a]=(0,r.EQ)(t[a])),!e(t[a],i[a],l))return!1}else{if(!(0,s.Gv)(t))return f(t);for(let a of(0,s.HP)(t)){let n=t[a];if(o&&!m(a)||((0,s.$P)(n)&&(i[a]=(0,r.EQ)(n)),!e(n,i[a],l)))return!1}}return!0}(e,t,o?1:-1):f(e))||n.A.error(`Cannot ${i} because ${a} "${e}" is invalid.`),l}(a,d[i],o,`the ${u} property "${i}"`,t===l.KG))return[!1,null]}return[!0,d]}function y(e,t){let i=!1,a=!1,r=()=>{n.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let n of t)if("string"==typeof n){if(a)return r(),[!1,!1];if(!g(n,`set custom user attribute "${e}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,s.Gv)(n)||i)return r(),[!1,!1];if(!v(n,l.KG,"attribute value",`set custom user attribute "${e}"`,"custom user attribute"))return[!1,!1];a=!0}return[i,a]}function w(e){if("string"!=typeof e)return!1;let t=e.length;return!(0===t||t>256)&&d.test(e.toLowerCase())}function x(e){if(!(o.V.properties.type in e))return!1;switch(e[o.V.properties.type]){case o.V.types.io:if(o.V.properties.eo in e)return!0;break;case o.V.types.logCustomEvent:case o.V.types.setEmailNotificationSubscriptionType:case o.V.types.setPushNotificationSubscriptionType:case o.V.types.setCustomUserAttribute:case o.V.types.addToSubscriptionGroup:case o.V.types.removeFromSubscriptionGroup:case o.V.types.addToCustomAttributeArray:case o.V.types.removeFromCustomAttributeArray:case o.V.types.mo:case o.V.types.uo:if(o.V.properties.so in e)return!0;break;case o.V.types.requestPushPermission:return!0}return!1}function E(e){let t=!1;
1return Object.keys(o.V.types).forEach(i=>{o.V.types[i]!==e.toString()||(t=!0)}),t}function S(e){return b.test(e)}},68788:(e,t,i)=>{i.d(t,{c:()=>s});let s={do:32,yo:9,lo:13,Ih:27}},71647:(e,t,i)=>{i.d(t,{A:()=>s});let s={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"}},72180:(e,t,i)=>{i.d(t,{$k:()=>s,FE:()=>m,Fn:()=>c,KG:()=>l,RW:()=>r,aV:()=>o,et:()=>b,fX:()=>a,mO:()=>d,og:()=>g,s1:()=>n,uR:()=>p,uy:()=>h,xE:()=>u,y5:()=>f});let s=100,a="inAppMessage must be an InAppMessage object",n="must be a Card object",r=500,o="logCustomEvent",l="setCustomUserAttribute",u="Braze must be initialized before calling methods.",h=30,c=30,d=72e5,p=15,b=1,g="data-update-subscription-id",m="Banners are disabled. Make sure you have at least one campaign and relaunch the app.",f="ab-pause-scrolling"},72506:(e,t,i)=>{i.d(t,{B:()=>g});var s=i(41507),a=i(53913),n=i(31064),r=i(85515),o=i(94865),l=i(67037),u=i(65455);class h{constructor(e,t,i,s,a){this.triggerId=e,this.dn=t,this.hn=i,this.jn=s,this.vn=a,this.triggerId=e,this.dn=t,this.hn=i,this.jn=s,this.vn=a}static fromJson(e,t,i,s,a){return null==e||null==e.trigger_id?null:new h(e.trigger_id,t,i,s,a)}}var c=i(81585),d=i(86984),p=i(84456);class b extends n.A{constructor(e,t,i,s,a){super(),this.tg=e,this.ws=t,this.j=i,this.au=s,this.ig=a,this.tg=e,this.ws=t,this.j=i,this.au=s,this.ig=a,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.j){this.hg=this.j.lt(u.d.ct.iE)||this.hg,this.ng=this.j.lt(u.d.ct.EE)||this.ng,this.og=this.j.lt(u.d.ct.aE)||this.og;for(let e=0;e<this.triggers.length;e++){let t=this.triggers[e];t.id&&null!=this.og[t.id]&&t.ad(this.og[t.id])}}}ag(){if(!this.j)return;this.lg=this.j.lt(u.d.ct.nE)||0;let e=this.j.lt(u.d.ct.oE)||[],t=[];for(let i=0;i<e.length;i++)t.push(c.A.Vo(e[i]));this.triggers=t,this.fg()}gg(){let e=this,t=function(t,i,s,a,n){return function(){e.cg(t,i,s,a,n)}},i={};for(let e of this.triggers)e.id&&(i[e.id]=e);let s=!1;for(let e=0;e<this.triggers.length;e++){let a=this.triggers[e];if(a.id&&null!=this.ng[a.id]){let e=this.ng[a.id],n=[];for(let s=0;s<e.length;s++){let r=e[s],u=a.ud(r.jn||0);if(u>0){let e,s;n.push(r),null!=r.ug&&(e=r.ug),null!=r.dg&&o.A.gE(r.dg)&&(s=o.A.Vo(r.dg));let h=[];if(r.pg&&(0,l.cy)(r.pg))for(let e=0;e<r.pg.length;e++){let t=i[r.pg[e]];null!=t&&h.push(t)}this.eg.push(window.setTimeout(t(a,r.jn||0,e,s,h),u))}}this.ng[a.id].length>n.length&&(this.ng[a.id]=n,s=!0,0===this.ng[a.id].length&&delete this.ng[a.id])}}s&&this.j&&this.j.ft(u.d.ct.EE,this.ng)}mg(){if(!this.j)return;let e=[];for(let t=0;t<this.triggers.length;t++)e.push(this.triggers[t].dt());this.lg=new Date().valueOf(),this.j.ft(u.d.ct.oE,e),this.j.ft(u.d.ct.nE,this.lg)}bg(){this.j&&((this.j.lt(u.d.ct.nE)||0)>this.lg?this.ag():this.fg())}N(e){let t=!1;if(null!=e&&e.triggers){let i;this.ig.kn(),this.fg();let s={},a={};this.triggers=[];for(let i=0;i<e.triggers.length;i++){let n=c.A.fromJson(e.triggers[i]);if(n){n.id&&null!=this.og[n.id]&&(n.ad(this.og[n.id]),s[n.id]=this.og[n.id]),n.id&&null!=this.ng[n.id]&&(a[n.id]=this.ng[n.id]);for(let e=0;e<n.sd.length;e++)if(n.sd[e]._c(d.A.qs,null)){t=!0;break}this.triggers.push(n)}}(0,l.n4)(this.og,s)||(this.og=s,this.j&&this.j.ft(u.d.ct.aE,this.og)),(0,l.n4)(this.ng,a)||(this.ng=a,this.j&&this.j.ft(u.d.ct.EE,this.ng)),this.mg(),t&&(p.A.info("Trigger with test condition found, firing test."),this.ve(d.A.qs)),this.ve(d.A.OPEN);let n=this.sg;this.sg=[];for(let e=0;e<n.length;e++)i=Array.prototype.slice.call(n[e]),this.ve(...i)}}cg(e,t,i,s,a){let n,o,l,u=s=>{this.fg();let a=new Date().valueOf();e.dd(t)||(!1===navigator.onLine&&e.type===c.A.gn.fn&&s.imageUrl?p.A.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.nd(a)&&this.wg(e,a,i)?0===this.ws.he()?p.A.info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.ws.L([s]),this.yg(e,a)):p.A.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},d=()=>{this.fg();let n=a.pop();if(null!=n)if(this.Tg(n,t,i,s,a),n.dd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${n.id} has already elapsed.`;a.length>0&&(e+=" Continuing to fall back."),p.A.info(e),d()}else{p.A.info(`Server aborted in-app message display. Falling back to lower priority ${n.type} trigger action ${e.id}.`);let r=1e3*n.ed-(new Date().valueOf()-t);r>0?this.eg.push(window.setTimeout(()=>{this.cg(n,t,i,s,a)},r)):this.cg(n,t,i,s,a)}};switch(e.type){case c.A.gn.fn:if(null==(n=(0,r.g)(e.data))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(o=this.ig.Yr(n)){p.A.error(o),d();break}u(n);break;case c.A.gn.md:if(null==(l=h.fromJson(e.data,u,d,t,e.vn||0))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.un(l,i,s);break;default:p.A.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}ve(e,t=null,i){if(!(0,l.BY)(d.A,e,"Cannot fire trigger action.","TriggerEvents"))return;if(this.au&&this.au.Mc())return p.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();let s=new Date().valueOf(),a=s-(this.hg||0),n=!0,r=!0,o=[];for(let i=0;i<this.triggers.length;i++){let a=this.triggers[i],l=s+1e3*a.ed;if(a.nd(l)&&(null==a.startTime||a.startTime.valueOf()<=s)&&(null==a.endTime||a.endTime.valueOf()>=s)){let i=!1;for(let s=0;s<a.sd.length;
1s++)if(a.sd[s]._c(e,t)){i=!0;break}i&&(n=!1,this.wg(a,l,e)&&(r=!1,o.push(a)))}}if(n)return void p.A.info(`Trigger event ${e} did not match any trigger conditions.`);if(r)return void p.A.info(`Ignoring ${e} trigger event because a trigger was displayed ${a/1e3}s ago.`);o.sort((e,t)=>e.priority-t.priority);let u=o.pop();null!=u&&(p.A.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${e}.`),this.Tg(u,s,e,i,o),0===u.ed?this.cg(u,s,e,i,o):this.eg.push(window.setTimeout(()=>{this.cg(u,s,e,i,o)},1e3*u.ed)))}changeUser(e=!1){if(this.triggers=[],this.j&&this.j.Nt(u.d.ct.oE),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.j&&(this.j.Nt(u.d.ct.iE),this.j.Nt(u.d.ct.aE),this.j.Nt(u.d.ct.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[]}wg(e,t,i){if(null==this.hg)return!0;if(i===d.A.qs)return p.A.info("Ignoring minimum interval between trigger because it is a test type."),!0;let s=e.hd;return null==s&&(s=this.tg),t-this.hg>=1e3*s}Tg(e,t,i,s,a){let n;this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let r={};r.jn=t,r.ug=i,null!=s&&(n=s.dt()),r.dg=n;let o=[];for(let e of a)e.id&&o.push(e.id);r.pg=o,e.id&&this.ng[e.id].push(r),this.j&&this.j.ft(u.d.ct.EE,this.ng)}yg(e,t){this.fg(),e.ad(t),this.hg=t,e.id&&(this.og[e.id]=t),this.j&&(this.j.ft(u.d.ct.iE,t),this.j.ft(u.d.ct.aE,this.og))}}let g={i:!1,provider:null,o:()=>(g.t(),g.provider||g.rg(),g.provider),rg:()=>{if(!g.provider){let e=a.Ay.ee(a.lw.Xh);g.provider=new b(null!=e?e:30,s.A.ea().Nr(),a.Ay.p(),a.Ay.nn(),s.A.ea()),a.Ay.v(g.provider)}},t:()=>{g.i||(g.rg(),a.Ay.g(g),g.i=!0)},destroy:()=>{g.provider=null,g.i=!1}}},73167:(e,t,i)=>{i.r(t),i.d(t,{logPurchase:()=>c});var s=i(53913),a=i(72180),n=i(84456),r=i(4624),o=i(86984),l=i(72506),u=i(68711),h=i(59948);function c(e,t,i,c,d){if(!s.Ay.rr())return!1;if(null==i&&(i="USD"),null==c&&(c=1),null==e||e.length<=0)return n.A.error(`logPurchase requires a non-empty productId, got "${e}", ignoring.`),!1;if(!(0,u.Dz)(e,"log purchase","the purchase name"))return!1;if(null==t||isNaN(parseFloat(t.toString())))return n.A.error(`logPurchase requires a numeric price, got ${t}, ignoring.`),!1;let p=parseFloat(t.toString()).toFixed(2);if(null==c||isNaN(parseInt(c.toString())))return n.A.error(`logPurchase requires an integer quantity, got ${c}, ignoring.`),!1;let b=parseInt(c.toString());if(b<1||b>a.$k)return n.A.error(`logPurchase requires a quantity >1 and <${a.$k}, got ${b}, ignoring.`),!1;if(-1===["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"].indexOf(i=null!=i?i.toUpperCase():i))return n.A.error(`logPurchase requires a valid currencyCode, got ${i}, ignoring.`),!1;let[g,m]=(0,u.fB)(d,"logPurchase","purchaseProperties",`log purchase "${e}"`,"purchase");if(!g)return!1;let f=s.Ay.l();if(f&&f.Dr(e))return n.A.info(`Purchase "${e}" is blocklisted, ignoring.`),!1;let A=h.A.rt(r.w.Pr,{pid:e,c:i,p:p,q:b,pr:m});if(A.W)for(let t of(n.A.info(`Logged ${b} purchase${b>1?"s":""} of "${e}" for ${i} ${p}.`),A.ue))l.B.o().ve(o.A.Rr,[e,d],t);return A.W}},73854:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(67037),a=i(84456),n=i(4624),r=i(68711),o=i(72180),l=i(27584);class u{constructor(e,t){this.Cs=e,this.au=t,this.Cs=e,this.au=t}getUserId(e){let t=this.Cs.getUserId();if("function"!=typeof e)return t;a.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,r.rK)(e,"add alias","the alias",!1)||e.length<=0?(a.A.error("addAlias requires a non-empty alias"),!1):!(0,r.rK)(t,"add alias","the label",!1)||t.length<=0?(a.A.error("addAlias requires a non-empty label"),!1):this.au.du(e,t).W}setFirstName(e){return!!(0,r.rK)(e,"set first name","the firstName",!0)&&this.Cs.nu("first_name",e)}setLastName(e){return!!(0,r.rK)(e,"set last name","the lastName",!0)&&this.Cs.nu("last_name",e)}setEmail(e){return null===e||(0,r.B9)(e)?this.Cs.nu("email",e):(a.A.error(`Cannot set email address - "${e}
1" did not pass RFC-5322 validation.`),!1)}setGender(e){return"string"==typeof e&&(e=e.toLowerCase()),!(null!==e&&!(0,s.BY)(u.Genders,e,`Gender "${e}" is not a valid gender.`,"User.Genders"))&&this.Cs.nu("gender",e)}setDateOfBirth(e,t,i){return null===e&&null===t&&null===i?this.Cs.nu("dob",null):(e=null!=e?parseInt(e.toString()):null,t=null!=t?parseInt(t.toString()):null,i=null!=i?parseInt(i.toString()):null,null==e||null==t||null==i||isNaN(e)||isNaN(t)||isNaN(i)||t>12||t<1||i>31||i<1?(a.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Cs.nu("dob",`${e}-${t}-${i}`))}setCountry(e){return!!(0,r.rK)(e,"set country","the country",!0)&&this.Cs.nu("country",e)}setHomeCity(e){return!!(0,r.rK)(e,"set home city","the homeCity",!0)&&this.Cs.nu("home_city",e)}setLanguage(e){return!!(0,r.rK)(e,"set language","the language",!0)&&this.Cs.nu("language",e)}setEmailNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("email_subscribe",e)}setPushNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("push_subscribe",e)}setPhoneNumber(e){return!!(0,r.rK)(e,"set phone number","the phoneNumber",!0)&&(null===e||e.match(u.pu)?this.Cs.nu("phone",e):(a.A.error(`Cannot set phone number - "${e}" did not pass validation.`),!1))}setLastKnownLocation(e,t,i,s,n){return null==e||null==t?(a.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),null!=i&&(i=parseFloat(i.toString())),null!=s&&(s=parseFloat(s.toString())),null!=n&&(n=parseFloat(n.toString())),isNaN(e)||isNaN(t)||null!=i&&isNaN(i)||null!=s&&isNaN(s)||null!=n&&isNaN(n)?(a.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):e>90||e<-90||t>180||t<-180?(a.A.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=i&&i<0||null!=n&&n<0?(a.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.au.setLastKnownLocation(this.Cs.getUserId(),e,t,s,i,n).W)}setCustomUserAttribute(e,t,i){if(!(0,r.ZJ)(e))return!1;let a=t=>{let[i]=(0,r.fB)(t,o.KG,"attribute value",`set custom user attribute "${e}"`,"custom user attribute");return i};if((0,s.cy)(t)){let[i,s]=(0,r.Z2)(e,t);if(!i&&!s&&0!==t.length)return!1;if(i||0===t.length)return this.au.bu(n.w.fu,e,t).W;for(let e of t)if(!a(e))return!1}else if((0,s.Gv)(t)){if(!a(t))return!1;if(i)return this.au.bu(n.w.gu,e,t).W}else if(!(void 0!==t&&(0,r.uZ)(t))||((0,s.$P)(t)&&(t=(0,l.EQ)(t)),"string"==typeof t&&!(0,r.Dz)(t,`set custom user attribute "${e}"`,"the element in the given array")))return!1;return this.Cs.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,r.Dz)(e,"add to custom user attribute array","the given key")&&!(null!=t&&!(0,r.Dz)(t,"add to custom user attribute array","the given value"))&&this.au.bu(n.w.Nu,e,t).W}removeFromCustomAttributeArray(e,t){return!!(0,r.Dz)(e,"remove from custom user attribute array","the given key")&&!(null!=t&&!(0,r.Dz)(t,"remove from custom user attribute array","the given value"))&&this.au.bu(n.w.yu,e,t).W}incrementCustomUserAttribute(e,t){if(!(0,r.Dz)(e,"increment custom user attribute","the given key"))return!1;null==t&&(t=1);let i=parseInt(t.toString());return isNaN(i)||i!==parseFloat(t.toString())?(a.A.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.au.bu(n.w.vu,e,i).W}setCustomLocationAttribute(e,t,i){return!!(0,r.Dz)(e,"set custom location attribute","the given key")&&((null!==t||null!==i)&&(t=null!=t?parseFloat(t.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==t&&null!=i||null!=t&&null==i||null!=t&&(isNaN(t)||t>90||t<-90)||null!=i&&(isNaN(i)||i>
1180||i<-180))?(a.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.au.Iu(e,t,i).W)}addToSubscriptionGroup(e){return!(0,r.rK)(e,"add user to subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.au.Cu(e,u.Eu.SUBSCRIBED).W}removeFromSubscriptionGroup(e){return!(0,r.rK)(e,"remove user from subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.au.Cu(e,u.Eu.UNSUBSCRIBED).W}setLineId(e){return(0,r.rK)(e,"set LINE user ID","the ID",!0)&&0!==(null==e?void 0:e.length)?e&&e.length>u.Su?(a.A.error(`Rejected LINE user ID ${e} because it is longer than ${u.Su} characters.`),!1):this.Cs.nu("native_line_id",e):(a.A.error("setLineId requires a non-empty ID"),!1)}Yn(e,t,i,s,a){this.Cs.Yn(e,t,i,s,a),this.au.Au()}Hn(e){this.Cs.Hn(e)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.pu=/^[0-9 .\\(\\)\\+\\-]+$/,u.Eu={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Uu="user_id",u.lu="custom",u.mr=997,u.Su=33},80328:(e,t,i)=>{i.d(t,{z:()=>a});var s=i(84456);class a{constructor(e){this.properties=e,this.properties=e||{}}Oo(e,t,i){let s=this.properties[e];return null==s?(this.Ko(e),null):t(s)?s.value:(this.Lo(i),null)}getStringProperty(e){return this.Oo(e,this.Qo,"string")}getNumberProperty(e){return this.Oo(e,this.Ro,"number")}getBooleanProperty(e){return this.Oo(e,this.Xo,"boolean")}getImageProperty(e){return this.Oo(e,this.Yo,"image")}getJsonProperty(e){return this.Oo(e,this.Zo,"jsonobject")}getTimestampProperty(e){return this.Oo(e,this.tp,"datetime")}Lo(e){s.A.info(`Property is not of type ${e}.`)}Ko(e){s.A.info(`${e} not found in properties.`)}Qo(e){return"string"===e.type&&"string"==typeof e.value}Ro(e){return"number"===e.type&&"number"==typeof e.value}Xo(e){return"boolean"===e.type&&"boolean"==typeof e.value}Yo(e){return"image"===e.type&&"string"==typeof e.value}Zo(e){return"jsonobject"===e.type&&"object"==typeof e.value&&e.value.constructor==Object}tp(e){return"datetime"===e.type&&"number"==typeof e.value}}},80429:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(67037);class a{constructor(){}ef(){}ff(){}rc(e){}static nf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,s.cy)(t.cf)){for(let i=0;i<t.cf.length;i++)if(-1!==e.indexOf(t.cf[i].toLowerCase()))return t.identity}else if(-1!==e.indexOf(t.cf.toLowerCase()))return t.identity}}}var n=i(96246);class r extends a{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){let e=this.Vc();this.browser=e.browser||"Unknown Browser",this.version=e.version||"Unknown Version"}this.OS=null}ef(){return this.browser}ff(){return this.version}rc(e){if(this.OS)return Promise.resolve(this.OS);let t=t=>{for(let i=0;i<e.length;i++){let s=r.nf(t,e[i]);if(s)return this.OS=s,this.OS}return t};return this.userAgentData.platform?Promise.resolve(t(this.userAgentData.platform)):this.getHighEntropyValues().then(e=>e.platform?t(e.platform):navigator.platform).catch(()=>navigator.platform)}Vc(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let i of t){let t=this.Gc(n.c),s=i.brand.match(t);if(s&&s.length>0){e.browser=s[0],e.version=i.version;break}}return e}Gc(e){let t=[];for(let i in e)t.push(e[i]);return RegExp("("+t.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends a{constructor(){super(),this.fd=o.Vc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}ff(){return this.fd[1]||"Unknown Version"}rc(e){for(let t=0;t<e.length;t++){let i=e[t].string,s=o.nf(i,e[t]);if(s)return s===n.u.Pg&&navigator.maxTouchPoints>1&&(s=n.u.co),Promise.resolve(s)}return Promise.resolve(navigator.platform)}
1static Vc(e){let t,i=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chatgptbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==e.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==e.indexOf("CrKey"))return["Chromecast",null];if(-1!==e.indexOf("BRAVIA")||-1!==e.indexOf("SonyCEBrowser")||-1!==e.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==e.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(e.match(/\b(Roku)\b/))return["Roku",null];if(e.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===n.c.rO){if(e.includes(n.c.Sg))return[n.c.Sg,i[2]];if(null!=(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("OPR",n.c.oO),t[0]=t[0].replace("EdgA",n.c.eO),"Edg"===t[0]&&(t[0]=n.c.eO),[t[0],t[1]]}if(i[1]===n.c.Bg&&null!=(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("EdgiOS",n.c.eO),[t[0],t[1]];if((i=i[2]?[i[1],i[2]]:[null,null])[0]===n.c.Bg&&null!=(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,t[1]),null!=(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,t[2]),i[0]===n.c.oO&&null!=(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",t[1]||""];if(i[0]){let e=i[0].toLowerCase();"crios"===e&&(i[0]=n.c.rO),"tizen"===e&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===e&&(i[0]="Samsung Browser")}return i}}class l{constructor(){let e;e=navigator.userAgent.toLowerCase().includes(n.c.Sg.toLowerCase())||!navigator.userAgentData?o:r,this.vg=new e,this.userAgent=navigator.userAgent,this.browser=this.vg.ef(),this.version=this.vg.ff(),this.OS=null,this.rc().then(e=>this.OS=e);let t=navigator;this.language=(t.userLanguage||t.language||t.browserLanguage||t.systemLanguage||"").toLowerCase(),this.Ja=l.xg(this.userAgent)}fE(){return this.browser===n.c.Bg}nc(){return this.OS||null}rc(){return this.OS?Promise.resolve(this.OS):this.vg.rc(l.Og).then(e=>(this.OS=e,e))}static xg(e){e=e.toLowerCase();let t=["bot","slurp","baiduspider","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 i=0;i<t.length;i++)if(-1!==e.indexOf(t[i]))return!0;return!1}}l.Og=[{string:navigator.platform,cf:"Win",identity:n.u.kg},{string:navigator.platform,cf:"Mac",identity:n.u.Pg},{string:navigator.platform,cf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,cf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,cf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,cf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,cf:"SunOS",identity:"SunOS"},{string:navigator.platform,cf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,cf:"X11",identity:"X11"},{string:navigator.userAgent,cf:["iPhone","iPad","iPod"],identity:n.u.co},{string:navigator.platform,cf:"Pike v",identity:n.u.co},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.userAgent,cf:"Coolita",identity:"Other Smart TV"},{string:navigator.userAgent,cf:"WhaleTV",identity:"Other Smart TV"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:n.u.Dg},{string:navigator.userAgent,cf:["Android"],identity:n.u.Dg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];let u=new l},81023:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(15465);class a{constructor(){this.Mr={}}wt(e){if("function"!=typeof e)return null;let t=s.A.oe();return this.Mr[t]=e,t}removeSubscription(e){delete this.Mr[e]}removeAllSubscriptions(){this.Mr={}}he(){return Object.keys(this.Mr).length}L(e){let t=[];for(let i in this.Mr){let s=this.Mr[i];t.push(s(e))}return t}}},81329:(e,t,i)=>{i.d(t,{N:()=>a,u:()=>n});var s=i(84456);function a(e){let t=e.length;for(let i=e.length-1;i>=0;i--){let s=e.charCodeAt(i);s>127&&s<=2047?t++:s>2047&&s<=65535&&(t+=2),s>=56320&&s<=57343&&i--}return t}function n(e){try{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=window.atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);let s=new Uint16Array(i.buffer);return String.fromCharCode(...s)}catch(e){return s.A.error("Unable to decode Base64: "+e),null}}},81585:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(27584),a=i(84456);
1class n{constructor(e){this.zc=e,this.zc=e}Bc(e){return null==this.zc||this.zc===e[0]}static fromJson(e){return new n(e?e.event_name:null)}dt(){return this.zc}}var r=i(67037);class o{constructor(e,t,i,a){this.yE=e,this.HE=t,this.comparator=i,this.LE=a,this.yE=e,this.HE=t,this.comparator=i,this.LE=a,this.HE===o.XE.QE&&this.comparator!==o.BE.wE&&this.comparator!==o.BE.jE&&this.comparator!==o.BE.zE&&this.comparator!==o.BE.FE&&(this.LE=(0,s.Zo)(this.LE))}Bc(e){let t=null;switch(null!=e&&(t=e[this.yE]),this.comparator){case o.BE.kE:return null!=t&&t.valueOf()===this.LE.valueOf();case o.BE.xE:return null==t||t.valueOf()!==this.LE.valueOf();case o.BE.JE:return null!=t&&typeof t==typeof this.LE&&t>this.LE;case o.BE.wE:return this.HE===o.XE.QE?null!=t&&(0,r.$P)(t)&&(0,s.Jd)(t)<=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t>=this.LE;case o.BE.VE:return null!=t&&typeof t==typeof this.LE&&t<this.LE;case o.BE.jE:return this.HE===o.XE.QE?null!=t&&(0,r.$P)(t)&&(0,s.Jd)(t)>=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t<=this.LE;case o.BE.qE:return null!=t&&"string"==typeof t&&typeof t==typeof this.LE&&null!=t.match(this.LE);case o.BE.PE:return null!=t;case o.BE.WE:return null==t;case o.BE.zE:return null!=t&&(0,r.$P)(t)&&(0,s.DA)(t)<this.LE;case o.BE.FE:return null!=t&&(0,r.$P)(t)&&(0,s.DA)(t)>this.LE;case o.BE.ZE:return null==t||typeof t!=typeof this.LE||"string"!=typeof t||null==t.match(this.LE)}return!1}static fromJson(e){return new o(e.property_key,e.property_type,e.comparator,e.property_value)}dt(){let e=this.LE;return(0,r.$P)(this.LE)&&(e=(0,s.UK)(e.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:e}}static Vo(e){return new o(e.k,e.t,e.c,e.v)}}o.XE={$E:"boolean",tT:"number",sT:"string",QE:"date"},o.BE={kE:1,xE:2,JE:3,wE:4,VE:5,jE:6,qE:10,PE:11,WE:12,zE:15,FE:16,ZE:17};class l{constructor(e){this.filters=e,this.filters=e}Bc(e){let t=!0;for(let i=0;i<this.filters.length;i++){let s=this.filters[i],a=!1;for(let t=0;t<s.length;t++)if(s[t].Bc(e)){a=!0;break}if(!a){t=!1;break}}return t}static fromJson(e){if(null==e||!(0,r.cy)(e))return null;let t=[];for(let i=0;i<e.length;i++){let s=[],a=e[i];for(let e=0;e<a.length;e++)s.push(o.fromJson(a[e]));t.push(s)}return new l(t)}dt(){let e=[];for(let t=0;t<this.filters.length;t++){let i=this.filters[t],s=[];for(let e=0;e<i.length;e++)s.push(i[e].dt());e.push(s)}return e}static Vo(e){let t=[];for(let i=0;i<e.length;i++){let s=[],a=e[i];for(let e=0;e<a.length;e++)s.push(o.Vo(a[e]));t.push(s)}return new l(t)}}class u{constructor(e,t){this.zc=e,this.tf=t,this.zc=e,this.tf=t}Bc(e){if(null==this.zc||null==this.tf)return!1;let t=e[0],i=e[1];return t===this.zc&&this.tf.Bc(i)}static fromJson(e){return new u(e?e.event_name:null,e?l.fromJson(e.property_filters):null)}dt(){return{e:this.zc,pf:this.tf?this.tf.dt():null}}}class h{constructor(e,t){this.if=e,this.rf=t,this.if=e,this.rf=t}Bc(e){if(null==this.if)return!1;let t=m.sf(e[0],this.if);if(!t)return!1;let i=null==this.rf||0===this.rf.length;if(null!=this.rf){for(let t=0;t<this.rf.length;t++)if(this.rf[t]===e[1]){i=!0;break}}return t&&i}static fromJson(e){return new h(e?e.id:null,e?e.buttons:null)}dt(){return this.if}}class c{constructor(e){this.productId=e,this.productId=e}Bc(e){return null==this.productId||e[0]===this.productId}static fromJson(e){return new c(e?e.product_id:null)}dt(){return this.productId}}class d{constructor(e,t){this.productId=e,this.tf=t,this.productId=e,this.tf=t}Bc(e){if(null==this.productId||null==this.tf)return!1;let t=e[0],i=e[1];return t===this.productId&&this.tf.Bc(i)}static fromJson(e){return new d(e?e.product_id:null,e?l.fromJson(e.property_filters):null)}dt(){return{id:this.productId,pf:this.tf?this.tf.dt():null}}}class p{constructor(e){this.if=e,this.if=e}Bc(e){return null==this.if||m.sf(e[0],this.if)}static fromJson(e){return new p(e?e.campaign_id:null)}dt(){return this.if}}var b=i(86984),g=i(85518);class m{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}_c(e,t){return m.Ec[this.type]===e&&(null==this.data||this.data.Bc(t))}static sf(e,t){let i=null;try{i=window.atob(e)}catch(t){return a.A.info("Failed to unencode analytics id "+e+": "+(0,g.u)(t)),!1}return t===i.split("_")[0]}static fromJson(e){let t=e.type,i=null;switch(t){case m.gn.OPEN:case m.gn.qs:break;case m.gn.Rr:i=c.fromJson(e.data);break;case m.gn.Uc:i=d.fromJson(e.data);break;case m.gn.wr:i=p.fromJson(e.data);break;case m.gn.pe:i=n.fromJson(e.data);break;case m.gn.Hc:i=u.fromJson(e.data);break;case m.gn.Bo:i=h.fromJson(e.data)}return new m(t,i)}
1dt(){return{t:this.type,d:this.data?this.data.dt():null}}static Vo(e){let t,i=null;switch(e.t){case m.gn.OPEN:case m.gn.qs:break;case m.gn.Rr:i=new c(e.d);break;case m.gn.Uc:i=new d((t=e.d||{}).id,l.Vo(t.pf||[]));break;case m.gn.wr:i=new p(e.d);break;case m.gn.pe:i=new n(e.d);break;case m.gn.Hc:i=new u((t=e.d||{}).e,l.Vo(t.pf||[]));break;case m.gn.Bo:i=new h(e.d)}return new m(e.t,i)}}m.gn={OPEN:"open",Rr:"purchase",Uc:"purchase_property",wr:"push_click",pe:"custom_event",Hc:"custom_event_property",Bo:"iam_click",qs:"test"},m.Ec={},m.Ec[m.gn.OPEN]=b.A.OPEN,m.Ec[m.gn.Rr]=b.A.Rr,m.Ec[m.gn.Uc]=b.A.Rr,m.Ec[m.gn.wr]=b.A.wr,m.Ec[m.gn.pe]=b.A.pe,m.Ec[m.gn.Hc]=b.A.pe,m.Ec[m.gn.Bo]=b.A.Bo,m.Ec[m.gn.qs]=b.A.qs;class f{constructor(e,t=[],i,s,a=0,n,r,o=0,l=f.td,u,h,c){this.id=e,this.sd=t,this.startTime=i,this.endTime=s,this.priority=a,this.type=n,this.data=r,this.ed=o,this.rd=l,this.vn=u,this.hd=h,this.od=c,this.id=e,this.sd=t||[],void 0===i&&(i=null),this.startTime=i,void 0===s&&(s=null),this.endTime=s,this.priority=a||0,this.type=n,this.ed=o||0,null==u&&(u=1e3*(this.ed+30)),this.vn=u,this.data=r,null!=l&&(this.rd=l),this.hd=h,this.od=c||null}nd(e){return null==this.od||this.rd!==f.td&&e-this.od>=1e3*this.rd}ad(e){this.od=e}ud(e){return Math.max(e+1e3*this.ed-new Date().valueOf(),0)}dd(e){let t=new Date().valueOf()-e,i=null==e||isNaN(t)||null==this.vn||t<this.vn;return i||a.A.info(`Trigger action ${this.type} is no longer eligible for display - fired ${t}ms ago and has a timeout of ${this.vn}ms.`),!i}static fromJson(e){let t=e.id,i=[];for(let t=0;t<e.trigger_condition.length;t++)i.push(m.fromJson(e.trigger_condition[t]));let a=(0,s.Zo)(e.start_time),n=(0,s.Zo)(e.end_time),o=e.priority,l=e.type,u=e.delay,h=e.re_eligibility,c=e.timeout,d=e.data,p=e.min_seconds_since_last_trigger;return(0,r.BY)(f.gn,l,"Could not construct Trigger from server data","Trigger.Types")?new f(t,
1i,a,n,o,l,d,u,h,c,p):null}dt(){let e=[];for(let t=0;t<this.sd.length;t++)e.push(this.sd[t].dt());return{i:this.id,c:e,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.vn,ss:this.hd,ld:this.od}}static Vo(e){let t=[],i=e.c||[];for(let e=0;e<i.length;e++)t.push(m.Vo(i[e]));return new f(e.i,t,(0,s.jU)(e.s),(0,s.jU)(e.e),e.p,e.t,e.da,e.d,e.r,e.tm,e.ss,e.ld)}}f.gn={fn:"inapp",md:"templated_iam"},f.td=-1},83617:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var s=i(53913),a=i(67037),n=i(9542),r=i(84456);let o={No:function(e){let t=atob((e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(t.length);for(let e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i}};var l=i(65455),u=i(73854),h=i(94962),c=i(85518);class d{constructor(e,t,i,s,a,n,r,o,l,u,c){this.wn=e,this.Pn=t,this.Dn=i,this.Sn=a,this.xn=n,this.Nn=r,this.h=o,this.Un=l,this.Wn=u,this.j=c,this.wn=e,this.Pn=t,this.Dn=i,this._n=s+"/safari/"+t,this.Sn=a||"/service-worker.js",this.Nn=r,this.h=o,this.Un=l||!1,this.Wn=u||!1,this.j=c,this.Vn=h.A.qn(),this.zn=h.A.En()}Rn(){return this.Wn}Cn(e,t,i,s,a){e.unsubscribe().then(e=>{e?this.Fn(t,i,s,a):(r.A.error("Failed to unsubscribe device from push."),"function"==typeof a&&a(!1))}).catch(e=>{r.A.error("Push unsubscription error: "+e),"function"==typeof a&&a(!1)})}On(e,t,i){var s;let a,n=(e=>{if("string"==typeof e)return e;if(0!==e.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return e.endpoint;let t=e.endpoint;return e.Bn&&-1===e.endpoint.indexOf(e.Bn)&&(t=e.endpoint+"/"+e.Bn),t})(e),o=null,l=null;if(null!=e.getKey)try{let t=Array.from(new Uint8Array(e.getKey("p256dh"))),i=Array.from(new Uint8Array(e.getKey("auth")));o=btoa(String.fromCharCode.apply(null,t)),l=btoa(String.fromCharCode.apply(null,i))}catch(e){r.A.error((0,c.u)(e))}let u=e.options&&(a=e.options.applicationServerKey)&&a.byteLength&&a.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(a)))).replace(/\+/g,"-").replace(/\//g,"_"):null;null==(s=this.wn)||s.Yn(n,t,o,l,u),n&&"function"==typeof i&&i(n,o,l)}Gn(){var e;null==(e=this.wn)||e.Hn(!0)}Jn(e,t){var i;null==(i=this.wn)||i.Hn(!1),r.A.info(e),"function"==typeof t&&t(!1)}Kn(e,t,i,s){var a;if("default"===t.permission)try{window.safari.pushNotification.requestPermission(this._n,e,{api_key:this.Pn,device_id:(null==(a=this.Dn)?void 0:a.fe().id)||""},t=>{"granted"===t.permission&&this.wn&&this.wn.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Kn(e,t,i,s)})}catch(e){this.Jn("Could not request permission for push: "+e,s)}else"denied"===t.permission?this.Jn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",s):"granted"===t.permission&&(r.A.info("Device successfully subscribed to push."),this.On(t.deviceToken,new Date,i))}requestPermission(e,t,i){let s=s=>{switch(s){case"granted":return void("function"==typeof e&&e());case"default":return void("function"==typeof t&&t());case"denied":return void("function"==typeof i&&i());default:r.A.error("Received unexpected permission result "+s)}},a=!1;if("default"!==window.Notification.permission)s(Notification.permission);else{let e=window.Notification.requestPermission(e=>{a&&s(e)});e?e.then(e=>{s(e)}):a=!0}}Fn(e,t,i,s){let a={userVisibleOnly:!0};null!=t&&(a.applicationServerKey=t),e.pushManager.subscribe(a).then(e=>{r.A.info("Device successfully subscribed to push."),this.On(e,new Date,i)}).catch(e=>{h.A.isPushBlocked()?(r.A.info("Permission for push notifications was denied."),"function"==typeof s&&s(!1)):(r.A.error("Push subscription failed: "+e),"function"==typeof s&&s(!0))})}Ln(){if(this.Un)return navigator.serviceWorker.getRegistration(this.Sn);let e=this.xn?{scope:this.xn}:void 0;return navigator.serviceWorker.register(this.Sn,e).then(()=>navigator.serviceWorker.ready.then(e=>(e&&"function"==typeof e.update&&e.update().catch(e=>{r.A.info("ServiceWorker update failed: "+e)}),e)))}Qn(e){this.Un||(e.unregister(),r.A.info("Service worker successfully unregistered."))}subscribe(e,t){if(!h.A.isPushSupported())return r.A.info(d.Xn),void("function"==typeof t&&t(!1));if(this.Vn){if(!this.Un&&null!=window.location){let e=this.Sn;-1===e.indexOf(window.location.host)&&(e=window.location.host+e),-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e)}if(h.A.isPushBlocked())return void this.Jn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",t);if(this.h&&!this.h.Zn()&&0===this.h.Ft())return r.A.info("Waiting for VAPID key from server config before subscribing to push."),void this.h.$n(()=>{this.subscribe(e,t)});let i=h.A.isPushPermissionGranted(),s=()=>{!i&&this.wn&&this.wn.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Ln().then(i=>{if(null==i)return r.A.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to fal
1se or ensure that your service worker is registered before calling registerPush."),void("function"==typeof t&&t(!0));i.pushManager.getSubscription().then(s=>{var u;let h=null;if(null!=(null==(u=this.h)?void 0:u.Zn())&&(h=o.No(this.h.Zn())),s){let o,u=null,c=null;if(this.j&&(o=this.j.lt(l.d.ct.Wo)),o&&!(0,a.cy)(o)){let e;try{e=n.A.Vo(o)._o}catch(t){e=null}null==e||isNaN(e.getTime())||0===e.getTime()||(c=new Date(u=e)).setMonth(u.getMonth()+6)}null!=h&&s.options&&s.options.applicationServerKey&&s.options.applicationServerKey.byteLength&&s.options.applicationServerKey.byteLength>0&&!(0,a.n4)(h,new Uint8Array(s.options.applicationServerKey))?(s.options.applicationServerKey.byteLength>12?r.A.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):r.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.Cn(s,i,h,e,t)):s.expirationTime&&new Date(s.expirationTime).valueOf()<=new Date().valueOf()?(r.A.info("Push subscription is expired, creating new subscription."),this.Cn(s,i,h,e,t)):o&&(0,a.cy)(o)?this.Cn(s,i,h,e,t):null==c?(r.A.info("No push subscription creation date found, creating new subscription."),this.Cn(s,i,h,e,t)):c.valueOf()<=new Date().valueOf()?(r.A.info("Push subscription older than 6 months, creating new subscription."),this.Cn(s,i,h,e,t)):(r.A.info("Device already subscribed to push, sending existing subscription to backend."),this.On(s,u,e))}else this.Fn(i,h,e,t)}).catch(e=>{r.A.error("Error checking current push subscriptions: "+e)})}).catch(e=>{r.A.error("ServiceWorker registration failed: "+e)})};this.requestPermission(s,()=>{let e="Permission for push notifications was ignored.";h.A.isPushBlocked()&&(e+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),r.A.info(e),"function"==typeof t&&t(!0)},()=>{r.A.info("Permission for push notifications was denied."),"function"==typeof t&&t(!1)})}else if(this.zn){if(null==this.Nn||""===this.Nn)return r.A.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof t&&t(!0));let i=window.safari.pushNotification.permission(this.Nn);this.Kn(this.Nn,i,e,t)}}unsubscribe(e,t){if(!h.A.isPushSupported())return r.A.info(d.Xn),void("function"==typeof t&&t());this.Vn?navigator.serviceWorker.getRegistration(this.Sn).then(i=>{i?i.pushManager.getSubscription().then(s=>{s?(this.Gn(),s.unsubscribe().then(s=>{s?(r.A.info("Device successfully unsubscribed from push."),"function"==typeof e&&e()):(r.A.error("Failed to unsubscribe device from push."),"function"==typeof t&&t()),this.Qn(i)}).catch(e=>{r.A.error("Push unsubscription error: "+e),"function"==typeof t&&t()})):(r.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}).catch(e=>{r.A.error("Error unsubscribing from push: "+e),"function"==typeof t&&t()}):(r.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}):this.zn&&(this.Gn(),r.A.info("Device unsubscribed from push."),"function"==typeof e&&e())}}d.Xn="Push notifications are not supported in this browser.";let p={i:!1,aa:null,ea:()=>(p.t(),p.aa||(p.aa=new d(s.Ay.br(),s.Ay.Ma(),s.Ay.de(),s.Ay.V(),s.Ay.ee(s.lw._a),s.Ay.ee(s.lw.Aa),s.Ay.ee(s.lw.Ba),s.Ay.l(),s.Ay.ee(s.lw.Ca),s.Ay.ee(s.lw.Da),s.Ay.p())),p.aa),t:()=>{p.i||(s.Ay.g(p),p.i=!0)},destroy:()=>{p.aa=null,p.i=!1}},b=p},84456:(e,t,i)=>{i.d(t,{A:()=>a});let s={init:function(e){void 0===e&&void 0!==s.zg||(s.zg=!!e),s.i||(s.i=!0)},destroy:function(){s.i=!1,s.zg=void 0,s.vd=void 0},setLogger:function(e){"function"==typeof e?(s.init(),s.vd=e):s.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){s.init(),s.zg?(console.log("Disabling Braze logging"),s.zg=!1):(console.log("Enabled Braze logging"),s.zg=!0)},info:function(e){if(s.zg){let t="Braze: "+e;null!=s.vd?s.vd(t):console.log(t)}},warn:function(e){if(s.zg){let t="Braze SDK Warning: "+e+" (v6.4.0)";null!=s.vd?s.vd(t):console.warn(t)}},error:function(e){if(s.zg){let t="Braze SDK Error: "+e+" (v6.4.0)";null!=s.vd?s.vd(t):console.error(t)}}},a=s},85515:(e,t,i)=>{i.d(t,{g:()=>c,x:()=>d});var s=i(38113),a=i(62553),n=i(42384),r=i(91217),o=i(7036),l=i(55413),u=i(62673),h=i(84456);function c(e){let t;if(!e)return null;if(e.is_control)return a.A.fromJson(e);let i=e.type;null!=i&&(i=i.toUpperCase());let c=e.message,d=e.text_align_message,p=e.slide_from,b=e.extras,g=e.trigger_id,m=e.click_action,f=e.uri,A=e.open_target,v=e.message_close,y=e.duration,w=e.icon,x=e.image_url,E=e.image_style,S=e.icon_color,k=e.icon_bg_color,C=e.bg_color,N=e.text_color,T=e.close_btn_color,_=e.header,I=e.text_align_header,j=e.header_text_color,D=e.frame_color,O=[],P=e.btns;null==P&&(P=[]);for(let e=0;e<P.length;e++)O.push(o.A.fromJson(P[e]));let L=e.crop_type,z=e.orientation,B=e.animate_in,M=e.animate_out,R=e.html_id,U=e.css;null!=R&&""!==R&&null!=U&&""!==U||(R=void 0,U=void 0);let F=e.message_extras,$=e.language,G=e.image_alt;if(i===l.A.es||i===s.A.Le.Io)t=new l.A(c,d,b,g,m,f,A,v,y,w,x,E,S,k,C,N,T,B,M,_,I,j,D,O,L,R,U,F,$,G);else if(i===n.A.es)t=new n.A(c,d,b,g,m,f,A,v,y,w,x,E,S,k,C,N,T,B,M,_,I,j,D,O,L,z,R,U,F,$,G);else if(i===u.A.es)t=new u.A(c,d,p,b,g,m,f,A,v,y,w,x,S,k,C,N,T,B,M,R,U,F,$,G);else{if(i!==r.A.es&&i!==s.A.Le.Ke&&i!==s.A.Le.Ao)return void h.A.error("Ignoring message with unknown type "+i);{let i=e.message_fields;(t=new r.A(c,b,g,v,y,B,M,D,R,U,i,F)).trusted=e.trusted||!1}}return t.Je=i,t}function d(e){let t=[];for(let i of e)t.push(new o.A(i.text,i.backgroundColor,i.textColor,i.borderColor,i.clickAction,i.uri,i.id));return t}},85518:(e,t,i)=>{i.d(t,{u:()=>s});let s=e=>e instanceof Error?e.message:String(e)},86984:(e,t,i)=>{i.d(t,{A:()=>s});let s={OPEN:"open",Rr:"purchase",wr:"push_click",pe:"custom_event",Bo:"iam_click",qs:"test"}},91217:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(38113);class a extends s.A{constructor(e,t,i,a,n,r,o,l,u,h,c,d){super(e,void 0,void 0,t,i,void 0,void 0,void 0,a=a||s.A.DismissType.MANUAL,n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,h,d,void 0,void 0),this.messageFields=c,this.messageFields=c}Po(){return!1}$t(e){if(this.Je===s.A.Le.Mn){if(this.So)return!1;this.So=!0}return this.ti.L(e),!0}
1dt(){let e=super.dt(a.es);return e[s.A.ss.qo]=this.messageFields,e}static In(e){return new a(e[s.A.ss.ra],e[s.A.ss.xs],e[s.A.ss.ta],e[s.A.ss.pa],e[s.A.ss.ma],e[s.A.ss.ja],e[s.A.ss.xa],e[s.A.ss.wa],e[s.A.ss.ka],e[s.A.ss.CSS],e[s.A.ss.qo],e[s.A.ss.qa])}}a.es=s.A.Le.Mn},92428:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(80328);class a extends s.z{constructor(e,t=!1,i={},s){super(i),this.id=e,this.enabled=t,this.trackingString=s,this.id=e,this.enabled=t,this.trackingString=s}dt(){let e={};return e[a.ss.rs]=this.id,e[a.ss.Fe]=this.enabled,e[a.ss.we]=this.properties,e[a.ss.xe]=this.trackingString,e}}a.ss={rs:"id",Fe:"e",we:"pr",xe:"fts"},a.ui={rs:"id",Fe:"enabled",we:"properties",xe:"fts"}},94744:(e,t,i)=>{i.d(t,{j3:()=>s,uD:()=>a});let s={PORTRAIT:0,LANDSCAPE:1},a={openUri:function(e,t,i){e&&(t||null!=i&&i.metaKey?window.open(e):window.location=e)},Uo:function(){return screen.width<=600},$o:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?s.LANDSCAPE:s.PORTRAIT;let e=window;if("screen"in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?s.LANDSCAPE:s.PORTRAIT}return s.PORTRAIT},Ha:function(){return window.location.href}}},94865:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(53913),a=i(62637),n=i(67037),r=i(27584);class o{constructor(e,t,i,s,a){this.userId=e,this.type=t,this.time=i,this.sessionId=s,this.data=a,this.userId=e,this.type=t,this.time=(0,r.S3)(i),this.sessionId=s,this.data=a}pn(){var e;let t={name:this.type,time:(0,r.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(t.user_id=this.userId);let i=(null==(e=s.Ay.Sr())?void 0:e.wh())||!1;if(!t.user_id&&!i){let e=(0,a.b)(s.Ay.p());e&&(t.alias=e)}return t}dt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new o(e.user_id,e.name,e.time,e.session_id,e.data)}static gE(e){return null!=e&&(0,n.Gv)(e)&&null!=e.t&&""!==e.t}static Vo(e){return new o(e.u,e.t,e.ts,e.s,e.d)}}},94962:(e,t,i)=>{i.d(t,{A:()=>a});let s={qn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,En:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>s.qn()||s.En(),isPushBlocked:()=>{let e=s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,t=s.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return e||t},isPushPermissionGranted:()=>s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,en:()=>s.isPushBlocked()?{sn:!1,reason:"blocked"}:s.isPushSupported()?s.isPushPermissionGranted()?{sn:!1,reason:"permissionGranted"}:{sn:!0}:{sn:!1,reason:"unsupported"},on:(e,t)=>"blocked"===e?`${t} containing a push prompt is not being shown because the user has already declined push permission prompt.`:"unsupported"===e?`${t} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${t} containing a push prompt is not being shown because the user has already accepted the permission prompt.`},a=s},95417:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(15465),a=i(84456),n=i(67037),r=i(85518);class o{constructor(e,t,i){this.eu=e,null==e&&(e=s.A.oe()),!i||isNaN(i)?this.Ol=new Date().valueOf():this.Ol=i,this.eu=e,this.Zl=new Date().valueOf(),this.Yl=t}dt(){return`g:${encodeURIComponent(this.eu)}|e:${this.Yl}|c:${this.Ol}|l:${this.Zl}`}static AE(e){let t;if("string"!=typeof e)return null;let i=e.lastIndexOf("|e:"),s=e.substring(0,i),a=s.split("g:")[1];return t=/[|:]/.test(a)?encodeURIComponent(a):a,e=e.replace(s,`g:${t}`)}static Vo(e){let t;if("string"==typeof e)try{let i=e.split("|");if(!(0,n.cy)(i)||4!==i.length)return null;let s=e=>e.split(":")[1],a=e=>{let t=parseInt(s(e));if(!isNaN(t))return t};(t=new o(decodeURIComponent(s(i[0])),a(i[1]),a(i[2]))).Zl=a(i[3])}catch(t){a.A.info(`Unable to parse cookie string ${e}, failed with error: ${(0,r.u)(t)}`)}else{if(null==e||null==e.g)return null;(t=new o(e.g,e.e,e.c)).Zl=e.l}return t}}},96246:(e,t,i)=>{i.d(t,{c:()=>s,u:()=>a});let s={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox",Sg:"ChatGPTBrowser"},a={Dg:"Android",co:"iOS",Pg:"Mac",kg:"Windows"}}}]);

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.