1import{_ as mt}from"./components-BbFb8s6i.js";import"./index-89mridoR.js";import"./lodash-CJQm03dj.js";try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="b030305d-e3e3-4fe5-bec5-675f30c4b227",s._sentryDebugIdIdentifier="sentry-dbid-b030305d-e3e3-4fe5-bec5-675f30c4b227")})()}catch{}const c={init:function(s){s===void 0&&c.zg!==void 0||(c.zg=!!s),c.l||(c.l=!0)},destroy:function(){c.l=!1,c.zg=void 0,c.vd=void 0},setLogger:function(s){typeof s=="function"?(c.init(),c.vd=s):c.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){c.init(),c.zg?(console.log("Disabling Braze logging"),c.zg=!1):(console.log("Enabled Braze logging"),c.zg=!0)},info:function(s){if(c.zg){const t="Braze: "+s;c.vd!=null?c.vd(t):console.log(t)}},warn:function(s){if(c.zg){const t="Braze SDK Warning: "+s+" (v6.0.0)";c.vd!=null?c.vd(t):console.warn(t)}},error:function(s){if(c.zg){const t="Braze SDK Error: "+s+" (v6.0.0)";c.vd!=null?c.vd(t):console.error(t)}}},zi={In:function(s){const t=(s+"=".repeat((4-s.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),e=atob(t),i=new Uint8Array(e.length);for(let n=0;n<e.length;++n)i[n]=e.charCodeAt(n);return i}},O={CustomEvent:"ce",Pr:"p",mc:"pc",Cc:"ca",Al:"i",ul:"ie",Zt:"cci",ts:"ccic",Mt:"ccc",Vt:"ccd",Iu:"ss",Du:"se",$i:"si",Fi:"sc",Oi:"sbc",yc:"sfe",Go:"iec",dc:"lr",cc:"uae",vc:"lcaa",gc:"lcar",Gn:"inc",Rn:"add",On:"rem",$n:"set",Bn:"ncam",bc:"sgu",yr:"ffi",ro:"bi",ct:"bc"},Rt={ce:function(){const s=(t=!1)=>{const e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return s()+s(!0)+s(!0)+s()}};class R{constructor(t,e){this.database=t,this.vd=e,this.parent=typeof window>"u"?self:window,this.database=t,this.vd=e}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var t;try{if(this.Dd()==null)return!1;{const e=(t=this.Dd())===null||t===void 0?void 0:t.open("Braze IndexedDB Support Test");if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),typeof window<"u"){const i=window,n=i.chrome||i.browser||i.pd;if(n&&n.runtime&&n.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(e){return this.vd.info("Not using IndexedDB for storage due to following error: "+e),!1}}Bd(t,e){var i;const n=(i=this.Dd())===null||i===void 0?void 0:i.open(this.database.Sd,this.database.VERSION);if(n==null)return typeof e=="function"&&e(),!1;const a=this;return n.onupgradeneeded=o=>{var r;a.vd.info("Upgrading indexedDB "+a.database.Sd+" to v"+a.database.VERSION+"...");const l=(r=o.target)===null||r===void 0?void 0:r.result;for(const u in a.database.Ls){const d=u;a.database.Ls.hasOwnProperty(u)&&!l.objectStoreNames.contains(a.database.Ls[d])&&l.createObjectStore(a.database.Ls[d])}},n.onsuccess=o=>{var r;const l=(r=o.target)===null||r===void 0?void 0:r.result;l.onversionchange=()=>{l.close(),typeof e=="function"&&e(),a.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(l)},n.onerror=o=>{var r;const l=o;return a.vd.info("Could not open indexedDB "+a.database.Sd+" v"+a.database.VERSION+": "+((r=l.target)===null||r===void 0?void 0:r.errorCode)),typeof e=="function"&&e(),!0},!0}setItem(t,e,i,n,a){if(!this.isSupported())return typeof a=="function"&&a(),!1;const o=this;return this.Bd(r=>{if(!r.objectStoreNames.contains(t))return o.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+o.database.Sd+" - "+t+" is not a valid objectStore"),typeof a=="function"&&a(),void r.close();const l=r.transaction([t],"readwrite");l.oncomplete=()=>r.close();const u=l.objectStore(t).put(i,e);u.onerror=()=>{o.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+o.database.Sd),typeof a=="function"&&a()},u.onsuccess=()=>{typeof n=="function"&&n()}},a)}getItem(t,e,i){if(!this.isSupported())return!1;const n=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(t))return n.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),void a.close();const o=a.transaction([t],"readonly");o.oncomplete=()=>a.close();const r=o.objectStore(t).get(e);r.onerror=()=>{n.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.database.Sd)},r.onsuccess=l=>{var u;
1const d=(u=l.target)===null||u===void 0?void 0:u.result;d!=null&&i(d)}})}jr(t,e,i){if(!this.isSupported())return typeof i=="function"&&i(),!1;const n=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(t))return n.vd.error("Could not retrieve last record from "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),typeof i=="function"&&i(),void a.close();const o=a.transaction([t],"readonly");o.oncomplete=()=>a.close();const r=o.objectStore(t).openCursor(null,"prev");r.onerror=()=>{n.vd.error("Could not open cursor for "+t+" on indexedDB "+n.database.Sd),typeof i=="function"&&i()},r.onsuccess=l=>{var u;const d=(u=l.target)===null||u===void 0?void 0:u.result;d!=null&&d.value!=null&&d.key!=null?e(d.key,d.value):typeof i=="function"&&i()}},i)}ge(t,e){if(!this.isSupported())return!1;const i=this;return this.Bd(n=>{if(!n.objectStoreNames.contains(t))return i.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void n.close();const a=n.transaction([t],"readwrite");a.oncomplete=()=>n.close(),a.objectStore(t).delete(e).onerror=()=>{i.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.database.Sd)}})}As(t,e){if(!this.isSupported())return!1;const i=this;return this.Bd(n=>{if(!n.objectStoreNames.contains(t))return i.vd.error("Could not retrieve objects from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void n.close();const a=n.transaction([t],"readwrite");a.oncomplete=()=>n.close();const o=a.objectStore(t),r=o.openCursor(),l=[];r.onerror=()=>{l.length>0?(i.vd.info("Cursor closed midway through for "+t+" on indexedDB "+i.database.Sd),e(l)):i.vd.error("Could not open cursor for "+t+" on indexedDB "+i.database.Sd)},r.onsuccess=u=>{var d;const p=(d=u.target)===null||d===void 0?void 0:d.result;p!=null?(p.value!=null&&p.key!=null&&(o.delete(p.key).onsuccess=()=>{l.push(p.value)}),typeof p.continue=="function"&&p.continue()):l.length>0&&e(l)}})}clearData(){if(!this.isSupported())return!1;const t=[];for(const i in this.database.Ls){const n=i;this.database.Ls.hasOwnProperty(i)&&this.database.Ls[n]!==this.database.Ls.pe&&t.push(this.database.Ls[n])}const e=this;return this.Bd(function(i){const n=i.transaction(t,"readwrite");n.oncomplete=()=>i.close();for(let a=0;a<t.length;a++){const o=t[a];n.objectStore(o).clear().onerror=function(){e.vd.error("Could not clear "+this.source.name+" on indexedDB "+e.database.Sd)}}n.onerror=function(){e.vd.error("Could not clear object stores on indexedDB "+e.database.Sd)}})}}R.Ds={Us:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Ls:{gl:"data",hr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",Fs:"cardUpdates",pe:"optOut",$r:"pendingData",qh:"sdkAuthenticationSignature"},be:1}};const He={_o:"allowCrawlerActivity",Yo:"baseUrl",Xo:"noCookies",Zo:"devicePropertyAllowlist",Aa:"disablePushTokenMaintenance",Wh:"enableLogging",Vh:"enableSdkAuthentication",qa:"manageServiceWorkerExternally",Kh:"minimumIntervalBetweenTriggerActionsInSeconds",$h:"sessionTimeoutInSeconds",Yh:"appVersion",Xh:"appVersionNumber",Ma:"serviceWorkerLocation",ka:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Ko:"inAppMessageZIndex",Qo:"openInAppMessagesInNewTab",Lh:"requireExplicitInAppMessageDismissal",Zh:"doNotLoadFontAwesome",Qh:"deviceId",_a:"serviceWorkerScope",Ea:"sdkFlavor",tn:"openCardsInNewTab"};function de(s){const t=[];let e;for(const i in s)e=i,Object.prototype.hasOwnProperty.call(s,e)&&s[e]!==void 0&&t.push(s[e]);return t}function Ct(s,t,e,i){const n=de(s);return n.indexOf(t)!==-1||(c.error(`${e} Valid values from ${i} are "${n.join('"/"')}".`),!1)}function q(s){return Array.isArray?Array.isArray(s):Object.prototype.toString.call(s)==="[object Array]"}function vt(s){return Object.prototype.toString.call(s)==="[object Date]"}function Yt(s){return Object.prototype.toString.call(s)==="[object Object]"}function it(s){const t=[];for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&t.push(e);return t}function Mt(s,t){if(s===t)return s!==0||1/s==1/t;if(s==null||t==null)return s===t;const e=s.toString();if(e!==t.toString())return!1;switch(e){case"[object RegExp]":case"[object String]":return""+s==""+t;case"[object Number]":return+s!=+s?+t!=+t:+s==0?1/+s==1/t:+s==+t;case"[object Date]":case"[object Boolean]":return+s==+t}const i=e==="[object Array]";if(!i){if(typeof s!="object"||typeof t!="object")return!1;const r=s.constructor,l=t.constructor;if(r!==l&&!(typeof r=="function"&&r instanceof r&&typeof l=="function"&&l instanceof l)&&"constructor"in s&&"constructor"in t)return!1}const n=[],a=[];let o=n.length;for(;o--;)if(n[o]===s)return a[o]===t;if(n.push(s),a.push(t),i){if(o=s.length,o!==t.length)return!1;for(;o--;)if(!Mt(s[o],t[o]))return!1}else{const r=it(s);let l;if(o=r.length,it(t).length!==o)return!1;for(;o--;)if(l=r[o],!Object.prototype.hasOwnProperty.call(t,l)||!Mt(s[l],t[l]))return!1}return n.pop(),a.pop(),!0}function Zt(s,t=!1){let e=s/1e3;return t&&(e=Math.floor(e)),e}function Ui(s){return 1e3*s}function Dt(s){if(s==null)return null;const t=parseInt(s.toString());return isNaN(t)?null:new Date(1e3*t)}function se(s){return s!=null&&vt(s)?s.toISOString().replace(/\.[0-9]{3}Z$/,""):s}function Vt(s){return s==null||s===""?null:new Date(s)}function Li(s){return s==null||s===""?new Date().valueOf():s}function Xe(s){return(new Date().valueOf()-s.valueOf())/1e3}function Ve(s){return(s.valueOf()-new Date().valueOf())/1e3}const Ke=100,_e="inAppMessage must be an InAppMessage object",De="must be a Card object",Pi=500,Mi="logCustomEvent",Ft="setCustomUserAttribute",ft="Braze must be initialized before calling methods.",$i=30,Fi=30,Gi=72e5,qi=15,xe=1,pe="data-update-subscription-id",Be="Banners are disabled. Make sure you have at least one campaign and relau
1nch the app.";class V{constructor(){this.Mi={}}Dt(t){if(typeof t!="function")return null;const e=Rt.ce();return this.Mi[e]=t,e}removeSubscription(t){delete this.Mi[t]}removeAllSubscriptions(){this.Mi={}}ic(){return Object.keys(this.Mi).length}X(t){const e=[];for(const i in this.Mi){const n=this.Mi[i];e.push(n(t))}return e}}class g{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x){this.id=t,this.viewed=e,this.title=i,this.imageUrl=n,this.description=a,this.updated=o,this.expiresAt=r,this.url=l,this.linkText=u,this.aspectRatio=d,this.extras=p,this.pinned=f,this.dismissible=v,this.clicked=y,this.language=w,this.altImageText=x,this.id=t,this.viewed=e||!1,this.title=i||"",this.imageUrl=n,this.description=a||"",this.updated=o||null,this.expiresAt=r||null,this.url=l,this.linkText=u,d==null?this.aspectRatio=null:(d=parseFloat(d.toString()),this.aspectRatio=isNaN(d)?null:d),this.extras=p||{},this.pinned=f||!1,this.dismissible=v||!1,this.dismissed=!1,this.clicked=y||!1,this.isControl=!1,this.language=w||null,this.altImageText=x||null,this.test=!1,this.ti=null,this.ii=null,this.si=null}subscribeToClickedEvent(t){return this.hi().Dt(t)}subscribeToDismissedEvent(t){return this.li().Dt(t)}removeSubscription(t){this.hi().removeSubscription(t),this.li().removeSubscription(t)}removeAllSubscriptions(){this.hi().removeAllSubscriptions(),this.li().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;typeof this.logCardDismissal=="function"&&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)},g.ni))},Pi))}hi(){return this.ti==null&&(this.ti=new V),this.ti}li(){return this.ii==null&&(this.ii=new V),this.ii}Yt(){const t=new Date().valueOf();return!(this.si!=null&&t-this.si<g.ei)&&(this.si=t,this.viewed=!0,!0)}$t(){this.viewed=!0,this.clicked=!0,this.hi().X()}Pt(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.li().X(),!0)}ri(t){if(t==null||t[g.ui.os]!==this.id)return!0;if(t[g.ui.Ei])return!1;if(t[g.ui.us]!=null&&this.updated!=null&&parseInt(t[g.ui.us])<Zt(this.updated.valueOf()))return!0;if(t[g.ui.cs]&&!this.viewed&&(this.viewed=!0),t[g.ui.zs]&&!this.clicked&&(this.clicked=t[g.ui.zs]),t[g.ui.ns]!=null&&(this.title=t[g.ui.ns]),t[g.ui.ds]!=null&&(this.imageUrl=t[g.ui.ds]),t[g.ui.ps]!=null&&(this.description=t[g.ui.ps]),t[g.ui.us]!=null){const e=Dt(t[g.ui.us]);e!=null&&(this.updated=e)}if(t[g.ui.ls]!=null){let e;e=t[g.ui.ls]===g.Ti?null:Dt(t[g.ui.ls]),this.expiresAt=e}if(t[g.ui.URL]!=null&&(this.url=t[g.ui.URL]),t[g.ui.fs]!=null&&(this.linkText=t[g.ui.fs]),t[g.ui.xs]!=null){const e=parseFloat(t[g.ui.xs].toString());this.aspectRatio=isNaN(e)?null:e}return t[g.ui.bs]!=null&&(this.extras=t[g.ui.bs]),t[g.ui.gs]!=null&&(this.pinned=t[g.ui.gs]),t[g.ui.js]!=null&&(this.dismissible=t[g.ui.js]),t[g.ui.ks]!=null&&(this.language=t[g.ui.ks]),t[g.ui.qs]!=null&&(this.altImageText=t[g.ui.qs]),t[g.ui.vs]!=null&&(this.test=t[g.ui.vs]),!0}bt(){c.error("Must be implemented in a subclass")}}g.Ti=-1,g.ui={os:"id",cs:"v",js:"db",Ei:"r",us:"ca",gs:"p",ls:"ea",bs:"e",ss:"tp",ds:"i",ns:"tt",ps:"ds",URL:"u",fs:"dm",xs:"ar",zs:"cl",vs:"t",ks:"language",qs:"image_alt"},g.rs={es:"captioned_image",oi:"text_announcement",ai:"short_news",Ii:"banner_image",Ni:"control"},g.hs={os:"id",cs:"v",js:"db",Ai:"cr",us:"ca",gs:"p",ci:"t",ls:"ea",bs:"e",ss:"tp",ds:"i",ns:"tt",ps:"ds",URL:"u",fs:"dm",xs:"ar",zs:"cl",vs:"s",ks:"l",qs:"ia"},g.mi={Si:"ADVERTISING",Di:"ANNOUNCEMENTS",pi:"NEWS",di:"SOCIAL"},g.ni=400,g.ei=1e4;class ji extends g{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v){super(t,e,null,i,null,n,a,o,null,r,l,u,d,p,f,v),this.ae="ab-image-only",this.oe=!1,this.test=!1}bt(){const t={};return t[g.hs.ss]=g.rs.Ii,t[g.hs.os]=this.id,t[g.hs.cs]=this.viewed,t[g.hs.ds]=this.imageUrl,t[g.hs.us]=this.updated,t[g.hs.ls]=this.expiresAt,t[g.hs.URL]=this.url,t[g.hs.xs]=this.aspectRatio,t[g.hs.bs]=this.extras,t[g.hs.gs]=this.pinned,t[g.hs.js]=this.dismissible,t[g.hs.zs]=this.clicked,t[g.hs.ks]=this.language,t[g.hs.qs]=this.altImageText,t[g.hs.vs]=this.test,t}}class Hi extends g{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x){super(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x),this.ae="ab-captioned-image",this.oe=!0,this.test=!1}bt(){const t={};return t[g.hs.ss]=g.rs.es,t[g.hs.os]=this.id,t[g.hs.cs]=this.viewed,t[g.hs.ns]=this.title,t[g.hs.ds]=this.imageUrl,t[g.hs.ps]=this.description,t[g.hs.us]=this.updated,t[g.hs.ls]=this.expiresAt,t[g.hs.URL]=this.url,t[g.hs.fs]=this.linkText,t[g.hs.xs]=this.aspectRatio,t[g.hs.bs]=this.extras,t[g.hs.gs]=this.pinned,t[g.hs.js]=this.dismissible,t[g.hs.zs]=this.clicked,t[g.hs.ks]=this.language,t[g.hs.qs]=this.altImageText,t[g.hs.vs]=this.test,t}}class Xi extends g{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x){super(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x),this.ae="ab-classic-card",this.oe=!0}bt(){const t={};return t[g.hs.ss]=g.rs.ai,t[g.hs.os]=this.id,t[g.hs.cs]=this.viewed,t[g.hs.ns]=this.title,t[g.hs.ds]=this.imageUrl,t[g.hs.ps]=this.description,t[g.hs.us]=this.updated,t[g.hs.ls]=this.expiresAt,t[g.hs.URL]=this.url,t[g.hs.fs]=this.linkText,t[g.hs.xs]=this.aspectRatio,t[g.hs.bs]=this.extras,t[g.hs.gs]=this.pinned,t[g.hs.js]=this.dismissible,t[g.hs.zs]=this.clicked,t[g.hs.ks]=this.language,t[g.hs.qs]=this.altImageText,t[g.hs.vs]=this.test,t}}class be extends g{constructor(t,e,i,n,a,o){super(t,e,null,null,null,i,n,null,null,null,a,o),this.isControl
1=!0,this.ae="ab-control-card",this.oe=!1}bt(){const t={};return t[g.hs.ss]=g.rs.Ni,t[g.hs.os]=this.id,t[g.hs.cs]=this.viewed,t[g.hs.us]=this.updated,t[g.hs.ls]=this.expiresAt,t[g.hs.bs]=this.extras,t[g.hs.gs]=this.pinned,t[g.hs.vs]=this.test,t}}function ke(s){const t=s==null?void 0:s.ft(m.gt.uE);let e;return t&&(e={label:t.l,name:t.a}),e}class nt{constructor(t,e,i,n,a){this.userId=t,this.type=e,this.time=i,this.sessionId=n,this.data=a,this.userId=t,this.type=e,this.time=Li(i),this.sessionId=n,this.data=a}Tr(){var t;const e={name:this.type,time:Zt(this.time),data:this.data||{},session_id:this.sessionId};this.userId!=null&&(e.user_id=this.userId);const i=((t=b.Sr())===null||t===void 0?void 0:t.wh())||!1;if(!e.user_id&&!i){const n=ke(b.j());n&&(e.alias=n)}return e}bt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new nt(t.user_id,t.name,t.time,t.session_id,t.data)}static gE(t){return t!=null&&Yt(t)&&t.t!=null&&t.t!==""}static zn(t){return new nt(t.u,t.t,t.ts,t.s,t.d)}}const wt=s=>s instanceof Error?s.message:String(s);class yt{constructor(t,e,i){this.eu=t,t==null&&(t=Rt.ce()),!i||isNaN(i)?this.Gu=new Date().valueOf():this.Gu=i,this.eu=t,this.qu=new Date().valueOf(),this.ku=e}bt(){return`g:${encodeURIComponent(this.eu)}|e:${this.ku}|c:${this.Gu}|l:${this.qu}`}static AE(t){if(typeof t!="string")return null;const e=t.lastIndexOf("|e:"),i=t.substring(0,e),n=i.split("g:")[1];let a;return a=/[|:]/.test(n)?encodeURIComponent(n):n,t=t.replace(i,`g:${a}`)}static zn(t){let e;if(typeof t=="string")try{const i=t.split("|");if(!q(i)||i.length!==4)return null;const n=o=>o.split(":")[1],a=o=>{const r=parseInt(n(o));if(!isNaN(r))return r};e=new yt(decodeURIComponent(n(i[0])),a(i[1]),a(i[2])),e.qu=a(i[3])}catch(i){c.info(`Unable to parse cookie string ${t}, failed with error: ${wt(i)}`)}else{if(t==null||t.g==null)return null;e=new yt(t.g,t.e,t.c),e.qu=t.l}return e}}function ne(s){let t=s.length;for(let e=s.length-1;e>=0;e--){const i=s.charCodeAt(e);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&e--}return t}function Vi(s){try{s=s.replace(/-/g,"+").replace(/_/g,"/");const t=window.atob(s),e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);const i=new Uint16Array(e.buffer);return String.fromCharCode(...i)}catch(t){return c.error("Unable to decode Base64: "+t),null}}const T={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",mo:"openLink",uo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},Re={Qi:"unknownBrazeAction",Ac:"noPushPrompt"},ii=(s,t)=>s===Re.Qi?`${t} contains an unknown braze action type and will not be displayed.`:"";function ze(s){try{const t=s.match(Kt),e=t?t[0].length:null,i=e?s.substring(e):null;if(e==null||e>s.length-1||!i)return void c.error(`Did not find base64 encoded brazeAction in url to process : ${s}`);const n=Vi(i);return n?JSON.parse(n):void c.error(`Failed to decode base64 encoded brazeAction: ${i}`)}catch(t){return void c.error(`Failed to process brazeAction URL ${s} : ${wt(t)}`)}}function si(s,t){let e=!1;if(t){for(const i of t)if(e=e||s(i),e)return!0}return!1}function Ue(s){const t=T.properties.type,e=T.properties.eo;try{if(s==null)return!0;const i=s[t];return i===T.types.io?si(Ue,s[e]):!is(i)}catch{return!0}}function ni(s){if(!s||!ai(s))return!1;const t=T.properties.type,e=T.properties.eo,i=s[t];return i===T.types.io?si(ni,s[e]):i===T.types.requestPushPermission}const Ki=/^[^\x00-\x1F\x22]+$/,Ji=/[$.]/,Wi=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],Yi=new RegExp(/^.+@.+\..+$/),Kt=/^brazeActions:\/\/v\d+\//,Zi=/^[^\s]+$/;function ut(s,t,e){const i=s!=null&&typeof s=="string"&&(s===""||s.match(Ki)!=null);return i||c.error(`Cannot ${t} because ${e} "${s}
1" is invalid.`),i}function Le(s){return s!=null&&s.match(Ji)&&Wi.indexOf(s)===-1&&c.warn("Custom attribute keys cannot contain '$' or '.'"),ut(s,"set custom user attribute","the given key")}function Pe(s){const t=typeof s;return s==null||t==="number"||t==="boolean"||vt(s)||t==="string"}function Te(s,t,e){const i=e!==-1;if(i&&e>50)return c.error("Nested attributes cannot be more than 50 levels deep."),!1;const n=i?e+1:-1;if(q(s)&&q(t)){for(let a=0;a<s.length&&a<t.length;a++)if(vt(s[a])&&(t[a]=se(s[a])),!Te(s[a],t[a],n))return!1}else{if(!Yt(s))return Pe(s);for(const a of it(s)){const o=s[a];if(i&&!Le(a)||(vt(o)&&(t[a]=se(o)),!Te(o,t[a],n)))return!1}}return!0}function Qi(s,t,e,i,n){let a;return a=Yt(s)||q(s)?Te(s,t,n?1:-1):Pe(s),a||c.error(`Cannot ${e} because ${i} "${s}" is invalid.`),a}function st(s,t,e,i=!1){const n=typeof s=="string"||s===null&&i;return n||c.error(`Cannot ${t} because ${e} "${s}" is invalid.`),n}function ge(s,t,e,i,n){if(s==null&&(s={}),typeof s!="object"||q(s))return c.error(`${t} requires that ${e} be an object. Ignoring ${n}.`),[!1,null];let a,o;t===Ft?(a=76800,o="75KB"):(a=51200,o="50KB");const r=JSON.stringify(s);if(ne(r)>a)return c.error(`Could not ${i} because ${e} was greater than the max size of ${o}.`),[!1,null];let l;try{l=JSON.parse(r)}catch{return c.error(`Could not ${i} because ${e} did not contain valid JSON.`),[!1,null]}for(const u in s){if(t===Ft&&!Le(u))return[!1,null];if(!ut(u,i,`the ${n} property name`))return[!1,null];const d=s[u];if(t!==Ft&&d==null){delete s[u],delete l[u];continue}if(vt(d)&&(l[u]=se(d)),!Qi(d,l[u],i,`the ${n} property "${u}"`,t===Ft))return[!1,null]}return[!0,l]}function ts(s,t){let e=!1,i=!1;const n=()=>{c.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const a of t)if(typeof a=="string"){if(i)return n(),[!1,!1];if(!ut(a,`set custom user attribute "${s}"`,"the element in the given array"))return[!1,!1];e=!0}else{if(!Yt(a))return n(),[!1,!1];if(e)return n(),[!1,!1];if(!ge(a,Ft,"attribute value",`set custom user attribute "${s}"`,"custom user attribute"))return[!1,!1];i=!0}return[e,i]}function es(s){return typeof s=="string"&&s.toLowerCase().match(Yi)!=null}function ai(s){if(!(T.properties.type in s))return!1;switch(s[T.properties.type]){case T.types.io:if(T.properties.eo in s)return!0;break;case T.types.logCustomEvent:case T.types.setEmailNotificationSubscriptionType:case T.types.setPushNotificationSubscriptionType:case T.types.setCustomUserAttribute:case T.types.addToSubscriptionGroup:case T.types.removeFromSubscriptionGroup:case T.types.addToCustomAttributeArray:case T.types.removeFromCustomAttributeArray:case T.types.mo:case T.types.uo:if(T.properties.so in s)return!0;break;case T.types.requestPushPermission:return!0;default:return!1}return!1}function is(s){let t=!1;return Object.keys(T.types).forEach(e=>{T.types[e]!==s.toString()||(t=!0)}),t}function ss(s){return Zi.test(s)}class _{constructor(t,e){this.Cs=t,this.Cn=e,this.Cs=t,this.Cn=e}getUserId(t){const e=this.Cs.getUserId();if(typeof t!="function")return e;c.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!st(t,"add alias","the alias",!1)||t.length<=0?(c.error("addAlias requires a non-empty alias"),!1):!st(e,"add alias","the label",!1)||e.length<=0?(c.error("addAlias requires a non-empty label"),!1):this.Cn.En(t,e).tt}setFirstName(t){return!!st(t,"set first name","the firstName",!0)&&this.Cs.nu("first_name",t)}setLastName(t){return!!st(t,"set last name","the lastName",!0)&&this.Cs.nu("last_name",t)}setEmail(t){return t===null||es(t)?this.Cs.nu("email",t):(c.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return typeof t=="string"&&(t=t.toLowerCase()),!(t!==null&&!Ct(_.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.Cs.nu("gender",t)}setDateOfBirth(t,e,i){return t===null&&e===null&&i===null?this.Cs.nu("dob",null):(t=t!=null?parseInt(t.toString()):null,e=e!=null?parseInt(e.toString()):null,i=i!=null?parseInt(i.toString()):null,t==null||e==null||i==null||isNaN(t)||isNaN(e)||isNaN(i)||e>12||e<1||i>31||i<1?(c.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}-${i}`))}setCountry(t){return!!st(t,"set country","the country",!0)&&this.Cs.nu("country",t)}setHomeCity(t){return!!st(t,"set home city","the homeCity",!0)&&this.Cs.nu("home_city",t)}setLanguage(t){return!!st(t,"set language","the language",!0)&&this.Cs.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!Ct(_.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!Ct(_.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("push_subscribe",t)}setPhoneNumber(t){return!!st(t,"set phone number","the phoneNumber",!0)&&(t===null||t.match(_.Fn)?this.Cs.nu("phone",t):(c.error(`Cannot set phone number - "${t}
1" did not pass validation.`),!1))}setLastKnownLocation(t,e,i,n,a){return t==null||e==null?(c.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),i!=null&&(i=parseFloat(i.toString())),n!=null&&(n=parseFloat(n.toString())),a!=null&&(a=parseFloat(a.toString())),isNaN(t)||isNaN(e)||i!=null&&isNaN(i)||n!=null&&isNaN(n)||a!=null&&isNaN(a)?(c.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(c.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):i!=null&&i<0||a!=null&&a<0?(c.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Cn.setLastKnownLocation(this.Cs.getUserId(),t,e,n,i,a).tt)}setCustomUserAttribute(t,e,i){if(!Le(t))return!1;const n=a=>{const[o]=ge(a,Ft,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return o};if(q(e)){const[a,o]=ts(t,e);if(!a&&!o&&e.length!==0)return!1;if(a||e.length===0)return this.Cn.Ln(O.$n,t,e).tt;for(const r of e)if(!n(r))return!1}else if(Yt(e)){if(!n(e))return!1;if(i)return this.Cn.Ln(O.Bn,t,e).tt}else if(!(e!==void 0&&Pe(e))||(vt(e)&&(e=se(e)),typeof e=="string"&&!ut(e,`set custom user attribute "${t}"`,"the element in the given array")))return!1;return this.Cs.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!ut(t,"add to custom user attribute array","the given key")&&!(e!=null&&!ut(e,"add to custom user attribute array","the given value"))&&this.Cn.Ln(O.Rn,t,e).tt}removeFromCustomAttributeArray(t,e){return!!ut(t,"remove from custom user attribute array","the given key")&&!(e!=null&&!ut(e,"remove from custom user attribute array","the given value"))&&this.Cn.Ln(O.On,t,e).tt}incrementCustomUserAttribute(t,e){if(!ut(t,"increment custom user attribute","the given key"))return!1;e==null&&(e=1);const i=parseInt(e.toString());return isNaN(i)||i!==parseFloat(e.toString())?(c.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Cn.Ln(O.Gn,t,i).tt}setCustomLocationAttribute(t,e,i){return!!ut(t,"set custom location attribute","the given key")&&((e!==null||i!==null)&&(e=e!=null?parseFloat(e.toString()):null,i=i!=null?parseFloat(i.toString()):null,e==null&&i!=null||e!=null&&i==null||e!=null&&(isNaN(e)||e>90||e<-90)||i!=null&&(isNaN(i)||i>180||i<-180))?(c.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal."),!1):this.Cn.Hn(t,e,i).tt)}addToSubscriptionGroup(t){return!st(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(c.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Cn.Kn(t,_.Mn.SUBSCRIBED).tt}removeFromSubscriptionGroup(t){return!st(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(c.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Cn.Kn(t,_.Mn.UNSUBSCRIBED).tt}setLineId(t){return st(t,"set LINE user ID","the ID",!0)&&(t==null?void 0:t.length)!==0?t&&t.length>_.Yn?(c.error(`Rejected LINE user ID ${t} because it is longer than ${_.Yn} characters.`),!1):this.Cs.nu("native_line_id",t):(c.error("setLineId requires a non-empty ID"),!1)}Dn(t,e,i,n,a){this.Cs.Dn(t,e,i,n,a),this.Cn.Jn()}An(t){this.Cs.An(t)}}_.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},_.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},_.Fn=/^[0-9 .\\(\\)\\+\\-]+$/,_.Mn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},_.Qn="user_id",_.lu="custom",_.mr=997,_.Yn=33;class oi{constructor(){}ef(){}ff(){}Ha(t){}static nf(t,e){if(t&&e){if(t=t.toLowerCase(),q(e.cf)){for(let i=0;i<e.cf.length;i++)if(t.indexOf(e.cf[i].toLowerCase())!==-1)return e.identity}else if(t.indexOf(e.cf.toLowerCase())!==-1)return e.identity}}}const bt={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},Et={xg:"Android",co:"iOS",Pg:"Mac",Og:"Windows"};class Me extends oi{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}Ha(t){if(this.OS)return Promise.resolve(this.OS);const e=i=>{for(let n=0;n<t.length;n++){const a=Me.nf(i,t[n]);if(a)return this.OS=a,this.OS}return i};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.getHighEntropyValues().then(i=>i.platform?e(i.platform):navigator.platform).catch(()=>navigator.platform)}Bc(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const i of e){const n=this.Vc(bt),a=i.brand.match(n);if(a&&a.length>0){t.browser=a[0],t.version=i.version;break}}return t}Vc(t){const e=[];for(const i in t){const n=i;e.push(t[n])}return new RegExp("("+e.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class ae extends oi{constructor(){super(),this.fd=ae.Bc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}ff(){return this.fd[1]||"Unknown Version"}Ha(t){for(let e=0;e<t.length;e++){const i=t[e].string;let n=ae.nf(i,t[e]);if(n)return n===Et.Pg&&navigator.maxTouchPoints>1&&(n=Et.co),Promise.resolve(n)}return Promise.resolve(navigator.platform)}
1static Bc(t){let e,i=t.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(t.indexOf("(Web0S; Linux/SmartTV)")!==-1)return["LG Smart TV",null];if(t.indexOf("CrKey")!==-1)return["Chromecast",null];if(t.indexOf("BRAVIA")!==-1||t.indexOf("SonyCEBrowser")!==-1||t.indexOf("SonyDTV")!==-1)return["Sony Smart TV",null];if(t.indexOf("PhilipsTV")!==-1)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(i[1]===bt.rO&&(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),e!=null))return e=e.slice(1),e[0]=e[0].replace("OPR",bt.oO),e[0]=e[0].replace("EdgA",bt.eO),e[0]==="Edg"&&(e[0]=bt.eO),[e[0],e[1]];if(i[1]===bt.Bg&&(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),e!=null))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",bt.eO),[e[0],e[1]];if(i=i[2]?[i[1],i[2]]:[null,null],i[0]===bt.Bg&&(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))!=null&&i.splice(1,1,e[1]),(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))!=null&&i.splice(1,1,e[2]),i[0]===bt.oO&&(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i))!=null)return["Opera Mini",e[1]||""];if(i[0]){const n=i[0].toLowerCase();n==="crios"&&(i[0]=bt.rO),n==="tizen"&&(i[0]="Samsung Smart TV",i[1]=null),n==="samsungbrowser"&&(i[0]="Samsung Browser")}return i}}class Jt{constructor(){const t=navigator.userAgentData?Me:ae;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.ff(),this.OS=null,this.Ha().then(i=>this.OS=i);const e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||"").toLowerCase(),this.Wa=Jt.vg(this.userAgent)}bE(){return this.browser===bt.Bg}Ya(){return this.OS||null}Ha(){return this.OS?Promise.resolve(this.OS):this.Sg.Ha(Jt.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 i=0;i<e.length;i++)if(t.indexOf(e[i])!==-1)return!0;return!1}}Jt.kg=[{string:navigator.platform,cf:"Win",identity:Et.Og},{string:navigator.platform,cf:"Mac",identity:Et.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:Et.co},{string:navigator.platform,cf:"Pike v",identity:Et.co},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:Et.xg},{string:navigator.userAgent,cf:["Android"],identity:Et.xg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];const tt=new Jt,m={iu:{su:"ab.storage.userId",Qh:"ab.storage.deviceId",Nu:"ab.storage.sessionId"},gt:{ec:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",Za:"ab.storage.device",rl:"ab.storage.sdk_metadata",ol:"ab.storage.session_id_for_cached_metadata",Vn:"ab.storage.pushToken",rE:"ab.storage.cardImpressions",gu:"ab.storage.serverConfig",oE:"ab.storage.triggers",nE:"ab.storage.triggers.ts",Hu:"ab.storage.messagingSessionStart",Xs:"ab.storage.cc",Hs:"ab.storage.ccLastFullSync",Is:"ab.storage.ccLastCardUpdated",Ll:"ab.storage.globalRateLimitCurrentTokenCount",Kl:"ab.storage.dynamicRateLimitCurrentTokenCount",Kt:"ab.storage.ccClicks",Xt:"ab.storage.ccImpressions",Qt:"ab.storage.ccDismissals",aE:"ab.storage.lastDisplayedTriggerTimesById",iE:"ab.storage.lastDisplayedTriggerTime",EE:"ab.storage.triggerFireInstancesById",xh:"ab.storage.signature",lE:"ab.storage.brazeSyncRetryCount",Vs:"ab.storage.sdkVersion",Xe:"ab.storage.ff",Ge:"ab.storage.ffImpressions",Ze:"ab.storage.ff
1LastRefreshAt",Ve:"ab.storage.ff.sessionId",SE:"ab.storage.lastReqToEndpoint",_E:"ab.storage.requestAttempts",Fr:"ab.storage.deferredIam",zl:"ab.storage.lastSdkReq",uE:"ab.storage.alias",vt:"ab.storage.banners",Nt:"ab.storage.banners.impressions",yt:"ab.storage.banners.sessionId"},me:"ab.optOut"};class J{constructor(t,e){this.cE=t,this.TE=e,this.cE=t,this.TE=e}Va(t){const e=it(m.iu),i=new J.se(t);for(const n of e)i.remove(m.iu[n])}uu(t,e){let i=null;e!=null&&e instanceof yt&&(i=e.bt()),this.cE.store(t,i)}hE(t){const e=this.tu(t);e!=null&&(e.qu=new Date().valueOf(),this.uu(t,e))}tu(t){const e=this.cE.pr(t),i=(a=>{let o;try{o=JSON.parse(a)}catch{o=null}return o})(e);let n;if(i)n=yt.zn(i)||null,n&&this.uu(t,n);else{const a=yt.AE(e);n=yt.zn(a)||null,a!==e&&n&&this.uu(t,n)}return n}Ku(t){this.cE.remove(t)}Fa(){const t=it(m.iu);let e;for(const i of t)e=this.tu(m.iu[i]),e!=null&&this.uu(m.iu[i],e)}Wo(t){let e;if(t==null||t.length===0)return!1;e=q(t)?t:[t];let i=this.TE.pr(m.gt.tE);i!=null&&q(i)||(i=[]);for(let n=0;n<e.length;n++)i.push(e[n].bt());return this.TE.store(m.gt.tE,i)}Au(t){return t!=null&&this.Wo([t])}RE(){let t=this.TE.pr(m.gt.tE);this.TE.remove(m.gt.tE),t==null&&(t=[]);const e=[];let i=!1,n=null;if(q(t))for(let a=0;a<t.length;a++)nt.gE(t[a])?e.push(nt.zn(t[a])):n=a;else i=!0;if(i||n!=null){let a="Stored events could not be deserialized as Events";i&&(a+=", was "+Object.prototype.toString.call(t)+" not an array"),n!=null&&(a+=", value at index "+n+" does not look like an event"),a+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new nt(null,O.ul,new Date().valueOf(),null,{e:a}))}return e}Bt(t,e){return!!Ct(m.gt,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.TE.store(t,e)}ft(t){return!!Ct(m.gt,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.TE.pr(t)}Ut(t){return!!Ct(m.gt,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.TE.remove(t),!0)}clearData(){const t=it(m.iu),e=it(m.gt);for(let i=0;i<t.length;i++){const n=t[i];this.cE.remove(m.iu[n])}for(let i=0;i<e.length;i++){const n=e[i];this.TE.remove(m.gt[n])}}OE(t){return t||m.gt.sE}bl(t){let e=this.TE.pr(m.gt.eE);e==null&&(e={});const i=this.OE(t[_.Qn]),n=e[i];for(const a in t)a!==_.Qn&&(e[i]==null||n&&n[a]==null)&&this.mu(t[_.Qn],a,t[a])}mu(t,e,i){let n=this.TE.pr(m.gt.eE);n==null&&(n={});const a=this.OE(t);let o=n[a];if(o==null&&(o={},t!=null&&(o[_.Qn]=t)),e===_.lu){o[e]==null&&(o[e]={});for(const r in i)o[e][r]=i[r]}else o[e]=i;return n[a]=o,this.TE.store(m.gt.eE,n)}IE(){const t=this.TE.pr(m.gt.eE);this.TE.remove(m.gt.eE);const e=[];for(const i in t)t[i]!=null&&e.push(t[i]);return e}ru(t){const e=this.TE.pr(m.gt.eE);if(e!=null){const o=this.OE(null),r=e[o];r!=null&&(e[o]=void 0,this.TE.store(m.gt.eE,e),r[_.Qn]=t,this.bl(r))}const i=this.tu(m.iu.Nu);let n=null;i!=null&&(n=i.eu);const a=this.RE();if(a!=null)for(let o=0;o<a.length;o++){const r=a[o];r.userId==null&&r.sessionId==n&&(r.userId=t),this.Au(r)}}dE(){return this.TE.fE}}J.rc=class{constructor(s){this.on=s,this.on=s,this.fE=tt.bE()?3:10}mE(s){return s+"."+this.on}store(s,t){const e={v:t};try{return localStorage.setItem(this.mE(s),JSON.stringify(e)),!0}catch(i){return c.info("Storage failure: "+wt(i)),!1}}pr(s){try{let t=null;const e=localStorage.getItem(this.mE(s));return e!=null&&(t=JSON.parse(e)),t==null?null:t.v}catch(t){return c.info("Storage retrieval failure: "+wt(t)),null}}remove(s){try{localStorage.removeItem(this.mE(s))}catch(t){return c.info("Storage removal failure: "+wt(t)),!1}}},J.ac=class{constructor(){this.KE={},this.YE=5242880,this.fE=3}store(s,t){const e={value:t},i=this.NE(t);return i>this.YE?(c.info("Storage failure: object is â"+i+" bytes which is greater than the max of "+this.YE),!1):(this.KE[s]=e,!0)}NE(s){const t=[],e=[s];let i=0;for(;e.length;){const n=e.pop();if(typeof n=="boolean")i+=4;else if(typeof n=="string")i+=2*n.length;else if(typeof n=="number")i+=8;else if(typeof n=="object"&&t.indexOf(n)===-1){let a,o;t.push(n);for(const r in n)o=n,a=r,e.push(o[a])}}return i}pr(s){const t=this.KE[s];return t==null?null:t.value}remove(s){this.KE[s]=null}},J.se=class{constructor(s,t){this.on=s,this.GE=t,this.on=s,this.CE=this.DE(),this.ME=576e3,this.GE=!!t}mE(s){return this.on!=null?s+"."+this.on:s}DE(){let s=0,t=document.location.hostname;const e=t.split("."),i="ab._gd";
1for(;s<e.length-1&&document.cookie.indexOf(i+"="+i)===-1;)s++,t="."+e.slice(-1-s).join("."),document.cookie=i+"="+i+";domain="+t+";";return document.cookie=i+"=;expires="+new Date(0).toUTCString()+";domain="+t+";",t}le(){const s=new Date;return s.setTime(s.getTime()+60*this.ME*1e3),s.getFullYear()}pE(){const s=de(m.iu),t=document.cookie.split(";");for(let e=0;e<t.length;e++){let i=t[e];for(;i.charAt(0)===" ";)i=i.substring(1);let n=!1;for(let a=0;a<s.length;a++)if(i.indexOf(s[a])===0){n=!0;break}if(n){const a=i.split("=")[0];a.indexOf("."+this.on)===-1&&this.vE(a)}}}store(s,t){this.pE();const e=new Date;e.setTime(e.getTime()+60*this.ME*1e3);const i="expires="+e.toUTCString(),n="domain="+this.CE;let a;a=this.GE?t:encodeURIComponent(t);const o=this.mE(s)+"="+a+";"+i+";"+n+";path=/";return o.length>=4093?(c.info("Storage failure: string is "+o.length+" chars which is too large to store as a cookie."),!1):(document.cookie=o,!0)}pr(s){const t=[],e=this.mE(s)+"=",i=document.cookie.split(";");for(let n=0;n<i.length;n++){let a=i[n];for(;a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(e)===0)try{let o;o=this.GE?a.substring(e.length,a.length):decodeURIComponent(a.substring(e.length,a.length)),t.push(o)}catch(o){return c.info("Storage retrieval failure: "+wt(o)),this.remove(s),null}}return t.length>0?t[t.length-1]:null}remove(s){this.vE(this.mE(s))}vE(s){const t=s+"=;expires="+new Date(0).toUTCString();document.cookie=t,document.cookie=t+";path=/";const e=t+";domain="+this.CE;document.cookie=e,document.cookie=e+";path=/"}},J.tc=class{constructor(s,t,e){this.on=s,this.UE=[],t&&this.UE.push(new J.se(s)),e&&this.UE.push(new J.rc(s)),this.UE.push(new J.ac)}store(s,t){let e=!0;for(let i=0;i<this.UE.length;i++)e=this.UE[i].store(s,t)&&e;return e}pr(s){for(let t=0;t<this.UE.length;t++){const e=this.UE[t].pr(s);if(e!=null)return e}return null}remove(s){new J.se(this.on).remove(s);for(let t=0;t<this.UE.length;t++)this.UE[t].remove(s)}};class ns{constructor(t,e,i){this.C=t,this.gh=e,this.ph=i,this.C=t,this.gh=e||!1,this.ph=i,this.Fh=new V,this.kh=0,this.fh=1}wh(){return this.gh}jh(){return this.C.ft(m.gt.xh)}setSdkAuthenticationSignature(t){const e=this.jh();this.C.Bt(m.gt.xh,t);const i=R.Ds.Us;new R(i,c).setItem(i.Ls.qh,this.fh,t),e!==t&&this.it()}yh(){this.C.Ut(m.gt.xh);const t=R.Ds.Us;new R(t,c).ge(t.Ls.qh,this.fh)}subscribeToSdkAuthenticationFailures(t){return this.ph.Dt(t)}Bh(t){this.ph.X(t)}Gh(){this.Fh.removeAllSubscriptions()}Hh(){this.kh+=1}Jh(){return this.kh}it(){this.kh=0}}class Qt{constructor(){}U(t){}changeUser(t=!1){}clearData(t=!1){}}class as{constructor(t){this.id=t,this.id=t}Tr(){const t={};return this.browser!=null&&(t.browser=this.browser),this.Ja!=null&&(t.browser_version=this.Ja),this.os!=null&&(t.os_version=this.os),this.resolution!=null&&(t.resolution=this.resolution),this.language!=null&&(t.locale=this.language),this.timeZone!=null&&(t.time_zone=this.timeZone),this.userAgent!=null&&(t.user_agent=this.userAgent),t}}const Nt={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};class os{constructor(t,e){this.C=t,this.Ga=e,this.C=t,e==null&&(e=de(Nt)),this.Ga=e}ve(t=!0){let e=this.C.tu(m.iu.Qh);e==null&&(e=new yt(Rt.ce()),t&&this.C.uu(m.iu.Qh,e));const i=new as(e.eu);for(let n=0;n<this.Ga.length;n++)switch(this.Ga[n]){case Nt.BROWSER:i.browser=tt.browser;break;case Nt.BROWSER_VERSION:i.Ja=tt.version;break;case Nt.OS:i.os=this.Ha();break;case Nt.RESOLUTION:i.Qa=screen.width+"x"+screen.height;break;case Nt.LANGUAGE:i.language=tt.language;break;case Nt.TIME_ZONE:i.timeZone=this.Xa(new Date);break;case Nt.USER_AGENT:i.userAgent=tt.userAgent}return i}Ha(){if(tt.Ya())return tt.Ya();const t=this.C.ft(m.gt.Za);return t&&t.os_version?t.os_version:tt.Ha()}Xa(t){let e=!1;if(typeof Intl<"u"&&typeof Intl.DateTimeFormat=="function")try{if(typeof Intl.DateTimeFormat().resolvedOptions=="function"){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;if(n!=null&&n!=="")return n}}catch(n){c.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+wt(n)),e=!0}if(e)return"";const i=t.getTimezoneOffset();return this.$a(i)}$a(t){const e=Math.trunc(t/60),i=Math.trunc(t%60);let n="GMT";return t!==0&&(n+=t<0?"+":"-",n+=("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(i)).slice(-2)),n}}
1const Lt={dl:"invalid_api_key",fl:"blacklisted",ml:"no_device_identifier",cl:"invalid_json_response",hl:"empty_response",__:"sdk_auth_error"},S={O:{gl:"data",vi:"content_cards/sync",Le:"feature_flags/sync",Mr:"template",K:"banners/sync"},Hl:s=>s==null?void 0:s.ft(m.gt.SE),sm:s=>s==null?void 0:s.ft(m.gt._E),nm:(s,t)=>{s==null||s.Bt(m.gt.SE,t)},rm:(s,t)=>{s==null||s.Bt(m.gt._E,t)},Tl:(s,t)=>{if(!s||!t)return-1;const e=S.Hl(s);if(e==null)return-1;const i=e[t];return i==null||isNaN(i)?-1:i},kl:(s,t)=>{let e=xe;if(!s||!t)return e;const i=S.sm(s);return i==null?e:(e=i[t],e==null||isNaN(e)?xe:e)},W:(s,t,e)=>{if(!s||!t)return;let i=S.Hl(s);i==null&&(i={}),i[t]=e,S.nm(s,i)},yl:(s,t,e)=>{if(!s||!t)return;let i=S.sm(s);i==null&&(i={}),i[t]=e,S.rm(s,i)},bi:(s,t)=>{s&&t&&S.yl(s,t,xe)},$l:(s,t)=>{if(!s||!t)return;const e=S.kl(s,t);S.yl(s,t,e+1)}},te={Y:s=>{let t,e;try{const i=()=>{c.error("This browser does not have any supported ajax options!")};let n=!1;if(window.XMLHttpRequest&&(n=!0),!n)return void i();t=new XMLHttpRequest;const a=r=>{typeof s.error=="function"&&s.error(t.status),typeof s.nt=="function"&&s.nt(!1,r)};t.onload=()=>{let r=!1;if(t.readyState!==4)return;r=t.status>=200&&t.status<300||t.status===304;const l=t.getAllResponseHeaders();if(r){if(typeof s.tt=="function"){let u;try{u=JSON.parse(t.responseText)}catch{const p={error:t.responseText===""?Lt.hl:Lt.cl,response:t.responseText};(0,s.tt)(p,l)}u&&s.tt(u,l)}typeof s.nt=="function"&&s.nt(!0,l)}else a(l)},t.onerror=()=>{a(t.getAllResponseHeaders())},t.ontimeout=()=>{a()},e=JSON.stringify(s.data),t.open("POST",s.url,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("X-Requested-With","XMLHttpRequest");const o=s.headers||[];for(const r of o)t.setRequestHeader(r[0],r[1]);t.send(e)}catch(i){c.error(`Network request error: ${wt(i)}`)}}},rs=s=>{const t={},e=s.toString().split(`\r 2`);if(!e)return t;let i,n;for(const a of e)a&&(i=a.slice(0,a.indexOf(":")).toLowerCase().trim(),n=a.slice(a.indexOf(":")+1).trim(),t[i]=n);return t};class ls{constructor(t,e,i,n,a,o,r,l,u,d,p,f){this.un=t,this.C=e,this.Na=i,this.Cs=n,this.T=a,this.B=o,this.on=r,this.Oa=l,this.Ia=u,this.Sa=d,this.appVersion=p,this.tl=f,this.el=v=>v==null?"":`${v} `,this.un=t,this.C=e,this.Na=i,this.Cs=n,this.T=a,this.B=o,this.on=r,this.Oa=l,this.Ia=u,this.Sa=d,this.appVersion=p,this.tl=f,this.il=["npm"],this.sl=[]}H(t,e=!1,i=!1){const n=this.un.ve(!i),a=n.Tr(),o=this.C.ft(m.gt.Za);Mt(o,a)||(t.device=a),t.api_key=this.on,t.time=Zt(new Date().valueOf(),!0);const r=this.C.ft(m.gt.rl)||[],l=this.C.ft(m.gt.ol)||"";this.il.length>0&&(!Mt(r,this.il)||l!==this.T.St())&&(t.sdk_metadata=this.il),t.sdk_version=this.Ia,this.Sa&&(t.sdk_flavor=this.Sa),t.app_version=this.appVersion,t.app_version_code=this.tl,t.device_id=n.id;const u=this.Cs.getUserId();if(e&&u!==null&&(t.user_id=u),!u&&!this.Na.wh()){const d=ke(this.C);d&&(t.alias=d)}return t}st(t,e,i){const n=e.auth_error,a=e.error;if(!n&&!a)return!0;if(n){let o;this.Na.Hh();const r={errorCode:n.error_code};for(const u of i)q(u)&&u[0]==="X-Braze-Auth-Signature"&&(r.signature=u[1]);t.respond_with&&t.respond_with.user_id?r.userId=t.respond_with.user_id:t.user_id&&(r.userId=t.user_id);const l=n.reason;return l?(r.reason=l,o=`due to ${l}`):o=`with error code ${n.error_code}.`,this.Na.wh()||(o+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),c.error(`SDK Authentication failed ${o}`),this.al(t.events||[],t.attributes||[]),this.Na.Bh(r),!1}if(a){let o,r=a;switch(r){case Lt.hl:return o="Received successful response with empty body.",M.ut(O.ul,{e:o}),c.info(o),!1;case Lt.cl:return o="Received successful response with invalid JSON",M.ut(O.ul,{e:o+": "+e.response}),c.info(o),!1;case Lt.dl:r=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Oa}`;break;case Lt.fl:r="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case Lt.ml:r="No device identifier. Please contact [email protected]"}c.error("Backend error: "+r)}return!1}vl(t,e,i){return!!(t&&t.length!==0||e&&e.length!==0||i)}Rl(t,e,i,n=!1){const a=[],o=y=>y||"",r=o(this.Cs.getUserId());let l=this.Ar(t);const u=[],d=[];let p,f=null;if(e.length>0){const y=[];
2for(const w of e){if(p=w.Tr(),this.Na.wh()){if(r&&!p.user_id){f||(f={}),f.events||(f.events=[]),f.events.push(p);continue}if(o(p.user_id)!==r){d.push(p);continue}}y.push(p)}y.length>0&&(l.events=y)}if(i.length>0){const y=[];for(const w of i)w&&(this.Na.wh()&&o(w.user_id)!==r?u.push(w):y.push(w));y.length>0&&(l.attributes=y)}if(this.al(d,u),l=this.H(l,!1,n),f){f=this.H(f,!1,n);const y={requestData:f,headers:this.J(f,S.O.gl)};a.push(y)}if(l&&!this.vl(l.events,l.attributes,t))return f?a:null;const v={requestData:l,headers:this.J(l,S.O.gl)};return a.push(v),a}al(t,e){if(t){const i=[];for(const n of t){const a=nt.fromJson(n);a.time=Ui(a.time),i.push(a)}this.C.Wo(i)}if(e)for(const i of e)this.C.bl(i)}et(t,e){let i="HTTP error ";t!=null&&(i+=t+" "),i+=e,c.error(i)}ql(t){return M.ut(O.Al,{n:t})}Ar(t,e){const i={};t&&(i.triggers=!0);const n=e??this.Cs.getUserId();if(n&&(i.user_id=n),!i.user_id&&!this.Na.wh()){const a=ke(this.C);a&&(i.alias=a)}return i.config={config_time:this.B.Et()},{respond_with:i}}Dl(t){const e=new Date().valueOf();let i=Gi.toString();const n=S.Tl(this.C,t);return n!==-1&&(i=(e-n).toString()),i}J(t,e,i=!1){const n=[["X-Braze-Api-Key",this.on]],a=this.Dl(e);n.push(["X-Braze-Last-Req-Ms-Ago",a]);const o=S.kl(this.C,e).toString();n.push(["X-Braze-Req-Attempt",o]);let r=!1;if(t.respond_with!=null&&t.respond_with.triggers&&(n.push(["X-Braze-TriggersRequest","true"]),r=!0),e===S.O.vi){n.push(["X-Braze-ContentCardsRequest","true"]);let l=S.kl(this.C,S.O.vi);l&&!i||(l=1,S.yl(this.C,S.O.vi,l));const u=Math.max(0,l-1);n.push(["BRAZE-SYNC-RETRY-COUNT",u.toString()]),r=!0}if(e===S.O.Le&&(n.push(["X-Braze-FeatureFlagsRequest","true"]),r=!0),r&&n.push(["X-Braze-DataRequest","true"]),this.Na.wh()){const l=this.Na.jh();l!=null&&n.push(["X-Braze-Auth-Signature",l])}return n}wl(t,e,i,n){const a=window.setTimeout(()=>{c.info(`Retrying rate limited ${this.el(n)}SDK request.`),this.V(e,i,n)},t);this.sl.push(a)}fo(){for(const t of this.sl)window.clearTimeout(t);this.sl=[]}V(t,e,i,n){if(!this.Nl(i))return c.info(`${this.el(i)}SDK request being rate limited.`),void(typeof n=="function"&&n());const a=this.Cl();if(!a.Sl)return c.info(`${this.el(i)}SDK request being rate limited. Request will be retried in ${Math.trunc(a.Bl/1e3)} seconds.`),void this.wl(a.Bl,t,e,i);this.C.Bt(m.gt.zl,new Date().valueOf());const o=t.device;o&&o.os_version instanceof Promise?o.os_version.then(r=>{t.device.os_version=r,e(a.jl)}):e(a.jl)}Ml(t){const e=t?rs(t):null;if(!e||!e["retry-after"])return null;const i=e["retry-after"];return isNaN(i)&&!isNaN(Date.parse(i))?{type:"date",value:Date.parse(i)}:isNaN(parseFloat(i.toString()))?(M.ut(O.ul,{e:"Received unexpected value for retry-after header in /sync response"+": "+i}),null):{type:"timestamp",value:1e3*parseFloat(i.toString())}}rt(t,e,i,n,a,o){if(S.kl(this.C,i)>=qi)return;let r;o=o||0;const l=this.Ml(t);a();const u=d=>{const p=window.setTimeout(()=>{e()},d);n(p),S.$l(this.C,i)};if(l&&!isNaN(l.value)){switch(l.type){case"date":r=l.value-new Date().getTime()+o,r<0&&e();break;case"timestamp":r=l.value+o}u(r)}else o?u(o):S.bi(this.C,i)}Xl(t){var e;(e=this.C)===null||e===void 0||e.Bt(m.gt.Ll,t)}El(t,e){let i=this.Fl();i==null&&(i={}),i[t]=e,this.C.Bt(m.gt.Kl,i)}Il(){var t;return(t=this.C)===null||t===void 0?void 0:t.ft(m.gt.Ll)}Fl(){var t;return(t=this.C)===null||t===void 0?void 0:t.ft(m.gt.Kl)}Pl(t,e,i,n,a=""){let o;if(a){const l=this.Fl();o=l==null||isNaN(l[a])?e:l[a]}else o=this.Il(),(o==null||isNaN(o))&&(o=e);const r=(t-n)/1e3;return o=Math.min(o+r/i,e),o}Ul(t,e){return Math.max(0,(1-t)*e*1e3)}xl(t,e=""){var i,n,a,o,r;const l={Sl:!0,jl:-1,Bl:0};if(t==null&&(t=!0),!t&&!e)return l;let u,d,p=null;if(t)p=(i=this.C)===null||i===void 0?void 0:i.ft(m.gt.zl);else{const y=S.Hl(this.C);if(y==null||y[e]==null)return l;p=y[e]}if(p==null||isNaN(p)||(t?(u=((n=this.B)===null||n===void 0?void 0:n.Ol())||-1,d=((a=this.B)===null||a===void 0?void 0:a.Gl())||-1):(u=((o=this.B)===null||o===void 0?void 0:o._l(e))||-1,d=((r=this.B)===null||r===void 0?void 0:r.Wl(e))||-1),u===-1||d===-1))return l;const f=new Date().valueOf();let v=this.Pl(f,u,d,p,e);return v<1?(l.Sl=!1,l.Bl=this.Ul(v,d),l):(v=Math.trunc(v)-1,l.jl=v,t?this.Xl(v):this.El(e,v),l)}Cl(){return this.xl(!0)}Nl(t){const e=this.xl(!1,t);return!(e&&!e.Sl)}it(){this.Na.it()}Z(){return this.Oa}addSdkMetadata(t){for(const e of t)this.il.indexOf(e)===-1&&this.il.push(e)}}const ee=(s,t)=>(s=Math.ceil(s),t=Math.floor(t),Math.floor(Math.random()*(t-s+1))+s);class _t{constructor(t=!1,e=[]){this.tt=t,this.$e=e,this.tt=t,this.$e=e}_t(t){this.tt=this.tt&&t.tt,this.$e.push(...t.$e)}}const U={bn:()=>
2"serviceWorker"in navigator&&typeof ServiceWorkerRegistration<"u"&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,mn:()=>"safari"in window&&"pushNotification"in window.safari&&typeof window.safari.pushNotification.permission=="function"&&typeof window.safari.pushNotification.requestPermission=="function",isPushSupported:()=>U.bn()||U.mn(),isPushBlocked:()=>{const s=U.isPushSupported()&&"Notification"in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission==="denied",t=U.isPushSupported()&&(!("Notification"in window)||window.Notification==null);return s||t},isPushPermissionGranted:()=>U.isPushSupported()&&"Notification"in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission==="granted",Ui:()=>U.isPushBlocked()?{Vi:!1,reason:"blocked"}:U.isPushSupported()?U.isPushPermissionGranted()?{Vi:!1,reason:"permissionGranted"}:{Vi:!0}:{Vi:!1,reason:"unsupported"},Wi:(s,t)=>s==="blocked"?`${t} containing a push prompt is not being shown because the user has already declined push permission prompt.`:s==="unsupported"?`${t} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${t} containing a push prompt is not being shown because the user has already accepted the permission prompt.`};class us{constructor(t,e,i,n,a,o,r,l,u,d){this.on=t,this.baseUrl=e,this.T=i,this.un=n,this.Cs=a,this.B=o,this.C=r,this.$u=l,this.Na=u,this.S=d,this.on=t,this.baseUrl=e,this.Tu=0,this.fE=r.dE()||0,this.Mu=null,this.T=i,this.un=n,this.Cs=a,this.B=o,this.C=r,this.Na=u,this.S=d,this.$u=l,this.Pu=new V,this.Ou=null,this.Uu=50,this._u=!1,this.Xu=!1}Qu(t,e){return!t&&!e&&this.Na.Jh()>=this.Uu}Yu(t){let e=this.T.zu();if(t.length>0){const i=this.Cs.getUserId();for(const n of t){const a=!n.userId&&!i||n.userId===i;n.type===O.Iu&&a&&(e=!0)}}return e}Zu(t=!1,e=!0,i,n,a,o=!1,r=!1){e&&this.sc();const l=this.C.RE(),u=this.C.IE();let d=!1;const p=(x,E,A=-1)=>{const L=new Date().valueOf();S.W(this.C,S.O.gl,L),A!==-1&&E.push(["X-Braze-Req-Tokens-Remaining",A.toString()]);let j=!1;te.Y({url:this.baseUrl+"/data/",data:x,headers:E,tt:D=>{x.respond_with!=null&&x.respond_with.triggers&&(this.Tu=Math.max(this.Tu-1,0)),this.S.st(x,D,E)?(this.Na.it(),this.B.fu(D),x.respond_with!=null&&x.respond_with.user_id!=this.Cs.getUserId()||(x.device!=null&&this.C.Bt(m.gt.Za,x.device),x.sdk_metadata!=null&&(this.C.Bt(m.gt.rl,x.sdk_metadata),this.C.Bt(m.gt.ol,this.T.St())),this.$u(D),S.yl(this.C,S.O.gl,1),typeof i=="function"&&i())):D.auth_error&&(j=!0)},error:()=>{j=!0,x.respond_with!=null&&x.respond_with.triggers&&(this.Tu=Math.max(this.Tu-1,0)),this.S.al(x.events,x.attributes),typeof n=="function"&&n()},nt:(D,Y)=>{typeof a=="function"&&a(!j);const $=this.S.Ml(Y);let z=0;if($)switch($.type){case"date":z=Math.max($.value-new Date().valueOf(),0);break;case"timestamp":z=$.value}if(e&&!d){if(j){S.$l(this.C,S.O.gl);let F=this.Mu;(F==null||F<1e3*this.fE)&&(F=1e3*this.fE);const N=Math.min(3e5,ee(1e3*this.fE,3*F))+z;this.hc(N)}else this.hc(Math.max(1e3*this.fE,z));d=!0}}})},f=this.Yu(l),v=t||f;if(this.Qu(o,f))return void c.info("Declining to flush data due to 50 consecutive authentication failures");if(e&&!this.S.vl(l,u,v))return this.hc(),void(typeof a=="function"&&a(!0));const y=this.S.Rl(v,l,u,r);v&&this.Tu++;let w=!1;if(y)for(const x of y)this.S.V(x.requestData,E=>p(x.requestData,x.headers,E),S.O.gl,n),w=!0;this.Na.wh()&&e&&!w?this.hc():f&&(c.info("Invoking new session subscriptions"),this.Pu.X(),this.Xu=!0)}nc(){return this.Tu>0}hc(t=1e3*this.fE){this._u||(this.sc(),this.Ou=window.setTimeout(()=>{if(document.hidden){const e="visibilitychange",i=()=>{document.hidden||(document.removeEventListener(e,i,!1),this.Zu())};document.addEventListener(e,i,!1)}else this.Zu()},t),this.Mu=t)}sc(){this.Ou!=null&&(clearTimeout(this.Ou),this.Ou=null)}initialize(){this._u=!1,this.hc()}destroy(){this.Pu.removeAllSubscriptions(),this.Na.Gh(),this.sc(),this._u=!0,this.Zu(void 0,!1,void 0,void 0,void 0,void 0,!0),this.Ou=null,this.Xu=!1}rn(t){return this.Xu?(t(),null):this.Pu.Dt(t)}openSession(){const t=this.T.St()!==this.T.Vo();t&&(this.C.hE(m.iu.Qh),this.C.hE(m.iu.su)),this.Zu(!1,void 0,()=>{this.C.Ut(m.gt.Ge)}),this.Jn(),t&&mt(()=>Promise.resolve().then(()=>rn),void 0).then(e=>{if(this._u)return;const i=e.default.ea();if(i!=null&&(U.isPushPermissionGranted()||U.isPushBlocked())){const n=()=>{i.gn()?c.info("Push token maintenance is disabled, not refreshing token for backend."):i.subscribe()},a=(l,u)=>{u&&n()},o=()=>{const l=this.C.ft(m.gt.Vn);(l==null||l)&&n()},r=R.Ds.Us;new R(r,c).jr(r.Ls.cu,a,o)}})}lc(){this.C.Ut(m.gt.Xe),this.C.Ut(m.gt.Xs),this.C.Ut(m.gt.Fr)}uc(){var t,e;this.C.Ut(m.gt.zl),this.C.Ut(m.gt.SE);const i=S.O;for(const n in i){const a=i[n];this.S.El(a,(t=this.B)===null||t===void 0?void 0:t._l(a))}this.S.Xl((e=this.B)===null||e===void 0?void 0:e.Ol())}changeUser(t,e,i){const n=this.Cs.getUserId();if(n!==t){this.T.Ju(),this.lc(),n!=null&&this.Zu(void 0,!1,void 0,void 0,void 0),this.Cs.ou(t),i?this.Na.setSdkAuthenticationSignature(i):this.Na.yh();for(let a=0;a<e.length;a++)e[a].changeUser(n==null);this.S.fo(),n!=null&&this.C.Ut(m.gt.rE),this.C.Ut(m.gt.Za),this.C.Ut(m.gt.uE),this.uc(),this.openSession(),c.info('Changed user to "'+t+'".')}else{let a="Doing nothing.";i&&this.Na.jh()!==i&&(this.Na.setSdkAuthenticationSignature(i),a="Updated SDK authentication signature"),c.info(`Current user is already ${t}. ${a}`)}}requestImmediateDataFlush(t){this.sc(),this.T.Vo(),this.Zu(void 0,void 0,void 0,()=>{c.error("Failed to flush data, request will be retried automatically.")},t,!0)}vr(t,e){this.T.Vo(),c.info("Requesting explicit trigger refresh."),this.Zu(!0,void 0,t,e)}En(t,e){const i=O.cc,n={a:t,l:e},a=M.ut(i,n);return a&&(c.info(`Logged alias ${t} with label ${e}`),this.C.Bt(m.gt.uE,n)),a}Ln(t,e,i){if(this.B.hu(e))return c.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new _t;const n={key:e,value:i},a=M.ut(t,n);if(a){const o=typeof i=="object"?JSON.stringify(i,null,2):i;c.info(`Logged custom attribute: ${e} with value: ${o}`)}return a}
2setLastKnownLocation(t,e,i,n,a,o){const r={latitude:e,longitude:i};n!=null&&(r.altitude=n),a!=null&&(r.ll_accuracy=a),o!=null&&(r.alt_accuracy=o);const l=M.ut(O.dc,r,t||void 0);return l&&c.info(`Set user last known location as ${JSON.stringify(r,null,2)}`),l}br(t,e){const i=this.T.Vo();return new nt(this.Cs.getUserId(),O.mc,t,i,{cid:e})}fc(t,e){return new R(t,e)}Jn(){const t=R.Ds.Us;this.fc(t,c).setItem(t.Ls.gl,1,{baseUrl:this.baseUrl,data:{api_key:this.on,device_id:this.un.ve().id},userId:this.Cs.getUserId(),sdkAuthEnabled:this.Na.wh()})}wr(t){for(const e of t)if(e.api_key===this.on)this.S.al(e.events,e.attributes);else{const i=R.Ds.Us;new R(i,c).setItem(i.Ls.$r,Rt.ce(),e)}}Hn(t,e,i){if(this.B.hu(t))return c.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new _t;let n,a;return e===null&&i===null?(n=O.gc,a={key:t}):(n=O.vc,a={key:t,latitude:e,longitude:i}),M.ut(n,a)}Kn(t,e){const i={group_id:t,status:e};return M.ut(O.bc,i)}}class Ht{constructor(t=0,e=[],i=[],n=[],a=null,o=null,r={enabled:!1},l={enabled:!1,refresh_rate_limit:void 0},u={enabled:!0,capacity:$i,refill_rate:Fi,endpoint_overrides:{}},d=null){this.bu=t,this.Cu=e,this.Eu=i,this.wu=n,this.Lu=a,this.pu=o,this.Ru=r,this.De=l,this.vu=u,this.banners=d,this.bu=t,this.Cu=e,this.Eu=i,this.wu=n,this.Lu=a,this.pu=o,this.Ru=r,this.De=l,this.vu=u,this.banners=d}bt(){return{s:"6.0.0",l:this.bu,e:this.Cu,a:this.Eu,p:this.wu,m:this.Lu,v:this.pu,c:this.Ru,f:this.De,grl:this.vu,b:this.banners}}static zn(t){let e=t.l;return t.s!=="6.0.0"&&(e=0),new Ht(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl,t.b)}}class cs{constructor(t){this.C=t,this.C=t,this.Vl=new V,this.Jl=new V,this.Ql=new V,this.Yl=new V,this.Zl=null,this.au=null}du(){if(this.au==null){const t=this.C.ft(m.gt.gu);this.au=t!=null?Ht.zn(t):new Ht}return this.au}Et(){return this.du().bu}fu(t){var e,i;if(t!=null&&t.config!=null){const n=t.config;if(n.time>this.du().bu){const a=p=>p??this.du().vu,o=new Ht(n.time,n.events_blacklist,n.attributes_blacklist,n.purchases_blacklist,n.messaging_session_timeout,n.vapid_public_key,n.content_cards,n.feature_flags,a(n.global_request_rate_limit),n.banners);let r=!1;o.pu!=null&&this._n()!==o.pu&&(r=!0);let l=!1;o.Ru.enabled!=null&&this.ji()!==o.Ru.enabled&&(l=!0);let u=!1;o.De.enabled!=null&&this.ke()!==o.De.enabled&&(u=!0);let d=!1;((e=o.banners)===null||e===void 0?void 0:e.enabled)!=null&&this.zt()!==((i=o.banners)===null||i===void 0?void 0:i.enabled)&&(d=!0),this.au=o,this.C.Bt(m.gt.gu,o.bt()),r&&this.Vl.X(),l&&this.Jl.X(),u&&this.Ql.X(),d&&this.Yl.X()}}}Tn(t){const e=this.Vl.Dt(t);return this.Zl&&this.Vl.removeSubscription(this.Zl),this.Zl=e,e}wi(t){return this.Jl.Dt(t)}Ke(t){return this.Ql.Dt(t)}A(t){return this.Yl.Dt(t)}je(t){return this.du().Cu.indexOf(t)!==-1}hu(t){return this.du().Eu.indexOf(t)!==-1}Dr(t){return this.du().wu.indexOf(t)!==-1}yu(){return this.du().Lu}_n(){return this.du().pu}ji(){return this.du().Ru.enabled||!1}Bu(){const t=this.du().vu;return!(!t||t.enabled==null)&&t.enabled}Ol(){if(!this.Bu())return-1;const t=this.du().vu;return t.capacity==null||t.capacity<10?-1:t.capacity}Gl(){if(!this.Bu())return-1;const t=this.du().vu;return t.refill_rate==null||t.refill_rate<=0?-1:t.refill_rate}Fu(t){const e=this.du().vu.endpoint_overrides;return e==null?null:e[t]}_l(t){const e=this.Fu(t);return e==null||isNaN(e.capacity)||e.capacity<=0?-1:e.capacity}Wl(t){const e=this.Fu(t);return e==null||isNaN(e.refill_rate)||e.refill_rate<=0?-1:e.refill_rate}ke(){return this.du().De.enabled&&this.Oe()==null?(M.ut(O.ul,{e:"Missing feature flag refresh_rate_limit."}),!1):this.du().De.enabled||!1}Oe(){return this.du().De.refresh_rate_limit}zt(){var t;return((t=this.du().banners)===null||t===void 0?void 0:t.enabled)||null}ne(){var t;return((t=this.du().banners)===null||t===void 0?void 0:t.max_placements)||0}}class hs{constructor(t,e,i,n){this.C=t,this.Cs=e,this.B=i,this.Su=n,this.C=t,this.Cs=e,this.B=i,this.ju=1e3,(n==null||isNaN(n))&&(n=1800),n<this.ju/1e3&&(c.info("Specified session timeout of "+n+"s is too small, using the minimum session timeout of "+this.ju/1e3+"s instead."),n=this.ju/1e3),this.Su=n}xu(t,e){return new nt(this.Cs.getUserId(),O.Du,t,e.eu,{d:Zt(t-e.Gu)})}St(){const t=this.C.tu(m.iu.Nu);return t==null?null:t.eu}zu(){const t=new Date().valueOf(),e=this.B.yu();if(e==null)return!1;const i=this.C.ft(m.gt.Hu),n=i==null||t-i>1e3*e;return n&&this.C.Bt(m.gt.Hu,t),n}Wu(t,e){return e==null||e.ku==null||!(t-e.Gu<this.ju)&&e.ku<t}Vo(){const t=new Date().valueOf(),e=t+1e3*this.Su,i=this.C.tu(m.iu.Nu);if(this.Wu(t,i)){let n="Generating session start event with time "+t;if(i!=null){let o=i.qu;o-i.Gu<this.ju&&(o=i.Gu+this.ju),this.C.Au(this.xu(o,i)),n+=" (old session ended "+o+")"}n+=". Will expire "+e.valueOf(),c.info(n);const a=new yt(Rt.ce(),e);return this.C.Au(new nt(this.Cs.getUserId(),O.Iu,t,a.eu)),this.C.uu(m.iu.Nu,a),this.C.ft(m.gt.Hu)==null&&this.C.Bt(m.gt.Hu,t),a.eu}if(i!=null)return i.qu=t,i.ku=e,this.C.uu(m.iu.Nu,i),i.eu}Ju(){const t=this.C.tu(m.iu.Nu);t!=null&&(this.C.Ku(m.iu.Nu),this.C.Au(this.xu(new Date().valueOf(),t)))}}const ri={Ba:function(s,t=!1){let e=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(m.gt.ec,"true"),localStorage.getItem(m.gt.ec)&&(localStorage.removeItem(m.gt.ec),e=!0)}catch(o){if(!(o instanceof Error&&(o.name==="QuotaExceededError"||o.name==="NS_ERROR_DOM_QUOTA_REACHED")&&localStorage.length>0))throw o;e=!0}}catch{c.info("Local Storage not supported!")}const i=ri.oc(),n=new J.tc(s,i&&!t,e);let a;return a=e?new J.rc(s):new J.ac,new J(n,a)}
2,oc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};class kt{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 kt(t.trigger_id,t.message_extras)}Yt(){return!this.Ht&&(this.Ht=!0,!0)}Ur(){return this.Ht}}function ds(s,t=!1,e=!1,i=!1){if(s==null)return!1;t=t||!1,e=e||!1;const n=s.getBoundingClientRect();return n!=null&&(n.top>=0&&n.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(n.left>=0||!i)&&(n.bottom>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(n.right<=(window.innerWidth||document.documentElement.clientWidth)||!i)}const Pt={Ic:null,Oo:ds},St={Do:"up",Eo:"down",ie:"left",de:"right"};function li(){if(Pt.Ic==null){Pt.Ic=!1;try{const s=Object.defineProperty({},"passive",{get:()=>{Pt.Ic=!0}});window.addEventListener("testPassive",()=>{},s),window.removeEventListener("testPassive",()=>{},s)}catch(s){c.error(wt(s))}}return Pt.Ic}function Gt(s,t,e=()=>{}){s.addEventListener(t,e,!!li()&&{passive:!0})}function ui(s){return Pt.Oo(s,!0,!1,!1)}function ci(s){return Pt.Oo(s,!1,!0,!1)}function Je(s){if(s.onclick){const t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),s.onclick.apply(s,[t])}}function Xt(s,t,e){let i=null,n=null;Gt(s,"touchstart",a=>{i=a.touches[0].clientX,n=a.touches[0].clientY}),Gt(s,"touchmove",a=>{if(i==null||n==null)return;const o=i-a.touches[0].clientX,r=n-a.touches[0].clientY;Math.abs(o)>Math.abs(r)&&Math.abs(o)>=25?((o>0&&t===St.ie||o<0&&t===St.de)&&e(a),i=null,n=null):Math.abs(r)>=25&&((r>0&&t===St.Do&&s.scrollTop===s.scrollHeight-s.offsetHeight||r<0&&t===St.Eo&&s.scrollTop===0)&&e(a),i=null,n=null)})}function hi(s,t,e){const i="http://www.w3.org/2000/svg",n=document.createElementNS(i,"svg");n.setAttribute("viewBox",s),n.setAttribute("xmlns",i);const a=document.createElementNS(i,"path");return a.setAttribute("d",t),e!=null&&a.setAttribute("fill",e),n.appendChild(a),n}const xt={$o:32,Fo:9,Co:13,Oh:27},di=s=>s!==null&&s.tagName==="IFRAME";class h{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z,F,N,I,dt,pt,Q,at,zt){this.message=t,this.messageAlignment=e,this.slideFrom=i,this.extras=n,this.triggerId=a,this.clickAction=o,this.uri=r,this.openTarget=l,this.dismissType=u,this.duration=d,this.icon=p,this.imageUrl=f,this.imageStyle=v,this.iconColor=y,this.iconBackgroundColor=w,this.backgroundColor=x,this.textColor=E,this.closeButtonColor=A,this.animateIn=L,this.animateOut=j,this.header=D,this.headerAlignment=Y,this.headerTextColor=$,this.frameColor=z,this.buttons=F,this.cropType=N,this.orientation=I,this.htmlId=dt,this.css=pt,this.messageExtras=Q,this.language=at,this.altImageText=zt,this.message=t,this.messageAlignment=e||h.TextAlignment.CENTER,this.duration=d||5e3,this.slideFrom=i||h.SlideFrom.BOTTOM,this.extras=n||{},this.triggerId=a,this.clickAction=o||h.ClickAction.NONE,this.uri=r,this.openTarget=l||h.OpenTarget.NONE,this.dismissType=u||h.DismissType.AUTO_DISMISS,this.icon=p,this.imageUrl=f,this.imageStyle=v||h.ImageStyle.TOP,this.iconColor=y||h.th.ih,this.iconBackgroundColor=w||h.th.sh,this.backgroundColor=x||h.th.ih,this.textColor=E||h.th.hh,this.closeButtonColor=A||h.th.eh,this.animateIn=L,this.animateIn==null&&(this.animateIn=!0),this.animateOut=j,this.animateOut==null&&(this.animateOut=!0),this.header=D,this.headerAlignment=Y||h.TextAlignment.CENTER,this.headerTextColor=$||h.th.hh,this.frameColor=z||h.th.Eh,this.buttons=F||[],this.cropType=N||h.CropType.FIT_CENTER,this.orientation=I,this.htmlId=dt,this.css=pt,this.isControl=!1,this.messageExtras=Q,this.language=at,this.altImageText=zt,this.nh=!1,this.Ht=!1,this.So=!1,this.Th=!1,this.yo=null,this.wo=null,this.ti=new V,this.oh=new V,this.zo=h.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.yo)}vo(){return!0}Po(){return this.vo()}jo(){return this.htmlId!=null&&this.htmlId.length>4}lo(){return this.jo()&&this.css!=null&&this.css.length>0}do(){if(this.jo()&&this.lo())return this.htmlId+"-css"}Yt(){return!this.Ht&&(this.Ht=!0,!0)}Ur(){return this.Ht}$t(t){return!this.So&&(this.So=!0,this.ti.X(),!0)}Pt(){return!this.Th&&(this.Th=!0,this.oh.X(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");
2if(e==null&&(e=t),this.vo()&&e.parentNode!=null){const i=e.parentNode.classList;i&&i.contains(h.rh)&&i.remove(h.rh),document.body.removeEventListener("touchmove",h.lh)}e.className=e.className.replace(h.uh,h.ah)}return this.animateOut||!1}ll(t,e){if(t==null)return;let i;this.yo=null,i=t.className.indexOf("ab-in-app-message")===-1?t.getElementsByClassName("ab-in-app-message")[0]:t;let n=!1;i&&(n=this.hide(i));const a=document.body;let o;a!=null&&(o=a.scrollTop);const r=()=>{if(t&&t.parentNode){let u=t.closest(".ab-iam-root");u==null&&(u=t),u.parentNode&&u.parentNode.removeChild(u)}const l=this.do();if(l!=null){const u=document.getElementById(l);u&&u.parentNode&&u.parentNode.removeChild(u)}a!=null&&tt.browser==="Safari"&&(a.scrollTop=o),e?e():this.Pt()};n?setTimeout(r,h.cr):r(),this.wo&&this.wo.focus()}To(){return document.createTextNode(this.message||"")}Lo(t){t.setAttribute("alt",this.altImageText||"")}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(`.${h.rh}`)&&t.cancelable&&t.preventDefault()}Ah(t){const e=t.parentNode;this.vo()&&e!=null&&this.orientation!==h.Orientation.LANDSCAPE&&(e.classList!=null&&e.classList.add(h.rh),document.body.addEventListener("touchmove",h.lh,!!li()&&{passive:!1})),t.className+=" "+h.uh}static Ih(t){if(t.keyCode===xt.Oh&&!b.ee(k.Lh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const e=document.getElementsByClassName("ab-html-message");let i=!1;for(const n of e){let a=null;di(n)&&n.contentWindow&&(a=n.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),a!=null&&(Je(a),i=!0)}if(!i){const n=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];n!=null&&Je(n)}}}_h(){this.nh||b.ee(k.Lh)||(document.addEventListener("keydown",h.Ih,!1),b.mh(()=>{document.removeEventListener("keydown",h.Ih)}),this.nh=!0)}bt(t){const e={};return t&&(e[h.hs.Vr]=this.message,e[h.hs.Wr]=this.messageAlignment,e[h.hs.Nh]=this.slideFrom,e[h.hs.bs]=this.extras,e[h.hs.Yr]=this.triggerId,e[h.hs.Zr]=this.clickAction,e[h.hs.URI]=this.uri,e[h.hs.ra]=this.openTarget,e[h.hs.sa]=this.dismissType,e[h.hs.ta]=this.duration,e[h.hs.ia]=this.icon,e[h.hs.ds]=this.imageUrl,e[h.hs.oa]=this.imageStyle,e[h.hs.pa]=this.iconColor,e[h.hs.ma]=this.iconBackgroundColor,e[h.hs.na]=this.backgroundColor,e[h.hs.ua]=this.textColor,e[h.hs.ca]=this.closeButtonColor,e[h.hs.fa]=this.animateIn,e[h.hs.da]=this.animateOut,e[h.hs.la]=this.header,e[h.hs.ga]=this.headerAlignment,e[h.hs.ja]=this.headerTextColor,e[h.hs.xa]=this.frameColor,e[h.hs.za]=this.buttons,e[h.hs.ha]=this.cropType,e[h.hs.va]=this.orientation,e[h.hs.wa]=this.htmlId,e[h.hs.CSS]=this.css,e[h.hs.ss]=t,e[h.hs.ya]=this.messageExtras,e[h.hs.LANGUAGE]=this.language,e[h.hs.qs]=this.altImageText),e}}h.th={hh:4281545523,ih:4294967295,sh:4278219733,Rh:4293914607,Sh:4283782485,Eh:3224580915,eh:4288387995},h.xo={Mh:"hd",ko:"ias",Dh:"of",Ch:"do",dh:"umt",Uh:"tf",bh:"te"},h.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},h.ClickAction={URI:"URI",NONE:"NONE"},h.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},h.OpenTarget={NONE:"NONE",BLANK:"BLANK"},h.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},h.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},h.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},h.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},h.ho={Kr:"SLIDEUP",Jr:"MODAL",Io:"MODAL_STYLED",Or:"FULL",Hr:"WEB_HTML",bo:"HTML",Jo:"HTML_FULL"},h.cr=500,h.Ph=200,h.uh="ab-show",h.ah="ab-hide",h.rh="ab-pause-scrolling",h.hs={Vr:"m",Wr:"ma",Nh:"sf",bs:"e",Yr:"ti",Zr:"ca",URI:"u",ra:"oa",sa:"dt",ta:"d",ia:"i",ds:"iu",oa:"is",pa:"ic",ma:"ibc",na:"bc",ua:"tc",ca:"cbc",fa:"ai",da:"ao",la:"h",ga:"ha",ja:"htc",xa:"fc",za:"b",ha:"ct",va:"o",wa:"hi",CSS:"css",ss:"type",Ho:"messageFields",ya:"me",LANGUAGE:"l",qs:"ia"};class ht extends h{constructor(t,e,i,n,a,o,r,l,u,d,p,f){super(t,void 0,void 0,e,i,void 0,void 0,void 0,n=n||h.DismissType.MANUAL,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o,r,void 0,void 0,void 0,l,void 0,void 0,void 0,u,d,f,void 0,void 0),this.messageFields=p,this.messageFields=p}Po(){return!1}$t(t){if(this.po===h.ho.Hr){if(this.So)return!1;this.So=!0}return this.ti.X(t),!0}
2bt(){const t=super.bt(ht.rs);return t[h.hs.Ho]=this.messageFields,t}static Xr(t){return new ht(t[h.hs.Vr],t[h.hs.bs],t[h.hs.Yr],t[h.hs.sa],t[h.hs.ta],t[h.hs.fa],t[h.hs.da],t[h.hs.xa],t[h.hs.wa],t[h.hs.CSS],t[h.hs.Ho],t[h.hs.ya])}}ht.rs=h.ho.Hr;class Bt{constructor(t,e,i,n,a,o,r){this.text=t,this.backgroundColor=e,this.textColor=i,this.borderColor=n,this.clickAction=a,this.uri=o,this.id=r,this.text=t||"",this.backgroundColor=e||h.th.sh,this.textColor=i||h.th.ih,this.borderColor=n||this.backgroundColor,this.clickAction=a||h.ClickAction.NONE,this.uri=o,r==null&&(r=Bt.Ji),this.id=r,this.So=!1,this.ti=new V}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 Bt(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}Bt.Ji=-1;class Tt extends h{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z,F,N,I,dt,pt,Q,at){l=l||h.DismissType.MANUAL,N=N||h.Orientation.PORTRAIT,super(t,e,void 0,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z,F=F||h.CropType.CENTER_CROP,N,I,dt,pt,Q,at),this.zo=h.TextAlignment.CENTER}bt(){return super.bt(Tt.rs)}static Xr(t){return new Tt(t[h.hs.Vr],t[h.hs.Wr],t[h.hs.bs],t[h.hs.Yr],t[h.hs.Zr],t[h.hs.URI],t[h.hs.ra],t[h.hs.sa],t[h.hs.ta],t[h.hs.ia],t[h.hs.ds],t[h.hs.oa],t[h.hs.pa],t[h.hs.ma],t[h.hs.na],t[h.hs.ua],t[h.hs.ca],t[h.hs.fa],t[h.hs.da],t[h.hs.la],t[h.hs.ga],t[h.hs.ja],t[h.hs.xa],bi(t[h.hs.za]),t[h.hs.ha],t[h.hs.va],t[h.hs.wa],t[h.hs.CSS],t[h.hs.ya],t[h.hs.LANGUAGE],t[h.hs.qs])}}Tt.rs=h.ho.Or;class Ot extends h{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z,F,N,I,dt,pt,Q){super(t,e,void 0,i,n,a,o,r,l=l||h.DismissType.MANUAL,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z,F=F||h.CropType.FIT_CENTER,void 0,N,I,dt,pt,Q),this.zo=h.TextAlignment.CENTER}bt(){return super.bt(Ot.rs)}static Xr(t){return new Ot(t[h.hs.Vr],t[h.hs.Wr],t[h.hs.bs],t[h.hs.Yr],t[h.hs.Zr],t[h.hs.URI],t[h.hs.ra],t[h.hs.sa],t[h.hs.ta],t[h.hs.ia],t[h.hs.ds],t[h.hs.oa],t[h.hs.pa],t[h.hs.ma],t[h.hs.na],t[h.hs.ua],t[h.hs.ca],t[h.hs.fa],t[h.hs.da],t[h.hs.la],t[h.hs.ga],t[h.hs.ja],t[h.hs.xa],bi(t[h.hs.za]),t[h.hs.ha],t[h.hs.wa],t[h.hs.CSS],t[h.hs.ya],t[h.hs.LANGUAGE],t[h.hs.qs])}}Ot.rs=h.ho.Jr;class At extends h{constructor(t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,j,D,Y,$,z){x=x||h.th.Sh,w=w||h.th.Rh,super(t,e=e||h.TextAlignment.START,i,n,a,o,r,l,u,d,p,f,void 0,v,y,w,x,E,A,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,j,D,Y,$,z),this.zo=h.TextAlignment.START}vo(){return!1}To(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}Ah(t){const e=t.getElementsByClassName("ab-in-app-message")[0];Pt.Oo(e,!0,!0)||(this.slideFrom===h.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.Ah(t)}bt(){return super.bt(At.rs)}static Xr(t){return new At(t[h.hs.Vr],t[h.hs.Wr],t[h.hs.Nh],t[h.hs.bs],t[h.hs.Yr],t[h.hs.Zr],t[h.hs.URI],t[h.hs.ra],t[h.hs.sa],t[h.hs.ta],t[h.hs.ia],t[h.hs.ds],t[h.hs.pa],t[h.hs.ma],t[h.hs.na],t[h.hs.ua],t[h.hs.ca],t[h.hs.fa],t[h.hs.da],t[h.hs.wa],t[h.hs.CSS],t[h.hs.ya],t[h.hs.LANGUAGE],t[h.hs.qs])}}At.rs=h.ho.Kr;function pi(s){if(!s)return null;if(s.is_control)return kt.fromJson(s);let t=s.type;t!=null&&(t=t.toUpperCase());const e=s.message,i=s.text_align_message,n=s.slide_from,a=s.extras,o=s.trigger_id,r=s.click_action,l=s.uri,u=s.open_target,d=s.message_close,p=s.duration,f=s.icon,v=s.image_url,y=s.image_style,w=s.icon_color,x=s.icon_bg_color,E=s.bg_color,A=s.text_color,L=s.close_btn_color,j=s.header,D=s.text_align_header,Y=s.header_text_color,$=s.frame_color,z=[];let F=s.btns;F==null&&(F=[]);for(let jt=0;jt<F.length;jt++)z.push(Bt.fromJson(F[jt]));const N=s.crop_type,I=s.orientation,dt=s.animate_in,pt=s.animate_out;let Q=s.html_id,at=s.css;Q!=null&&Q!==""&&at!=null&&at!==""||(Q=void 0,at=void 0);const zt=s.message_extras,we=s.language,ye=s.image_alt;let Ut;if(t===Ot.rs||t===h.ho.Io)Ut=new Ot(e,i,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,dt,pt,j,D,Y,$,z,N,Q,at,zt,we,ye);else if(t===Tt.rs)Ut=new Tt(e,i,a,o,r,l,u,d,p,f,v,y,w,x,E,A,L,dt,pt,j,D,Y,$,z,N,I,Q,at,zt,we,ye);else if(t===At.rs)Ut=new At(e,i,n,a,o,r,l,u,d,p,f,v,w,x,E,A,L,dt,pt,Q,at,zt,we,ye);else{if(t!==ht.rs&&t!==h.ho.bo&&t!==h.ho.Jo)return void c.error("Ignoring message with unknown type "+t);{const jt=s.message_fields;Ut=new ht(e,a,o,d,p,dt,pt,$,Q,at,jt,zt),Ut.trusted=s.trusted||!1}}return Ut.po=t,Ut}function bi(s){const t=[];for(const e of s)t.push(new Bt(e.text,e.backgroundColor,e.textColor,e.borderColor,e.clickAction,e.uri,e.id));return t}class oe{constructor(t){this.wc=t,this.wc=t}xc(t){return this.wc==null||this.wc===t[0]}static fromJson(t){return new oe(t?t.event_name:null)}bt(){return this.wc}}class B{constructor(t,e,i,n){this.yE=t,this.HE=e,this.comparator=i,this.LE=n,this.yE=t,this.HE=e,this.comparator=i,this.LE=n,this.HE===B.XE.QE&&this.comparator!==B.BE.wE&&this.comparator!==B.BE.jE&&this.comparator!==B.BE.zE&&this.comparator!==B.BE.FE&&(this.LE=Dt(this.LE))}xc(t){let e=null;switch(t!=null&&(e=t[this.yE]),this.comparator){case B.BE.kE:return e!=null&&e.valueOf()===this.LE.valueOf();case B.BE.xE:return e==null||e.valueOf()!==this.LE.valueOf();case B.BE.JE:return e!=null&&typeof e==typeof this.LE&&e>this.LE;case B.BE.wE:return this.HE===B.XE.QE?e!=null&&vt(e)&&Xe(e)<=this.LE.valueOf():e!=null&&typeof e==typeof this.LE&&e>=this.LE;case B.BE.VE:return e!=null&&typeof e==typeof this.LE&&e<this.LE;case B.BE.jE:return this.HE===B.XE.QE?e!=null&&vt(e)&&Xe(e)>=this.LE.valueOf():e!=null&&typeof e==typeof this.LE&&e<=this.LE;case B.BE.qE:return e!=null&&typeof e=="string"&&typeof e==typeof this.LE&&e.match(this.LE)!=null;case B.BE.PE:return e!=null;case B.BE.WE:return e==null;case B.BE.zE:return e!=null&&vt(e)&&Ve(e)<this.LE;case B.BE.FE:return e!=null&&vt(e)&&Ve(e)>this.LE;case B.BE.ZE:return e==null||typeof e!=typeof this.LE||typeof e!="string"||e.match(this.LE)==null}return!1}static fromJson(t){return new B(t.property_key,t.property_type,t.comparator,t.property_value)}bt(){let t=this.LE;return vt(this.LE)&&(t=Zt(t.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:t}}static zn(t){return new B(t.k,t.t,t.c,t.v)}}B.XE={$E:"boolean",tT:"number",sT:"string",QE:"date"},B.BE={kE:1,xE:2,JE:3,wE:4,VE:5,jE:6,qE:10,PE:11,WE:12,zE:15,FE:16,ZE:17};class $t{constructor(t){this.filters=t,this.filters=t}xc(t){let e=!0;for(let i=0;i<this.filters.length;i++){const n=this.filters[i];let a=!1;for(let o=0;o<n.length;o++)if(n[o].xc(t)){a=!0;break}if(!a){e=!1;break}}return e}static fromJson(t){if(t==null||!q(t))return null;const e=[];for(let i=0;i<t.length;i++){const n=[],a=t[i];for(let o=0;o<a.length;o++)n.push(B.fromJson(a[o]));e.push(n)}return new $t(e)}bt(){const t=[];for(let e=0;e<this.filters.length;e++){const i=this.filters[e],n=[];for(let a=0;a<i.length;a++)n.push(i[a].bt());t.push(n)}return t}static zn(t){const e=[];for(let i=0;i<t.length;i++){const n=[],a=t[i];for(let o=0;o<a.length;o++)n.push(B.zn(a[o]));e.push(n)}return new $t(e)}}class re{constructor(t,e){this.wc=t,this.tf=e,this.wc=t,this.tf=e}xc(t){if(this.wc==null||this.tf==null)return!1;const e=t[0],i=t[1];return e===this.wc&&this.tf.xc(i)}static fromJson(t){return new re(t?t.event_name:null,t?$t.fromJson(t.property_filters):null)}bt(){return{e:this.wc,pf:this.tf?this.tf.bt():null}}}class le{constructor(t,e){this.if=t,this.rf=e,this.if=t,this.rf=e}xc(t){if(this.if==null)return!1;const e=C.sf(t[0],this.if);if(!e)return!1;let i=this.rf==null||this.rf.length===0;if(this.rf!=null){for(let n=0;n<this.rf.length;n++)if(this.rf[n]===t[1]){i=!0;break}}return e&&i}static fromJson(t){return new le(t?t.id:null,t?t.buttons:null)}bt(){return this.if}}class ue{constructor(t){this.productId=t,this.productId=t}xc(t){return this.productId==null||t[0]===this.productId}static fromJson(t){return new ue(t?t.product_id:null)}bt(){return this.productId}}class ce{constructor(t,e){this.productId=t,this.tf=e,this.productId=t,this.tf=e}xc(t){if(this.productId==null||this.tf==null)return!1;const e=t[0],i=t[1];return e===this.productId&&this.tf.xc(i)}static fromJson(t){return new ce(t?t.product_id:null,t?$t.fromJson(t.property_filters):null)}bt(){return{id:this.productId,pf:this.tf?this.tf.bt():null}}}class he{constructor(t){this.if=t,this.if=t}xc(t){return this.if==null||C.sf(t[0],this.if)}static fromJson(t){return new he(t?t.campaign_id:null)}bt(){return this.if}}const X={OPEN:"open",Rr:"purchase",kr:"push_click",Ee:"custom_event",Qr:"iam_click",vs:"test"};class C{constructor(t,e){this.type=t,this.data=e,this.type=t,this.data=e}kc(t,e){return C._c[this.type]===t&&(this.data==null||this.data.xc(e))}static sf(t,e){let i=null;try{i=window.atob(t)}catch(n){return c.info("Failed to unencode analytics id "+t+": "+wt(n)),!1}return e===i.split("_")[0]}static fromJson(t){const e=t.type;let i=null;switch(e){case C.qr.OPEN:case C.qr.vs:break;case C.qr.Rr:i=ue.fromJson(t.data);break;case C.qr.Ec:i=ce.fromJson(t.data);break;case C.qr.kr:i=he.fromJson(t.data);break;case C.qr.Ee:i=oe.fromJson(t.data);break;case C.qr.jc:i=re.fromJson(t.data);break;case C.qr.Qr:i=le.fromJson(t.data)}return new C(e,i)}
2bt(){return{t:this.type,d:this.data?this.data.bt():null}}static zn(t){let e,i=null;switch(t.t){case C.qr.OPEN:case C.qr.vs:break;case C.qr.Rr:i=new ue(t.d);break;case C.qr.Ec:e=t.d||{},i=new ce(e.id,$t.zn(e.pf||[]));break;case C.qr.kr:i=new he(t.d);break;case C.qr.Ee:i=new oe(t.d);break;case C.qr.jc:e=t.d||{},i=new re(e.e,$t.zn(e.pf||[]));break;case C.qr.Qr:i=new le(t.d)}return new C(t.t,i)}}C.qr={OPEN:"open",Rr:"purchase",Ec:"purchase_property",kr:"push_click",Ee:"custom_event",jc:"custom_event_property",Qr:"iam_click",vs:"test"},C._c={},C._c[C.qr.OPEN]=X.OPEN,C._c[C.qr.Rr]=X.Rr,C._c[C.qr.Ec]=X.Rr,C._c[C.qr.kr]=X.kr,C._c[C.qr.Ee]=X.Ee,C._c[C.qr.jc]=X.Ee,C._c[C.qr.Qr]=X.Qr,C._c[C.qr.vs]=X.vs;class et{constructor(t,e=[],i,n,a=0,o,r,l=0,u=et.td,d,p,f){this.id=t,this.sd=e,this.startTime=i,this.endTime=n,this.priority=a,this.type=o,this.data=r,this.ed=l,this.rd=u,this.Nr=d,this.hd=p,this.od=f,this.id=t,this.sd=e||[],i===void 0&&(i=null),this.startTime=i,n===void 0&&(n=null),this.endTime=n,this.priority=a||0,this.type=o,this.ed=l||0,d==null&&(d=1e3*(this.ed+30)),this.Nr=d,this.data=r,u!=null&&(this.rd=u),this.hd=p,this.od=f||null}nd(t){return this.od==null||this.rd!==et.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,i=t==null||isNaN(e)||this.Nr==null||e<this.Nr;return i||c.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Nr}ms.`),!i}static fromJson(t){const e=t.id,i=[];for(let v=0;v<t.trigger_condition.length;v++)i.push(C.fromJson(t.trigger_condition[v]));const n=Dt(t.start_time),a=Dt(t.end_time),o=t.priority,r=t.type,l=t.delay,u=t.re_eligibility,d=t.timeout,p=t.data,f=t.min_seconds_since_last_trigger;return Ct(et.qr,r,"Could not construct Trigger from server data","Trigger.Types")?new et(e,i,n,a,o,r,p,l,u,d,f):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.Nr,ss:this.hd,ld:this.od}}static zn(t){const e=[],i=t.c||[];for(let n=0;n<i.length;n++)e.push(C.zn(i[n]));return new et(t.i,e,Vt(t.s),Vt(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}et.qr={_r:"inapp",md:"templated_iam"},et.td=-1;function $e(s,t,e){const i=document.querySelector("head"),n=`ab-${t}-css-definitions-${"6.0.0".replace(/\./g,"-")}`;if(!i)return;const a=i.ownerDocument||document;if(a.getElementById(n)==null){const o=a.createElement("style");o.innerHTML=e||"",o.id=n;const r=b.ee(k.er);r!=null&&o.setAttribute("nonce",r),i.appendChild(o)}}function gi(){if(b.ee(k.Zh))return;const s="https://use.fontawesome.com/7f85a56ba4.css";if(document.querySelector('link[rel=stylesheet][href="'+s+'"]')===null){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",s),document.getElementsByTagName("head")[0].appendChild(t)}}function ps(s){$e(s,"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
2ans-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%}
2.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
2ans-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%}}")}function bs(){ps(),gi()}function gs(s){$e(s,"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
2ans-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
2ans-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
2play:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img img{width:100%;height:100%;object-fit:cover;object-position:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.827
258621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
2ans-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
2%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}")}function mi(){gs(),gi()}function ms(s){$e(s,"banner",".ab-html-banner{width:100%;height:100%;border:none;display:block}.ab-html-control-banner{width:0;height:0;margin:0;border:none}")}function fs(){ms()}function vs(s){let t="";return s.animateIn&&(t+=" ab-animate-in"),s.animateOut&&(t+=" ab-animate-out"),s instanceof Tt?t+=" ab-effect-fullscreen":s instanceof ht?t+=" ab-effect-html":s instanceof Ot?t+=" ab-effect-modal":s instanceof At&&(t+=" ab-effect-slide"),t}function fi(s,t,e,i="ltr"){const n=document.createElement("button");n.setAttribute("aria-label",s),n.setAttribute("role","button"),n.dir=i,Gt(n,"touchstart"),n.className="ab-close-button";const a=hi("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",t);return n.appendChild(a),a.setAttribute("aria-hidden","true"),n.addEventListener("keydown",o=>{o.keyCode!==xt.$o&&o.keyCode!==xt.Co||(e(),o.stopPropagation())}),n.onclick=o=>{e(),o.stopPropagation()},n}function ws(s){return s!=null&&(s=parseInt(s.toString()),!isNaN(s)&&(4278190080&s)>>>24==0)}function gt(s,t){return s==null||(s=parseInt(s.toString()),isNaN(s))?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(16711680&(s>>>=0))>>>16,(65280&s)>>>8,255&s,((4278190080&s)>>>24)/255*t].join(",")+")")}function Ae(s){if(!b.rr())return!1;if(!(s instanceof h||s instanceof kt))return c.error(_e),!1;const t=s instanceof kt?O.Go:O.$i;return H.ea().ut(s,t).tt}function ys(s){if(!b.rr())return!1;if(!(s instanceof h))return c.error(_e),!1;const t=H.ea().ut(s,O.Fi);if(t){s.Ur()||Ae(s);for(let e=0;e<t.$e.length;e++)G.m().Ce(X.Qr,[s.triggerId],t.$e[e])}return t.tt}const It={PORTRAIT:0,LANDSCAPE:1};function xs(){return screen.width<=600}function Es(){if("orientation"in window)return Math.abs(window.orientation)===90||window.orientation===270?It.LANDSCAPE:It.PORTRAIT;const s=window;if("screen"in s){let t=s.screen.orientation||screen.mozOrientation||screen.msOrientation;return t!=null&&typeof t=="object"&&(t=t.type),t==="landscape-primary"||t==="landscape-secondary"?It.LANDSCAPE:It.PORTRAIT}return It.PORTRAIT}function Ss(s,t,e){s&&(t||e!=null&&e.metaKey?window.open(s):window.location=s)}function Cs(){return window.location.href}const qt={openUri:Ss,Uo:xs,No:Es,Ua:Cs};function vi(){if(b.rr())return b.gr()}function me(s,t,e){if(b.rr())if(Kt.test(s)){const i=ze(s);if(!i)return;const n=a=>{if(!ai(a))return void c.error(`Decoded Braze Action json is invalid: ${JSON.stringify(a,null,2)}`);const o=T.properties.type,r=T.properties.eo,l=T.properties.so,u=a[o];if(u===T.types.io){const d=a[r];for(const p of d)n(p)}else{const d=a[l];let p,f;switch(u){case T.types.logCustomEvent:mt(()=>Promise.resolve().then(()=>_i),void 0).then(({logCustomEvent:v})=>{b.ao()?(f=Array.prototype.slice.call(d),v(...f)):c.error(ft)});break;case T.types.requestPushPermission:mt(()=>Promise.resolve().then(()=>Di),void 0).then(({requestPushPermission:v})=>{b.ao()?tt.browser==="Safari"&&tt.OS===Et.co?window.navigator.standalone&&v():v():c.error(ft)});break;case T.types.setEmailNotificationSubscriptionType:case T.types.setPushNotificationSubscriptionType:case T.types.setCustomUserAttribute:case T.types.addToSubscriptionGroup:case T.types.removeFromSubscriptionGroup:case T.types.addToCustomAttributeArray:case T.types.removeFromCustomAttributeArray:p=vi(),p&&p[u](...Array.prototype.slice.call(d));break;case T.types.mo:case T.types.uo:f=Array.prototype.slice.call(d),qt.openUri(...f);break;default:c.info(`Ignoring unknown Braze Action: ${u}`)}}};n(i)}else qt.openUri(s,t,e)}function _n(s,t){me(s,t)}function wi(s){s==null&&(s="");const t=s.split("?").slice(1).join("?"),e={};if(t!=null){const i=t.split("&");for(let n=0;n<i.length;n++){const a=i[n].split("=");a[0]!==""&&(e[a[0]]=a[1])}}return e}function Ne(s){return!(!s||(s=s.toString().toLowerCase()).lastIndexOf("javascript:",0)!==0&&s.lastIndexOf("data:",0)!==0)}function Oe(s,t,e){if(!b.rr())return!1;if(!(s instanceof ht))return c.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let i=O.Fi;t!=null&&(i=O.Oi);const n=H.ea().ut(s,i,t,e);if(n.tt)for(let a=0;a<n.$e.length;a++)G.m().Ce(X.Qr,[s.triggerId,t],n.$e[a]);return n.tt}const We=(s,t,e,i)=>{const n=e.getAttribute("href"),a=e.onclick;return o=>{if(a!=null&&typeof a=="function"&&a.bind(e)(o)===!1)return;let r=wi(n).abButtonId;if(r!=null&&r!==""||(r=e.getAttribute("id")||void 0),n!=null&&n!==""&&n.indexOf("#")!==0){const l=(e.getAttribute("target")||"").toLowerCase().replace("_","")==="blank",u=i||s.openTarget===h.OpenTarget.BLANK||l,d=()=>{Oe(s,r,n),qt.openUri(n,u,o)};u?d():s.ll(t,d)}else Oe(s,r,n||void 0);return o.stopPropagation(),!1}},yi=(s,t)=>{const e={display:{},web:{}},i=function(){return function(){const w=arguments;mt(()=>Promise.resolve().then(()=>Di),void 0).then(x=>{b.ao()?x.requestPushPermission(...Array.prototype.slice.call(w)):c.error(ft)})}},n={requestImmediateDataFlush:function(){const w=arguments;mt(()=>Promise.resolve().then(()=>on),void 0).then(({requestImmediateDataFlush:x})=>{b.ao()?x(...Array.prototype.slice.call(w)):c.error(ft)})},logCustomEvent:function(){const w=arguments;mt(()=>Promise.resolve().then(()=>_i),void 0).then(({logCustomEvent:x})=>{if(!b.ao())return void c.error(ft);x(...Array.prototype.slice.call(w))})},logPurchase:function(){const w=arguments;mt(()=>Promise.resolve().then(()=>nn),void 0).then(({logPurchase:x})=>{if(!b.ao())return void c.error(ft);x(...Array.prototype.slice.call(w))})},unregisterPush:function(){const w=arguments;mt(()=>Promise.resolve().then(()=>cn),void 0).then(({unregisterPush:x})=>{b.ao()?x(...Array.prototype.slice.call(w)):c.error(ft)})},requestPushPermission:i(),changeUser:function(){const w=arguments;mt(()=>Promise.resolve().then(()=>tn),void 0).then(({changeUser:x})=>{if(!b.ao())return void c.error(ft);x(...Array.prototype.slice.call(w))})}},a=function(w){return function(){n[w](...Array.prototype.slice.call(arguments))}};for(const w of it(n))e[w]=a(w);const o=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],r=function(w){return function(){const x=vi();x&&x[w](...Array.prototype.slice.call(arguments))}},l={};for(let w=0;w<o.length;w++)l[o[w]]=r(o[w]);e.getUser=function(){return l};const u={},d=function(w){return function(){const x=arguments;typeof t!="function"?u[w](...Array.prototype.slice.call(x)):t(s,function(){u[w](...Array.prototype.slice.call(x))})}},p=e.display;for(const w of it(u))p[w]=d(w);const f={registerAppboyPushMessages:i()},v=function(w){return function(){f[w](...Array.prototype.slice.call(arguments))}},y=e.web;for(const w of it(f))y[w]=v(w);return e},Ye=(s,t,e)=>{const i=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${e}['"]\\)`,n=s.match(new RegExp(i));if(n){const a=`${n[1]}.setAttribute("nonce", "${t}")`;return`${s.slice(0,n.index+n[0].length)};${a};${s.slice(n.index+n[0].length)}`}return null},xi=(s,t,e)=>{let i=null;if(e!=null){i=document.createElement("html"),i.innerHTML=t||"";const n=i.getElementsByTagName("style");for(let o=0;o<n.length;o++)n[o].setAttribute("nonce",e);const a=i.getElementsByTagName("script");for(let o=0;o<a.length;o++){a[o].setAttribute("nonce",e),a[o].innerHTML=a[o].innerHTML.replace(/<style>/g,`<style nonce='${e}'>`);const r=Ye(a[o].innerHTML,e,"script");r&&(a[o].innerHTML=r);const l=Ye(a[o].innerHTML,e,"style");l&&(a[o].innerHTML=l)}}s.srcdoc=i?i.innerHTML:t||""};function ks(s,t,e,i,n){const a=document.createElement("iframe");
2if(a.setAttribute("title","Modal Message"),i&&(a.style.zIndex=(i+1).toString()),xi(a,s.message,n),a.onload=()=>{const o=a.contentWindow;o.focus();const r=o.document.getElementsByTagName("head")[0];if(r!=null){if(s.lo()){const f=document.createElement("style");f.innerHTML=s.css||"",f.id=s.do()||"",n!=null&&f.setAttribute("nonce",n),r.appendChild(f)}const p=o.document.createElement("base");p!=null&&(p.setAttribute("target","_parent"),r.appendChild(p))}const l=o.document.getElementsByTagName("title");l&&l.length>0&&a.setAttribute("title",l[0].textContent||"");const u=Object.assign(Object.assign({},yi(a,(p,f)=>s.ll(p,f))),{closeMessage:function(){s.ll(a)},logClick:function(){Oe(s,...arguments)}});if(o.appboyBridge=u,o.brazeBridge=u,s.po!==h.ho.bo){const p=o.document.getElementsByTagName("a");for(let v=0;v<p.length;v++)p[v].onclick=We(s,a,p[v],e);const f=o.document.getElementsByTagName("button");for(let v=0;v<f.length;v++)f[v].onclick=We(s,a,f[v],e)}const d=o.document.body;if(d!=null){s.jo()&&(d.id=s.htmlId||"");const p=document.createElement("hidden");p.onclick=u.closeMessage,p.className="ab-programmatic-close-button",d.appendChild(p)}o.dispatchEvent(new CustomEvent("ab.BridgeReady")),a.className.indexOf("ab-start-hidden")!==-1&&(a.className=a.className.replace("ab-start-hidden",""),t(a))},a.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",tt.OS===Et.co){const o=document.createElement("div");return o.className="ab-ios-scroll-wrapper",o.appendChild(a),s.yo=o,o}return s.yo=a,a}function Ts(s,t){var e;if(!b.rr())return!1;if(!(s instanceof Bt))return c.error("button must be an InAppMessageButton object"),!1;if(!(t instanceof h))return c.error(_e),!1;const i=H.ea().Hi(s,t);if(i.tt)for(let n=0;n<i.$e.length;n++)G.m().Ce(X.Qr,[t.triggerId,(e=s.id)===null||e===void 0?void 0:e.toString()],i.$e[n]);return i.tt}const Ee={Ao:s=>{const t=s.querySelectorAll(".ab-close-button, .ab-message-button");let e;for(let i=0;i<t.length;i++)e=t[i],e.tabIndex=0;if(t.length>0){const i=t[0],n=t[t.length-1];s.addEventListener("keydown",a=>{const o=document.activeElement;a.keyCode===xt.Fo&&(a.shiftKey||o!==n&&o!==s?!a.shiftKey||o!==i&&o!==s||(a.preventDefault(),n.focus()):(a.preventDefault(),i.focus()))})}},Bo:(s,t)=>{t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),s?t.setAttribute("aria-labelledby",s):t.setAttribute("aria-label","Modal Message")},qo:(s,t,e)=>{if(s.buttons&&s.buttons.length>0){const i=document.createElement("div");i.className="ab-message-buttons",t.appendChild(i);const n=t.getElementsByClassName("ab-message-text")[0];n!=null&&(n.className+=" ab-with-buttons");const a=o=>r=>(s.ll(t,()=>{Ts(o,s),o.clickAction===h.ClickAction.URI&&me(o.uri||"",e||s.openTarget===h.OpenTarget.BLANK,r)}),r.stopPropagation(),!1);for(let o=0;o<s.buttons.length;o++){const r=s.buttons[o],l=document.createElement("button");l.className="ab-message-button",l.setAttribute("type","button"),Gt(l,"touchstart");let u=r.text;r.text===""&&(u="Â "),l.appendChild(document.createTextNode(u)),s.lo()||(l.style.backgroundColor=gt(r.backgroundColor),l.style.color=gt(r.textColor),l.style.borderColor=gt(r.borderColor)),l.onclick=a(r),i.appendChild(l)}}}};function As(s,t,e,i,n,a,o=document.body,r="ltr"){if(s.wo=document.activeElement,s instanceof ht)return ks(s,t,i,n,a);const l=function(u,d,p,f,v,y=document.body,w="ltr"){let x=null;const E=document.createElement("div");E.dir=w,E.className="ab-in-app-message ab-start-hidden ab-background",v&&(E.style.zIndex=(v+1).toString()),u.vo()&&(E.className+=" ab-modal-interactions",E.setAttribute("tabindex","-1")),u.lo()||(E.style.color=gt(u.textColor),E.style.backgroundColor=gt(u.backgroundColor),ws(u.backgroundColor)&&(E.className+=" ab-no-shadow"));const A=()=>{E.className.indexOf("ab-start-hidden")!==-1&&(E.className=E.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?p(`Cannot show in-app message ${u.message} because another message is being shown.`,h.xo.ko):d(E))},L=(N=!0)=>{let I=document.querySelectorAll(".ab-iam-root");I&&I.length!==0||(I=y.querySelectorAll(".ab-iam-root")),I&&I.length>0&&(I[0].classList.remove("ab-iam-img-loading"),x&&(clearTimeout(x),x=null),N?A():c.error(`Cannot show in-app message ${u.message} because the image failed to load.`))};if(u.imageStyle===h.ImageStyle.GRAPHIC&&(E.className+=" graphic"),u.orientation===h.Orientation.LANDSCAPE&&(E.className+=" landscape"),u.buttons!=null&&u.buttons.length===0){u.clickAction!==h.ClickAction.NONE&&(E.className+=" ab-clickable");const N=I=>(u.ll(E,()=>{ys(u),u.clickAction===h.ClickAction.URI&&me(u.uri||"",f||u.openTarget===h.OpenTarget.BLANK,I)}),I.stopPropagation(),!1);E.onclick=N,E.addEventListener("keydown",I=>{if(I.keyCode===xt.Co||I.keyCode===xt.$o)return N(I)})}const j=fi("Close Message",u.lo()?void 0:gt(u.closeButtonColor),()=>{u.ll(E)},w);E.appendChild(j),v&&(j.style.zIndex=(v+2).toString());const D=document.createElement("div");D.className="ab-message-text",D.dir=w,D.setAttribute("role","article");const Y=(u.messageAlignment||u.zo).toLowerCase();D.className+=" "+Y+"-aligned";let $=!1;const z=document.createElement("div");if(z.className="ab-image-area",u.imageUrl){const N=document.createElement("img");if(N.setAttribute("src",u.imageUrl),u.Lo(N),document.querySelectorAll(".ab-iam-img-loading").length===0){$=!0;const I=document.querySelectorAll(".ab-iam-root");I&&I.length>0&&I[0].classList.add("ab-iam-img-loading"),x=window.setTimeout(()=>{L(!1)},6e4),N.onload=()=>{L()},N.onerror=()=>{L(!1)}}if(u.cropType===h.CropType.CENTER_CROP){const I=document.createElement("div");I.className="ab-center-cropped-img",I.appendChild(N),z.appendChild(I)}else z.appendChild(N);E.appendChild(z),D.className+=" ab-with-image"}else if(u.icon){z.className+=" ab-icon-area";const N=document.createElement("span");N.className="ab-icon",u.lo()||(N.style.backgroundColor=gt(u.iconBackgroun
2dColor),N.style.color=gt(u.iconColor));const I=document.createElement("i");I.className="fa",I.appendChild(document.createTextNode(u.icon)),I.setAttribute("aria-hidden","true"),N.appendChild(I),z.appendChild(N),E.appendChild(z),D.className+=" ab-with-icon"}if(Gt(D,"touchstart"),u.header&&u.header.length>0){const N=document.createElement("h1");N.className="ab-message-header",u.Mo=Rt.ce(),N.id=u.Mo;const I=(u.headerAlignment||h.TextAlignment.CENTER).toLowerCase();N.className+=" "+I+"-aligned",u.lo()||(N.style.color=gt(u.headerTextColor)),N.appendChild(document.createTextNode(u.header)),D.appendChild(N)}const F=u.To();return D.appendChild(F),E.appendChild(D),$||A(),u.yo=E,E}(s,t,e,i,n,o,r);if(s instanceof Tt||s instanceof Ot){const u=s instanceof Tt?"ab-fullscreen":"ab-modal";l.className+=` ${u} ab-centered`,Ee.qo(s,l,i),Ee.Ao(l),Ee.Bo(s.Mo,l)}else if(s instanceof At){l.className+=" ab-slideup",l.setAttribute("tabindex","0"),l.setAttribute("role","alert");const u=l.getElementsByClassName("ab-close-button")[0];if(u!=null){const f=hi("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",s.lo()?void 0:gt(s.closeButtonColor));f.setAttribute("class",`ab-chevron ${r}`),u.appendChild(f)}let d,p;Xt(l,St.ie,f=>{l.className+=" ab-swiped-left",u!=null&&u.onclick!=null&&u.onclick(f)}),Xt(l,St.de,f=>{l.className+=" ab-swiped-right",u!=null&&u.onclick!=null&&u.onclick(f)}),s.slideFrom===h.SlideFrom.TOP?(d=St.Do,p=" ab-swiped-up"):(d=St.Eo,p=" ab-swiped-down"),Xt(l,d,f=>{l.className+=p,u!=null&&u.onclick!=null&&u.onclick(f)})}return l}const Se={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"ÙÙØ³ ÙØ¯ÙÙØ§ Ø£Ù ØªØØ¯ÙØ«. ÙØ±Ø¬Ù Ø§ÙØªØÙÙ Ù
رة Ø£Ø®Ø±Ù ÙØ§ØÙاÙ",FEED_TIMEOUT_MESSAGE:"ÙØ±Ø¬Ù ØªÙØ±Ø§Ø± اÙÙ
ØØ§ÙÙØ© ÙØ§ØÙا"},cs:{NO_CARDS_MESSAGE:"V tuto chvÃli pro vás nemáme žádné aktualizace.<br/>Zkontrolujte prosÃm znovu pozdÄji.",FEED_TIMEOUT_MESSAGE:"ProsÃm zkuste to znovu pozdÄji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Prøv venligst senere.",FEED_TIMEOUT_MESSAGE:"Prøv venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verfügbar.<br/>Bitte später noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte später noch einmal versuchen."},es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compruébelo más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor inténtelo más tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualización.<br/>Vuelva a verificar más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo más 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äivityksiä ei ole saatavilla.<br/>Tarkista myöhemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yritä myöhemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise à jour disponible.<br/>Veuillez vérifier ultérieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez réessayer ultérieurement."},he:{NO_CARDS_MESSAGE:".××× ×× × ×¢×××× ××. ×××§×©× ××××§ ש×× ×קר××",FEED_TIMEOUT_MESSAGE:".×××§×©× × ×¡× ×©×× ×קר××"},hi:{NO_CARDS_MESSAGE:"हमारॠपास à¤à¥à¤ à¤
पडà¥à¤ नहà¥à¤ हà¥à¤à¥¤ à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ फिर सॠà¤à¤¾à¤à¤ à¤à¤°à¥à¤.।",FEED_TIMEOUT_MESSAGE:"à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ दà¥à¤¬à¤¾à¤°à¤¾ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤à¥¤."},id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare più tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare più tardi."},ja:{NO_CARDS_MESSAGE:"ã¢ãããã¼ãã¯ããã¾ããã<br/>å¾ã§ããä¸åº¦ç¢ºèªãã¦ãã ããã",FEED_TIMEOUT_MESSAGE:"å¾ã§ããä¸åº¦è©¦ãã¦ãã ããã"},ko:{NO_CARDS_MESSAGE:"ì
ë°ì´í¸ê° ììµëë¤. ë¤ìì ë¤ì íì¸í´ 주ììì¤.",FEED_TIMEOUT_MESSAGE:"ëì¤ì ë¤ì ìëí´ ì£¼ììì¤."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",FEED_TIMEOUT_MESSAGE:"Vennligst prøv igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>ProszÄ sprawdziÄ ponownie później.",FEED_TIMEOUT_MESSAGE:"ProszÄ spróbowaÄ ponownie później."},pt:{NO_CARDS_MESSAGE:"Não temos atualizações.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"Não temos nenhuma atualização.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"ÐÐ±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð½ÐµÐ´Ð¾ÑÑÑпнÑ.<br/>ÐожалÑйÑÑа, пÑовеÑÑÑе Ñнова позже.",FEED_TIMEOUT_MESSAGE:"ÐожалÑйÑÑа, повÑоÑиÑе попÑÑÐºÑ Ð¿Ð¾Ð·Ð¶Ðµ."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>
2Försök igen senare.",FEED_TIMEOUT_MESSAGE:"Försök igen senare."},th:{NO_CARDS_MESSAGE:"à¹à¸£à¸²à¹à¸¡à¹à¸¡à¸µà¸à¸²à¸£à¸à¸±à¸à¹à¸à¸ à¸à¸£à¸¸à¸à¸²à¸à¸£à¸§à¸à¸ªà¸à¸à¸ ายหลัà¸.",FEED_TIMEOUT_MESSAGE:"à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¹à¸«à¸¡à¹à¸ ายหลัà¸."},uk:{NO_CARDS_MESSAGE:"ÐÐ½Ð¾Ð²Ð»ÐµÐ½Ð½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпнÑ.<br/>лаÑка, пеÑевÑÑÑе Ð·Ð½Ð¾Ð²Ñ Ð¿ÑзнÑÑе.",FEED_TIMEOUT_MESSAGE:"ÐÑÐ´Ñ Ð»Ð°Ñка, ÑпÑобÑйÑе Ñе Ñаз пÑзнÑÑе."},vi:{NO_CARDS_MESSAGE:"Chúng tôi không có cáºp nháºt nà o.<br/>Vui lòng kiá»m tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui lòng thá» lại sau."},"zh-hk":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},"zh-hans":{NO_CARDS_MESSAGE:"ææ¶æ²¡ææ´æ°.<br/>请ç¨ååè¯.",FEED_TIMEOUT_MESSAGE:"请ç¨ååè¯."},"zh-hant":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},"zh-tw":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},zh:{NO_CARDS_MESSAGE:"ææ¶æ²¡ææ´æ°.<br/>请ç¨ååè¯.",FEED_TIMEOUT_MESSAGE:"请ç¨ååè¯."}};class Ns{constructor(t,e=!1){if(this.language=t,t!=null&&(t=t.toLowerCase()),t!=null&&Se[t]==null){const i=t.indexOf("-");i>0&&(t=t.substring(0,i))}if(Se[t]==null){const i="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?c.error(i):c.info(i),t="en"}this.language=t}get(t){return Se[this.language][t]}Ro(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}const ot={l:!1,aa:null,ea:()=>{if(ot.p(),!ot.aa){let s=tt.language,t=!1;b.ee(k.Zn)&&(s=b.ee(k.Zn),t=!0),ot.aa=new Ns(s,t)}return ot.aa},p:()=>{ot.l||(b.h(ot),ot.l=!0)},destroy:()=>{ot.aa=null,ot.l=!1}};function Os(s,t,e){if(!b.rr())return;if(mi(),s==null)return!1;if(s instanceof kt)return c.info("User received control for a multivariate test, logging to Braze servers."),Ae(s),!0;if(!(s instanceof h)||s.constructor===h)return!1;s._h();const i=s instanceof ht;if(i&&!s.trusted&&!b.tr())return c.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(t==null&&(t=document.body),s.vo()&&t.querySelectorAll(".ab-modal-interactions").length>0)return c.info(`Cannot show in-app message ${s.message} because another message is being shown.`),!1;if(qt.Uo()){const r=qt.No();if(r===It.PORTRAIT&&s.orientation===h.Orientation.LANDSCAPE||r===It.LANDSCAPE&&s.orientation===h.Orientation.PORTRAIT){const l=r===It.PORTRAIT?"portrait":"landscape",u=s.orientation===h.Orientation.PORTRAIT?"portrait":"landscape";return c.info(`Not showing ${u} in-app message ${s.message} because the screen is currently ${l}`),!1}}if(!b.tr()){let r=!1;if(s.buttons&&s.buttons.length>0){const l=s.buttons;for(let u=0;u<l.length;u++)if(l[u].clickAction===h.ClickAction.URI){const d=l[u].uri;r=Ne(d)}}else s.clickAction===h.ClickAction.URI&&(r=Ne(s.uri));if(r)return c.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const n=document.createElement("div");if(n.className="ab-iam-root v3",n.className+=vs(s),s.language&&!i&&(n.lang=s.language),s.jo()&&(n.id=s.htmlId),b.ee(k.Ko)&&(n.style.zIndex=(b.ee(k.Ko)+1).toString()),t.appendChild(n),s.lo()){const r=document.createElement("style");r.innerHTML=s.css,r.id=s.do(),b.ee(k.er)!=null&&r.setAttribute("nonce",b.ee(k.er)),document.getElementsByTagName("head")[0].appendChild(r)}const a=s instanceof At,o=As(s,r=>{if(s.vo()&&s.Po()){const l=document.createElement("div");if(l.className="ab-page-blocker",s.lo()||(l.style.backgroundColor=gt(s.frameColor)),b.ee(k.Ko)&&(l.style.zIndex=b.ee(k.Ko).toString()),n.appendChild(l),!b.ee(k.Lh)){const u=new Date().valueOf();l.onclick=d=>{new Date().valueOf()-u>h.Ph&&(s.ll(r),d.stopPropagation())}}n.appendChild(r),r.focus(),s.Ah(n)}else if(a){const l=document.querySelectorAll(".ab-slideup");let u=null;for(let d=l.length-1;d>=0;d--)if(l[d]!==r){u=l[d];break}if(s.slideFrom===h.SlideFrom.TOP){let d=0;u!=null&&(d=u.offsetTop+u.offsetHeight),r.style.top=Math.max(d,0)+"px"}else{let d=0;u!=null&&(d=(window.innerHeight||document.documentElement.clientHeight)-u.offsetTop),r.style.bottom=Math.max(d,0)+"px"}}else if(i&&!b.ee(k.Lh)){const l=s;di(r)&&r.contentWindow&&r.contentWindow.addEventListener("keydown",function(u){u.keyCode===xt.Oh&&l.closeMessage()})}
2Ae(s),s.dismissType===h.DismissType.AUTO_DISMISS&&setTimeout(()=>{n.contains(r)&&s.ll(r)},s.duration),typeof e=="function"&&e()},r=>{c.info(r)},b.ee(k.Qo),b.ee(k.Ko),b.ee(k.er),t,ot.ea().Ro());return(i||a)&&(n.appendChild(o),s.Ah(n)),!0}function Is(s){if(b.rr())return typeof s!="function"?null:H.ea().xi(function(t){return s(t[0]),t.slice(1)})}function Dn(){if(!b.rr())return;mi();const s=H.ea();if(s.Pi()==null){const t=Is(e=>Os(e));s.Gi(t)}return s.Pi()}function Bn(s){if(b.rr())return s instanceof kt?(c.info("Not deferring since this is a ControlMessage."),!1):s instanceof h?H.ea().en(s):(c.info("Not an instance of InAppMessage, ignoring."),!1)}function Rn(){if(b.rr())return H.ea().zr()}class _s{constructor(t,e,i,n){this.S=t,this.T=e,this.C=i,this.Cs=n,this.S=t,this.T=e,this.C=i,this.Cs=n,this.Mi=new V,b.F(this.Mi),this.ki=1e3,this.zi=6e4,this.Bi=null,this.Ri=null,this._i=null}qi(){return this.Mi}xi(t){return this.Mi.Dt(t)}Pi(){return this.Bi}Gi(t){this.Bi=t}ut(t,e,i,n){const a=new _t;let o;if(e===O.$i||t instanceof kt){if(!t.Yt())return c.info("This in-app message has already received an impression. Ignoring analytics event."),a}else if((e===O.Fi||t instanceof ht&&e===O.Oi)&&!t.$t(n))return c.info("This in-app message has already received a click. Ignoring analytics event."),a;return o=t instanceof kt?{trigger_ids:[t.triggerId]}:this.Xi(t),o==null?a:(t.messageExtras&&(o.message_extras=t.messageExtras),i!=null&&(o.bid=i),M.ut(e,o))}Hi(t,e){const i=new _t;if(!t.$t())return c.info("This in-app message button has already received a click. Ignoring analytics event."),i;const n=this.Xi(e);return n==null?i:t.id===Bt.Ji?(c.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(t.id!=null&&(n.bid=t.id),M.ut(O.Oi,n))}Ki(t){const e=t.messageFields;return e!=null&&e.is_push_primer||!1}Li(t){if(!(t instanceof h))return;const e=a=>{if(!a)return;const o=ze(a);if(Ue(o))return ii(Re.Qi,"In-App Message");if(ni(o)){const r=U.Ui();if(!r.Vi)return U.Wi(r.reason,"In-App Message")}};if(this.Ki(t)){const a=U.Ui();if(!a.Vi)return U.Wi(a.reason,"In-App Message")}const i=t.buttons||[];let n;for(const a of i)if(a.clickAction===h.ClickAction.URI&&a.uri&&Kt.test(a.uri)&&(n=e(a.uri),n))return n;return t.clickAction===h.ClickAction.URI&&t.uri&&Kt.test(t.uri)?e(t.uri):void 0}Yi(t,e){e!==this._i&&this.Zi(),this.Ri=t,this._i=e}Zi(){this.Ri!=null&&(clearTimeout(this.Ri),this.Ri=null,this._i=null)}Ir(t,e,i,n){const a=this.S;if(!a)return;this._i&&t.triggerId!==this._i&&(this.Zi(),S.bi(this.C,S.O.Mr));const o=a.Ar(!1),r=a.H(o);r.template={trigger_id:t.triggerId,trigger_event_type:e},i!=null&&(r.template.data=i.Tr());const l=a.J(r,S.O.Mr);a.V(r,(u=-1)=>{const d=this.S;if(!d)return;const p=new Date().valueOf();S.W(this.C,S.O.Mr,p),u!==-1&&l.push(["X-Braze-Req-Tokens-Remaining",u.toString()]);let f,v,y=!1;te.Y({url:`${d.Z()}/template/`,data:r,headers:l,tt:w=>{if(!d.st(r,w,l))return void(typeof t.Br=="function"&&t.Br());if(d.it(),w==null||w.templated_message==null)return;const x=w.templated_message;if(x.type!==et.qr._r)return;const E=pi(x.data);if(E==null)return;const A=this.Li(E);if(A)return c.error(A),void(typeof t.Br=="function"&&t.Br());typeof t.Er=="function"&&t.Er(E)},error:w=>{y=!0,f=w,v=`getting user personalization for message ${t.triggerId}.`},nt:(w,x)=>{if(new Date().valueOf()-t.Gr<t.Nr){let E=0;if(y){const A=Math.min(t.Nr,this.zi),L=this.ki;n==null&&(n=L),E=Math.min(A,ee(L,3*n))}d.rt(x,()=>{this.Ir(t,e,i,E)},S.O.Mr,A=>this.Yi(A,t.triggerId),()=>this.Zi(),E)}y&&d.et(f,v)}})},S.O.Mr)}Xi(t){if(t.triggerId==null)return c.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const e={};return t.triggerId!=null&&(e.trigger_ids=[t.triggerId]),e}en(t){return!!this.C&&!(!(t&&t instanceof h&&t.constructor!==h)||t instanceof kt)&&this.C.Bt(m.gt.Fr,t.bt())}zr(){if(!this.C)return null;const t=this.C.ft(m.gt.Fr);if(!t)return null;let e;switch(t.type){case h.ho.Or:e=Tt.Xr(t);break;case h.ho.Hr:case h.ho.bo:case h.ho.Jo:e=ht.Xr(t);break;case h.ho.Jr:case h.ho.Io:e=Ot.Xr(t);break;case h.ho.Kr:e=At.Xr(t)}return e&&this.Lr(),e}Lr(){this.C&&this.C.Ut(m.gt.Fr)}}const H={aa:null,l:!1,ea:()=>(H.p(),H.aa||(H.aa=new _s(b.g(),b.P(),b.j(),b.ir())),H.aa),p:()=>{H.l||(b.h(H),H.l=!0)},destroy:()=>{H.aa=null,H.l=!1}};class Fe{constructor(t,e,i,n,a){this.triggerId=t,this.Er=e,this.Br=i,this.Gr=n,this.Nr=a,this.triggerId=t,this.Er=e,this.Br=i,this.Gr=n,this.Nr=a}
2static fromJson(t,e,i,n,a){return t==null||t.trigger_id==null?null:new Fe(t.trigger_id,e,i,n,a)}}class Ds extends Qt{constructor(t,e,i,n,a){super(),this.tg=t,this.ys=e,this.C=i,this.Cn=n,this.ig=a,this.tg=t,this.ys=e,this.C=i,this.Cn=n,this.ig=a,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.C){this.hg=this.C.ft(m.gt.iE)||this.hg,this.ng=this.C.ft(m.gt.EE)||this.ng,this.og=this.C.ft(m.gt.aE)||this.og;for(let t=0;t<this.triggers.length;t++){const e=this.triggers[t];e.id&&this.og[e.id]!=null&&e.ad(this.og[e.id])}}}ag(){if(!this.C)return;this.lg=this.C.ft(m.gt.nE)||0;const t=this.C.ft(m.gt.oE)||[],e=[];for(let i=0;i<t.length;i++)e.push(et.zn(t[i]));this.triggers=e,this.fg()}gg(){const t=this,e=function(a,o,r,l,u){return function(){t.cg(a,o,r,l,u)}},i={};for(const a of this.triggers)a.id&&(i[a.id]=a);let n=!1;for(let a=0;a<this.triggers.length;a++){const o=this.triggers[a];if(o.id&&this.ng[o.id]!=null){const r=this.ng[o.id],l=[];for(let u=0;u<r.length;u++){const d=r[u],p=o.ud(d.Gr||0);if(p>0){let f,v;l.push(d),d.ug!=null&&(f=d.ug),d.dg!=null&&nt.gE(d.dg)&&(v=nt.zn(d.dg));const y=[];if(d.pg&&q(d.pg))for(let w=0;w<d.pg.length;w++){const x=i[d.pg[w]];x!=null&&y.push(x)}this.eg.push(window.setTimeout(e(o,d.Gr||0,f,v,y),p))}}this.ng[o.id].length>l.length&&(this.ng[o.id]=l,n=!0,this.ng[o.id].length===0&&delete this.ng[o.id])}}n&&this.C&&this.C.Bt(m.gt.EE,this.ng)}mg(){if(!this.C)return;const t=[];for(let e=0;e<this.triggers.length;
2e++)t.push(this.triggers[e].bt());this.lg=new Date().valueOf(),this.C.Bt(m.gt.oE,t),this.C.Bt(m.gt.nE,this.lg)}bg(){this.C&&((this.C.ft(m.gt.nE)||0)>this.lg?this.ag():this.fg())}U(t){let e=!1;if(t!=null&&t.triggers){this.ig.Lr(),this.fg();const i={},n={};this.triggers=[];for(let r=0;r<t.triggers.length;r++){const l=et.fromJson(t.triggers[r]);if(l){l.id&&this.og[l.id]!=null&&(l.ad(this.og[l.id]),i[l.id]=this.og[l.id]),l.id&&this.ng[l.id]!=null&&(n[l.id]=this.ng[l.id]);for(let u=0;u<l.sd.length;u++)if(l.sd[u].kc(X.vs,null)){e=!0;break}this.triggers.push(l)}}Mt(this.og,i)||(this.og=i,this.C&&this.C.Bt(m.gt.aE,this.og)),Mt(this.ng,n)||(this.ng=n,this.C&&this.C.Bt(m.gt.EE,this.ng)),this.mg(),e&&(c.info("Trigger with test condition found, firing test."),this.Ce(X.vs)),this.Ce(X.OPEN);const a=this.sg;let o;this.sg=[];for(let r=0;r<a.length;r++)o=Array.prototype.slice.call(a[r]),this.Ce(...o)}}cg(t,e,i,n,a){const o=p=>{this.fg();const f=new Date().valueOf();t.dd(e)||(navigator.onLine===!1&&t.type===et.qr._r&&p.imageUrl?c.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.nd(f)&&this.wg(t,f,i)?this.ys.ic()===0?c.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.ys.X([p]),this.yg(t,f)):c.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},r=()=>{this.fg();const p=a.pop();if(p!=null)if(this.Tg(p,e,i,n,a),p.dd(e)){let f=`Server aborted in-app message display, but the timeout on fallback trigger ${p.id} has already elapsed.`;a.length>0&&(f+=" Continuing to fall back."),c.info(f),r()}else{c.info(`Server aborted in-app message display. Falling back to lower priority ${p.type} trigger action ${t.id}.`);const f=1e3*p.ed-(new Date().valueOf()-e);f>0?this.eg.push(window.setTimeout(()=>{this.cg(p,e,i,n,a)},f)):this.cg(p,e,i,n,a)}};let l,u,d;switch(t.type){case et.qr._r:if(l=pi(t.data),l==null){c.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(u=this.ig.Li(l),u){c.error(u),r();break}o(l);break;case et.qr.md:if(d=Fe.fromJson(t.data,o,r,e,t.Nr||0),d==null){c.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.ig.Ir(d,i,n);break;default:c.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}Ce(t,e=null,i){if(!Ct(X,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Cn&&this.Cn.nc())return c.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();const n=new Date().valueOf(),a=n-(this.hg||0);let o=!0,r=!0;const l=[];for(let d=0;d<this.triggers.length;d++){const p=this.triggers[d],f=n+1e3*p.ed;if(p.nd(f)&&(p.startTime==null||p.startTime.valueOf()<=n)&&(p.endTime==null||p.endTime.valueOf()>=n)){let v=!1;for(let y=0;y<p.sd.length;y++)if(p.sd[y].kc(t,e)){v=!0;break}v&&(o=!1,this.wg(p,f,t)&&(r=!1,l.push(p)))}}if(o)return void c.info(`Trigger event ${t} did not match any trigger conditions.`);if(r)return void c.info(`Ignoring ${t} trigger event because a trigger was displayed ${a/1e3}s ago.`);l.sort((d,p)=>d.priority-p.priority);const u=l.pop();u!=null&&(c.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${t}.`),this.Tg(u,n,t,i,l),u.ed===0?this.cg(u,n,t,i,l):this.eg.push(window.setTimeout(()=>{this.cg(u,n,t,i,l)},1e3*u.ed)))}changeUser(t=!1){if(this.triggers=[],this.C&&this.C.Ut(m.gt.oE),!t){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.C&&(this.C.Ut(m.gt.iE),this.C.Ut(m.gt.aE),this.C.Ut(m.gt.EE))}}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,i){if(this.hg==null)return!0;if(i===X.vs)return c.info("Ignoring minimum interval between trigger because it is a test type."),!0;let n=t.hd;return n==null&&(n=this.tg),e-this.hg>=1e3*n}Tg(t,e,i,n,a){this.fg(),t.id&&(this.ng[t.id]=this.ng[t.id]||[]);const o={};let r;o.Gr=e,o.ug=i,n!=null&&(r=n.bt()),o.dg=r;const l=[];for(const u of a)u.id&&l.push(u.id);o.pg=l,t.id&&this.ng[t.id].push(o),this.C&&this.C.Bt(m.gt.EE,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(m.gt.iE,e),this.C.Bt(m.gt.aE,this.og))}}const G={l:!1,provider:null,m:()=>(G.p(),G.provider||G.rg(),G.provider),rg:()=>{if(!G.provider){const s=b.ee(k.Kh);G.provider=new Ds(s??30,H.ea().qi(),b.j(),b.nn(),H.ea()),b._(G.provider)}},p:()=>{G.l||(G.rg(),b.h(G),G.l=!0)},destroy:()=>{G.provider=null,G.l=!1}};class fe{constructor(t,e,i,n,a){this.endpoint=t,this.qn=e,this.publicKey=i,this.Vu=n,this.pu=a,this.endpoint=t||null,this.qn=e||null,this.publicKey=i||null,this.Vu=n||null,this.pu=a||null}bt(){return{e:this.endpoint,c:this.qn,p:this.publicKey,u:this.Vu,v:this.pu}}static zn(t){return new fe(t.e,Vt(t.c),t.p,t.u,t.v)}}class Bs{constructor(t,e){this.B=t,this.C=e,this.B=t,this.C=e}getUserId(){const t=this.C.tu(m.iu.su);if(t==null)return null;let e=t.eu,i=ne(e);if(i>_.mr){for(;i>_.mr;)e=e.slice(0,e.length-1),i=ne(e);t.eu=e,this.C.uu(m.iu.su,t)}return e}ou(t){const e=this.getUserId()==null;this.C.uu(m.iu.su,new yt(t)),e&&this.C.ru(t)}setCustomUserAttribute(t,e){if(this.B.hu(t))return c.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const i={};return i[t]=e,this.nu(_.lu,i,!0)}nu(t,e,i=!1,n=!1){const a=this.C.mu(this.getUserId(),t,e);let o="",r=t,l=e;return i&&(o=" custom",typeof e=="object"&&(r=Object.keys(e)[0],l=e[r],typeof l=="object"&&(l=JSON.stringify(l,null,2)))),!n&&a&&c.info(`Logged${o} attribute ${r} with value ${l}`),a}
2Dn(t,e,i,n,a){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",n,!1,!0),this.nu("custom_push_vapid_public_key",a,!1,!0);const o=R.Ds.Us,r=new R(o,c),l=new fe(t,e,i,n,a);this.C.Bt(m.gt.Vn,l.bt()),r.setItem(o.Ls.cu,o.be,!0)}An(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 e=R.Ds.Us,i=new R(e,c);this.C.Bt(m.gt.Vn,!1),i.setItem(e.Ls.cu,e.be,!1)}}}const k={_o:"allowCrawlerActivity",Yo:"baseUrl",Xo:"noCookies",Zo:"devicePropertyAllowlist",Aa:"disablePushTokenMaintenance",Wh:"enableLogging",Vh:"enableSdkAuthentication",qa:"manageServiceWorkerExternally",Kh:"minimumIntervalBetweenTriggerActionsInSeconds",$h:"sessionTimeoutInSeconds",Yh:"appVersion",Xh:"appVersionNumber",Ma:"serviceWorkerLocation",ka:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Ko:"inAppMessageZIndex",Qo:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Zh:"doNotLoadFontAwesome",Qh:"deviceId",_a:"serviceWorkerScope",Ea:"sdkFlavor"};class Rs{constructor(){this.on="",this.Ia="",this.Sa=void 0,this.Na=null,this.un=null,this.S=null,this.Cn=null,this.B=null,this.T=null,this.C=null,this.Cs=null,this.Oa="",this.isInitialized=!1,this.Ta=!1,this.Ra=new V,this.Ca=new V,this.options={},this.Pa=[],this.La=[],this.Mi=[],this.Ia="6.0.0"}Da(t){this.Ra.Dt(t)}mh(t){this.Ca.Dt(t)}initialize(t,e){if(this.ao())return c.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let i=this.ee(k.Wh);const n=wi(qt.Ua());if(n&&n.brazeLogging==="true"&&(i=!0),c.init(i),c.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),t==null||t===""||typeof t!="string")return c.error("Braze requires a valid API key to be initialized."),!1;this.on=t;let a=this.ee(k.Yo);if(a==null||a===""||typeof a!="string")return c.error("Braze requires a valid baseUrl to be initialized."),!1;/^https?:/.test(a)===!1&&(a=`https://${a}`);const o=a;if(a=document.createElement("a"),a.href=o,a.pathname==="/"&&(a=`${a}api/v3`),this.Oa=a.toString(),tt.Wa&&!this.ee(k._o))return c.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Ta=!0,!1;const r=this.ee(k.Xo)||!1;if(this.C=ri.Ba(t,r),r&&this.C.Va(t),new J.se(null,!0).pr(m.me))return c.info("Ignoring all activity due to previous opt out"),this.Ta=!0,!1;for(const f of it(this.options))de(He).indexOf(f)===-1&&c.warn(`Ignoring unknown initialization option '${f}'.`);const l=["mparticle","wordpress","tealium"];if(this.ee(k.Ea)!=null){const f=this.ee(k.Ea);l.indexOf(f)!==-1?this.Sa=f:c.error("Invalid sdk flavor passed: "+f)}let u=this.ee(He.Zo);if(u!=null)if(q(u)){const f=[];for(let v=0;v<u.length;v++)Ct(Nt,u[v],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&f.push(u[v]);u=f}else c.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),u=null;const d=this.ee(k.Qh);if(d){const f=new yt(d);this.C.uu(m.iu.Qh,f)}this.un=new os(this.C,u),this.B=new cs(this.C),this.Cs=new Bs(this.B,this.C),this.T=new hs(this.C,this.Cs,this.B,this.ee(k.$h));const p=new V;return this.Na=new ns(this.C,this.ee(k.Vh),p),this.F(p),this.S=new ls(this.un,this.C,this.Na,this.Cs,this.T,this.B,this.on,this.Oa,this.Ia,this.Sa||"",this.ee(k.Yh),this.ee(k.Xh)),this.Cn=new us(this.on,this.Oa,this.T,this.un,this.Cs,this.B,this.C,f=>{if(this.ao())for(const v of this.lr())v.U(f)},this.Na,this.S),this.Cn.initialize(),r||this.C.Fa(),c.info(`Initialized for the Braze backend at "${this.ee(k.Yo)}" with API key "${this.on}".`),G.p(),this.B.Ke(()=>{var f;this.isInitialized&&(!((f=this.B)===null||f===void 0)&&f.ke())&&mt(()=>Promise.resolve().then(()=>Qe),void 0).then(v=>{this.isInitialized&&(0,v.default)()})}),this.Cn.rn(()=>{var f;this.isInitialized&&(!((f=this.B)===null||f===void 0)&&f.ke())&&mt(()=>Promise.resolve().then(()=>Qe),void 0).then(v=>{this.isInitialized&&(0,v.default)(void 0,void 0,!0)})}),this.Ra.X(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(t){if(c.destroy(),this.ao()){this.Ca.X(),this.Ca.removeAllSubscriptions();for(const e of this.Pa)e.destroy();this.Pa=[];for(const e of this.La)e.clearData(!1);this.S&&this.S.fo(),this.La=[],this.removeAllSubscriptions(),this.Mi=[],this.Cn!=null&&this.Cn.destroy(),this.Cn=null,this.Na=null,this.un=null,this.S=null,this.B=null,this.T=null,this.Cs=null,this.options={},this.Sa=void 0,this.isInitialized=!1,this.Ta=!1,t&&(this.C=null)}}rr(){return!this.Ka()&&(!!this.ao()||(console.warn(ft),!1))}ba(){return this.on}Sr(){return this.Na}Z(){return this.Oa}ue(){return this.un}g(){return this.S}ee(t){return this.options[t]}lr(){return this.La}nn(){return this.Cn}v(){return this.B}P(){return this.T}j(){return this.C}gr(){if(this.Cs&&this.Cn)return new _(this.Cs,this.Cn)}ir(){return this.Cs}tr(){return this.ee(k.re)===!0}h(t){let e=!1;for(const i of this.Pa)i===t&&(e=!0);e||this.Pa.push(t)}_(t){let e=!1;for(const i of this.La)i.constructor===t.constructor&&(e=!0);t instanceof Qt&&!e&&this.La.push(t)}F(t){t instanceof V&&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.Ta=t}ao(){return this.isInitialized}Ka(){return this.Ta}Ws(){return this.Ia}}const b=new Rs,M={ut:(s,t,e)=>{var i,n;const a=new _t,o=b.P();if(!o)return c.info(`Not logging event with type "${s}" because the current session ID could not be found.`),a;
2const r=o.Vo();return a.$e.push(new nt(e||((i=b.ir())===null||i===void 0?void 0:i.getUserId()),s,new Date().valueOf(),r,t)),a.tt=((n=b.j())===null||n===void 0?void 0:n.Wo(a.$e))||!1,a}};class zs{constructor(t){this.C=t,this.C=t}logClick(t){const e=new _t;if(t.$t(),t.url==null||t.url==="")return c.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),e;if(t.id&&this.C){const a=this.C.ft(m.gt.Kt)||{};a[t.id]=!0,this.C.Bt(m.gt.Kt,a)}const i=this.Lt([t]);if(i==null)return e;const n=O.Mt;return M.ut(n,i)}Ot(t){const e=new _t;if(!t.Pt())return c.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),e;if(t.id&&this.C){const n=this.C.ft(m.gt.Qt)||{};n[t.id]=!0,this.C.Bt(m.gt.Qt,n)}const i=this.Lt([t]);return i==null?e:M.ut(O.Vt,i)}Wt(t){const e=new _t(!0),i=[],n=[];let a={};this.C&&(a=this.C.ft(m.gt.Xt)||{});for(const l of t)l.Yt()?(l instanceof be?n.push(l):i.push(l),l.id&&(a[l.id]=!0)):c.info(`Card ${l.id} logged an impression too recently. Ignoring analytics event.`);const o=this.Lt(i),r=this.Lt(n);if(o==null&&r==null)return e.tt=!1,e;if(this.C&&this.C.Bt(m.gt.Xt,a),o!=null){const l=O.Zt,u=M.ut(l,o);e._t(u)}if(r!=null){const l=M.ut(O.ts,r);e._t(l)}return e}Lt(t){let e,i=null;for(let n=0;n<t.length;n++)e=t[n].id,e!=null&&e!==""&&(i=i||{},i.ids=i.ids||[],i.ids.push(e));return i}}const rt={l:!1,aa:null,ea:()=>(rt.p(),rt.aa||(rt.aa=new zs(b.j())),rt.aa),p:()=>{rt.l||(b.h(rt),rt.l=!0)},destroy:()=>{rt.aa=null,rt.l=!1}};function Us(s){return!!b.rr()&&(s instanceof g?rt.ea().Ot(s).tt:(c.error("card "+De),!1))}function Ls(s){if(!b.rr())return!1;if(!q(s))return c.error("cards must be an array"),!1;for(const t of s)if(!(t instanceof g))return c.error(`Each card in cards ${De}`),!1;return rt.ea().Wt(s).tt}function Ps(s){return!!b.rr()&&(s instanceof g?rt.ea().logClick(s).tt:(c.error("card "+De),!1))}function Ei(s,t,e,i,n,a,o,r,l,u,d,p,f,v,y,w,x,E){let A;if(t===g.rs.oi||t===g.rs.ai)A=new Xi(s,e,i,n,a,o,r,l,u,d,p,f,v,y,x,E);else if(t===g.rs.es)A=new Hi(s,e,i,n,a,o,r,l,u,d,p,f,v,y,x,E);else if(t===g.rs.Ii)A=new ji(s,e,n,o,r,l,d,p,f,v,y,x,E);else{if(t!==g.rs.Ni)return c.error("Ignoring card with unknown type "+t),null;A=new be(s,e,o,r,p,f)}return w&&(A.test=w),A}function Ce(s){if(s[g.ui.Ei])return null;const t=s[g.ui.os],e=s[g.ui.ss],i=s[g.ui.cs],n=s[g.ui.ns],a=s[g.ui.ds],o=s[g.ui.ps],r=Dt(s[g.ui.us]);let l;return l=s[g.ui.ls]===g.Ti?null:Dt(s[g.ui.ls]),Ei(t,e,i,n,a,o,r,l,s[g.ui.URL],s[g.ui.fs],s[g.ui.xs],s[g.ui.bs],s[g.ui.gs],s[g.ui.js],s[g.ui.zs],s[g.ui.vs]||!1,s[g.ui.ks],s[g.ui.qs])}function Ms(s){return Ei(s[g.hs.os],s[g.hs.ss],s[g.hs.cs],s[g.hs.ns],s[g.hs.ds],s[g.hs.ps],Vt(s[g.hs.us]),Vt(s[g.hs.ls]),s[g.hs.URL],s[g.hs.fs],s[g.hs.xs],s[g.hs.bs],s[g.hs.gs],s[g.hs.js],s[g.hs.zs],s[g.hs.vs]||!1,s[g.hs.ks],s[g.hs.qs])||void 0}class $s extends Qt{constructor(t,e,i,n,a){super(),this.Cs=t,this.C=e,this.B=i,this.ws=n,this.S=a,this.Cs=t,this.C=e,this.B=i,this.ws=n,this.S=a,this.ys=new V,b.F(this.ys),this.Ss=0,this.Ts=0,this.cards=[],this.Rs();const o=R.Ds.Us;new R(o,c).As(o.Ls.Fs,r=>{this.Ns(r)}),this.Js=null,this.N=null,this.Ms=null,this.$s=null,this.Bs=10}Es(){return this.Js}Ps(t){this.Js=t}Ct(){return this.N}Tt(t){this.N=t}Rs(){if(!this.C)return;const t=this.C.ft(m.gt.Xs)||[],e=[];for(let i=0;i<t.length;i++){const n=Ms(t[i]);n!=null&&e.push(n)}this.cards=this._s(this.Gs(e,!1)),this.Ss=this.C.ft(m.gt.Hs)||this.Ss,this.Ts=this.C.ft(m.gt.Is)||this.Ts}Ks(t,e=!1,i=0,n=0){let a;if(e){a=[];for(const o of this.cards)o.test&&a.push(o)}else a=this.cards.slice();for(let o=0;o<t.length;o++){const r=t[o];let l=null;for(let u=0;u<this.cards.length;u++)if(r.id===this.cards[u].id){l=this.cards[u];break}if(e){const u=Ce(r);l!=null&&l.viewed&&u&&(u.viewed=!0),u!=null&&a.push(u)}else if(l==null){const u=Ce(r);u!=null&&a.push(u)}else if(!l.ri(r)){for(let u=0;u<a.length;u++)if(r.id===a[u].id){a.splice(u,1);break}}}this.cards=this._s(this.Gs(a,e)),this.Os(),this.Ss=i,this.Ts=n,this.C&&(this.C.Bt(m.gt.Hs,this.Ss),this.C.Bt(m.gt.Is,this.Ts))}U(t){if(this.Qs()&&t!=null&&t.cards){this.C&&this.C.Bt(m.gt.Vs,b.Ws());const e=t.full_sync;e||this.Rs(),this.Ks(t.cards,e,t.last_full_sync_at,t.last_card_updated_at),this.ys.X(this.Ys(!0))}}Zs(t){this.fi(),this.Ms=t}Ns(t){var e;if(!this.Qs())return;this.Rs();const i=this.cards.slice();let n=null;n=(e=this.Cs)===null||e===void 0?void 0:e.getUserId();for(let a=0;a<t.length;a++)if(n===t[a].userId||n==null&&t[a].userId==null){const o=t[a].card;let r=null;for(let l=0;l<this.cards.length;l++)if(o.id===this.cards[l].id){r=this.cards[l];break}if(r==null){const l=Ce(o);l!=null&&i.push(l)}else if(!r.ri(o)){for(let l=0;l<i.length;l++)if(o.id===i[l].id){i.splice(l,1);break}}}
2this.cards=this._s(this.Gs(i,!1)),this.Os(),this.ys.X(this.Ys(!0))}Gs(t,e){let i={},n={},a={};this.C&&(i=this.C.ft(m.gt.Kt)||{},n=this.C.ft(m.gt.Xt)||{},a=this.C.ft(m.gt.Qt)||{});const o={},r={},l={};for(let u=0;u<t.length;u++){const d=t[u].id;d&&(i[d]&&(t[u].clicked=!0,o[d]=!0),n[d]&&(t[u].viewed=!0,r[d]=!0),a[d]&&(t[u].dismissed=!0,l[d]=!0))}return e&&this.C&&(this.C.Bt(m.gt.Kt,o),this.C.Bt(m.gt.Xt,r),this.C.Bt(m.gt.Qt,l)),t}_s(t){const e=[],i=new Date;let n={};this.C&&(n=this.C.ft(m.gt.Qt)||{});let a=!1;for(let o=0;o<t.length;o++){const r=t[o].url;if(!this.ws&&r&&Ne(r)){c.error(`Card with url ${r} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const l=t[o].expiresAt;let u=!0;if(l!=null&&(u=l>=i),u=u&&!t[o].dismissed,u)e.push(t[o]);else{const d=t[o].id;d&&(n[d]=!0),a=!0}}return a&&this.C&&this.C.Bt(m.gt.Qt,n),e}Os(){var t;const e=[];for(let i=0;i<this.cards.length;i++)e.push(this.cards[i].bt());(t=this.C)===null||t===void 0||t.Bt(m.gt.Xs,e)}fi(){this.Ms&&(clearTimeout(this.Ms),this.Ms=null)}Ci(t,e,i=!1){var n;const a=this.S,o=this.C;if(!a||!o)return void(typeof e=="function"&&e());if(i&&(S.bi(o,S.O.vi),this.fi()),!this.Qs())return void((n=this.B)===null||n===void 0||n.wi(()=>{this.Ci(t,e,!0)}));const r=a.H({},!0);o.ft(m.gt.Vs)!==b.Ws()&&this.gi(),r.last_full_sync_at=this.Ss,r.last_card_updated_at=this.Ts;const l=a.J(r,S.O.vi,i);let u=!1;a.V(r,(d=-1)=>{if(this.C){const p=new Date().valueOf();S.W(this.C,S.O.vi,p)}d!==-1&&l.push(["X-Braze-Req-Tokens-Remaining",d.toString()]),te.Y({url:`${a.Z()}/content_cards/sync`,data:r,headers:l,tt:p=>{if(!a.st(r,p,l))return u=!0,void(typeof e=="function"&&e());a.it(),this.U(p),u=!1,typeof t=="function"&&t()},error:p=>{a.et(p,"retrieving content cards"),u=!0,typeof e=="function"&&e()},nt:(p,f)=>{let v;if(u){let y=this.$s;(y==null||y<1e3*this.Bs)&&(y=1e3*this.Bs),v=Math.min(3e5,ee(1e3*this.Bs,3*y))}a.rt(f,()=>{this.Ci(t,e,!1)},S.O.vi,y=>this.Zs(y),()=>this.fi(),v)}})},S.O.vi,e)}Ys(t){t||this.Rs();const e=this._s(this.cards);e.sort((n,a)=>n.pinned&&!a.pinned?-1:a.pinned&&!n.pinned?1:n.updated&&a.updated&&n.updated>a.updated?-1:n.updated&&a.updated&&a.updated>n.updated?1:0);let i=Math.max(this.Ts||0,this.Ss||0);return i===0&&(i=void 0),this.C&&this.C.ft(m.gt.Is)===this.Ts&&i===void 0&&(i=this.Ts),new ct(e,Dt(i))}qt(t){return this.ys.Dt(t)}gi(){this.Ss=0,this.Ts=0,this.C&&(this.C.Ut(m.gt.Hs),this.C.Ut(m.gt.Is))}changeUser(t){t||(this.cards=[],this.ys.X(new ct(this.cards.slice(),null)),this.C&&(this.C.Ut(m.gt.Xs),this.C.Ut(m.gt.Kt),this.C.Ut(m.gt.Xt),this.C.Ut(m.gt.Qt))),this.fi(),this.gi()}clearData(t){this.Ss=0,this.Ts=0,this.cards=[],this.ys.X(new ct(this.cards.slice(),null)),t&&this.C&&(this.C.Ut(m.gt.Xs),this.C.Ut(m.gt.Kt),this.C.Ut(m.gt.Xt),this.C.Ut(m.gt.Qt),this.C.Ut(m.gt.Hs),this.C.Ut(m.gt.Is)),this.fi()}Qs(){return!!this.B&&(!!this.B.ji()||(this.B.Et()!==0&&this.yi(),!1))}yi(){this.ys.X(new ct([],new Date)),this.C&&this.C.Ut(m.gt.Xs)}}const Z={l:!1,provider:null,m:()=>(Z.p(),Z.provider||(Z.provider=new $s(b.ir(),b.j(),b.v(),b.tr(),b.g()),b._(Z.provider)),Z.provider),p:()=>{Z.l||(b.h(Z),Z.l=!0)},destroy:()=>{Z.provider=null,Z.l=!1}};function Fs(s,t){if(b.rr())return Z.m().Ci(s,t,!0)}class ct{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnviewedCardCount(){let t=0;for(const e of this.cards)e.viewed||e instanceof be||t++;return t}sr(t){Ls(t)}nr(t){return Ps(t)}dr(){Fs()}ar(){return!0}}ct.ur=6e4,ct.cr=500,ct.Cr=1e4;function zn(){if(b.rr())return Z.m().Ys(!1)}function Si(s){if(s!=null){const t=s.querySelectorAll(".ab-unread-indicator")[0];t==null||t.classList.contains("read")||(t.className+=" read")}}function Gs(s){return s.getAttribute("data-ab-card-id")}function qs(s,t){t.setAttribute("alt",s.altImageText||"")}function js(s,t){const e=t.querySelectorAll(".ab-image-area");let i,n=0;e.length>0&&(n=e[0].offsetWidth);for(const a of s)if(i=a.te,i&&a.imageUrl&&typeof a.aspectRatio=="number"){const o=n/a.aspectRatio;o&&(i.style.height=`${o}px`)}}function Hs(s,t,e,i="ltr"){const n=document.createElement("div");n.dir=i,s.language&&(n.lang=s.language),n.className="ab-card ab-effect-card "+s.ae,s.id&&(n.setAttribute("data-ab-card-id",s.id),n.setAttribute("id",s.id)),n.setAttribute("role","article");let a="",o=!1;s.url&&s.url!==""&&(a=s.url,o=!0);const r=v=>(Si(n),o&&(t(s),me(a,e,v)),!1);if(s.pinned){const v=document.createElement("div");v.className="ab-pinned-indicator";const y=document.createElement("i");y.className="fa fa-star",v.appendChild(y),n.appendChild(v)}if(s.imageUrl&&s.imageUrl!==""){const v=document.createElement("div");v.dir=i,v.className="ab-image-area";const y=document.createElement("img");if(y.setAttribute("src",s.imageUrl),y.onload=()=>{n.style.height="auto"},qs(s,y),v.appendChild(y),n.className+=" with-image",o&&!s.oe){const w=document.createElement("a");
2w.setAttribute("href",a),w.onclick=r,s.altImageText||(s.title?w.setAttribute("aria-label",s.title):w.setAttribute("aria-label","Feed Image")),w.appendChild(v),n.appendChild(w)}else n.appendChild(v)}const l=document.createElement("div");if(l.className="ab-card-body",l.dir=i,s.dismissible){s.logCardDismissal=()=>Us(s);const v=fi("Dismiss Card",void 0,s.dismissCard.bind(s),i);n.appendChild(v),Xt(l,St.ie,y=>{n.className+=" ab-swiped-left",v.onclick(y)}),Xt(l,St.de,y=>{n.className+=" ab-swiped-right",v.onclick(y)})}let u="",d=!1;if(s.title&&s.title!==""&&(u=s.title,d=!0),d){const v=document.createElement("h1");if(v.className="ab-title",v.id=Rt.ce(),n.setAttribute("aria-labelledby",v.id),o){const y=document.createElement("a");y.setAttribute("href",a),y.onclick=r,y.appendChild(document.createTextNode(u)),v.appendChild(y)}else v.appendChild(document.createTextNode(u));l.appendChild(v)}const p=document.createElement("div");if(p.className=d?"ab-description":"ab-description ab-no-title",s.language&&(p.lang=s.language),s.description&&p.appendChild(document.createTextNode(s.description)),o){const v=document.createElement("div");v.className="ab-url-area";const y=document.createElement("a");y.setAttribute("href",a),s.linkText&&y.appendChild(document.createTextNode(s.linkText)),y.onclick=r,v.appendChild(y),p.appendChild(v)}l.appendChild(p),n.appendChild(l);const f=document.createElement("div");return f.className="ab-unread-indicator",s.viewed&&(f.className+=" read"),n.appendChild(f),s.te=n,n}function Ci(s){b.rr()&&b.removeSubscription(s)}function ki(s){return s!=null&&!!s.getAttribute("data-ab-had-top-impression")}function Ti(s){s!=null&&s.setAttribute("data-ab-had-top-impression","true")}function Ai(s){return s!=null&&!!s.getAttribute("data-ab-had-bottom-impression")}function Ni(s){s!=null&&s.setAttribute("data-ab-had-bottom-impression","true")}const ie={oo:ki,no:Ai},Xs="data-last-requested-refresh",Ie={};function ve(s){s&&(s.className=s.className.replace("ab-show","ab-hide"),setTimeout(()=>{s&&s.parentNode&&s.parentNode.removeChild(s)},ct.cr));const t=s.getAttribute(pe);t!=null&&Ci(t);const e=s.getAttribute("data-listener-id");e!=null&&(window.removeEventListener("scroll",Ie[e]),delete Ie[e])}function Oi(s,t){const e=ot.ea(),i=document.createElement("div");if(i.className="ab-feed-body",i.setAttribute("aria-label","Feed"),i.setAttribute("role","feed"),s.lastUpdated==null){const n=document.createElement("div");n.className="ab-no-cards-message";const a=document.createElement("i");a.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",n.appendChild(a),i.appendChild(n)}else{let n=!1;const a=o=>s.nr(o);for(const o of s.cards){const r=o instanceof be;!r||s.ar()?(i.appendChild(Hs(o,a,t,e.Ro())),n=n||!r):c.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!n){const o=document.createElement("div");o.className="ab-no-cards-message",o.innerHTML=e.get("NO_CARDS_MESSAGE")||"",o.setAttribute("role","article"),i.appendChild(o)}}return i}function Ge(s,t){if(s!=null&&t!=null){const e=[],i=t.querySelectorAll(".ab-card");s.Xn||(s.Xn={});for(let n=0;n<i.length;n++){const a=Gs(i[n]),o=ui(i[n]),r=ci(i[n]);if(s.Xn[a]){o||r||Si(i[n]);continue}let l=ki(i[n]),u=Ai(i[n]);const d=l,p=u;if(!l&&o&&(l=!0,Ti(i[n])),!u&&r&&(u=!0,Ni(i[n])),l&&u){if(d&&p)continue;for(const f of s.cards)if(f.id===a){s.Xn[f.id]=!0,e.push(f);break}}}e.length>0&&s.sr(e)}}function Ii(s,t){if(s==null||t==null)return;t.setAttribute("aria-busy","true");const e=t.querySelectorAll(".ab-refresh-button")[0];e!=null&&(e.className+=" fa-spin");const i=new Date().valueOf().toString();t.setAttribute("data-last-requested-refresh",i),setTimeout(()=>{if(t.getAttribute("data-last-requested-refresh")===i){const n=t.querySelectorAll(".fa-spin");for(let o=0;o<n.length;o++)n[o].className=n[o].className.replace(/fa-spin/g,"");const a=t.querySelectorAll(".ab-initial-spinner")[0];if(a!=null){const o=document.createElement("span");o.innerHTML=ot.ea().get("FEED_TIMEOUT_MESSAGE")||"",a.parentNode!=null&&(a.parentNode.appendChild(o),a.parentNode.removeChild(a))}t.getAttribute("aria-busy")==="true"&&t.setAttribute("aria-busy","false")}},ct.Cr),s.dr()}function Vs(s,t,e){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 n=document.createElement("div");n.className="ab-feed-buttons-wrapper",n.setAttribute("role","group"),i.appendChild(n);const a=document.createElement("i");a.className="fa fa-times ab-close-button",a.setAttribute("aria-label","Close Feed"),a.setAttribute("tabindex","0"),a.setAttribute("role","button");const o=d=>{ve(i),d.stopPropagation()};a.addEventListener("keydown",d=>{d.keyCode!==xt.$o&&d.keyCode!==xt.Co||o(d)}),a.onclick=o;const r=document.createElement("i");r.className="fa fa-refresh ab-refresh-button",s&&s.lastUpdated==null&&(r.className+=" fa-spin"),r.setAttribute("aria-label","Refresh Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");const l=d=>{Ii(s,i),d.stopPropagation()};r.addEventListener("keydown",d=>{d.keyCode!==xt.$o&&d.keyCode!==xt.Co||l(d)}),r.onclick=l,n.appendChild(r),n.appendChild(a),i.appendChild(Oi(s,t));const u=()=>Ge(s,i);if(i.addEventListener("scroll",u),!e){window.addEventListener("scroll",u);const d=Rt.ce();Ie[d]=u,i.setAttribute("data-listener-id",d)}return i}function Ze(s,t,e,i,n){if(!q(t))return;const a=[];
2for(const o of t)if(o instanceof g){if(o.url&&Kt.test(o.url)){const r=ze(o.url);if(Ue(r)){c.error(ii(Re.Qi,"Content Card"));continue}}a.push(o)}if(s.cards=a,s.lastUpdated=e,i!=null)if(i.setAttribute("aria-busy","false"),s.lastUpdated==null)ve(i);else{const o=i.querySelectorAll(".ab-feed-body")[0];if(o!=null){const r=Oi(s,n);o.parentNode&&o.parentNode.replaceChild(r,o),Ge(s,r.parentNode)}}}function Ks(s,t){s&&t.setAttribute(pe,s)}function Js(s){if(!b.rr())return;const t=document.querySelectorAll(".ab-feed");for(let e=0;e<t.length;e++)(s==null||s!=null&&t[e].parentNode===s)&&ve(t[e])}function Ws(s,t){if(!b.rr())return;bs();let e=!1;s==null&&(s=document.body,e=!0);const i=b.ee(k.tn)||!1,n=Z.m().Ys(!1);typeof t=="function"&&Ze(n,t(n.cards.slice()),n.lastUpdated,null,i);const a=Vs(n,i,e),o=Z.m(),r=o.Es();(n.lastUpdated==null||new Date().valueOf()-n.lastUpdated.valueOf()>ct.ur)&&(r==null||new Date().valueOf()-r>ct.ur)&&(c.info(`Cached content cards were older than max TTL of ${ct.ur} ms, requesting an update from the server.`),Ii(n,a),o.Ps(new Date().valueOf()));const l=new Date().valueOf(),u=Ys(function(f){const v=a.querySelectorAll(".ab-refresh-button")[0];if(v!=null){let w=500,x=w-=new Date().valueOf()-l;const E=a.getAttribute(Xs);E&&(x=parseInt(E),isNaN(x)||(w-=new Date().valueOf()-x)),setTimeout(function(){v.className=v.className.replace(/fa-spin/g,"")},Math.max(w,0))}let y=f.cards;typeof t=="function"&&(y=t(y.slice())),Ze(n,y,f.lastUpdated,a,i)});Ks(u,a);const d=function(f){const v=f.querySelectorAll(".ab-feed");let y=null;for(let w=0;w<v.length;w++)v[w].parentNode===f&&(y=v[w]);y!=null?(ve(y),y.parentNode!=null&&y.parentNode.replaceChild(a,y)):f.appendChild(a),setTimeout(function(){a.className=a.className.replace("ab-hide","ab-show")},0),e&&a.focus(),Ge(n,a),js(n.cards,f)};var p;s!=null?d(s):window.onload=(p=window.onload,function(){typeof p=="function"&&p(new Event("oldLoad")),d(document.body)})}function Ys(s){if(!b.rr())return;const t=Z.m(),e=t.qt(s);if(!t.Ct()){const i=b.nn();if(i){const n=i.rn(()=>{t.Ci(void 0,void 0,!0)});n&&t.Tt(n)}}return e}function Un(s,t){b.rr()&&(document.querySelectorAll(".ab-feed").length>0?Js():Ws(s,t))}const Zs={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};function Ln(s){if(!b.rr())return;const t=b.g();if(t){if(!q(s))return c.error("Cannot set SDK metadata because metadata is not an array."),!1;for(const e of s)if(!Ct(Zs,e,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;return t.addSdkMetadata(s),!0}}function Qs(s,t){if(!b.rr())return;if(s==null||s.length===0||s!=s)return void c.error("changeUser requires a non-empty userId.");if(ne(s)>_.mr)return void c.error(`Rejected user id "${s}" because it is longer than ${_.mr} bytes.`);if(t!=null&&!st(t,"set signature for new user","signature"))return;const e=b.nn();e&&e.changeUser(s.toString(),b.lr(),t)}const tn=Object.freeze(Object.defineProperty({__proto__:null,changeUser:Qs},Symbol.toStringTag,{value:"Module"}));function Pn(){c.info("Destroying Braze instance"),b.destroy(!0)}function Mn(){const s=b.nn();s&&s.requestImmediateDataFlush();const t=new J.se(null,!0),e="This-cookie-will-expire-in-"+t.le();t.store(m.me,e);const i=R.Ds.Us;new R(i,c).setItem(i.Ls.pe,i.be,!0),c.info("disableSDK was called"),b.destroy(!1),b.fe(!0)}function $n(){new J.se(null,!0).remove(m.me);const s=R.Ds.Us;new R(s,c).ge(s.Ls.pe,s.be),c.info("enableSDK was called"),b.destroy(!1),b.fe(!1)}function Fn(s){if(!b.rr())return;const t=b.ue();if(!t)return;const e=t.ve().id;if(typeof s!="function")return e;c.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),s(e)}function Gn(s,t){return b.initialize(s,t)}function qn(){return!!new J.se(null,!0).pr(m.me)}function jn(){return b.ao()}function en(s,t){if(!b.rr())return!1;if(s==null||s.length<=0)return c.error(`logCustomEvent requires a non-empty eventName, got "${s}". Ignoring event.`),!1;if(!ut(s,"log custom event","the event name"))return!1;const[e,i]=ge(t,Mi,"eventProperties",`log custom event "${s}"`,"event");
2if(!e)return!1;const n=b.v();if(n&&n.je(s))return c.info(`Custom Event "${s}" is blocklisted, ignoring.`),!1;const a=M.ut(O.CustomEvent,{n:s,p:i});if(a.tt){c.info(`Logged custom event "${s}".`);for(const o of a.$e)G.m().Ce(X.Ee,[s,t],o)}return a.tt}const _i=Object.freeze(Object.defineProperty({__proto__:null,logCustomEvent:en},Symbol.toStringTag,{value:"Module"}));function sn(s,t,e,i,n){if(!b.rr())return!1;if(e==null&&(e="USD"),i==null&&(i=1),s==null||s.length<=0)return c.error(`logPurchase requires a non-empty productId, got "${s}", ignoring.`),!1;if(!ut(s,"log purchase","the purchase name"))return!1;if(t==null||isNaN(parseFloat(t.toString())))return c.error(`logPurchase requires a numeric price, got ${t}, ignoring.`),!1;const a=parseFloat(t.toString()).toFixed(2);if(i==null||isNaN(parseInt(i.toString())))return c.error(`logPurchase requires an integer quantity, got ${i}, ignoring.`),!1;const o=parseInt(i.toString());if(o<1||o>Ke)return c.error(`logPurchase requires a quantity >1 and <${Ke}, got ${o}, ignoring.`),!1;if(e=e!=null?e.toUpperCase():e,["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(e)===-1)return c.error(`logPurchase requires a valid currencyCode, got ${e}, ignoring.`),!1;const[r,l]=ge(n,"logPurchase","purchaseProperties",`log purchase "${s}"`,"purchase");if(!r)return!1;const u=b.v();if(u&&u.Dr(s))return c.info(`Purchase "${s}" is blocklisted, ignoring.`),!1;const d=M.ut(O.Pr,{pid:s,c:e,p:a,q:o,pr:l});if(d.tt){c.info(`Logged ${o} purchase${o>1?"s":""} of "${s}" for ${e} ${a}.`);for(const p of d.$e)G.m().Ce(X.Rr,[s,n],p)}return d.tt}const nn=Object.freeze(Object.defineProperty({__proto__:null,logPurchase:sn},Symbol.toStringTag,{value:"Module"}));function Hn(){if(!b.rr())return;const s=b.nn();if(!s)return;s.openSession();const t=R.Ds.Us,e=new R(t,c);e.jr(t.Ls.hr,(i,n)=>{const a=n.lastClick,o=n.trackingString;c.info(`Firing push click trigger from ${o} push click at ${a}`);const r=s.br(a,o),l=function(){G.m().Ce(X.kr,[o],r)};s.vr(l,l),e.ge(t.Ls.hr,i)}),e.As(t.Ls.$r,function(i){s.wr(i)})}function Xn(){b.rr()&&b.removeAllSubscriptions()}function an(s){if(!b.rr())return;const t=b.nn();t&&t.requestImmediateDataFlush(s)}const on=Object.freeze(Object.defineProperty({__proto__:null,requestImmediateDataFlush:an},Symbol.toStringTag,{value:"Module"}));function Vn(s){c.setLogger(s)}function Kn(s){if(!b.rr()||s===""||!st(s,"set signature","signature",!1))return!1;const t=b.Sr();return!!t&&(t.setSdkAuthenticationSignature(s),!0)}function Jn(s){var t;if(b.rr())return(t=b.Sr())===null||t===void 0?void 0:t.subscribeToSdkAuthenticationFailures(s)}function Wn(){c.toggleLogging()}function Yn(){const s=b.j();if(s==null)return void c.warn(ft);s.clearData();const t=it(R.Ds);for(let i=0;i<t.length;i++){const n=t[i],a=R.Ds[n];new R(a,c).clearData()}if(b.rr())for(const i of b.lr())i.clearData(!0);const e=b.g();e&&e.fo()}function Zn(){if(b.rr())return U.isPushBlocked()}function Qn(){if(b.rr())return U.isPushPermissionGranted()}function ta(){if(b.rr())return U.isPushSupported()}class Wt{constructor(t,e,i,n,a,o,r,l,u,d,p){this.sn=t,this.on=e,this.un=i,this.an=a,this.hn=o,this.cn=r,this.B=l,this.fn=u,this.ln=d,this.C=p,this.sn=t,this.on=e,this.un=i,this.dn=n+"/safari/"+e,this.an=a||"/service-worker.js",this.cn=r,this.B=l,this.fn=u||!1,this.ln=d||!1,this.C=p,this.pn=U.bn(),this.yn=U.mn()}gn(){return this.ln}vn(t,e,i,n,a){t.unsubscribe().then(o=>{o?this.wn(e,i,n,a):(c.error("Failed to unsubscribe device from push."),typeof a=="function"&&a(!1))}).catch(o=>{c.error("Push unsubscription error: "+o),typeof a=="function"&&a(!1)})}kn(t,e,i){var n;const a=(d=>
2{if(typeof d=="string")return d;if(d.endpoint.indexOf("https://android.googleapis.com/gcm/send")!==0)return d.endpoint;let p=d.endpoint;const f=d;return f.Pn&&d.endpoint.indexOf(f.Pn)===-1&&(p=d.endpoint+"/"+f.Pn),p})(t);let o=null,r=null;const l=t;if(l.getKey!=null)try{const d=Array.from(new Uint8Array(l.getKey("p256dh"))),p=Array.from(new Uint8Array(l.getKey("auth")));o=btoa(String.fromCharCode.apply(null,d)),r=btoa(String.fromCharCode.apply(null,p))}catch(d){c.error(wt(d))}const u=(d=>{let p;return d.options&&(p=d.options.applicationServerKey)&&p.byteLength&&p.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(p)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(l);(n=this.sn)===null||n===void 0||n.Dn(a,e,o,r,u),a&&typeof i=="function"&&i(a,o,r)}Sn(){var t;(t=this.sn)===null||t===void 0||t.An(!0)}jn(t,e){var i;(i=this.sn)===null||i===void 0||i.An(!1),c.info(t),typeof e=="function"&&e(!1)}xn(t,e,i,n){var a;if(e.permission==="default")try{window.safari.pushNotification.requestPermission(this.dn,t,{api_key:this.on,device_id:((a=this.un)===null||a===void 0?void 0:a.ve().id)||""},o=>{o.permission==="granted"&&this.sn&&this.sn.setPushNotificationSubscriptionType(_.NotificationSubscriptionTypes.OPTED_IN),this.xn(t,o,i,n)})}catch(o){this.jn("Could not request permission for push: "+o,n)}else e.permission==="denied"?this.jn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",n):e.permission==="granted"&&(c.info("Device successfully subscribed to push."),this.kn(e.deviceToken,new Date,i))}requestPermission(t,e,i){const n=o=>{switch(o){case"granted":return void(typeof t=="function"&&t());case"default":return void(typeof e=="function"&&e());case"denied":return void(typeof i=="function"&&i());default:c.error("Received unexpected permission result "+o)}};let a=!1;if(window.Notification.permission!=="default")n(Notification.permission);else{const o=window.Notification.requestPermission(r=>{a&&n(r)});o?o.then(r=>{n(r)}):a=!0}}wn(t,e,i,n){const a={userVisibleOnly:!0};e!=null&&(a.applicationServerKey=e),t.pushManager.subscribe(a).then(o=>{c.info("Device successfully subscribed to push."),this.kn(o,new Date,i)}).catch(o=>{U.isPushBlocked()?(c.info("Permission for push notifications was denied."),typeof n=="function"&&n(!1)):(c.error("Push subscription failed: "+o),typeof n=="function"&&n(!0))})}Nn(){if(this.fn)return navigator.serviceWorker.getRegistration(this.an);const t=this.hn?{scope:this.hn}:void 0;return navigator.serviceWorker.register(this.an,t).then(()=>navigator.serviceWorker.ready.then(e=>(e&&typeof e.update=="function"&&e.update().catch(i=>{c.info("ServiceWorker update failed: "+i)}),e)))}Un(t){this.fn||(t.unregister(),c.info("Service worker successfully unregistered."))}subscribe(t,e){if(!U.isPushSupported())return c.info(Wt.Wn),void(typeof e=="function"&&e(!1));if(this.pn){if(!this.fn&&window.location!=null){let r=this.an;r.indexOf(window.location.host)===-1&&(r=window.location.host+r),r.indexOf(window.location.protocol)===-1&&(r=window.location.protocol+"//"+r)}if(U.isPushBlocked())return void this.jn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.B&&!this.B._n()&&this.B.Et()===0)return c.info("Waiting for VAPID key from server config before subscribing to push."),void this.B.Tn(()=>{this.subscribe(t,e)});const i=()=>{c.info("Permission for push notifications was denied."),typeof e=="function"&&e(!1)},n=()=>{let r="Permission for push notifications was ignored.";U.isPushBlocked()&&(r+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),c.info(r),typeof e=="function"&&e(!0)},a=U.isPushPermissionGranted(),o=()=>{!a&&this.sn&&this.sn.setPushNotificationSubscriptionType(_.NotificationSubscriptionTypes.OPTED_IN),this.Nn().then(r=>{if(r==null)return c.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void(typeof e=="function"&&e(!0));r.pushManager.getSubscription().then(l=>{var u;let d=null;if(((u=this.B)===null||u===void 0?void 0:u._n())!=null&&(d=zi.In(this.B._n())),l){let p,f=null,v=null;if(this.C&&(p=this.C.ft(m.gt.Vn)),p&&!q(p)){let y;try{y=fe.zn(p).qn}catch{y=null}y==null||isNaN(y.getTime())||y.getTime()===0||(f=y,v=new Date(f),v.setMonth(f.getMonth()+6))}d!=null&&l.options&&l.options.applicationServerKey&&l.options.applicationServerKey.byteLength&&l.options.applicationServerKey.byteLength>0&&!Mt(d,new Uint8Array(l.options.applicationServerKey))?(l.options.applicationServerKey.byteLength>12?c.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):c.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depen
2ding on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.vn(l,r,d,t,e)):l.expirationTime&&new Date(l.expirationTime).valueOf()<=new Date().valueOf()?(c.info("Push subscription is expired, creating new subscription."),this.vn(l,r,d,t,e)):p&&q(p)?this.vn(l,r,d,t,e):v==null?(c.info("No push subscription creation date found, creating new subscription."),this.vn(l,r,d,t,e)):v.valueOf()<=new Date().valueOf()?(c.info("Push subscription older than 6 months, creating new subscription."),this.vn(l,r,d,t,e)):(c.info("Device already subscribed to push, sending existing subscription to backend."),this.kn(l,f,t))}else this.wn(r,d,t,e)}).catch(l=>{c.error("Error checking current push subscriptions: "+l)})}).catch(r=>{c.error("ServiceWorker registration failed: "+r)})};this.requestPermission(o,n,i)}else if(this.yn){if(this.cn==null||this.cn==="")return c.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void(typeof e=="function"&&e(!0));const i=window.safari.pushNotification.permission(this.cn);this.xn(this.cn,i,t,e)}}unsubscribe(t,e){if(!U.isPushSupported())return c.info(Wt.Wn),void(typeof e=="function"&&e());this.pn?navigator.serviceWorker.getRegistration(this.an).then(i=>{i?i.pushManager.getSubscription().then(n=>{n?(this.Sn(),n.unsubscribe().then(a=>{a?(c.info("Device successfully unsubscribed from push."),typeof t=="function"&&t()):(c.error("Failed to unsubscribe device from push."),typeof e=="function"&&e()),this.Un(i)}).catch(a=>{c.error("Push unsubscription error: "+a),typeof e=="function"&&e()})):(c.info("Device already unsubscribed from push."),typeof t=="function"&&t())}).catch(n=>{c.error("Error unsubscribing from push: "+n),typeof e=="function"&&e()}):(c.info("Device already unsubscribed from push."),typeof t=="function"&&t())}):this.yn&&(this.Sn(),c.info("Device unsubscribed from push."),typeof t=="function"&&t())}}Wt.Wn="Push notifications are not supported in this browser.";const lt={l:!1,aa:null,ea:()=>(lt.p(),lt.aa||(lt.aa=new Wt(b.gr(),b.ba(),b.ue(),b.Z(),b.ee(k.Ma),b.ee(k._a),b.ee(k.ka),b.v(),b.ee(k.qa),b.ee(k.Aa),b.j())),lt.aa),p:()=>{lt.l||(b.h(lt),lt.l=!0)},destroy:()=>{lt.aa=null,lt.l=!1}},rn=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"}));function ln(s,t){if(b.rr())return lt.ea().subscribe((e,i,n)=>{const a=b.nn();a&&a.requestImmediateDataFlush(),typeof s=="function"&&s(e,i,n)},t)}const Di=Object.freeze(Object.defineProperty({__proto__:null,requestPushPermission:ln},Symbol.toStringTag,{value:"Module"}));function un(s,t){if(b.rr())return lt.ea().unsubscribe(s,t)}const cn=Object.freeze(Object.defineProperty({__proto__:null,unregisterPush:un},Symbol.toStringTag,{value:"Module"}));class P{constructor(t,e=!1,i={},n){this.id=t,this.enabled=e,this.properties=i,this.trackingString=n,this.id=t,this.enabled=e,this.properties=i,this.trackingString=n}he(t,e,i){const n=this.properties[t];return n==null?(this.ye(t),null):e(n)?n.value:(this.Pe(i),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[P.hs.os]=this.id,t[P.hs.Fe]=this.enabled,t[P.hs.we]=this.properties,t[P.hs.xe]=this.trackingString,t}Pe(t){c.info(`Property is not of type ${t}.`)}ye(t){c.info(`${t} not found in feature flag properties.`)}Ie(t){return t.type==="string"&&typeof t.value=="string"}Te(t){return t.type==="number"&&typeof t.value=="number"}Ne(t){return t.type==="boolean"&&typeof t.value=="boolean"}Re(t){return t.type==="image"&&typeof t.value=="string"}Se(t){return t.type==="jsonobject"&&typeof t.value=="object"&&t.value.constructor==Object}Ae(t){return t.type==="datetime"&&typeof t.value=="number"}}P.hs={os:"id",Fe:"e",we:"pr",xe:"fts"},P.ui={os:"id",Fe:"enabled",we:"properties",xe:"fts"};function hn(s){if(s[P.ui.os]&&typeof s[P.ui.Fe]=="boolean")return new P(s[P.ui.os],s[P.ui.Fe],s[P.ui.we],s[P.ui.xe]);c.info(`Unable to create feature flag from ${JSON.stringify(s,null,2)}`)}function dn(s){if(s[P.hs.os]&&typeof s[P.hs.Fe]=="boolean")return new P(s[P.hs.os],s[P.hs.Fe],s[P.hs.we],s[P.hs.xe]);
2c.info(`Unable to deserialize feature flag from ${JSON.stringify(s,null,2)}`)}class pn extends Qt{constructor(t,e,i,n){super(),this.B=t,this.S=e,this.C=i,this.T=n,this.De=[],this.qe=0,this.B=t,this.S=e,this.C=i,this.T=n,this.ze=null,this.Ue=new V,this.R=10,this.I=null,this.q=null,b.F(this.Ue)}U(t){var e;if(!((e=this.B)===null||e===void 0)&&e.ke()&&t!=null&&t.feature_flags){this.De=[];for(const i of t.feature_flags){const n=hn(i);n&&this.De.push(n)}this.qe=new Date().getTime(),this.Be(),this.Ue.X(this.De)}}Me(){let t={};this.C&&(t=this.C.ft(m.gt.Xe));const e={};for(const i in t){const n=dn(t[i]);n&&(e[n.id]=n)}return e}_e(){var t;return((t=this.C)===null||t===void 0?void 0:t.ft(m.gt.Ge))||{}}He(t){this.C&&this.C.Bt(m.gt.Ge,t)}qt(t){return this.Ue.Dt(t)}refreshFeatureFlags(t,e,i=!1,n=!0){const a=()=>{typeof e=="function"&&e(),this.Ue.X(this.De)};if(!this.Je(i))return!this.ze&&this.B&&(this.ze=this.B.Ke(()=>{this.refreshFeatureFlags(t,e)})),void a();const o=this.S;if(!o)return void a();n&&this.G();const r=o.H({},!0),l=o.J(r,S.O.Le);let u=!1;o.V(r,(d=-1)=>{const p=this.S;if(!p)return void a();const f=new Date().valueOf();S.W(this.C,S.O.Le,f),d!==-1&&l.push(["X-Braze-Req-Tokens-Remaining",d.toString()]),te.Y({url:`${p.Z()}/feature_flags/sync`,headers:l,data:r,tt:v=>{if(!p.st(r,v,l))return u=!0,void a();p.it(),this.U(v),u=!1,typeof t=="function"&&t()},error:v=>{p.et(v,"retrieving feature flags"),u=!0,a()},nt:(v,y)=>{let w;if(u){let x=this.I;(x==null||x<1e3*this.R)&&(x=1e3*this.R),w=Math.min(3e5,ee(1e3*this.R,3*x))}p.rt(y,()=>{this.refreshFeatureFlags(t,e,i,!0)},S.O.Le,x=>this.ot(x),()=>this.G(),w)}})},S.O.Le,e)}G(){this.q!=null&&(clearTimeout(this.q),this.q=null)}ot(t){this.G(),this.q=t}Je(t){if(!this.B)return!1;if(!t){const e=this.B.Oe();if(e==null)return!1;let i=!1;if(!isNaN(e)){if(e===-1)return c.info("Feature flag refreshes not allowed"),!1;i=new Date().getTime()>=(this.qe||0)+1e3*e}if(!i)return c.info(`Feature flag refreshes were rate limited to ${e} seconds`),!1}return this.B.ke()}Qe(){var t;return((t=this.C)===null||t===void 0?void 0:t.ft(m.gt.Ve))||null}We(){var t,e;(t=this.C)===null||t===void 0||t.Bt(m.gt.Ve,(e=this.T)===null||e===void 0?void 0:e.St())}Ye(){var t;const e=(t=this.T)===null||t===void 0?void 0:t.St(),i=this.Qe();return i==null||e===i}Be(){if(!this.C)return;const t={};for(const e of this.De){const i=e.bt();t[e.id]=i}this.C.Bt(m.gt.Xe,t),this.C.Bt(m.gt.Ze,this.qe),this.We()}changeUser(){this.G()}clearData(){this.G()}}const W={l:!1,provider:null,m:()=>(W.p(),W.provider||(W.provider=new pn(b.v(),b.g(),b.j(),b.P()),b._(W.provider)),W.provider),p:()=>{W.l||(b.h(W),W.l=!0)},destroy:()=>{W.provider=null,W.l=!1}};function Bi(s,t,e=!1){if(b.rr())return W.m().refreshFeatureFlags(s,t,e)}function bn(s,t){Bi(s,t)}const Qe=Object.freeze(Object.defineProperty({__proto__:null,default:Bi,refreshFeatureFlags:bn},Symbol.toStringTag,{value:"Module"}));function ea(s){if(!b.rr())return;const t=b.v();if(t&&!t.ke())return null;const e=W.m().Me();return e[s]?e[s]:null}function gn(){if(!b.rr())return;const s=[],t=b.v();if(t&&!t.ke())return s;const e=W.m().Me();for(const i in e)s.push(e[i]);return s}function ia(s){if(!b.rr())return;const t=W.m();if(t.Ye()){const e=gn();e&&typeof s=="function"&&s(e)}return t.qt(s)}function sa(s){if(!b.rr())return;if(!s)return!1;const t="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",e=W.m().Me();if(!e[s])return c.info(t),!1;const i=e[s].trackingString;if(!i)return c.info(t),!1;const n=W.m()._e();if(n[i])return c.info("Not logging another feature flag impression. This ID was already logged this session."),!1;n[i]=!0,W.m().He(n);const a={fid:s,fts:i};return M.ut(O.yr,a).tt}class qe{constructor(t,e,i,n=!1,a=!1,o=-1){this.id=t,this.placementId=e,this.html=i,this.At=n,this.isControl=a,this.Gt=o,this.id=t,this.placementId=e,this.html=i,this.At=n,this.isControl=a,this.Gt=o,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}}}function mn(s){return new qe(s.id,s.o,s.html,s.t,s.i,s.u)}function fn(s){return new qe(s.id,s.placement_id,s.html,s.is_test_send,s.is_control,s.expires_at)}class vn extends Qt{constructor(t,e,i,n){super(),this.B=t,this.S=e,this.C=i,this.T=n,this.banners={},this.B=t,this.S=e,this.C=i,this.T=n,this.R=10,this.I=null,this.q=null,this.D=new V,b.F(this.D),this.N=null,this.k=null}U(t){if(this.L()&&t!=null&&t.banners){this.banners={};const e=t.banners;for(const i in e){const n=e[i];let a=null;n!=null&&n.banner!=null&&(a=fn(n.banner)),a&&(this.banners[i]=a)}this.M(),this.D.X(this.banners)}}$(t,e,i,n=!0){var a;const o=()=>{typeof i=="function"&&i()};if(!this.L())return void((a=this.B)===null||a===void 0||a.A(()=>{this.$(t,e,i)}));const r=this.S;if(!r)return void o();n&&this.G();const l=r.H({},!0),u=[];for(const f of t)u.push({id:f});l.placements=u;const d=r.J(l,S.O.K);let p=!1;r.V(l,(f=-1)=>{const v=this.S;if(!v)return void o();const y=new Date().valueOf();S.W(this.C,S.O.K,y),f!==-1&&d.push(["X-Braze-Req-Tokens-Remaining",f.toString()]),te.Y({url:`${v.Z()}/banners/sync`,headers:d,data:l,tt:w=>{if(!v.st(l,w,d))return p=!0,void o();v.it(),this.U(w),p=!1,typeof e=="function"&&e()},error:w=>{v.et(w,"retrieving banners"),p=!0,o()},nt:(w,x)=>{let E;if(this.k=t,p){let A=this.I;(A==null||A<1e3*this.R)&&(A=1e3*this.R),E=Math.min(3e5,ee(1e3*this.R,3*A))}v.rt(x,()=>{this.$(t,e,i,!1)},S.O.K,A=>
2this.ot(A),()=>this.G(),E)}})},S.O.K,i)}ht(){return this.k}lt(t,e){const i={id:t.id};return e&&(i.bid=e),M.ut(O.ct,i).tt}G(){this.q!=null&&(clearTimeout(this.q),this.q=null)}ot(t){this.G(),this.q=t}dt(){let t={};this.C&&(t=this.C.ft(m.gt.vt));const e={};for(const i in t){let n=null;t[i]!=null&&(n=mn(t[i])),n&&(e[n.placementId]=n)}return e}M(){var t;if(!this.C)return;const e={};for(const i in this.banners){const n=((t=this.banners[i])===null||t===void 0?void 0:t.bt())||null;e[i]=n}this.C.Bt(m.gt.vt,e),this.jt()}jt(){var t,e;(t=this.C)===null||t===void 0||t.Bt(m.gt.yt,(e=this.T)===null||e===void 0?void 0:e.St())}wt(){var t;return((t=this.C)===null||t===void 0?void 0:t.ft(m.gt.yt))||null}Ct(){return this.N}Tt(t){this.N=t}Rt(){var t;const e=(t=this.T)===null||t===void 0?void 0:t.St(),i=this.wt();return i!=null&&e===i}It(){var t;const e=(t=this.T)===null||t===void 0?void 0:t.St(),i=this.wt();return i==null||e===i}qt(t){return this.D.Dt(t)}Ft(){var t;return((t=this.C)===null||t===void 0?void 0:t.ft(m.gt.Nt))||{}}kt(t){this.C&&this.C.Bt(m.gt.Nt,t)}changeUser(){this.xt(),this.G()}clearData(){this.G()}L(){return!!this.B&&(!!this.B.zt()||(this.B.Et()!==0&&this.xt(),!1))}xt(){this.banners={},this.C&&(this.C.Ut(m.gt.vt),this.C.Ut(m.gt.Nt)),this.D.X({})}}const K={l:!1,provider:null,m:()=>(K.p(),K.provider||(K.provider=new vn(b.v(),b.g(),b.j(),b.P()),b._(K.provider)),K.provider),p:()=>{K.l||(b.h(K),K.l=!0)},destroy:()=>{K.provider=null,K.l=!1}};function Ri(s,t){const e=s[t];if(!e)return null;const i=e.Gt,n=new Date().valueOf();return i!==-1&&1e3*i<n?(c.info(`Banner with ID: ${e.id} and placement ID: ${t} has expired.`),null):e}function na(s){var t;if(!b.rr())return;((t=b.v())===null||t===void 0?void 0:t.zt())===!1&&c.error(Be);const e=K.m();return e.L()?Ri(e.dt(),s):null}function wn(s,t){if(!b.rr())return;if(!(s instanceof qe))return c.error("Banner argument to logBannerClick must be an Banner object."),!1;const e=K.m(),i=e.dt();return it(i).length===0?(c.info("Not logging banner click. No banners exist."),!1):i[s.placementId]?e.lt(s,t):(c.info(`Not logging banner click for ID ${s.placementId}. The placement ID did not correspond to any banner.`),!1)}const je="data-ab-banner-placement-id",yn="ab-html-banner",xn="ab-html-control-banner";function En(s){const t=document.createElement("div");return t.id=s.id,t.className="ab-html-control-banner",t.setAttribute(je,s.placementId),t}function ti(s,t){if(s.Jt())return En(s);const e=document.createElement("iframe");return e.id=s.id,t&&e.setAttribute("nonce",t),e.className="ab-html-banner",e.setAttribute(je,s.placementId),e.setAttribute("title","Banner"),xi(e,s.html,t),e.onload=()=>{const i=e.contentWindow,n=i.document.getElementsByTagName("title");n&&n.length>0&&e.setAttribute("title",n[0].textContent||"");const a=Object.assign(Object.assign({},yi(e)),{logClick:function(){wn(s,...arguments)},closeMessage:function(){},setBannerHeight:o=>{isNaN(o)||!isFinite(o)||o<0?c.warn(`Invalid banner height: ${o}`):e.style.height=`${o}px`}});i.brazeBridge=a,i.appboyBridge=a,i.dispatchEvent(new CustomEvent("ab.BridgeReady"))},e}function Sn(s){const t=s.getAttribute(pe);t!=null&&Ci(t),s&&s.parentNode&&s.parentNode.removeChild(s)}function Cn(s){if(!b.rr())return;if(!s||s.length<=0)return!1;const t=K.m(),e=t.dt();if(it(e).length===0)return c.info("Not logging banners impression. No banners exist."),!1;const i=t.Ft(),n=[];for(const o of s){const r=e[o];r?i[r.placementId]?c.info(`Not logging banners impression for ID ${o}. This ID was already logged this session.`):(i[r.placementId]=!0,n.push(r.id)):c.info(`Not logging banners impression for ID ${o}. The placement ID did not correspond to any banner.`)}if(n.length===0)return!1;t.kt(i);const a={ids:n};return M.ut(O.ro,a).tt}function ei(){const s=document.querySelectorAll(`.${yn}, .${xn}`),t=[];for(let e=0;e<s.length;e++){const i=s[e],n=i.getAttribute(je);if(!n)continue;const a=ie.oo(i),o=ie.no(i);if(a&&o)continue;const r=ui(i),l=ci(i);r&&!a&&Ti(i),l&&!o&&Ni(i),ie.oo(i)&&ie.no(i)&&t.push(n)}t.length>0&&Cn(t)}function kn(){if(!b.rr())return;const s={},t=b.v();if((t==null?void 0:t.zt())===!1&&c.error(Be),!(t!=null&&t.zt()))return s;const e=K.m().dt();for(const i in e)s[i]=Ri(e,i);return s}function Tn(s){var t;if(!b.rr())return;const e=K.m();if(e.It()){const n=kn();n&&typeof s=="function"&&s(n)}const i=e.qt(s);if(!e.Ct()){const n=(t=b.nn())===null||t===void 0?void 0:t.rn(()=>{const a=e.ht();a&&a.length>0&&e.$(a)});n&&e.Tt(n)}return i}function aa(s,t){if(!b.rr())return;if(!s)return void c.error("Not inserting banner: banner was not provided.");if(!t)return void c.error("Not inserting banner: parentNode was not provided.");if(!b.ee(k.re))return void c.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");fs();const e=ti(s,b.ee(k.er)),i=Tn(n=>{const a=n[s.placementId];a?t.replaceChildren(ti(a,b.ee(k.er))):Sn(e)});i&&e.setAttribute(pe,i),t.replaceChildren(e),Gt(window,"scroll",ei),ei()}function An(s,t,e){if(!b.rr())return void c.warn(ft);const i=b.v();if(!i)return;if(!q(s)||s.length===0)return void c.warn("placementIds should be a non-empty array.");if(!b.ee(k.re))return void c.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");const n=K.m();if(K.m().Rt())return void c.warn("Banners can be refreshed only once per session per user.");if(i.zt()===!1&&c.error(Be),!n.L())return void i.A(()=>{An(s,t,e)});const a=i.ne();s.length>a&&(c.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${s.length} to ${a} (max allowed).`),s=s.slice(0,a)),(s=s.filter(o=>!!ss(o)||(c.warn(`Placement ID should be a valid utf8 string with no whitespace
2s, filtering out: ${o}`),!1))).length!==0&&(c.info(`Requesting banners for placement IDs: ${JSON.stringify(s)}`),K.m().$(s,t,e))}export{qe as Banner,Zs as BrazeSdkMetadata,Hi as CaptionedImage,g as Card,Xi as ClassicCard,ct as ContentCards,be as ControlCard,kt as ControlMessage,Nt as DeviceProperties,P as FeatureFlag,Tt as FullScreenMessage,ht as HtmlMessage,ji as ImageOnly,h as InAppMessage,Bt as InAppMessageButton,Ot as ModalMessage,At as SlideUpMessage,_ as User,qt as WindowUtils,Ln as addSdkMetadata,Dn as automaticallyShowInAppMessages,Qs as changeUser,Bn as deferInAppMessage,Pn as destroy,Mn as disableSDK,$n as enableSDK,kn as getAllBanners,gn as getAllFeatureFlags,na as getBanner,zn as getCachedContentCards,Rn as getDeferredInAppMessage,Fn as getDeviceId,ea as getFeatureFlag,vi as getUser,_n as handleBrazeAction,Js as hideContentCards,Gn as initialize,aa as insertBanner,qn as isDisabled,jn as isInitialized,Zn as isPushBlocked,Qn as isPushPermissionGranted,ta as isPushSupported,Us as logCardDismissal,Ps as logContentCardClick,Ls as logContentCardImpressions,en as logCustomEvent,sa as logFeatureFlagImpression,Ts as logInAppMessageButtonClick,ys as logInAppMessageClick,Oe as logInAppMessageHtmlClick,Ae as logInAppMessageImpression,sn as logPurchase,Hn as openSession,bn as refreshFeatureFlags,Xn as removeAllSubscriptions,Ci as removeSubscription,An as requestBannersRefresh,Fs as requestContentCardsRefresh,an as requestImmediateDataFlush,ln as requestPushPermission,Vn as setLogger,Kn as setSdkAuthenticationSignature,Ws as showContentCards,Os as showInAppMessage,Tn as subscribeToBannersUpdates,Ys as subscribeToContentCardsUpdates,ia as subscribeToFeatureFlagsUpdates,Is as subscribeToInAppMessage,Jn as subscribeToSdkAuthenticationFailures,Un as toggleContentCards,Wn as toggleLogging,un as unregisterPush,Yn as wipeData}; 3function __vite__mapDeps(indexes) { 4 if (!__vite__mapDeps.viteFileDeps) { 5 __vite__mapDeps.viteFileDeps = [] 6 } 7 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 8} 9//# sourceMappingURL=index-tDjsQGDa.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.