1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1882],{12730:function(t,e,n){n.d(e,{G:function(){return i},r:function(){return s}});const i={CustomEvent:"ce",Pr:"p",wc:"pc",Ac:"ca",Su:"i",qu:"ie",ts:"cci",rs:"ccic",Mt:"ccc",Wt:"ccd",Fl:"ss",Dl:"se",Ki:"si",Li:"sc",Qi:"sbc",Mc:"sfe",Do:"iec",bc:"lr",vc:"uae",ss:"ci",Ot:"cc",Sc:"lcaa",yc:"lcar",Hn:"inc",On:"add",Gn:"rem",$n:"set",Bn:"ncam",jc:"sgu",yr:"ffi",ro:"bi",ct:"bc"},s={Fr:"feed_displayed",Dc:"content_cards_displayed"}},57070:function(t,e){const n={ce:function(){const t=(t=!1)=>{const e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return t()+t(!0)+t(!0)+t()}};e.Z=n},45522:function(t,e,n){n.d(e,{Z:function(){return i}});class i{constructor(t,e){this.database=t,this.vd=e,this.parent="undefined"==typeof window?self:window,this.database=t,this.vd=e}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var t;try{if(null==this.Dd())return!1;{const e=null===(t=this.Dd())||void 0===t?void 0:t.open("Braze IndexedDB Support Test");if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),"undefined"!=typeof window){const t=window,e=t.chrome||t.browser||t.pd;if(e&&e.runtime&&e.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.vd.info("Not using IndexedDB for storage due to following error: "+t),!1}}Bd(t,e){var n;const i=null===(n=this.Dd())||void 0===n?void 0:n.open(this.database.Sd,this.database.VERSION);if(null==i)return"function"==typeof e&&e(),!1;const s=this;return i.onupgradeneeded=t=>{var e;s.vd.info("Upgrading indexedDB "+s.database.Sd+" to v"+s.database.VERSION+"...");const n=null===(e=t.target)||void 0===e?void 0:e.result;for(const i in s.database.Ms){const t=i;s.database.Ms.hasOwnProperty(i)&&!n.objectStoreNames.contains(s.database.Ms[t])&&n.createObjectStore(s.database.Ms[t])}},i.onsuccess=n=>{var i;const r=null===(i=n.target)||void 0===i?void 0:i.result;r.onversionchange=()=>{r.close(),"function"==typeof e&&e(),s.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(r)},i.onerror=t=>{var n;const i=t;return s.vd.info("Could not open indexedDB "+s.database.Sd+" v"+s.database.VERSION+": "+(null===(n=i.target)||void 0===n?void 0:n.errorCode)),"function"==typeof e&&e(),!0},!0}setItem(t,e,n,i,s){if(!this.isSupported())return"function"==typeof s&&s(),!1;const r=this;return this.Bd((a=>{if(!a.objectStoreNames.contains(t))return r.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof s&&s(),void a.close();const o=a.transaction([t],"readwrite");o.oncomplete=()=>a.close();const l=o.objectStore(t).put(n,e);l.onerror=()=>{r.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.database.Sd),"function"==typeof s&&s()},l.onsuccess=()=>{"function"==typeof i&&i()}}),s)}getItem(t,e,n){if(!this.isSupported())return!1;const i=this;return this.Bd((s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).get(e);a.onerror=()=>{i.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+i.database.Sd)},a.onsuccess=t=>{var e;const i=null===(e=t.target)||void 0===e?void 0:e.result;null!=i&&n(i)}}))}cr(t,e,n){if(!this.isSupported())return"function"==typeof n&&n(),!1;const i=this;return this.Bd((s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not retrieve last record from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof n&&n(),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).openCursor(null,"prev");a.onerror=()=>{i.vd.error("Could not open cursor for "+t+" on indexedDB "+i.database.Sd),"function"==typeof n&&n()},a.onsuccess=t=>{var i;const s=null===(i=t.target)||void 0===i?void 0:i.result;null!=s&&null!=s.value&&null!=s.key?e(s.key,s.value):"function"==typeof n&&n()}}),n)}ge(t,e){if(!this.isSupported())return!1;const n=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(t))return n.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),void i.close();const s=i.transaction([t],"readwrite");s.oncomplete=()=>i.close(),s.objectStore(t).delete(e).onerror=()=>{n.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.database.Sd)}}))}Ns(t,e){if(!this.isSupported())return!1;const n=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(t))return n.vd.error("Could not retrieve objects from "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),void i.close();const s=i.transaction([t],"readwrite");s.oncomplete=()=>i.close();const r=s.objectStore(t),a=r.openCursor(),o=[];a.onerror=()=>{o.length>0?(n.vd.info("Cursor closed midway through for "+t+" on indexedDB "+n.database.Sd),e(o)):n.vd.error("Could not open cursor for "+t+" on indexedDB "+n.database.Sd)},a.onsuccess=t=>{var n;const i=null===(n=t.target)||void 0===n?void 0:n.result;null!=i?(null!=i.value&&null!=i.key&&(r.delete(i.key).onsuccess=()=>{o.push(i.value)}),"function"==typeof i.continue&&i.continue()):o.length>0&&e(o)}}))}clearData(){if(!this.isSupported())return!1;const t=[];for(const n in this.database.Ms){const e=n;this.database.Ms.hasOwnProperty(n)&&this.database.Ms[e]!==this.database.Ms.pe&&t.push(this.database.Ms[e])}const e=this;return this.Bd((function(n){const i=n.transaction(t,"readwrite");i.oncomplete=()=>n.close();for(let s=0;s<t.length;s++){const n=t[s];i.objectStore(n).clear().onerror=function(){e.vd.error("Could not clear "+this.source.name+" on indexedDB "+e.database.Sd)}}i.onerror=function(){e.vd.error("Could not clear object stores on indexedDB "+e.database.Sd)}}))}}i.Ls={Fs:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Ms:{Nu:"data",jr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",Js:"cardUpdates",pe:"optOut",kr:"pendingData",yh:"sdkAuthenticationSignature"},be:1}}},20335:function(t,e){const n={init:function(t){void 0===t&&void 0!==n.zg||(n.zg=!!t),n.l||(n.l=!0)},destroy:function(){n.l=!1,n.zg=void 0,n.vd=void 0},setLogger:function(t){"function"==typeof t?(n.init(),n.vd=t):n.info("Ignoring set
1Logger call since logger is not a function")},toggleLogging:function(){n.init(),n.zg?(console.log("Disabling Braze logging"),n.zg=!1):(console.log("Enabled Braze logging"),n.zg=!0)},info:function(t){if(n.zg){const e="Braze: "+t;null!=n.vd?n.vd(e):console.log(e)}},warn:function(t){if(n.zg){const e="Braze SDK Warning: "+t+" (v5.9.1)";null!=n.vd?n.vd(e):console.warn(e)}},error:function(t){if(n.zg){const e="Braze SDK Error: "+t+" (v5.9.1)";null!=n.vd?n.vd(e):console.error(e)}}};e.Z=n},85716:function(t,e,n){n.d(e,{Z:function(){return d}});var i=n(85563),s=n(39179),r=n(24673),a=n(20335),o=n(12730),l=n(45966);class u{constructor(t){this.C=t,this.C=t}logClick(t,e){const n=new r.Z;if(t.$t(),null==t.url||""===t.url)return a.Z.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),n;if(e&&t.id&&this.C){const e=this.C.ft(l.I.gt.Kt)||{};e[t.id]=!0,this.C.Bt(l.I.gt.Kt,e)}const i=this.Lt([t]);if(null==i)return n;const u=e?o.G.Mt:o.G.Ot;return s.Z.ut(u,i)}Pt(t){const e=new r.Z;if(!t.Qt())return a.Z.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),e;if(t.id&&this.C){const e=this.C.ft(l.I.gt.Vt)||{};e[t.id]=!0,this.C.Bt(l.I.gt.Vt,e)}const n=this.Lt([t]);return null==n?e:s.Z.ut(o.G.Wt,n)}Xt(t,e){const n=new r.Z(!0),u=[],c=[];let h={};this.C&&(h=e?this.C.ft(l.I.gt.Yt)||{}:this.C.ft(l.I.gt.Zt)||{});for(const s of t)s._t()?(s instanceof i.Z?c.push(s):u.push(s),s.id&&(h[s.id]=!0)):a.Z.info(`Card ${s.id} logged an impression too recently. Ignoring analytics event.`);const d=this.Lt(u),p=this.Lt(c);if(null==d&&null==p)return n.tt=!1,n;if(this.C&&(e?this.C.Bt(l.I.gt.Yt,h):this.C.Bt(l.I.gt.Zt,h)),null!=d){const t=e?o.G.ts:o.G.ss,i=s.Z.ut(t,d);n.ns(i)}if(null!=p&&e){const t=s.Z.ut(o.G.rs,p);n.ns(t)}return n}Lt(t){let e,n=null;for(let i=0;i<t.length;i++)e=t[i].id,null!=e&&""!==e&&(n=n||{},n.ids=n.ids||[],n.ids.push(e));return n}}var c=n(88468);const h={l:!1,aa:null,ea:()=>(h.p(),h.aa||(h.aa=new u(c.ZP.j())),h.aa),p:()=>{h.l||(c.ZP.h(h),h.l=!0)},destroy:()=>{h.aa=null,h.l=!1}};var d=h},35608:function(t,e,n){n.d(e,{CG:function(){return c},Dj:function(){return h},pq:function(){return l},sv:function(){return u}});var i=n(5242),s=n(11507),r=n(40420),a=n(22080),o=n(57070);function l(t){if(null!=t){const e=t.querySelectorAll(".ab-unread-indicator")[0];null!=e&&(e.className+=" read")}}function u(t){return t.getAttribute("data-ab-card-id")}function c(t,e){const n=e.querySelectorAll(".ab-image-area");let i,s=0;n.length>0&&(s=n[0].offsetWidth);for(const r of t)if(i=r.te,i&&r.imageUrl&&"number"==typeof r.aspectRatio){const t=s/r.aspectRatio;t&&(i.style.height=`${t}px`)}}function h(t,e,n,u="ltr"){const c=document.createElement("div");c.dir=u,c.className="ab-card ab-effect-card "+t.oe,t.id&&(c.setAttribute("data-ab-card-id",t.id),c.setAttribute("id",t.id)),c.setAttribute("role","article"),c.setAttribute("tabindex","0");let h="",d=!1;t.url&&""!==t.url&&(h=t.url,d=!0);const p=i=>(l(c),d&&(e(t),(0,r.S)(h,n,i)),!1);if(t.pinned){const t=document.createElement("div");t.className="ab-pinned-indicator";const e=document.createElement("i");e.className="fa fa-star",t.appendChild(e),c.appendChild(t)}if(t.imageUrl&&""!==t.imageUrl){const e=document.createElement("div");e.dir=u,e.className="ab-image-area";const n=document.createElement("img");if(n.setAttribute("src",t.imageUrl),n.onload=()=>{c.style.height="auto"},function(t,e){let n="";t.title||t.description||(n="Feed Image"),e.setAttribute("alt",n)}(t,n),e.appendChild(n),c.className+=" with-image",d&&!t.ae){const t=document.createElement("a");t.setAttribute("href",h),t.onclick=p,t.appendChild(e),c.appendChild(t)}else c.appendChild(e)}const f=document.createElement("div");if(f.className="ab-card-body",f.dir=u,t.dismissible){t.logCardDismissal=()=>(0,a.K)(t);const e=(0,i.B)("Dismiss Card",void 0,t.dismissCard.bind(t),u);c.appendChild(e),(0,s.FZ)(f,s.mQ.ie,(t=>{c.className+=" ab-swiped-left",e.onclick(t)})),(0,s.FZ)(f,s.mQ.de,(t=>{c.className+=" ab-swiped-right",e.onclick(t)}))}let b="",g=!1;if(t.title&&""!==t.title&&(b=t.title,g=!0),g){const t=document.createElement("h1");if(t.className="ab-title",t.id=o.Z.ce(),c.setAttribute("aria-labelledby",t.id),d){const e=document.createElement("a");e.setAttribute("href",h),e.onclick=p,e.appendChild(document.createTextNode(b)),t.appendChild(e)}else t.appendChild(document.createTextNode(b));f.appendChild(t)}
1const m=document.createElement("div");if(m.className=g?"ab-description":"ab-description ab-no-title",m.id=o.Z.ce(),c.setAttribute("aria-describedby",m.id),t.description&&m.appendChild(document.createTextNode(t.description)),d){const e=document.createElement("div");e.className="ab-url-area";const n=document.createElement("a");n.setAttribute("href",h),t.linkText&&n.appendChild(document.createTextNode(t.linkText)),n.onclick=p,e.appendChild(n),m.appendChild(e)}f.appendChild(m),c.appendChild(f);const v=document.createElement("div");return v.className="ab-unread-indicator",t.viewed&&(v.className+=" read"),c.appendChild(v),t.te=c,c}},1280:function(t,e,n){n.d(e,{d:function(){return l}});var i=n(72857),s=n(85716),r=n(27671),a=n(88468),o=n(20335);function l(t,e){return!!a.ZP.rr()&&(t instanceof i.Z?s.Z.ea().logClick(t,e).tt:(o.Z.error("card "+r.U4),!1))}},22080:function(t,e,n){n.d(e,{K:function(){return l}});var i=n(72857),s=n(85716),r=n(27671),a=n(88468),o=n(20335);function l(t){return!!a.ZP.rr()&&(t instanceof i.Z?s.Z.ea().Pt(t).tt:(o.Z.error("card "+r.U4),!1))}},11066:function(t,e,n){n.d(e,{p:function(){return u}});var i=n(72857),s=n(85716),r=n(88468),a=n(72893),o=n(27671),l=n(20335);function u(t,e){if(!r.ZP.rr())return!1;if(!(0,a.kJ)(t))return l.Z.error("cards must be an array"),!1;for(const n of t)if(!(n instanceof i.Z))return l.Z.error(`Each card in cards ${o.U4}`),!1;return s.Z.ea().Xt(t,e).tt}},5383:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(72857);class s extends i.Z{constructor(t,e,n,i,s,r,a,o,l,u,c,h,d,p,f,b){super(t,e,n,i,s,r,a,o,l,u,c,h,d,p,f,b),this.oe="ab-captioned-image",this.ae=!0,this.test=!1}bt(){const t={};return t[i.Z.es.hs]=i.Z.cs.os,t[i.Z.es.ds]=this.id,t[i.Z.es.ps]=this.viewed,t[i.Z.es.us]=this.title,t[i.Z.es.ls]=this.imageUrl,t[i.Z.es.fs]=this.description,t[i.Z.es.xs]=this.updated,t[i.Z.es.bs]=this.created,t[i.Z.es.gs]=this.categories,t[i.Z.es.js]=this.expiresAt,t[i.Z.es.URL]=this.url,t[i.Z.es.zs]=this.linkText,t[i.Z.es.ks]=this.aspectRatio,t[i.Z.es.qs]=this.extras,t[i.Z.es.vs]=this.pinned,t[i.Z.es.ws]=this.dismissible,t[i.Z.es.ys]=this.clicked,t[i.Z.es.As]=this.test,t}}},72857:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(57750),s=n(27671),r=n(74663),a=n(20335);class o{constructor(t,e,n,i,s,r,a,o,l,u,c,h,d,p,f,b){this.id=t,this.viewed=e,this.title=n,this.imageUrl=i,this.description=s,this.created=r,this.updated=a,this.categories=o,this.expiresAt=l,this.url=u,this.linkText=c,this.aspectRatio=h,this.extras=d,this.pinned=p,this.dismissible=f,this.clicked=b,this.id=t,this.viewed=e||!1,this.title=n||"",this.imageUrl=i,this.description=s||"",this.created=r||null,this.updated=a||null,this.categories=o||[],this.expiresAt=l||null,this.url=u,this.linkText=c,null==h?this.aspectRatio=null:(h=parseFloat(h.toString()),this.aspectRatio=isNaN(h)?null:h),this.extras=d||{},this.pinned=p||!1,this.dismissible=f||!1,this.dismissed=!1,this.clicked=b||!1,this.isControl=!1,this.test=!1,this.ti=null,this.ii=null,this.si=null}subscribeToClickedEvent(t){return this.hi().Dt(t)}subscribeToDismissedEvent(t){return this.ni().Dt(t)}removeSubscription(t){this.hi().removeSubscription(t),this.ni().removeSubscription(t)}removeAllSubscriptions(){this.hi().removeAllSubscriptions(),this.ni().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let t=this.te;!t&&this.id&&(t=document.getElementById(this.id)),t&&(t.style.height=t.offsetHeight+"px",t.className=t.className+" ab-hide",setTimeout((function(){t&&t.parentNode&&(t.style.height="0",t.style.margin="0",setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),o.li))}),s.rF))}hi(){return null==this.ti&&(this.ti=new r.Z),this.ti}ni(){return null==this.ii&&(this.ii=new r.Z),this.ii}_t(){const t=(new Date).valueOf();return!(null!=this.si&&t-this.si<o.ei)&&(this.si=t,this.viewed=!0,!0)}$t(){this.viewed=!0,this.clicked=!0,this.hi().X()}Qt(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.ni().X(),!0)}ri(t){if(null==t||t[o.ui.ds]!==this.id)return!0;
1if(t[o.ui.Ei])return!1;if(null!=t[o.ui.xs]&&null!=this.updated&&parseInt(t[o.ui.xs])<(0,i.FX)(this.updated.valueOf()))return!0;if(t[o.ui.ps]&&!this.viewed&&(this.viewed=!0),t[o.ui.ys]&&!this.clicked&&(this.clicked=t[o.ui.ys]),null!=t[o.ui.us]&&(this.title=t[o.ui.us]),null!=t[o.ui.ls]&&(this.imageUrl=t[o.ui.ls]),null!=t[o.ui.fs]&&(this.description=t[o.ui.fs]),null!=t[o.ui.xs]){const e=(0,i.X2)(t[o.ui.xs]);null!=e&&(this.updated=e)}if(null!=t[o.ui.js]){let e;e=t[o.ui.js]===o.oi?null:(0,i.X2)(t[o.ui.js]),this.expiresAt=e}if(null!=t[o.ui.URL]&&(this.url=t[o.ui.URL]),null!=t[o.ui.zs]&&(this.linkText=t[o.ui.zs]),null!=t[o.ui.ks]){const e=parseFloat(t[o.ui.ks].toString());this.aspectRatio=isNaN(e)?null:e}return null!=t[o.ui.qs]&&(this.extras=t[o.ui.qs]),null!=t[o.ui.vs]&&(this.pinned=t[o.ui.vs]),null!=t[o.ui.ws]&&(this.dismissible=t[o.ui.ws]),null!=t[o.ui.As]&&(this.test=t[o.ui.As]),!0}bt(){a.Z.error("Must be implemented in a subclass")}}o.oi=-1,o.ui={ds:"id",ps:"v",ws:"db",Ei:"r",xs:"ca",vs:"p",js:"ea",qs:"e",hs:"tp",ls:"i",us:"tt",fs:"ds",URL:"u",zs:"dm",ks:"ar",ys:"cl",As:"t"},o.cs={os:"captioned_image",Ti:"text_announcement",Ii:"short_news",ai:"banner_image",ci:"control"},o.es={ds:"id",ps:"v",ws:"db",bs:"cr",xs:"ca",vs:"p",gs:"t",js:"ea",qs:"e",hs:"tp",ls:"i",us:"tt",fs:"ds",URL:"u",zs:"dm",ks:"ar",ys:"cl",As:"s"},o.Ni={mi:"ADVERTISING",Si:"ANNOUNCEMENTS",Ai:"NEWS",Di:"SOCIAL"},o.li=400,o.ei=1e4},37653:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(72857);class s extends i.Z{constructor(t,e,n,i,s,r,a,o,l,u,c,h,d,p,f,b){super(t,e,n,i,s,r,a,o,l,u,c,h,d,p,f,b),this.oe="ab-classic-card",this.ae=!0}bt(){const t={};return t[i.Z.es.hs]=i.Z.cs.Ii,t[i.Z.es.ds]=this.id,t[i.Z.es.ps]=this.viewed,t[i.Z.es.us]=this.title,t[i.Z.es.ls]=this.imageUrl,t[i.Z.es.fs]=this.description,t[i.Z.es.xs]=this.updated,t[i.Z.es.bs]=this.created,t[i.Z.es.gs]=this.categories,t[i.Z.es.js]=this.expiresAt,t[i.Z.es.URL]=this.url,t[i.Z.es.zs]=this.linkText,t[i.Z.es.ks]=this.aspectRatio,t[i.Z.es.qs]=this.extras,t[i.Z.es.vs]=this.pinned,t[i.Z.es.ws]=this.dismissible,t[i.Z.es.ys]=this.clicked,t[i.Z.es.As]=this.test,t}}},85563:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(72857);class s extends i.Z{constructor(t,e,n,i,s,r){super(t,e,null,null,null,null,n,null,i,null,null,null,s,r),this.isControl=!0,this.oe="ab-control-card",this.ae=!1}bt(){const t={};return t[i.Z.es.hs]=i.Z.cs.ci,t[i.Z.es.ds]=this.id,t[i.Z.es.ps]=this.viewed,t[i.Z.es.xs]=this.updated,t[i.Z.es.js]=this.expiresAt,t[i.Z.es.qs]=this.extras,t[i.Z.es.vs]=this.pinned,t[i.Z.es.As]=this.test,t}}},8378:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(72857);class s extends i.Z{constructor(t,e,n,i,s,r,a,o,l,u,c,h,d,p){super(t,e,null,n,null,i,s,r,a,o,l,u,c,h,d,p),this.oe="ab-image-only",this.ae=!1,this.test=!1}bt(){const t={};return t[i.Z.es.hs]=i.Z.cs.ai,t[i.Z.es.ds]=this.id,t[i.Z.es.ps]=this.viewed,t[i.Z.es.ls]=this.imageUrl,t[i.Z.es.xs]=this.updated,t[i.Z.es.bs]=this.created,t[i.Z.es.gs]=this.categories,t[i.Z.es.js]=this.expiresAt,t[i.Z.es.URL]=this.url,t[i.Z.es.zs]=this.linkText,t[i.Z.es.ks]=this.aspectRatio,t[i.Z.es.qs]=this.extras,t[i.Z.es.vs]=this.pinned,t[i.Z.es.ws]=this.dismissible,t[i.Z.es.ys]=this.clicked,t[i.Z.es.As]=this.test,t}}},23756:function(t,e,n){n.d(e,{D5:function(){return d},rN:function(){return p},xA:function(){return h}});var i=n(72857),s=n(37653),r=n(5383),a=n(8378),o=n(85563),l=n(57750),u=n(20335);function c(t,e,n,l,c,h,d,p,f,b,g,m,v,Z,w,x,y,E){let C;if(e===i.Z.cs.Ti||e===i.Z.cs.Ii)C=new s.Z(t,n,l,c,h,d,p,f,b,g,m,v,Z,w,x,y);else if(e===i.Z.cs.os)C=new r.Z(t,n,l,c,h,d,p,f,b,g,m,v,Z,w,x,y);else if(e===i.Z.cs.ai)C=new a.Z(t,n,c,d,p,f,b,g,m,v,Z,w,x,y);else{if(e!==i.Z.cs.ci)return u.Z.error("Ignoring card with unknown type "+e),null;C=new o.Z(t,n,p,b,Z,w)}return E&&(C.test=E),C}function h(t){if(t[i.Z.ui.Ei])return null;const e=t[i.Z.ui.ds],n=t[i.Z.ui.hs],s=t[i.Z.ui.ps],r=t[i.Z.ui.us],a=t[i.Z.ui.ls],o=t[i.Z.ui.fs],u=(0,l.X2)(t[i.Z.ui.xs]),h=u;let d;return d=t[i.Z.ui.js]===i.Z.oi?null:(0,l.X2)(t[i.Z.ui.js]),c(e,n,s,r,a,o,h,u,null,d,t[i.Z.ui.URL],t[i.Z.ui.zs],t[i.Z.ui.ks],t[i.Z.ui.qs],t[i.Z.ui.vs],t[i.Z.ui.ws],t[i.Z.ui.ys],t[i.Z.ui.As]||!1)}function d(t){return c(t.id,t.type,t.viewed,t.title,t.image,t.description,(0,l.X2)(t.created),(0,l.X2)(t.updated),t.categories,(0,l.X2)(t.expires_at),t.url,t.domain,t.aspect_ratio,t.extras,!1,
1!1)}function p(t){return c(t[i.Z.es.ds],t[i.Z.es.hs],t[i.Z.es.ps],t[i.Z.es.us],t[i.Z.es.ls],t[i.Z.es.fs],(0,l.Rd)(t[i.Z.es.bs]),(0,l.Rd)(t[i.Z.es.xs]),t[i.Z.es.gs],(0,l.Rd)(t[i.Z.es.js]),t[i.Z.es.URL],t[i.Z.es.zs],t[i.Z.es.ks],t[i.Z.es.qs],t[i.Z.es.vs],t[i.Z.es.ws],t[i.Z.es.ys],t[i.Z.es.As]||!1)||void 0}},34790:function(t,e,n){n.r(e),n.d(e,{changeUser:function(){return l}});var i=n(88468),s=n(8548),r=n(20335),a=n(17615),o=n(3905);function l(t,e){if(!i.ZP.rr())return;if(null==t||0===t.length||t!=t)return void r.Z.error("changeUser requires a non-empty userId.");if((0,s.E)(t)>a.Z.ur)return void r.Z.error(`Rejected user id "${t}" because it is longer than ${a.Z.ur} bytes.`);if(null!=e&&!(0,o.ro)(e,"set signature for new user","signature"))return;const n=i.ZP.rn();n&&n.changeUser(t.toString(),i.ZP.ar(),e)}},12017:function(t,e){e.Z={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"}},46243:function(t,e,n){n.d(e,{P:function(){return s}});var i=n(88468);function s(){if(i.ZP.rr())return i.ZP.mr()}},40420:function(t,e,n){n.d(e,{S:function(){return d},h:function(){return p}});var i=n(20335),s=n(27671),r=n(88468),a=n(73046),o=n(7169),l=n(35806),u=n(3905),c=n(75319),h=n(46243);function d(t,e,d){if(r.ZP.rr())if(u.y9.test(t)){const e=(0,a.OL)(t);if(!e)return;const d=t=>{if(!(0,u.zR)(t))return void i.Z.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);const e=a.A9.properties.type,p=a.A9.properties.eo,f=a.A9.properties.so,b=t[e];if(b===a.A9.types.io){const e=t[p];for(const t of e)d(t)}else{const e=t[f];let u,d;switch(b){case a.A9.types.logCustomEvent:Promise.resolve().then(n.bind(n,61454)).then((({logCustomEvent:t})=>{r.ZP.nn()?(d=Array.prototype.slice.call(e),t(...d)):i.Z.error(s.Go)}));break;case a.A9.types.requestPushPermission:Promise.resolve().then(n.bind(n,12261)).then((({requestPushPermission:t})=>{r.ZP.nn()?"Safari"===o.Z.browser&&o.Z.OS===l.T.ao?window.navigator.standalone&&t():t():i.Z.error(s.Go)}));break;case a.A9.types.setEmailNotificationSubscriptionType:case a.A9.types.setPushNotificationSubscriptionType:case a.A9.types.setCustomUserAttribute:case a.A9.types.addToSubscriptionGroup:case a.A9.types.removeFromSubscriptionGroup:case a.A9.types.addToCustomAttributeArray:case a.A9.types.removeFromCustomAttributeArray:u=(0,h.P)(),u&&u[b](...Array.prototype.slice.call(e));break;case a.A9.types.co:case a.A9.types.mo:d=Array.prototype.slice.call(e),c.SD.openUri(...d);break;default:i.Z.info(`Ignoring unknown Braze Action: ${b}`)}}};d(e)}else c.SD.openUri(t,e,d)}function p(t,e){d(t,e)}},61454:function(t,e,n){n.r(e),n.d(e,{logCustomEvent:function(){return h}});var i=n(88468),s=n(39179),r=n(20335),a=n(12730),o=n(24365),l=n(85346),u=n(3905),c=n(27671);function h(t,e){if(!i.ZP.rr())return!1;if(null==t||t.length<=0)return r.Z.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!(0,u.zM)(t,"log custom event","the event name"))return!1;const[n,h]=(0,u.lg)(e,c._P,"eventProperties",`log custom event "${t}"`,"event");if(!n)return!1;const d=i.ZP.v();if(d&&d.je(t))return r.Z.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;const p=s.Z.ut(a.G.CustomEvent,{n:t,p:h});if(p.tt){r.Z.info(`Logged custom event "${t}".`);for(const n of p.$e)l.n.m().Ce(o.Z.Ee,[t,e],n)}return p.tt}},61364:function(t,e,n){n.r(e),n.d(e,{logPurchase:function(){return h}});var i=n(88468),s=n(27671),r=n(20335),a=n(12730),o=n(24365),l=n(85346),u=n(3905),c=n(39179);function h(t,e,n,h,d){if(!i.ZP.rr())return!1;if(null==n&&(n="USD"),null==h&&(h=1),null==t||t.length<=0)return r.Z.error(`logPurchase requires a non-empty productId, got "${t}", ignoring.`),!1;if(!(0,u.zM)(t,"log purchase","the purchase name"))return!1;if(null==e||isNaN(parseFloat(e.toString())))return r.Z.error(`logPurchase requires a numeric price, got ${e}, ignoring.`),!1;const p=parseFloat(e.toString()).toFixed(2);if(null==h||isNaN(parseInt(h.toString())))return r.Z.error(`logPurchase requires an integer quantity, got ${h}, ignoring.`),!1;const f=parseInt(h.toString());if(f<1||f>s.Fz)return r.Z.error(`logPurchase requires a quantity >1 and <${s.Fz}, got ${f}, ignoring.`),!1;if(n=null!=n?n.toUpperCase():n,-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(n))return r.Z.error(`logPurchase requires a valid currencyCode, got ${n}, ignoring.`),!1;const[b,g]=(0,u.lg)(d,"logPurchase","purchaseProperties",`log purchase "${t}"`,"purchase");if(!b)return!1;const m=i.ZP.v();if(m&&m.Dr(t))return r.Z.info(`Purchase "${t}" is blocklisted, ignoring.`),!1;const v=c.Z.ut(a.G.Pr,{pid:t,c:n,p:p,q:f,pr:g});if(v.tt){r.Z.info(`Logged ${f} purchase${f>1?"s":""} of "${t}" for ${n} ${p}.`);
1for(const e of v.$e)l.n.m().Ce(o.Z.Rr,[t,d],e)}return v.tt}},18503:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(88468);function s(t){i.ZP.rr()&&i.ZP.removeSubscription(t)}},64650:function(t,e,n){n.r(e),n.d(e,{requestImmediateDataFlush:function(){return s}});var i=n(88468);function s(t){if(!i.ZP.rr())return;const e=i.ZP.rn();e&&e.requestImmediateDataFlush(t)}},12962:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(20335);class s{constructor(t,e=!1,n={},i){this.id=t,this.enabled=e,this.properties=n,this.trackingString=i,this.id=t,this.enabled=e,this.properties=n,this.trackingString=i}he(t,e,n){const i=this.properties[t];return null==i?(this.ye(t),null):e(i)?i.value:(this.Pe(n),null)}getStringProperty(t){return this.he(t,this.Ie,"string")}getNumberProperty(t){return this.he(t,this.Te,"number")}getBooleanProperty(t){return this.he(t,this.Ne,"boolean")}getImageProperty(t){return this.he(t,this.Re,"image")}getJsonProperty(t){return this.he(t,this.Se,"jsonobject")}getTimestampProperty(t){return this.he(t,this.Ae,"datetime")}bt(){const t={};return t[s.es.ds]=this.id,t[s.es.Fe]=this.enabled,t[s.es.we]=this.properties,t[s.es.xe]=this.trackingString,t}Pe(t){i.Z.info(`Property is not of type ${t}.`)}ye(t){i.Z.info(`${t} not found in feature flag properties.`)}Ie(t){return"string"===t.type&&"string"==typeof t.value}Te(t){return"number"===t.type&&"number"==typeof t.value}Ne(t){return"boolean"===t.type&&"boolean"==typeof t.value}Re(t){return"image"===t.type&&"string"==typeof t.value}Se(t){return"jsonobject"===t.type&&"object"==typeof t.value&&t.value.constructor==Object}Ae(t){return"datetime"===t.type&&"number"==typeof t.value}}s.es={ds:"id",Fe:"e",we:"pr",xe:"fts"},s.ui={ds:"id",Fe:"enabled",we:"properties",xe:"fts"}},75219:function(t,e,n){n.d(e,{Z:function(){return g}});var i=n(88468),s=n(20335),r=n(40158),a=n(45966),o=n(74663),l=n(96504),u=n(41843),c=n(12962);function h(t){if(t[c.Z.ui.ds]&&"boolean"==typeof t[c.Z.ui.Fe])return new c.Z(t[c.Z.ui.ds],t[c.Z.ui.Fe],t[c.Z.ui.we],t[c.Z.ui.xe]);s.Z.info(`Unable to create feature flag from ${JSON.stringify(t,null,2)}`)}function d(t){if(t[c.Z.es.ds]&&"boolean"==typeof t[c.Z.es.Fe])return new c.Z(t[c.Z.es.ds],t[c.Z.es.Fe],t[c.Z.es.we],t[c.Z.es.xe]);s.Z.info(`Unable to deserialize feature flag from ${JSON.stringify(t,null,2)}`)}var p=n(76870);class f extends r.Z{constructor(t,e,n,s){super(),this.B=t,this.S=e,this.C=n,this.T=s,this.De=[],this.qe=0,this.B=t,this.S=e,this.C=n,this.T=s,this.ze=null,this.Ue=new o.Z,this.R=10,this.I=null,this.q=null,i.ZP.F(this.Ue)}U(t){var e;if((null===(e=this.B)||void 0===e?void 0:e.ke())&&null!=t&&t.feature_flags){this.De=[];for(const e of t.feature_flags){const t=h(e);t&&this.De.push(t)}this.qe=(new Date).getTime(),this.Be(),this.Ue.X(this.De)}}Me(){let t={};this.C&&(t=this.C.ft(a.I.gt.Xe));const e={};for(const n in t){const i=d(t[n]);i&&(e[i.id]=i)}return e}_e(){var t;return(null===(t=this.C)||void 0===t?void 0:t.ft(a.I.gt.Ge))||{}}He(t){this.C&&this.C.Bt(a.I.gt.Ge,t)}qt(t){return this.Ue.Dt(t)}refreshFeatureFlags(t,e,n=!1,i=!0){const s=()=>{"function"==typeof e&&e(),this.Ue.X(this.De)};if(!this.Je(n))return!this.ze&&this.B&&(this.ze=this.B.Ke((()=>{this.refreshFeatureFlags(t,e)}))),void s();const r=this.S;if(!r)return void s();i&&this.G();const a=r.H({},!0),o=r.J(a,p.Z.O.Le);let c=!1;r.V(a,((i=-1)=>{const r=this.S;if(!r)return void s();const h=(new Date).valueOf();p.Z.W(this.C,p.Z.O.Le,h),-1!==i&&o.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),u.Z.Y({url:`${r.Z()}/feature_flags/sync`,headers:o,data:a,tt:e=>{if(!r.st(a,e,o))return c=!0,void s();r.it(),this.U(e),c=!1,"function"==typeof t&&t()},error:t=>{r.et(t,"retrieving feature flags"),c=!0,s()},nt:(i,s)=>{let a;if(c){let t=this.I;(null==t||t<1e3*this.R)&&(t=1e3*this.R),a=Math.min(3e5,(0,l.R)(1e3*this.R,3*t))}r.rt(s,(()=>{this.refreshFeatureFlags(t,e,n,!0)}),p.Z.O.Le,(t=>this.ot(t)),(()=>this.G()),a)}})}),p.Z.O.Le,e)}G(){null!=this.q&&(clearTimeout(this.q),this.q=null)}ot(t){this.G(),this.q=t}Je(t){if(!this.B)return!1;if(!t){const t=this.B.Oe();if(null==t)return!1;let e=!1;if(!isNaN(t)){if(-1===t)return s.Z.info("Feature flag refreshes not allowed"),!1;e=(new Date).getTime()>=(this.qe||0)+1e3*t}if(!e)return s.Z.info(`Feature flag refreshes were rate limited to ${t} seconds`),!1}return this.B.ke()}Qe(){var t;return(null===(t=this.C)||void 0===t?void 0:t.ft(a.I.gt.Ve))||null}We(){var t,e;null===(t=this.C)||void 0===t||t.Bt(a.I.gt.Ve,null===(e=this.T)||void 0===e?void 0:e.St())}Ye(){var t;const e=null===(t=this.T)||void 0===t?void 0:t.St(),n=this.Qe();return null==n||e===n}Be(){if(!this.C)return;const t={};for(const e of this.De){const n=e.bt();t[e.id]=n}this.C.Bt(a.I.gt.Xe,t),this.C.Bt(a.I.gt.Ze,this.qe),this.We()}changeUser(){this.G()}clearData(){this.G()}}const b={l:!1,provider:null,m:()=>(b.p(),b.provider||(b.provider=new f(i.ZP.v(),i.ZP.g(),i.ZP.j(),i.ZP.P()),i.ZP._(b.provider)),b.provider),p:()=>{b.l||(i.ZP.h(b),b.l=!0)},destroy:()=>{b.provider=null,b.l=!1}};var g=b},992:function(t,e,n){n.r(e),n.d(e,{refreshFeatureFlags:function(){return a}});var i=n(88468),s=n(75219);function r(t,e,n=!1){if(i.ZP.rr())return s.Z.m().refreshFeatureFlags(t,e,n)}function a(t,e){r(t,e)}e.default=r},32075:function(t,e,n){n.d(e,{Z:function(){return d}});var i=n(88468),s=n(40158),r=n(83628),a=n(23756),o=n(57750),l=n(45966),u=n(74663);class c extends s.Z{constructor(t,e){super(),this.C=t,this.Fi=e,this.cards=[],this.xi=null,this.C=t,this.Fi=e,this.Ts=new u.Z,i.ZP.F(this.Ts),this.Ds()}Ds(){let t=[];this.C&&(t=this.C.ft(l.I.gt.qi)||[]);const e=[];for(let n=0;n<t.length;n++){const i=(0,a.rN)(t[n]);null!=i&&e.push(i)}this.cards=e,this.C&&(this.xi=(0,o.Rd)(this.C.ft(l.I.gt.zi)))}Ui(t){const e=[];let n=null,i={};this.C&&(i=this.C.ft(l.I.gt.Zt)||{});const s={};for(let r=0;r<t.length;r++){n=t[r];const o=(0,a.D5)(n);if(null!=o){const t=o.id;t&&i[t]&&(o.viewed=!0,s[t]=!0),e.push(o)}}this.cards=e,this.Ws(),this.xi=new Date,this.C&&(this.C.Bt(l.I.gt.Zt,s),this.C.Bt(l.I.gt.zi,this.xi))}Ws(){var t;const e=[];for(let n=0;n<this.cards.length;n++)e.push(this.cards[n].bt());null===(t=this.C)||void 0===t||t.Bt(l.I.gt.qi,e)}U(t){null!=t&&t.feed&&(this.Ds(),this.Ui(t.feed),this.Ts.X(new r.Z(this.cards.slice(),this.xi)))}ki(){this.Ds();const t=[],e=new Date;for(let n=0;n<this.cards.length;n++){const i=this.cards[n].expiresAt;let s=!0;null!=i&&(s=i>=e),s&&t.push(this.cards[n])}return new r.Z(t,this.xi)}bi(){this.Fi&&this.Fi.requestFeedRefresh()}qt(t){return this.Ts.Dt(t)}
1clearData(t){null==t&&(t=!1),this.cards=[],this.xi=null,t&&this.C&&(this.C.Ut(l.I.gt.qi),this.C.Ut(l.I.gt.zi)),this.Ts.X(new r.Z(this.cards.slice(),this.xi))}}const h={l:!1,provider:null,m:()=>(h.p(),h.provider||(h.provider=new c(i.ZP.j(),i.ZP.rn()),i.ZP._(h.provider)),h.provider),p:()=>{h.l||(i.ZP.h(h),h.l=!0)},destroy:()=>{h.provider=null,h.l=!1}};var d=h},83628:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(67),s=n(11066),r=n(1280),a=n(83516);class o extends i.Z{constructor(t,e){super(t,e)}logCardImpressions(t){(0,s.p)(t,!1)}logCardClick(t){return(0,r.d)(t,!1)}sr(){(0,a.a)()}nr(){return!1}}},46599:function(t,e,n){n.d(e,{j:function(){return r}});var i=n(88468),s=n(12730);function r(){var t;if(i.ZP.rr())return null===(t=i.ZP.g())||void 0===t?void 0:t.zr(s.r.Fr).tt}},83516:function(t,e,n){n.d(e,{a:function(){return r}});var i=n(88468),s=n(32075);function r(){if(i.ZP.rr())return s.Z.m().bi()}},96596:function(t,e,n){n.d(e,{n:function(){return r}});var i=n(88468),s=n(32075);function r(t){if(i.ZP.rr())return s.Z.m().qt(t)}},33545:function(t,e,n){n.r(e),n.d(e,{showFeed:function(){return p}});var i=n(88468),s=n(64095),r=n(83628),a=n(96596),o=n(46599),l=n(32075),u=n(72893),c=n(35608),h=n(46959),d=n(20335);function p(t,e,n){if(!i.ZP.rr())return;(0,h.B)();const p=(t,e)=>{if(null==e)return t;const n=[];for(let s=0;s<e.length;s++)n.push(e[s].toLowerCase());const i=[];for(let s=0;s<t.length;s++){const e=[],r=t[s].categories||[];for(let t=0;t<r.length;t++)e.push(r[t].toLowerCase());(0,u.jV)(e,n).length>0&&i.push(t[s])}return i},f=i.ZP.ee(i.JY.tn)||i.ZP.ee(i.JY.en)||!1;let b=!1;null==t&&(t=document.body,b=!0);let g,m=!1;null==e?(g=l.Z.m().ki(),(0,s.Of)(g,p(g.cards,n),g.lastUpdated,null,f),m=!0):g=new r.Z(p(e,n),new Date);const v=(0,s.Yz)(g,f,b);if(m){(null==g.lastUpdated||(new Date).valueOf()-g.lastUpdated.valueOf()>r.Z.dr)&&(d.Z.info(`Cached feed was older than max TTL of ${r.Z.dr} ms, requesting an update from the server.`),(0,s.cV)(g,v));const t=(new Date).valueOf(),e=(0,a.n)((function(e){const i=v.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let e=500;e-=(new Date).valueOf()-t;const n=v.getAttribute(s.cP);if(n){const t=parseInt(n);isNaN(t)||(e-=(new Date).valueOf()-t)}setTimeout((function(){i.className=i.className.replace(/fa-spin/g,"")}),Math.max(e,0))}(0,s.Of)(g,p(e.cards,n),e.lastUpdated,v,f)}));(0,s.GB)(e,v)}const Z=t=>{const e=t.querySelectorAll(".ab-feed");let n=null;for(let i=0;i<e.length;i++)e[i].parentNode===t&&(n=e[i]);null!=n?((0,s.tQ)(n),n.parentNode&&n.parentNode.replaceChild(v,n)):t.appendChild(v),setTimeout((function(){v.className=v.className.replace("ab-hide","ab-show")}),0),b&&v.focus(),(0,o.j)(),(0,s.cz)(g,v),g&&(0,c.CG)(g.cards,t)};var w;null!=t?Z(t):window.onload=(w=window.onload,function(){"function"==typeof w&&w(new Event("oldLoad")),Z(document.body)})}},23340:function(t,e,n){n.d(e,{V:function(){return d},q:function(){return h}});var i=n(1792),s=n(98376),r=n(4410),a=n(31090),o=n(84072),l=n(3811),u=n(26616),c=n(20335);function h(t){if(!t)return null;if(t.is_control)return s.Z.fromJson(t);let e=t.type;null!=e&&(e=e.toUpperCase());const n=t.message,h=t.text_align_message,d=t.slide_from,p=t.extras,f=t.trigger_id,b=t.click_action,g=t.uri,m=t.open_target,v=t.message_close,Z=t.duration,w=t.icon,x=t.image_url,y=t.image_style,E=t.icon_color,C=t.icon_bg_color,S=t.bg_color,k=t.text_color,A=t.close_btn_color,I=t.header,N=t.text_align_header,T=t.header_text_color,P=t.frame_color,_=[];let O=t.btns;null==O&&(O=[]);for(let i=0;i<O.length;i++)_.push(o.Z.fromJson(O[i]));const D=t.crop_type,M=t.orientation,B=t.animate_in,z=t.animate_out;let R=t.html_id,U=t.css;null!=R&&""!==R&&null!=U&&""!==U||(R=void 0,U=void 0);const L=t.message_extras;let F;if(e===l.Z.cs||e===i.Z.bo.Fo)F=new l.Z(n,h,p,f,b,g,m,v,Z,w,x,y,E,C,S,k,A,B,z,I,N,T,P,_,D,R,U,L);else if(e===r.Z.cs)F=new r.Z(n,h,p,f,b,g,m,v,Z,w,x,y,E,C,S,k,A,B,z,I,N,T,P,_,D,M,R,U,L);else if(e===u.Z.cs)F=new u.Z(n,h,d,p,f,b,g,m,v,Z,w,x,E,C,S,k,A,B,z,R,U,L);else{if(e!==a.Z.cs&&e!==i.Z.bo.po&&e!==i.Z.bo.Jo)return void c.Z.error("Ignoring message with unknown type "+e);{const e=t.message_fields;F=new a.Z(n,p,f,v,Z,B,z,P,R,U,e,L),F.trusted=t.trusted||!1}}return F.uo=e,F}function d(t){const e=[];for(const n of t)e.push(new o.Z(n.text,n.backgroundColor,n.textColor,n.borderColor,n.clickAction,n.uri,n.id));return e}},79602:function(t,e,n){n.d(e,{Z:function(){return A}});var i=n(41843),s=n(88468),r=n(98376),a=n(31090),o=n(1792),l=n(84072),u=n(39179),c=n(23340),h=n(96504),d=n(24673),p=n(12730),f=n(20335),b=n(74663),g=n(52134),m=n(3905),v=n(73046),Z=n(74556),w=n(76870),x=n(45966),y=n(4410),E=n(3811),C=n(26616);class S{constructor(t,e,n,i){this.S=t,this.T=e,this.C=n,this.Cs=i,this.S=t,this.T=e,this.C=n,this.Cs=i,this.Mi=new b.Z,s.ZP.F(this.Mi),this.Bi=1e3,this._i=6e4,this.Pi=null,this.Gi=null,this.$i=null}Oi(){return this.Mi}Xi(t){return this.Mi.Dt(t)}Hi(){return this.Pi}Ji(t){this.Pi=t}ut(t,e,n,i){const s=new d.Z;let o;if(e===p.G.Ki||t instanceof r.Z){if(!t._t())return f.Z.info("This in-app message has already received an impression. Ignoring analytics event."),s}else if((e===p.G.Li||t instanceof a.Z&&e===p.G.Qi)&&!t.$t(i))return f.Z.info("This in-app message has already received a click. Ignoring analytics event."),s;return o=t instanceof r.Z?{trigger_ids:[t.triggerId]}:this.Vi(t),null==o?s:(t.messageExtras&&(o.message_extras=t.messageExtras),null!=n&&(o.bid=n),u.Z.ut(e,o))}Wi(t,e){const n=new d.Z;if(!t.$t())return f.Z.info("This in-app message button has already received a click. Ignoring analytics event."),n;const i=this.Vi(e);
1return null==i?n:t.id===l.Z.Yi?(f.Z.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),n):(null!=t.id&&(i.bid=t.id),u.Z.ut(p.G.Qi,i))}Zi(t){const e=t.messageFields;return null!=e&&e.is_push_primer||!1}Ir(t){if(!(t instanceof o.Z))return;const e=t=>{if(!t)return;const e=(0,v.OL)(t);return(0,v.je)(e)?(0,v.Tu)(v.yi.Mr,"In-App Message"):(0,v.zA)(e)&&!Z.Z.Tr()?(0,v.Tu)(v.yi.wr,"In-App Message"):void 0};if(this.Zi(t)&&!Z.Z.Tr())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";const n=t.buttons||[];let i;for(const s of n)if(s.clickAction===o.Z.ClickAction.URI&&s.uri&&m.y9.test(s.uri)&&(i=e(s.uri),i))return i;return t.clickAction===o.Z.ClickAction.URI&&t.uri&&m.y9.test(t.uri)?e(t.uri):void 0}Br(t,e){e!==this.$i&&this._r(),this.Gi=t,this.$i=e}_r(){null!=this.Gi&&(clearTimeout(this.Gi),this.Gi=null,this.$i=null)}qr(t,e,n,s){const r=this.S;if(!r)return;this.$i&&t.triggerId!==this.$i&&(this._r(),w.Z.vi(this.C,w.Z.O.Er));const a=r.Gr(!1,!1),o=r.H(a);o.template={trigger_id:t.triggerId,trigger_event_type:e},null!=n&&(o.template.data=n.Nr());const l=r.J(o,w.Z.O.Er);r.V(o,((r=-1)=>{const a=this.S;if(!a)return;const u=(new Date).valueOf();w.Z.W(this.C,w.Z.O.Er,u),-1!==r&&l.push(["X-Braze-Req-Tokens-Remaining",r.toString()]);let d,p,b=!1;i.Z.Y({url:`${a.Z()}/template/`,data:o,headers:l,tt:e=>{if(!a.st(o,e,l))return void("function"==typeof t.$r&&t.$r());if(a.it(),null==e||null==e.templated_message)return;const n=e.templated_message;if(n.type!==g.Z.Or.Cr)return;const i=(0,c.q)(n.data);if(null==i)return;const s=this.Ir(i);if(s)return f.Z.error(s),void("function"==typeof t.$r&&t.$r());"function"==typeof t.Xr&&t.Xr(i)},error:e=>{b=!0,d=e,p=`getting user personalization for message ${t.triggerId}.`},nt:(i,r)=>{if((new Date).valueOf()-t.Hr<t.Jr){let i=0;if(b){const e=Math.min(t.Jr,this._i),n=this.Bi;null==s&&(s=n),i=Math.min(e,(0,h.R)(n,3*s))}a.rt(r,(()=>{this.qr(t,e,n,i)}),w.Z.O.Er,(e=>this.Br(e,t.triggerId)),(()=>this._r()),i)}b&&a.et(d,p)}})}),w.Z.O.Er)}Vi(t){if(null==t.triggerId)return f.Z.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const e={};return null!=t.triggerId&&(e.trigger_ids=[t.triggerId]),e}sn(t){return!!this.C&&!(!(t&&t instanceof o.Z&&t.constructor!==o.Z)||t instanceof r.Z)&&this.C.Bt(x.I.gt.Kr,t.bt())}Ar(){if(!this.C)return null;const t=this.C.ft(x.I.gt.Kr);if(!t)return null;let e;switch(t.type){case o.Z.bo.Lr:e=y.Z.Qr(t);break;case o.Z.bo.Ur:case o.Z.bo.po:case o.Z.bo.Jo:e=a.Z.Qr(t);break;case o.Z.bo.Vr:case o.Z.bo.Fo:e=E.Z.Qr(t);break;case o.Z.bo.Wr:e=C.Z.Qr(t)}return e&&this.Yr(),e}Yr(){this.C&&this.C.Ut(x.I.gt.Kr)}}const k={aa:null,l:!1,ea:()=>(k.p(),k.aa||(k.aa=new S(s.ZP.g(),s.ZP.P(),s.ZP.j(),s.ZP.ir())),k.aa),p:()=>{k.l||(s.ZP.h(k),k.l=!0)},destroy:()=>{k.aa=null,k.l=!1}};var A=k},98376:function(t,e,n){n.d(e,{Z:function(){return i}});class i{constructor(t,e){this.triggerId=t,this.messageExtras=e,this.triggerId=t,this.messageExtras=e,this.extras={},this.isControl=!0,this.Ht=!1}static fromJson(t){return new i(t.trigger_id,t.message_extras)}_t(){return!this.Ht&&(this.Ht=!0,!0)}Bo(){return this.Ht}}},4410:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(23340),s=n(1792);class r extends s.Z{constructor(t,e,n,i,r,a,o,l,u,c,h,d,p,f,b,g,m,v,Z,w,x,y,E,C,S,k,A,I,N){l=l||s.Z.DismissType.MANUAL,k=k||s.Z.Orientation.PORTRAIT,super(t,e,void 0,n,i,r,a,o,l,u,c,h,d,p,f,b,g,m,v,Z,w,x,y,E,C,S=S||s.Z.CropType.CENTER_CROP,k,A,I,N),this.$o=s.Z.TextAlignment.CENTER}bt(){return super.bt(r.cs)}static Qr(t){return new r(t[s.Z.es.ra],t[s.Z.es.sa],t[s.Z.es.qs],t[s.Z.es.ta],t[s.Z.es.ia],t[s.Z.es.URI],t[s.Z.es.oa],t[s.Z.es.pa],t[s.Z.es.ma],t[s.Z.es.na],t[s.Z.es.ls],t[s.Z.es.ua],t[s.Z.es.ca],t[s.Z.es.fa],t[s.Z.es.da],t[s.Z.es.la],t[s.Z.es.ga],t[s.Z.es.ja],t[s.Z.es.xa],t[s.Z.es.za],t[s.Z.es.ha],t[s.Z.es.va],t[s.Z.es.wa],(0,i.V)(t[s.Z.es.ya]),t[s.Z.es.Sa],t[s.Z.es.ba],t[s.Z.es.ka],t[s.Z.es.CSS],t[s.Z.es.qa])}}r.cs=s.Z.bo.Lr},31090:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1792);class s extends i.Z{constructor(t,e,n,s,r,a,o,l,u,c,h,d){super(t,void 0,void 0,e,n,void 0,void 0,void 0,s=s||i.Z.DismissType.MANUAL,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,c,d),this.messageFields=h,this.messageFields=h}Po(){return!1}$t(t){if(this.uo===i.Z.bo.Ur){if(this.So)return!1;this.So=!0}return this.ti.X(t),!0}bt(){const t=super.bt(s.cs);return t[i.Z.es.Eo]=this.messageFields,t}static Qr(t){return new s(t[i.Z.es.ra],t[i.Z.es.qs],t[i.Z.es.ta],t[i.Z.es.pa],t[i.Z.es.ma],t[i.Z.es.ja],t[i.Z.es.xa],t[i.Z.es.wa],t[i.Z.es.ka],t[i.Z.es.CSS],t[i.Z.es.Eo],t[i.Z.es.qa])}}s.cs=i.Z.bo.Ur},84072:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(1792),s=n(74663);
1class r{constructor(t,e,n,a,o,l,u){this.text=t,this.backgroundColor=e,this.textColor=n,this.borderColor=a,this.clickAction=o,this.uri=l,this.id=u,this.text=t||"",this.backgroundColor=e||i.Z.th.sh,this.textColor=n||i.Z.th.ih,this.borderColor=a||this.backgroundColor,this.clickAction=o||i.Z.ClickAction.NONE,this.uri=l,null==u&&(u=r.Yi),this.id=u,this.So=!1,this.ti=new s.Z}subscribeToClickedEvent(t){return this.ti.Dt(t)}removeSubscription(t){this.ti.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}$t(){return!this.So&&(this.So=!0,this.ti.X(),!0)}static fromJson(t){return new r(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}r.Yi=-1},1792:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(88468),s=n(7169),r=n(11507),a=n(7429),o=n(74663),l=n(7048);class u{constructor(t,e,n,i,s,r,a,l,c,h,d,p,f,b,g,m,v,Z,w,x,y,E,C,S,k,A,I,N,T,P){this.message=t,this.messageAlignment=e,this.slideFrom=n,this.extras=i,this.triggerId=s,this.clickAction=r,this.uri=a,this.openTarget=l,this.dismissType=c,this.duration=h,this.icon=d,this.imageUrl=p,this.imageStyle=f,this.iconColor=b,this.iconBackgroundColor=g,this.backgroundColor=m,this.textColor=v,this.closeButtonColor=Z,this.animateIn=w,this.animateOut=x,this.header=y,this.headerAlignment=E,this.headerTextColor=C,this.frameColor=S,this.buttons=k,this.cropType=A,this.orientation=I,this.htmlId=N,this.css=T,this.messageExtras=P,this.message=t,this.messageAlignment=e||u.TextAlignment.CENTER,this.duration=h||5e3,this.slideFrom=n||u.SlideFrom.BOTTOM,this.extras=i||{},this.triggerId=s,this.clickAction=r||u.ClickAction.NONE,this.uri=a,this.openTarget=l||u.OpenTarget.NONE,this.dismissType=c||u.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=f||u.ImageStyle.TOP,this.iconColor=b||u.th.ih,this.iconBackgroundColor=g||u.th.sh,this.backgroundColor=m||u.th.ih,this.textColor=v||u.th.hh,this.closeButtonColor=Z||u.th.eh,this.animateIn=w,null==this.animateIn&&(this.animateIn=!0),this.animateOut=x,null==this.animateOut&&(this.animateOut=!0),this.header=y,this.headerAlignment=E||u.TextAlignment.CENTER,this.headerTextColor=C||u.th.hh,this.frameColor=S||u.th.Eh,this.buttons=k||[],this.cropType=A||u.CropType.FIT_CENTER,this.orientation=I,this.htmlId=N,this.css=T,this.isControl=!1,this.messageExtras=P,this.nh=!1,this.Ht=!1,this.So=!1,this.Th=!1,this.jo=null,this.wo=null,this.ti=new o.Z,this.oh=new o.Z,this.$o=u.TextAlignment.CENTER}subscribeToClickedEvent(t){return this.ti.Dt(t)}subscribeToDismissedEvent(t){return this.oh.Dt(t)}removeSubscription(t){this.ti.removeSubscription(t),this.oh.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.ll(this.jo)}vo(){return!0}Po(){return this.vo()}ho(){return null!=this.htmlId&&this.htmlId.length>4}lo(){return this.ho()&&null!=this.css&&this.css.length>0}do(){if(this.ho()&&this.lo())return this.htmlId+"-css"}_t(){return!this.Ht&&(this.Ht=!0,!0)}Bo(){return this.Ht}$t(t){return!this.So&&(this.So=!0,this.ti.X(),!0)}Qt(){return!this.Th&&(this.Th=!0,this.oh.X(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");if(null==e&&(e=t),this.vo()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(u.rh)&&t.remove(u.rh),document.body.removeEventListener("touchmove",u.lh)}e.className=e.className.replace(u.uh,u.ah)}return this.animateOut||!1}ll(t,e){if(null==t)return;let n;this.jo=null,n=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let i=!1;n&&(i=this.hide(n));const r=document.body;let a;null!=r&&(a=r.scrollTop);const o=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const n=this.do();if(null!=n){const t=document.getElementById(n);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=r&&"Safari"===s.Z.browser&&(r.scrollTop=a),e?e():this.Qt()};i?setTimeout(o,u.Ih):o(),this.wo&&this.wo.focus()}zo(){return document.createTextNode(this.message||"")}ko(t){let e="";this.message||this.header||!this.vo()||(e="Modal Image"),t.setAttribute("alt",e)}static lh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${u.rh}`)&&t.cancelable&&t.preventDefault()}Ah(t){const e=t.parentNode;this.vo()&&null!=e&&this.orientation!==u.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(u.rh),document.body.addEventListener("touchmove",u.lh,!!(0,r.QZ)()&&{passive:!1})),t.className+=" "+u.uh}static Oh(t){if(t.keyCode===a.m._h&&!i.ZP.ee(i.JY.mh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let e=!1;for(const n of t){let t=null;(0,l.f)(n)&&n.contentWindow&&(t=n.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,r.$
1j)(t),e=!0)}if(!e){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,r.$j)(t)}}}Lh(){this.nh||i.ZP.ee(i.JY.mh)||(document.addEventListener("keydown",u.Oh,!1),i.ZP.Nh((()=>{document.removeEventListener("keydown",u.Oh)})),this.nh=!0)}bt(t){const e={};return t?(e[u.es.ra]=this.message,e[u.es.sa]=this.messageAlignment,e[u.es.Sh]=this.slideFrom,e[u.es.qs]=this.extras,e[u.es.ta]=this.triggerId,e[u.es.ia]=this.clickAction,e[u.es.URI]=this.uri,e[u.es.oa]=this.openTarget,e[u.es.pa]=this.dismissType,e[u.es.ma]=this.duration,e[u.es.na]=this.icon,e[u.es.ls]=this.imageUrl,e[u.es.ua]=this.imageStyle,e[u.es.ca]=this.iconColor,e[u.es.fa]=this.iconBackgroundColor,e[u.es.da]=this.backgroundColor,e[u.es.la]=this.textColor,e[u.es.ga]=this.closeButtonColor,e[u.es.ja]=this.animateIn,e[u.es.xa]=this.animateOut,e[u.es.za]=this.header,e[u.es.ha]=this.headerAlignment,e[u.es.va]=this.headerTextColor,e[u.es.wa]=this.frameColor,e[u.es.ya]=this.buttons,e[u.es.Sa]=this.cropType,e[u.es.ba]=this.orientation,e[u.es.ka]=this.htmlId,e[u.es.CSS]=this.css,e[u.es.hs]=t,e[u.es.qa]=this.messageExtras,e):e}}u.th={hh:4281545523,ih:4294967295,sh:4278219733,Rh:4293914607,Mh:4283782485,Eh:3224580915,eh:4288387995},u.Co={Dh:"hd",xo:"ias",Ch:"of",dh:"do",Uh:"umt",bh:"tf",Ph:"te"},u.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},u.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},u.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u.OpenTarget={NONE:"NONE",BLANK:"BLANK"},u.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},u.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},u.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},u.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},u.bo={Wr:"SLIDEUP",Vr:"MODAL",Fo:"MODAL_STYLED",Lr:"FULL",Ur:"WEB_HTML",po:"HTML",Jo:"HTML_FULL"},u.Ih=500,u.ph=200,u.uh="ab-show",u.ah="ab-hide",u.rh="ab-pause-scrolling",u.es={ra:"m",sa:"ma",Sh:"sf",qs:"e",ta:"ti",ia:"ca",URI:"u",oa:"oa",pa:"dt",ma:"d",na:"i",ls:"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",hs:"type",Eo:"messageFields",qa:"me"}},3811:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(23340),s=n(1792);class r extends s.Z{constructor(t,e,n,i,r,a,o,l,u,c,h,d,p,f,b,g,m,v,Z,w,x,y,E,C,S,k,A,I){super(t,e,void 0,n,i,r,a,o,l=l||s.Z.DismissType.MANUAL,u,c,h,d,p,f,b,g,m,v,Z,w,x,y,E,C,S=S||s.Z.CropType.FIT_CENTER,void 0,k,A,I),this.$o=s.Z.TextAlignment.CENTER}bt(){return super.bt(r.cs)}static Qr(t){return new r(t[s.Z.es.ra],t[s.Z.es.sa],t[s.Z.es.qs],t[s.Z.es.ta],t[s.Z.es.ia],t[s.Z.es.URI],t[s.Z.es.oa],t[s.Z.es.pa],t[s.Z.es.ma],t[s.Z.es.na],t[s.Z.es.ls],t[s.Z.es.ua],t[s.Z.es.ca],t[s.Z.es.fa],t[s.Z.es.da],t[s.Z.es.la],t[s.Z.es.ga],t[s.Z.es.ja],t[s.Z.es.xa],t[s.Z.es.za],t[s.Z.es.ha],t[s.Z.es.va],t[s.Z.es.wa],(0,i.V)(t[s.Z.es.ya]),t[s.Z.es.Sa],t[s.Z.es.ka],t[s.Z.es.CSS],t[s.Z.es.qa])}}r.cs=s.Z.bo.Vr},26616:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(1792),s=n(11507);class r extends i.Z{constructor(t,e,n,s,r,a,o,l,u,c,h,d,p,f,b,g,m,v,Z,w,x,y){g=g||i.Z.th.Mh,b=b||i.Z.th.Rh,super(t,e=e||i.Z.TextAlignment.START,n,s,r,a,o,l,u,c,h,d,void 0,p,f,b,g,m,v,Z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w,x,y),this.$o=i.Z.TextAlignment.START}vo(){return!1}zo(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}Ah(t){const e=t.getElementsByClassName("ab-in-app-message")[0];s.lP.Ho(e,!0,!0)||(this.slideFrom===i.Z.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.Ah(t)}bt(){return super.bt(r.cs)}static Qr(t){return new r(t[i.Z.es.ra],t[i.Z.es.sa],t[i.Z.es.Sh],t[i.Z.es.qs],t[i.Z.es.ta],t[i.Z.es.ia],t[i.Z.es.URI],t[i.Z.es.oa],t[i.Z.es.pa],t[i.Z.es.ma],t[i.Z.es.na],t[i.Z.es.ls],t[i.Z.es.ca],t[i.Z.es.fa],t[i.Z.es.da],t[i.Z.es.la],t[i.Z.es.ga],t[i.Z.es.ja],t[i.Z.es.xa],t[i.Z.es.ka],t[i.Z.es.CSS],t[i.Z.es.qa])}}r.cs=i.Z.bo.Wr},7048:function(t,e,n){n.d(e,{f:function(){return i}});const i=t=>null!==t&&"IFRAME"===t.tagName},23966:function(t,e,n){n.r(e),n.d(e,{default:function(){return f}});var i=n(88468),s=n(72893),r=n(63552),a=n(20335);var o={qn:function(t){const e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(e),i=new Uint8Array(n.length);for(let s=0;s<n.length;++s)i[s]=n.charCodeAt(s);return i}},l=n(45966),u=n(17615),c=n(74556),h=n(8031);class d{constructor(t,e,n,i,s,r,a,o,l,u,h){this.un=t,this.an=e,this.hn=n,this.cn=s,this.fn=r,this.ln=a,this.B=o,this.dn=l,this.pn=u,this.C=h,this.un=t,this.an=e,this.hn=n,this.bn=i+"/safari/"+e,this.cn=s||"/service-worker.js",this.ln=a,this.B=o,this.dn=l||!1,this.pn=u||!1,this.C=h,this.yn=c.Z.mn(),this.gn=c.Z.vn()}wn(){return this.pn}kn(t,e,n,i,s){t.unsubscribe().then((t=>{t?this.Pn(e,n,i,s):(a.Z.error("Failed to unsubscribe device from push."),"function"==typeof s&&s(!1))})).catch((t=>{a.Z.error("Push unsubscription error: "+t),"function"==typeof s&&s(!1)}))}Dn(t,e,n){var i;const s=(t=>{if("string"==typeof t)return t;if(0!==t.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return t.endpoint;let e=t.endpoint;const n=t;return n.Sn&&-1===t.endpoint.indexOf(n.Sn)&&(e=t.endpoint+"/"+n.Sn),e})(t);let r=null,o=null;const l=t;if(null!=l.getKey)try{const t=Array.from(new Uint8Array(l.getKey("p256dh"))),e=Array.from(new Uint8Array(l.getKey("auth")));r=btoa(String.fromCharCode.apply(null,t)),o=btoa(String.fromCharCode.apply(null,e))}catch(t){a.Z.error((0,h.e)(t))}const u=(t=>{let e;return t.options&&(e=t.options.applicationServerKey)&&e.byteLength&&e.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(e)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(l);null===(i=this.un)||void 0===i||i.An(s,e,r,o,u),s&&"function"==typeof n&&n(s,r,o)}jn(){var t;null===(t=this.un)||void 0===t||t.xn(!0)}Nn(t,e){var n;null===(n=this.un)||void 0===n||n.xn(!1),a.Z.info(t),"function"==typeof e&&e(!1)}Un(t,e,n,i){var s;if("default"===e.permission)try{window.safari.pushNotification.requestPermission(this.bn,t,{api_key:this.an,device_id:(null===(s=this.hn)||void 0===s?void 0:s.ve().id)||""},(e=>{"granted"===e.permission&&this.un&&this.un.setPushNotificationSubscriptionType(u.Z.NotificationSubscriptionTypes.OPTED_IN),this.Un(t,e,n,i)}))}catch(t){this.Nn("Could not request permission for push: "+t,i)}else"denied"===e.permission?this.Nn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",i):"granted"===e.permission&&(a.Z.info("Device successfully subscribed to push."),this.Dn(e.deviceToken,new Date,n))}requestPermission(t,e,n){const i=i=>{switch(i){case"granted":return void("function"==typeof t&&t());case"default":return void("function"==typeof e&&e());case"denied":return void("function"==typeof n&&n());default:a.Z.error("Received unexpected permission result "+i)}};let s=!1;if("default"!==window.Notification.permission)i(Notification.permission);else{const t=window.Notification.requestPermission((t=>{s&&i(t)}));t?t.then((t=>{i(t)})):s=!0}}Pn(t,e,n,i){const s={userVisibleOnly:!0};null!=e&&(s.applicationServerKey=e),t.pushManager.subscribe(s).then((t=>{a.Z.info("Device successfully subscribed to push."),this.Dn(t,new Date,n)})).catch((t=>{c.Z.isPushBlocked()?(a.Z.info("Permission for push notifications was denied."),"function"==typeof i&&i(!1)):(a.Z.error("Push subscription failed: "+t),"function"==typeof i&&i(!0))}))}Wn(){if(this.dn)return navigator.serviceWorker.getRegistration(this.cn);const t=this.fn?{scope:this.fn}:void 0;return navigator.serviceWorker.register(this.cn,t).then((()=>navigator.serviceWorker.ready.then((t=>
1(t&&"function"==typeof t.update&&t.update().catch((t=>{a.Z.info("ServiceWorker update failed: "+t)})),t)))))}_n(t){this.dn||(t.unregister(),a.Z.info("Service worker successfully unregistered."))}subscribe(t,e){if(!c.Z.isPushSupported())return a.Z.info(d.Tn),void("function"==typeof e&&e(!1));if(this.yn){if(!this.dn&&null!=window.location){let t=this.cn;-1===t.indexOf(window.location.host)&&(t=window.location.host+t),-1===t.indexOf(window.location.protocol)&&(t=window.location.protocol+"//"+t)}if(c.Z.isPushBlocked())return void this.Nn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.B&&!this.B.In()&&0===this.B.Et())return a.Z.info("Waiting for VAPID key from server config before subscribing to push."),void this.B.Vn((()=>{this.subscribe(t,e)}));const n=()=>{a.Z.info("Permission for push notifications was denied."),"function"==typeof e&&e(!1)},i=()=>{let t="Permission for push notifications was ignored.";c.Z.isPushBlocked()&&(t+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),a.Z.info(t),"function"==typeof e&&e(!0)},h=c.Z.isPushPermissionGranted(),d=()=>{!h&&this.un&&this.un.setPushNotificationSubscriptionType(u.Z.NotificationSubscriptionTypes.OPTED_IN),this.Wn().then((n=>{if(null==n)return a.Z.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof e&&e(!0));n.pushManager.getSubscription().then((i=>{var u;let c=null;if(null!=(null===(u=this.B)||void 0===u?void 0:u.In())&&(c=o.qn(this.B.In())),i){let o,u=null,h=null;if(this.C&&(o=this.C.ft(l.I.gt.zn)),o&&!(0,s.kJ)(o)){let t;try{t=r.Z.Rn(o).En}catch(e){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(u=t,h=new Date(u),h.setMonth(u.getMonth()+6))}null!=c&&i.options&&i.options.applicationServerKey&&i.options.applicationServerKey.byteLength&&i.options.applicationServerKey.byteLength>0&&!(0,s.Xy)(c,new Uint8Array(i.options.applicationServerKey))?(i.options.applicationServerKey.byteLength>12?a.Z.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):a.Z.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.kn(i,n,c,t,e)):i.expirationTime&&new Date(i.expirationTime).valueOf()<=(new Date).valueOf()?(a.Z.info("Push subscription is expired, creating new subscription."),this.kn(i,n,c,t,e)):o&&(0,s.kJ)(o)?this.kn(i,n,c,t,e):null==h?(a.Z.info("No push subscription creation date found, creating new subscription."),this.kn(i,n,c,t,e)):h.valueOf()<=(new Date).valueOf()?(a.Z.info("Push subscription older than 6 months, creating new subscription."),this.kn(i,n,c,t,e)):(a.Z.info("Device already subscribed to push, sending existing subscription to backend."),this.Dn(i,u,t))}else this.Pn(n,c,t,e)})).catch((t=>{a.Z.error("Error checking current push subscriptions: "+t)}))})).catch((t=>{a.Z.error("ServiceWorker registration failed: "+t)}))};this.requestPermission(d,i,n)}else if(this.gn){if(null==this.ln||""===this.ln)return a.Z.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof e&&e(!0));const n=window.safari.pushNotification.permission(this.ln);this.Un(this.ln,n,t,e)}}unsubscribe(t,e){if(!c.Z.isPushSupported())return a.Z.info(d.Tn),void("function"==typeof e&&e());this.yn?navigator.serviceWorker.getRegistration(this.cn).then((n=>{n?n.pushManager.getSubscription().then((i=>{i?(this.jn(),i.unsubscribe().then((i=>{i?(a.Z.info("Device successfully unsubscribed from push."),"function"==typeof t&&t()):(a.Z.error("Failed to unsubscribe device from push."),"function"==typeof e&&e()),this._n(n)})).catch((t=>{a.Z.error("Push unsubscription error: "+t),"function"==typeof e&&e()}))):(a.Z.info("Device already unsubscribed from push."),"function"==typeof t&&t())})).catch((t=>{a.Z.error("Error unsubscribing from push: "+t),"function"==typeof e&&e()})):(a.Z.info("Device already unsubscribed from push."),"function"==typeof t&&t())})):this.gn&&(this.jn(),a.Z.info("Device unsubscribed from push."),"function"==typeof t&&t())}}d.Tn="Push notifications are not supported in this browser.";const p={l:!1,aa:null,ea:()=>(p.p(),p.aa||(p.aa=new d(i.ZP.mr(),i.ZP.Ma(),i.ZP.ue(),i.ZP.Z(),i.ZP.ee(i.JY._a),i.ZP.ee(i.JY.Aa),i.ZP.ee(i.JY.Ba),i.ZP.v(),i.ZP.ee(i.JY.Ca),i.ZP.ee(i.JY.Da),i.ZP.j())),p.aa),p:()=>{p.l||(i.ZP.h(p),p.l=!0)},destroy:()=>{p.aa=null,p.l=!1}};var f=p},12261:function(t,e,n){n.r(e),n.d(e,{requestPushPermission:function(){return r}});var i=n(88468),s=n(23966);function r(t,e){if(i.ZP.rr())return s.default.ea().subscribe(((e,n,s)=>{const r=i.ZP.rn();r&&r.requestImmediateDataFlush(),"function"==typeof t&&t(e,n,s)}),e)}},77824:function(t,e,n){n.r(e),n.d(e,{unregisterPush:function(){return r}});var i=n(88468),s=n(23966);function r(t,e){if(i.ZP.rr())return s.default.ea().unsubscribe(t,e)}},74556:function(t,e){const n={mn:()=>
1"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,vn:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.mn()||n.vn(),isPushBlocked:()=>{const t=n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,e=n.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Tr:()=>!n.isPushBlocked()&&n.isPushSupported()&&!n.isPushPermissionGranted()};e.Z=n},17615:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(72893),s=n(20335),r=n(12730),a=n(3905),o=n(27671),l=n(57750);class u{constructor(t,e){this.Cs=t,this.Fi=e,this.Cs=t,this.Fi=e}getUserId(t){const e=this.Cs.getUserId();if("function"!=typeof t)return e;s.Z.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),t(e)}addAlias(t,e){return!(0,a.ro)(t,"add alias","the alias",!1)||t.length<=0?(s.Z.error("addAlias requires a non-empty alias"),!1):!(0,a.ro)(e,"add alias","the label",!1)||e.length<=0?(s.Z.error("addAlias requires a non-empty label"),!1):this.Fi.Cn(t,e).tt}setFirstName(t){return!!(0,a.ro)(t,"set first name","the firstName",!0)&&this.Cs.nu("first_name",t)}setLastName(t){return!!(0,a.ro)(t,"set last name","the lastName",!0)&&this.Cs.nu("last_name",t)}setEmail(t){return null===t||(0,a.vV)(t)?this.Cs.nu("email",t):(s.Z.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!(0,i.fk)(u.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.Cs.nu("gender",t)}setDateOfBirth(t,e,n){return null===t&&null===e&&null===n?this.Cs.nu("dob",null):(t=null!=t?parseInt(t.toString()):null,e=null!=e?parseInt(e.toString()):null,n=null!=n?parseInt(n.toString()):null,null==t||null==e||null==n||isNaN(t)||isNaN(e)||isNaN(n)||e>12||e<1||n>31||n<1?(s.Z.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Cs.nu("dob",`${t}-${e}-${n}`))}setCountry(t){return!!(0,a.ro)(t,"set country","the country",!0)&&this.Cs.nu("country",t)}setHomeCity(t){return!!(0,a.ro)(t,"set home city","the homeCity",!0)&&this.Cs.nu("home_city",t)}setLanguage(t){return!!(0,a.ro)(t,"set language","the language",!0)&&this.Cs.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!(0,i.fk)(u.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!(0,i.fk)(u.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("push_subscribe",t)}setPhoneNumber(t){return!!(0,a.ro)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(u.Fn)?this.Cs.nu("phone",t):(s.Z.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,e,n,i,r){return null==t||null==e?(s.Z.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=n&&(n=parseFloat(n.toString())),null!=i&&(i=parseFloat(i.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(t)||isNaN(e)||null!=n&&isNaN(n)||null!=i&&isNaN(i)||null!=r&&isNaN(r)?(s.Z.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(s.Z.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=n&&n<0||null!=r&&r<0?(s.Z.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),
1!1):this.Fi.setLastKnownLocation(this.Cs.getUserId(),t,e,i,n,r).tt)}setCustomUserAttribute(t,e,n){if(!(0,a.bj)(t))return!1;const s=e=>{const[n]=(0,a.lg)(e,o.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return n};if((0,i.kJ)(e)){const[n,i]=(0,a.$g)(t,e);if(!n&&!i&&0!==e.length)return!1;if(n||0===e.length)return this.Fi.Ln(r.G.$n,t,e).tt;for(const t of e)if(!s(t))return!1}else if((0,i.Kn)(e)){if(!s(e))return!1;if(n)return this.Fi.Ln(r.G.Bn,t,e).tt}else{if(void 0===e||!(0,a.UO)(e))return!1;if((0,i.J_)(e)&&(e=(0,l.BT)(e)),"string"==typeof e&&!(0,a.zM)(e,`set custom user attribute "${t}"`,"the element in the given array"))return!1}return this.Cs.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!(0,a.zM)(t,"add to custom user attribute array","the given key")&&!(null!=e&&!(0,a.zM)(e,"add to custom user attribute array","the given value"))&&this.Fi.Ln(r.G.On,t,e).tt}removeFromCustomAttributeArray(t,e){return!!(0,a.zM)(t,"remove from custom user attribute array","the given key")&&!(null!=e&&!(0,a.zM)(e,"remove from custom user attribute array","the given value"))&&this.Fi.Ln(r.G.Gn,t,e).tt}incrementCustomUserAttribute(t,e){if(!(0,a.zM)(t,"increment custom user attribute","the given key"))return!1;null==e&&(e=1);const n=parseInt(e.toString());return isNaN(n)||n!==parseFloat(e.toString())?(s.Z.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Fi.Ln(r.G.Hn,t,n).tt}setCustomLocationAttribute(t,e,n){return!!(0,a.zM)(t,"set custom location attribute","the given key")&&((null!==e||null!==n)&&(e=null!=e?parseFloat(e.toString()):null,n=null!=n?parseFloat(n.toString()):null,null==e&&null!=n||null!=e&&null==n||null!=e&&(isNaN(e)||e>90||e<-90)||null!=n&&(isNaN(n)||n>180||n<-180))?(s.Z.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.Fi.Kn(t,e,n).tt)}addToSubscriptionGroup(t){return!(0,a.ro)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(s.Z.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Mn(t,u.Yn.SUBSCRIBED).tt}removeFromSubscriptionGroup(t){return!(0,a.ro)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(s.Z.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Mn(t,u.Yn.UNSUBSCRIBED).tt}setLineId(t){return(0,a.ro)(t,"set LINE user ID","the ID",!0)&&0!==(null==t?void 0:t.length)?t&&t.length>u.Jn?(s.Z.error(`Rejected LINE user ID ${t} because it is longer than ${u.Jn} characters.`),!1):this.Cs.nu("native_line_id",t):(s.Z.error("setLineId requires a non-empty ID"),!1)}An(t,e,n,i,s){this.Cs.An(t,e,n,i,s),this.Fi.Qn()}xn(t){this.Cs.xn(t)}}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.Fn=/^[0-9 .\\(\\)\\+\\-]+$/,u.Yn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Xn="user_id",u.lu="custom",u.ur=997,u.Jn=33},67:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(20335),s=n(85563);class r{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnreadCardCount(){let t=0;for(const e of this.cards)e.viewed||e instanceof s.Z||t++;return t}nr(){i.Z.error("Must be implemented in a subclass")}logCardImpressions(t){i.Z.error("Must be implemented in a subclass")}logCardClick(t){i.Z.error("Must be implemented in a subclass")}sr(){i.Z.error("Must be implemented in a subclass")}}r.dr=6e4,r.Ih=500,r.Ro=1e4},40158:function(t,e,n){n.d(e,{Z:function(){return i}});class i{constructor(){}U(t){}changeUser(t=!1){}clearData(t=!1){}}},27671:function(t,e,n){n.d(e,{De:function(){return s},Fz:function(){return i},Go:function(){return u},S6:function(){return f},U4:function(){return r},Up:function(){return c},Y$:function(){return h},_P:function(){return o},dH:function(){return d},db:function(){return l},k6:function(){return b},mM:function(){return p},nV:function(){return g},rF:function(){return a}});const i=100,s="inAppMessage must be an InAppMessage object",r="must be a Card object",a=500,o="logCustomEvent",l="setCustomUserAttribute",u="Braze must be initialized before calling methods.",c=30,h=30,d=72e5,p=15,f=1,b="data-update-subscription-id",g="Banners are disabled. Make sure you have at least one campaign and relau
1nch the app."},38430:function(t,e,n){n.d(e,{Ji:function(){return s},Zw:function(){return a},mP:function(){return o},ql:function(){return i},rW:function(){return r}});function i(t){return null!=t&&!!t.getAttribute("data-ab-had-top-impression")}function s(t){null!=t&&t.setAttribute("data-ab-had-top-impression","true")}function r(t){return null!=t&&!!t.getAttribute("data-ab-had-bottom-impression")}function a(t){null!=t&&t.setAttribute("data-ab-had-bottom-impression","true")}const o={oo:i,no:r}},39179:function(t,e,n){var i=n(20335),s=n(88468),r=n(57559),a=n(24673);const o={ut:(t,e,n)=>{var o,l;const u=new a.Z,c=s.ZP.P();if(!c)return i.Z.info(`Not logging event with type "${t}" because the current session ID could not be found.`),u;const h=c.Qo();return u.$e.push(new r.Z(n||(null===(o=s.ZP.ir())||void 0===o?void 0:o.getUserId()),t,(new Date).valueOf(),h,e)),u.tt=(null===(l=s.ZP.j())||void 0===l?void 0:l.Vo(u.$e))||!1,u}};e.Z=o},64095:function(t,e,n){n.d(e,{GB:function(){return k},Of:function(){return S},Yz:function(){return C},cP:function(){return v},cV:function(){return E},cz:function(){return y},tQ:function(){return w}});var i=n(67),s=n(35608),r=n(11507),a=n(85563),o=n(72857),l=n(72893),u=n(7429),c=n(8731),h=n(18503),d=n(20335),p=n(57070),f=n(3905),b=n(73046),g=n(38430),m=n(27671);const v="data-last-requested-refresh",Z={};function w(t){t&&(t.className=t.className.replace("ab-show","ab-hide"),setTimeout((()=>{t&&t.parentNode&&t.parentNode.removeChild(t)}),i.Z.Ih));const e=t.getAttribute(m.k6);null!=e&&(0,h.A)(e);const n=t.getAttribute("data-listener-id");null!=n&&(window.removeEventListener("scroll",Z[n]),delete Z[n])}function x(t,e){const n=c.Z.ea(),i=document.createElement("div");if(i.className="ab-feed-body",i.setAttribute("aria-label","Feed"),i.setAttribute("role","feed"),null==t.lastUpdated){const t=document.createElement("div");t.className="ab-no-cards-message";const e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",t.appendChild(e),i.appendChild(t)}else{let r=!1;const o=e=>t.logCardClick(e);for(const l of t.cards){const u=l instanceof a.Z;!u||t.nr()?(i.appendChild((0,s.Dj)(l,o,e,n.Oo())),r=r||!u):d.Z.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!r){const t=document.createElement("div");t.className="ab-no-cards-message",t.innerHTML=n.get("NO_CARDS_MESSAGE")||"",t.setAttribute("role","article"),i.appendChild(t)}}return i}function y(t,e){if(null!=t&&null!=e){const n=[],i=e.querySelectorAll(".ab-card");t._o||(t._o={});for(let e=0;e<i.length;e++){const a=(0,s.sv)(i[e]),o=(0,r.rJ)(i[e]),l=(0,r.Fr)(i[e]);if(t._o[a]){o||l||(0,s.pq)(i[e]);continue}let u=(0,g.ql)(i[e]),c=(0,g.rW)(i[e]);const h=u,d=c;if(!u&&o&&(u=!0,(0,g.Ji)(i[e])),!c&&l&&(c=!0,(0,g.Zw)(i[e])),u&&c){if(h&&d)continue;for(const e of t.cards)if(e.id===a){t._o[e.id]=!0,n.push(e);break}}}n.length>0&&t.logCardImpressions(n)}}function E(t,e){if(null==t||null==e)return;e.setAttribute("aria-busy","true");const n=e.querySelectorAll(".ab-refresh-button")[0];null!=n&&(n.className+=" fa-spin");const s=(new Date).valueOf().toString();e.setAttribute("data-last-requested-refresh",s),setTimeout((()=>{if(e.getAttribute("data-last-requested-refresh")===s){const t=e.querySelectorAll(".fa-spin");for(let e=0;e<t.length;
1e++)t[e].className=t[e].className.replace(/fa-spin/g,"");const n=e.querySelectorAll(".ab-initial-spinner")[0];if(null!=n){const t=document.createElement("span");t.innerHTML=c.Z.ea().get("FEED_TIMEOUT_MESSAGE")||"",null!=n.parentNode&&(n.parentNode.appendChild(t),n.parentNode.removeChild(n))}"true"===e.getAttribute("aria-busy")&&e.setAttribute("aria-busy","false")}}),i.Z.Ro),t.sr()}function C(t,e,n){const i=document.createElement("div");i.className="ab-feed ab-hide ab-effect-slide",i.setAttribute("role","dialog"),i.setAttribute("aria-label","Feed"),i.setAttribute("tabindex","-1");const s=document.createElement("div");s.className="ab-feed-buttons-wrapper",s.setAttribute("role","group"),i.appendChild(s);const r=document.createElement("i");r.className="fa fa-times ab-close-button",r.setAttribute("aria-label","Close Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");const a=t=>{w(i),t.stopPropagation()};r.addEventListener("keydown",(t=>{t.keyCode!==u.m.Wo&&t.keyCode!==u.m.Xo||a(t)})),r.onclick=a;const o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",t&&null==t.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");const l=e=>{E(t,i),e.stopPropagation()};o.addEventListener("keydown",(t=>{t.keyCode!==u.m.Wo&&t.keyCode!==u.m.Xo||l(t)})),o.onclick=l,s.appendChild(o),s.appendChild(r),i.appendChild(x(t,e));const c=()=>y(t,i);if(i.addEventListener("scroll",c),!n){window.addEventListener("scroll",c);const t=p.Z.ce();Z[t]=c,i.setAttribute("data-listener-id",t)}return i}function S(t,e,n,i,s){if(!(0,l.kJ)(e))return;const r=[];for(const a of e)if(a instanceof o.Z){if(a.url&&f.y9.test(a.url)){const t=(0,b.OL)(a.url);if((0,b.je)(t)){d.Z.error((0,b.Tu)(b.yi.Mr,"Content Card"));continue}}r.push(a)}if(t.cards=r,t.lastUpdated=n,null!=i)if(i.setAttribute("aria-busy","false"),null==t.lastUpdated)w(i);else{const e=i.querySelectorAll(".ab-feed-body")[0];if(null!=e){const n=x(t,s);e.parentNode&&e.parentNode.replaceChild(n,e),y(t,n.parentNode)}}}function k(t,e){t&&e.setAttribute(m.k6,t)}},61882:function(t,e,n){n.r(e),n.d(e,{Banner:function(){return ye},BrazeSdkMetadata:function(){return U},CaptionedImage:function(){return r.Z},Card:function(){return i.Z},ClassicCard:function(){return a.Z},ContentCards:function(){return T},ControlCard:function(){return o.Z},ControlMessage:function(){return St.Z},DeviceProperties:function(){return q.Z},FeatureFlag:function(){return fe.Z},Feed:function(){return ft.Z},FullScreenMessage:function(){return kt.Z},HtmlMessage:function(){return At.Z},ImageOnly:function(){return s.Z},InAppMessage:function(){return Et.Z},InAppMessageButton:function(){return Ct.Z},ModalMessage:function(){return It.Z},SlideUpMessage:function(){return Nt.Z},User:function(){return pe.Z},WindowUtils:function(){return $t.SD},addSdkMetadata:function(){return F},automaticallyShowInAppMessages:function(){return se},changeUser:function(){return G.changeUser},deferInAppMessage:function(){return re},destroy:function(){return $},destroyFeed:function(){return mt},disableSDK:function(){return j},enableSDK:function(){return J},getAllBanners:function(){return Me},getAllFeatureFlags:function(){return ve},getBanner:function(){return Ae},getCachedContentCards:function(){return P},getCachedFeed:function(){return gt},getDeferredInAppMessage:function(){return ae},getDeviceId:function(){return X},getFeatureFlag:function(){return me},getUser:function(){return H.P},handleBrazeAction:function(){return pt.h},hideContentCards:function(){return O},initialize:function(){return K},insertBanner:function(){return ze},isDisabled:function(){return V},isInitialized:function(){return Y},isPushBlocked:function(){return le},isPushPermissionGranted:function(){return ue},isPushSupported:function(){return ce},logBannerImpressions:function(){return Oe},logCardClick:function(){return l.d},logCardDismissal:function(){return u.K},logCardImpressions:function(){return c.p},logContentCardClick:function(){return d},logContentCardImpressions:function(){return h},logCustomEvent:function(){return W.logCustomEvent},logFeatureFlagImpression:function(){return xe},logFeedDisplayed:function(){return vt.j},logInAppMessageButtonClick:function(){return Ht},logInAppMessageClick:function(){return Ut},logInAppMessageHtmlClick:function(){return Ft},logInAppMessageImpression:function(){return Rt},logPurchase:function(){return Q.logPurchase},openSession:function(){return nt},refreshFeatureFlags:function(){return be.refreshFeatureFlags},removeAllSubscriptions:function(){return it},removeSubscription:function(){return st.A},requestBannersRefresh:function(){return Re},requestContentCardsRefresh:function(){return N},requestFeedRefresh:function(){return Zt.a},requestImmediateDataFlush:function(){return rt.requestImmediateDataFlush},requestPushPermission:function(){return he.requestPushPermission},setLogger:function(){return at},setSdkAuthenticationSignature:function(){return lt},showContentCards:function(){return z},showFeed:function(){return wt.showFeed},showInAppMessage:function(){return ne},subscribeToBannersUpdates:function(){return Be},subscribeToContentCardsUpdates:function(){return D},subscribeToFeatureFlagsUpdates:function(){return Ze},subscribeToFeedUpdates:function(){return xt.n},subscribeToInAppMessage:function(){return ie},subscribeToSdkAuthenticationFailures:function(){return ut},toggleContentCards:function(){return R},toggleFeed:function(){return yt},toggleLogging:function(){return ct},unregisterPush:function(){return de.unregisterPush},wipeData:function(){return dt}});var i=n(72857),s=n(8378),r=n(5383),a=n(37653),o=n(85563),l=n(1280),u=n(22080),c=n(11066);function h(t){return(0,c.p)(t,!0)}function d(t){return(0,l.d)(t,!0)}var p=n(67),f=n(88468),b=n(41843),g=n(40158),m=n(57750),v=n(1148),Z=n(23756),w=n(45966),x=n(74663),y=n(76870),E=n(96504),C=n(45522),S=n(20335);class k extends g.Z{constructor(t,e,n,i,s){super(),this.Cs=t,this.C=e,this.B=n,this.Ss=i,this.S=s,this.Cs=t,this.C=e,this.B=n,this.Ss=i,this.S=s,this.Ts=new x.Z,f.ZP.F(this.Ts),this.Rs=0,this.Us=0,this.cards=[],this.Ds();const r=C.Z.Ls.Fs;new C.Z(r,S.Z).Ns(r.Ms.Js,(t=>{this.$s(t)})),this.Bs=null,this.N=null,this.Es=null,this.Ps=null,this.Xs=10}_s(){return this.Bs}Gs(t){this.Bs=t}Ct(){return this.N}Tt(t){this.N=t}Ds(){if(!this.C)return;const t=this.C.ft(w.I.gt.Hs)||[],e=[];for(let n=0;n<t.length;n++){const i=(0,Z.rN)(t[n]);null!=i&&e.push(i)}this.cards=this.Is(this.Ks(e,!1)),this.Rs=this.C.ft(w.I.gt.Os)||this.Rs,this.Us=this.C.ft(w.I.gt.Qs)||this.Us}Vs(t,e=!1,n=0,i=0){let s;if(e){s=[];for(const t of this.cards)t.test&&s.push(t)}else s=this.cards.slice();for(let r=0;r<t.length;r++){const n=t[r];let i=null;for(let t=0;t<this.cards.length;t++)if(n.id===this.cards[t].id){i=this.cards[t];break}if(e){const t=(0,Z.xA)(n);null!=i&&i.viewed&&t&&(t.viewed=!0),null!=t&&s.push(t)}else if(null==i){const t=(0,Z.xA)(n);null!=t&&s.push(t)}else if(!i.ri(n))for(let t=0;t<s.length;t++)if(n.id===s[t].id){s.splice(t,1);break}}this.cards=this.Is(this.Ks(s,e)),this.Ws(),this.Rs=n,this.Us=i,this.C&&(this.C.Bt(w.I.gt.Os,this.Rs),this.C.Bt(w.I.gt.Qs,this.Us))}U(t){if(this.Ys()&&null!=t&&t.cards){this.C&&this.C.Bt(w.I.gt.Zs,f.ZP.fi());const e=t.full_sync;e||this.Ds(),this.Vs(t.cards,e,t.last_full_sync_at,t.last_card_updated_at),this.Ts.X(this.di(!0))}}pi(t){this.Ci(),this.Es=t}$s(t){var e;if(!this.Ys())return;this.Ds();const n=this.cards.slice();let i=null;i=null===(e=this.Cs)||void 0===e?void 0:e.getUserId();for(let s=0;s<t.length;s++)if(i===t[s].userId||null==i&&null==t[s].userId){const e=t[s].card;let i=null;for(let t=0;t<this.cards.length;t++)if(e.id===this.cards[t].id){i=this.cards[t];break}if(null==i){const t=(0,Z.xA)(e);null!=t&&n.push(t)}else if(!i.ri(e))for(let t=0;t<n.length;
1t++)if(e.id===n[t].id){n.splice(t,1);break}}this.cards=this.Is(this.Ks(n,!1)),this.Ws(),this.Ts.X(this.di(!0))}Ks(t,e){let n={},i={},s={};this.C&&(n=this.C.ft(w.I.gt.Kt)||{},i=this.C.ft(w.I.gt.Yt)||{},s=this.C.ft(w.I.gt.Vt)||{});const r={},a={},o={};for(let l=0;l<t.length;l++){const e=t[l].id;e&&(n[e]&&(t[l].clicked=!0,r[e]=!0),i[e]&&(t[l].viewed=!0,a[e]=!0),s[e]&&(t[l].dismissed=!0,o[e]=!0))}return e&&this.C&&(this.C.Bt(w.I.gt.Kt,r),this.C.Bt(w.I.gt.Yt,a),this.C.Bt(w.I.gt.Vt,o)),t}Is(t){const e=[],n=new Date;let i={};this.C&&(i=this.C.ft(w.I.gt.Vt)||{});let s=!1;for(let r=0;r<t.length;r++){const a=t[r].url;if(!this.Ss&&a&&(0,v.o)(a)){S.Z.error(`Card with url ${a} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const o=t[r].expiresAt;let l=!0;if(null!=o&&(l=o>=n),l=l&&!t[r].dismissed,l)e.push(t[r]);else{const e=t[r].id;e&&(i[e]=!0),s=!0}}return s&&this.C&&this.C.Bt(w.I.gt.Vt,i),e}Ws(){var t;const e=[];for(let n=0;n<this.cards.length;n++)e.push(this.cards[n].bt());null===(t=this.C)||void 0===t||t.Bt(w.I.gt.Hs,e)}Ci(){this.Es&&(clearTimeout(this.Es),this.Es=null)}bi(t,e,n=!1){var i;const s=this.S,r=this.C;if(!s||!r)return void("function"==typeof e&&e());if(n&&(y.Z.vi(r,y.Z.O.wi),this.Ci()),!this.Ys())return void(null===(i=this.B)||void 0===i||i.gi((()=>{this.bi(t,e,!0)})));const a=s.H({},!0);r.ft(w.I.gt.Zs)!==f.ZP.fi()&&this.ji(),a.last_full_sync_at=this.Rs,a.last_card_updated_at=this.Us;const o=s.J(a,y.Z.O.wi,n);let l=!1;s.V(a,((n=-1)=>{if(this.C){const t=(new Date).valueOf();y.Z.W(this.C,y.Z.O.wi,t)}-1!==n&&o.push(["X-Braze-Req-Tokens-Remaining",n.toString()]),b.Z.Y({url:`${s.Z()}/content_cards/sync`,data:a,headers:o,tt:n=>{if(!s.st(a,n,o))return l=!0,void("function"==typeof e&&e());s.it(),this.U(n),l=!1,"function"==typeof t&&t()},error:t=>{s.et(t,"retrieving content cards"),l=!0,"function"==typeof e&&e()},nt:(n,i)=>{let r;if(l){let t=this.Ps;(null==t||t<1e3*this.Xs)&&(t=1e3*this.Xs),r=Math.min(3e5,(0,E.R)(1e3*this.Xs,3*t))}s.rt(i,(()=>{this.bi(t,e,!1)}),y.Z.O.wi,(t=>this.pi(t)),(()=>this.Ci()),r)}})}),y.Z.O.wi,e)}di(t){t||this.Ds();const e=this.Is(this.cards);e.sort(((t,e)=>t.pinned&&!e.pinned?-1:e.pinned&&!t.pinned?1:t.updated&&e.updated&&t.updated>e.updated?-1:t.updated&&e.updated&&e.updated>t.updated?1:0));let n=Math.max(this.Us||0,this.Rs||0);return 0===n&&(n=void 0),this.C&&this.C.ft(w.I.gt.Qs)===this.Us&&void 0===n&&(n=this.Us),new T(e,(0,m.X2)(n))}qt(t){return this.Ts.Dt(t)}
1ji(){this.Rs=0,this.Us=0,this.C&&(this.C.Ut(w.I.gt.Os),this.C.Ut(w.I.gt.Qs))}changeUser(t){t||(this.cards=[],this.Ts.X(new T(this.cards.slice(),null)),this.C&&(this.C.Ut(w.I.gt.Hs),this.C.Ut(w.I.gt.Kt),this.C.Ut(w.I.gt.Yt),this.C.Ut(w.I.gt.Vt))),this.Ci(),this.ji()}clearData(t){this.Rs=0,this.Us=0,this.cards=[],this.Ts.X(new T(this.cards.slice(),null)),t&&this.C&&(this.C.Ut(w.I.gt.Hs),this.C.Ut(w.I.gt.Kt),this.C.Ut(w.I.gt.Yt),this.C.Ut(w.I.gt.Vt),this.C.Ut(w.I.gt.Os),this.C.Ut(w.I.gt.Qs)),this.Ci()}Ys(){return!!this.B&&(!!this.B.yi()||(0!==this.B.Et()&&this.Ri(),!1))}Ri(){this.Ts.X(new T([],new Date)),this.C&&this.C.Ut(w.I.gt.Hs)}}const A={l:!1,provider:null,m:()=>(A.p(),A.provider||(A.provider=new k(f.ZP.ir(),f.ZP.j(),f.ZP.v(),f.ZP.tr(),f.ZP.g()),f.ZP._(A.provider)),A.provider),p:()=>{A.l||(f.ZP.h(A),A.l=!0)},destroy:()=>{A.provider=null,A.l=!1}};var I=A;function N(t,e){if(f.ZP.rr())return I.m().bi(t,e,!0)}class T extends p.Z{constructor(t,e){super(t,e)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(t){(0,c.p)(t,!0)}logCardClick(t){return(0,l.d)(t,!0)}sr(){N()}nr(){return!0}}function P(){if(f.ZP.rr())return I.m().di(!1)}T.dr=6e4;var _=n(64095);function O(t){if(!f.ZP.rr())return;const e=document.querySelectorAll(".ab-feed");for(let n=0;n<e.length;n++)(null==t||null!=t&&e[n].parentNode===t)&&(0,_.tQ)(e[n])}function D(t){if(!f.ZP.rr())return;const e=I.m(),n=e.qt(t);if(!e.Ct()){const t=f.ZP.rn();if(t){const n=t.on((()=>{e.bi(void 0,void 0,!0)}));n&&e.Tt(n)}}return n}var M=n(35608),B=n(46959);function z(t,e){if(!f.ZP.rr())return;(0,B.B)();let n=!1;null==t&&(t=document.body,n=!0);const i=f.ZP.ee(f.JY.tn)||f.ZP.ee(f.JY.en)||!1,s=I.m().di(!1);"function"==typeof e&&(0,_.Of)(s,e(s.cards.slice()),s.lastUpdated,null,i);const r=(0,_.Yz)(s,i,n),a=I.m(),o=a._s();(null==s.lastUpdated||(new Date).valueOf()-s.lastUpdated.valueOf()>T.dr)&&(null==o||(new Date).valueOf()-o>T.dr)&&(S.Z.info(`Cached content cards were older than max TTL of ${T.dr} ms, requesting an update from the server.`),(0,_.cV)(s,r),a.Gs((new Date).valueOf()));const l=(new Date).valueOf(),u=D((function(t){const n=r.querySelectorAll(".ab-refresh-button")[0];if(null!=n){let t=500,e=t-=(new Date).valueOf()-l;const i=r.getAttribute(_.cP);i&&(e=parseInt(i),isNaN(e)||(t-=(new Date).valueOf()-e)),setTimeout((function(){n.className=n.className.replace(/fa-spin/g,"")}),Math.max(t,0))}let a=t.cards;"function"==typeof e&&(a=e(a.slice())),(0,_.Of)(s,a,t.lastUpdated,r,i)}));(0,_.GB)(u,r);const c=function(t){const e=t.querySelectorAll(".ab-feed");let i=null;for(let n=0;n<e.length;n++)e[n].parentNode===t&&(i=e[n]);null!=i?((0,_.tQ)(i),null!=i.parentNode&&i.parentNode.replaceChild(r,i)):t.appendChild(r),setTimeout((function(){r.className=r.className.replace("ab-hide","ab-show")}),0),n&&r.focus(),(0,_.cz)(s,r),(0,M.CG)(s.cards,t)};var h;null!=t?c(t):window.onload=(h=window.onload,function(){"function"==typeof h&&h(new Event("oldLoad")),c(document.body)})}function R(t,e){f.ZP.rr()&&(document.querySelectorAll(".ab-feed").length>0?O():z(t,e))}var U={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"},L=n(72893);function F(t){if(!f.ZP.rr())return;const e=f.ZP.g();if(e){if(!(0,L.kJ)(t))return S.Z.error("Cannot set SDK metadata because metadata is not an array."),!1;for(const e of t)if(!(0,L.fk)(U,e,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;return e.addSdkMetadata(t),!0}}var G=n(34790);function $(){S.Z.info("Destroying Braze instance"),f.ZP.destroy(!0)}var q=n(12017);function j(){const t=f.ZP.rn();t&&t.requestImmediateDataFlush();const e=new w.Z.se(null,!0),n="This-cookie-will-expire-in-"+e.le();e.store(w.I.me,n);const i=C.Z.Ls.Fs;new C.Z(i,S.Z).setItem(i.Ms.pe,i.be,!0),S.Z.info("disableSDK was called"),f.ZP.destroy(!1),f.ZP.fe(!0)}function J(){new w.Z.se(null,!0).remove(w.I.me);const t=C.Z.Ls.Fs;new C.Z(t,S.Z).ge(t.Ms.pe,t.be),S.Z.info("enableSDK was called"),f.ZP.destroy(!1),f.ZP.fe(!1)}function X(t){if(!f.ZP.rr())return;const e=f.ZP.ue();if(!e)return;const n=e.ve().id;if("function"!=typeof t)return n;S.Z.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),t(n)}var H=n(46243);function K(t,e){return f.ZP.initialize(t,e)}function V(){return!!new w.Z.se(null,!0).gr(w.I.me)}function Y(){return f.ZP.nn()}var W=n(61454),Q=n(61364),tt=n(24365),et=n(85346);function nt(){if(!f.ZP.rr())return;const t=f.ZP.rn();if(!t)return;t.openSession();const e=C.Z.Ls.Fs,n=new C.Z(e,S.Z);n.cr(e.Ms.jr,((i,s)=>{const r=s.lastClick,a=s.trackingString;S.Z.info(`Firing push click trigger from ${a} push click at ${r}`);const o=t.lr(r,a),l=function(){et.n.m().Ce(tt.Z.hr,[a],o)};t.br(l,l),n.ge(e.Ms.jr,i)}
1)),n.Ns(e.Ms.kr,(function(e){t.vr(e)}))}function it(){f.ZP.rr()&&f.ZP.removeAllSubscriptions()}var st=n(18503),rt=n(64650);function at(t){S.Z.setLogger(t)}var ot=n(3905);function lt(t){if(!f.ZP.rr())return!1;if(""===t||!(0,ot.ro)(t,"set signature","signature",!1))return!1;const e=f.ZP.Sr();return!!e&&(e.setSdkAuthenticationSignature(t),!0)}function ut(t){var e;if(f.ZP.rr())return null===(e=f.ZP.Sr())||void 0===e?void 0:e.subscribeToSdkAuthenticationFailures(t)}function ct(){S.Z.toggleLogging()}var ht=n(27671);function dt(){const t=f.ZP.j();if(null==t)return void S.Z.warn(ht.Go);t.clearData();const e=(0,L.XP)(C.Z.Ls);for(let i=0;i<e.length;i++){const t=e[i],n=C.Z.Ls[t];new C.Z(n,S.Z).clearData()}if(f.ZP.rr())for(const i of f.ZP.ar())i.clearData(!0);const n=f.ZP.g();n&&n.fo()}var pt=n(40420),ft=n(83628),bt=n(32075);function gt(){if(f.ZP.rr())return bt.Z.m().ki()}function mt(){if(!f.ZP.rr())return;const t=document.querySelectorAll(".ab-feed");for(let e=0;e<t.length;e++)(0,_.tQ)(t[e])}var vt=n(46599),Zt=n(83516),wt=n(33545),xt=n(96596);function yt(t,e,n){f.ZP.rr()&&(document.querySelectorAll(".ab-feed").length>0?mt():(0,wt.showFeed)(t,e,n))}var Et=n(1792),Ct=n(84072),St=n(98376),kt=n(4410),At=n(31090),It=n(3811),Nt=n(26616),Tt=n(79602),Pt=n(95333),_t=n(16524);function Ot(){var t;(0,Pt.e)(t,"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{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.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.82758621px}.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}
1.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)}}"),(0,_t.N)()}var Dt=n(11507),Mt=n(5242);function Bt(t,e){return null==t?"":(t=parseInt(t.toString()),isNaN(t)?"":(e&&!isNaN(parseFloat(e.toString()))||(e=1),"rgba("+[(16711680&(t>>>=0))>>>16,(65280&t)>>>8,255&t,((4278190080&t)>>>24)/255*e].join(",")+")"))}var zt=n(12730);function Rt(t){if(!f.ZP.rr())return!1;if(!(t instanceof Et.Z||t instanceof St.Z))return S.Z.error(ht.De),!1;const e=t instanceof St.Z?zt.G.Do:zt.G.Ki;return Tt.Z.ea().ut(t,e).tt}function Ut(t){if(!f.ZP.rr())return!1;if(!(t instanceof Et.Z))return S.Z.error(ht.De),!1;const e=Tt.Z.ea().ut(t,zt.G.Li);if(e){t.Bo()||Rt(t);for(let n=0;n<e.$e.length;n++)et.n.m().Ce(tt.Z.Zr,[t.triggerId],e.$e[n])}return e.tt}var Lt=n(7169);function Ft(t,e,n){if(!f.ZP.rr())return!1;if(!(t instanceof At.Z))return S.Z.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let i=zt.G.Li;null!=e&&(i=zt.G.Qi);const s=Tt.Z.ea().ut(t,i,e,n);if(s.tt)for(let r=0;r<s.$e.length;r++)et.n.m().Ce(tt.Z.Zr,[t.triggerId,e],s.$e[r]);return s.tt}var Gt=n(35806),$t=n(75319);const qt=(t,e,n,i)=>{const s=n.getAttribute("href"),r=n.onclick;return a=>{if(null!=r&&"function"==typeof r&&!1===r.bind(n)(a))return;let o=(0,v.L)(s).abButtonId;if(null!=o&&""!==o||(o=n.getAttribute("id")||void 0),null!=s&&""!==s&&0!==s.indexOf("#")){const r="blank"===(n.getAttribute("target")||"").toLowerCase().replace("_",""),l=i||t.openTarget===Et.Z.OpenTarget.BLANK||r,u=()=>{Ft(t,o,s),$t.SD.openUri(s,l,a)};l?u():t.ll(e,u)}else Ft(t,o,s||void 0);return a.stopPropagation(),!1}},jt=(t,e,i)=>{const s={display:{},web:{}},r=function(){return function(){const t=arguments;Promise.resolve().then(n.bind(n,12261)).then((e=>{f.ZP.nn()?e.requestPushPermission(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))}},a={requestImmediateDataFlush:function(){const t=arguments;Promise.resolve().then(n.bind(n,64650)).then((({requestImmediateDataFlush:e})=>{f.ZP.nn()?e(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))},logCustomEvent:function(){const t=arguments;Promise.resolve().then(n.bind(n,61454)).then((({logCustomEvent:e})=>{f.ZP.nn()?e(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))},logPurchase:function(){const t=arguments;Promise.resolve().then(n.bind(n,61364)).then((({logPurchase:e})=>{f.ZP.nn()?e(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))},unregisterPush:function(){const t=arguments;Promise.resolve().then(n.bind(n,77824)).then((({unregisterPush:e})=>{f.ZP.nn()?e(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))},requestPushPermission:r(),changeUser:function(){const t=arguments;Promise.resolve().then(n.bind(n,34790)).then((({changeUser:e})=>{f.ZP.nn()?e(...Array.prototype.slice.call(t)):S.Z.error(ht.Go)}))}},o=function(t){return function(){a[t](...Array.prototype.slice.call(arguments))}};for(const n of(0,L.XP)(a))s[n]=o(n);const l=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],u=function(t){return function(){const e=(0,H.P)();e&&e[t](...Array.prototype.slice.call(arguments))}},c={};for(let n=0;n<l.length;n++)c[l[n]]=u(l[n]);s.getUser=function(){return c};const h={showFeed:e},d=function(e){return function(){const n=arguments;"function"!=typeof i?h[e](...Array.prototype.slice.call(n)):i(t,(function(){h[e](...Array.prototype.slice.call(n))}))}},p=s.display;for(const n of(0,L.XP)(h))p[n]=d(n);const b={registerAppboyPushMessages:r()},g=function(t){return function(){b[t](...Array.prototype.slice.call(arguments))}},m=s.web;for(const n of(0,L.XP)(b))m[n]=g(n);return s},Jt=(t,e,n)=>{const i=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${n}['"]\\)`,s=t.match(new RegExp(i));if(s){const n=`${s[1]}.setAttribute("nonce", "${e}")`;return`${t.slice(0,s.index+s[0].length)};${n};${t.slice(s.index+s[0].length)}`}return null},Xt=(t,e,n)=>{let i=null;if(null!=n){i=document.createElement("html"),i.innerHTML=e||"";const t=i.getElementsByTagName("style");for(let e=0;e<t.length;e++)t[e].setAttribute("nonce",n);const s=i.getElementsByTagName("script");for(let e=0;e<s.length;e++){s[e].setAttribute("nonce",n),s[e].innerHTML=s[e].innerHTML.replace(/<style>/g,`<style nonce='${n}'>`);const t=Jt(s[e].innerHTML,n,"script");t&&(s[e].innerHTML=t);const i=Jt(s[e].innerHTML,n,"style");
1i&&(s[e].innerHTML=i)}}t.srcdoc=i?i.innerHTML:e||""};function Ht(t,e){var n;if(!f.ZP.rr())return!1;if(!(t instanceof Ct.Z))return S.Z.error("button must be an InAppMessageButton object"),!1;if(!(e instanceof Et.Z))return S.Z.error(ht.De),!1;const i=Tt.Z.ea().Wi(t,e);if(i.tt)for(let s=0;s<i.$e.length;s++)et.n.m().Ce(tt.Z.Zr,[e.triggerId,null===(n=t.id)||void 0===n?void 0:n.toString()],i.$e[s]);return i.tt}var Kt=n(7429);const Vt={Io:t=>{const e=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let n;for(let i=0;i<e.length;i++)n=e[i],n.tabIndex=0;if(e.length>0){const n=e[0],i=e[e.length-1];t.addEventListener("keydown",(e=>{const s=document.activeElement;e.keyCode===Kt.m.Ao&&(e.shiftKey||s!==i&&s!==t?!e.shiftKey||s!==n&&s!==t||(e.preventDefault(),i.focus()):(e.preventDefault(),n.focus()))}))}},To:(t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label","Modal Message"),t&&e.setAttribute("aria-labelledby",t)},Lo:(t,e,n,i)=>{if(t.buttons&&t.buttons.length>0){const s=document.createElement("div");s.className="ab-message-buttons",n.appendChild(s);const r=n.getElementsByClassName("ab-message-text")[0];null!=r&&(r.className+=" ab-with-buttons");const a=s=>r=>(t.ll(n,(()=>{Ht(s,t),s.clickAction===Et.Z.ClickAction.URI?(0,pt.S)(s.uri||"",i||t.openTarget===Et.Z.OpenTarget.BLANK,r):s.clickAction===Et.Z.ClickAction.NEWS_FEED&&e()})),r.stopPropagation(),!1);for(let e=0;e<t.buttons.length;e++){const n=t.buttons[e],i=document.createElement("button");i.className="ab-message-button",i.setAttribute("type","button"),(0,Dt.lj)(i,"touchstart");let r=n.text;""===n.text&&(r="\xa0"),i.appendChild(document.createTextNode(r)),t.lo()||(i.style.backgroundColor=Bt(n.backgroundColor),i.style.color=Bt(n.textColor),i.style.borderColor=Bt(n.borderColor)),i.onclick=a(n),s.appendChild(i)}}}};var Yt=Vt,Wt=n(57070);function Qt(t,e,n,i,s,r,a,o=document.body,l="ltr"){if(t.wo=document.activeElement,t instanceof At.Z)return function(t,e,n,i,s,r){const a=document.createElement("iframe");if(a.setAttribute("title","Modal Message"),s&&(a.style.zIndex=(s+1).toString()),Xt(a,t.message,r),a.onload=()=>{const s=a.contentWindow;s.focus();const o=s.document.getElementsByTagName("head")[0];if(null!=o){if(t.lo()){const e=document.createElement("style");e.innerHTML=t.css||"",e.id=t.do()||"",null!=r&&e.setAttribute("nonce",r),o.appendChild(e)}const e=s.document.createElement("base");null!=e&&(e.setAttribute("target","_parent"),o.appendChild(e))}const l=s.document.getElementsByTagName("title");l&&l.length>0&&a.setAttribute("title",l[0].textContent||"");const u=Object.assign(Object.assign({},jt(a,e,((e,n)=>t.ll(e,n)))),{closeMessage:function(){t.ll(a)},logClick:function(){Ft(t,...arguments)}});if(s.appboyBridge=u,s.brazeBridge=u,t.uo!==Et.Z.bo.po){const e=s.document.getElementsByTagName("a");for(let s=0;s<e.length;s++)e[s].onclick=qt(t,a,e[s],i);const n=s.document.getElementsByTagName("button");for(let s=0;s<n.length;s++)n[s].onclick=qt(t,a,n[s],i)}const c=s.document.body;if(null!=c){t.ho()&&(c.id=t.htmlId||"");const e=document.createElement("hidden");e.onclick=u.closeMessage,e.className="ab-programmatic-close-button",c.appendChild(e)}s.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==a.className.indexOf("ab-start-hidden")&&(a.className=a.className.replace("ab-start-hidden",""),n(a))},a.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",Lt.Z.OS===Gt.T.ao){const e=document.createElement("div");return e.className="ab-ios-scroll-wrapper",e.appendChild(a),t.jo=e,e}return t.jo=a,a}(t,e,n,s,r,a);const u=function(t,e,n,i,s,r,a=document.body,o="ltr"){let l=null;const u=document.createElement("div");u.dir=o,u.className="ab-in-app-message ab-start-hidden ab-background",r&&(u.style.zIndex=(r+1).toString()),t.vo()&&(u.className+=" ab-modal-interactions",u.setAttribute("tabindex","-1")),t.lo()||(u.style.color=Bt(t.textColor),u.style.backgroundColor=Bt(t.backgroundColor),function(t){return null!=t&&(t=parseInt(t.toString()),!isNaN(t)&&(4278190080&t)>>>24==0)}(t.backgroundColor)&&(u.className+=" ab-no-shadow"));const c=()=>{-1!==u.className.indexOf("ab-start-hidden")&&(u.className=u.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?i(`Cannot show in-app message ${t.message} because another message is being shown.`,Et.Z.Co.xo):n(u))},h=(e=!0)=>{let n=document.querySelectorAll(".ab-iam-root");n&&0!==n.length||(n=a.querySelectorAll(".ab-iam-root")),n&&n.length>0&&(n[0].classList.remove("ab-iam-img-loading"),l&&(clearTimeout(l),l=null),e?c():S.Z.error(`Cannot show in-app message ${t.message} because the image failed to load.`))};t.imageStyle===Et.Z.ImageStyle.GRAPHIC&&(u.className+=" graphic"),t.orientation===Et.Z.Orientation.LANDSCAPE&&(u.className+=" landscape"),null!=t.buttons&&0===t.buttons.length&&(t.clickAction!==Et.Z.ClickAction.NONE&&(u.className+=" ab-clickable"),u.onclick=n=>(t.ll(u,(()=>{Ut(t),t.clickAction===Et.Z.ClickAction.URI?(0,pt.S)(t.uri||"",s||t.openTarget===Et.Z.OpenTarget.BLANK,n):t.clickAction===Et.Z.ClickAction.NEWS_FEED&&e()})),n.stopPropagation(),!1));const d=(0,Mt.B)("Close Message",t.lo()?void 0:Bt(t.closeButtonColor),(()=>{t.ll(u)}),o);u.appendChild(d),r&&(d.style.zIndex=(r+2).toString());const p=document.createElement("div");p.className="ab-message-text",p.dir=o;const f=(t.messageAlignment||t.$o).toLowerCase();p.className+=" "+f+"-aligned";let b=!1;const g=document.createElement("div");if(g.className="ab-image-area",t.imageUrl){if(t.cropType===Et.Z.CropType.CENTER_CROP){const e=document.createElement("span");e.className="ab-center-cropped-img",e.style.backgroundImage="url("+t.imageUrl+")",e.setAttribute("role","img"),e.setAttribute("aria-label","Modal Image"),t.ko(e),g.appendChild(e)}else{const e=document.createElement("img");if(e.setAttribute("src",t.imageUrl),t.ko(e),0===document.querySelectorAll(".ab-iam-img-loading").length){b=!0;const t=document.querySelectorAll(".ab-iam-root");t&&t.length>0&&t[0].classList.add("ab-iam-img-loading"),l=window.setTimeout((()=>{h(!1)}),6e4),e.onload=()=>{h()},e.onerror=()=>{h(!1)}}g.appendChild(e)}u.appendChild(g),p.className+=" ab-with-image"}else if(t.icon){g.className+=" ab-icon-area";const e=document.createElement("span");e.className="ab-icon",t.lo()||(e.style.backgroundColor=Bt(t.iconBackgroun
1dColor),e.style.color=Bt(t.iconColor));const n=document.createElement("i");n.className="fa",n.appendChild(document.createTextNode(t.icon)),n.setAttribute("aria-hidden","true"),e.appendChild(n),g.appendChild(e),u.appendChild(g),p.className+=" ab-with-icon"}if((0,Dt.lj)(p,"touchstart"),t.header&&t.header.length>0){const e=document.createElement("h1");e.className="ab-message-header",t.Mo=Wt.Z.ce(),e.id=t.Mo;const n=(t.headerAlignment||Et.Z.TextAlignment.CENTER).toLowerCase();e.className+=" "+n+"-aligned",t.lo()||(e.style.color=Bt(t.headerTextColor)),e.appendChild(document.createTextNode(t.header)),p.appendChild(e)}return p.appendChild(t.zo()),u.appendChild(p),b||c(),t.jo=u,u}(t,e,n,i,s,r,o,l);if(t instanceof kt.Z||t instanceof It.Z){const n=t instanceof kt.Z?"ab-fullscreen":"ab-modal";u.className+=` ${n} ab-centered`,Yt.Lo(t,e,u,s),Yt.Io(u),Yt.To(t.Mo,u)}else if(t instanceof Nt.Z){u.className+=" ab-slideup";const e=u.getElementsByClassName("ab-close-button")[0];if(null!=e){const n=(0,Dt.MK)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",t.lo()?void 0:Bt(t.closeButtonColor));n.setAttribute("class",`ab-chevron ${l}`),e.appendChild(n)}let n,i;(0,Dt.FZ)(u,Dt.mQ.ie,(t=>{u.className+=" ab-swiped-left",null!=e&&null!=e.onclick&&e.onclick(t)})),(0,Dt.FZ)(u,Dt.mQ.de,(t=>{u.className+=" ab-swiped-right",null!=e&&null!=e.onclick&&e.onclick(t)})),t.slideFrom===Et.Z.SlideFrom.TOP?(n=Dt.mQ.qo,i=" ab-swiped-up"):(n=Dt.mQ.yo,i=" ab-swiped-down"),(0,Dt.FZ)(u,n,(t=>{u.className+=i,null!=e&&null!=e.onclick&&e.onclick(t)}))}return u}var te=n(7048),ee=n(8731);function ne(t,e,i){if(!f.ZP.rr())return;if(Ot(),null==t)return!1;if(t instanceof St.Z)return S.Z.info("User received control for a multivariate test, logging to Braze servers."),Rt(t),!0;if(!(t instanceof Et.Z))return!1;if(t.constructor===Et.Z)return!1;t.Lh();const s=t instanceof At.Z;if(s&&!t.trusted&&!f.ZP.tr())return S.Z.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==e&&(e=document.body),t.vo()&&e.querySelectorAll(".ab-modal-interactions").length>0)return S.Z.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if($t.SD.Uo()){const e=$t.SD.No();if(e===$t.eh.PORTRAIT&&t.orientation===Et.Z.Orientation.LANDSCAPE||e===$t.eh.LANDSCAPE&&t.orientation===Et.Z.Orientation.PORTRAIT){const n=e===$t.eh.PORTRAIT?"portrait":"landscape",i=t.orientation===Et.Z.Orientation.PORTRAIT?"portrait":"landscape";return S.Z.info(`Not showing ${i} in-app message ${t.message} because the screen is currently ${n}`),!1}}if(!f.ZP.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){const n=t.buttons;for(let t=0;t<n.length;t++)if(n[t].clickAction===Et.Z.ClickAction.URI){const i=n[t].uri;e=(0,v.o)(i)}}else t.clickAction===Et.Z.ClickAction.URI&&(e=(0,v.o)(t.uri));if(e)return S.Z.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const r=document.createElement("div");if(r.className="ab-iam-root v3",r.className+=function(t){let e="";return t.animateIn&&(e+=" ab-animate-in"),t.animateOut&&(e+=" ab-animate-out"),t instanceof kt.Z?e+=" ab-effect-fullscreen":t instanceof At.Z?e+=" ab-effect-html":t instanceof It.Z?e+=" ab-effect-modal":t instanceof Nt.Z&&(e+=" ab-effect-slide"),e}(t),r.setAttribute("role","complementary"),t.ho()&&(r.id=t.htmlId),f.ZP.ee(f.JY.Go)&&(r.style.zIndex=(f.ZP.ee(f.JY.Go)+1).toString()),e.appendChild(r),t.lo()){const e=document.createElement("style");e.innerHTML=t.css,e.id=t.do(),null!=f.ZP.ee(f.JY.er)&&e.setAttribute("nonce",f.ZP.ee(f.JY.er)),document.getElementsByTagName("head")[0].appendChild(e)}const a=t instanceof Nt.Z,o=Qt(t,(()=>{Promise.resolve().then(n.bind(n,33545)).then((t=>{f.ZP.nn()?t.showFeed():S.Z.error(ht.Go)}))}),(e=>{if(t.vo()&&t.Po()){const n=document.createElement("div");if(n.className="ab-page-blocker",t.lo()||(n.style.backgroundColor=Bt(t.frameColor)),f.ZP.ee(f.JY.Go)&&(n.style.zIndex=f.ZP.ee(f.JY.Go).toString()),r.appendChild(n),!f.ZP.ee(f.JY.mh)){const i=(new Date).valueOf();n.onclick=n=>{(new Date).valueOf()-i>Et.Z.ph&&(t.ll(e),n.stopPropagation())}}r.appendChild(e),e.focus(),t.Ah(r)}else if(a){const n=document.querySelectorAll(".ab-slideup");let i=null;for(let t=n.length-1;t>=0;t--)if(n[t]!==e){i=n[t];break}if(t.slideFrom===Et.Z.SlideFrom.TOP){let t=0;null!=i&&(t=i.offsetTop+i.offsetHeight),e.style.top=Math.max(t,0)+"px"}else{let t=0;null!=i&&(t=(window.innerHeight||document.documentElement.clientHeight)-i.offsetTop),e.style.bottom=Math.max(t,0)+"px"}}else if(s&&!f.ZP.ee(f.JY.mh)){const n=t;(0,te.f)(e)&&e.contentWindow&&e.contentWindow.addEventListener("keydown",(function(t){t.keyCode===Kt.m._h&&n.closeMessage()}))}
1Rt(t),t.dismissType===Et.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{r.contains(e)&&t.ll(e)}),t.duration),"function"==typeof i&&i()}),(t=>{S.Z.info(t)}),f.ZP.ee(f.JY.Ko),f.ZP.ee(f.JY.Go),f.ZP.ee(f.JY.er),e,ee.Z.ea().Oo());return(s||a)&&(r.appendChild(o),t.Ah(r)),!0}function ie(t){if(f.ZP.rr())return"function"!=typeof t?null:Tt.Z.ea().Xi((function(e){return t(e[0]),e.slice(1)}))}function se(){if(!f.ZP.rr())return;Ot();const t=Tt.Z.ea();if(null==t.Hi()){const e=ie((t=>ne(t)));t.Ji(e)}return t.Hi()}function re(t){if(f.ZP.rr())return t instanceof St.Z?(S.Z.info("Not deferring since this is a ControlMessage."),!1):t instanceof Et.Z?Tt.Z.ea().sn(t):(S.Z.info("Not an instance of InAppMessage, ignoring."),!1)}function ae(){if(f.ZP.rr())return Tt.Z.ea().Ar()}var oe=n(74556);function le(){if(f.ZP.rr())return oe.Z.isPushBlocked()}function ue(){if(f.ZP.rr())return oe.Z.isPushPermissionGranted()}function ce(){if(f.ZP.rr())return oe.Z.isPushSupported()}var he=n(12261),de=n(77824),pe=n(17615),fe=n(12962),be=n(992),ge=n(75219);function me(t){if(!f.ZP.rr())return;const e=f.ZP.v();if(e&&!e.ke())return null;const n=ge.Z.m().Me();return n[t]?n[t]:null}function ve(){if(!f.ZP.rr())return;const t=[],e=f.ZP.v();if(e&&!e.ke())return t;const n=ge.Z.m().Me();for(const i in n)t.push(n[i]);return t}function Ze(t){if(!f.ZP.rr())return;const e=ge.Z.m();if(e.Ye()){const e=ve();e&&"function"==typeof t&&t(e)}return e.qt(t)}var we=n(39179);function xe(t){if(!f.ZP.rr())return;if(!t)return!1;const e="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",n=ge.Z.m().Me();if(!n[t])return S.Z.info(e),!1;const i=n[t].trackingString;if(!i)return S.Z.info(e),!1;const s=ge.Z.m()._e();if(s[i])return S.Z.info("Not logging another feature flag impression. This ID was already logged this session."),!1;s[i]=!0,ge.Z.m().He(s);const r={fid:t,fts:i};return we.Z.ut(zt.G.yr,r).tt}class ye{constructor(t,e,n,i=!1,s=!1,r=-1){this.id=t,this.placementId=e,this.html=n,this.At=i,this.isControl=s,this.Gt=r,this.id=t,this.placementId=e,this.html=n,this.At=i,this.isControl=s,this.Gt=r,this.Ht=!1}Jt(){return this.isControl}bt(){return{id:this.id,o:this.placementId,html:this.html,t:this.At,i:this.isControl,u:this.Gt}}}class Ee extends g.Z{constructor(t,e,n,i){super(),this.B=t,this.S=e,this.C=n,this.T=i,this.banners={},this.B=t,this.S=e,this.C=n,this.T=i,this.R=10,this.I=null,this.q=null,this.D=new x.Z,f.ZP.F(this.D),this.N=null,this.k=null}U(t){if(this.L()&&null!=t&&t.banners){this.banners={};const n=t.banners;for(const t in n){const i=n[t];let s=null;null!=i&&null!=i.banner&&(e=i.banner,s=new ye(e.id,e.placement_id,e.html,e.is_test_send,e.is_control,e.expires_at)),s&&(this.banners[t]=s)}this.M(),this.D.X(this.banners)}var e}$(t,e,n,i=!0){var s;const r=()=>{"function"==typeof n&&n()};if(!this.L())return void(null===(s=this.B)||void 0===s||s.A((()=>{this.$(t,e,n)}
1)));const a=this.S;if(!a)return void r();i&&this.G();const o=a.H({},!0),l=[];for(const h of t)l.push({id:h});o.placements=l;const u=a.J(o,y.Z.O.K);let c=!1;a.V(o,((i=-1)=>{const s=this.S;if(!s)return void r();const a=(new Date).valueOf();y.Z.W(this.C,y.Z.O.K,a),-1!==i&&u.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),b.Z.Y({url:`${s.Z()}/banners/sync`,headers:u,data:o,tt:t=>{if(!s.st(o,t,u))return c=!0,void r();s.it(),this.U(t),c=!1,"function"==typeof e&&e()},error:t=>{s.et(t,"retrieving banners"),c=!0,r()},nt:(i,r)=>{let a;if(this.k=t,c){let t=this.I;(null==t||t<1e3*this.R)&&(t=1e3*this.R),a=Math.min(3e5,(0,E.R)(1e3*this.R,3*t))}s.rt(r,(()=>{this.$(t,e,n,!1)}),y.Z.O.K,(t=>this.ot(t)),(()=>this.G()),a)}})}),y.Z.O.K,n)}ht(){return this.k}lt(t,e){const n={id:t.id};return e&&(n.bid=e),we.Z.ut(zt.G.ct,n).tt}G(){null!=this.q&&(clearTimeout(this.q),this.q=null)}ot(t){this.G(),this.q=t}dt(){let t={};this.C&&(t=this.C.ft(w.I.gt.vt));const e={};for(const i in t){let s=null;null!=t[i]&&(n=t[i],s=new ye(n.id,n.o,n.html,n.t,n.i,n.u)),s&&(e[s.placementId]=s)}var n;return e}M(){var t;if(!this.C)return;const e={};for(const n in this.banners){const i=(null===(t=this.banners[n])||void 0===t?void 0:t.bt())||null;e[n]=i}this.C.Bt(w.I.gt.vt,e),this.jt()}jt(){var t,e;null===(t=this.C)||void 0===t||t.Bt(w.I.gt.yt,null===(e=this.T)||void 0===e?void 0:e.St())}wt(){var t;return(null===(t=this.C)||void 0===t?void 0:t.ft(w.I.gt.yt))||null}Ct(){return this.N}Tt(t){this.N=t}Rt(){var t;const e=null===(t=this.T)||void 0===t?void 0:t.St(),n=this.wt();return null!=n&&e===n}It(){var t;const e=null===(t=this.T)||void 0===t?void 0:t.St(),n=this.wt();return null==n||e===n}qt(t){return this.D.Dt(t)}Ft(){var t;return(null===(t=this.C)||void 0===t?void 0:t.ft(w.I.gt.Nt))||{}}kt(t){this.C&&this.C.Bt(w.I.gt.Nt,t)}changeUser(){this.xt(),this.G()}clearData(){this.G()}L(){return!!this.B&&(!!this.B.zt()||(0!==this.B.Et()&&this.xt(),!1))}xt(){this.banners={},this.C&&(this.C.Ut(w.I.gt.vt),this.C.Ut(w.I.gt.Nt)),this.D.X({})}}const Ce={l:!1,provider:null,m:()=>(Ce.p(),Ce.provider||(Ce.provider=new Ee(f.ZP.v(),f.ZP.g(),f.ZP.j(),f.ZP.P()),f.ZP._(Ce.provider)),Ce.provider),p:()=>{Ce.l||(f.ZP.h(Ce),Ce.l=!0)},destroy:()=>{Ce.provider=null,Ce.l=!1}};var Se=Ce;function ke(t,e){const n=t[e];if(!n)return null;const i=n.Gt,s=(new Date).valueOf();return-1!==i&&1e3*i<s?(S.Z.info(`Banner with ID: ${n.id} and placement ID: ${e} has expired.`),null):n}function Ae(t){var e;if(!f.ZP.rr())return;!1===(null===(e=f.ZP.v())||void 0===e?void 0:e.zt())&&S.Z.error(ht.nV);const n=Se.m();return n.L()?ke(n.dt(),t):null}function Ie(){var t;(0,Pt.e)(t,"banner",".ab-html-banner{width:100%;height:100%;border:none}.ab-html-control-banner{width:0;height:0;margin:0;border:none}")}function Ne(t,e){if(!f.ZP.rr())return;if(!(t instanceof ye))return S.Z.error("Banner argument to logBannerClick must be an Banner object."),!1;const n=Se.m(),i=n.dt();return 0===(0,L.XP)(i).length?(S.Z.info("Not logging banner click. No banners exist."),!1):i[t.placementId]?n.lt(t,e):(S.Z.info(`Not logging banner click for ID ${t.placementId}. The placement ID did not correspond to any banner.`),!1)}const Te="data-ab-banner-placement-id";function Pe(t,e){if(t.Jt())return function(t){const e=document.createElement("div");return e.id=t.id,e.className="ab-html-control-banner",e.setAttribute(Te,t.placementId),e}(t);const i=document.createElement("iframe");return i.id=t.id,e&&i.setAttribute("nonce",e),i.className="ab-html-banner",i.setAttribute(Te,t.placementId),i.setAttribute("title","Banner"),Xt(i,t.html,e),i.onload=()=>{const e=i.contentWindow,s=e.document.getElementsByTagName("title");s&&s.length>0&&i.setAttribute("title",s[0].textContent||"");const r=Object.assign(Object.assign({},jt(i,(()=>{Promise.resolve().then(n.bind(n,33545)).then((t=>{f.ZP.nn()?t.showFeed():S.Z.error(ht.Go)}))}))),{logClick:function(){Ne(t,...arguments)},closeMessage:function(){},setBannerHeight:t=>{isNaN(t)||!isFinite(t)||t<0?S.Z.warn(`Invalid banner height: ${t}`):i.style.height=`${t}px`}});e.brazeBridge=r,e.appboyBridge=r,e.dispatchEvent(new CustomEvent("ab.BridgeReady"))},i}var _e=n(38430);function Oe(t){if(!f.ZP.rr())return;if(!t||t.length<=0)return!1;const e=Se.m(),n=e.dt();if(0===(0,L.XP)(n).length)return S.Z.info("Not logging banners impression. No banners exist."),!1;const i=e.Ft(),s=[];for(const a of t){const t=n[a];t?i[t.placementId]?S.Z.info(`Not logging banners impression for ID ${a}. This ID was already logged this session.`):(i[t.placementId]=!0,s.push(t.id)):S.Z.info(`Not logging banners impression for ID ${a}. The placement ID did not correspond to any banner.`)}if(0===s.length)return!1;e.kt(i);const r={ids:s};return we.Z.ut(zt.G.ro,r).tt}function De(){const t=document.querySelectorAll(".ab-html-banner, .ab-html-control-banner"),e=[];for(let n=0;n<t.length;n++){const i=t[n],s=i.getAttribute(Te);if(!s)continue;const r=_e.mP.oo(i),a=_e.mP.no(i);if(r&&a)continue;const o=(0,Dt.rJ)(i),l=(0,Dt.Fr)(i);o&&!r&&(0,_e.Ji)(i),l&&!a&&(0,_e.Zw)(i),_e.mP.oo(i)&&_e.mP.no(i)&&e.push(s)}e.length>0&&Oe(e)}function Me(){if(!f.ZP.rr())return;const t={},e=f.ZP.v();if(!1===(null==e?void 0:e.zt())&&S.Z.error(ht.nV),!(null==e?void 0:e.zt()))return t;const n=Se.m().dt();for(const i in n)t[i]=ke(n,i);return t}function Be(t){var e;if(!f.ZP.rr())return;const n=Se.m();if(n.It()){const e=Me();e&&"function"==typeof t&&t(e)}const i=n.qt(t);if(!n.Ct()){const t=null===(e=f.ZP.rn())||void 0===e?void 0:e.on((()=>{const t=n.ht();t&&t.length>0&&n.$(t)}));t&&n.Tt(t)}return i}function ze(t,e){if(!f.ZP.rr())return;if(!t)return void S.Z.error("Not inserting banner: banner was not provided.");if(!e)return void S.Z.error("Not inserting banner: parentNode was not provided.");if(!f.ZP.ee(f.JY.re))return void S.Z.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");Ie();const n=Pe(t,f.ZP.ee(f.JY.er)),i=Be((i=>{const s=i[t.placementId];s?e.replaceChildren(Pe(s,f.ZP.ee(f.JY.er))):function(t){const e=t.getAttribute(ht.k6);null!=e&&(0,st.A)(e),t&&t.parentNode&&t.parentNode.removeChild(t)}(n)}));i&&n.setAttribute(ht.k6,i),e.replaceChildren(n),(0,Dt.lj)(window,"scroll",De),De()}function Re(t,e,n){if(!f.ZP.rr())return void S.Z.warn(ht.Go);const i=f.ZP.v();if(!i)return;if(!(0,L.kJ)(t)||0===t.length)return void S.Z.warn("placementIds should be a non-empty array.");if(!f.ZP.ee(f.JY.re))return void S.Z.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");const s=Se.m();if(Se.m().Rt())return void S.Z.warn("Banners can be refreshed only once per session per user.");if(!1===i.zt()&&S.Z.error(ht.nV),!s.L())return void i.A((()=>{Re(t,e,n)}
1));const r=i.ne();t.length>r&&(S.Z.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${r} (max allowed).`),t=t.slice(0,r)),0!==(t=t.filter((t=>!!(0,ot.Ey)(t)||(S.Z.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${t}`),!1)))).length&&(S.Z.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),Se.m().$(t,e,n))}},8731:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(88468),s=n(7169),r=n(20335),a={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:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"},cs:{NO_CARDS_MESSAGE:"V tuto chv\xedli pro v\xe1s nem\xe1me \u017e\xe1dn\xe9 aktualizace.<br/>Zkontrolujte pros\xedm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\xedm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\xf8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\xf8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\xfcgbar.<br/>Bitte sp\xe4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\xe4ter noch einmal versuchen."},es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\xe9belo m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\xe9ntelo m\xe1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\xf3n.<br/>Vuelva a verificar m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\xe1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\xe4ivityksi\xe4 ei ole saatavilla.<br/>Tarkista my\xf6hemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yrit\xe4 my\xf6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \xe0 jour disponible.<br/>Veuillez v\xe9rifier ult\xe9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\xe9essayer ult\xe9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"},hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."},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:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br/>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},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\u0119 sprawdzi\u0107 ponownie p\xf3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\xf3bowa\u0107 ponownie p\xf3\u017aniej."},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:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<br/>
1\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>F\xf6rs\xf6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\xf6rs\xf6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."},uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.<br/>\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."},vi:{NO_CARDS_MESSAGE:"Ch\xfang t\xf4i kh\xf4ng c\xf3 c\u1eadp nh\u1eadt n\xe0o.<br/>Vui l\xf2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\xf2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."},"zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}};class o{constructor(t,e=!1){if(this.language=t,null!=t&&(t=t.toLowerCase()),null!=t&&null==a[t]){const e=t.indexOf("-");e>0&&(t=t.substring(0,e))}if(null==a[t]){const n="Braze does not yet have a localization for language "+t+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";e?r.Z.error(n):r.Z.info(n),t="en"}this.language=t}get(t){return a[this.language][t]}Oo(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}const l={l:!1,aa:null,ea:()=>{if(l.p(),!l.aa){let t=s.Z.language,e=!1;i.ZP.ee(i.JY.Zn)&&(t=i.ZP.ee(i.JY.Zn),e=!0),l.aa=new o(t,e)}return l.aa},p:()=>{l.l||(i.ZP.h(l),l.l=!0)},destroy:()=>{l.aa=null,l.l=!1}};var u=l},88468:function(t,e,n){n.d(e,{JY:function(){return q},ZP:function(){return j}});var i=n(45966),s=n(74663),r=n(45522),a=n(20335);class o{constructor(t,e,n){this.C=t,this.gh=e,this.Fh=n,this.C=t,this.gh=e||!1,this.Fh=n,this.kh=new s.Z,this.fh=0,this.wh=1}jh(){return this.gh}xh(){return this.C.ft(i.I.gt.qh)}setSdkAuthenticationSignature(t){const e=this.xh();this.C.Bt(i.I.gt.qh,t);const n=r.Z.Ls.Fs;new r.Z(n,a.Z).setItem(n.Ms.yh,this.wh,t),e!==t&&this.it()}Bh(){this.C.Ut(i.I.gt.qh);const t=r.Z.Ls.Fs;new r.Z(t,a.Z).ge(t.Ms.yh,this.wh)}subscribeToSdkAuthenticationFailures(t){return this.Fh.Dt(t)}Gh(t){this.Fh.X(t)}Hh(){this.kh.removeAllSubscriptions()}Jh(){this.fh+=1}Kh(){return this.fh}it(){this.fh=0}}var l=n(40158),u=n(7169);class c{constructor(t){this.id=t,this.id=t}Nr(){const t={};return null!=this.browser&&(t.browser=this.browser),null!=this.tc&&(t.browser_version=this.tc),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}var h=n(12017),d=n(42308),p=n(57070),f=n(72893),b=n(8031);class g{constructor(t,e){this.C=t,this.Qa=e,this.C=t,null==e&&(e=(0,f.VO)(h.Z)),this.Qa=e}ve(t=!0){let e=this.C.tu(i.I.iu.Na);null==e&&(e=new d.Z(p.Z.ce()),t&&this.C.uu(i.I.iu.Na,e));const n=new c(e.eu);for(let i=0;i<this.Qa.length;i++)switch(this.Qa[i]){case h.Z.BROWSER:n.browser=u.Z.browser;break;case h.Z.BROWSER_VERSION:n.tc=u.Z.version;break;case h.Z.OS:n.os=this.ec();break;case h.Z.RESOLUTION:n.rc=screen.width+"x"+screen.height;break;case h.Z.LANGUAGE:n.language=u.Z.language;break;case h.Z.TIME_ZONE:n.timeZone=this.sc(new Date);break;case h.Z.USER_AGENT:n.userAgent=u.Z.userAgent}return n}ec(){if(u.Z.ic())return u.Z.ic();const t=this.C.ft(i.I.gt.oc);return t&&t.os_version?t.os_version:u.Z.ec()}sc(t){let e=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){a.Z.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,b.e)(t)),e=!0}if(e)return"";const n=t.getTimezoneOffset();return this.nc(n)}nc(t){const e=Math.trunc(t/60),n=Math.trunc(t%60);let i="GMT";return 0!==t&&(i+=t<0?"+":"-",i+=("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(n)).slice(-2)),i}}var m=n(63826),v=n(57559),Z=n(57750),w=n(39179),x=n(12730),y=n(76870),E=n(27671),C=n(18982),S=n(41843);class k{constructor(t,e,n,i,s,r,a,o,l,u,c,h){this.hn=t,this.C=e,this.Pa=n,this.Cs=i,this.T=s,this.B=r,this.an=a,this.La=o,this.Ta=l,this.Ra=u,this.appVersion=c,this.au=h,this.du=t=>null==t?"":`${t} `,this.hn=t,this.C=e,this.Pa=n,this.Cs=i,this.T=s,this.B=r,this.an=a,this.La=o,this.Ta=l,this.Ra=u,this.appVersion=c,this.au=h,this.fu=["npm"],this.vu=[]}H(t,e=!1,n=!1){const s=this.hn.ve(!n),r=s.Nr(),a=this.C.ft(i.I.gt.oc);(0,f.Xy)(a,r)||(t.device=r),t.api_key=this.an,t.time=(0,Z.FX)((new Date).valueOf(),!0);const o=this.C.ft(i.I.gt.pu)||[],l=this.C.ft(i.I.gt.Ru)||"";this.fu.length>0&&(!(0,f.Xy)(o,this.fu)||l!==this.T.St())&&(t.sdk_metadata=this.fu),t.sdk_version=this.Ta,this.Ra&&(t.sdk_flavor=this.Ra),t.app_version=this.appVersion,t.app_version_code=this.au,t.device_id=s.id;const u=this.Cs.getUserId();if(e&&null!==u&&(t.user_id=u),!u&&!this.Pa.jh()){const e=(0,C.q)(this.C);e&&(t.alias=e)}return t}st(t,e,n){const i=e.auth_error,s=e.error;if(!i&&!s)return!0;
1if(i){let e;this.Pa.Jh();const s={errorCode:i.error_code};for(const t of n)(0,f.kJ)(t)&&"X-Braze-Auth-Signature"===t[0]&&(s.signature=t[1]);t.respond_with&&t.respond_with.user_id?s.userId=t.respond_with.user_id:t.user_id&&(s.userId=t.user_id);const r=i.reason;return r?(s.reason=r,e=`due to ${r}`):e=`with error code ${i.error_code}.`,this.Pa.jh()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),a.Z.error(`SDK Authentication failed ${e}`),this.gu(t.events||[],t.attributes||[]),this.Pa.Gh(s),!1}if(s){let n,i=s;switch(i){case m.Z.bu:return n="Received successful response with empty body.",w.Z.ut(x.G.qu,{e:n}),a.Z.info(n),!1;case m.Z.Au:return n="Received successful response with invalid JSON",w.Z.ut(x.G.qu,{e:n+": "+e.response}),a.Z.info(n),!1;case m.Z.Du:i=`The API key "${t.api_key}" is invalid for the baseUrl ${this.La}`;break;case m.Z.Tu:i="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case m.Z.ku:i="No device identifier. Please contact [email protected]"}a.Z.error("Backend error: "+i)}return!1}yu(t,e,n,i){return!!(t&&0!==t.length||e&&0!==e.length||n||i)}wu(t,e,n,i,s=!1){const r=[],a=t=>t||"",o=a(this.Cs.getUserId());let l=this.Gr(t,e);const u=[],c=[];let h,d=null;if(n.length>0){const t=[];for(const e of n){if(h=e.Nr(),this.Pa.jh()){if(o&&!h.user_id){d||(d={}),d.events||(d.events=[]),d.events.push(h);continue}if(a(h.user_id)!==o){c.push(h);continue}}t.push(h)}t.length>0&&(l.events=t)}if(i.length>0){const t=[];for(const e of i)e&&(this.Pa.jh()&&a(e.user_id)!==o?u.push(e):t.push(e));t.length>0&&(l.attributes=t)}if(this.gu(c,u),l=this.H(l,!1,s),d){d=this.H(d,!1,s);const t={requestData:d,headers:this.J(d,y.Z.O.Nu)};r.push(t)}if(l&&!this.yu(l.events,l.attributes,t,e))return d?r:null;const p={requestData:l,headers:this.J(l,y.Z.O.Nu)};return r.push(p),r}gu(t,e){if(t){const e=[];for(const n of t){const t=v.Z.fromJson(n);t.time=(0,Z.Pn)(t.time),e.push(t)}this.C.Vo(e)}if(e)for(const n of e)this.C.Cu(n)}et(t,e){let n="HTTP error ";null!=t&&(n+=t+" "),n+=e,a.Z.error(n)}zr(t){return w.Z.ut(x.G.Su,{n:t})}Gr(t,e,n){const i={};t&&(i.feed=!0),e&&(i.triggers=!0);const s=null!=n?n:this.Cs.getUserId();if(s&&(i.user_id=s),!i.user_id&&!this.Pa.jh()){const t=(0,C.q)(this.C);t&&(i.alias=t)}return i.config={config_time:this.B.Et()},{respond_with:i}}Bu(t){const e=(new Date).valueOf();let n=E.dH.toString();const i=y.Z.zu(this.C,t);return-1!==i&&(n=(e-i).toString()),n}J(t,e,n=!1){const i=[["X-Braze-Api-Key",this.an]],s=this.Bu(e);i.push(["X-Braze-Last-Req-Ms-Ago",s]);const r=y.Z.ju(this.C,e).toString();i.push(["X-Braze-Req-Attempt",r]);let a=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(i.push(["X-Braze-TriggersRequest","true"]),a=!0),null!=t.respond_with&&t.respond_with.feed&&(i.push(["X-Braze-FeedRequest","true"]),a=!0),e===y.Z.O.wi){i.push(["X-Braze-ContentCardsRequest","true"]);let t=y.Z.ju(this.C,y.Z.O.wi);t&&!n||(t=1,y.Z.Mu(this.C,y.Z.O.wi,t));const e=Math.max(0,t-1);i.push(["BRAZE-SYNC-RETRY-COUNT",e.toString()]),a=!0}if(e===y.Z.O.Le&&(i.push(["X-Braze-FeatureFlagsRequest","true"]),a=!0),a&&i.push(["X-Braze-DataRequest","true"]),this.Pa.jh()){const t=this.Pa.xh();null!=t&&i.push(["X-Braze-Auth-Signature",t])}return i}Xu(t,e,n,i){const s=window.setTimeout((()=>{a.Z.info(`Retrying rate limited ${this.du(i)}SDK request.`),this.V(e,n,i)}),t);this.vu.push(s)}fo(){for(const t of this.vu)window.clearTimeout(t);this.vu=[]}V(t,e,n,s){if(!this.$u(n))return a.Z.info(`${this.du(n)}SDK request being rate limited.`),void("function"==typeof s&&s());const r=this.Fu();
1if(!r.Lu)return a.Z.info(`${this.du(n)}SDK request being rate limited. Request will be retried in ${Math.trunc(r.Eu/1e3)} seconds.`),void this.Xu(r.Eu,t,e,n);this.C.Bt(i.I.gt.Ku,(new Date).valueOf());const o=t.device;o&&o.os_version instanceof Promise?o.os_version.then((n=>{t.device.os_version=n,e(r.Iu)})):e(r.Iu)}Pu(t){const e=t?(0,S.D)(t):null;if(!e||!e["retry-after"])return null;const n=e["retry-after"];if(isNaN(n)&&!isNaN(Date.parse(n)))return{type:"date",value:Date.parse(n)};if(!isNaN(parseFloat(n.toString())))return{type:"timestamp",value:1e3*parseFloat(n.toString())};{const t="Received unexpected value for retry-after header in /sync response";w.Z.ut(x.G.qu,{e:t+": "+n})}return null}rt(t,e,n,i,s,r){if(y.Z.ju(this.C,n)>=E.mM)return;let a;r=r||0;const o=this.Pu(t);s();const l=t=>{const s=window.setTimeout((()=>{e()}),t);i(s),y.Z.Uu(this.C,n)};if(o&&!isNaN(o.value)){switch(o.type){case"date":a=o.value-(new Date).getTime()+r,a<0&&e();break;case"timestamp":a=o.value+r}l(a)}else r?l(r):y.Z.vi(this.C,n)}xu(t){var e;null===(e=this.C)||void 0===e||e.Bt(i.I.gt.Hu,t)}Ou(t,e){let n=this.Gu();null==n&&(n={}),n[t]=e,this.C.Bt(i.I.gt._u,n)}Wu(){var t;return null===(t=this.C)||void 0===t?void 0:t.ft(i.I.gt.Hu)}Gu(){var t;return null===(t=this.C)||void 0===t?void 0:t.ft(i.I.gt._u)}Yu(t,e,n,i,s=""){let r;if(s){const t=this.Gu();r=null==t||isNaN(t[s])?e:t[s]}else r=this.Wu(),(null==r||isNaN(r))&&(r=e);const a=(t-i)/1e3;return r=Math.min(r+a/n,e),r}Ju(t,e){return Math.max(0,(1-t)*e*1e3)}Qu(t,e=""){var n,s,r,a,o;const l={Lu:!0,Iu:-1,Eu:0};if(null==t&&(t=!0),!t&&!e)return l;let u,c,h=null;if(t)h=null===(n=this.C)||void 0===n?void 0:n.ft(i.I.gt.Ku);else{const t=y.Z.Vu(this.C);if(null==t||null==t[e])return l;h=t[e]}if(null==h||isNaN(h))return l;if(t?(u=(null===(s=this.B)||void 0===s?void 0:s.Zu())||-1,c=(null===(r=this.B)||void 0===r?void 0:r.tl())||-1):(u=(null===(a=this.B)||void 0===a?void 0:a.el(e))||-1,c=(null===(o=this.B)||void 0===o?void 0:o.il(e))||-1),-1===u||-1===c)return l;const d=(new Date).valueOf();let p=this.Yu(d,u,c,h,e);return p<1?(l.Lu=!1,l.Eu=this.Ju(p,c),l):(p=Math.trunc(p)-1,l.Iu=p,t?this.xu(p):this.Ou(e,p),l)}Fu(){return this.Qu(!0)}$u(t){const e=this.Qu(!1,t);return!(e&&!e.Lu)}it(){this.Pa.it()}Z(){return this.La}addSdkMetadata(t){for(const e of t)-1===this.fu.indexOf(e)&&this.fu.push(e)}}var A=n(96504),I=n(24673),N=n(74556);class T{constructor(t,e,n,i,r,a,o,l,u,c){this.an=t,this.baseUrl=e,this.T=n,this.hn=i,this.Cs=r,this.B=a,this.C=o,this.$l=l,this.Pa=u,this.S=c,this.an=t,this.baseUrl=e,this.Tl=0,this.dE=o.IE()||0,this.Ml=null,this.T=n,this.hn=i,this.Cs=r,this.B=a,this.C=o,this.Pa=u,this.S=c,this.$l=l,this.Pl=new s.Z,this.Ol=null,this.Ul=50,this._l=!1}Kl(t,e){return!t&&!e&&this.Pa.Kh()>=this.Ul}Xl(t){let e=this.T.zl();if(t.length>0){const n=this.Cs.getUserId();for(const i of t){const t=!i.userId&&!n||i.userId===n;i.type===x.G.Fl&&t&&(e=!0)}}return e}Ql(t=!1,e=!1,n=!0,s,r,o,l=!1,u=!1){n&&this.Yl();const c=this.C.AE(),h=this.C.OE();let d=!1;const p=(t,e,a=-1)=>{const l=(new Date).valueOf();y.Z.W(this.C,y.Z.O.Nu,l),-1!==a&&e.push(["X-Braze-Req-Tokens-Remaining",a.toString()]);let u=!1;S.Z.Y({url:this.baseUrl+"/data/",data:t,headers:e,tt:n=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.st(t,n,e)?(this.Pa.it(),this.B.gl(n),null!=t.respond_with&&t.respond_with.user_id!=this.Cs.getUserId()||(null!=t.device&&this.C.Bt(i.I.gt.oc,t.device),null!=t.sdk_metadata&&(this.C.Bt(i.I.gt.pu,t.sdk_metadata),this.C.Bt(i.I.gt.Ru,this.T.St())),this.$l(n),y.Z.Mu(this.C,y.Z.O.Nu,1),"function"==typeof s&&s())):n.auth_error&&(u=!0)},error:()=>{u=!0,null!=t.respond_with&&t.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.gu(t.events,t.attributes),"function"==typeof r&&r()},nt:(t,e)=>{"function"==typeof o&&o(!u);const i=this.S.Pu(e);let s=0;if(i)switch(i.type){case"date":s=Math.max(i.value-(new Date).valueOf(),0);break;case"timestamp":s=i.value}if(n&&!d){if(u){y.Z.Uu(this.C,y.Z.O.Nu);let t=this.Ml;(null==t||t<1e3*this.dE)&&(t=1e3*this.dE);const e=Math.min(3e5,(0,A.R)(1e3*this.dE,3*t))+s;this.Zl(e)}else this.Zl(Math.max(1e3*this.dE,s));d=!0}}})},f=this.Xl(c),b=e||f;if(this.Kl(l,f))return void a.Z.info("Declining to flush data due to 50 consecutive authentication failures");if(n&&!this.S.yu(c,h,t,b))return this.Zl(),void("function"==typeof o&&o(!0));const g=this.S.wu(t,b,c,h,u);b&&this.Tl++;let m=!1;if(g)for(const i of g)this.S.V(i.requestData,(t=>p(i.requestData,i.headers,t)),y.Z.O.Nu,r),m=!0;this.Pa.jh()&&n&&!m?this.Zl():f&&(a.Z.info("Invoking new session subscriptions"),this.Pl.X())}dc(){return this.Tl>0}Zl(t=1e3*this.dE){this._l||(this.Yl(),this.Ol=window.setTimeout((()=>
1{if(document.hidden){const t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.Ql())};document.addEventListener(t,e,!1)}else this.Ql()}),t),this.Ml=t)}Yl(){null!=this.Ol&&(clearTimeout(this.Ol),this.Ol=null)}initialize(){this._l=!1,this.Zl()}destroy(){this.Pl.removeAllSubscriptions(),this.Pa.Hh(),this.Yl(),this._l=!0,this.Ql(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.Ol=null}on(t){return this.Pl.Dt(t)}openSession(){const t=this.T.St()!==this.T.Qo();t&&(this.C.TE(i.I.iu.Na),this.C.TE(i.I.iu.su)),this.Ql(void 0,!1,void 0,(()=>{this.C.Ut(i.I.gt.Ge)})),this.Qn(),t&&Promise.resolve().then(n.bind(n,23966)).then((t=>{if(this._l)return;const e=t.default.ea();if(null!=e&&(N.Z.isPushPermissionGranted()||N.Z.isPushBlocked())){const t=()=>{e.wn()?a.Z.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()},n=(e,n)=>{n&&t()},s=()=>{const e=this.C.ft(i.I.gt.zn);(null==e||e)&&t()},o=r.Z.Ls.Fs;new r.Z(o,a.Z).cr(o.Ms.cu,n,s)}}))}mc(){this.C.Ut(i.I.gt.Xe),this.C.Ut(i.I.gt.Hs),this.C.Ut(i.I.gt.Kr)}fc(){var t,e;this.C.Ut(i.I.gt.Ku),this.C.Ut(i.I.gt.lE);const n=y.Z.O;for(const i in n){const e=n[i];this.S.Ou(e,null===(t=this.B)||void 0===t?void 0:t.el(e))}this.S.xu(null===(e=this.B)||void 0===e?void 0:e.Zu())}changeUser(t,e,n){const s=this.Cs.getUserId();if(s!==t){this.T.Il(),this.mc(),null!=s&&this.Ql(void 0,!1,void 0,void 0,void 0),this.Cs.ou(t),n?this.Pa.setSdkAuthenticationSignature(n):this.Pa.Bh();for(let t=0;t<e.length;t++)e[t].changeUser(null==s);this.S.fo(),null!=s&&this.C.Ut(i.I.gt.Zt),this.C.Ut(i.I.gt.oc),this.C.Ut(i.I.gt._E),this.fc(),this.openSession(),a.Z.info('Changed user to "'+t+'".')}else{let e="Doing nothing.";n&&this.Pa.xh()!==n&&(this.Pa.setSdkAuthenticationSignature(n),e="Updated SDK authentication signature"),a.Z.info(`Current user is already ${t}. ${e}`)}}requestImmediateDataFlush(t){this.Yl(),this.T.Qo(),this.Ql(void 0,void 0,void 0,void 0,(()=>{a.Z.error("Failed to flush data, request will be retried automatically.")}),t,!0)}requestFeedRefresh(){this.T.Qo(),this.Ql(!0)}br(t,e){this.T.Qo(),a.Z.info("Requesting explicit trigger refresh."),this.Ql(void 0,!0,void 0,t,e)}Cn(t,e){const n=x.G.vc,s={a:t,l:e},r=w.Z.ut(n,s);return r&&(a.Z.info(`Logged alias ${t} with label ${e}`),this.C.Bt(i.I.gt._E,s)),r}Ln(t,e,n){if(this.B.hu(e))return a.Z.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new I.Z;const i={key:e,value:n},s=w.Z.ut(t,i);if(s){const t="object"==typeof n?JSON.stringify(n,null,2):n;a.Z.info(`Logged custom attribute: ${e} with value: ${t}`)}return s}setLastKnownLocation(t,e,n,i,s,r){const o={latitude:e,longitude:n};null!=i&&(o.altitude=i),null!=s&&(o.ll_accuracy=s),null!=r&&(o.alt_accuracy=r);const l=w.Z.ut(x.G.bc,o,t||void 0);return l&&a.Z.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}lr(t,e){const n=this.T.Qo();return new v.Z(this.Cs.getUserId(),x.G.wc,t,n,{cid:e})}kc(t,e){return new r.Z(t,e)}Qn(){const t=r.Z.Ls.Fs;this.kc(t,a.Z).setItem(t.Ms.Nu,1,{baseUrl:this.baseUrl,data:{api_key:this.an,device_id:this.hn.ve().id},userId:this.Cs.getUserId(),sdkAuthEnabled:this.Pa.jh()})}vr(t){for(const e of t)if(e.api_key===this.an)this.S.gu(e.events,e.attributes);else{const t=r.Z.Ls.Fs;new r.Z(t,a.Z).setItem(t.Ms.kr,p.Z.ce(),e)}}Kn(t,e,n){if(this.B.hu(t))return a.Z.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new I.Z;let i,s;return null===e&&null===n?(i=x.G.yc,s={key:t}):(i=x.G.Sc,s={key:t,latitude:e,longitude:n}),w.Z.ut(i,s)}Mn(t,e){const n={group_id:t,status:e};return w.Z.ut(x.G.jc,n)}}class P{constructor(t=0,e=[],n=[],i=[],s=null,r=null,a={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:E.Up,refill_rate:E.Y$,endpoint_overrides:{}},u=null){this.dl=t,this.Rl=e,this.Cl=n,this.El=i,this.yl=s,this.fl=r,this.vl=a,this.De=o,this.bl=l,this.banners=u,this.dl=t,this.Rl=e,this.Cl=n,this.El=i,this.yl=s,this.fl=r,this.vl=a,this.De=o,this.bl=l,this.banners=u}bt(){return{s:"5.9.1",l:this.dl,e:this.Rl,a:this.Cl,p:this.El,m:this.yl,v:this.fl,c:this.vl,f:this.De,grl:this.bl,b:this.banners}}static Rn(t){let e=t.l;return"5.9.1"!==t.s&&(e=0),new P(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl,t.b)}}class _{constructor(t){this.C=t,this.C=t,this.sl=new s.Z,this.rl=ne
1w s.Z,this.ul=new s.Z,this.al=new s.Z,this.hl=null,this.ol=null}cl(){if(null==this.ol){const t=this.C.ft(i.I.gt.ml);this.ol=null!=t?P.Rn(t):new P}return this.ol}Et(){return this.cl().dl}gl(t){var e,n;if(null!=t&&null!=t.config){const s=t.config;if(s.time>this.cl().dl){const t=t=>null==t?this.cl().bl:t,r=new P(s.time,s.events_blacklist,s.attributes_blacklist,s.purchases_blacklist,s.messaging_session_timeout,s.vapid_public_key,s.content_cards,s.feature_flags,t(s.global_request_rate_limit),s.banners);let a=!1;null!=r.fl&&this.In()!==r.fl&&(a=!0);let o=!1;null!=r.vl.enabled&&this.yi()!==r.vl.enabled&&(o=!0);let l=!1;null!=r.De.enabled&&this.ke()!==r.De.enabled&&(l=!0);let u=!1;null!=(null===(e=r.banners)||void 0===e?void 0:e.enabled)&&this.zt()!==(null===(n=r.banners)||void 0===n?void 0:n.enabled)&&(u=!0),this.ol=r,this.C.Bt(i.I.gt.ml,r.bt()),a&&this.sl.X(),o&&this.rl.X(),l&&this.ul.X(),u&&this.al.X()}}}Vn(t){const e=this.sl.Dt(t);return this.hl&&this.sl.removeSubscription(this.hl),this.hl=e,e}gi(t){return this.rl.Dt(t)}Ke(t){return this.ul.Dt(t)}A(t){return this.al.Dt(t)}je(t){return-1!==this.cl().Rl.indexOf(t)}hu(t){return-1!==this.cl().Cl.indexOf(t)}Dr(t){return-1!==this.cl().El.indexOf(t)}wl(){return this.cl().yl}In(){return this.cl().fl}yi(){return this.cl().vl.enabled||!1}Ll(){const t=this.cl().bl;return!(!t||null==t.enabled)&&t.enabled}Zu(){if(!this.Ll())return-1;const t=this.cl().bl;return null==t.capacity||t.capacity<10?-1:t.capacity}tl(){if(!this.Ll())return-1;const t=this.cl().bl;return null==t.refill_rate||t.refill_rate<=0?-1:t.refill_rate}Bl(t){const e=this.cl().bl.endpoint_overrides;return null==e?null:e[t]}el(t){const e=this.Bl(t);return null==e||isNaN(e.capacity)||e.capacity<=0?-1:e.capacity}il(t){const e=this.Bl(t);return null==e||isNaN(e.refill_rate)||e.refill_rate<=0?-1:e.refill_rate}ke(){return this.cl().De.enabled&&null==this.Oe()?(w.Z.ut(x.G.qu,{e:"Missing feature flag refresh_rate_limit."}),!1):this.cl().De.enabled||!1}Oe(){return this.cl().De.refresh_rate_limit}zt(){var t;return(null===(t=this.cl().banners)||void 0===t?void 0:t.enabled)||null}ne(){var t;return(null===(t=this.cl().banners)||void 0===t?void 0:t.max_placements)||0}}class O{constructor(t,e,n,i){this.C=t,this.Cs=e,this.B=n,this.Sl=i,this.C=t,this.Cs=e,this.B=n,this.jl=1e3,(null==i||isNaN(i))&&(i=1800),i<this.jl/1e3&&(a.Z.info("Specified session timeout of "+i+"s is too small, using the minimum session timeout of "+this.jl/1e3+"s instead."),i=this.jl/1e3),this.Sl=i}xl(t,e){return new v.Z(this.Cs.getUserId(),x.G.Dl,t,e.eu,{d:(0,Z.FX)(t-e.Gl)})}St(){const t=this.C.tu(i.I.iu.Nl);return null==t?null:t.eu}zl(){const t=(new Date).valueOf(),e=this.B.wl();if(null==e)return!1;const n=this.C.ft(i.I.gt.Hl),s=null==n||t-n>1e3*e;return s&&this.C.Bt(i.I.gt.Hl,t),s}Wl(t,e){return null==e||null==e.kl||!(t-e.Gl<this.jl)&&e.kl<t}Qo(){const t=(new Date).valueOf(),e=t+1e3*this.Sl,n=this.C.tu(i.I.iu.Nl);if(this.Wl(t,n)){let s="Generating session start event with time "+t;if(null!=n){let t=n.ql;t-n.Gl<this.jl&&(t=n.Gl+this.jl),this.C.Al(this.xl(t,n)),s+=" (old session ended "+t+")"}s+=". Will expire "+e.valueOf(),a.Z.info(s);const r=new d.Z(p.Z.ce(),e);return this.C.Al(new v.Z(this.Cs.getUserId(),x.G.Fl,t,r.eu)),this.C.uu(i.I.iu.Nl,r),null==this.C.ft(i.I.gt.Hl)&&this.C.Bt(i.I.gt.Hl,t),r.eu}if(null!=n)return n.ql=t,n.kl=e,this.C.uu(i.I.iu.Nl,n),n.eu}Il(){const t=this.C.tu(i.I.iu.Nl);null!=t&&(this.C.Jl(i.I.iu.Nl),this.C.Al(this.xl((new Date).valueOf(),t)))}}const D={Ya:function(t,e=!1){let n=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(i.I.gt.ac,"true"),localStorage.getItem(i.I.gt.ac)&&(localStorage.removeItem(i.I.gt.ac),n=!0)}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;n=!0}}catch(t){a.Z.info("Local Storage not supported!")}const s=D.cc(),r=new i.Z.lc(t,s&&!e,n);let o;return o=n?new i.Z.gc(t):new i.Z.uc,new i.Z(r,o)},cc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};var M=D,B=n(85346),z=n(8548),R=n(63552),U=n(17615);class L{constructor(t,e){this.B=t,this.C=e,this.B=t,this.C=e}getUserId(){const t=this.C.tu(i.I.iu.su);if(null==t)return null;let e=t.eu,n=(0,z.E)(e);if(n>U.Z.ur){for(;n>U.Z.ur;)e=e.slice(0,e.length-1),n=(0,z.E)(e);t.eu=e,this.C.uu(i.I.iu.su,t)}return e}ou(t){const e=null==this.getUserId();this.C.uu(i.I.iu.su,new d.Z(t)),e&&this.C.ru(t)}setCustomUserAttribute(t,e){if(this.B.hu(t))return a.Z.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const n={};return n[t]=e,this.nu(U.Z.lu,n,!0)}nu(t,e,n=!1,i=!1){const s=this.C.mu(this.getUserId(),t,e);let r="",o=t,l=e;return n&&(r=" custom","object"==typeof e&&(o=Object.keys(e)[0],l=e[o],"object"==typeof l&&(l=JSON.stringify(l,null,2)))),!i&&s&&a.Z.info(`Logged${r} attribute ${o} with value ${l}`),s}An(t,e,n,s,o){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",n,!1,!0),this.nu("custom_push_user_auth",s,!1,!0),this.nu("custom_push_vapid_public_key",o,!1,
1!0);const l=r.Z.Ls.Fs,u=new r.Z(l,a.Z),c=new R.Z(t,e,n,s,o);this.C.Bt(i.I.gt.zn,c.bt()),u.setItem(l.Ms.cu,l.be,!0)}xn(t){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),t){const t=r.Z.Ls.Fs,e=new r.Z(t,a.Z);this.C.Bt(i.I.gt.zn,!1),e.setItem(t.Ms.cu,t.be,!1)}}}var F=n(1148),G=n(75319),$={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ea:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Go:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ia:"doNotLoadFontAwesome",Na:"deviceId",Aa:"serviceWorkerScope",Oa:"sdkFlavor",tn:"openCardsInNewTab"};const q={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ea:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Go:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ia:"doNotLoadFontAwesome",Na:"deviceId",Aa:"serviceWorkerScope",Oa:"sdkFlavor"};const j=new class{constructor(){this.an="",this.Ta="",this.Ra=void 0,this.Pa=null,this.hn=null,this.S=null,this.Fi=null,this.B=null,this.T=null,this.C=null,this.Cs=null,this.La="",this.isInitialized=!1,this.Ua=!1,this.Wa=new s.Z,this.Va=new s.Z,this.options={},this.Fa=[],this.Ka=[],this.Mi=[],this.Ta="5.9.1"}Ga(t){this.Wa.Dt(t)}Nh(t){this.Va.Dt(t)}initialize(t,e){if(this.nn())return a.Z.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let r=this.ee(q.$h);const l=(0,F.L)(G.SD.$a());if(l&&"true"===l.brazeLogging&&(r=!0),a.Z.init(r),a.Z.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return a.Z.error("Braze requires a valid API key to be initialized."),!1;this.an=t;let c=this.ee(q.Zo);if(null==c||""===c||"string"!=typeof c)return a.Z.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(c)&&(c=`https://${c}`);const p=c;if(c=document.createElement("a"),c.href=p,"/"===c.pathname&&(c=`${c}api/v3`),this.La=c.toString(),u.Z.Ja&&!this.ee(q.Yo))return a.Z.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Ua=!0,!1;const b=this.ee(q.Wh)||!1;if(this.C=M.Ya(t,b),b&&this.C.Ha(t),new i.Z.se(null,!0).gr(i.I.me))return a.Z.info("Ignoring all activity due to previous opt out"),this.Ua=!0,!1;for(const n of(0,f.XP)(this.options))-1===(0,f.VO)($).indexOf(n)&&a.Z.warn(`Ignoring unknown initialization option '${n}'.`);const m=["mparticle","wordpress","tealium"];if(null!=this.ee(q.Oa)){const t=this.ee(q.Oa);-1!==m.indexOf(t)?this.Ra=t:a.Z.error("Invalid sdk flavor passed: "+t)}let v=this.ee($.Vh);if(null!=v)if((0,f.kJ)(v)){const t=[];for(let e=0;e<v.length;e++)(0,f.fk)(h.Z,v[e],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(v[e]);v=t}else a.Z.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),v=null;const Z=this.ee(q.Na);if(Z){const t=new d.Z(Z);this.C.uu(i.I.iu.Na,t)}this.hn=new g(this.C,v),this.B=new _(this.C),this.Cs=new L(this.B,this.C),this.T=new O(this.C,this.Cs,this.B,this.ee(q.Zh));const w=new s.Z;return this.Pa=new o(this.C,this.ee(q.Yh),w),this.F(w),this.S=new k(this.hn,this.C,this.Pa,this.Cs,this.T,this.B,this.an,this.La,this.Ta,this.Ra||"",this.ee(q.Qh),this.ee(q.Ea)),this.Fi=new T(this.an,this.La,this.T,this.hn,this.Cs,this.B,this.C,(t=>
1{if(this.nn())for(const e of this.ar())e.U(t)}),this.Pa,this.S),this.Fi.initialize(),b||this.C.Xa(),a.Z.info(`Initialized for the Braze backend at "${this.ee(q.Zo)}" with API key "${this.an}".`),B.n.p(),this.B.Ke((()=>{var t;this.isInitialized&&(null===(t=this.B)||void 0===t?void 0:t.ke())&&Promise.resolve().then(n.bind(n,992)).then((t=>{this.isInitialized&&(0,t.default)()}))})),this.Fi.on((()=>{var t;this.isInitialized&&(null===(t=this.B)||void 0===t?void 0:t.ke())&&Promise.resolve().then(n.bind(n,992)).then((t=>{this.isInitialized&&(0,t.default)(void 0,void 0,!0)}))})),this.Wa.X(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(t){if(a.Z.destroy(),this.nn()){this.Va.X(),this.Va.removeAllSubscriptions();for(const t of this.Fa)t.destroy();this.Fa=[];for(const t of this.Ka)t.clearData(!1);this.S&&this.S.fo(),this.Ka=[],this.removeAllSubscriptions(),this.Mi=[],null!=this.Fi&&this.Fi.destroy(),this.Fi=null,this.Pa=null,this.hn=null,this.S=null,this.B=null,this.T=null,this.Cs=null,this.options={},this.Ra=void 0,this.isInitialized=!1,this.Ua=!1,t&&(this.C=null)}}rr(){return!this.Za()&&(!!this.nn()||(console.warn(E.Go),!1))}Ma(){return this.an}Sr(){return this.Pa}Z(){return this.La}ue(){return this.hn}g(){return this.S}ee(t){return this.options[t]}ar(){return this.Ka}rn(){return this.Fi}v(){return this.B}P(){return this.T}j(){return this.C}mr(){if(this.Cs&&this.Fi)return new U.Z(this.Cs,this.Fi)}ir(){return this.Cs}tr(){return!0===this.ee(q.re)}h(t){let e=!1;for(const n of this.Fa)n===t&&(e=!0);e||this.Fa.push(t)}_(t){let e=!1;for(const n of this.Ka)n.constructor===t.constructor&&(e=!0);t instanceof l.Z&&!e&&this.Ka.push(t)}F(t){t instanceof s.Z&&this.Mi.push(t)}removeAllSubscriptions(){if(this.rr())for(const t of this.Mi)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(const e of this.Mi)e.removeSubscription(t)}fe(t){this.Ua=t}nn(){return this.isInitialized}Za(){return this.Ua}fi(){return this.Ta}}},45966:function(t,e,n){n.d(e,{I:function(){return h},Z:function(){return d}});var i=n(57559),s=n(42308),r=n(72893),a=n(12730),o=n(20335),l=n(17615),u=n(7169),c=n(8031);const h={iu:{su:"ab.storage.userId",Na:"ab.storage.deviceId",Nl:"ab.storage.sessionId"},gt:{ac:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",oc:"ab.storage.device",pu:"ab.storage.sdk_metadata",Ru:"ab.storage.session_id_for_cached_metadata",zn:"ab.storage.pushToken",qi:"ab.storage.newsFeed",zi:"ab.storage.lastNewsFeedRefresh",Zt:"ab.storage.cardImpressions",ml:"ab.storage.serverConfig",rE:"ab.storage.triggers",oE:"ab.storage.triggers.ts",Hl:"ab.storage.messagingSessionStart",Hs:"ab.storage.cc",Os:"ab.storage.ccLastFullSync",Qs:"ab.storage.ccLastCardUpdated",Hu:"ab.storage.globalRateLimitCurrentTokenCount",_u:"ab.storage.dynamicRateLimitCurrentTokenCount",Kt:"ab.storage.ccClicks",Yt:"ab.storage.ccImpressions",Vt:"ab.storage.ccDismissals",nE:"ab.storage.lastDisplayedTriggerTimesById",aE:"ab.storage.lastDisplayedTriggerTime",iE:"ab.storage.triggerFireInstancesById",qh:"ab.storage.signature",EE:"ab.storage.brazeSyncRetryCount",Zs:"ab.storage.sdkVersion",Xe:"ab.storage.ff",Ge:"ab.storage.ffImpressions",Ze:"ab.storage.ffLastRefreshAt",Ve:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",SE:"ab.storage.requestAttempts",Kr:"ab.storage.deferredIam",Ku:"ab.storage.lastSdkReq",_E:"ab.storage.alias",vt:"ab.storage.banners",Nt:"ab.storage.banners.impressions",yt:"ab.storage.banners.sessionId"},me:"ab.optOut"};class d{constructor(t,e){this.uE=t,this.cE=e,this.uE=t,this.cE=e}Ha(t){const e=(0,r.XP)(h.iu),n=new d.se(t);for(const i of e)n.remove(h.iu[i])}uu(t,e){let n=null;null!=e&&e instanceof s.Z&&(n=e.bt()),this.uE.store(t,n)}TE(t){const e=this.tu(t);null!=e&&(e.ql=(new Date).valueOf(),this.uu(t,e))}tu(t){const e=this.uE.gr(t),n=(t=>{let e;try{e=JSON.parse(t)}catch(t){e=null}return e})(e);let i;if(n)i=s.Z.Rn(n)||null,i&&this.uu(t,i);else{const n=s.Z.hE(e);i=s.Z.Rn(n)||null,n!==e&&i&&this.uu(t,i)}return i}Jl(t){this.uE.remove(t)}Xa(){const t=(0,r.XP)(h.iu);let e;for(const n of t)e=this.tu(h.iu[n]),null!=e&&this.uu(h.iu[n],e)}Vo(t){let e;if(null==t||0===t.length)return!1;e=(0,r.kJ)(t)?t:[t];let n=this.cE.gr(h.gt.tE);null!=n&&(0,r.kJ)(n)||(n=[]);for(let i=0;i<e.length;i++)n.push(e[i].bt());return this.cE.store(h.gt.tE,n)}Al(t){return null!=t&&this.Vo([t])}AE(){let t=this.cE.gr(h.gt.tE);this.cE.remove(h.gt.tE),null==t&&(t=[]);const e=[];let n=!1,s=null;if((0,r.kJ)(t))for(let r=0;r<t.length;r++)i.Z.RE(t[r])?e.push(i.Z.Rn(t[r])):s=r;else n=!0;if(n||null!=s){let r="Stored events could not be deserialized as Events";n&&(r+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(r+=", value at index "+s+" does not look like an event"),r+=", seri
1alized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new i.Z(null,a.G.qu,(new Date).valueOf(),null,{e:r}))}return e}Bt(t,e){return!!(0,r.fk)(h.gt,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.cE.store(t,e)}ft(t){return!!(0,r.fk)(h.gt,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.cE.gr(t)}Ut(t){return!!(0,r.fk)(h.gt,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.cE.remove(t),!0)}clearData(){const t=(0,r.XP)(h.iu),e=(0,r.XP)(h.gt);for(let n=0;n<t.length;n++){const e=t[n];this.uE.remove(h.iu[e])}for(let n=0;n<e.length;n++){const t=e[n];this.cE.remove(h.gt[t])}}gE(t){return t||h.gt.sE}Cu(t){let e=this.cE.gr(h.gt.eE);null==e&&(e={});const n=this.gE(t[l.Z.Xn]),i=e[n];for(const s in t)s!==l.Z.Xn&&(null==e[n]||i&&null==i[s])&&this.mu(t[l.Z.Xn],s,t[s])}mu(t,e,n){let i=this.cE.gr(h.gt.eE);null==i&&(i={});const s=this.gE(t);let r=i[s];if(null==r&&(r={},null!=t&&(r[l.Z.Xn]=t)),e===l.Z.lu){null==r[e]&&(r[e]={});for(const t in n)r[e][t]=n[t]}else r[e]=n;return i[s]=r,this.cE.store(h.gt.eE,i)}OE(){const t=this.cE.gr(h.gt.eE);this.cE.remove(h.gt.eE);const e=[];for(const n in t)null!=t[n]&&e.push(t[n]);return e}ru(t){const e=this.cE.gr(h.gt.eE);if(null!=e){const n=this.gE(null),i=e[n];null!=i&&(e[n]=void 0,this.cE.store(h.gt.eE,e),i[l.Z.Xn]=t,this.Cu(i))}const n=this.tu(h.iu.Nl);let i=null;null!=n&&(i=n.eu);const s=this.AE();if(null!=s)for(let r=0;r<s.length;r++){const e=s[r];null==e.userId&&e.sessionId==i&&(e.userId=t),this.Al(e)}}IE(){return this.cE.dE}}d.gc=class{constructor(t){this.an=t,this.an=t,this.dE=u.Z.fE()?3:10}bE(t){return t+"."+this.an}store(t,e){const n={v:e};try{return localStorage.setItem(this.bE(t),JSON.stringify(n)),!0}catch(t){return o.Z.info("Storage failure: "+(0,c.e)(t)),!1}}gr(t){try{let e=null;const n=localStorage.getItem(this.bE(t));return null!=n&&(e=JSON.parse(n)),null==e?null:e.v}catch(t){return o.Z.info("Storage retrieval failure: "+(0,c.e)(t)),null}}remove(t){try{localStorage.removeItem(this.bE(t))}catch(t){return o.Z.info("Storage removal failure: "+(0,c.e)(t)),!1}}},d.uc=class{constructor(){this.KE={},this.mE=5242880,this.dE=3}store(t,e){const n={value:e},i=this.YE(e);return i>this.mE?(o.Z.info("Storage failure: object is \u2248"+i+" bytes which is greater than the max of "+this.mE),!1):(this.KE[t]=n,!0)}YE(t){const e=[],n=[t];let i=0;for(;n.length;){const t=n.pop();if("boolean"==typeof t)i+=4;else if("string"==typeof t)i+=2*t.length;else if("number"==typeof t)i+=8;else if("object"==typeof t&&-1===e.indexOf(t)){let i,s;e.push(t);for(const e in t)s=t,i=e,n.push(s[i])}}return i}gr(t){const e=this.KE[t];return null==e?null:e.value}remove(t){this.KE[t]=null}},d.se=class{constructor(t,e){this.an=t,this.NE=e,this.an=t,this.GE=this.DE(),this.CE=576e3,this.NE=!!e}bE(t){return null!=this.an?t+"."+this.an:t}DE(){let t=0,e=document.location.hostname;const n=e.split("."),i="ab._gd";for(;t<n.length-1&&-1===document.cookie.indexOf(i+"="+i);)t++,e="."+n.slice(-1-t).join("."),document.cookie=i+"="+i+";domain="+e+";";return document.cookie=i+"=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}le(){const t=new Date;return t.setTime(t.getTime()+60*this.CE*1e3),t.getFullYear()}ME(){const t=(0,r.VO)(h.iu),e=document.cookie.split(";");for(let n=0;n<e.length;n++){let i=e[n];for(;" "===i.charAt(0);)i=i.substring(1);let s=!1;for(let e=0;e<t.length;e++)if(0===i.indexOf(t[e])){s=!0;break}if(s){const t=i.split("=")[0];-1===t.indexOf("."+this.an)&&this.pE(t)}}}store(t,e){this.ME();const n=new Date;n.setTime(n.getTime()+60*this.CE*1e3);const i="expires="+n.toUTCString(),s="domain="+this.GE;let r;r=this.NE?e:encodeURIComponent(e);const a=this.bE(t)+"="+r+";"+i+";"+s+";path=/";return a.length>=4093?(o.Z.info("Storage failure: string is "+a.length+" chars which is too large to store as a cookie."),!1):(document.cookie=a,!0)}gr(t){const e=[],n=this.bE(t)+"=",i=document.cookie.split(";");for(let s=0;s<i.length;s++){let r=i[s];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(n))try{let t;t=this.NE?r.substring(n.length,r.length):decodeURIComponent(r.substring(n.length,r.length)),e.push(t)}catch(e){return o.Z.info("Storage retrieval failure: "+(0,c.e)(e)),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.pE(this.bE(t))}pE(t){const e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";const n=e+";domain="+this.GE;document.cookie=n,document.cookie=n+";path=/"}},d.lc=class{constructor(t,e,n){this.an=t,this.vE=[],e&&this.vE.push(new d.se(t)),n&&this.vE.push(new d.gc(t)),this.vE.push(new d.uc)}store(t,e){let n=!0;for(let i=0;i<this.vE.length;i++)n=this.vE[i].store(t,e)&&n;return n}gr(t){for(let e=0;e<this.vE.length;e++){const n=this.vE[e].gr(t);if(null!=n)return n}return null}remove(t){new d.se(this.an).remove(t);for(let e=0;e<this.vE.length;e++)this.vE[e].remove(t)}}},74663:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(57070);class s{constructor(){this.Mi={}}Dt(t){if("function"!=typeof t)return null;const e=i.Z.ce();return this.Mi[e]=t,e}removeSubscription(t){delete this.Mi[t]}removeAllSubscriptions(){this.Mi={}}hc(){return Object.keys(this.Mi).length}X(t){const e=[];for(const n in this.Mi){const i=this.Mi[n];e.push(i(t))}return e}}},18982:function(t,e,n){n.d(e,{q:function(){return s}});var i=n(45966);function s(t){const e=null==t?void 0:t.ft(i.I.gt._E);let n;return e&&(n={label:e.l,name:e.a}
1),n}},63826:function(t,e){e.Z={Du:"invalid_api_key",Tu:"blacklisted",ku:"no_device_identifier",Au:"invalid_json_response",bu:"empty_response",__:"sdk_auth_error"}},57559:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(88468),s=n(18982),r=n(72893),a=n(57750);class o{constructor(t,e,n,i,s){this.userId=t,this.type=e,this.time=n,this.sessionId=i,this.data=s,this.userId=t,this.type=e,this.time=(0,a._0)(n),this.sessionId=i,this.data=s}Nr(){var t;const e={name:this.type,time:(0,a.FX)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(e.user_id=this.userId);const n=(null===(t=i.ZP.Sr())||void 0===t?void 0:t.jh())||!1;if(!e.user_id&&!n){const t=(0,s.q)(i.ZP.j());t&&(e.alias=t)}return e}bt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new o(t.user_id,t.name,t.time,t.session_id,t.data)}static RE(t){return null!=t&&(0,r.Kn)(t)&&null!=t.t&&""!==t.t}static Rn(t){return new o(t.u,t.t,t.ts,t.s,t.d)}}},42308:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(57070),s=n(20335),r=n(72893),a=n(8031);class o{constructor(t,e,n){this.eu=t,null==t&&(t=i.Z.ce()),!n||isNaN(n)?this.Gl=(new Date).valueOf():this.Gl=n,this.eu=t,this.ql=(new Date).valueOf(),this.kl=e}bt(){return`g:${encodeURIComponent(this.eu)}|e:${this.kl}|c:${this.Gl}|l:${this.ql}`}static hE(t){if("string"!=typeof t)return null;const e=t.lastIndexOf("|e:"),n=t.substring(0,e),i=n.split("g:")[1];let s;return s=/[|:]/.test(i)?encodeURIComponent(i):i,t.replace(n,`g:${s}`)}static Rn(t){let e;if("string"==typeof t)try{const n=t.split("|");if(!(0,r.kJ)(n)||4!==n.length)return null;const i=t=>t.split(":")[1],s=t=>{const e=parseInt(i(t));if(!isNaN(e))return e};e=new o(decodeURIComponent(i(n[0])),s(n[1]),s(n[2])),e.ql=s(n[3])}catch(e){s.Z.info(`Unable to parse cookie string ${t}, failed with error: ${(0,a.e)(e)}`)}else{if(null==t||null==t.g)return null;e=new o(t.g,t.e,t.c),e.ql=t.l}return e}}},63552:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(57750);class s{constructor(t,e,n,i,s){this.endpoint=t,this.En=e,this.publicKey=n,this.Vl=i,this.fl=s,this.endpoint=t||null,this.En=e||null,this.publicKey=n||null,this.Vl=i||null,this.fl=s||null}bt(){return{e:this.endpoint,c:this.En,p:this.publicKey,u:this.Vl,v:this.fl}}static Rn(t){return new s(t.e,(0,i.Rd)(t.c),t.p,t.u,t.v)}}},24673:function(t,e,n){n.d(e,{Z:function(){return i}});class i{constructor(t=!1,e=[]){this.tt=t,this.$e=e,this.tt=t,this.$e=e}ns(t){this.tt=this.tt&&t.tt,this.$e.push(...t.$e)}}},24365:function(t,e){e.Z={OPEN:"open",Rr:"purchase",hr:"push_click",Ee:"custom_event",Zr:"iam_click",As:"test"}},52134:function(t,e,n){n.d(e,{Z:function(){return m}});var i=n(57750),s=n(20335);class r{constructor(t){this.xc=t,this.xc=t}zc(t){return null==this.xc||this.xc===t[0]}static fromJson(t){return new r(t?t.event_name:null)}bt(){return this.xc}}var a=n(72893);class o{constructor(t,e,n,s){this.yE=t,this.HE=e,this.comparator=n,this.LE=s,this.yE=t,this.HE=e,this.comparator=n,this.LE=s,this.HE===o.QE.UE&&this.comparator!==o.wE.XE&&this.comparator!==o.wE.BE&&this.comparator!==o.wE.jE&&this.comparator!==o.wE.zE&&(this.LE=(0,i.X2)(this.LE))}zc(t){let e=null;switch(null!=t&&(e=t[this.yE]),this.comparator){case o.wE.FE:return null!=e&&e.valueOf()===this.LE.valueOf();case o.wE.kE:return null==e||e.valueOf()!==this.LE.valueOf();case o.wE.xE:return null!=e&&typeof e==typeof this.LE&&e>this.LE;case o.wE.XE:return this.HE===o.QE.UE?null!=e&&(0,a.J_)(e)&&(0,i.$N)(e)<=this.LE.valueOf():null!=e&&typeof e==typeof this.LE&&e>=this.LE;case o.wE.JE:return null!=e&&typeof e==typeof this.LE&&e<this.LE;case o.wE.BE:return this.HE===o.QE.UE?null!=e&&(0,a.J_)(e)&&(0,i.$N)(e)>=this.LE.valueOf():null!=e&&typeof e==typeof this.LE&&e<=this.LE;case o.wE.VE:return null!=e&&"string"==typeof e&&typeof e==typeof this.LE&&null!=e.match(this.LE);case o.wE.qE:return null!=e;case o.wE.PE:return null==e;case o.wE.jE:return null!=e&&(0,a.J_)(e)&&(0,i.yo)(e)<this.LE;case o.wE.zE:return null!=e&&(0,a.J_)(e)&&(0,i.yo)(e)>this.LE;case o.wE.WE:return null==e||typeof e!=typeof this.LE||"string"!=typeof e||null==e.match(this.LE)}return!1}static fromJson(t){return new o(t.property_key,t.property_type,t.comparator,t.property_value)}bt(){let t=this.LE;return(0,a.J_)(this.LE)&&(t=(0,i.FX)(t.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:t}}static Rn(t){return new o(t.k,t.t,t.c,t.v)}}o.QE={ZE:"boolean",$E:"number",tT:"string",UE:"date"},o.wE={FE:1,kE:2,xE:3,XE:4,JE:5,BE:6,VE:10,qE:11,PE:12,jE:15,zE:16,WE:17};class l{constructor(t){this.filters=t,this.filters=t}zc(t){let e=!0;for(let n=0;n<this.filters.length;n++){const i=this.filters[n];let s=!1;for(let e=0;e<i.length;e++)if(i[e].zc(t)){s=!0;break}if(!s){e=!1;break}}return e}static fromJson(t){if(null==t||!(0,a.kJ)(t))return null;const e=[];for(let n=0;n<t.length;n++){const i=[],s=t[n];for(let t=0;t<s.length;t++)i.push(o.fromJson(s[t]));e.push(i)}return new l(e)}bt(){const t=[];for(let e=0;e<this.filters.length;e++){const n=this.filters[e],i=[];for(let t=0;t<n.length;t++)i.push(n[t].bt());t.push(i)}return t}static Rn(t){const e=[];for(let n=0;n<t.length;n++){const i=[],s=t[n];for(let t=0;t<s.length;t++)i.push(o.Rn(s[t]));e.push(i)}return new l(e)}}class u{constructor(t,e){this.xc=t,this.tf=e,this.xc=t,this.tf=e}zc(t){if(null==this.xc||null==this.tf)return!1;const e=t[0],n=t[1];return e===this.xc&&this.tf.zc(n)}static fromJson(t){return new u(t?t.event_name:null,t?l.fromJson(t.property_filters):null)}bt(){return{e:this.xc,pf:this.tf?this.tf.bt():null}}}class c{constructor(t,e){this.if=t,this.rf=e,this.if=t,this.rf=e}zc(t){if(null==this.if)return!1;const e=g.sf(t[0],this.if);if(!e)return!1;let n=null==this.rf||0===this.rf.length;if(null!=this.rf)for(let i=0;i<this.rf.length;i++)if(this.rf[i]===t[1]){n=!0;break}return e&&n}static fromJson(t){return new c(t?t.id:null,t?t.buttons:null)}bt(){return this.if}}class h{constructor(t){this.productId=t,this.productId=t}zc(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new h(t?t.product_id:null)}bt(){return this.productId}}class d{constructor(t,e){this.productId=t,this.tf=e,this.productId=t,this.tf=e}zc(t){if(null==this.productId||null==this.tf)return!1;const e=t[0],n=t[1];return e===this.productId&&this.tf.zc(n)}static fromJson(t){return new d(t?t.product_id:null,t?l.fromJson(t.property_filters):null)}bt(){return{id:this.productId,pf:this.tf?this.tf.bt():null}}}class p{constructor(t){this.if=t,this.if=t}zc(t){return null==this.if||g.sf(t[0],this.if)}static fromJson(t){return new p(t?t.campaign_id:null)}bt(){return this.if}}var f=n(24365),b=n(8031);class g{constructor(t,e){this.type=t,this.data=e,this.type=t,this.data=e}_c(t,e){return g.Ec[this.type]===t&&(null==this.data||this.data.zc(e))}static sf(t,e){let n=null;try{n=window.atob(t)}catch(e){return s.Z.info("Failed to unencode analytics id "+t+": "+(0,b.e)(e)),!1}return e===n.split("_")[0]}static fromJson(t){const e=t.type;let n=null;switch(e){case g.Or.OPEN:case g.Or.As:break;case g.Or.Rr:n=h.fromJson(t.data);break;case g.Or.Cc:n=d.fromJson(t.data);break;case g.Or.hr:n=p.fromJson(t.data);break;case g.Or.Ee:n=r.fromJson(t.data);break;case g.Or.Pc:n=u.fromJson(t.data);break;case g.Or.Zr:n=c.fromJson(t.data)}return new g(e,n)}
1bt(){return{t:this.type,d:this.data?this.data.bt():null}}static Rn(t){let e,n=null;switch(t.t){case g.Or.OPEN:case g.Or.As:break;case g.Or.Rr:n=new h(t.d);break;case g.Or.Cc:e=t.d||{},n=new d(e.id,l.Rn(e.pf||[]));break;case g.Or.hr:n=new p(t.d);break;case g.Or.Ee:n=new r(t.d);break;case g.Or.Pc:e=t.d||{},n=new u(e.e,l.Rn(e.pf||[]));break;case g.Or.Zr:n=new c(t.d)}return new g(t.t,n)}}g.Or={OPEN:"open",Rr:"purchase",Cc:"purchase_property",hr:"push_click",Ee:"custom_event",Pc:"custom_event_property",Zr:"iam_click",As:"test"},g.Ec={},g.Ec[g.Or.OPEN]=f.Z.OPEN,g.Ec[g.Or.Rr]=f.Z.Rr,g.Ec[g.Or.Cc]=f.Z.Rr,g.Ec[g.Or.hr]=f.Z.hr,g.Ec[g.Or.Ee]=f.Z.Ee,g.Ec[g.Or.Pc]=f.Z.Ee,g.Ec[g.Or.Zr]=f.Z.Zr,g.Ec[g.Or.As]=f.Z.As;class m{constructor(t,e=[],n,i,s=0,r,a,o=0,l=m.td,u,c,h){this.id=t,this.sd=e,this.startTime=n,this.endTime=i,this.priority=s,this.type=r,this.data=a,this.ed=o,this.rd=l,this.Jr=u,this.hd=c,this.od=h,this.id=t,this.sd=e||[],void 0===n&&(n=null),this.startTime=n,void 0===i&&(i=null),this.endTime=i,this.priority=s||0,this.type=r,this.ed=o||0,null==u&&(u=1e3*(this.ed+30)),this.Jr=u,this.data=a,null!=l&&(this.rd=l),this.hd=c,this.od=h||null}nd(t){return null==this.od||this.rd!==m.td&&t-this.od>=1e3*this.rd}ad(t){this.od=t}ud(t){const e=t+1e3*this.ed;return Math.max(e-(new Date).valueOf(),0)}dd(t){const e=(new Date).valueOf()-t,n=null==t||isNaN(e)||null==this.Jr||e<this.Jr;return n||s.Z.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Jr}ms.`),!n}static fromJson(t){const e=t.id,n=[];for(let i=0;i<t.trigger_condition.length;i++)n.push(g.fromJson(t.trigger_condition[i]));const s=(0,i.X2)(t.start_time),r=(0,i.X2)(t.end_time),o=t.priority,l=t.type,u=t.delay,c=t.re_eligibility,h=t.timeout,d=t.data,p=t.min_seconds_since_last_trigger;return(0,a.fk)(m.Or,l,"Could not construct Trigger from server data","Trigger.Types")?new m(e,n,s,r,o,l,d,u,c,h,p):null}bt(){const t=[];for(let e=0;e<this.sd.length;e++)t.push(this.sd[e].bt());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Jr,ss:this.hd,ld:this.od}}static Rn(t){const e=[],n=t.c||[];for(let i=0;i<n.length;i++)e.push(g.Rn(n[i]));return new m(t.i,e,(0,i.Rd)(t.s),(0,i.Rd)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}m.Or={Cr:"inapp",md:"templated_iam"},m.td=-1},85346:function(t,e,n){n.d(e,{n:function(){return b}});var i=n(79602),s=n(88468),r=n(40158),a=n(23340),o=n(57559),l=n(72893),u=n(45966);class c{constructor(t,e,n,i,s){this.triggerId=t,this.Xr=e,this.$r=n,this.Hr=i,this.Jr=s,this.triggerId=t,this.Xr=e,this.$r=n,this.Hr=i,this.Jr=s}static fromJson(t,e,n,i,s){return null==t||null==t.trigger_id?null:new c(t.trigger_id,e,n,i,s)}}var h=n(52134),d=n(24365),p=n(20335);class f extends r.Z{constructor(t,e,n,i,s){super(),this.tg=t,this.Ts=e,this.C=n,this.Fi=i,this.ig=s,this.tg=t,this.Ts=e,this.C=n,this.Fi=i,this.ig=s,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.C){this.hg=this.C.ft(u.I.gt.aE)||this.hg,this.ng=this.C.ft(u.I.gt.iE)||this.ng,this.og=this.C.ft(u.I.gt.nE)||this.og;for(let t=0;t<this.triggers.length;t++){const e=this.triggers[t];e.id&&null!=this.og[e.id]&&e.ad(this.og[e.id])}}}ag(){if(!this.C)return;this.lg=this.C.ft(u.I.gt.oE)||0;const t=this.C.ft(u.I.gt.rE)||[],e=[];for(let n=0;n<t.length;n++)e.push(h.Z.Rn(t[n]));this.triggers=e,this.fg()}gg(){const t=this,e=function(e,n,i,s,r){return function(){t.cg(e,n,i,s,r)}},n={};for(const s of this.triggers)s.id&&(n[s.id]=s);let i=!1;for(let s=0;s<this.triggers.length;s++){const t=this.triggers[s];if(t.id&&null!=this.ng[t.id]){const s=this.ng[t.id],r=[];for(let i=0;i<s.length;i++){const a=s[i],u=t.ud(a.Hr||0);if(u>0){let i,s;r.push(a),null!=a.ug&&(i=a.ug),null!=a.dg&&o.Z.RE(a.dg)&&(s=o.Z.Rn(a.dg));const c=[];if(a.pg&&(0,l.kJ)(a.pg))for(let t=0;t<a.pg.length;t++){const e=n[a.pg[t]];null!=e&&c.push(e)}this.eg.push(window.setTimeout(e(t,a.Hr||0,i,s,c),u))}}this.ng[t.id].length>r.length&&(this.ng[t.id]=r,i=!0,0===this.ng[t.id].length&&delete this.ng[t.id])}}i&&this.C&&this.C.Bt(u.I.gt.iE,this.ng)}mg(){if(!this.C)return;const t=[];for(let e=0;e<this.triggers.length;
1e++)t.push(this.triggers[e].bt());this.lg=(new Date).valueOf(),this.C.Bt(u.I.gt.rE,t),this.C.Bt(u.I.gt.oE,this.lg)}bg(){this.C&&((this.C.ft(u.I.gt.oE)||0)>this.lg?this.ag():this.fg())}U(t){let e=!1;if(null!=t&&t.triggers){this.ig.Yr(),this.fg();const n={},i={};this.triggers=[];for(let a=0;a<t.triggers.length;a++){const s=h.Z.fromJson(t.triggers[a]);if(s){s.id&&null!=this.og[s.id]&&(s.ad(this.og[s.id]),n[s.id]=this.og[s.id]),s.id&&null!=this.ng[s.id]&&(i[s.id]=this.ng[s.id]);for(let t=0;t<s.sd.length;t++)if(s.sd[t]._c(d.Z.As,null)){e=!0;break}this.triggers.push(s)}}(0,l.Xy)(this.og,n)||(this.og=n,this.C&&this.C.Bt(u.I.gt.nE,this.og)),(0,l.Xy)(this.ng,i)||(this.ng=i,this.C&&this.C.Bt(u.I.gt.iE,this.ng)),this.mg(),e&&(p.Z.info("Trigger with test condition found, firing test."),this.Ce(d.Z.As)),this.Ce(d.Z.OPEN);const s=this.sg;let r;this.sg=[];for(let t=0;t<s.length;t++)r=Array.prototype.slice.call(s[t]),this.Ce(...r)}}cg(t,e,n,i,s){const r=i=>{this.fg();const s=(new Date).valueOf();t.dd(e)||(!1===navigator.onLine&&t.type===h.Z.Or.Cr&&i.imageUrl?p.Z.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.nd(s)&&this.wg(t,s,n)?0===this.Ts.hc()?p.Z.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Ts.X([i]),this.yg(t,s)):p.Z.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},o=()=>{this.fg();const r=s.pop();if(null!=r)if(this.Tg(r,e,n,i,s),r.dd(e)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${r.id} has already elapsed.`;s.length>0&&(t+=" Continuing to fall back."),p.Z.info(t),o()}else{p.Z.info(`Server aborted in-app message display. Falling back to lower priority ${r.type} trigger action ${t.id}.`);const a=1e3*r.ed-((new Date).valueOf()-e);a>0?this.eg.push(window.setTimeout((()=>{this.cg(r,e,n,i,s)}),a)):this.cg(r,e,n,i,s)}};let l,u,d;switch(t.type){case h.Z.Or.Cr:if(l=(0,a.q)(t.data),null==l){p.Z.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(u=this.ig.Ir(l),u){p.Z.error(u),o();break}r(l);break;case h.Z.Or.md:if(d=c.fromJson(t.data,r,o,e,t.Jr||0),null==d){p.Z.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.ig.qr(d,n,i);break;default:p.Z.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}Ce(t,e=null,n){if(!(0,l.fk)(d.Z,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Fi&&this.Fi.dc())return p.Z.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();const i=(new Date).valueOf(),s=i-(this.hg||0);let r=!0,a=!0;const o=[];for(let l=0;l<this.triggers.length;l++){const n=this.triggers[l],s=i+1e3*n.ed;if(n.nd(s)&&(null==n.startTime||n.startTime.valueOf()<=i)&&(null==n.endTime||n.endTime.valueOf()>=i)){let i=!1;for(let s=0;s<n.sd.length;s++)if(n.sd[s]._c(t,e)){i=!0;break}i&&(r=!1,this.wg(n,s,t)&&(a=!1,o.push(n)))}}if(r)return void p.Z.info(`Trigger event ${t} did not match any trigger conditions.`);if(a)return void p.Z.info(`Ignoring ${t} trigger event because a trigger was displayed ${s/1e3}s ago.`);o.sort(((t,e)=>t.priority-e.priority));const u=o.pop();null!=u&&(p.Z.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${t}.`),this.Tg(u,i,t,n,o),0===u.ed?this.cg(u,i,t,n,o):this.eg.push(window.setTimeout((()=>{this.cg(u,i,t,n,o)}),1e3*u.ed)))}changeUser(t=!1){if(this.triggers=[],this.C&&this.C.Ut(u.I.gt.rE),!t){this.sg=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[],this.C&&(this.C.Ut(u.I.gt.aE),this.C.Ut(u.I.gt.nE),this.C.Ut(u.I.gt.iE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[]}wg(t,e,n){if(null==this.hg)return!0;if(n===d.Z.As)return p.Z.info("Ignoring minimum interval between trigger because it is a test type."),!0;let i=t.hd;return null==i&&(i=this.tg),e-this.hg>=1e3*i}Tg(t,e,n,i,s){this.fg(),t.id&&(this.ng[t.id]=this.ng[t.id]||[]);const r={};let a;r.Hr=e,r.ug=n,null!=i&&(a=i.bt()),r.dg=a;const o=[];for(const l of s)l.id&&o.push(l.id);r.pg=o,t.id&&this.ng[t.id].push(r),this.C&&this.C.Bt(u.I.gt.iE,this.ng)}yg(t,e){this.fg(),t.ad(e),this.hg=e,t.id&&(this.og[t.id]=e),this.C&&(this.C.Bt(u.I.gt.aE,e),this.C.Bt(u.I.gt.nE,this.og))}}const b={l:!1,provider:null,m:()=>(b.p(),b.provider||b.rg(),b.provider),rg:()=>{if(!b.provider){const t=s.ZP.ee(s.JY.Xh);b.provider=new f(null!=t?t:30,i.Z.ea().Oi(),s.ZP.j(),s.ZP.rn(),i.Z.ea()),s.ZP._(b.provider)}},p:()=>{b.l||(b.rg(),s.ZP.h(b),b.l=!0)},destroy:()=>{b.provider=null,b.l=!1}}},95333:function(t,e,n){n.d(e,{e:function(){return s}});var i=n(88468);function s(t,e,n){const s=t||document.querySelector("head"),r=`ab-${e}-css-definitions-${"5.9.1".replace(/\./g,"-")}`;if(!s)return;const a=s.ownerDocument||document;if(null==a.getElementById(r)){const t=a.createElement("style");t.innerHTML=n||"",t.id=r;const e=i.ZP.ee(i.JY.er);null!=e&&t.setAttribute("nonce",e),s.appendChild(t)}}},46959:function(t,e,n){n.d(e,{B:function(){return r}});var i=n(95333),s=n(16524);function r(){var t;(0,i.e)(t,"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%}}"),(0,s.N)()}},16524:function(t,e,n){n.d(e,{N:function(){return s}});var i=n(88468);function s(){if(i.ZP.ee(i.JY.Ia))return;const t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}}},73046:function(t,e,n){n.d(e,{A9:function(){return o},OL:function(){return c},Tu:function(){return u},je:function(){return d},yi:function(){return l},zA:function(){return p}});var i=n(20335),s=n(8031),r=n(8548),a=n(3905);const o={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",co:"openLink",mo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},l={Mr:"unknownBrazeAction",wr:"noPushPrompt"},u=(t,e)=>{switch(t){case l.Mr:return`${e} contains an unknown braze action type and will not be displayed.`;case l.wr:return`${e} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function c(t){try{const e=t.match(a.y9),n=e?e[0].length:null,s=n?t.substring(n):null;if(null==n||n>t.length-1||!s)return void i.Z.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);const o=(0,r.T)(s);return o?JSON.parse(o):void i.Z.error(`Failed to decode base64 encoded brazeAction: ${s}`)}catch(e){return void i.Z.error(`Failed to process brazeAction URL ${t} : ${(0,s.e)(e)}`)}}function h(t,e){let n=!1;if(e)for(const i of e)if(n=n||t(i),n)return!0;return!1}function d(t){const e=o.properties.type,n=o.properties.eo;try{if(null==t)return!0;const i=t[e];return i===o.types.io?h(d,t[n]):!(0,a.OM)(i)}catch(t){return!0}}function p(t){if(!t||!(0,a.zR)(t))return!1;const e=o.properties.type,n=o.properties.eo,i=t[e];
1return i===o.types.io?h(p,t[n]):i===o.types.requestPushPermission}},7169:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(72893);class s{constructor(){}ef(){}ff(){}ec(t){}static nf(t,e){if(t&&e)if(t=t.toLowerCase(),(0,i.kJ)(e.cf)){for(let n=0;n<e.cf.length;n++)if(-1!==t.indexOf(e.cf[n].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.cf.toLowerCase()))return e.identity}}var r=n(35806);class a extends s{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const t=this.Bc();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}this.OS=null}ef(){return this.browser}ff(){return this.version}ec(t){if(this.OS)return Promise.resolve(this.OS);const e=e=>{for(let n=0;n<t.length;n++){const i=a.nf(e,t[n]);if(i)return this.OS=i,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.getHighEntropyValues().then((t=>t.platform?e(t.platform):navigator.platform)).catch((()=>navigator.platform))}Bc(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const n of e){const e=this.Vc(r.s),i=n.brand.match(e);if(i&&i.length>0){t.browser=i[0],t.version=n.version;break}}return t}Vc(t){const e=[];for(const n in t){const i=n;e.push(t[i])}return new RegExp("("+e.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends s{constructor(){super(),this.fd=o.Bc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}ff(){return this.fd[1]||"Unknown Version"}ec(t){for(let e=0;e<t.length;e++){const n=t[e].string;let i=o.nf(n,t[e]);if(i)return i===r.T.Pg&&navigator.maxTouchPoints>1&&(i=r.T.ao),Promise.resolve(i)}return Promise.resolve(navigator.platform)}static Bc(t){let e,n=t.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(n[1]===r.s.rO&&(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("OPR",r.s.oO),e[0]=e[0].replace("EdgA",r.s.eO),"Edg"===e[0]&&(e[0]=r.s.eO),[e[0],e[1]];if(n[1]===r.s.Bg&&(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",r.s.eO),[e[0],e[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===r.s.Bg&&null!=(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&n.splice(1,1,e[1]),null!=(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&n.splice(1,1,e[2]),n[0]===r.s.oO&&null!=(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(n[0]){const t=n[0].toLowerCase();"crios"===t&&(n[0]=r.s.rO),"tizen"===t&&(n[0]="Samsung Smart TV",n[1]=null),"samsungbrowser"===t&&(n[0]="Samsung Browser")}return n}}class l{constructor(){const t=navigator.userAgentData?a:o;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.ff(),this.OS=null,this.ec().then((t=>this.OS=t));const e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||"").toLowerCase(),this.Ja=l.vg(this.userAgent)}fE(){return this.browser===r.s.Bg}ic(){return this.OS||null}ec(){return this.OS?Promise.resolve(this.OS):this.Sg.ec(l.kg).then((t=>(this.OS=t,t)))}static vg(t){t=t.toLowerCase();const e=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma","taiko"];for(let n=0;n<e.length;n++)if(-1!==t.indexOf(e[n]))return!0;return!1}}l.kg=[{string:navigator.platform,cf:"Win",identity:r.T.Og},{string:navigator.platform,cf:"Mac",identity:r.T.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:r.T.ao},{string:navigator.platform,cf:"Pike v",identity:r.T.ao},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:r.T.xg},{string:navigator.userAgent,cf:["Android"],identity:r.T.xg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];const u=new l},72893:function(t,e,n){n.d(e,{J_:function(){return o},Kn:function(){return l},VO:function(){return s},XP:function(){return c},Xy:function(){return h},fk:function(){return r},jV:function(){return u},kJ:function(){return a}});var i=n(20335);function s(t){const e=[];let n;for(const i in t)n=i,Object.prototype.hasOwnProperty.call(t,n)&&void 0!==t[n]&&e.push(t[n]);return e}function r(t,e,n,r){const a=s(t);return-1!==a.indexOf(e)||(i.Z.error(`${n} Valid values from ${r} are "${a.join('"/"')}".`),!1)}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function o(t){return"[object Date]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t,...e){null==t&&(t=[]);const n=[],i=arguments.length;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(-1!==n.indexOf(e))continue;let r=1;for(r=1;r<i&&-1!==arguments[r].indexOf(e);r++);r===i&&n.push(e)}return n}function c(t){const e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}function h(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;const n=t.toString();if(n!==e.toString())return!1;switch(n){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}const i="[object Array]"===n;if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;const n=t.constructor,i=e.constructor;if(n!==i&&!("function"==typeof n&&n instanceof n&&"function"==typeof i&&i instanceof i)&&"constructor"in t&&"constructor"in e)return!1}const s=[],r=[];let a=s.length;for(;a--;)if(s[a]===t)return r[a]===e;
1if(s.push(t),r.push(e),i){if(a=t.length,a!==e.length)return!1;for(;a--;)if(!h(t[a],e[a]))return!1}else{const n=c(t);let i;if(a=n.length,c(e).length!==a)return!1;for(;a--;)if(i=n[a],!Object.prototype.hasOwnProperty.call(e,i)||!h(t[i],e[i]))return!1}return s.pop(),r.pop(),!0}},5242:function(t,e,n){n.d(e,{B:function(){return r}});var i=n(11507),s=n(7429);function r(t,e,n,r="ltr"){const a=document.createElement("button");a.setAttribute("aria-label",t),a.setAttribute("tabindex","0"),a.setAttribute("role","button"),a.dir=r,(0,i.lj)(a,"touchstart"),a.className="ab-close-button";const o=(0,i.MK)("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",e);return a.appendChild(o),a.addEventListener("keydown",(t=>{t.keyCode!==s.m.Wo&&t.keyCode!==s.m.Xo||(n(),t.stopPropagation())})),a.onclick=t=>{n(),t.stopPropagation()},a}},57750:function(t,e,n){n.d(e,{$N:function(){return c},BT:function(){return o},FX:function(){return s},Pn:function(){return r},Rd:function(){return l},X2:function(){return a},_0:function(){return u},yo:function(){return h}});var i=n(72893);function s(t,e=!1){let n=t/1e3;return e&&(n=Math.floor(n)),n}function r(t){return 1e3*t}function a(t){if(null==t)return null;const e=parseInt(t.toString());return isNaN(e)?null:new Date(1e3*e)}function o(t){return null!=t&&(0,i.J_)(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function l(t){return null==t||""===t?null:new Date(t)}function u(t){return null==t||""===t?(new Date).valueOf():t}function c(t){return((new Date).valueOf()-t.valueOf())/1e3}function h(t){return(t.valueOf()-(new Date).valueOf())/1e3}},35806:function(t,e,n){n.d(e,{T:function(){return s},s:function(){return i}});const i={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},s={xg:"Android",ao:"iOS",Pg:"Mac",Og:"Windows"}},11507:function(t,e,n){n.d(e,{$j:function(){return h},FZ:function(){return d},Fr:function(){return c},MK:function(){return p},QZ:function(){return o},lP:function(){return r},lj:function(){return l},mQ:function(){return a},rJ:function(){return u}});var i=n(20335),s=n(8031);const r={Ic:null,Ho:function(t,e=!1,n=!1,i=!1){if(null==t)return!1;e=e||!1,n=n||!1;const s=t.getBoundingClientRect();return null!=s&&(s.top>=0&&s.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(s.left>=0||!i)&&(s.bottom>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(s.right<=(window.innerWidth||document.documentElement.clientWidth)||!i)}},a={qo:"up",yo:"down",ie:"left",de:"right"};function o(){if(null==r.Ic){r.Ic=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{r.Ic=!0}});window.addEventListener("testPassive",(()=>{}),t),window.removeEventListener("testPassive",(()=>{}),t)}catch(t){i.Z.error((0,s.e)(t))}}return r.Ic}function l(t,e,n=(()=>{})){t.addEventListener(e,n,!!o()&&{passive:!0})}function u(t){return r.Ho(t,!0,!1,!1)}function c(t){return r.Ho(t,!1,!0,!1)}function h(t){if(t.onclick){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}}function d(t,e,n){let i=null,s=null;l(t,"touchstart",(t=>{i=t.touches[0].clientX,s=t.touches[0].clientY})),l(t,"touchmove",(r=>{if(null==i||null==s)return;const o=i-r.touches[0].clientX,l=s-r.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&e===a.ie||o<0&&e===a.de)&&n(r),i=null,s=null):Math.abs(l)>=25&&((l>0&&e===a.qo&&t.scrollTop===t.scrollHeight-t.offsetHeight||l<0&&e===a.yo&&0===t.scrollTop)&&n(r),i=null,s=null)}))}function p(t,e,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg");s.setAttribute("viewBox",t),s.setAttribute("xmlns",i);const r=document.createElementNS(i,"path");return r.setAttribute("d",e),null!=n&&r.setAttribute("fill",n),s.appendChild(r),s}},8031:function(t,e,n){n.d(e,{e:function(){return i}});const i=t=>t instanceof Error?t.message:String(t)},7429:function(t,e,n){n.d(e,{m:function(){return i}});const i={Wo:32,Ao:9,Xo:13,_h:27}},96504:function(t,e,n){n.d(e,{R:function(){return i}});const i=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t)},41843:function(t,e,n){n.d(e,{D:function(){return o}});var i=n(20335),s=n(63826),r=n(8031);const a={Y:t=>{let e,n;try{const r=()=>
1{i.Z.error("This browser does not have any supported ajax options!")};let a=!1;if(window.XMLHttpRequest&&(a=!0),!a)return void r();e=new XMLHttpRequest;const o=n=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.nt&&t.nt(!1,n)};e.onload=()=>{let n=!1;if(4!==e.readyState)return;n=e.status>=200&&e.status<300||304===e.status;const i=e.getAllResponseHeaders();if(n){if("function"==typeof t.tt){let r;try{r=JSON.parse(e.responseText)}catch(n){const r={error:""===e.responseText?s.Z.bu:s.Z.Au,response:e.responseText};(0,t.tt)(r,i)}r&&t.tt(r,i)}"function"==typeof t.nt&&t.nt(!0,i)}else o(i)},e.onerror=()=>{o(e.getAllResponseHeaders())},e.ontimeout=()=>{o()},n=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest");const l=t.headers||[];for(const t of l)e.setRequestHeader(t[0],t[1]);e.send(n)}catch(t){i.Z.error(`Network request error: ${(0,r.e)(t)}`)}}},o=t=>{const e={},n=t.toString().split("\r\n");if(!n)return e;let i,s;for(const r of n)r&&(i=r.slice(0,r.indexOf(":")).toLowerCase().trim(),s=r.slice(r.indexOf(":")+1).trim(),e[i]=s);return e};e.Z=a},76870:function(t,e,n){var i=n(27671),s=n(45966);const r={O:{Nu:"data",wi:"content_cards/sync",Le:"feature_flags/sync",Er:"template",K:"banners/sync"},Vu:t=>null==t?void 0:t.ft(s.I.gt.lE),sm:t=>null==t?void 0:t.ft(s.I.gt.SE),nm:(t,e)=>{null==t||t.Bt(s.I.gt.lE,e)},rm:(t,e)=>{null==t||t.Bt(s.I.gt.SE,e)},zu:(t,e)=>{if(!t||!e)return-1;const n=r.Vu(t);if(null==n)return-1;const i=n[e];return null==i||isNaN(i)?-1:i},ju:(t,e)=>{let n=i.S6;if(!t||!e)return n;const s=r.sm(t);return null==s?n:(n=s[e],null==n||isNaN(n)?i.S6:n)},W:(t,e,n)=>{if(!t||!e)return;let i=r.Vu(t);null==i&&(i={}),i[e]=n,r.nm(t,i)},Mu:(t,e,n)=>{if(!t||!e)return;let i=r.sm(t);null==i&&(i={}),i[e]=n,r.rm(t,i)},vi:(t,e)=>{t&&e&&r.Mu(t,e,i.S6)},Uu:(t,e)=>{if(!t||!e)return;const n=r.ju(t,e);r.Mu(t,e,n+1)}};e.Z=r},8548:function(t,e,n){n.d(e,{E:function(){return s},T:function(){return r}});var i=n(20335);function s(t){let e=t.length;for(let n=t.length-1;n>=0;n--){const i=t.charCodeAt(n);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&n--}return e}function r(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");const e=window.atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);const i=new Uint16Array(n.buffer);return String.fromCharCode(...i)}catch(t){return i.Z.error("Unable to decode Base64: "+t),null}}},1148:function(t,e,n){function i(t){null==t&&(t="");const e=t.split("?").slice(1).join("?"),n={};if(null!=e){const t=e.split("&");for(let e=0;e<t.length;e++){const i=t[e].split("=");""!==i[0]&&(n[i[0]]=i[1])}}return n}function s(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}n.d(e,{L:function(){return i},o:function(){return s}})},3905:function(t,e,n){n.d(e,{$g:function(){return y},Ey:function(){return k},OM:function(){return S},UO:function(){return m},bj:function(){return g},lg:function(){return x},ro:function(){return w},vV:function(){return E},y9:function(){return p},zM:function(){return b},zR:function(){return C}});var i=n(72893),s=n(8548),r=n(20335),a=n(57750),o=n(73046),l=n(27671);const u=/^[^\x00-\x1F\x22]+$/,c=/[$.]/,h=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],d=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//,f=/^[^\s]+$/;function b(t,e,n){const i=null!=t&&"string"==typeof t&&(""===t||null!=t.match(u));return i||r.Z.error(`Cannot ${e} because ${n} "${t}" is invalid.`),i}function g(t){return null!=t&&t.match(c)&&-1===h.indexOf(t)&&r.Z.warn("Custom attribute keys cannot contain '$' or '.'"),b(t,"set custom user attribute","the given key")}function m(t){const e=typeof t;return null==t||"number"===e||"boolean"===e||(0,i.J_)(t)||"string"===e}function v(t,e,n){const s=-1!==n;if(s&&n>50)return r.Z.error("Nested attributes cannot be more than 50 levels deep."),!1;const o=s?n+1:-1;if((0,i.kJ)(t)&&(0,i.kJ)(e)){for(let r=0;r<t.length&&r<e.length;r++)if((0,i.J_)(t[r])&&(e[r]=(0,a.BT)(t[r])),!v(t[r],e[r],o))return!1}else{if(!(0,i.Kn)(t))return m(t);for(const n of(0,i.XP)(t)){const r=t[n];if(s&&!g(n))return!1;if((0,i.J_)(r)&&(e[n]=(0,a.BT)(r)),!v(r,e[n],o))return!1}}return!0}function Z(t,e,n,s,a){let o;return o=(0,i.Kn)(t)||(0,i.kJ)(t)?v(t,e,a?1:-1):m(t),o||r.Z.error(`Cannot ${n} because ${s} "${t}
1" is invalid.`),o}function w(t,e,n,i=!1){const s="string"==typeof t||null===t&&i;return s||r.Z.error(`Cannot ${e} because ${n} "${t}" is invalid.`),s}function x(t,e,n,o,u){if(null==t&&(t={}),"object"!=typeof t||(0,i.kJ)(t))return r.Z.error(`${e} requires that ${n} be an object. Ignoring ${u}.`),[!1,null];let c,h;e===l.db?(c=76800,h="75KB"):(c=51200,h="50KB");const d=JSON.stringify(t);if((0,s.E)(d)>c)return r.Z.error(`Could not ${o} because ${n} was greater than the max size of ${h}.`),[!1,null];let p;try{p=JSON.parse(d)}catch(t){return r.Z.error(`Could not ${o} because ${n} did not contain valid JSON.`),[!1,null]}for(const s in t){if(e===l.db&&!g(s))return[!1,null];if(!b(s,o,`the ${u} property name`))return[!1,null];const n=t[s];if(e===l.db||null!=n){if((0,i.J_)(n)&&(p[s]=(0,a.BT)(n)),!Z(n,p[s],o,`the ${u} property "${s}"`,e===l.db))return[!1,null]}else delete t[s],delete p[s]}return[!0,p]}function y(t,e){let n=!1,s=!1;const a=()=>{r.Z.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const r of e)if("string"==typeof r){if(s)return a(),[!1,!1];if(!b(r,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];n=!0}else{if(!(0,i.Kn)(r))return a(),[!1,!1];if(n)return a(),[!1,!1];if(!x(r,l.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];s=!0}return[n,s]}function E(t){return"string"==typeof t&&null!=t.toLowerCase().match(d)}function C(t){if(!(o.A9.properties.type in t))return!1;switch(t[o.A9.properties.type]){case o.A9.types.io:if(o.A9.properties.eo in t)return!0;break;case o.A9.types.logCustomEvent:case o.A9.types.setEmailNotificationSubscriptionType:case o.A9.types.setPushNotificationSubscriptionType:case o.A9.types.setCustomUserAttribute:case o.A9.types.addToSubscriptionGroup:case o.A9.types.removeFromSubscriptionGroup:case o.A9.types.addToCustomAttributeArray:case o.A9.types.removeFromCustomAttributeArray:case o.A9.types.co:case o.A9.types.mo:if(o.A9.properties.so in t)return!0;break;case o.A9.types.requestPushPermission:return!0;default:return!1}return!1}function S(t){let e=!1;return Object.keys(o.A9.types).forEach((n=>{o.A9.types[n]!==t.toString()||(e=!0)})),e}function k(t){return f.test(t)}},75319:function(t,e,n){n.d(e,{SD:function(){return s},eh:function(){return i}});const i={PORTRAIT:0,LANDSCAPE:1};const s={openUri:function(t,e,n){t&&(e||null!=n&&n.metaKey?window.open(t):window.location=t)},Uo:function(){return screen.width<=600},No:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?i.LANDSCAPE:i.PORTRAIT;const t=window;if("screen"in t){let e=t.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=e&&"object"==typeof e&&(e=e.type),"landscape-primary"===e||"landscape-secondary"===e?i.LANDSCAPE:i.PORTRAIT}return i.PORTRAIT},$a:function(){return window.location.href}}}}]);
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.