@clickview/lite 0.39.0 → 0.40.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{1338-lite-628693aee8.chunk.css → 1204-lite-2a8f0c46bf.chunk.css} +1 -0
- package/dist/css/{7762-lite-628693aee8.chunk.css → 4433-lite-2a8f0c46bf.chunk.css} +1 -0
- package/dist/css/{3224-lite-0a8b9c213d.chunk.css → 5870-lite-0d4f49e3d7.chunk.css} +1 -0
- package/dist/css/{5052-lite-0a8b9c213d.chunk.css → 8591-lite-0d4f49e3d7.chunk.css} +1 -0
- package/dist/css/{6875-lite-725d515e15.chunk.css → 9620-lite-a56ecf8130.chunk.css} +1 -0
- package/dist/css/{5219-lite-c1bbb47cd6.chunk.css → 9873-lite-f6e6671a1f.chunk.css} +1 -0
- package/dist/scripts/{1338-0ff78f1556-lite.chunk.js → 1204-0df1407a87-lite.chunk.js} +1 -1
- package/dist/scripts/{3093-6730d2b35a-lite.chunk.js → 3093-351ae55807-lite.chunk.js} +1 -1
- package/dist/scripts/{7762-a06e891473-lite.chunk.js → 4433-52943c3f70-lite.chunk.js} +1 -1
- package/dist/scripts/{5622-0a42a0e828-lite.chunk.js → 5622-e12965ed3c-lite.chunk.js} +2 -2
- package/dist/scripts/{3224-e3e007b11a-lite.chunk.js → 5870-3b03254d3c-lite.chunk.js} +1 -1
- package/dist/scripts/{6102-10681a95e0-lite.chunk.js → 6102-920359a037-lite.chunk.js} +2 -2
- package/dist/scripts/{8091-ba6aa63f11-lite.chunk.js → 8091-302ea2f5ca-lite.chunk.js} +1 -1
- package/dist/scripts/8142-2e43f573a7-lite.chunk.js +1 -0
- package/dist/scripts/{5052-3de62505cf-lite.chunk.js → 8591-47088c136c-lite.chunk.js} +1 -1
- package/dist/scripts/9254-57b8fec7e3-lite.chunk.js +1 -0
- package/dist/scripts/{9478-c359b1b4b9-lite.chunk.js → 9478-49adc8bcb6-lite.chunk.js} +2 -2
- package/dist/scripts/{6875-54de49f6b5-lite.chunk.js → 9620-2b3a0c1a58-lite.chunk.js} +1 -1
- package/dist/scripts/9708-904b8914fd-lite.chunk.js +1 -0
- package/dist/scripts/{5219-42503b57a5-lite.chunk.js → 9873-6b77178229-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-a2e3c7b221.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/8142-6f184a5eca-lite.chunk.js +0 -1
- package/dist/scripts/9254-d74490ff03-lite.chunk.js +0 -1
- package/dist/scripts/9708-5fb031138b-lite.chunk.js +0 -1
- package/dist/scripts/bundle-a93356042b.min.js +0 -2
- /package/dist/scripts/{5622-0a42a0e828-lite.chunk.js.LICENSE.txt → 5622-e12965ed3c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6102-10681a95e0-lite.chunk.js.LICENSE.txt → 6102-920359a037-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-c359b1b4b9-lite.chunk.js.LICENSE.txt → 9478-49adc8bcb6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-a93356042b.min.js.LICENSE.txt → bundle-a2e3c7b221.min.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3093],{63093:t=>{var e;self,e=()=>(()=>{"use strict";var t,e,i={2367:(t,e,i)=>{i.d(e,{Z:()=>l});const n={_n:function(t){const e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(e),n=new Uint8Array(i.length);for(let t=0;t<i.length;++t)n[t]=i.charCodeAt(t);return n}},s={Y:()=>{const t=t=>{const e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return t()+t(!0)+t(!0)+t()}};class r{constructor(t,e){this.nd="undefined"==typeof window?self:window,this.od=t,this.sd=e}dd(){if("indexedDB"in this.nd)return this.nd.indexedDB}ud(){try{if(null==this.dd())return!1;{const t=this.dd().open("Braze IndexedDB Support Test");if(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close(),"undefined"!=typeof window){const t=window.chrome||window.browser||window.msBrowser;if(t&&t.runtime&&t.runtime.id)return this.sd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.sd.info("Not using IndexedDB for storage due to following error: "+t),!1}}fd(t,e){const i=this.dd().open(this.od.ad,this.od.VERSION);if(null==i)return"function"==typeof e&&e(),!1;const n=this;return i.onupgradeneeded=t=>{n.sd.info("Upgrading indexedDB "+n.od.ad+" to v"+n.od.VERSION+"...");const e=t.target.result;for(const t in n.od.Jt)n.od.Jt.hasOwnProperty(t)&&!e.objectStoreNames.contains(n.od.Jt[t])&&e.createObjectStore(n.od.Jt[t])},i.onsuccess=i=>{const s=i.target.result;s.onversionchange=()=>{s.close(),"function"==typeof e&&e(),n.sd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(s)},i.onerror=t=>(n.sd.info("Could not open indexedDB "+n.od.ad+" v"+n.od.VERSION+": "+t.target.errorCode),"function"==typeof e&&e(),!0),!0}setItem(t,e,i,n,s){if(!this.ud())return"function"==typeof s&&s(),!1;const r=this;return this.fd((a=>{if(!a.objectStoreNames.contains(t))return r.sd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.od.ad+" - "+t+" is not a valid objectStore"),"function"==typeof s&&s(),void a.close();const o=a.transaction([t],"readwrite");o.oncomplete=()=>a.close();const l=o.objectStore(t).put(i,e);l.onerror=()=>{r.sd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.od.ad),"function"==typeof s&&s()},l.onsuccess=()=>{"function"==typeof n&&n()}}),s)}getItem(t,e,i){if(!this.ud())return!1;const n=this;return this.fd((s=>{if(!s.objectStoreNames.contains(t))return n.sd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.od.ad+" - "+t+" is not a valid objectStore"),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).get(e);a.onerror=()=>{n.sd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.od.ad)},a.onsuccess=t=>{const e=t.target.result;null!=e&&i(e)}}))}hr(t,e,i){if(!this.ud())return"function"==typeof i&&i(),!1;const n=this;return this.fd((s=>{if(!s.objectStoreNames.contains(t))return n.sd.error("Could not retrieve last record from "+t+" on indexedDB "+n.od.ad+" - "+t+" is not a valid objectStore"),"function"==typeof i&&i(),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).openCursor(null,"prev");a.onerror=()=>{n.sd.error("Could not open cursor for "+t+" on indexedDB "+n.od.ad),"function"==typeof i&&i()},a.onsuccess=t=>{const n=t.target.result;null!=n&&null!=n.value&&null!=n.key?e(n.key,n.value):"function"==typeof i&&i()}}),i)}br(t,e){if(!this.ud())return!1;const i=this;return this.fd((n=>{if(!n.objectStoreNames.contains(t))return i.sd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.od.ad+" - "+t+" is not a valid objectStore"),void n.close();const s=n.transaction([t],"readwrite");s.oncomplete=()=>n.close(),s.objectStore(t).delete(e).onerror=()=>{i.sd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.od.ad)}}))}Mt(t,e){if(!this.ud())return!1;const i=this;return this.fd((n=>{if(!n.objectStoreNames.contains(t))return i.sd.error("Could not retrieve objects from "+t+" on indexedDB "+i.od.ad+" - "+t+" is not a valid objectStore"),void n.close();const s=n.transaction([t],"readwrite");s.oncomplete=()=>n.close();const r=s.objectStore(t),a=r.openCursor(),o=[];a.onerror=()=>{o.length>0?(i.sd.info("Cursor closed midway through for "+t+" on indexedDB "+i.od.ad),e(o)):i.sd.error("Could not open cursor for "+t+" on indexedDB "+i.od.ad)},a.onsuccess=t=>{const i=t.target.result;null!=i?(null!=i.value&&null!=i.key&&(r.delete(i.key).onsuccess=()=>{o.push(i.value)}),i.continue()):o.length>0&&e(o)}}))}clearData(){if(!this.ud())return!1;const t=[];for(const e in this.od.Jt)this.od.Jt.hasOwnProperty(e)&&this.od.Jt[e]!==this.od.Jt.oe&&t.push(this.od.Jt[e]);const e=this;return this.fd((function(i){const n=i.transaction(t,"readwrite");n.oncomplete=()=>i.close();for(let i=0;i<t.length;i++){const s=t[i];n.objectStore(s).clear().onerror=function(){e.sd.error("Could not clear "+this.source.name+" on indexedDB "+e.od.ad)}}n.onerror=function(){e.sd.error("Could not clear object stores on indexedDB "+e.od.ad)}}))}}r.ep={Ft:{ad:"AppboyServiceWorkerAsyncStorage",VERSION:6,Jt:{Sa:"data",kr:"pushClicks",cu:"pushSubscribed",hd:"fallbackDevice",qt:"cardUpdates",oe:"optOut",yr:"pendingData",kh:"sdkAuthenticationSignature"},se:1}};const a={init:function(t){void 0===t&&void 0!==a.zg||(a.zg=!!t),a.Eg||(a.Eg=!0)},destroy:function(){a.Eg=!1,a.zg=void 0,a.sd=void 0},setLogger:function(t){"function"==typeof t?(a.init(),a.sd=t):a.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){a.init(),a.zg?(console.log("Disabling Braze logging"),a.zg=!1):(console.log("Enabled Braze logging"),a.zg=!0)},info:function(t){if(a.zg){const e="Braze: "+t;null!=a.sd?a.sd(e):console.log(e)}},warn:function(t){if(a.zg){const e="Braze SDK Warning: "+t+" (v4.8.3)";null!=a.sd?a.sd(e):console.warn(e)}},error:function(t){if(a.zg){const e="Braze SDK Error: "+t+" (v4.8.3)";null!=a.sd?a.sd(e):console.error(e)}}},o=a,l={xn:n,q:{CustomEvent:"ce",Pr:"p",du:"pc",dc:"ca",ka:"i",Is:"ie",P:"cci",T:"ccic",$:"ccc",H:"ccd",Wl:"ss",xl:"se",_i:"si",Ii:"sc",Mi:"sbc",Ze:"sfe",ro:"iec",au:"lr",Zh:"uae",R:"ci",B:"cc",gu:"lcaa",fu:"lcar",Rn:"inc",Bn:"add",Ln:"rem",Fn:"set",$n:"ncam",pu:"sgu"},Cr:{Ar:"feed_displayed",Cc:"content_cards_displayed"},Z:s,xt:r,zt:r.ep,j:o,xo:{ho:"allowCrawlerActivity",Eo:"baseUrl",_o:"noCookies",Io:"devicePropertyAllowlist",ia:"disablePushTokenMaintenance",Ao:"enableLogging",So:"enableSdkAuthentication",ta:"manageServiceWorkerExternally",No:"minimumIntervalBetweenTriggerActionsInSeconds",wo:"sessionTimeoutInSeconds",To:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",Mn:"localization",lo:"contentSecurityNonce",Oo:"enableHtmlInAppMessages",Co:"allowUserSuppliedJavascript",mo:"inAppMessageZIndex",po:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Lo:"doNotLoadFontAwesome",Po:"sdkFlavor",tn:"openCardsInNewTab"}}},7529:(t,e,i)=>{i.d(e,{Z:()=>h});var n=i(5563),s=i(9179),r=i(4673),a=i(2367),o=i(5966);class l{constructor(t){this.u=t,this.u=t}h(t,e){const i=new r.Z;if(t.p(),null==t.url||""===t.url)return a.Z.j.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),i;if(e&&t.id&&this.u){const e=this.u.v(o.I.k.C)||{};e[t.id]=!0,this.u.D(o.I.k.C,e)}const n=this.I([t]);if(null==n)return i;const l=e?a.Z.q.$:a.Z.q.B;return s.Z.N(l,n)}A(t){const e=new r.Z;if(!t.F())return a.Z.j.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),e;if(t.id&&this.u){const e=this.u.v(o.I.k.G)||{};e[t.id]=!0,this.u.D(o.I.k.G,e)}const i=this.I([t]);return null==i?e:s.Z.N(a.Z.q.H,i)}J(t,e){const i=new r.Z(!0),l=[],u=[];let c={};this.u&&(c=e?this.u.v(o.I.k.K)||{}:this.u.v(o.I.k.L)||{});for(const e of t)e.M(),e instanceof n.Z?u.push(e):l.push(e),e.id&&(c[e.id]=!0);const h=this.I(l),d=this.I(u);if(null==h&&null==d)return i.O=!1,i;if(this.u&&(e?this.u.D(o.I.k.K,c):this.u.D(o.I.k.L,c)),null!=h){const t=e?a.Z.q.P:a.Z.q.R,n=s.Z.N(t,h);i.S(n)}if(null!=d&&e){const t=s.Z.N(a.Z.q.T,d);i.S(t)}return i}I(t){let e,i=null;for(let n=0;n<t.length;n++)e=t[n].id,null!=e&&""!==e&&(i=i||{},i.ids=i.ids||[],i.ids.push(e));return i}}var u=i(3774);const c={t:!1,i:null,m:()=>(c.o(),c.i||(c.i=new l(u.ZP.l())),c.i),o:()=>{c.t||(u.ZP.g(c),c.t=!0)},destroy:()=>{c.i=null,c.t=!1}},h=c},5608:(t,e,i)=>{i.d(e,{CG:()=>b,Dj:()=>m,Ji:()=>u,Zw:()=>h,pq:()=>d,ql:()=>l,rW:()=>c,sv:()=>p});var n=i(5242),s=i(1507),r=i(420),a=i(2080),o=i(2367);function l(t){return null!=t&&!!t.getAttribute("data-ab-had-top-impression")}function u(t){null!=t&&t.setAttribute("data-ab-had-top-impression","true")}function c(t){return null!=t&&!!t.getAttribute("data-ab-had-bottom-impression")}function h(t){null!=t&&t.setAttribute("data-ab-had-bottom-impression","true")}function d(t){if(null!=t){const e=t.querySelectorAll(".ab-unread-indicator")[0];null!=e&&(e.className+=" read")}}function p(t){return t.getAttribute("data-ab-card-id")}function b(t,e){const i=e.querySelectorAll(".ab-image-area");let n,s=0;i.length>0&&(s=i[0].offsetWidth);for(const e of t)if(n=e._,n&&e.imageUrl&&"number"==typeof e.aspectRatio){const t=s/e.aspectRatio;t&&(n.style.height=`${t}px`)}}function m(t,e,i){const l=document.createElement("div");l.className="ab-card ab-effect-card "+t.U,t.id&&l.setAttribute("data-ab-card-id",t.id),l.setAttribute("role","article"),l.setAttribute("tabindex","0");let u="",c=!1;t.url&&""!==t.url&&(u=t.url,c=!0);const h=n=>(d(l),c&&(e(t),(0,r.S)(u,i,n)),!1);if(t.pinned){const t=document.createElement("div");t.className="ab-pinned-indicator";const e=document.createElement("i");e.className="fa fa-star",t.appendChild(e),l.appendChild(t)}if(t.imageUrl&&""!==t.imageUrl){const e=document.createElement("div");e.className="ab-image-area";const i=document.createElement("img");if(i.setAttribute("src",t.imageUrl),i.onload=()=>{l.style.height="auto"},function(t,e){let i="";t.title||t.description||(i="Feed Image"),e.setAttribute("alt",i)}(t,i),e.appendChild(i),l.className+=" with-image",c&&!t.V){const t=document.createElement("a");t.setAttribute("href",u),t.onclick=h,t.appendChild(e),l.appendChild(t)}else l.appendChild(e)}const p=document.createElement("div");if(p.className="ab-card-body",t.dismissible){t.logCardDismissal=()=>(0,a.K)(t);const e=(0,n.B)("Dismiss Card",void 0,t.dismissCard.bind(t));l.appendChild(e),(0,s.FZ)(p,s.mQ.W,(t=>{l.className+=" ab-swiped-left",e.onclick(t)})),(0,s.FZ)(p,s.mQ.X,(t=>{l.className+=" ab-swiped-right",e.onclick(t)}))}let b="",m=!1;if(t.title&&""!==t.title&&(b=t.title,m=!0),m){const t=document.createElement("h1");if(t.className="ab-title",t.id=o.Z.Z.Y(),l.setAttribute("aria-labelledby",t.id),c){const e=document.createElement("a");e.setAttribute("href",u),e.onclick=h,e.appendChild(document.createTextNode(b)),t.appendChild(e)}else t.appendChild(document.createTextNode(b));p.appendChild(t)}const f=document.createElement("div");if(f.className=m?"ab-description":"ab-description ab-no-title",f.id=o.Z.Z.Y(),l.setAttribute("aria-describedby",f.id),t.description&&f.appendChild(document.createTextNode(t.description)),c){const e=document.createElement("div");e.className="ab-url-area";const i=document.createElement("a");i.setAttribute("href",u),t.linkText&&i.appendChild(document.createTextNode(t.linkText)),i.onclick=h,e.appendChild(i),f.appendChild(e)}p.appendChild(f),l.appendChild(p);const g=document.createElement("div");return g.className="ab-unread-indicator",t.viewed&&(g.className+=" read"),l.appendChild(g),t._=l,l}},1280:(t,e,i)=>{i.d(e,{d:()=>l});var n=i(2857),s=i(7529),r=i(7671),a=i(3774),o=i(2367);function l(t,e){return!!a.ZP.rr()&&(t instanceof n.Z?s.Z.m().h(t,e).O:(o.Z.j.error("card "+r.U4),!1))}},2080:(t,e,i)=>{i.d(e,{K:()=>l});var n=i(2857),s=i(7529),r=i(7671),a=i(3774),o=i(2367);function l(t){return!!a.ZP.rr()&&(t instanceof n.Z?s.Z.m().A(t).O:(o.Z.j.error("card "+r.U4),!1))}},1066:(t,e,i)=>{i.d(e,{p:()=>u});var n=i(2857),s=i(7529),r=i(3774),a=i(2893),o=i(7671),l=i(2367);function u(t,e){if(!r.ZP.rr())return!1;if(!(0,a.kJ)(t))return l.Z.j.error("cards must be an array"),!1;for(const e of t)if(!(e instanceof n.Z))return l.Z.j.error(`Each card in cards ${o.U4}`),!1;return s.Z.m().J(t,e).O}},2857:(t,e,i)=>{i.d(e,{Z:()=>a});var n=i(7750),s=i(7671),r=i(4663);class a{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){this.id=t,this.viewed=e,this.title=i,this.imageUrl=n,this.description=s,this.created=r,this.updated=a,this.categories=o,this.expiresAt=l,this.url=u,this.linkText=c,this.aspectRatio=h,this.extras=d,this.pinned=p,this.dismissible=b,this.clicked=m,this.id=t,this.viewed=e||!1,this.title=i||"",this.imageUrl=n,this.description=s||"",this.created=r||null,this.updated=a||null,this.categories=o||[],this.expiresAt=l||null,this.url=u,this.linkText=c,null==h?this.aspectRatio=null:(h=parseFloat(h.toString()),this.aspectRatio=isNaN(h)?null:h),this.extras=d||{},this.pinned=p||!1,this.dismissible=b||!1,this.dismissed=!1,this.clicked=m||!1,this.isControl=!1,this.test=!1,this.ht=null,this.nt=null}subscribeToClickedEvent(t){return this.et().lt(t)}subscribeToDismissedEvent(t){return this.rt().lt(t)}removeSubscription(t){this.et().removeSubscription(t),this.rt().removeSubscription(t)}removeAllSubscriptions(){this.et().removeAllSubscriptions(),this.rt().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();const t=this._;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)}),a.ut))}),s.rF))}et(){return null==this.ht&&(this.ht=new r.Z),this.ht}rt(){return null==this.nt&&(this.nt=new r.Z),this.nt}M(){this.viewed=!0}p(){this.viewed=!0,this.clicked=!0,this.et().Et()}F(){return!(!this.dismissible||this.dismissed||(this.dismissed=!0,this.rt().Et(),0))}ot(t){if(null==t||t[a.Tt.ns]!==this.id)return!0;if(t[a.Tt.It])return!1;if(null!=t[a.Tt.us]&&null!=this.updated&&parseInt(t[a.Tt.us])<(0,n.FX)(this.updated.valueOf()))return!0;if(t[a.Tt.ls]&&!this.viewed&&(this.viewed=!0),t[a.Tt.gs]&&!this.clicked&&(this.clicked=t[a.Tt.gs]),null!=t[a.Tt.st]&&(this.title=t[a.Tt.st]),null!=t[a.Tt.os]&&(this.imageUrl=t[a.Tt.os]),null!=t[a.Tt.it]&&(this.description=t[a.Tt.it]),null!=t[a.Tt.us]){const e=(0,n.X2)(t[a.Tt.us]);null!=e&&(this.updated=e)}if(null!=t[a.Tt.ps]){let e;e=t[a.Tt.ps]===a.Nt?null:(0,n.X2)(t[a.Tt.ps]),this.expiresAt=e}if(null!=t[a.Tt.URL]&&(this.url=t[a.Tt.URL]),null!=t[a.Tt.bs]&&(this.linkText=t[a.Tt.bs]),null!=t[a.Tt.fs]){const e=parseFloat(t[a.Tt.fs].toString());this.aspectRatio=isNaN(e)?null:e}return null!=t[a.Tt.xs]&&(this.extras=t[a.Tt.xs]),null!=t[a.Tt.js]&&(this.pinned=t[a.Tt.js]),null!=t[a.Tt.zs]&&(this.dismissible=t[a.Tt.zs]),null!=t[a.Tt.ks]&&(this.test=t[a.Tt.ks]),!0}ss(){throw new Error("Must be implemented in a subclass")}}a.Nt=-1,a.Tt={ns:"id",ls:"v",zs:"db",It:"r",us:"ca",js:"p",ps:"ea",xs:"e",ts:"tp",os:"i",st:"tt",it:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"t"},a.es={tt:"captioned_image",ct:"text_announcement",St:"short_news",rs:"banner_image",At:"control"},a.hs={ns:"id",ls:"v",zs:"db",cs:"cr",us:"ca",js:"p",ds:"t",ps:"ea",xs:"e",ts:"tp",os:"i",st:"tt",it:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"s"},a.Dt={dt:"ADVERTISING",Ct:"ANNOUNCEMENTS",Rt:"NEWS",bt:"SOCIAL"},a.ut=400},5563:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2857);class s extends n.Z{constructor(t,e,i,n,s,r){super(t,e,null,null,null,null,i,null,n,null,null,null,s,r),this.isControl=!0,this.U="ab-control-card",this.V=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.At,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.us]=this.updated,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.ks]=this.test,t}}},3153:(t,e,i)=>{i.d(e,{xA:()=>h,D5:()=>d,rN:()=>p});var n=i(2857);class s extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){super(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m),this.U="ab-classic-card",this.V=!0}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.St,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.st]=this.title,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.it]=this.description,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}class r extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){super(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m),this.U="ab-captioned-image",this.V=!0,this.test=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.tt,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.st]=this.title,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.it]=this.description,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}class a extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p){super(t,e,null,i,null,n,s,r,a,o,l,u,c,h,d,p),this.U="ab-banner",this.V=!1,this.test=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.rs,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}var o=i(5563),l=i(7750),u=i(2367);function c(t,e,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k,Z){let S;if(e===n.Z.es.ct||e===n.Z.es.St)S=new s(t,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k);else if(e===n.Z.es.tt)S=new r(t,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k);else if(e===n.Z.es.rs)S=new a(t,i,c,d,p,b,m,f,g,v,w,y,x,k);else{if(e!==n.Z.es.At)return u.Z.j.error("Ignoring card with unknown type "+e),null;S=new o.Z(t,i,p,m,w,y)}return Z&&(S.test=Z),S}function h(t){if(t[n.Z.Tt.It])return null;const e=t[n.Z.Tt.ns],i=t[n.Z.Tt.ts],s=t[n.Z.Tt.ls],r=t[n.Z.Tt.st],a=t[n.Z.Tt.os],o=t[n.Z.Tt.it],u=(0,l.X2)(t[n.Z.Tt.us]),h=u;let d;return d=t[n.Z.Tt.ps]===n.Z.Nt?null:(0,l.X2)(t[n.Z.Tt.ps]),c(e,i,s,r,a,o,h,u,null,d,t[n.Z.Tt.URL],t[n.Z.Tt.bs],t[n.Z.Tt.fs],t[n.Z.Tt.xs],t[n.Z.Tt.js],t[n.Z.Tt.zs],t[n.Z.Tt.gs],t[n.Z.Tt.ks]||!1)}function d(t){return c(t.id,t.type,t.viewed,t.title,t.image,t.description,(0,l.X2)(t.created),(0,l.X2)(t.updated),t.categories,(0,l.X2)(t.expires_at),t.url,t.domain,t.aspect_ratio,t.extras,!1,!1)}function p(t){return c(t[n.Z.hs.ns],t[n.Z.hs.ts],t[n.Z.hs.ls],t[n.Z.hs.st],t[n.Z.hs.os],t[n.Z.hs.it],(0,l.Rd)(t[n.Z.hs.cs]),(0,l.Rd)(t[n.Z.hs.us]),t[n.Z.hs.ds],(0,l.Rd)(t[n.Z.hs.ps]),t[n.Z.hs.URL],t[n.Z.hs.bs],t[n.Z.hs.fs],t[n.Z.hs.xs],t[n.Z.hs.js],t[n.Z.hs.zs],t[n.Z.hs.gs],t[n.Z.hs.ks]||!1)||void 0}},4790:(t,e,i)=>{i.r(e),i.d(e,{changeUser:()=>l});var n=i(3774),s=i(8548),r=i(2367),a=i(7615),o=i(3905);function l(t,e){if(!n.ZP.rr())return;if(null==t||0===t.length||t!=t)return void r.Z.j.error("changeUser requires a non-empty userId.");if((0,s.E)(t)>a.Z.lr)return void r.Z.j.error(`Rejected user id "${t}" because it is longer than ${a.Z.lr} bytes.`);if(null!=e&&!(0,o.ro)(e,"set signature for new user","signature"))return;const i=n.ZP.cr();i&&i.changeUser(t.toString(),n.ZP.gr(),e)}},6243:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(3774);function s(){if(n.ZP.rr())return n.ZP.jr()}},420:(t,e,i)=>{i.d(e,{S:()=>d});var n=i(2367),s=i(7671),r=i(3774),a=i(3046),o=i(3695),l=i(5806),u=i(3905),c=i(5319),h=i(6243);function d(t,e,d){if(r.ZP.rr())if(u.y9.test(t)){const e=(0,a.OL)(t);if(!e)return;const d=t=>{if(!(0,u.zR)(t))return void n.Z.j.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);const e=a.A9.properties.type,p=a.A9.properties.ce,b=a.A9.properties.me,m=t[e];if(m===a.A9.types.le){const e=t[p];for(const t of e)d(t)}else{const e=t[b];let u,d;switch(m){case a.A9.types.logCustomEvent:Promise.resolve().then(i.bind(i,1454)).then((({logCustomEvent:t})=>{r.ZP.ue()?(d=Array.prototype.slice.call(e),t(...d)):n.Z.j.error(s.Go)}));break;case a.A9.types.requestPushPermission:Promise.resolve().then(i.bind(i,2261)).then((({requestPushPermission:t})=>{r.ZP.ue()?"Safari"===o.Z.browser&&o.Z.OS===l.T.fe?window.navigator.standalone&&t():t():n.Z.j.error(s.Go)}));break;case a.A9.types.setEmailNotificationSubscriptionType:case a.A9.types.setPushNotificationSubscriptionType:case a.A9.types.setCustomUserAttribute:case a.A9.types.addToSubscriptionGroup:case a.A9.types.removeFromSubscriptionGroup:case a.A9.types.addToCustomAttributeArray:case a.A9.types.removeFromCustomAttributeArray:u=(0,h.P)(),u&&u[m](...Array.prototype.slice.call(e));break;case a.A9.types.de:case a.A9.types.pe:d=Array.prototype.slice.call(e),c.SD.openUri(...d);break;default:n.Z.j.info(`Ignoring unknown Braze Action: ${m}`)}}};d(e)}else c.SD.openUri(t,e,d)}},1454:(t,e,i)=>{i.r(e),i.d(e,{logCustomEvent:()=>c});var n=i(3774),s=i(9179),r=i(2367),a=i(4365),o=i(9342),l=i(3905),u=i(7671);function c(t,e){if(!n.ZP.rr())return!1;if(null==t||t.length<=0)return r.Z.j.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!(0,l.zM)(t,"log custom event","the event name"))return!1;const[i,c]=(0,l.lg)(e,u._P,"eventProperties",`log custom event "${t}"`,"event");if(!i)return!1;const h=n.ZP.tr();if(h&&h.ge(t))return r.Z.j.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;const d=s.Z.N(r.Z.q.CustomEvent,{n:t,p:c});if(d.O){r.Z.j.info(`Logged custom event "${t}".`);for(const i of d.ve)o.n.er().je(a.Z.be,[t,e],i)}return d.O}},4650:(t,e,i)=>{i.r(e),i.d(e,{requestImmediateDataFlush:()=>s});var n=i(3774);function s(t){if(!n.ZP.rr())return;const e=n.ZP.cr();e&&e.requestImmediateDataFlush(t)}},3340:(t,e,i)=>{i.d(e,{q:()=>h});var n=i(1792),s=i(8376),r=i(4410),a=i(1090),o=i(4072),l=i(3811),u=i(6616),c=i(2367);function h(t){if(!t)return null;if(t.is_control)return s.Z.fromJson(t);let e=t.type;null!=e&&(e=e.toUpperCase());const i=t.message,h=t.text_align_message,d=t.slide_from,p=t.extras,b=t.trigger_id,m=t.click_action,f=t.uri,g=t.open_target,v=t.message_close,w=t.duration,y=t.icon,x=t.image_url,k=t.image_style,Z=t.icon_color,S=t.icon_bg_color,E=t.bg_color,A=t.text_color,_=t.close_btn_color,N=t.header,T=t.text_align_header,C=t.header_text_color,I=t.frame_color,O=[];let P=t.btns;null==P&&(P=[]);for(let t=0;t<P.length;t++)O.push(o.Z.fromJson(P[t]));const j=t.crop_type,D=t.orientation,z=t.animate_in,U=t.animate_out;let M,L=t.html_id,R=t.css;if(null!=L&&""!==L&&null!=R&&""!==R||(L=void 0,R=void 0),e===l.Z.es||e===n.Z.Ee.Ne)M=new l.Z(i,h,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,z,U,N,T,C,I,O,j,L,R);else if(e===r.Z.es)M=new r.Z(i,h,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,z,U,N,T,C,I,O,j,D,L,R);else if(e===u.Z.es)M=new u.Z(i,h,d,p,b,m,f,g,v,w,y,x,Z,S,E,A,_,z,U,L,R);else{if(e!==a.Z.es&&e!==n.Z.Ee.Pe)return void c.Z.j.error("Ignoring message with unknown type "+e);{const e=t.message_fields;M=new a.Z(i,p,b,v,w,z,U,I,L,R,e),M.trusted=t.trusted||!1}}return M.Ce=e,M}},1087:(t,e,i)=>{i.d(e,{Z:()=>Z});var n=i(1843),s=i(3774),r=i(8376),a=i(1090),o=i(1792),l=i(4072),u=i(9179),c=i(3340),h=i(6504),d=i(4673),p=i(2367),b=i(4663),m=i(2246),f=i(2893),g=i(3905),v=i(3046),w=i(4556),y=i(6870);class x{constructor(t,e,i,n){this.gt=t,this._e=e,this.u=i,this.ft=n,this.gt=t,this._e=e,this.u=i,this.ft=n,this.Se=new b.Z,s.ZP.jt(this.Se),this.Oe=1e3,this.Re=6e4,this.Qe=null}Ue(){return this.Se}Ve(t){return this.Se.lt(t)}We(){return this.Qe}Xe(t){this.Qe=t}Ye(t,e){if(!t)return new d.Z;if(!(0,f.fk)(o.Z.Me,e,`${e} is not a valid in-app message display failure`,"InAppMessage.DisplayFailures"))return new d.Z;const i={trigger_ids:[t],error_code:e};return u.Z.N(p.Z.q.Ze,i)}N(t,e,i,n){const s=new d.Z;let o;if(t instanceof r.Z)o={trigger_ids:[t.triggerId]};else{if(e===p.Z.q.Ii||t instanceof a.Z&&e===p.Z.q.Mi){if(!t.p(n))return p.Z.j.info("This in-app message has already received a click. Ignoring analytics event."),s}else if(e===p.Z.q._i&&!t.M())return p.Z.j.info("This in-app message has already received an impression. Ignoring analytics event."),s;o=this.Pi(t)}return null==o?s:(null!=i&&(o.bid=i),u.Z.N(e,o))}Gi(t,e){const i=new d.Z;if(!t.p())return p.Z.j.info("This in-app message button has already received a click. Ignoring analytics event."),i;const n=this.Pi(e);return null==n?i:t.id===l.Z.Oi?(p.Z.j.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=t.id&&(n.bid=t.id),u.Z.N(p.Z.q.Mi,n))}Hi(t){const e=t.messageFields;return null!=e&&e.is_push_primer||!1}Ji(t){if(!(t instanceof o.Z))return;const e=t=>{if(!t)return;const e=(0,v.OL)(t);return(0,v.je)(e)?(0,v.Tu)(v.yi.Ki,"In-App Message"):(0,v.zA)(e)&&!w.Z.Li()?(0,v.Tu)(v.yi.Qi,"In-App Message"):void 0};if(this.Hi(t)&&!w.Z.Li())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";const i=t.buttons||[];let n;for(const t of i)if(t.clickAction===o.Z.ClickAction.URI&&t.uri&&g.y9.test(t.uri)&&(n=e(t.uri),n))return n;return t.clickAction===o.Z.ClickAction.URI&&t.uri&&g.y9.test(t.uri)?e(t.uri):void 0}Vi(t,e,i,s){if(!this.gt)return;const r=this.gt.Wi(!1,!1),a=this.gt.Gs(r);a.template={trigger_id:t.triggerId,trigger_event_type:e},null!=i&&(a.template.data=i.Xi());const l=this.gt.Ks(a,y.Z.Qs.Yi);this.gt.Vs(a,(()=>{this.gt&&(y.Z.Xs(this.u,y.Z.Qs.Yi,(new Date).valueOf()),n.Z.Ys({url:`${this.gt.Zs()}/template/`,data:a,headers:l,O:e=>{if(!this.gt.ti(a,e,l))return this.Ye(t.triggerId,o.Z.Me.Zi),void("function"==typeof t.Mr&&t.Mr());if(this.gt.si(),null==e||null==e.templated_message)return void this.Ye(t.triggerId,o.Z.Me.Zi);const i=e.templated_message;if(i.type!==m.Z.Gr._r)return void this.Ye(t.triggerId,o.Z.Me.Or);const n=(0,c.q)(i.data);if(null==n)return void this.Ye(t.triggerId,o.Z.Me.Or);const s=this.Ji(n);if(s)return p.Z.j.error(s),void("function"==typeof t.Mr&&t.Mr());"function"==typeof t.Hr?t.Hr(n):this.Ye(t.triggerId,o.Z.Me.Zi)},error:n=>{let r=`getting user personalization for message ${t.triggerId}`;if((new Date).valueOf()-t.Jr>t.Kr)this.Ye(t.triggerId,o.Z.Me.Zi);else{const n=Math.min(t.Kr,this.Re),a=this.Oe;null==s&&(s=a);const o=Math.min(n,(0,h.R)(a,3*s));r+=`. Retrying in ${o} ms`,setTimeout((()=>{this.Vi(t,e,i,o)}),o)}this.gt.ii(n,r)}}))}))}Pi(t){if(null==t.triggerId)return p.Z.j.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const e={};return null!=t.triggerId&&(e.trigger_ids=[t.triggerId]),e}}const k={i:null,t:!1,m:()=>(k.o(),k.i||(k.i=new x(s.ZP.ar(),s.ZP.aa(),s.ZP.l(),s.ZP.ir())),k.i),o:()=>{k.t||(s.ZP.g(k),k.t=!0)},destroy:()=>{k.i=null,k.t=!1}},Z=k},8376:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(t){this.triggerId=t,this.triggerId=t,this.extras={},this.isControl=!0}static fromJson(t){return new n(t.trigger_id)}}},4410:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,N){l=l||n.Z.DismissType.MANUAL,A=A||n.Z.Orientation.PORTRAIT,super(t,e,void 0,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E=E||n.Z.CropType.CENTER_CROP,A,_,N),this.Le=n.Z.TextAlignment.CENTER}}s.es=n.Z.Ee.so},1090:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h){super(t,void 0,void 0,e,i,void 0,void 0,void 0,s=s||n.Z.DismissType.MANUAL,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,c),this.messageFields=h,this.messageFields=h}io(){return!1}p(t){if(this.Ce===n.Z.Ee.do){if(this.vo)return!1;this.vo=!0}return this.ht.Et(t),!0}}s.es=n.Z.Ee.do},4072:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(1792),s=i(4663);class r{constructor(t,e,i,a,o,l,u){this.text=t,this.backgroundColor=e,this.textColor=i,this.borderColor=a,this.clickAction=o,this.uri=l,this.id=u,this.text=t||"",this.backgroundColor=e||n.Z.Vr.Ur,this.textColor=i||n.Z.Vr.Wr,this.borderColor=a||this.backgroundColor,this.clickAction=o||n.Z.ClickAction.NONE,this.uri=l,null==u&&(u=r.Oi),this.id=u,this.vo=!1,this.ht=new s.Z}subscribeToClickedEvent(t){return this.ht.lt(t)}removeSubscription(t){this.ht.removeSubscription(t)}removeAllSubscriptions(){this.ht.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.ht.Et(),!0)}static fromJson(t){return new r(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}r.Oi=-1},1792:(t,e,i)=>{i.d(e,{Z:()=>u});var n=i(3774),s=i(3695),r=i(1507),a=i(7429),o=i(4663),l=i(7048);class u{constructor(t,e,i,n,s,r,a,l,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,N,T,C){this.message=t,this.messageAlignment=e,this.slideFrom=i,this.extras=n,this.triggerId=s,this.clickAction=r,this.uri=a,this.openTarget=l,this.dismissType=c,this.duration=h,this.icon=d,this.imageUrl=p,this.imageStyle=b,this.iconColor=m,this.iconBackgroundColor=f,this.backgroundColor=g,this.textColor=v,this.closeButtonColor=w,this.animateIn=y,this.animateOut=x,this.header=k,this.headerAlignment=Z,this.headerTextColor=S,this.frameColor=E,this.buttons=A,this.cropType=_,this.orientation=N,this.htmlId=T,this.css=C,this.message=t,this.messageAlignment=e||u.TextAlignment.CENTER,this.duration=h||5e3,this.slideFrom=i||u.SlideFrom.BOTTOM,this.extras=n||{},this.triggerId=s,this.clickAction=r||u.ClickAction.NONE,this.uri=a,this.openTarget=l||u.OpenTarget.NONE,this.dismissType=c||u.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=b||u.ImageStyle.TOP,this.iconColor=m||u.Vr.Wr,this.iconBackgroundColor=f||u.Vr.Ur,this.backgroundColor=g||u.Vr.Wr,this.textColor=v||u.Vr.th,this.closeButtonColor=w||u.Vr.sh,this.animateIn=y,null==this.animateIn&&(this.animateIn=!0),this.animateOut=x,null==this.animateOut&&(this.animateOut=!0),this.header=k,this.headerAlignment=Z||u.TextAlignment.CENTER,this.headerTextColor=S||u.Vr.th,this.frameColor=E||u.Vr.ih,this.buttons=A||[],this.cropType=_||u.CropType.FIT_CENTER,this.orientation=N,this.htmlId=T,this.css=C,this.isControl=!1,this.hh=!1,this.eh=!1,this.vo=!1,this.nh=!1,this.qe=null,this.ke=null,this.ht=new o.Z,this.oh=new o.Z,this.Le=u.TextAlignment.CENTER}subscribeToClickedEvent(t){return this.ht.lt(t)}subscribeToDismissedEvent(t){return this.oh.lt(t)}removeSubscription(t){this.ht.removeSubscription(t),this.oh.removeSubscription(t)}removeAllSubscriptions(){this.ht.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.he(this.qe)}xe(){return!0}io(){return this.xe()}$e(){return null!=this.htmlId&&this.htmlId.length>4}ye(){return this.$e()&&null!=this.css&&this.css.length>0}Ae(){if(this.$e()&&this.ye())return this.htmlId+"-css"}M(){return!this.eh&&(this.eh=!0,!0)}Qr(){return this.eh}p(t){return!this.vo&&(this.vo=!0,this.ht.Et(),!0)}F(){return!this.nh&&(this.nh=!0,this.oh.Et(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");if(null==e&&(e=t),this.xe()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(u.rh)&&t.remove(u.rh),document.body.removeEventListener("touchmove",u.lh)}e.className=e.className.replace(u.uh,u.Eh)}return this.animateOut||!1}he(t,e){if(null==t)return;let i;this.qe=null,i=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let n=!1;i&&(n=this.hide(i));const r=document.body;let a;null!=r&&(a=r.scrollTop);const o=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const i=this.Ae();if(null!=i){const t=document.getElementById(i);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=r&&"Safari"===s.Z.browser&&(r.scrollTop=a),e?e():this.F()};n?setTimeout(o,u.Th):o(),this.ke&&this.ke.focus()}Be(){return document.createTextNode(this.message||"")}Ie(t){let e="";this.message||this.header||!this.xe()||(e="Modal Image"),t.setAttribute("alt",e)}static lh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${u.rh}`)&&t.preventDefault()}ah(t){const e=t.parentNode;this.xe()&&null!=e&&this.orientation!==u.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(u.rh),document.body.addEventListener("touchmove",u.lh,!!(0,r.QZ)()&&{passive:!1})),t.className+=" "+u.uh}static mh(t){if(t.keyCode===a.m.Ih&&!n.ZP.nn(n.JY.Lh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let e=!1;for(const i of t){let t=null;(0,l.f)(i)&&i.contentWindow&&(t=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,r.$j)(t),e=!0)}if(!e){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,r.$j)(t)}}}Ah(){this.hh||n.ZP.nn(n.JY.Lh)||(document.addEventListener("keydown",u.mh,!1),n.ZP.Nh((()=>{document.removeEventListener("keydown",u.mh)})),this.hh=!0)}}u.Vr={th:4281545523,Wr:4294967295,Ur:4278219733,dh:4293914607,_h:4283782485,ih:3224580915,sh:4288387995},u.Me={Oh:"hd",ze:"ias",Sh:"of",Dh:"do",Or:"umt",Zi:"tf",Mh:"te"},u.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},u.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},u.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u.OpenTarget={NONE:"NONE",BLANK:"BLANK"},u.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},u.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},u.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},u.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},u.Ee={Rh:"SLIDEUP",bh:"MODAL",Ne:"MODAL_STYLED",so:"FULL",do:"WEB_HTML",Pe:"HTML",ph:"HTML_FULL"},u.Th=500,u.Uh=200,u.uh="ab-show",u.Eh="ab-hide",u.rh="ab-pause-scrolling"},3811:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_){super(t,e,void 0,i,s,r,a,o,l=l||n.Z.DismissType.MANUAL,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E=E||n.Z.CropType.FIT_CENTER,void 0,A,_),this.Le=n.Z.TextAlignment.CENTER}}s.es=n.Z.Ee.bh},6616:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(1792),s=i(1507);class r extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x){f=f||n.Z.Vr._h,m=m||n.Z.Vr.dh,super(t,e=e||n.Z.TextAlignment.START,i,s,r,a,o,l,u,c,h,d,void 0,p,b,m,f,g,v,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y,x),this.Le=n.Z.TextAlignment.START}xe(){return!1}Be(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}ah(t){const e=t.getElementsByClassName("ab-in-app-message")[0];s.lP.eo(e,!0,!0)||(this.slideFrom===n.Z.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.ah(t)}}r.es=n.Z.Ee.Rh},7048:(t,e,i)=>{i.d(e,{f:()=>n});const n=t=>null!==t&&"IFRAME"===t.tagName},761:(t,e,i)=>{i.r(e),i.d(e,{default:()=>b});var n=i(3774),s=i(2893),r=i(3552),a=i(2367),o=i(5966),l=i(7615),u=i(5319),c=i(4556),h=i(8031);class d{constructor(t,e,i,n,s,r,a,o,l,u){this.Yr=t,this.Xr=e,this.Zr=i,this.sn=s,this.rn=r,this.wt=a,this.on=o,this.un=l,this.u=u,this.Yr=t,this.Xr=e,this.Zr=i,this.hn=n+"/safari/"+e,this.sn=s||"/service-worker.js",this.rn=r,this.wt=a,this.on=o||!1,this.un=l||!1,this.u=u,this.an=c.Z.cn(),this.fn=c.Z.ln()}dn(){return this.un}pn(t,e,i,n,s){t.unsubscribe().then((t=>{t?this.bn(e,i,n,s):(a.Z.j.error("Failed to unsubscribe device from push."),"function"==typeof s&&s(!1))})).catch((t=>{a.Z.j.error("Push unsubscription error: "+t),"function"==typeof s&&s(!1)}))}mn(t,e,i){const n=(t=>{if("string"==typeof t)return t;if(0!==t.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return t.endpoint;let e=t.endpoint;const i=t;return i.yn&&-1===t.endpoint.indexOf(i.yn)&&(e=t.endpoint+"/"+i.yn),e})(t);let s=null,r=null;const a=t;if(null!=a.getKey)try{const t=Array.from(new Uint8Array(a.getKey("p256dh"))),e=Array.from(new Uint8Array(a.getKey("auth")));s=btoa(String.fromCharCode.apply(null,t)),r=btoa(String.fromCharCode.apply(null,e))}catch(t){if("invalid arguments"!==(0,h.e)(t))throw t}const o=(t=>{let e;return t.options&&(e=t.options.applicationServerKey)&&e.byteLength&&e.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(e)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(a);this.Yr&&this.Yr.gn(n,e,s,r,o),n&&"function"==typeof i&&i(n,s,r)}wn(){this.Yr&&this.Yr.vn(!0)}kn(t,e){this.Yr&&this.Yr.vn(!1),a.Z.j.info(t),"function"==typeof e&&e(!1)}Pn(t,e,i,n){var s;if("default"===e.permission)try{window.safari.pushNotification.requestPermission(this.hn,t,{api_key:this.Xr,device_id:(null===(s=this.Zr)||void 0===s?void 0:s.te().id)||""},(e=>{"granted"===e.permission&&this.Yr&&this.Yr.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.Pn(t,e,i,n)}))}catch(t){this.kn("Could not request permission for push: "+t,n)}else"denied"===e.permission?this.kn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",n):"granted"===e.permission&&(a.Z.j.info("Device successfully subscribed to push."),this.mn(e.deviceToken,new Date,i))}requestPermission(t,e,i){const n=n=>{switch(n){case"granted":return void("function"==typeof t&&t());case"default":return void("function"==typeof e&&e());case"denied":return void("function"==typeof i&&i());default:a.Z.j.error("Received unexpected permission result "+n)}};let s=!1;const r=window.Notification.requestPermission((t=>{s&&n(t)}));r?r.then((t=>{n(t)})):s=!0}bn(t,e,i,n){const s={userVisibleOnly:!0};null!=e&&(s.applicationServerKey=e),t.pushManager.subscribe(s).then((t=>{a.Z.j.info("Device successfully subscribed to push."),this.mn(t,new Date,i)})).catch((t=>{c.Z.isPushBlocked()?(a.Z.j.info("Permission for push notifications was denied."),"function"==typeof n&&n(!1)):(a.Z.j.error("Push subscription failed: "+t),"function"==typeof n&&n(!0))}))}Dn(){return this.on?navigator.serviceWorker.getRegistration(this.sn):navigator.serviceWorker.register(this.sn).then((()=>navigator.serviceWorker.ready.then((t=>(t&&"function"==typeof t.update&&t.update().catch((t=>{a.Z.j.info("ServiceWorker update failed: "+t)})),t)))))}Sn(t){this.on||(t.unregister(),a.Z.j.info("Service worker successfully unregistered."))}subscribe(t,e){if(!c.Z.isPushSupported())return a.Z.j.info(d.An),void("function"==typeof e&&e(!1));if(this.an){if(!this.on&&null!=window.location){let t=this.sn;-1===t.indexOf(window.location.host)&&(t=window.location.host+t),-1===t.indexOf(window.location.protocol)&&(t=window.location.protocol+"//"+t);const i=t.substr(0,t.lastIndexOf("/")+1);if(0!==u.SD.jn().indexOf(i))return a.Z.j.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+t+")"),void("function"==typeof e&&e(!0))}if(c.Z.isPushBlocked())return void this.kn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.wt&&!this.wt.Un()&&0===this.wt.oi())return a.Z.j.info("Waiting for VAPID key from server config before subscribing to push."),void this.wt.Wn((()=>{this.subscribe(t,e)}));const i=()=>{a.Z.j.info("Permission for push notifications was denied."),"function"==typeof e&&e(!1)},n=()=>{let t="Permission for push notifications was ignored.";c.Z.isPushBlocked()&&(t+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),a.Z.j.info(t),"function"==typeof e&&e(!0)},h=c.Z.isPushPermissionGranted(),d=()=>{!h&&this.Yr&&this.Yr.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.Dn().then((i=>{if(null==i)return a.Z.j.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof e&&e(!0));i.pushManager.getSubscription().then((n=>{let l=null;if(this.wt&&null!=this.wt.Un()&&(l=a.Z.xn._n(this.wt.Un())),n){let u,c=null,h=null;if(this.u&&(u=this.u.v(o.I.k.Nn)),u&&!(0,s.kJ)(u)){let t;try{t=r.Z.zn(u).Tn}catch(e){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(c=t,h=new Date(c),h.setMonth(c.getMonth()+6))}null!=l&&n.options&&n.options.applicationServerKey&&n.options.applicationServerKey.byteLength&&n.options.applicationServerKey.byteLength>0&&!(0,s.Xy)(l,new Uint8Array(n.options.applicationServerKey))?(n.options.applicationServerKey.byteLength>12?a.Z.j.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):a.Z.j.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.pn(n,i,l,t,e)):n.expirationTime&&new Date(n.expirationTime).valueOf()<=(new Date).valueOf()?(a.Z.j.info("Push subscription is expired, creating new subscription."),this.pn(n,i,l,t,e)):u&&(0,s.kJ)(u)?this.pn(n,i,l,t,e):null==h?(a.Z.j.info("No push subscription creation date found, creating new subscription."),this.pn(n,i,l,t,e)):h.valueOf()<=(new Date).valueOf()?(a.Z.j.info("Push subscription older than 6 months, creating new subscription."),this.pn(n,i,l,t,e)):(a.Z.j.info("Device already subscribed to push, sending existing subscription to backend."),this.mn(n,c,t))}else this.bn(i,l,t,e)})).catch((t=>{a.Z.j.error("Error checking current push subscriptions: "+t)}))})).catch((t=>{a.Z.j.error("ServiceWorker registration failed: "+t)}))};this.requestPermission(d,n,i)}else if(this.fn){if(null==this.rn||""===this.rn)return a.Z.j.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof e&&e(!0));const i=window.safari.pushNotification.permission(this.rn);this.Pn(this.rn,i,t,e)}}unsubscribe(t,e){if(!c.Z.isPushSupported())return a.Z.j.info(d.An),void("function"==typeof e&&e());this.an?navigator.serviceWorker.getRegistration().then((i=>{i?i.pushManager.getSubscription().then((n=>{n&&(this.wn(),n.unsubscribe().then((n=>{n?(a.Z.j.info("Device successfully unsubscribed from push."),"function"==typeof t&&t()):(a.Z.j.error("Failed to unsubscribe device from push."),"function"==typeof e&&e()),this.Sn(i)})).catch((t=>{a.Z.j.error("Push unsubscription error: "+t),"function"==typeof e&&e()})))})).catch((t=>{a.Z.j.error("Error unsubscribing from push: "+t),"function"==typeof e&&e()})):(a.Z.j.info("Device already unsubscribed from push."),"function"==typeof t&&t())})):this.fn&&(this.wn(),a.Z.j.info("Device unsubscribed from push."),"function"==typeof t&&t())}}d.An="Push notifications are not supported in this browser.";const p={t:!1,i:null,m:()=>(p.o(),p.i||(p.i=new d(n.ZP.jr(),n.ZP.ea(),n.ZP.ie(),n.ZP.Zs(),n.ZP.nn(n.JY.na),n.ZP.nn(n.JY.ra),n.ZP.tr(),n.ZP.nn(n.JY.ta),n.ZP.nn(n.JY.ia),n.ZP.l())),p.i),o:()=>{p.t||(n.ZP.g(p),p.t=!0)},destroy:()=>{p.i=null,p.t=!1}},b=p},2261:(t,e,i)=>{i.r(e),i.d(e,{requestPushPermission:()=>r});var n=i(3774),s=i(761);function r(t,e){if(n.ZP.rr())return s.default.m().subscribe(((e,i,s)=>{const r=n.ZP.cr();r&&r.requestImmediateDataFlush(),"function"==typeof t&&t(e,i,s)}),e)}},7824:(t,e,i)=>{i.r(e),i.d(e,{unregisterPush:()=>r});var n=i(3774),s=i(761);function r(t,e){if(n.ZP.rr())return s.default.m().unsubscribe(t,e)}},4556:(t,e,i)=>{i.d(e,{Z:()=>s});const n={cn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,ln:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.cn()||n.ln(),isPushBlocked:()=>{const t=n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,e=n.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Li:()=>!n.isPushBlocked()&&n.isPushSupported()&&!n.isPushPermissionGranted()},s=n},7615:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(2893),s=i(2367),r=i(3905),a=i(7671),o=i(7750);class l{constructor(t,e){this.ft=t,this.Ci=e,this.ft=t,this.Ci=e}getUserId(t){null==t&&s.Z.j.error("getUserId must be supplied with a callback. e.g., braze.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})"),"function"==typeof t&&t(this.ft.getUserId())}addAlias(t,e){return!(0,r.ro)(t,"add alias","the alias",!1)||t.length<=0?(s.Z.j.error("addAlias requires a non-empty alias"),!1):!(0,r.ro)(e,"add alias","the label",!1)||e.length<=0?(s.Z.j.error("addAlias requires a non-empty label"),!1):this.Ci.Cn(t,e).O}setFirstName(t){return!!(0,r.ro)(t,"set first name","the firstName",!0)&&this.ft.nu("first_name",t)}setLastName(t){return!!(0,r.ro)(t,"set last name","the lastName",!0)&&this.ft.nu("last_name",t)}setEmail(t){return null===t||(0,r.vV)(t)?this.ft.nu("email",t):(s.Z.j.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!(0,n.fk)(l.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.ft.nu("gender",t)}setDateOfBirth(t,e,i){return null===t&&null===e&&null===i?this.ft.nu("dob",null):(t=null!=t?parseInt(t.toString()):null,e=null!=e?parseInt(e.toString()):null,i=null!=i?parseInt(i.toString()):null,null==t||null==e||null==i||isNaN(t)||isNaN(e)||isNaN(i)||e>12||e<1||i>31||i<1?(s.Z.j.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.ft.nu("dob",`${t}-${e}-${i}`))}setCountry(t){return!!(0,r.ro)(t,"set country","the country",!0)&&this.ft.nu("country",t)}setHomeCity(t){return!!(0,r.ro)(t,"set home city","the homeCity",!0)&&this.ft.nu("home_city",t)}setLanguage(t){return!!(0,r.ro)(t,"set language","the language",!0)&&this.ft.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!(0,n.fk)(l.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.ft.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!(0,n.fk)(l.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.ft.nu("push_subscribe",t)}setPhoneNumber(t){return!!(0,r.ro)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(l.In)?this.ft.nu("phone",t):(s.Z.j.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,e,i,n,r){return null==t||null==e?(s.Z.j.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=i&&(i=parseFloat(i.toString())),null!=n&&(n=parseFloat(n.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(t)||isNaN(e)||null!=i&&isNaN(i)||null!=n&&isNaN(n)||null!=r&&isNaN(r)?(s.Z.j.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(s.Z.j.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):null!=i&&i<0||null!=r&&r<0?(s.Z.j.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ci.setLastKnownLocation(this.ft.getUserId(),t,e,n,i,r).O)}setCustomUserAttribute(t,e,i){if(!(0,r.bj)(t))return!1;const l=e=>{const[i]=(0,r.lg)(e,a.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return i};if((0,n.kJ)(e)){const[i,n]=(0,r.$g)(t,e);if(!i&&!n&&0!==e.length)return!1;if(i||0===e.length)return this.Ci.En(s.Z.q.Fn,t,e).O;for(const t of e)if(!l(t))return!1}else if((0,n.Kn)(e)){if(!l(e))return!1;if(i)return this.Ci.En(s.Z.q.$n,t,e).O}else{if(void 0===e||!(0,r.UO)(e))return!1;if((0,n.J_)(e)&&(e=(0,o.BT)(e)),"string"==typeof e&&!(0,r.zM)(e,`set custom user attribute "${t}"`,"the element in the given array"))return!1}return this.ft.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!(0,r.zM)(t,"add to custom user attribute array","the given key")&&!(null!=e&&!(0,r.zM)(e,"add to custom user attribute array","the given value"))&&this.Ci.En(s.Z.q.Bn,t,e).O}removeFromCustomAttributeArray(t,e){return!!(0,r.zM)(t,"remove from custom user attribute array","the given key")&&!(null!=e&&!(0,r.zM)(e,"remove from custom user attribute array","the given value"))&&this.Ci.En(s.Z.q.Ln,t,e).O}incrementCustomUserAttribute(t,e){if(!(0,r.zM)(t,"increment custom user attribute","the given key"))return!1;null==e&&(e=1);const i=parseInt(e.toString());return isNaN(i)||i!==parseFloat(e.toString())?(s.Z.j.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Ci.En(s.Z.q.Rn,t,i).O}setCustomLocationAttribute(t,e,i){return!!(0,r.zM)(t,"set custom location attribute","the given key")&&((null!==e||null!==i)&&(e=null!=e?parseFloat(e.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==e&&null!=i||null!=e&&null==i||null!=e&&(isNaN(e)||e>90||e<-90)||null!=i&&(isNaN(i)||i>180||i<-180))?(s.Z.j.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.Ci.On(t,e,i).O)}addToSubscriptionGroup(t){return!(0,r.ro)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(s.Z.j.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ci.Gn(t,l.qn.SUBSCRIBED).O}removeFromSubscriptionGroup(t){return!(0,r.ro)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(s.Z.j.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ci.Gn(t,l.qn.UNSUBSCRIBED).O}gn(t,e,i,n,s){this.ft.gn(t,e,i,n,s),this.Ci.Hn()}vn(t){this.ft.vn(t)}}l.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},l.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},l.In=/^[0-9 .\\(\\)\\+\\-]+$/,l.qn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},l.Kn="user_id",l.lu="custom",l.lr=997},67:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(5563);class s{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnreadCardCount(){let t=0;for(const e of this.cards)e.viewed||e instanceof n.Z||t++;return t}ur(){throw new Error("Must be implemented in a subclass")}logCardImpressions(t){throw new Error("Must be implemented in a subclass")}logCardClick(t){throw new Error("Must be implemented in a subclass")}sr(){throw new Error("Must be implemented in a subclass")}}s.mr=6e4,s.Th=500,s.uo=1e4},158:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(){}Ts(t){}changeUser(t=!1){}clearData(t=!1){}}},7671:(t,e,i)=>{i.d(e,{De:()=>s,Fz:()=>n,Go:()=>u,JG:()=>h,O4:()=>c,Tt:()=>p,U4:()=>r,_P:()=>o,dH:()=>d,db:()=>l,rF:()=>a});const n=100,s="inAppMessage must be an InAppMessage object",r="must be a Card object",a=500,o="logCustomEvent",l="setCustomUserAttribute",u="Braze must be initialized before calling methods.",c=5,h=90,d=72e5,p=3},9179:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(2367),s=i(3774),r=i(7559),a=i(4673);const o={N:(t,e,i)=>{var o;const l=new a.Z,u=s.ZP.aa();if(!u)return n.Z.j.info(`Not logging event with type "${t}" because the current session ID could not be found.`),l;const c=u.co();l.ve.push(new r.Z(i||(null===(o=s.ZP.ir())||void 0===o?void 0:o.getUserId()),t,(new Date).valueOf(),c,e));const h=s.ZP.l();return h&&(l.O=h.bo(l.ve)),l}}},1311:(t,e,i)=>{i.d(e,{cP:()=>w,tQ:()=>x,cz:()=>Z,Yz:()=>E,cV:()=>S,GB:()=>_,Of:()=>A});var n=i(67),s=i(5608),r=i(1507),a=i(5563),o=i(2857),l=i(2893),u=i(7429),c=i(3774),h=i(3695),d=i(2367);const p={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/>Fö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 b{constructor(t,e){if(null!=t&&(t=t.toLowerCase()),null!=t&&null==p[t]){const e=t.indexOf("-");e>0&&(t=t.substring(0,e))}if(null==p[t]){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?d.Z.j.error(i):d.Z.j.info(i),t="en"}this.language=t}get(t){return p[this.language][t]}}const m={t:!1,i:null,m:()=>{if(m.o(),!m.i){let t=h.Z.language,e=!1;c.ZP.nn(c.JY.Mn)&&(t=c.ZP.nn(c.JY.Mn),e=!0),m.i=new b(t,e)}return m.i},o:()=>{m.t||(c.ZP.g(m),m.t=!0)},destroy:()=>{m.i=null,m.t=!1}},f=m;var g=i(3905),v=i(3046);const w="data-last-requested-refresh",y={};function x(t){t&&(t.className=t.className.replace("ab-show","ab-hide"),setTimeout((()=>{t&&t.parentNode&&t.parentNode.removeChild(t)}),n.Z.Th));const e=t.getAttribute("data-update-subscription-id");var i;null!=e&&(i=e,c.ZP.rr()&&c.ZP.removeSubscription(i));const s=t.getAttribute("data-listener-id");null!=s&&(window.removeEventListener("scroll",y[s]),delete y[s])}function k(t,e){const i=document.createElement("div");if(i.className="ab-feed-body",i.setAttribute("aria-label","Feed"),i.setAttribute("role","feed"),null==t.lastUpdated){const t=document.createElement("div");t.className="ab-no-cards-message";const e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",t.appendChild(e),i.appendChild(t)}else{let n=!1;const r=e=>t.logCardClick(e);for(const o of t.cards){const l=o instanceof a.Z;!l||t.ur()?(i.appendChild((0,s.Dj)(o,r,e)),n=n||!l):d.Z.j.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!n){const t=document.createElement("div");t.className="ab-no-cards-message",t.innerHTML=f.m().get("NO_CARDS_MESSAGE"),t.setAttribute("role","article"),i.appendChild(t)}}return i}function Z(t,e){if(null!=t&&null!=e){const i=[],n=e.querySelectorAll(".ab-card");t.fo||(t.fo={});for(let e=0;e<n.length;e++){const a=(0,s.sv)(n[e]),o=(0,r.rJ)(n[e]),l=(0,r.Fr)(n[e]);if(t.fo[a]){o||l||(0,s.pq)(n[e]);continue}let u=(0,s.ql)(n[e]),c=(0,s.rW)(n[e]);const h=u,d=c;if(!u&&o&&(u=!0,(0,s.Ji)(n[e])),!c&&l&&(c=!0,(0,s.Zw)(n[e])),u&&c){if(h&&d)continue;for(const e of t.cards)if(e.id===a){t.fo[e.id]=!0,i.push(e);break}}}i.length>0&&t.logCardImpressions(i)}}function S(t,e){if(null==t||null==e)return;e.setAttribute("aria-busy","true");const i=e.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");const s=(new Date).valueOf().toString();e.setAttribute("data-last-requested-refresh",s),setTimeout((()=>{if(e.getAttribute("data-last-requested-refresh")===s){const t=e.querySelectorAll(".fa-spin");for(let e=0;e<t.length;e++)t[e].className=t[e].className.replace(/fa-spin/g,"");const i=e.querySelectorAll(".ab-initial-spinner")[0];if(null!=i){const t=document.createElement("span");t.innerHTML=f.m().get("FEED_TIMEOUT_MESSAGE"),null!=i.parentNode&&(i.parentNode.appendChild(t),i.parentNode.removeChild(i))}"true"===e.getAttribute("aria-busy")&&e.setAttribute("aria-busy","false")}}),n.Z.uo),t.sr()}function E(t,e,i){const n=document.createElement("div");n.className="ab-feed ab-hide ab-effect-slide",n.setAttribute("role","dialog"),n.setAttribute("aria-label","Feed"),n.setAttribute("tabindex","-1");const s=document.createElement("div");s.className="ab-feed-buttons-wrapper",s.setAttribute("role","group"),n.appendChild(s);const r=document.createElement("i");r.className="fa fa-times ab-close-button",r.setAttribute("aria-label","Close Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");const a=t=>{x(n),t.stopPropagation()};r.addEventListener("keydown",(t=>{t.keyCode!==u.m.yo&&t.keyCode!==u.m.Fo||a(t)})),r.onclick=a;const o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",t&&null==t.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");const l=e=>{S(t,n),e.stopPropagation()};o.addEventListener("keydown",(t=>{t.keyCode!==u.m.yo&&t.keyCode!==u.m.Fo||l(t)})),o.onclick=l,s.appendChild(o),s.appendChild(r),n.appendChild(k(t,e));const c=()=>Z(t,n);if(n.addEventListener("scroll",c),!i){window.addEventListener("scroll",c);const t=d.Z.Z.Y();y[t]=c,n.setAttribute("data-listener-id",t)}return n}function A(t,e,i,n,s){if(!(0,l.kJ)(e))return;const r=[];for(const t of e)if(t instanceof o.Z){if(t.url&&g.y9.test(t.url)){const e=(0,v.OL)(t.url);if((0,v.je)(e)){d.Z.j.error((0,v.Tu)(v.yi.Ki,"Content Card"));continue}}r.push(t)}if(t.cards=r,t.lastUpdated=i,null!=n)if(n.setAttribute("aria-busy","false"),null==t.lastUpdated)x(n);else{const e=n.querySelectorAll(".ab-feed-body")[0];if(null!=e){const i=k(t,s);e.parentNode&&e.parentNode.replaceChild(i,e),Z(t,i.parentNode)}}}function _(t,e){t&&e.setAttribute("data-update-subscription-id",t)}},3774:(t,e,i)=>{i.d(e,{JY:()=>L,ZP:()=>R});var n=i(5966),s=i(4663),r=i(2367);class a{constructor(t,e,i){this.u=t,this.Jn=e,this.Qn=i,this.u=t,this.Jn=e||!1,this.Qn=i,this.Vn=new s.Z,this.Xn=0,this.Yn=1}Zn(){return this.Jn}gh(){return this.u.v(n.I.k.Fh)}setSdkAuthenticationSignature(t){const e=this.gh();this.u.D(n.I.k.Fh,t);const i=r.Z.zt.Ft;new r.Z.xt(i,r.Z.j).setItem(i.Jt.kh,this.Yn,t),e!==t&&this.si()}fh(){this.u.ri(n.I.k.Fh);const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).br(t.Jt.kh,this.Yn)}subscribeToSdkAuthenticationFailures(t){return this.Qn.lt(t)}wh(t){this.Qn.Et(t)}jh(){this.Vn.removeAllSubscriptions()}Ch(){this.Xn+=1}xh(){return this.Xn}si(){this.Xn=0}}var o=i(158),l=i(3695);class u{constructor(t){this.id=t,this.id=t}Xi(){const t={};return null!=this.browser&&(t.browser=this.browser),null!=this.Yo&&(t.browser_version=this.Yo),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}const c={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};var h=i(2308),d=i(2893),p=i(8031);class b{constructor(t,e){this.u=t,this.Qo=e,this.u=t,null==e&&(e=(0,d.VO)(c)),this.Qo=e}te(){let t=this.u.tu(n.I.eu.Xo);null==t&&(t=new h.Z(r.Z.Z.Y()),this.u.uu(n.I.eu.Xo,t));const e=new u(t.iu);for(let t=0;t<this.Qo.length;t++)switch(this.Qo[t]){case c.BROWSER:e.browser=l.Z.browser;break;case c.BROWSER_VERSION:e.Yo=l.Z.version;break;case c.OS:e.os=this.Zo();break;case c.RESOLUTION:e.sa=screen.width+"x"+screen.height;break;case c.LANGUAGE:e.language=l.Z.language;break;case c.TIME_ZONE:e.timeZone=this.oa(new Date);break;case c.USER_AGENT:e.userAgent=l.Z.userAgent}return e}Zo(){if(l.Z.ca())return l.Z.ca();const t=this.u.v(n.I.k.la);return t&&t.os_version?t.os_version:l.Z.Zo()}oa(t){let e=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){r.Z.j.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,p.e)(t)),e=!0}if(e)return"";const i=t.getTimezoneOffset();return this.fa(i)}fa(t){const e=Math.trunc(t/60),i=Math.trunc(t%60);let n="GMT";return 0!==t&&(n+=t<0?"+":"-",n+=("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(i)).slice(-2)),n}}var m=i(3826),f=i(7559),g=i(7750),v=i(9179),w=i(6870),y=i(7671);class x{constructor(t,e,i,n,s,r,a,o,l,u,c){this.Zr=t,this.u=e,this.jo=i,this.ft=n,this._e=s,this.wt=r,this.Xr=a,this.Do=o,this.Ro=l,this.Mo=u,this.appVersion=c,this.Zr=t,this.u=e,this.jo=i,this.ft=n,this._e=s,this.wt=r,this.Xr=a,this.Do=o,this.Ro=l,this.Mo=u,this.appVersion=c,this.ha=["npm"]}Gs(t,e=!1){const i=this.Zr.te(),s=i.Xi(),r=this.u.v(n.I.k.la);(0,d.Xy)(r,s)||(t.device=s),t.api_key=this.Xr,t.time=(0,g.FX)((new Date).valueOf(),!0);const a=this.u.v(n.I.k.ua)||[],o=this.u.v(n.I.k.ma)||"";if(this.ha.length>0&&(!(0,d.Xy)(a,this.ha)||o!==this._e.pa())&&(t.sdk_metadata=this.ha),t.sdk_version=this.Ro,this.Mo&&(t.sdk_flavor=this.Mo),t.app_version=this.appVersion,t.device_id=i.id,e){const e=this.ft.getUserId();null!=e&&(t.user_id=e)}return t}ti(t,e,i){const n=e.auth_error,s=e.error;if(!n&&!s)return!0;if(n){let e;this.jo.Ch();const s={errorCode:n.error_code};for(const t of i)(0,d.kJ)(t)&&"X-Braze-Auth-Signature"===t[0]&&(s.signature=t[1]);t.respond_with&&t.respond_with.user_id?s.userId=t.respond_with.user_id:t.user_id&&(s.userId=t.user_id);const a=n.reason;return a?(s.reason=a,e=`due to ${a}`):e=`with error code ${n.error_code}.`,this.jo.Zn()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),r.Z.j.error(`SDK Authentication failed ${e}`),this.Ra(t.events||[],t.attributes||[]),this.jo.wh(s),!1}if(s){let i,n=s;switch(n){case m.Z.ga:return i="Received successful response with empty body.",v.Z.N(r.Z.q.Is,{e:i}),r.Z.j.info(i),!1;case m.Z.qa:return i="Received successful response with invalid JSON",v.Z.N(r.Z.q.Is,{e:i+": "+e.response}),r.Z.j.info(i),!1;case m.Z.ba:n=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Do}`;break;case m.Z.Aa:n="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case m.Z.za:n="No device identifier. Please contact support@braze.com"}r.Z.j.error("Backend error: "+n)}return!1}Ba(t,e,i,n){return!!(t&&0!==t.length||e&&0!==e.length||i||n)}Da(t,e,i,n){const s=[],r=t=>t||"",a=r(this.ft.getUserId());let o=this.Wi(t,e);const l=[],u=[];let c,h=null;if(i.length>0){const t=[];for(const e of i){if(c=e.Xi(),this.jo.Zn()){if(a&&!c.user_id){h||(h={}),h.events||(h.events=[]),h.events.push(c);continue}if(r(c.user_id)!==a){u.push(c);continue}}t.push(c)}t.length>0&&(o.events=t)}if(n.length>0){const t=[];for(const e of n)this.jo.Zn()&&r(e.user_id)!==a?l.push(e):t.push(e);t.length>0&&(o.attributes=t)}if(this.Ra(u,l),o=this.Gs(o,!0),h){h=this.Gs(h,!1);const t={requestData:h,headers:this.Ks(h,w.Z.Qs.Sa)};s.push(t)}if(o&&!this.Ba(o.events,o.attributes,t,e))return h?s:null;const d={requestData:o,headers:this.Ks(o,w.Z.Qs.Sa)};return s.push(d),s}Ra(t,e){if(t){const e=[];for(const i of t){const t=f.Z.fromJson(i);t.time=(0,g.Pn)(t.time),e.push(t)}this.u.bo(e)}if(e)for(const t of e)this.u.va(t)}ii(t,e){let i="HTTP error ";null!=t&&(i+=t+" "),i+=e,r.Z.j.error(i)}qr(t){return v.Z.N(r.Z.q.ka,{n:t})}Wi(t,e,i){const n={};t&&(n.feed=!0),e&&(n.triggers=!0);const s=null!=i?i:this.ft.getUserId();return s&&(n.user_id=s),n.config={config_time:this.wt.oi()},{respond_with:n}}Ta(t){const e=(new Date).valueOf();let i=y.dH.toString();const n=w.Z.Xa(this.u,t);return-1!==n&&(i=(e-n).toString()),i}Ks(t,e,i=!1){const s=[["X-Braze-Api-Key",this.Xr]],r=this.Ta(e);s.push(["X-Braze-Last-Req-Ms-Ago",r]);let a=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),a=!0),null!=t.respond_with&&t.respond_with.feed&&(s.push(["X-Braze-FeedRequest","true"]),a=!0),e===w.Z.Qs.Os){s.push(["X-Braze-ContentCardsRequest","true"]);let t=this.u.v(n.I.k.Fs);t&&i||(t=0,this.u.D(n.I.k.Fs,t)),s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),a=!0}if(e===w.Z.Qs.xi&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),a=!0),a&&s.push(["X-Braze-DataRequest","true"]),this.jo.Zn()){const t=this.jo.gh();null!=t&&s.push(["X-Braze-Auth-Signature",t])}return s}Vs(t,e){const i=t.device;i&&i.os_version instanceof Promise?i.os_version.then((i=>{t.device.os_version=i,e()})):e()}si(){this.jo.si()}Zs(){return this.Do}addSdkMetadata(t){for(const e of t)-1===this.ha.indexOf(e)&&this.ha.push(e)}}var k=i(1843),Z=i(6504),S=i(4673),E=i(4556);class A{constructor(t,e,i,n,r,a,o,l,u,c){this.$l=t,this.Fl=e,this.Ll=0,this.Pl=o.Wa(),this.Jl=null,this.Bl=i,this.Ql=n,this.Xl=r,this.Zl=a,this.yh=o,this.$h=u,this.qh=c,this.Ph=l,this.Jh=new s.Z,this.Kh=50}Wh(t,e){return!t&&!e&&this.$h.xh()>=this.Kh}Bh(t){let e=this.Bl.El();if(t.length>0){const i=this.Xl.getUserId();for(const n of t){const t=!n.userId&&!i||n.userId===i;n.type===r.Z.q.Wl&&t&&(e=!0)}}return e}Gh(t,e,i,s,a,o,l){null==i&&(i=!0),i&&this.Hh();const u=this.yh.Ja(),c=this.yh.Ha();let h=!1;const d=(t,e)=>{let r=!1;w.Z.Xs(this.yh,w.Z.Qs.Sa,(new Date).valueOf()),k.Z.Ys({url:this.Fl+"/data/",data:t,headers:e,O:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Ll=Math.max(this.Ll-1,0)),this.qh.ti(t,i,e)?(this.$h.si(),this.Zl.ul(i),null!=t.respond_with&&t.respond_with.user_id!=this.Xl.getUserId()||(null!=t.device&&this.yh.D(n.I.k.la,t.device),null!=t.sdk_metadata&&(this.yh.D(n.I.k.ua,t.sdk_metadata),this.yh.D(n.I.k.ma,this.Bl.pa())),this.Ph(i),"function"==typeof s&&s())):i.auth_error&&(r=!0)},error:()=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Ll=Math.max(this.Ll-1,0)),this.qh.Ra(t.events,t.attributes),"function"==typeof a&&a()},ei:t=>{if("function"==typeof o&&o(t),i&&!h){if(t&&!r)this.Qh();else{let t=this.Jl;(null==t||t<1e3*this.Pl)&&(t=1e3*this.Pl),this.Qh(Math.min(3e5,(0,Z.R)(1e3*this.Pl,3*t)))}h=!0}}})},p=this.Bh(u),b=e||p;if(this.Wh(l,p))return void r.Z.j.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.qh.Ba(u,c,t,b))return this.Qh(),void("function"==typeof o&&o(!0));const m=this.qh.Da(t,b,u,c);b&&this.Ll++;let f=!1;if(m)for(const t of m)this.qh.Vs(t.requestData,(()=>d(t.requestData,t.headers))),f=!0;this.$h.Zn()&&i&&!f?this.Qh():p&&(r.Z.j.info("Invoking new session subscriptions"),this.Jh.Et())}Vh(){return this.Ll>0}Qh(t){this.Xh||(null==t&&(t=1e3*this.Pl),this.Hh(),this.Yh=setTimeout((()=>{if(document.hidden){const t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.Gh())};document.addEventListener(t,e,!1)}else this.Gh()}),t),this.Jl=t)}Hh(){null!=this.Yh&&(clearTimeout(this.Yh),this.Yh=null)}initialize(){this.Xh=!1,this.Qh()}destroy(){this.Jh.removeAllSubscriptions(),this.$h.jh(),this.Hh(),this.Xh=!0,this.Gh(null,null,!1),this.Yh=null}pr(t){return this.Jh.lt(t)}openSession(){const t=this.Bl.pa()!==this.Bl.co();t&&(this.yh.Pa(n.I.eu.Xo),this.yh.Pa(n.I.eu.su)),this.Gh(null,!1,null,null,null),this.Hn(),t&&Promise.resolve().then(i.bind(i,761)).then((t=>{if(this.Xh)return;const e=t.default.m();if(null!=e&&(E.Z.isPushPermissionGranted()||E.Z.isPushBlocked())){const t=()=>{e.dn()?r.Z.j.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()},i=(e,i)=>{i&&t()},s=()=>{const e=this.yh.v(n.I.k.Nn);(null==e||e)&&t()},a=r.Z.zt.Ft;new r.Z.xt(a,r.Z.j).hr(a.Jt.cu,i,s)}}))}changeUser(t,e,i){const s=this.Xl.getUserId();if(s!==t){this.Bl.kl(),null!=s&&this.Gh(null,!1,null,null,null),this.Xl.ru(t),i?this.$h.setSdkAuthenticationSignature(i):this.$h.fh();for(let t=0;t<e.length;t++)e[t].changeUser(null==s);null!=s&&this.yh.ri(n.I.k.L),this.yh.ri(n.I.k.la),this.openSession(),r.Z.j.info('Changed user to "'+t+'".')}else{let e="Doing nothing.";i&&this.$h.gh()!==i&&(this.$h.setSdkAuthenticationSignature(i),e="Updated SDK authentication signature"),r.Z.j.info(`Current user is already ${t}. ${e}`)}}requestImmediateDataFlush(t){this.Hh(),this.Bl.co(),this.Gh(null,null,null,null,(()=>{r.Z.j.error("Failed to flush data, request will be retried automatically.")}),t,!0)}requestFeedRefresh(){this.Bl.co(),this.Gh(!0)}$r(t,e){this.Bl.co(),r.Z.j.info("Requesting explicit trigger refresh."),this.Gh(null,!0,null,t,e)}Cn(t,e){const i=r.Z.q.Zh,n={a:t,l:e},s=v.Z.N(i,n);return s&&r.Z.j.info(`Logged alias ${t} with label ${e}`),s}En(t,e,i){if(this.Zl.hu(e))return r.Z.j.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new S.Z;const n={key:e,value:i},s=v.Z.N(t,n);if(s){const t="object"==typeof i?JSON.stringify(i,null,2):i;r.Z.j.info(`Logged custom attribute: ${e} with value: ${t}`)}return s}setLastKnownLocation(t,e,i,n,s,a){const o={latitude:e,longitude:i};null!=n&&(o.altitude=n),null!=s&&(o.ll_accuracy=s),null!=a&&(o.alt_accuracy=a);const l=v.Z.N(r.Z.q.au,o,t);return l&&r.Z.j.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}vr(t,e){const i=this.Bl.co();return new f.Z(this.Xl.getUserId(),r.Z.q.du,t,i,{cid:e})}Hn(){const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).setItem(t.Jt.Sa,1,{baseUrl:this.Fl,data:{api_key:this.$l,device_id:this.Ql.te().id},userId:this.Xl.getUserId(),sdkAuthEnabled:this.$h.Zn()})}Fr(t){for(const e of t)if(e.api_key===this.$l)this.qh.Ra(e.events,e.attributes);else{const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).setItem(t.Jt.yr,r.Z.Z.Y(),e)}}On(t,e,i){if(this.Zl.hu(t))return r.Z.j.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new S.Z;let n,s;return null===e&&null===i?(n=r.Z.q.fu,s={key:t}):(n=r.Z.q.gu,s={key:t,latitude:e,longitude:i}),v.Z.N(n,s)}Gn(t,e){const i={group_id:t,status:e};return v.Z.N(r.Z.q.pu,i)}}class _{constructor(t=0,e=[],i=[],n=[],s=null,r=null,a={enabled:!1},o={enabled:!1,refresh_rate_limit:-1}){this.ol=t,this.cl=e,this.gl=i,this.fl=n,this.bl=s,this.al=r,this.ml=a,this.mi=o,this.ol=t,this.cl=e,this.gl=i,this.fl=n,this.bl=s,this.al=r,this.ml=a,this.mi=o}ss(){return{s:"4.8.3",l:this.ol,e:this.cl,a:this.gl,p:this.fl,m:this.bl,v:this.al,c:this.ml,f:this.mi}}static zn(t){let e=t.l;return"4.8.3"!==t.s&&(e=0),new _(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f)}}class N{constructor(t){this.u=t,this.u=t,this.tl=new s.Z,this.el=new s.Z,this.sl=new s.Z,this.il=null,this.rl=null}ll(){if(null==this.rl){const t=this.u.v(n.I.k.hl);this.rl=null!=t?_.zn(t):new _}return this.rl}oi(){return this.ll().ol}ul(t){if(null!=t&&null!=t.config){const e=t.config;if(e.time>this.ll().ol){const t=new _(e.time,e.events_blacklist,e.attributes_blacklist,e.purchases_blacklist,e.messaging_session_timeout,e.vapid_public_key,e.content_cards,e.feature_flags);let i=!1;null!=t.al&&this.Un()!==t.al&&(i=!0);let s=!1;null!=t.ml.enabled&&this.ni()!==t.ml.enabled&&(s=!0);let r=!1;null!=t.mi.enabled&&this.bi()!==t.mi.enabled&&(r=!0),this.rl=t,this.u.D(n.I.k.hl,t.ss()),i&&this.tl.Et(),s&&this.el.Et(),r&&this.sl.Et()}}}Wn(t){const e=this.tl.lt(t);return this.il&&this.tl.removeSubscription(this.il),this.il=e,e}$s(t){return this.el.lt(t)}Ni(t){return this.sl.lt(t)}ge(t){return-1!==this.ll().cl.indexOf(t)}hu(t){return-1!==this.ll().gl.indexOf(t)}Dr(t){return-1!==this.ll().fl.indexOf(t)}dl(){return this.ll().bl}Un(){return this.ll().al}ni(){return this.ll().ml.enabled||!1}_s(){const t=this.ll().ml.rate_limit;return!(!t||null==t.enabled)&&t.enabled}fi(){if(!this._s())return-1;const t=this.ll().ml.rate_limit;return null==t.capacity?y.O4:t.capacity<=0?-1:t.capacity}di(){if(!this._s())return-1;const t=this.ll().ml.rate_limit;return null==t.refill_rate?y.JG:t.refill_rate<=0?-1:t.refill_rate}bi(){return this.ll().mi.enabled&&null==this.Si()?(v.Z.N(r.Z.q.Is,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ll().mi.enabled||!1}Si(){return this.ll().mi.refresh_rate_limit}}class T{constructor(t,e,i,n){this.u=t,this.ft=e,this.wt=i,this.wl=n,this.u=t,this.ft=e,this.wt=i,this.Sl=1e3,(null==n||isNaN(n))&&(n=1800),n<this.Sl/1e3&&(r.Z.j.info("Specified session timeout of "+n+"s is too small, using the minimum session timeout of "+this.Sl/1e3+"s instead."),n=this.Sl/1e3),this.wl=n}jl(t,e){return new f.Z(this.ft.getUserId(),r.Z.q.xl,t,e.iu,{d:(0,g.FX)(t-e.vl)})}pa(){const t=this.u.tu(n.I.eu.Dl);return null==t?null:t.iu}El(){const t=(new Date).valueOf(),e=this.wt.dl(),i=this.u.v(n.I.k.zl);if(null!=i&&null==e)return!1;let s=!1;return null==i?s=!0:null!=e&&(s=t-i>1e3*e),s&&this.u.D(n.I.k.zl,t),s}Cl(t,e){return null==e||null==e.Gl||!(t-e.vl<this.Sl)&&e.Gl<t}co(){const t=(new Date).valueOf(),e=t+1e3*this.wl,i=this.u.tu(n.I.eu.Dl);if(this.Cl(t,i)){let s="Generating session start event with time "+t;if(null!=i){let t=i.Nl;t-i.vl<this.Sl&&(t=i.vl+this.Sl),this.u.Hl(this.jl(t,i)),s+=" (old session ended "+t+")"}s+=". Will expire "+e.valueOf(),r.Z.j.info(s);const a=new h.Z(r.Z.Z.Y(),e);return this.u.Hl(new f.Z(this.ft.getUserId(),r.Z.q.Wl,t,a.iu)),this.u.uu(n.I.eu.Dl,a),null==this.u.v(n.I.k.zl)&&this.u.D(n.I.k.zl,t),a.iu}if(null!=i)return i.Nl=t,i.Gl=e,this.u.uu(n.I.eu.Dl,i),i.iu}kl(){const t=this.u.tu(n.I.eu.Dl);null!=t&&(this.u.ql(n.I.eu.Dl),this.u.Hl(this.jl((new Date).valueOf(),t)))}}const C={$o:function(t,e=!1){let i=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(n.I.k.Ea,"true"),localStorage.getItem(n.I.k.Ea)&&(localStorage.removeItem(n.I.k.Ea),i=!0)}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;i=!0}}catch(t){r.Z.j.info("Local Storage not supported!")}const s=C.wa(),a=new n.Z._a(t,s&&!e,i);let o;return o=i?new n.Z.Oa(t):new n.Z.xa,new n.Z(a,o)},wa:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}},I=C;var O=i(9342),P=i(8548),j=i(3552),D=i(7615);class z{constructor(t,e){this.wt=t,this.u=e,this.wt=t,this.u=e}getUserId(){const t=this.u.tu(n.I.eu.su);if(null==t)return null;let e=t.iu,i=(0,P.E)(e);if(i>D.Z.lr){for(;i>D.Z.lr;)e=e.slice(0,e.length-1),i=(0,P.E)(e);t.iu=e,this.u.uu(n.I.eu.su,t)}return e}ru(t){const e=null==this.getUserId();this.u.uu(n.I.eu.su,new h.Z(t)),e&&this.u.ou(t)}setCustomUserAttribute(t,e){if(this.wt.hu(t))return r.Z.j.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const i={};return i[t]=e,this.nu(D.Z.lu,i,!0)}nu(t,e,i=!1,n=!1){const s=this.u.mu(this.getUserId(),t,e);let a="",o=t,l=e;return i&&(a=" custom","object"==typeof e&&(o=Object.keys(e)[0],l=e[o],"object"==typeof l&&(l=JSON.stringify(l,null,2)))),!n&&s&&r.Z.j.info(`Logged${a} attribute ${o} with value ${l}`),s}gn(t,e,i,s,a){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",s,!1,!0),this.nu("custom_push_vapid_public_key",a,!1,!0);const o=r.Z.zt.Ft,l=new r.Z.xt(o,r.Z.j),u=new j.Z(t,e,i,s,a);this.u.D(n.I.k.Nn,u.ss()),l.setItem(o.Jt.cu,o.se,!0)}vn(t){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),t){const t=r.Z.zt.Ft,e=new r.Z.xt(t,r.Z.j);this.u.D(n.I.k.Nn,!1),e.setItem(t.Jt.cu,t.se,!1)}}}var U=i(1148),M=i(5319);const L={ho:"allowCrawlerActivity",Eo:"baseUrl",_o:"noCookies",Io:"devicePropertyAllowlist",ia:"disablePushTokenMaintenance",Ao:"enableLogging",So:"enableSdkAuthentication",ta:"manageServiceWorkerExternally",No:"minimumIntervalBetweenTriggerActionsInSeconds",wo:"sessionTimeoutInSeconds",To:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",Mn:"localization",lo:"contentSecurityNonce",Oo:"enableHtmlInAppMessages",Co:"allowUserSuppliedJavascript",mo:"inAppMessageZIndex",po:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Lo:"doNotLoadFontAwesome",Po:"sdkFlavor"},R=new class{constructor(){this.Xr="",this.Ro="",this.Mo=void 0,this.jo=null,this.Zr=null,this.gt=null,this.Ci=null,this.wt=null,this._e=null,this.u=null,this.ft=null,this.Do="",this.Uo=!1,this.Bo=!1,this.Wo=new s.Z,this.zo=new s.Z,this.options={},this.Vo=[],this.Go=[],this.Se=[],this.Ro="4.8.3"}Ko(t){this.Wo.lt(t)}Nh(t){this.zo.lt(t)}initialize(t,e){if(this.ue())return r.Z.j.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let o=this.nn(L.Ao);const u=(0,U.L)(M.SD.jn());if(u&&"true"===u.brazeLogging&&(o=!0),r.Z.j.init(o),r.Z.j.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return r.Z.j.error("Braze requires a valid API key to be initialized."),!1;this.Xr=t;let h=this.nn(L.Eo);if(null==h||""===h||"string"!=typeof h)return r.Z.j.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(h)&&(h=`https://${h}`);const p=h;if(h=document.createElement("a"),h.href=p,"/"===h.pathname&&(h=`${h}api/v3`),this.Do=h.toString(),l.Z.Ho&&!this.nn(L.ho))return r.Z.j.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Bo=!0,!1;const m=this.nn(L._o)||!1;if(this.u=I.$o(t,m),m&&this.u.qo(t),new n.Z.ee(null,!0).wr(n.I.ne))return r.Z.j.info("Ignoring all activity due to previous opt out"),this.Bo=!0,!1;for(const t of(0,d.XP)(this.options))-1===(0,d.VO)(r.Z.xo).indexOf(t)&&r.Z.j.warn(`Ignoring unknown initialization option '${t}'.`);const f=["mparticle","wordpress","tealium"];if(null!=this.nn(L.Po)){const t=this.nn(L.Po);-1!==f.indexOf(t)?this.Mo=t:r.Z.j.error("Invalid sdk flavor passed: "+t)}let g=this.nn(r.Z.xo.Io);if(null!=g)if((0,d.kJ)(g)){const t=[];for(let e=0;e<g.length;e++)(0,d.fk)(c,g[e],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(g[e]);g=t}else r.Z.j.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),g=null;this.Zr=new b(this.u,g),this.wt=new N(this.u),this.ft=new z(this.wt,this.u),this._e=new T(this.u,this.ft,this.wt,this.nn(L.wo));const v=new s.Z;return this.jo=new a(this.u,this.nn(L.So),v),this.jt(v),this.gt=new x(this.Zr,this.u,this.jo,this.ft,this._e,this.wt,this.Xr,this.Do,this.Ro,this.Mo||"",this.nn(L.To)),this.Ci=new A(this.Xr,this.Do,this._e,this.Zr,this.ft,this.wt,this.u,(t=>{if(this.ue())for(const e of this.gr())e.Ts(t)}),this.jo,this.gt),this.Ci.initialize(),r.Z.j.info(`Initialized for the Braze backend at "${this.nn(L.Eo)}" with API key "${this.Xr}".`),null!=this.nn(L.Oo)&&function(t,e,i){let n="The 'enableHtmlInAppMessages' initialization option is deprecated.";i&&(n+=` Please use '${i}' instead.`),r.Z.j.warn(n)}(0,0,"allowUserSuppliedJavascript"),O.n.init(),this.wt.Ni((()=>{this.Uo&&this.wt&&this.wt.bi()&&i.e(787).then(i.bind(i,9787)).then((t=>{this.Uo&&(0,t.default)()}))})),this.Ci.pr((()=>{this.Uo&&this.wt&&this.wt.bi()&&i.e(787).then(i.bind(i,9787)).then((t=>{this.Uo&&(0,t.default)(void 0,void 0,!0)}))})),this.Wo.Et(this.options),this.Uo=!0,!0}destroy(t){if(r.Z.j.destroy(),this.ue()){this.zo.Et(),this.zo.removeAllSubscriptions();for(const t of this.Vo)t.destroy();this.Vo=[];for(const t of this.Go)t.clearData(!1);this.Go=[],this.removeAllSubscriptions(),this.Se=[],null!=this.Ci&&this.Ci.destroy(),this.Ci=null,this.jo=null,this.Zr=null,this.gt=null,this.wt=null,this._e=null,this.ft=null,this.options={},this.Mo=void 0,this.Uo=!1,this.Bo=!1,t&&(this.u=null)}}rr(){if(this.Jo())return!1;if(!this.ue())throw new Error(y.Go);return!0}ea(){return this.Xr}Sr(){return this.jo}Zs(){return this.Do}ie(){return this.Zr}ar(){return this.gt}nn(t){return this.options[t]}gr(){return this.Go}cr(){return this.Ci}tr(){return this.wt}aa(){return this._e}l(){return this.u}jr(){if(this.ft&&this.Ci)return new D.Z(this.ft,this.Ci)}ir(){return this.ft}nr(){return!0===this.nn(L.Co)||!0===this.nn(L.Oo)}g(t){let e=!1;for(const i of this.Vo)i===t&&(e=!0);e||this.Vo.push(t)}dr(t){let e=!1;for(const i of this.Go)i.constructor===t.constructor&&(e=!0);t instanceof o.Z&&!e&&this.Go.push(t)}jt(t){t instanceof s.Z&&this.Se.push(t)}removeAllSubscriptions(){if(this.rr())for(const t of this.Se)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(const e of this.Se)e.removeSubscription(t)}ae(t){this.Bo=t}ue(){return this.Uo}Jo(){return this.Bo}Us(){return this.Ro}}},5966:(t,e,i)=>{i.d(e,{I:()=>c,Z:()=>h});var n=i(7559),s=i(2308),r=i(2893),a=i(2367),o=i(7615),l=i(3695),u=i(8031);const c={eu:{su:"ab.storage.userId",Xo:"ab.storage.deviceId",Dl:"ab.storage.sessionId"},k:{Ea:"ab.test",Ia:"ab.storage.events",Ka:"ab.storage.attributes",Ya:"ab.storage.attributes.anonymous_user",la:"ab.storage.device",ua:"ab.storage.sdk_metadata",ma:"ab.storage.session_id_for_cached_metadata",Nn:"ab.storage.pushToken",ki:"ab.storage.newsFeed",Ai:"ab.storage.lastNewsFeedRefresh",L:"ab.storage.cardImpressions",hl:"ab.storage.serverConfig",Na:"ab.storage.triggers",Ca:"ab.storage.triggers.ts",zl:"ab.storage.messagingSessionStart",Zt:"ab.storage.cc",vs:"ab.storage.ccLastFullSync",ys:"ab.storage.ccLastCardUpdated",Ws:"ab.storage.ccLastClientRequest",ui:"ab.storage.ccRateLimitCurrentTokenCount",C:"ab.storage.ccClicks",K:"ab.storage.ccImpressions",G:"ab.storage.ccDismissals",Ga:"ab.storage.lastDisplayedTriggerTimesById",Ma:"ab.storage.lastDisplayedTriggerTime",ya:"ab.storage.triggerFireInstancesById",Fh:"ab.storage.signature",Fs:"ab.storage.brazeSyncRetryCount",Ss:"ab.storage.sdkVersion",Di:"ab.storage.ff",$i:"ab.storage.ffLastRefreshAt",Ua:"ab.storage.lastReqToEndpoint"},ne:"ab.optOut"};class h{constructor(t,e){this.La=t,this.Fa=e,this.La=t,this.Fa=e}qo(t){const e=(0,r.XP)(c.eu),i=new h.ee(t);for(const t of e)i.remove(c.eu[t])}uu(t,e){let i=null;null!=e&&e instanceof s.Z&&(i=e.ss()),this.La.store(t,i)}Pa(t){const e=this.tu(t);null!=e&&(e.Nl=(new Date).valueOf(),this.uu(t,e))}tu(t){return s.Z.zn(this.La.wr(t))}ql(t){this.La.remove(t)}bo(t){let e;if(null==t||0===t.length)return!1;e=(0,r.kJ)(t)?t:[t];let i=this.Fa.wr(c.k.Ia);null!=i&&(0,r.kJ)(i)||(i=[]);for(let t=0;t<e.length;t++)i.push(e[t].ss());return this.Fa.store(c.k.Ia,i)}Hl(t){return null!=t&&this.bo([t])}Ja(){let t=this.Fa.wr(c.k.Ia);this.Fa.remove(c.k.Ia),null==t&&(t=[]);const e=[];let i=!1,s=null;if((0,r.kJ)(t))for(let i=0;i<t.length;i++)n.Z.Qa(t[i])?e.push(n.Z.zn(t[i])):s=i;else i=!0;if(i||null!=s){let r="Stored events could not be deserialized as Events";i&&(r+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(r+=", value at index "+s+" does not look like an event"),r+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new n.Z(null,a.Z.q.Is,(new Date).valueOf(),null,{e:r}))}return e}D(t,e){return!!(0,r.fk)(c.k,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.Fa.store(t,e)}v(t){return!!(0,r.fk)(c.k,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.Fa.wr(t)}ri(t){return!!(0,r.fk)(c.k,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.Fa.remove(t),!0)}clearData(){const t=(0,r.XP)(c.eu),e=(0,r.XP)(c.k);for(let e=0;e<t.length;e++){const i=t[e];this.La.remove(c.eu[i])}for(let t=0;t<e.length;t++){const i=e[t];this.Fa.remove(c.k[i])}}Va(t){return t||c.k.Ya}va(t){let e=this.Fa.wr(c.k.Ka);null==e&&(e={});const i=this.Va(t[o.Z.Kn]),n=e[i];for(const s in t)s!==o.Z.Kn&&(null==e[i]||n&&null==n[s])&&this.mu(t[o.Z.Kn],s,t[s])}mu(t,e,i){let n=this.Fa.wr(c.k.Ka);null==n&&(n={});const s=this.Va(t);let r=n[s];if(null==r&&(r={},null!=t&&(r[o.Z.Kn]=t)),e===o.Z.lu){null==r[e]&&(r[e]={});for(const t in i)r[e][t]=i[t]}else null!=i&&(r[e]=i);return n[s]=r,this.Fa.store(c.k.Ka,n)}Ha(){const t=this.Fa.wr(c.k.Ka);this.Fa.remove(c.k.Ka);const e=[];for(const i in t)null!=t[i]&&e.push(t[i]);return e}ou(t){const e=this.Fa.wr(c.k.Ka);if(null!=e){const i=this.Va(null),n=e[i];null!=n&&(e[i]=void 0,this.Fa.store(c.k.Ka,e),n[o.Z.Kn]=t,this.va(n))}const i=this.tu(c.eu.Dl);let n=null;null!=i&&(n=i.iu);const s=this.Ja();if(null!=s)for(let e=0;e<s.length;e++){const i=s[e];null==i.userId&&i.sessionId==n&&(i.userId=t),this.Hl(i)}}Wa(){return this.Fa.Za}}h.Oa=class{constructor(t){this.Xr=t,this.Xr=t,this.Za=l.Z.$a()?3:10}_l(t){return t+"."+this.Xr}store(t,e){const i={v:e};try{return localStorage.setItem(this._l(t),JSON.stringify(i)),!0}catch(t){return a.Z.j.info("Storage failure: "+(0,u.e)(t)),!1}}wr(t){try{let e=null;const i=localStorage.getItem(this._l(t));return null!=i&&(e=JSON.parse(i)),null==e?null:e.v}catch(t){return a.Z.j.info("Storage retrieval failure: "+(0,u.e)(t)),null}}remove(t){try{localStorage.removeItem(this._l(t))}catch(t){return a.Z.j.info("Storage removal failure: "+(0,u.e)(t)),!1}}},h.xa=class{constructor(){this.Tl={},this.Al=5242880,this.Za=3}store(t,e){const i={value:e},n=this.Rl(e);return n>this.Al?(a.Z.j.info("Storage failure: object is ≈"+n+" bytes which is greater than the max of "+this.Al),!1):(this.Tl[t]=i,!0)}Rl(t){const e=[],i=[t];let n=0;for(;i.length;){const t=i.pop();if("boolean"==typeof t)n+=4;else if("string"==typeof t)n+=2*t.length;else if("number"==typeof t)n+=8;else if("object"==typeof t&&-1===e.indexOf(t)){let n,s;e.push(t);for(const e in t)s=t,n=e,i.push(s[n])}}return n}wr(t){const e=this.Tl[t];return null==e?null:e.value}remove(t){this.Tl[t]=null}},h.ee=class{constructor(t,e){this.Xr=t,this.Ol=e,this.Xr=t,this.Il=this.Kl(),this.Yl=576e3,this.Ol=!!e}_l(t){return null!=this.Xr?t+"."+this.Xr:t}Kl(){let t=0,e=document.location.hostname;const i=e.split("."),n="ab._gd";for(;t<i.length-1&&-1===document.cookie.indexOf(n+"="+n);)t++,e="."+i.slice(-1-t).join("."),document.cookie=n+"="+n+";domain="+e+";";return document.cookie=n+"=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}re(){const t=new Date;return t.setTime(t.getTime()+60*this.Yl*1e3),t.getFullYear()}Ml(){const t=(0,r.VO)(c.eu),e=document.cookie.split(";");for(let i=0;i<e.length;i++){let n=e[i];for(;" "===n.charAt(0);)n=n.substring(1);let s=!1;for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e])){s=!0;break}if(s){const t=n.split("=")[0];-1===t.indexOf("."+this.Xr)&&this.yl(t)}}}store(t,e){this.Ml();const i=new Date;i.setTime(i.getTime()+60*this.Yl*1e3);const n="expires="+i.toUTCString(),s="domain="+this.Il;let r;r=this.Ol?e:encodeURIComponent(JSON.stringify(e));const o=this._l(t)+"="+r+";"+n+";"+s+";path=/";return o.length>=4093?(a.Z.j.info("Storage failure: string is "+o.length+" chars which is too large to store as a cookie."),!1):(document.cookie=o,!0)}wr(t){const e=[],i=this._l(t)+"=",n=document.cookie.split(";");for(let s=0;s<n.length;s++){let r=n[s];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(i))try{let t;t=this.Ol?r.substring(i.length,r.length):JSON.parse(decodeURIComponent(r.substring(i.length,r.length))),e.push(t)}catch(e){return a.Z.j.info("Storage retrieval failure: "+(0,u.e)(e)),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.yl(this._l(t))}yl(t){const e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";const i=e+";domain="+this.Il;document.cookie=i,document.cookie=i+";path=/"}},h._a=class{constructor(t,e,i){this.Xr=t,this.Ul=[],e&&this.Ul.push(new h.ee(t)),i&&this.Ul.push(new h.Oa(t)),this.Ul.push(new h.xa)}store(t,e){let i=!0;for(let n=0;n<this.Ul.length;n++)i=this.Ul[n].store(t,e)&&i;return i}wr(t){for(let e=0;e<this.Ul.length;e++){const i=this.Ul[e].wr(t);if(null!=i)return i}return null}remove(t){new h.ee(this.Xr).remove(t);for(let e=0;e<this.Ul.length;e++)this.Ul[e].remove(t)}}},4663:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2367);class s{constructor(){this.Se={}}lt(t){if("function"!=typeof t)return null;const e=n.Z.Z.Y();return this.Se[e]=t,e}removeSubscription(t){delete this.Se[t]}removeAllSubscriptions(){this.Se={}}tc(){return Object.keys(this.Se).length}Et(t){const e=[];for(const i in this.Se){const n=this.Se[i];e.push(n(t))}return e}}},3826:(t,e,i)=>{i.d(e,{Z:()=>n});const n={ba:"invalid_api_key",Aa:"blacklisted",za:"no_device_identifier",qa:"invalid_json_response",ga:"empty_response",__:"sdk_auth_error"}},7559:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(2893),s=i(7750);class r{constructor(t,e,i,n,r){this.userId=t,this.type=e,this.time=i,this.sessionId=n,this.data=r,this.userId=t,this.type=e,this.time=(0,s._0)(i),this.sessionId=n,this.data=r}Xi(){const t={name:this.type,time:(0,s.FX)(this.time),data:this.data||{},session_id:this.sessionId,user_id:void 0};return null!=this.userId&&(t.user_id=this.userId),t}ss(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new r(t.user_id,t.name,t.time,t.session_id,t.data)}static Qa(t){return null!=t&&(0,n.Kn)(t)&&null!=t.t&&""!==t.t}static zn(t){return new r(t.u,t.t,t.ts,t.s,t.d)}}},2308:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2367);class s{constructor(t,e,i){this.iu=t,null==t&&(t=n.Z.Z.Y()),!i||isNaN(i)?this.vl=(new Date).valueOf():this.vl=i,this.iu=t,this.Nl=(new Date).valueOf(),this.Gl=e}ss(){return{g:this.iu,e:this.Gl,c:this.vl,l:this.Nl}}static zn(t){if(null==t||null==t.g)return null;const e=new s(t.g,t.e,t.c);return e.Nl=t.l,e}}},3552:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(7750);class s{constructor(t,e,i,n,s){this.endpoint=t,this.Tn=e,this.publicKey=i,this.Vl=n,this.al=s,this.endpoint=t||null,this.Tn=e||null,this.publicKey=i||null,this.Vl=n||null,this.al=s||null}ss(){return{e:this.endpoint,c:this.Tn,p:this.publicKey,u:this.Vl,v:this.al}}static zn(t){return new s(t.e,(0,n.Rd)(t.c),t.p,t.u,t.v)}}},4673:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(t=!1,e=[]){this.O=t,this.ve=e,this.O=t,this.ve=e}S(t){this.O=this.O&&t.O,this.ve.push(...t.ve)}}},4365:(t,e,i)=>{i.d(e,{Z:()=>n});const n={OPEN:"open",Rr:"purchase",zr:"push_click",be:"custom_event",Lr:"iam_click",ks:"test"}},2246:(t,e,i)=>{i.d(e,{Z:()=>f});var n=i(7750),s=i(2367);class r{constructor(t){this.wu=t}xu(t){return null==this.wu||this.wu===t[0]}static fromJson(t){return new r(t?t.event_name:null)}ss(){return this.wu}}var a=i(2893);class o{constructor(t,e,i,s){this.Eu=t,this.Tu=e,this.comparator=i,this.Au=s,this.Tu===o.yu._u&&this.comparator!==o.Nu.Su&&this.comparator!==o.Nu.Mu&&this.comparator!==o.Nu.Ru&&this.comparator!==o.Nu.Hu&&(this.Au=(0,n.X2)(this.Au))}xu(t){let e=null;switch(null!=t&&(e=t[this.Eu]),this.comparator){case o.Nu.Lu:return null!=e&&e.valueOf()===this.Au.valueOf();case o.Nu.Iu:return null==e||e.valueOf()!==this.Au.valueOf();case o.Nu.Ou:return typeof e==typeof this.Au&&e>this.Au;case o.Nu.Su:return this.Tu===o.yu._u?null!=e&&(0,a.J_)(e)&&(0,n.$N)(e)<=this.Au:typeof e==typeof this.Au&&e>=this.Au;case o.Nu.Uu:return typeof e==typeof this.Au&&e<this.Au;case o.Nu.Mu:return this.Tu===o.yu._u?null!=e&&(0,a.J_)(e)&&(0,n.$N)(e)>=this.Au:typeof e==typeof this.Au&&e<=this.Au;case o.Nu.Du:return null!=e&&"string"==typeof e&&typeof e==typeof this.Au&&null!=e.match(this.Au);case o.Nu.Qu:return null!=e;case o.Nu.Xu:return null==e;case o.Nu.Ru:return null!=e&&(0,a.J_)(e)&&(0,n.yo)(e)<this.Au;case o.Nu.Hu:return null!=e&&(0,a.J_)(e)&&(0,n.yo)(e)>this.Au;case o.Nu.Bu:return null==e||typeof e!=typeof this.Au||"string"!=typeof e||null==e.match(this.Au)}return!1}static fromJson(t){return new o(t.property_key,t.property_type,t.comparator,t.property_value)}ss(){let t=this.Au;return(0,a.J_)(this.Au)&&(t=(0,n.FX)(t.valueOf())),{k:this.Eu,t:this.Tu,c:this.comparator,v:t}}static zn(t){return new o(t.k,t.t,t.c,t.v)}}o.Nu={Lu:1,Iu:2,Ou:3,Su:4,Uu:5,Mu:6,Du:10,Qu:11,Xu:12,Ru:15,Hu:16,Bu:17},o.yu={Gu:"boolean",bu:"number",zu:"string",_u:"date"};class l{constructor(t){this.filters=t}xu(t){let e=!0;for(let i=0;i<this.filters.length;i++){const n=this.filters[i];let s=!1;for(let e=0;e<n.length;e++)if(n[e].xu(t)){s=!0;break}if(!s){e=!1;break}}return e}static fromJson(t){if(null==t||!(0,a.kJ)(t))return null;const e=[];for(let i=0;i<t.length;i++){const n=[],s=t[i];for(let t=0;t<s.length;t++)n.push(o.fromJson(s[t]));e.push(n)}return new l(e)}ss(){const t=[];for(let e=0;e<this.filters.length;e++){const i=this.filters[e],n=[];for(let t=0;t<i.length;t++)n.push(i[t].ss());t.push(n)}return t}static zn(t){const e=[];for(let i=0;i<t.length;i++){const n=[],s=t[i];for(let t=0;t<s.length;t++)n.push(o.zn(s[t]));e.push(n)}return new l(e)}}class u{constructor(t,e){this.wu=t,this.ju=e}xu(t){if(null==this.wu||null==this.ju)return!1;const e=t[0],i=t[1];return e===this.wu&&this.ju.xu(i)}static fromJson(t){return new u(t?t.event_name:null,t?l.fromJson(t.property_filters):null)}ss(){return{e:this.wu,pf:this.ju.ss()}}}class c{constructor(t,e){this.ku=t,this.Ju=e}xu(t){if(null==this.ku)return!1;const e=m.qu(t[0],this.ku);if(!e)return!1;let i=null==this.Ju||0===this.Ju.length;if(null!=this.Ju)for(let e=0;e<this.Ju.length;e++)if(this.Ju[e]===t[1]){i=!0;break}return e&&i}static fromJson(t){return new c(t?t.id:null,t?t.buttons:null)}ss(){return this.ku}}class h{constructor(t){this.productId=t}xu(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new h(t?t.product_id:null)}ss(){return this.productId}}class d{constructor(t,e){this.productId=t,this.ju=e}xu(t){if(null==this.productId||null==this.ju)return!1;const e=t[0],i=t[1];return e===this.productId&&this.ju.xu(i)}static fromJson(t){return new d(t?t.product_id:null,t?l.fromJson(t.property_filters):null)}ss(){return{id:this.productId,pf:this.ju.ss()}}}class p{constructor(t){this.ku=t}xu(t){return null==this.ku||m.qu(t[0],this.ku)}static fromJson(t){return new p(t?t.campaign_id:null)}ss(){return this.ku}}var b=i(4365);class m{constructor(t,e){this.type=t,this.data=e}ec(t,e){return m.rc[this.type]===t&&(null==this.data||this.data.xu(e))}static qu(t,e){let i=null;try{i=window.atob(t)}catch(e){return s.Z.j.info("Failed to unencode analytics id "+t+": "+e.message),!1}return e===i.split("_")[0]}static fromJson(t){const e=t.type;let i;switch(e){case m.ac.OPEN:i=null;break;case m.ac.Rr:i=h.fromJson(t.data);break;case m.ac.sc:i=d.fromJson(t.data);break;case m.ac.zr:i=p.fromJson(t.data);break;case m.ac.be:i=r.fromJson(t.data);break;case m.ac.cc:i=u.fromJson(t.data);break;case m.ac.Lr:i=c.fromJson(t.data);break;case m.ac.ks:i=null}return new m(e,i)}ss(){return{t:this.type,d:this.data?this.data.ss():null}}static zn(t){let e,i;switch(t.t){case m.ac.OPEN:e=null;break;case m.ac.Rr:e=new h(t.d);break;case m.ac.sc:i=t.d||{},e=new d(i.id,l.zn(i.pf||[]));break;case m.ac.zr:e=new p(t.d);break;case m.ac.be:e=new r(t.d);break;case m.ac.cc:i=t.d||{},e=new u(i.e,l.zn(i.pf||[]));break;case m.ac.Lr:e=new c(t.d);break;case m.ac.ks:e=null}return new m(t.t,e)}}m.ac={OPEN:"open",Rr:"purchase",sc:"purchase_property",zr:"push_click",be:"custom_event",cc:"custom_event_property",Lr:"iam_click",ks:"test"},m.rc={},m.rc[m.ac.OPEN]=b.Z.OPEN,m.rc[m.ac.Rr]=b.Z.Rr,m.rc[m.ac.sc]=b.Z.Rr,m.rc[m.ac.zr]=b.Z.zr,m.rc[m.ac.be]=b.Z.be,m.rc[m.ac.cc]=b.Z.be,m.rc[m.ac.Lr]=b.Z.Lr,m.rc[m.ac.ks]=b.Z.ks;class f{constructor(t,e,i,n,s,r,a,o,l,u,c,h){this.id=t,this.Pu=e||[],void 0===i&&(i=null),this.startTime=i,void 0===n&&(n=null),this.endTime=n,this.priority=s||0,this.type=r,this.vu=o||0,null==u&&(u=1e3*(this.vu+30)),this.Kr=u,this.data=a,null==l&&(l=f.$u),this.Cu=l,this.Fu=c,this.Vu=h||null}Ku(t){return null==this.Vu||this.Cu!==f.$u&&t-this.Vu>=1e3*this.Cu}Wu(t){this.Vu=t}Yu(t){const e=t+1e3*this.vu;return Math.max(e-(new Date).valueOf(),0)}Zu(t){const e=(new Date).valueOf()-t,i=null==t||isNaN(e)||null==this.Kr||e<this.Kr;return i||s.Z.j.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Kr}ms.`),!i}static fromJson(t){const e=t.id,i=[];for(let e=0;e<t.trigger_condition.length;e++)i.push(m.fromJson(t.trigger_condition[e]));const s=(0,n.X2)(t.start_time),r=(0,n.X2)(t.end_time),o=t.priority,l=t.type,u=t.delay,c=t.re_eligibility,h=t.timeout,d=t.data,p=t.min_seconds_since_last_trigger;return(0,a.fk)(f.Gr,l,"Could not construct Trigger from server data","Trigger.Types")?new f(e,i,s,r,o,l,d,u,c,h,p):null}ss(){const t=[];for(let e=0;e<this.Pu.length;e++)t.push(this.Pu[e].ss());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.vu,r:this.Cu,tm:this.Kr,ss:this.Fu,ld:this.Vu}}static zn(t){const e=[];for(let i=0;i<t.c.length;i++)e.push(m.zn(t.c[i]));return new f(t.i,e,(0,n.Rd)(t.s),(0,n.Rd)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}f.$u=-1,f.Gr={_r:"inapp",td:"templated_iam"}},9342:(t,e,i)=>{i.d(e,{n:()=>f});var n=i(1087),s=i(3774),r=i(158),a=i(3340),o=i(7559),l=i(1792),u=i(2893),c=i(5966);class h{constructor(t,e,i,n,s){this.triggerId=t,this.Hr=e,this.Mr=i,this.Jr=n,this.Kr=s,this.triggerId=t,this.Hr=e,this.Mr=i,this.Jr=n,this.Kr=s}static fromJson(t,e,i,n,s){return null==t||null==t.trigger_id?null:new h(t.trigger_id,e,i,n,s)}}var d=i(2246),p=i(4365),b=i(2367);class m extends r.Z{constructor(t,e,i,n,s){super(),this.tg=t,this.ig=e,this.yh=i,this.sg=n,this.eg=s,this.hg=[],this.og=[],this.ng=null,this.lg={},this.ag={},this.gg(),this.fg()}cg(){this.ng=this.yh.v(c.I.k.Ma)||this.ng,this.lg=this.yh.v(c.I.k.ya)||this.lg,this.ag=this.yh.v(c.I.k.Ga)||this.ag;for(let t=0;t<this.ug.length;t++){const e=this.ug[t];null!=this.ag[e.id]&&e.Wu(this.ag[e.id])}}gg(){this.dg=this.yh.v(c.I.k.Ca)||0;const t=this.yh.v(c.I.k.Na)||[],e=[];for(let i=0;i<t.length;i++)e.push(d.Z.zn(t[i]));this.ug=e,this.cg()}fg(){const t=this,e=function(e,i,n,s,r){return function(){t.mg(e,i,n,s,r)}},i={};for(let t=0;t<this.ug.length;t++)i[this.ug[t].id]=this.ug[t];let n=!1;for(let t=0;t<this.ug.length;t++){const s=this.ug[t];if(null!=this.lg[s.id]){const t=this.lg[s.id],r=[];for(let n=0;n<t.length;n++){const a=t[n],l=s.Yu(a.Jr);if(l>0){let t,n;r.push(a),null!=a.pg&&(t=a.pg),null!=a.bg&&o.Z.Qa(a.bg)&&(n=o.Z.zn(a.bg));const c=[];if((0,u.kJ)(a.Tg))for(let t=0;t<a.Tg.length;t++){const e=i[a.Tg[t]];null!=e&&c.push(e)}this.og.push(setTimeout(e(s,a.Jr,t,n,c),l))}}this.lg[s.id].length>r.length&&(this.lg[s.id]=r,n=!0,0===this.lg[s.id].length&&delete this.lg[s.id])}}n&&this.yh.D(c.I.k.ya,this.lg)}yg(){const t=[];for(let e=0;e<this.ug.length;e++)t.push(this.ug[e].ss());this.dg=(new Date).valueOf(),this.yh.D(c.I.k.Na,t),this.yh.D(c.I.k.Ca,this.dg)}vg(){(this.yh.v(c.I.k.Ca)||0)>this.dg?this.gg():this.cg()}Ts(t){let e=!1;if(null!=t&&t.triggers){this.cg();const i={},n={};this.ug=[];for(let s=0;s<t.triggers.length;s++){const r=d.Z.fromJson(t.triggers[s]);null!=this.ag[r.id]&&(r.Wu(this.ag[r.id]),i[r.id]=this.ag[r.id]),null!=this.lg[r.id]&&(n[r.id]=this.lg[r.id]);for(let t=0;t<r.Pu.length;t++)if(r.Pu[t].ec(p.Z.ks,null)){e=!0;break}null!=r&&this.ug.push(r)}(0,u.Xy)(this.ag,i)||(this.ag=i,this.yh.D(c.I.k.Ga,this.ag)),(0,u.Xy)(this.lg,n)||(this.lg=n,this.yh.D(c.I.k.ya,this.lg)),this.yg(),e&&(b.Z.j.info("Trigger with test condition found, firing test."),this.je(p.Z.ks)),this.je(p.Z.OPEN);const s=this.hg;this.hg=[];for(let t=0;t<s.length;t++)this.je.apply(this,s[t])}}mg(t,e,i,n,s){const r=n=>{this.cg();const s=(new Date).valueOf();if(!t.Zu(e))return!1===navigator.onLine&&t.type===d.Z.Gr._r&&n.imageUrl?(b.Z.j.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`),void this.eg.Ye(t.id,l.Z.Me.Dh)):void(t.Ku(s)&&this.wg(t,s,i)?0===this.ig.tc()?b.Z.j.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.ig.Et([n]),this.$g(t,s)):b.Z.j.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`));t.type===d.Z.Gr.td?this.eg.Ye(t.id,l.Z.Me.Zi):this.eg.Ye(t.id,l.Z.Me.Mh)},o=()=>{this.cg();const r=s.pop();if(null!=r)if(this.jg(r,e,i,n,s),r.Zu(e)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${r.id} has already elapsed.`;s.length>0&&(t+=" Continuing to fall back."),b.Z.j.info(t),this.eg.Ye(r.id,l.Z.Me.Mh),o()}else{b.Z.j.info(`Server aborted in-app message display. Falling back to lower priority ${r.type} trigger action ${t.id}.`);const a=1e3*r.vu-((new Date).valueOf()-e);a>0?this.og.push(setTimeout((()=>{this.mg(r,e,i,n,s)}),a)):this.mg(r,e,i,n,s)}};let u,c,p;switch(t.type){case d.Z.Gr._r:if(u=(0,a.q)(t.data),null==u){b.Z.j.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or);break}if(c=this.eg.Ji(u),c){b.Z.j.error(c),o();break}r(u);break;case d.Z.Gr.td:if(p=h.fromJson(t.data,r,o,e,t.Kr),null==p){b.Z.j.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or);break}this.eg.Vi(p,i,n);break;default:b.Z.j.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or)}}je(t,e,i){if(!(0,u.fk)(p.Z,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.sg.Vh())return b.Z.j.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.hg.push(arguments);this.vg();const n=(new Date).valueOf(),s=n-this.ng;let r=!0,a=!0;const o=[];for(let i=0;i<this.ug.length;i++){const s=this.ug[i],l=n+1e3*s.vu;if(s.Ku(l)&&(null==s.startTime||s.startTime<=n)&&(null==s.endTime||s.endTime>=n)){let i=!1;for(let n=0;n<s.Pu.length;n++)if(s.Pu[n].ec(t,e)){i=!0;break}i&&(r=!1,this.wg(s,l,t)&&(a=!1,o.push(s)))}}if(r)return void b.Z.j.info(`Trigger event ${t} did not match any trigger conditions.`);if(a)return void b.Z.j.info(`Ignoring ${t} trigger event because a trigger was displayed ${s/1e3}s ago.`);o.sort(((t,e)=>t.priority-e.priority));const l=o.pop();null!=l&&(b.Z.j.info(`Firing ${l.type} trigger action ${l.id} from trigger event ${t}.`),this.jg(l,n,t,i,o),0===l.vu?this.mg(l,n,t,i,o):this.og.push(setTimeout((()=>{this.mg(l,n,t,i,o)}),1e3*l.vu)))}changeUser(t){if(this.ug=[],this.yh.ri(c.I.k.Na),!t){this.hg=[],this.ng=null,this.ag={},this.lg={};for(let t=0;t<this.og.length;t++)clearTimeout(this.og[t]);this.og=[],this.yh.ri(c.I.k.Ma),this.yh.ri(c.I.k.Ga),this.yh.ri(c.I.k.ya)}}clearData(){this.ug=[],this.ng=null,this.ag={},this.lg={};for(let t=0;t<this.og.length;t++)clearTimeout(this.og[t]);this.og=[]}wg(t,e,i){if(null==this.ng)return!0;if(i===p.Z.ks)return b.Z.j.info("Ignoring minimum interval between trigger because it is a test type."),!0;let n=t.Fu;return null==n&&(n=this.tg),e-this.ng>=1e3*n}jg(t,e,i,n,s){this.cg(),this.lg[t.id]=this.lg[t.id]||[];const r={};let a;r.Jr=e,r.pg=i,null!=n&&(a=n.ss()),r.bg=a;const o=[];for(let t=0;t<s.length;t++)o.push(s[t].id);r.Tg=o,this.lg[t.id].push(r),this.yh.D(c.I.k.ya,this.lg)}$g(t,e){this.cg(),t.Wu(e),this.ng=e,this.yh.D(c.I.k.Ma,e),this.ag[t.id]=e,this.yh.D(c.I.k.Ga,this.ag)}}const f={t:!1,provider:null,er:()=>(f.init(),f.provider),rg:()=>{if(!f.provider){const t=s.ZP.nn(s.JY.No);f.provider=new m(null!=t?t:30,n.Z.m().Ue(),s.ZP.l(),s.ZP.cr(),n.Z.m()),s.ZP.dr(f.provider)}},init:()=>{f.t||(f.rg(),s.ZP.g(f),f.t=!0)},destroy:()=>{f.provider=null,f.t=!1}}},5333:(t,e,i)=>{i.d(e,{e:()=>s});var n=i(3774);function s(t,e,i){const s=t||document.querySelector("head"),r=`ab-${e}-css-definitions-${"4.8.3".replace(/\./g,"-")}`,a=s.ownerDocument||document;if(null==a.getElementById(r)){const t=a.createElement("style");t.innerHTML=i,t.id=r;const e=n.ZP.nn(n.JY.lo);null!=e&&t.setAttribute("nonce",e),s.appendChild(t)}}},6959:(t,e,i)=>{i.d(e,{B:()=>r});var n=i(5333),s=i(6524);function r(){(0,n.e)(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-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;right:0;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 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%}.ab-feed .ab-card.ab-banner .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',sans-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;padding-left: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 img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),(0,s.N)()}},6524:(t,e,i)=>{i.d(e,{N:()=>s});var n=i(3774);function s(){if(n.ZP.nn(n.JY.Lo))return;const t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}}},3046:(t,e,i)=>{i.d(e,{A9:()=>a,OL:()=>u,Tu:()=>l,je:()=>h,yi:()=>o,zA:()=>d});var n=i(2367),s=i(8548),r=i(3905);const a={types:{le:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",de:"openLink",pe:"openLinkInWebView"},properties:{type:"type",ce:"steps",me:"args"}},o={Ki:"unknownBrazeAction",Qi:"noPushPrompt"},l=(t,e)=>{switch(t){case o.Ki:return`${e} contains an unknown braze action type and will not be displayed.`;case o.Qi:return`${e} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function u(t){try{let e=t.match(r.y9)[0].length;const i=t.substring(e);if(e>t.length-1||!i)return void n.Z.j.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);const a=(0,s.T)(i);return a?JSON.parse(a):void n.Z.j.error(`Failed to decode base64 encoded brazeAction: ${i}`)}catch(e){return void n.Z.j.error(`Failed to process brazeAction URL ${t} : ${e.message}`)}}function c(t,e){let i=!1;for(const n of e)if(i=i||t(n),i)return!0;return!1}function h(t){try{const e=t[a.properties.type];return e===a.types.le?c(h,t[a.properties.ce]):!(0,r.OM)(e)}catch(t){return!0}}function d(t){if(!(0,r.zR)(t))return!1;const e=t[a.properties.type];return e===a.types.le?c(d,t[a.properties.ce]):e===a.types.requestPushPermission}},3695:(t,e,i)=>{i.d(e,{Z:()=>u});var n=i(2893);class s{constructor(){}tf(){}ef(){}Zo(t){}static rf(t,e){if(t&&e)if(t=t.toLowerCase(),(0,n.kJ)(e.if)){for(let i=0;i<e.if.length;i++)if(-1!==t.indexOf(e.if[i].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.if.toLowerCase()))return e.identity}}var r=i(5806);class a extends s{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.userAgentData){const t=this.ic();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}}tf(){return this.browser}ef(){return this.version}Zo(t){if(this.OS)return Promise.resolve(this.OS);const e=e=>{for(let i=0;i<t.length;i++){const n=a.rf(e,t[i]);if(n)return this.OS=n,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.nc().then((t=>e(t.platform))).catch((()=>navigator.platform))}ic(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const i of e){const e=this.oc(r.s),n=i.brand.match(e);if(n&&n.length>0){t.browser=n[0],t.version=i.version;break}}return t}oc(t){const e=[];for(const i in t)t[i]!==r.s.Pg&&e.push(t[i]);return new RegExp("("+e.join("|")+")","i")}nc(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends s{constructor(){super(),this.rd=o.ed(navigator.userAgent||"")}tf(){return this.rd[0]||"Unknown Browser"}ef(){return this.rd[1]||"Unknown Version"}Zo(t){for(let e=0;e<t.length;e++){let i=t[e].string,n=o.rf(i,t[e]);if(n)return n===r.T.Fg&&navigator.maxTouchPoints>1&&(n=r.T.fe),Promise.resolve(n)}return Promise.resolve(navigator.platform)}static ed(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(/trident/i.test(i[1]))return e=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(t)||[],[r.s.Pg,e[1]||""];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===r.s.rE&&(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("OPR",r.s.EE),e[0]=e[0].replace("EdgA",r.s.eE),"Edg"===e[0]&&(e[0]=r.s.eE),[e[0],e[1]];if(i[1]===r.s.kg&&(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",r.s.eE),[e[0],e[1]];if(i=i[2]?[i[1],i[2]]:[null,null],i[0]===r.s.kg&&null!=(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,e[1]),null!=(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,e[2]),i[0]===r.s.EE&&null!=(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(i[0]){const t=i[0].toLowerCase();"msie"===t&&(i[0]=r.s.Pg),"crios"===t&&(i[0]=r.s.rE),"tizen"===t&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===t&&(i[0]="Samsung Browser")}return i}}class l{constructor(){const t=navigator.userAgentData?a:o;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.tf(),this.version=this.Sg.ef(),this.Zo().then((t=>this.OS=t)),this.language=(navigator.userLanguage||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase(),this.Ho=l.Bg(this.userAgent)}Og(){return this.browser!==r.s.Pg||this.version>8}$a(){return this.browser===r.s.kg}ca(){return this.OS||null}Zo(){return this.OS?Promise.resolve(this.OS):this.Sg.Zo(l.xg).then((t=>(this.OS=t,t)))}static Bg(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"];for(let i=0;i<e.length;i++)if(-1!==t.indexOf(e[i]))return!0;return!1}}l.xg=[{string:navigator.platform,if:"Win",identity:r.T.Dg},{string:navigator.platform,if:"Mac",identity:r.T.Fg},{string:navigator.platform,if:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,if:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,if:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,if:"Nintendo",identity:"Nintendo"},{string:navigator.platform,if:"SunOS",identity:"SunOS"},{string:navigator.platform,if:"PlayStation",identity:"PlayStation"},{string:navigator.platform,if:"X11",identity:"X11"},{string:navigator.userAgent,if:["iPhone","iPad","iPod"],identity:r.T.fe},{string:navigator.platform,if:"Pike v",identity:r.T.fe},{string:navigator.userAgent,if:["Web0S"],identity:"WebOS"},{string:navigator.platform,if:["Linux armv7l","Android"],identity:r.T.Lg},{string:navigator.userAgent,if:["Android"],identity:r.T.Lg},{string:navigator.platform,if:"Linux",identity:"Linux"}];const u=new l},2893:(t,e,i)=>{i.d(e,{J_:()=>o,Kn:()=>l,VO:()=>s,XP:()=>c,Xy:()=>h,fk:()=>r,jV:()=>u,kJ:()=>a});var n=i(2367);function s(t){const e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&void 0!==t[i]&&e.push(t[i]);return e}function r(t,e,i,r){const a=s(t);return-1!==a.indexOf(e)||(n.Z.j.error(`${i} Valid values from ${r} are "${a.join('"/"')}".`),!1)}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function o(t){return"[object Date]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){null==t&&(t=[]);const e=[],i=arguments.length;for(let n=0,s=t.length;n<s;n++){const s=t[n];if(-1!==e.indexOf(s))continue;let r=1;for(r=1;r<i&&-1!==arguments[r].indexOf(s);r++);r===i&&e.push(s)}return e}function c(t){const e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e}function h(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;const i=t.toString();if(i!==e.toString())return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}const n="[object Array]"===i;if(!n){if("object"!=typeof t||"object"!=typeof e)return!1;const i=t.constructor,n=e.constructor;if(i!==n&&!("function"==typeof i&&i instanceof i&&"function"==typeof n&&n instanceof n)&&"constructor"in t&&"constructor"in e)return!1}const s=[],r=[];let a=s.length;for(;a--;)if(s[a]===t)return r[a]===e;if(s.push(t),r.push(e),n){if(a=t.length,a!==e.length)return!1;for(;a--;)if(!h(t[a],e[a]))return!1}else{let i,n=c(t);if(a=n.length,c(e).length!==a)return!1;for(;a--;)if(i=n[a],!Object.prototype.hasOwnProperty.call(e,i)||!h(t[i],e[i]))return!1}return s.pop(),r.pop(),!0}},5242:(t,e,i)=>{i.d(e,{B:()=>r});var n=i(1507),s=i(7429);function r(t,e,i){const r=document.createElement("button");r.setAttribute("aria-label",t),r.setAttribute("tabindex","0"),r.setAttribute("role","button"),(0,n.lj)(r,"touchstart"),r.className="ab-close-button";const a=(0,n.MK)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",e);return r.appendChild(a),r.addEventListener("keydown",(t=>{t.keyCode!==s.m.yo&&t.keyCode!==s.m.Fo||(i(),t.stopPropagation())})),r.onclick=t=>{i(),t.stopPropagation()},r}},7750:(t,e,i)=>{i.d(e,{$N:()=>c,BT:()=>o,FX:()=>s,Pn:()=>r,Rd:()=>l,X2:()=>a,_0:()=>u,yo:()=>h});var n=i(2893);function s(t,e){let i=t/1e3;return e&&(i=Math.floor(i)),i}function r(t){return 1e3*t}function a(t){const e=parseInt(t);return null==t||isNaN(e)?null:new Date(1e3*e)}function o(t){return null!=t&&(0,n.J_)(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function l(t){return null==t||""===t?null:new Date(t)}function u(t){return null==t||""===t?(new Date).valueOf():t}function c(t){return((new Date).valueOf()-t.valueOf())/1e3}function h(t){return(t.valueOf()-(new Date).valueOf())/1e3}},5806:(t,e,i)=>{i.d(e,{T:()=>s,s:()=>n});const n={rE:"Chrome",eE:"Edge",Pg:"Internet Explorer",EE:"Opera",kg:"Safari",oE:"Firefox"},s={Lg:"Android",fe:"iOS",Fg:"Mac",Dg:"Windows"}},1507:(t,e,i)=>{i.d(e,{$j:()=>u,FZ:()=>c,Fr:()=>l,MK:()=>h,QZ:()=>r,lP:()=>n,lj:()=>a,mQ:()=>s,rJ:()=>o});const n={lc:null,eo:function(t,e,i,n){if(null==t)return!1;e=e||!1,i=i||!1;const s=t.getBoundingClientRect();return null!=s&&(s.top>=0&&s.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(s.left>=0||!n)&&(s.bottom>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(s.right<=(window.innerWidth||document.documentElement.clientWidth)||!n)}},s={Je:"up",Ke:"down",W:"left",X:"right"};function r(){if(null==n.lc){n.lc=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{n.lc=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){}}return n.lc}function a(t,e,i=(()=>{})){t.addEventListener(e,i,!!r()&&{passive:!0})}function o(t){return n.eo(t,!0,!1,!1)}function l(t){return n.eo(t,!1,!0,!1)}function u(t){if(t.onclick){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}}function c(t,e,i){let n=null,r=null;a(t,"touchstart",(t=>{n=t.touches[0].clientX,r=t.touches[0].clientY})),a(t,"touchmove",(a=>{if(null==n||null==r)return;const o=n-a.touches[0].clientX,l=r-a.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&e===s.W||o<0&&e===s.X)&&i(a),n=null,r=null):Math.abs(l)>=25&&((l>0&&e===s.Je&&t.scrollTop===t.scrollHeight-t.offsetHeight||l<0&&e===s.Ke&&0===t.scrollTop)&&i(a),n=null,r=null)}))}function h(t,e,i){const n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg");s.setAttribute("viewBox",t),s.setAttribute("xmlns",n);const r=document.createElementNS(n,"path");return r.setAttribute("d",e),null!=i&&r.setAttribute("fill",i),s.appendChild(r),s}},8031:(t,e,i)=>{i.d(e,{e:()=>n});const n=t=>t instanceof Error?t.message:String(t)},7429:(t,e,i)=>{i.d(e,{m:()=>n});const n={yo:32,oo:9,Fo:13,Ih:27}},6504:(t,e,i)=>{i.d(e,{R:()=>n});const n=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t)},1843:(t,e,i)=>{i.d(e,{D:()=>r,Z:()=>a});var n=i(2367),s=i(3826);const r=t=>{let e={};const i=t.toString().split("\r\n");if(!i)return e;let n,s;for(const t of i)t&&(n=t.slice(0,t.indexOf(":")).toLowerCase().trim(),s=t.slice(t.indexOf(":")+1).trim(),e[n]=s);return e},a={Ys:t=>{let e,i;try{const r=()=>{n.Z.j.error("This browser does not have any supported ajax options!")};if(window.XMLHttpRequest?(e=new XMLHttpRequest,e||r()):r(),null!=e){const n=()=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.ei&&t.ei(!1)};e.onload=()=>{let i=!1;if(4===e.readyState)if(i=e.status>=200&&e.status<300||304===e.status,i){if("function"==typeof t.O){let n,r;try{n=JSON.parse(e.responseText),r=e.getAllResponseHeaders()}catch(i){const n={error:""===e.responseText?s.Z.ga:s.Z.qa,response:e.responseText};t.O(n,r)}n&&t.O(n,r)}"function"==typeof t.ei&&t.ei(!0)}else n()},e.onerror=()=>{n()},e.ontimeout=()=>{n()},i=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest");const r=t.headers||[];for(const t of r)e.setRequestHeader(t[0],t[1]);e.send(i)}}catch(t){n.Z.j.error(`Network request error: ${t.message}`)}}}},6870:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(5966);const s={Qs:{Sa:"d",Os:"cc",xi:"ff",Yi:"t"},eT:t=>{if(t)return t.v(n.I.k.Ua)},tT:(t,e)=>{t&&t.D(n.I.k.Ua,e)},Xa:(t,e)=>{if(!t||!e)return-1;const i=s.eT(t);if(null==i)return-1;const n=i[e];return null==n||isNaN(n)?-1:n},Xs:(t,e,i)=>{if(!t||!e)return;let n=s.eT(t);null==n&&(n={}),n[e]=i,s.tT(t,n)}},r=s},8548:(t,e,i)=>{i.d(e,{E:()=>s,T:()=>r});var n=i(2367);function s(t){let e=t.length;for(let i=t.length-1;i>=0;i--){const n=t.charCodeAt(i);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&i--}return e}function r(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");let e=window.atob(t),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);let n=new Uint16Array(i.buffer);return String.fromCharCode(...n)}catch(t){return n.Z.j.error("Unable to decode Base64: "+t),null}}},1148:(t,e,i)=>{function n(t){null==t&&(t="");const e=t.split("?").slice(1).join("?"),i={};if(null!=e){const t=e.split("&");for(let e=0;e<t.length;e++){const n=t[e].split("=");""!==n[0]&&(i[n[0]]=n[1])}}return i}function s(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}i.d(e,{L:()=>n,o:()=>s})},3905:(t,e,i)=>{i.d(e,{$g:()=>x,OM:()=>S,UO:()=>f,bj:()=>m,lg:()=>y,ro:()=>w,vV:()=>k,y9:()=>p,zM:()=>b,zR:()=>Z});var n=i(2893),s=i(8548),r=i(2367),a=i(7750),o=i(3046),l=i(7671);const u=/^[^\x00-\x1F\x22]+$/,c=/[$.]/,h=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time"],d=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//;function b(t,e,i){const n=null!=t&&"string"==typeof t&&(""===t||t.match(u));return n||r.Z.j.error(`Cannot ${e} because ${i} "${t}" is invalid.`),n}function m(t){return null!=t&&t.match(c)&&-1===h.indexOf(t)&&r.Z.j.warn("Custom attribute keys cannot contain '$' or '.'"),b(t,"set custom user attribute","the given key")}function f(t){const e=typeof t;return null==t||"number"===e||"boolean"===e||(0,n.J_)(t)||"string"===e}function g(t,e,i){const s=-1!==i;if(s&&i>50)return r.Z.j.error("Nested attributes cannot be more than 50 levels deep."),!1;const o=s?i+1:-1;if((0,n.kJ)(t)&&(0,n.kJ)(e)){for(let i=0;i<t.length&&i<e.length;i++)if((0,n.J_)(t[i])&&(e[i]=(0,a.BT)(t[i])),!g(t[i],e[i],o))return!1}else{if(!(0,n.Kn)(t))return f(t);for(const i of(0,n.XP)(t)){if(s&&!m(i))return!1;if((0,n.J_)(t[i])&&(e[i]=(0,a.BT)(t[i])),!g(t[i],e[i],o))return!1}}return!0}function v(t,e,i,s,a){let o;return o=(0,n.Kn)(t)||(0,n.kJ)(t)?g(t,e,a?1:-1):f(t),o||r.Z.j.error(`Cannot ${i} because ${s} "${t}" is invalid.`),o}function w(t,e,i,n){const s="string"==typeof t||null===t&&n;return s||r.Z.j.error(`Cannot ${e} because ${i} "${t}" is invalid.`),s}function y(t,e,i,o,u){if(null==t&&(t={}),"object"!=typeof t||(0,n.kJ)(t))return r.Z.j.error(`${e} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];let c,h;e===l.db?(c=76800,h="75KB"):(c=51200,h="50KB");const d=JSON.stringify(t);if((0,s.E)(d)>c)return r.Z.j.error(`Could not ${o} because ${i} was greater than the max size of ${h}.`),[!1,null];let p;try{p=JSON.parse(d)}catch(t){return r.Z.j.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in t){if(e===l.db&&!m(i))return[!1,null];if(!b(i,o,`the ${u} property name`))return[!1,null];const s=t[i];if(e===l.db||null!=s){if((0,n.J_)(s)&&(p[i]=(0,a.BT)(s)),!v(s,p[i],o,`the ${u} property "${i}"`,e===l.db))return[!1,null]}else delete t[i],delete p[i]}return[!0,p]}function x(t,e){let i=!1,s=!1;const a=()=>{r.Z.j.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const r of e)if("string"==typeof r){if(s)return a(),[!1,!1];if(!b(r,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,n.Kn)(r))return a(),[!1,!1];if(i)return a(),[!1,!1];if(!y(r,l.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];s=!0}return[i,s]}function k(t){return"string"==typeof t&&null!=t.toLowerCase().match(d)}function Z(t){if(!(o.A9.properties.type in t))return!1;switch(t[o.A9.properties.type]){case o.A9.types.le:if(o.A9.properties.ce in t)return!0;break;case o.A9.types.logCustomEvent:case o.A9.types.setEmailNotificationSubscriptionType:case o.A9.types.setPushNotificationSubscriptionType:case o.A9.types.setCustomUserAttribute:case o.A9.types.addToSubscriptionGroup:case o.A9.types.removeFromSubscriptionGroup:case o.A9.types.addToCustomAttributeArray:case o.A9.types.removeFromCustomAttributeArray:case o.A9.types.de:case o.A9.types.pe:if(o.A9.properties.me in t)return!0;break;case o.A9.types.requestPushPermission:return!0;default:return!1}return!1}function S(t){let e=!1;return Object.keys(o.A9.types).forEach((i=>{o.A9.types[i]!==t.toString()||(e=!0)})),e}},5319:(t,e,i)=>{i.d(e,{SD:()=>s,eh:()=>n});const n={PORTRAIT:0,LANDSCAPE:1},s={openUri:function(t,e,i){e||null!=i&&i.metaKey?window.open(t):window.location=t},no:function(){return screen.width<=600},ao:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?n.LANDSCAPE:n.PORTRAIT;if("screen"in window){let t=window.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?n.LANDSCAPE:n.PORTRAIT}return n.PORTRAIT},jn:function(){return window.location.href}}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@clickview/braze-client:",s.l=(i,n,r,a)=>{if(t[i])t[i].push(n);else{var o,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+r){o=h;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",e+r),o.src=i),t[i]=[n];var d=(e,n)=>{o.onerror=o.onload=null,clearTimeout(p);var s=t[i];if(delete t[i],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(n))),e)return e(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");i.length&&(t=i[i.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={143:0};s.f.j=(e,i)=>{var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,s)=>n=t[e]=[i,s]));i.push(n[2]=r);var a=s.p+s.u(e),o=new Error;s.l(a,(i=>{if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;o.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",o.name="ChunkLoadError",o.type=r,o.request=a,n[1](o)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,r,[a,o,l]=i,u=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);l&&l(s)}for(e&&e(i);u<a.length;u++)r=a[u],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var r={};return(()=>{s.r(r),s.d(r,{BrazeApiClient:()=>zt,ClientUserAliasLabel:()=>ft,CountryCode:()=>ot,CustomUserAttributes:()=>bt,DefaultUserAttributes:()=>pt,EventUserAttributes:()=>mt,MarketingFormEvent:()=>ct,MarketingUserEvent:()=>ut,PageEvent:()=>lt,ProductEvent:()=>dt,ProductFormEvent:()=>ht,getInstance:()=>Ut});var t=s(3774),e=s(1087),i=s(5333),n=s(6524);function a(t){(0,i.e)(t,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.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;right:0;top:0;z-index:9021}.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',sans-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-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 span{display: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;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.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',sans-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-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%}.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 o(){a(),(0,n.N)()}var l=s(8376),u=s(1090),c=s(1792),h=s(6616),d=s(4410),p=s(3811),b=s(1507),m=s(5242),f=s(3695);function g(t,e){if(t=parseInt(t),isNaN(t))return"";e=parseFloat(e),isNaN(e)&&(e=1);const i=255&(t>>>=0),n=(65280&t)>>>8,s=(16711680&t)>>>16,r=((4278190080&t)>>>24)/255;return f.Z.Og()?"rgba("+[s,n,i,r*e].join(",")+")":"rgb("+[s,n,i].join(",")+")"}var v=s(7671),w=s(2367);function y(i){if(!t.ZP.rr())return!1;if(!(i instanceof c.Z||i instanceof l.Z))return w.Z.j.error(v.De),!1;const n=i instanceof l.Z?w.Z.q.ro:w.Z.q._i;return e.Z.m().N(i,n).O}var x=s(4365),k=s(9342),Z=s(420);function S(i,n,s){if(!t.ZP.rr())return!1;if(!(i instanceof u.Z))return w.Z.j.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let r=w.Z.q.Ii;null!=n&&(r=w.Z.q.Mi);const a=e.Z.m().N(i,r,n,s);if(a.O)for(let t=0;t<a.ve.length;t++)k.n.er().je(x.Z.Lr,[i.triggerId,n],a.ve[t]);return a.O}var E=s(6243),A=s(2893),_=s(5806),N=s(1148),T=s(5319),C=s(4072),I=s(7429);const O=t=>{const e=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let i;for(let t=0;t<e.length;t++)i=e[t],i.tabIndex=0;if(e.length>0){const i=e[0],n=e[e.length-1];t.addEventListener("keydown",(e=>{const s=document.activeElement;e.keyCode===I.m.oo&&(e.shiftKey||s!==n&&s!==t?!e.shiftKey||s!==i&&s!==t||(e.preventDefault(),n.focus()):(e.preventDefault(),i.focus()))}))}},P=(i,n,s,r)=>{if(i.buttons&&i.buttons.length>0){const a=document.createElement("div");a.className="ab-message-buttons",s.appendChild(a);const o=s.getElementsByClassName("ab-message-text")[0];null!=o&&(o.className+=" ab-with-buttons");const l=a=>o=>(i.he(s,(()=>{(function(i,n){if(!t.ZP.rr())return!1;if(!(i instanceof C.Z))return w.Z.j.error("button must be an InAppMessageButton object"),!1;if(!(n instanceof c.Z))return w.Z.j.error(v.De),!1;const s=e.Z.m().Gi(i,n);if(s.O)for(let t=0;t<s.ve.length;t++)k.n.er().je(x.Z.Lr,[n.triggerId,i.id],s.ve[t]);s.O})(a,i),a.clickAction===c.Z.ClickAction.URI?(0,Z.S)(a.uri||"",r||i.openTarget===c.Z.OpenTarget.BLANK,o):a.clickAction===c.Z.ClickAction.NEWS_FEED&&n()})),o.stopPropagation(),!1);for(let t=0;t<i.buttons.length;t++){const e=i.buttons[t],n=document.createElement("button");n.className="ab-message-button",n.setAttribute("type","button"),(0,b.lj)(n,"touchstart");let s=e.text;""===e.text&&(s=" "),n.appendChild(document.createTextNode(s)),i.ye()||(n.style.backgroundColor=g(e.backgroundColor),n.style.color=g(e.textColor),n.style.borderColor=g(e.borderColor)),n.onclick=l(e),a.appendChild(n)}}};var j=s(7048);function D(i,n,r){if(!t.ZP.rr())return;if(o(),null==i)return!1;if(i instanceof l.Z)return w.Z.j.info("User received control for a multivariate test, logging to Braze servers."),y(i),!0;if(!(i instanceof c.Z))return!1;const C=e.Z.m();i.Ah();const D=i instanceof u.Z;if(D&&!i.trusted&&!t.ZP.nr())return w.Z.j.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),C.Ye(i.triggerId,c.Z.Me.Oh),!1;if(null==n&&(n=document.body),i.xe()&&n.querySelectorAll(".ab-modal-interactions").length>0)return w.Z.j.info(`Cannot show in-app message ${i.message} because another message is being shown.`),C.Ye(i.triggerId,c.Z.Me.ze),!1;if(T.SD.no()){const t=T.SD.ao();if(t===T.eh.PORTRAIT&&i.orientation===c.Z.Orientation.LANDSCAPE||t===T.eh.LANDSCAPE&&i.orientation===c.Z.Orientation.PORTRAIT){const e=t===T.eh.PORTRAIT?"portrait":"landscape",n=i.orientation===c.Z.Orientation.PORTRAIT?"portrait":"landscape";return w.Z.j.info(`Not showing ${n} in-app message ${i.message} because the screen is currently ${e}`),C.Ye(i.triggerId,c.Z.Me.Sh),!1}}if(!t.ZP.nr()){let t=!1;if(i.buttons&&i.buttons.length>0){const e=i.buttons;for(let i=0;i<e.length;i++)if(e[i].clickAction===c.Z.ClickAction.URI){const n=e[i].uri;t=(0,N.o)(n)}}else i.clickAction===c.Z.ClickAction.URI&&(t=(0,N.o)(i.uri));if(t)return w.Z.j.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),C.Ye(i.triggerId,c.Z.Me.Oh),!1}const z=document.createElement("div");if(z.className="ab-iam-root v3",z.className+=function(t){let e="";return t.animateIn&&(e+=" ab-animate-in"),t.animateOut&&(e+=" ab-animate-out"),t instanceof d.Z?e+=" ab-effect-fullscreen":t instanceof u.Z?e+=" ab-effect-html":t instanceof p.Z?e+=" ab-effect-modal":t instanceof h.Z&&(e+=" ab-effect-slide"),e}(i),z.setAttribute("role","complementary"),i.$e()&&(z.id=i.htmlId),t.ZP.nn(t.JY.mo)&&(z.style.zIndex=(t.ZP.nn(t.JY.mo)+1).toString()),n.appendChild(z),i.ye()){const e=document.createElement("style");e.innerHTML=i.css,e.id=i.Ae(),null!=t.ZP.nn(t.JY.lo)&&e.setAttribute("nonce",t.ZP.nn(t.JY.lo)),document.getElementsByTagName("head")[0].appendChild(e)}const U=i instanceof h.Z,M=function(i,n,r,o,l,C,I){if(i.ke=document.activeElement,i instanceof u.Z)return function(e,i,n,r,o,l){const u=document.createElement("iframe");u.setAttribute("title","Modal Message"),o&&(u.style.zIndex=(o+1).toString());const h=t=>{const i=t.getAttribute("href"),n=t.onclick;return s=>{if(null!=n&&"function"==typeof n&&!1===n.bind(t)(s))return;let a=(0,N.L)(i).abButtonId;if(null!=a&&""!==a||(a=t.getAttribute("id")||void 0),null!=i&&""!==i&&0!==i.indexOf("#")){const n="blank"===(t.getAttribute("target")||"").toLowerCase().replace("_",""),o=r||e.openTarget===c.Z.OpenTarget.BLANK||n,l=()=>{S(e,a,i),T.SD.openUri(i,o,s)};o?l():e.he(u,l)}else S(e,a,i||void 0);return s.stopPropagation(),!1}},d=(t,e,i)=>{const n=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,s=t.match(new RegExp(n));if(s){const i=`${s[1]}.setAttribute("nonce", "${e}")`;return`${t.slice(0,s.index+s[0].length)};${i};${t.slice(s.index+s[0].length)}`}return null};if(u.onload=()=>{let r=null;if(null!=l){r=document.createElement("html"),r.innerHTML=e.message||"";const t=r.getElementsByTagName("style");for(let e=0;e<t.length;e++)t[e].setAttribute("nonce",l);const i=r.getElementsByTagName("script");for(let t=0;t<i.length;t++){i[t].setAttribute("nonce",l),i[t].innerHTML=i[t].innerHTML.replace(/<style>/g,`<style nonce='${l}'>`);const e=d(i[t].innerHTML,l,"script");e&&(i[t].innerHTML=e);const n=d(i[t].innerHTML,l,"style");n&&(i[t].innerHTML=n)}}const o=u.contentWindow;o.focus(),o.document.write(r?r.innerHTML:e.message||"");const p=o.document.getElementsByTagName("head")[0];if(null!=p){if(a(p),e.ye()){const t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.Ae()||"",null!=l&&t.setAttribute("nonce",l),p.appendChild(t)}const t=o.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),p.appendChild(t))}const b=o.document.getElementsByTagName("title");b&&b.length>0&&u.setAttribute("title",b[0].textContent||"");const m={closeMessage:function(){e.he(u)},logClick:function(){S(e,...arguments)},display:{},web:{}},f=function(){return function(){const e=arguments;Promise.resolve().then(s.bind(s,2261)).then((i=>{t.ZP.ue()?i.requestPushPermission(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))}},g={requestImmediateDataFlush:function(){const e=arguments;Promise.resolve().then(s.bind(s,4650)).then((({requestImmediateDataFlush:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},logCustomEvent:function(){const e=arguments;Promise.resolve().then(s.bind(s,1454)).then((({logCustomEvent:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},logPurchase:function(){const e=arguments;s.e(364).then(s.bind(s,1364)).then((({logPurchase:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},unregisterPush:function(){const e=arguments;Promise.resolve().then(s.bind(s,7824)).then((({unregisterPush:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},requestPushPermission:f(),changeUser:function(){const e=arguments;Promise.resolve().then(s.bind(s,4790)).then((({changeUser:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))}},y=function(t){return function(){g[t](...Array.prototype.slice.call(arguments))}};for(const t of(0,A.XP)(g))m[t]=y(t);const x=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],k=function(t){return function(){const e=(0,E.P)();e&&e[t](...Array.prototype.slice.call(arguments))}},Z={};for(let t=0;t<x.length;t++)Z[x[t]]=k(x[t]);m.getUser=function(){return Z};const _={showFeed:i},N=function(t){return function(){const i=arguments;e.he(u,(function(){_[t](...Array.prototype.slice.call(i))}))}},T=m.display;for(const t of(0,A.XP)(_))T[t]=N(t);const C={registerAppboyPushMessages:f()},I=function(t){return function(){C[t](...Array.prototype.slice.call(arguments))}},O=m.web;for(const t of(0,A.XP)(C))O[t]=I(t);if(o.appboyBridge=m,o.brazeBridge=m,e.Ce!==c.Z.Ee.Pe){const t=o.document.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].onclick=h(t[e]);const e=o.document.getElementsByTagName("button");for(let t=0;t<e.length;t++)e[t].onclick=h(e[t])}const P=o.document.body;if(null!=P){e.$e()&&(P.id=e.htmlId||"");const t=document.createElement("hidden");t.onclick=m.closeMessage,t.className="ab-programmatic-close-button",P.appendChild(t)}o.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==u.className.indexOf("ab-start-hidden")&&(u.className=u.className.replace("ab-start-hidden",""),n(u)),document.activeElement!==u&&u.focus()},u.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",f.Z.OS===_.T.fe){const t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(u),e.qe=t,t}return e.qe=u,u}(i,n,r,l,C,I);const j=function(i,n,s,r,a,o){let l=null;const u=document.createElement("div");var h;u.className="ab-in-app-message ab-start-hidden ab-background",o&&(u.style.zIndex=(o+1).toString()),i.xe()&&(u.className+=" ab-modal-interactions",u.setAttribute("tabindex","-1")),i.ye()||(u.style.color=g(i.textColor),u.style.backgroundColor=g(i.backgroundColor),h=i.backgroundColor,h=parseInt(h),!isNaN(h)&&(4278190080&h)>>>24==0&&(u.className+=" ab-no-shadow"));const d=()=>{-1!==u.className.indexOf("ab-start-hidden")&&(u.className=u.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?r(`Cannot show in-app message ${i.message} because another message is being shown.`,c.Z.Me.ze):s(u))},p=(t=!0)=>{const e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&(e[0].classList.remove("ab-iam-img-loading"),l&&(clearTimeout(l),l=null),t?d():w.Z.j.error(`Cannot show in-app message ${i.message} because the image failed to load.`))};i.imageStyle===c.Z.ImageStyle.GRAPHIC&&(u.className+=" graphic"),i.orientation===c.Z.Orientation.LANDSCAPE&&(u.className+=" landscape"),null!=i.buttons&&0===i.buttons.length&&(i.clickAction!==c.Z.ClickAction.NONE&&(u.className+=" ab-clickable"),u.onclick=s=>(i.he(u,(()=>{(function(i){if(!t.ZP.rr())return!1;if(!(i instanceof c.Z))return w.Z.j.error(v.De),!1;const n=e.Z.m().N(i,w.Z.q.Ii);if(n){i.Qr()||y(i);for(let t=0;t<n.ve.length;t++)k.n.er().je(x.Z.Lr,[i.triggerId],n.ve[t])}n.O})(i),i.clickAction===c.Z.ClickAction.URI?(0,Z.S)(i.uri||"",a||i.openTarget===c.Z.OpenTarget.BLANK,s):i.clickAction===c.Z.ClickAction.NEWS_FEED&&n()})),s.stopPropagation(),!1));const f=(0,m.B)("Close Message",i.ye()?void 0:g(i.closeButtonColor),(()=>{i.he(u)}));u.appendChild(f),o&&(f.style.zIndex=(o+2).toString());const S=document.createElement("div");S.className="ab-message-text";const E=(i.messageAlignment||i.Le).toLowerCase();S.className+=" "+E+"-aligned";let A=!1;const _=document.createElement("div");if(_.className="ab-image-area",i.imageUrl){if(i.cropType===c.Z.CropType.CENTER_CROP){const t=document.createElement("span");t.className="ab-center-cropped-img",t.style.backgroundImage="url("+i.imageUrl+")",t.setAttribute("role","img"),t.setAttribute("aria-label","Modal Image"),i.Ie(t),_.appendChild(t)}else{const t=document.createElement("img");if(t.setAttribute("src",i.imageUrl),i.Ie(t),0===document.querySelectorAll(".ab-iam-img-loading").length){A=!0;const e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),l=window.setTimeout((()=>{p(!1)}),6e4),t.onload=()=>{p()},t.onerror=()=>{p(!1)}}_.appendChild(t)}u.appendChild(_),S.className+=" ab-with-image"}else if(i.icon){_.className+=" ab-icon-area";const t=document.createElement("span");t.className="ab-icon",i.ye()||(t.style.backgroundColor=g(i.iconBackgroundColor),t.style.color=g(i.iconColor));const e=document.createElement("i");e.className="fa",e.appendChild(document.createTextNode(i.icon)),e.setAttribute("aria-hidden","true"),t.appendChild(e),_.appendChild(t),u.appendChild(_),S.className+=" ab-with-icon"}if((0,b.lj)(S,"touchstart"),i.header&&i.header.length>0){const t=document.createElement("h1");t.className="ab-message-header",i.Te=w.Z.Z.Y(),t.id=i.Te;const e=(i.headerAlignment||c.Z.TextAlignment.CENTER).toLowerCase();t.className+=" "+e+"-aligned",i.ye()||(t.style.color=g(i.headerTextColor)),t.appendChild(document.createTextNode(i.header)),S.appendChild(t)}return S.appendChild(i.Be()),u.appendChild(S),A||d(),i.qe=u,u}(i,n,r,o,l,C);if(i instanceof d.Z||i instanceof p.Z){const t=i instanceof d.Z?"ab-fullscreen":"ab-modal";j.className+=` ${t} ab-centered`,P(i,n,j,l),O(j),((t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label","Modal Message"),t&&e.setAttribute("aria-labelledby",t)})(i.Te,j)}else if(i instanceof h.Z){j.className+=" ab-slideup";const t=j.getElementsByClassName("ab-close-button")[0];if(null!=t){const e=(0,b.MK)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",i.ye()?void 0:g(i.closeButtonColor));e.setAttribute("class","ab-chevron"),t.appendChild(e)}let e,n;(0,b.FZ)(j,b.mQ.W,(e=>{j.className+=" ab-swiped-left",null!=t&&null!=t.onclick&&t.onclick(e)})),(0,b.FZ)(j,b.mQ.X,(e=>{j.className+=" ab-swiped-right",null!=t&&null!=t.onclick&&t.onclick(e)})),i.slideFrom===c.Z.SlideFrom.TOP?(e=b.mQ.Je,n=" ab-swiped-up"):(e=b.mQ.Ke,n=" ab-swiped-down"),(0,b.FZ)(j,e,(e=>{j.className+=n,null!=t&&null!=t.onclick&&t.onclick(e)}))}return j}(i,(()=>{s.e(864).then(s.bind(s,4864)).then((e=>{t.ZP.ue()?e.showFeed():w.Z.j.error(v.Go)}))}),(e=>{if(i.xe()&&i.io()){const n=document.createElement("div");if(n.className="ab-page-blocker",i.ye()||(n.style.backgroundColor=g(i.frameColor)),t.ZP.nn(t.JY.mo)&&(n.style.zIndex=t.ZP.nn(t.JY.mo).toString()),z.appendChild(n),!t.ZP.nn(t.JY.Lh)){const t=(new Date).valueOf();n.onclick=n=>{(new Date).valueOf()-t>c.Z.Uh&&(i.he(e),n.stopPropagation())}}z.appendChild(e),e.focus(),i.ah(z)}else if(U){const t=document.querySelectorAll(".ab-slideup");let n=null;for(let i=t.length-1;i>=0;i--)if(t[i]!==e){n=t[i];break}if(i.slideFrom===c.Z.SlideFrom.TOP){let t=0;null!=n&&(t=n.offsetTop+n.offsetHeight),e.style.top=Math.max(t,0)+"px"}else{let t=0;null!=n&&(t=(window.innerHeight||document.documentElement.clientHeight)-n.offsetTop),e.style.bottom=Math.max(t,0)+"px"}}else if(D&&!t.ZP.nn(t.JY.Lh)){const t=i;(0,j.f)(e)&&e.contentWindow&&e.contentWindow.addEventListener("keydown",(function(e){e.keyCode===I.m.Ih&&t.closeMessage()}))}y(i),i.dismissType===c.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{z.contains(e)&&i.he(e)}),i.duration),"function"==typeof r&&r()}),((t,e)=>{w.Z.j.info(t),C.Ye(i.triggerId,e)}),t.ZP.nn(t.JY.po),t.ZP.nn(t.JY.mo),t.ZP.nn(t.JY.lo));return(D||U)&&(z.appendChild(M),i.ah(z)),!0}var z=s(1454),U=s(2261),M=s(7824),L=s(4790),R=s(4650),F=s(67),B=s(1066),G=s(1280),$=s(1843),q=s(158),J=s(7750),X=s(3153),Y=s(5966),V=s(4663),H=s(9179),K=s(6870),W=s(6504);class Q extends q.Z{constructor(e,i,n,s,r){super(),this.ft=e,this.u=i,this.wt=n,this.vt=s,this.gt=r,this.ft=e,this.u=i,this.wt=n,this.vt=s,this.gt=r,this.yt=new V.Z,t.ZP.jt(this.yt),this.kt=0,this.Ut=0,this.cards=[],this.Lt();const a=w.Z.zt.Ft;new w.Z.xt(a,w.Z.j).Mt(a.Jt.qt,(t=>{this.Pt(t)})),this.$t=null,this._t=null,this.Bt=null,this.Gt=null,this.Ht=null,this.Kt=null,this.Ot=10,this.Qt=0}Vt(){return this._t}Wt(t){this._t=t}Xt(){return this.Bt}Yt(t){this.Bt=t}Lt(){if(!this.u)return;const t=this.u.v(Y.I.k.Zt)||[],e=[];for(let i=0;i<t.length;i++){const n=(0,X.rN)(t[i]);null!=n&&e.push(n)}this.cards=this.Cs(this.ws(e,!1)),this.kt=this.u.v(Y.I.k.vs)||this.kt,this.Ut=this.u.v(Y.I.k.ys)||this.Ut}Ns(t,e=!1,i=0,n=0){let s;if(e){s=[];for(const t of this.cards)t.test&&s.push(t)}else s=this.cards.slice();for(let i=0;i<t.length;i++){const n=t[i];let r=null;for(let t=0;t<this.cards.length;t++)if(n.id===this.cards[t].id){r=this.cards[t];break}if(e){const t=(0,X.xA)(n);null!=r&&r.viewed&&t&&(t.viewed=!0),null!=t&&s.push(t)}else if(null==r){const t=(0,X.xA)(n);null!=t&&s.push(t)}else if(!r.ot(n))for(let t=0;t<s.length;t++)if(n.id===s[t].id){s.splice(t,1);break}}this.cards=this.Cs(this.ws(s,e)),this.Rs(),this.kt=i,this.Ut=n,this.u&&(this.u.D(Y.I.k.vs,this.kt),this.u.D(Y.I.k.ys,this.Ut))}Ts(e){if(this.Ds()&&null!=e&&e.cards){this.u&&this.u.D(Y.I.k.Ss,t.ZP.Us());const i=e.full_sync;i||this.Lt(),this.Ns(e.cards,i,e.last_full_sync_at,e.last_card_updated_at),this.yt.Et(this.As(!0))}}Ls(t){this.u&&this.u.D(Y.I.k.Fs,t)}Ms(t,e,i){const n=()=>{this.Es(e,i,!0)},s=(0,$.D)(t);let r;if(this.qs(),!s["retry-after"])return void this.Ls(0);const a=s["retry-after"];if(isNaN(a)&&!isNaN(Date.parse(a)))r=Date.parse(a)-(new Date).getTime(),r<0&&n();else{if(isNaN(parseFloat(a.toString()))){const t="Received unexpected value for retry-after header in /sync response";return H.Z.N(w.Z.q.Is,{e:t+": "+a}),void this.Ls(0)}r=1e3*parseFloat(a.toString())}this.Gt=window.setTimeout((()=>{n()}),r);let o=0;this.u&&(o=this.u.v(Y.I.k.Fs)),(null==o||isNaN(parseInt(o.toString())))&&(o=0),this.Ls(parseInt(o.toString())+1)}Pt(t){if(!this.Ds())return;this.Lt();const e=this.cards.slice();let i=null;this.ft&&(i=this.ft.getUserId());for(let n=0;n<t.length;n++)if(i===t[n].userId||null==i&&null==t[n].userId){const i=t[n].card;let s=null;for(let t=0;t<this.cards.length;t++)if(i.id===this.cards[t].id){s=this.cards[t];break}if(null==s){const t=(0,X.xA)(i);null!=t&&e.push(t)}else if(!s.ot(i))for(let t=0;t<e.length;t++)if(i.id===e[t].id){e.splice(t,1);break}}this.cards=this.Cs(this.ws(e,!1)),this.Rs(),this.yt.Et(this.As(!0))}ws(t,e){let i={},n={},s={};this.u&&(i=this.u.v(Y.I.k.C)||{},n=this.u.v(Y.I.k.K)||{},s=this.u.v(Y.I.k.G)||{});const r={},a={},o={};for(let e=0;e<t.length;e++){const l=t[e].id;l&&(i[l]&&(t[e].clicked=!0,r[l]=!0),n[l]&&(t[e].viewed=!0,a[l]=!0),s[l]&&(t[e].dismissed=!0,o[l]=!0))}return e&&this.u&&(this.u.D(Y.I.k.C,r),this.u.D(Y.I.k.K,a),this.u.D(Y.I.k.G,o)),t}Cs(t){const e=[],i=new Date;let n={};this.u&&(n=this.u.v(Y.I.k.G)||{});let s=!1;for(let r=0;r<t.length;r++){const a=t[r].url;if(!this.vt&&a&&(0,N.o)(a)){w.Z.j.error(`Card with url ${a} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const o=t[r].expiresAt;let l=!0;if(null!=o&&(l=o>=i),l=l&&!t[r].dismissed,l)e.push(t[r]);else{const e=t[r].id;e&&(n[e]=!0),s=!0}}return s&&this.u&&this.u.D(Y.I.k.G,n),e}Rs(){if(!this.u)return;const t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].ss());this.u.D(Y.I.k.Zt,t)}qs(){this.Gt&&(clearTimeout(this.Gt),this.Gt=null)}Js(){null!=this.Ht&&(clearTimeout(this.Ht),this.Ht=null)}Ps(t=1e3*this.Ot,e,i){this.Js(),this.Ht=window.setTimeout((()=>{this.Es(e,i,!0)}),t),this.Kt=t}Es(e,i,n=!1,s=!0){var r;const a=this.gt,o=this.u;if(!a||!o)return void("function"==typeof i&&i());const l=!n;if(l&&(this.qs(),this.Ls(0)),!this.Ds())return void(!this.$t&&this.wt&&(this.$t=this.wt.$s((()=>{this.Es(e,i)}))));let u=!0;if(l&&(null===(r=this.wt)||void 0===r?void 0:r._s())&&(u=this.Bs()),!u)return void w.Z.j.info("Content card sync being throttled.");s&&this.Js();const c=a.Gs({},!0);o.v(Y.I.k.Ss)!==t.ZP.Us()&&this.Hs(),c.last_full_sync_at=this.kt,c.last_card_updated_at=this.Ut;const h=a.Ks(c,K.Z.Qs.Os,n);let d=!1;a.Vs(c,(()=>{if(this.u){const t=(new Date).valueOf();l&&this.u.D(Y.I.k.Ws,t),K.Z.Xs(this.u,K.Z.Qs.Os,t)}$.Z.Ys({url:a.Zs()+"/content_cards/sync",data:c,headers:h,O:(t,n)=>{if(!a.ti(c,t,h))return d=!0,void("function"==typeof i&&i());a.si(),this.Ms(n,e,i),this.Ts(t),d=!1,"function"==typeof e&&e()},error:t=>{a.ii(t,"retrieving content cards"),d=!0,"function"==typeof i&&i()},ei:()=>{if(d&&s&&!this.Ht&&this.Qt+1<v.Tt){let t=this.Kt;(null==t||t<1e3*this.Ot)&&(t=1e3*this.Ot),this.Ps(Math.min(3e5,(0,W.R)(1e3*this.Ot,3*t)),e,i),this.Qt=this.Qt+1}}})}))}As(t){t||this.Lt();const e=this.Cs(this.cards);e.sort(((t,e)=>t.pinned&&!e.pinned?-1:e.pinned&&!t.pinned?1:t.updated&&e.updated&&t.updated>e.updated?-1:t.updated&&e.updated&&e.updated>t.updated?1:0));let i=Math.max(this.Ut||0,this.kt||0);return 0===i&&(i=void 0),this.u&&this.u.v(Y.I.k.ys)===this.Ut&&void 0===i&&(i=this.Ut),new it(e,(0,J.X2)(i))}hi(t){return this.yt.lt(t)}Hs(){this.kt=0,this.Ut=0,this.u&&(this.u.ri(Y.I.k.vs),this.u.ri(Y.I.k.ys))}changeUser(t){t||(this.cards=[],this.yt.Et(new it(this.cards.slice(),null)),this.u&&(this.u.ri(Y.I.k.Zt),this.u.ri(Y.I.k.C),this.u.ri(Y.I.k.K),this.u.ri(Y.I.k.G))),this.Hs()}clearData(t){this.kt=0,this.Ut=0,this.cards=[],this.yt.Et(new it(this.cards.slice(),null)),t&&this.u&&(this.u.ri(Y.I.k.Zt),this.u.ri(Y.I.k.C),this.u.ri(Y.I.k.K),this.u.ri(Y.I.k.G),this.u.ri(Y.I.k.vs),this.u.ri(Y.I.k.ys))}Ds(){return!(this.wt&&!this.wt.ni()&&(0!==this.wt.oi()&&this.li(),1))}ai(t){this.u&&this.u.D(Y.I.k.ui,t)}ci(){return this.u?this.u.v(Y.I.k.ui):null}Bs(){const t=this.u,e=this.wt;if(!t||!e)return!0;const i=t.v(Y.I.k.Ws);if(null==i||isNaN(i))return!0;const n=e.fi(),s=e.di();if(-1===n||-1===s)return!0;let r=this.ci();(null==r||isNaN(r))&&(r=n);const a=((new Date).valueOf()-i)/1e3;return r=Math.min(r+a/s,n),!(r<1||(r=Math.trunc(r)-1,this.ai(r),0))}li(){this.yt.Et(new it([],new Date)),this.u&&this.u.ri(Y.I.k.Zt)}}const tt={t:!1,provider:null,er:()=>(tt.o(),tt.provider||(tt.provider=new Q(t.ZP.ir(),t.ZP.l(),t.ZP.tr(),t.ZP.nr(),t.ZP.ar()),t.ZP.dr(tt.provider)),tt.provider),o:()=>{tt.t||(t.ZP.g(tt),tt.t=!0)},destroy:()=>{tt.provider=null,tt.t=!1}},et=tt;class it extends F.Z{constructor(t,e){super(t,e)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(t){(0,B.p)(t,!0)}logCardClick(t){return(0,G.d)(t,!0)}sr(){t.ZP.rr()&&et.er().Es(void 0,void 0)}ur(){return!0}}it.mr=6e4;var nt=s(1311),st=s(5608),rt=s(6959);function at(e,i){if(!t.ZP.rr())return;(0,rt.B)();let n=!1;null==e&&(e=document.body,n=!0);const s=t.ZP.nn(t.JY.tn)||t.ZP.nn(t.JY.en)||!1,r=et.er().As(!1);"function"==typeof i&&(0,nt.Of)(r,i(r.cards.slice()),r.lastUpdated,null,s);const a=(0,nt.Yz)(r,s,n),o=et.er(),l=o.Vt();(null==r.lastUpdated||(new Date).valueOf()-r.lastUpdated.valueOf()>it.mr)&&(null==l||(new Date).valueOf()-l>it.mr)&&(w.Z.j.info(`Cached content cards were older than max TTL of ${it.mr} ms, requesting an update from the server.`),(0,nt.cV)(r,a),o.Wt((new Date).valueOf()));const u=(new Date).valueOf(),c=function(e){if(!t.ZP.rr())return;const i=et.er(),n=i.hi(e);if(!i.Xt()){const e=t.ZP.cr();if(e){const t=e.pr((()=>{i.Es()}));t&&i.Yt(t)}}return n}((function(t){const e=a.querySelectorAll(".ab-refresh-button")[0];if(null!=e){let t=500,i=t-=(new Date).valueOf()-u;const n=a.getAttribute(nt.cP);n&&(i=parseInt(n),isNaN(i)||(t-=(new Date).valueOf()-i)),setTimeout((function(){e.className=e.className.replace(/fa-spin/g,"")}),Math.max(t,0))}let n=t.cards;"function"==typeof i&&(n=i(n.slice())),(0,nt.Of)(r,n,t.lastUpdated,a,s)}));(0,nt.GB)(c,a);const h=function(t){const e=t.querySelectorAll(".ab-feed");let i=null;for(let n=0;n<e.length;n++)e[n].parentNode===t&&(i=e[n]);null!=i?((0,nt.tQ)(i),null!=i.parentNode&&i.parentNode.replaceChild(a,i)):t.appendChild(a),setTimeout((function(){a.className=a.className.replace("ab-hide","ab-show")}),0),n&&a.focus(),(0,nt.cz)(r,a),(0,st.CG)(r.cards,t)};var d;null!=e?h(e):window.onload=(d=window.onload,function(){"function"==typeof d&&d(new Event("oldLoad")),h(document.body)})}var ot,lt,ut,ct,ht,dt,pt,bt,mt,ft,gt=s(2080);function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(ot||(ot={})),function(t){t.PageView="page_view"}(lt||(lt={})),function(t){t.ButtonClick="marketing_button_click",t.LinkClick="marketing_link_click"}(ut||(ut={})),function(t){t.FreeTrialSignup="marketing_free_trial_signup",t.DemoSignup="marketing_demo_signup",t.PostFreeTrialSubmission="marketing_post_free_trial_submission",t.FormSubmission="marketing_form_submission"}(ct||(ct={})),function(t){t.ProductTrailRequested="product_trial_requested"}(ht||(ht={})),function(t){t.ExploreTopics="product_explore_topics",t.Stream="product_stream",t.SearchClickthrough="product_search_clickthrough",t.ClickBookACall="product_book_a_call_clicked",t.Share="product_share",t.DownloadResource="product_download_resource",t.Invite="product_invite_send"}(dt||(dt={})),function(t){t.FirstName="first_name",t.LastName="last_name",t.Email="email",t.Phone="phone_number"}(pt||(pt={})),function(t){t.CrmId="cvc_id",t.JobTitle="job_title",t.AccountOwner="account_owner",t.Department="department",t.AccountName="account_name",t.AccountType="account_type",t.OrgType="organisation_type",t.OrgSubType="organisation_sub_type",t.TrialRequested="freetrial_requested",t.SyncToCrm="sync_to_crm",t.MasterId="master_id",t.AccountAddress="account_address"}(bt||(bt={})),function(t){t.AccountCity="account_city",t.AccountState="account_state",t.AccountPostCode="account_post_code",t.AccountCountry="account_country",t.HowCanWeHelp="how_can_we_help",t.ReasonForInterest="reason_for_interest",t.EventTopic="event_topic",t.ContactUsComment="contact_us_comment"}(mt||(mt={})),function(t){t.Marketing="marketing_id",t.Product="master_id",t.Email="email"}(ft||(ft={}));var wt={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var t,e=wt.queryString,i=new URLSearchParams(e),n={},s=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return vt(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vt(t,e):void 0}}(t))){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}(i.keys());try{for(s.s();!(t=s.n()).done;){var r=t.value;if(!(r in n)){var a=i.getAll(r);a.length>1?n[r]=a:n[r]=a[0]}}}catch(t){s.e(t)}finally{s.f()}return n&&Object.keys(n).length?JSON.stringify(n):e},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return wt.hostname+wt.pathname},decodeURIComponent:function(t){return window.decodeURIComponent(t)}},yt=wt,xt={"www.clickview.com.au":ot.AU,"staging.clickview.com.au":ot.AU,"clickview.test":ot.AU,"www.clickview.co.uk":ot.UK,"staging.clickview.co.uk":ot.UK,"uk.clickview.test":ot.UK,"www.clickview.co.nz":ot.NZ,"staging.clickview.co.nz":ot.NZ,"nz.clickview.test":ot.NZ,"www.clickvieweducation.com":ot.US,"staging.clickvieweducation.com":ot.US,"clickvieweducation.clickview.test":ot.US},kt={isMarketingWebsite:function(){var t=yt.hostname;return Object.keys(xt).includes(t)},getMarketingLocale:function(){if(this.isMarketingWebsite()){var t=yt.hostname;return xt[t]}},getRequestUrl:function(){return yt.requestUrl},getUtmsFromUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&",e=yt.queryString;if(e.length){var i=yt.decodeURIComponent(e.substring(1)),n=new RegExp("((utm_[^=]+)=([^\\"+t+"]+))","gi"),s=i.match(n);if(s&&s.length){var r=s.reduce((function(t,e){var i=e.split("=");return t[i[0].split("_")[1]]=i[1],t}),{});if(Object.keys(r).length)return r}}}},Zt={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},St="Unknown";function Et(t,e,i){if(!e)return{name:t,version:St};var n=e.exec(i);return{name:t,version:n&&n.length?n[0].trim():St}}var At=function(){var t=window.navigator.userAgent;return Zt.mobileDevice.test(t)?Zt.iphone.test(t)?"iPhone":Zt.ipad.test(t)?"iPad":Zt.android.test(t)?"Android":Zt.blackberry.test(t)?"Blackberry":Zt.windowsPhone.test(t)?"Windows Phone":St:"Desktop"},_t={getEventDataPayload:function(t,e){var i={product:this.getProductData(e),client:this.getClientData(),request:this.getRequestData()};t.data&&Object.keys(t.data).length&&(i.data=t.data);var n=kt.getRequestUrl();return n&&(i.request_url=n),i},getProductData:function(t){var e={name:t.name,version:t.version},i=kt.getMarketingLocale();return i&&(e.locale=i),e},getClientData:function(){return{os:(t=window.navigator.userAgent,Zt.android.test(t)?Et("Android",Zt.androidVersion,t):Zt.iphone.test(t)||Zt.ipad.test(t)?Et("iOS",Zt.iosVersion,t):Zt.linux.test(t)?Et("Linux",null,t):Zt.unix.test(t)?Et("Unix",null,t):Zt.mac.test(t)?Et("Macintosh",Zt.osxVersion,t):Zt.windows.test(t)?function(t,e){var i={name:"Windows",version:null};return Zt.win2000.test(e)&&(i.version="2000"),Zt.winXP.test(e)&&(i.version="XP"),Zt.winVista.test(e)&&(i.version="Vista"),Zt.win7.test(e)&&(i.version="7"),Zt.win8.test(e)&&(i.version="8"),Zt.win81.test(e)&&(i.version="8.1"),Zt.win10.test(e)&&(i.version="10"),i.version||(i.version=St),i}(0,t):Zt.blackberry.test(t)?Et("BlackBerry",Zt.blackberryVersion,t):Zt.windowsPhone.test(t)?Et("Windows Phone",Zt.windowsPhoneVersion,t):{name:St,version:St}),device:{type:At(),resolution:"".concat(yt.screenWidth,"x").concat(yt.screenHeight)}};var t},getRequestData:function(){var t=yt.queryParams,e=yt.referrer,i=kt.getUtmsFromUrl(),n={page_name:yt.title,host_name:yt.hostname,path_name:yt.pathname};return t.length&&(n.query_params=t),e.length&&(n.referrer=e),i&&(n.utms=i),n}},Nt=function(t){throw new Error(t)},Tt=function(t){return new Error(t)},Ct=new RegExp("[A-Za-z0-9 _.,!\"'/$]*"),It=["productName","productVersion","apiKey","baseUrl"];function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function Pt(){Pt=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function u(t,e,i,s){var r=e&&e.prototype instanceof d?e:d,a=Object.create(r.prototype),o=new E(s||[]);return n(a,"_invoke",{value:x(t,i,o)}),a}function c(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function d(){}function p(){}function b(){}var m={};l(m,r,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(A([])));g&&g!==e&&i.call(g,r)&&(m=g);var v=b.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function s(n,r,a,o){var l=c(t[n],t,r);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==Ot(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){s("next",t,a,o)}),(function(t){s("throw",t,a,o)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return s("throw",t,a,o)}))}o(l.arg)}var r;n(this,"_invoke",{value:function(t,i){function n(){return new e((function(e,n){s(t,i,e,n)}))}return r=r?r.then(n,n):n()}})}function x(t,e,i){var n="suspendedStart";return function(s,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw r;return{value:void 0,done:!0}}for(i.method=s,i.arg=r;;){var a=i.delegate;if(a){var o=k(a,i);if(o){if(o===h)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=c(t,e,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function k(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h;var s=c(n,t.iterator,e.arg);if("throw"===s.type)return e.method="throw",e.arg=s.arg,e.delegate=null,h;var r=s.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function Z(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Z,this),this.reset(!0)}function A(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,s=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return s.next=s}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=b,n(v,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=l(b,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,a,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,n,s,r){void 0===r&&(r=Promise);var a=new y(u(e,i,n,s),r);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(v),l(v,o,"Generator"),l(v,r,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return a.type="throw",a.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var o=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(o&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),S(i),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var s=n.arg;S(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:A(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},t}function jt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(s=function(t,e){if("object"!==Ot(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==Ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Ot(s)?s:String(s)),n)}var s}var Dt=function(t,e,i,n){return new(i||(i=Promise))((function(s,r){function a(t){try{l(n.next(t))}catch(t){r(t)}}function o(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,o)}l((n=n.apply(t,e||[])).next())}))},zt=function(){function i(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),function(t){t||Nt("No Client options provided."),It.forEach((function(e){t.hasOwnProperty(e)||Nt('Cannot find the required "'.concat(e,'" attribute in client options.'))}))}(t),this.options=t,this.initialize()}var n,s,r;return n=i,s=[{key:"initialize",value:function(){var i,n;i=this.options.apiKey,n={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,doNotLoadFontAwesome:!0},t.ZP.initialize(i,n)||Nt('Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.'),this.options.automaticallyShowInAppMessages&&function(){if(!t.ZP.rr())return;o();const i=e.Z.m();if(null==i.We()){const n=function(i){if(t.ZP.rr())return e.Z.m().Ve((function(t){return(t=>{D(t)})(t[0]),t.slice(1)}))}();i.Xe(n)}i.We()}()}},{key:"openSession",value:function(){!function(){if(!t.ZP.rr())return;const e=t.ZP.cr();if(!e)return;e.openSession();const i=w.Z.zt.Ft,n=new w.Z.xt(i,w.Z.j);n.hr(i.Jt.kr,(function(t,s){const r=s.lastClick,a=s.trackingString;w.Z.j.info(`Firing push click trigger from ${a} push click at ${r}`);const o=e.vr(r,a),l=function(){k.n.er().je(x.Z.zr,[a],o)};e.$r(l,l),n.br(i.Jt.kr,t)})),n.Mt(i.Jt.yr,(function(t){e.Fr(t)}))}()}},{key:"logEvent",value:function(t){var e=_t.getEventDataPayload(t,{name:this.options.productName,version:this.options.productVersion});return z.logCustomEvent(t.type,e)}},{key:"getUserId",value:function(){return Dt(this,void 0,void 0,Pt().mark((function t(){var e;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.getBrazeUser(),t.abrupt("return",new Promise((function(t,i){e.getUserId((function(e){e?t(e):i(Tt("User is not identified or anonymous."))}))})));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"setCustomUserAttribute",value:function(t,e){var i=this.getBrazeUser();return function(t){if("boolean"==typeof t)return!0;if(!t)return!1;if("string"==typeof t){if(!t.length)return!1;if(!(t.length<=255))return!1;if("$"===t[0])return!1;if(!Ct.test(t))return!1}return!0}(e)||Nt("Invalid custom user attribute value: '".concat(e,"' for key: '").concat(t,"'")),i.setCustomUserAttribute(t,e)}},{key:"bulkSetCustomUserAttributes",value:function(t){var e=this;Object.keys(t).length||Nt("Cannot bulk set emptry object for custom user attributes"),Object.keys(t).forEach((function(i){var n=t[i];e.setCustomUserAttribute(i,n)}))}},{key:"requestPushPermission",value:function(t,e){U.requestPushPermission(t,e)}},{key:"unregisterPush",value:function(t,e){M.unregisterPush(t,e)}},{key:"setAlias",value:function(t,e){this.getBrazeUser().addAlias(e,t)}},{key:"setUser",value:function(t){L.changeUser(t)}},{key:"setUserFirstName",value:function(t){this.getBrazeUser().setFirstName(t)}},{key:"setUserLastName",value:function(t){this.getBrazeUser().setLastName(t)}},{key:"setUserEmail",value:function(t){this.getBrazeUser().setEmail(t)}},{key:"setUserCountry",value:function(t){this.getBrazeUser().setCountry(t)}},{key:"setUserPhone",value:function(t){this.getBrazeUser().setPhoneNumber(t)}},{key:"setUserGender",value:function(t){this.getBrazeUser().setGender(t)}},{key:"sendData",value:function(t){R.requestImmediateDataFlush((function(e){return t(e)}))}},{key:"hasUser",value:function(){try{if(this.getBrazeUser())return!0}catch(t){return!1}finally{return!1}}},{key:"getBrazeUser",value:function(){var t=E.P();return t||Nt("No valid user found!"),t}},{key:"getContentCards",value:function(){return Dt(this,void 0,void 0,Pt().mark((function t(){return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,e){at(null,(function(i){return i?t(i):e(Tt("No content cards found.")),i}))})));case 1:case"end":return t.stop()}}),t)})))}},{key:"hideCards",value:function(){!function(e){if(!t.ZP.rr())return;const i=document.querySelectorAll(".ab-feed");for(let t=0;t<i.length;t++)(0,nt.tQ)(i[t])}()}},{key:"logContentCardDismissal",value:function(t){gt.K(t)}},{key:"logContentCardClick",value:function(t){G.d(t,!0)}},{key:"logContentCardImpressions",value:function(t){var e;e=t,(0,B.p)(e,!0)}}],r=[{key:"getInstance",value:function(t){return this._instance||(this._instance=new this(t))}}],s&&jt(n.prototype,s),r&&jt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Ut(t){return zt.getInstance(t)}})(),r})(),t.exports=e()}}]);
|
|
1
|
+
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3093],{63093:t=>{var e;self,e=()=>(()=>{"use strict";var t,e,i={2367:(t,e,i)=>{i.d(e,{Z:()=>l});const n={_n:function(t){const e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(e),n=new Uint8Array(i.length);for(let t=0;t<i.length;++t)n[t]=i.charCodeAt(t);return n}},s={Y:()=>{const t=t=>{const e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return t()+t(!0)+t(!0)+t()}};class r{constructor(t,e){this.nd="undefined"==typeof window?self:window,this.od=t,this.sd=e}dd(){if("indexedDB"in this.nd)return this.nd.indexedDB}ud(){try{if(null==this.dd())return!1;{const t=this.dd().open("Braze IndexedDB Support Test");if(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close(),"undefined"!=typeof window){const t=window.chrome||window.browser||window.msBrowser;if(t&&t.runtime&&t.runtime.id)return this.sd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.sd.info("Not using IndexedDB for storage due to following error: "+t),!1}}fd(t,e){const i=this.dd().open(this.od.ad,this.od.VERSION);if(null==i)return"function"==typeof e&&e(),!1;const n=this;return i.onupgradeneeded=t=>{n.sd.info("Upgrading indexedDB "+n.od.ad+" to v"+n.od.VERSION+"...");const e=t.target.result;for(const t in n.od.Jt)n.od.Jt.hasOwnProperty(t)&&!e.objectStoreNames.contains(n.od.Jt[t])&&e.createObjectStore(n.od.Jt[t])},i.onsuccess=i=>{const s=i.target.result;s.onversionchange=()=>{s.close(),"function"==typeof e&&e(),n.sd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(s)},i.onerror=t=>(n.sd.info("Could not open indexedDB "+n.od.ad+" v"+n.od.VERSION+": "+t.target.errorCode),"function"==typeof e&&e(),!0),!0}setItem(t,e,i,n,s){if(!this.ud())return"function"==typeof s&&s(),!1;const r=this;return this.fd((a=>{if(!a.objectStoreNames.contains(t))return r.sd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.od.ad+" - "+t+" is not a valid objectStore"),"function"==typeof s&&s(),void a.close();const o=a.transaction([t],"readwrite");o.oncomplete=()=>a.close();const l=o.objectStore(t).put(i,e);l.onerror=()=>{r.sd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.od.ad),"function"==typeof s&&s()},l.onsuccess=()=>{"function"==typeof n&&n()}}),s)}getItem(t,e,i){if(!this.ud())return!1;const n=this;return this.fd((s=>{if(!s.objectStoreNames.contains(t))return n.sd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.od.ad+" - "+t+" is not a valid objectStore"),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).get(e);a.onerror=()=>{n.sd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+n.od.ad)},a.onsuccess=t=>{const e=t.target.result;null!=e&&i(e)}}))}hr(t,e,i){if(!this.ud())return"function"==typeof i&&i(),!1;const n=this;return this.fd((s=>{if(!s.objectStoreNames.contains(t))return n.sd.error("Could not retrieve last record from "+t+" on indexedDB "+n.od.ad+" - "+t+" is not a valid objectStore"),"function"==typeof i&&i(),void s.close();const r=s.transaction([t],"readonly");r.oncomplete=()=>s.close();const a=r.objectStore(t).openCursor(null,"prev");a.onerror=()=>{n.sd.error("Could not open cursor for "+t+" on indexedDB "+n.od.ad),"function"==typeof i&&i()},a.onsuccess=t=>{const n=t.target.result;null!=n&&null!=n.value&&null!=n.key?e(n.key,n.value):"function"==typeof i&&i()}}),i)}br(t,e){if(!this.ud())return!1;const i=this;return this.fd((n=>{if(!n.objectStoreNames.contains(t))return i.sd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.od.ad+" - "+t+" is not a valid objectStore"),void n.close();const s=n.transaction([t],"readwrite");s.oncomplete=()=>n.close(),s.objectStore(t).delete(e).onerror=()=>{i.sd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.od.ad)}}))}Mt(t,e){if(!this.ud())return!1;const i=this;return this.fd((n=>{if(!n.objectStoreNames.contains(t))return i.sd.error("Could not retrieve objects from "+t+" on indexedDB "+i.od.ad+" - "+t+" is not a valid objectStore"),void n.close();const s=n.transaction([t],"readwrite");s.oncomplete=()=>n.close();const r=s.objectStore(t),a=r.openCursor(),o=[];a.onerror=()=>{o.length>0?(i.sd.info("Cursor closed midway through for "+t+" on indexedDB "+i.od.ad),e(o)):i.sd.error("Could not open cursor for "+t+" on indexedDB "+i.od.ad)},a.onsuccess=t=>{const i=t.target.result;null!=i?(null!=i.value&&null!=i.key&&(r.delete(i.key).onsuccess=()=>{o.push(i.value)}),i.continue()):o.length>0&&e(o)}}))}clearData(){if(!this.ud())return!1;const t=[];for(const e in this.od.Jt)this.od.Jt.hasOwnProperty(e)&&this.od.Jt[e]!==this.od.Jt.oe&&t.push(this.od.Jt[e]);const e=this;return this.fd((function(i){const n=i.transaction(t,"readwrite");n.oncomplete=()=>i.close();for(let i=0;i<t.length;i++){const s=t[i];n.objectStore(s).clear().onerror=function(){e.sd.error("Could not clear "+this.source.name+" on indexedDB "+e.od.ad)}}n.onerror=function(){e.sd.error("Could not clear object stores on indexedDB "+e.od.ad)}}))}}r.ep={Ft:{ad:"AppboyServiceWorkerAsyncStorage",VERSION:6,Jt:{Sa:"data",kr:"pushClicks",cu:"pushSubscribed",hd:"fallbackDevice",qt:"cardUpdates",oe:"optOut",yr:"pendingData",kh:"sdkAuthenticationSignature"},se:1}};const a={init:function(t){void 0===t&&void 0!==a.zg||(a.zg=!!t),a.Eg||(a.Eg=!0)},destroy:function(){a.Eg=!1,a.zg=void 0,a.sd=void 0},setLogger:function(t){"function"==typeof t?(a.init(),a.sd=t):a.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){a.init(),a.zg?(console.log("Disabling Braze logging"),a.zg=!1):(console.log("Enabled Braze logging"),a.zg=!0)},info:function(t){if(a.zg){const e="Braze: "+t;null!=a.sd?a.sd(e):console.log(e)}},warn:function(t){if(a.zg){const e="Braze SDK Warning: "+t+" (v4.8.3)";null!=a.sd?a.sd(e):console.warn(e)}},error:function(t){if(a.zg){const e="Braze SDK Error: "+t+" (v4.8.3)";null!=a.sd?a.sd(e):console.error(e)}}},o=a,l={xn:n,q:{CustomEvent:"ce",Pr:"p",du:"pc",dc:"ca",ka:"i",Is:"ie",P:"cci",T:"ccic",$:"ccc",H:"ccd",Wl:"ss",xl:"se",_i:"si",Ii:"sc",Mi:"sbc",Ze:"sfe",ro:"iec",au:"lr",Zh:"uae",R:"ci",B:"cc",gu:"lcaa",fu:"lcar",Rn:"inc",Bn:"add",Ln:"rem",Fn:"set",$n:"ncam",pu:"sgu"},Cr:{Ar:"feed_displayed",Cc:"content_cards_displayed"},Z:s,xt:r,zt:r.ep,j:o,xo:{ho:"allowCrawlerActivity",Eo:"baseUrl",_o:"noCookies",Io:"devicePropertyAllowlist",ia:"disablePushTokenMaintenance",Ao:"enableLogging",So:"enableSdkAuthentication",ta:"manageServiceWorkerExternally",No:"minimumIntervalBetweenTriggerActionsInSeconds",wo:"sessionTimeoutInSeconds",To:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",Mn:"localization",lo:"contentSecurityNonce",Oo:"enableHtmlInAppMessages",Co:"allowUserSuppliedJavascript",mo:"inAppMessageZIndex",po:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Lo:"doNotLoadFontAwesome",Po:"sdkFlavor",tn:"openCardsInNewTab"}}},7529:(t,e,i)=>{i.d(e,{Z:()=>h});var n=i(5563),s=i(9179),r=i(4673),a=i(2367),o=i(5966);class l{constructor(t){this.u=t,this.u=t}h(t,e){const i=new r.Z;if(t.p(),null==t.url||""===t.url)return a.Z.j.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),i;if(e&&t.id&&this.u){const e=this.u.v(o.I.k.C)||{};e[t.id]=!0,this.u.D(o.I.k.C,e)}const n=this.I([t]);if(null==n)return i;const l=e?a.Z.q.$:a.Z.q.B;return s.Z.N(l,n)}A(t){const e=new r.Z;if(!t.F())return a.Z.j.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),e;if(t.id&&this.u){const e=this.u.v(o.I.k.G)||{};e[t.id]=!0,this.u.D(o.I.k.G,e)}const i=this.I([t]);return null==i?e:s.Z.N(a.Z.q.H,i)}J(t,e){const i=new r.Z(!0),l=[],u=[];let c={};this.u&&(c=e?this.u.v(o.I.k.K)||{}:this.u.v(o.I.k.L)||{});for(const e of t)e.M(),e instanceof n.Z?u.push(e):l.push(e),e.id&&(c[e.id]=!0);const h=this.I(l),d=this.I(u);if(null==h&&null==d)return i.O=!1,i;if(this.u&&(e?this.u.D(o.I.k.K,c):this.u.D(o.I.k.L,c)),null!=h){const t=e?a.Z.q.P:a.Z.q.R,n=s.Z.N(t,h);i.S(n)}if(null!=d&&e){const t=s.Z.N(a.Z.q.T,d);i.S(t)}return i}I(t){let e,i=null;for(let n=0;n<t.length;n++)e=t[n].id,null!=e&&""!==e&&(i=i||{},i.ids=i.ids||[],i.ids.push(e));return i}}var u=i(3774);const c={t:!1,i:null,m:()=>(c.o(),c.i||(c.i=new l(u.ZP.l())),c.i),o:()=>{c.t||(u.ZP.g(c),c.t=!0)},destroy:()=>{c.i=null,c.t=!1}},h=c},5608:(t,e,i)=>{i.d(e,{CG:()=>b,Dj:()=>m,Ji:()=>u,Zw:()=>h,pq:()=>d,ql:()=>l,rW:()=>c,sv:()=>p});var n=i(5242),s=i(1507),r=i(420),a=i(2080),o=i(2367);function l(t){return null!=t&&!!t.getAttribute("data-ab-had-top-impression")}function u(t){null!=t&&t.setAttribute("data-ab-had-top-impression","true")}function c(t){return null!=t&&!!t.getAttribute("data-ab-had-bottom-impression")}function h(t){null!=t&&t.setAttribute("data-ab-had-bottom-impression","true")}function d(t){if(null!=t){const e=t.querySelectorAll(".ab-unread-indicator")[0];null!=e&&(e.className+=" read")}}function p(t){return t.getAttribute("data-ab-card-id")}function b(t,e){const i=e.querySelectorAll(".ab-image-area");let n,s=0;i.length>0&&(s=i[0].offsetWidth);for(const e of t)if(n=e._,n&&e.imageUrl&&"number"==typeof e.aspectRatio){const t=s/e.aspectRatio;t&&(n.style.height=`${t}px`)}}function m(t,e,i){const l=document.createElement("div");l.className="ab-card ab-effect-card "+t.U,t.id&&l.setAttribute("data-ab-card-id",t.id),l.setAttribute("role","article"),l.setAttribute("tabindex","0");let u="",c=!1;t.url&&""!==t.url&&(u=t.url,c=!0);const h=n=>(d(l),c&&(e(t),(0,r.S)(u,i,n)),!1);if(t.pinned){const t=document.createElement("div");t.className="ab-pinned-indicator";const e=document.createElement("i");e.className="fa fa-star",t.appendChild(e),l.appendChild(t)}if(t.imageUrl&&""!==t.imageUrl){const e=document.createElement("div");e.className="ab-image-area";const i=document.createElement("img");if(i.setAttribute("src",t.imageUrl),i.onload=()=>{l.style.height="auto"},function(t,e){let i="";t.title||t.description||(i="Feed Image"),e.setAttribute("alt",i)}(t,i),e.appendChild(i),l.className+=" with-image",c&&!t.V){const t=document.createElement("a");t.setAttribute("href",u),t.onclick=h,t.appendChild(e),l.appendChild(t)}else l.appendChild(e)}const p=document.createElement("div");if(p.className="ab-card-body",t.dismissible){t.logCardDismissal=()=>(0,a.K)(t);const e=(0,n.B)("Dismiss Card",void 0,t.dismissCard.bind(t));l.appendChild(e),(0,s.FZ)(p,s.mQ.W,(t=>{l.className+=" ab-swiped-left",e.onclick(t)})),(0,s.FZ)(p,s.mQ.X,(t=>{l.className+=" ab-swiped-right",e.onclick(t)}))}let b="",m=!1;if(t.title&&""!==t.title&&(b=t.title,m=!0),m){const t=document.createElement("h1");if(t.className="ab-title",t.id=o.Z.Z.Y(),l.setAttribute("aria-labelledby",t.id),c){const e=document.createElement("a");e.setAttribute("href",u),e.onclick=h,e.appendChild(document.createTextNode(b)),t.appendChild(e)}else t.appendChild(document.createTextNode(b));p.appendChild(t)}const f=document.createElement("div");if(f.className=m?"ab-description":"ab-description ab-no-title",f.id=o.Z.Z.Y(),l.setAttribute("aria-describedby",f.id),t.description&&f.appendChild(document.createTextNode(t.description)),c){const e=document.createElement("div");e.className="ab-url-area";const i=document.createElement("a");i.setAttribute("href",u),t.linkText&&i.appendChild(document.createTextNode(t.linkText)),i.onclick=h,e.appendChild(i),f.appendChild(e)}p.appendChild(f),l.appendChild(p);const g=document.createElement("div");return g.className="ab-unread-indicator",t.viewed&&(g.className+=" read"),l.appendChild(g),t._=l,l}},1280:(t,e,i)=>{i.d(e,{d:()=>l});var n=i(2857),s=i(7529),r=i(7671),a=i(3774),o=i(2367);function l(t,e){return!!a.ZP.rr()&&(t instanceof n.Z?s.Z.m().h(t,e).O:(o.Z.j.error("card "+r.U4),!1))}},2080:(t,e,i)=>{i.d(e,{K:()=>l});var n=i(2857),s=i(7529),r=i(7671),a=i(3774),o=i(2367);function l(t){return!!a.ZP.rr()&&(t instanceof n.Z?s.Z.m().A(t).O:(o.Z.j.error("card "+r.U4),!1))}},1066:(t,e,i)=>{i.d(e,{p:()=>u});var n=i(2857),s=i(7529),r=i(3774),a=i(2893),o=i(7671),l=i(2367);function u(t,e){if(!r.ZP.rr())return!1;if(!(0,a.kJ)(t))return l.Z.j.error("cards must be an array"),!1;for(const e of t)if(!(e instanceof n.Z))return l.Z.j.error(`Each card in cards ${o.U4}`),!1;return s.Z.m().J(t,e).O}},2857:(t,e,i)=>{i.d(e,{Z:()=>a});var n=i(7750),s=i(7671),r=i(4663);class a{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){this.id=t,this.viewed=e,this.title=i,this.imageUrl=n,this.description=s,this.created=r,this.updated=a,this.categories=o,this.expiresAt=l,this.url=u,this.linkText=c,this.aspectRatio=h,this.extras=d,this.pinned=p,this.dismissible=b,this.clicked=m,this.id=t,this.viewed=e||!1,this.title=i||"",this.imageUrl=n,this.description=s||"",this.created=r||null,this.updated=a||null,this.categories=o||[],this.expiresAt=l||null,this.url=u,this.linkText=c,null==h?this.aspectRatio=null:(h=parseFloat(h.toString()),this.aspectRatio=isNaN(h)?null:h),this.extras=d||{},this.pinned=p||!1,this.dismissible=b||!1,this.dismissed=!1,this.clicked=m||!1,this.isControl=!1,this.test=!1,this.ht=null,this.nt=null}subscribeToClickedEvent(t){return this.et().lt(t)}subscribeToDismissedEvent(t){return this.rt().lt(t)}removeSubscription(t){this.et().removeSubscription(t),this.rt().removeSubscription(t)}removeAllSubscriptions(){this.et().removeAllSubscriptions(),this.rt().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();const t=this._;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)}),a.ut))}),s.rF))}et(){return null==this.ht&&(this.ht=new r.Z),this.ht}rt(){return null==this.nt&&(this.nt=new r.Z),this.nt}M(){this.viewed=!0}p(){this.viewed=!0,this.clicked=!0,this.et().Et()}F(){return!(!this.dismissible||this.dismissed||(this.dismissed=!0,this.rt().Et(),0))}ot(t){if(null==t||t[a.Tt.ns]!==this.id)return!0;if(t[a.Tt.It])return!1;if(null!=t[a.Tt.us]&&null!=this.updated&&parseInt(t[a.Tt.us])<(0,n.FX)(this.updated.valueOf()))return!0;if(t[a.Tt.ls]&&!this.viewed&&(this.viewed=!0),t[a.Tt.gs]&&!this.clicked&&(this.clicked=t[a.Tt.gs]),null!=t[a.Tt.st]&&(this.title=t[a.Tt.st]),null!=t[a.Tt.os]&&(this.imageUrl=t[a.Tt.os]),null!=t[a.Tt.it]&&(this.description=t[a.Tt.it]),null!=t[a.Tt.us]){const e=(0,n.X2)(t[a.Tt.us]);null!=e&&(this.updated=e)}if(null!=t[a.Tt.ps]){let e;e=t[a.Tt.ps]===a.Nt?null:(0,n.X2)(t[a.Tt.ps]),this.expiresAt=e}if(null!=t[a.Tt.URL]&&(this.url=t[a.Tt.URL]),null!=t[a.Tt.bs]&&(this.linkText=t[a.Tt.bs]),null!=t[a.Tt.fs]){const e=parseFloat(t[a.Tt.fs].toString());this.aspectRatio=isNaN(e)?null:e}return null!=t[a.Tt.xs]&&(this.extras=t[a.Tt.xs]),null!=t[a.Tt.js]&&(this.pinned=t[a.Tt.js]),null!=t[a.Tt.zs]&&(this.dismissible=t[a.Tt.zs]),null!=t[a.Tt.ks]&&(this.test=t[a.Tt.ks]),!0}ss(){throw new Error("Must be implemented in a subclass")}}a.Nt=-1,a.Tt={ns:"id",ls:"v",zs:"db",It:"r",us:"ca",js:"p",ps:"ea",xs:"e",ts:"tp",os:"i",st:"tt",it:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"t"},a.es={tt:"captioned_image",ct:"text_announcement",St:"short_news",rs:"banner_image",At:"control"},a.hs={ns:"id",ls:"v",zs:"db",cs:"cr",us:"ca",js:"p",ds:"t",ps:"ea",xs:"e",ts:"tp",os:"i",st:"tt",it:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"s"},a.Dt={dt:"ADVERTISING",Ct:"ANNOUNCEMENTS",Rt:"NEWS",bt:"SOCIAL"},a.ut=400},5563:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2857);class s extends n.Z{constructor(t,e,i,n,s,r){super(t,e,null,null,null,null,i,null,n,null,null,null,s,r),this.isControl=!0,this.U="ab-control-card",this.V=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.At,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.us]=this.updated,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.ks]=this.test,t}}},3153:(t,e,i)=>{i.d(e,{xA:()=>h,D5:()=>d,rN:()=>p});var n=i(2857);class s extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){super(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m),this.U="ab-classic-card",this.V=!0}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.St,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.st]=this.title,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.it]=this.description,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}class r extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m){super(t,e,i,n,s,r,a,o,l,u,c,h,d,p,b,m),this.U="ab-captioned-image",this.V=!0,this.test=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.tt,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.st]=this.title,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.it]=this.description,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}class a extends n.Z{constructor(t,e,i,n,s,r,a,o,l,u,c,h,d,p){super(t,e,null,i,null,n,s,r,a,o,l,u,c,h,d,p),this.U="ab-banner",this.V=!1,this.test=!1}ss(){const t={};return t[n.Z.hs.ts]=n.Z.es.rs,t[n.Z.hs.ns]=this.id,t[n.Z.hs.ls]=this.viewed,t[n.Z.hs.os]=this.imageUrl,t[n.Z.hs.us]=this.updated,t[n.Z.hs.cs]=this.created,t[n.Z.hs.ds]=this.categories,t[n.Z.hs.ps]=this.expiresAt,t[n.Z.hs.URL]=this.url,t[n.Z.hs.bs]=this.linkText,t[n.Z.hs.fs]=this.aspectRatio,t[n.Z.hs.xs]=this.extras,t[n.Z.hs.js]=this.pinned,t[n.Z.hs.zs]=this.dismissible,t[n.Z.hs.gs]=this.clicked,t[n.Z.hs.ks]=this.test,t}}var o=i(5563),l=i(7750),u=i(2367);function c(t,e,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k,Z){let S;if(e===n.Z.es.ct||e===n.Z.es.St)S=new s(t,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k);else if(e===n.Z.es.tt)S=new r(t,i,l,c,h,d,p,b,m,f,g,v,w,y,x,k);else if(e===n.Z.es.rs)S=new a(t,i,c,d,p,b,m,f,g,v,w,y,x,k);else{if(e!==n.Z.es.At)return u.Z.j.error("Ignoring card with unknown type "+e),null;S=new o.Z(t,i,p,m,w,y)}return Z&&(S.test=Z),S}function h(t){if(t[n.Z.Tt.It])return null;const e=t[n.Z.Tt.ns],i=t[n.Z.Tt.ts],s=t[n.Z.Tt.ls],r=t[n.Z.Tt.st],a=t[n.Z.Tt.os],o=t[n.Z.Tt.it],u=(0,l.X2)(t[n.Z.Tt.us]),h=u;let d;return d=t[n.Z.Tt.ps]===n.Z.Nt?null:(0,l.X2)(t[n.Z.Tt.ps]),c(e,i,s,r,a,o,h,u,null,d,t[n.Z.Tt.URL],t[n.Z.Tt.bs],t[n.Z.Tt.fs],t[n.Z.Tt.xs],t[n.Z.Tt.js],t[n.Z.Tt.zs],t[n.Z.Tt.gs],t[n.Z.Tt.ks]||!1)}function d(t){return c(t.id,t.type,t.viewed,t.title,t.image,t.description,(0,l.X2)(t.created),(0,l.X2)(t.updated),t.categories,(0,l.X2)(t.expires_at),t.url,t.domain,t.aspect_ratio,t.extras,!1,!1)}function p(t){return c(t[n.Z.hs.ns],t[n.Z.hs.ts],t[n.Z.hs.ls],t[n.Z.hs.st],t[n.Z.hs.os],t[n.Z.hs.it],(0,l.Rd)(t[n.Z.hs.cs]),(0,l.Rd)(t[n.Z.hs.us]),t[n.Z.hs.ds],(0,l.Rd)(t[n.Z.hs.ps]),t[n.Z.hs.URL],t[n.Z.hs.bs],t[n.Z.hs.fs],t[n.Z.hs.xs],t[n.Z.hs.js],t[n.Z.hs.zs],t[n.Z.hs.gs],t[n.Z.hs.ks]||!1)||void 0}},4790:(t,e,i)=>{i.r(e),i.d(e,{changeUser:()=>l});var n=i(3774),s=i(8548),r=i(2367),a=i(7615),o=i(3905);function l(t,e){if(!n.ZP.rr())return;if(null==t||0===t.length||t!=t)return void r.Z.j.error("changeUser requires a non-empty userId.");if((0,s.E)(t)>a.Z.lr)return void r.Z.j.error(`Rejected user id "${t}" because it is longer than ${a.Z.lr} bytes.`);if(null!=e&&!(0,o.ro)(e,"set signature for new user","signature"))return;const i=n.ZP.cr();i&&i.changeUser(t.toString(),n.ZP.gr(),e)}},6243:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(3774);function s(){if(n.ZP.rr())return n.ZP.jr()}},420:(t,e,i)=>{i.d(e,{S:()=>d});var n=i(2367),s=i(7671),r=i(3774),a=i(3046),o=i(3695),l=i(5806),u=i(3905),c=i(5319),h=i(6243);function d(t,e,d){if(r.ZP.rr())if(u.y9.test(t)){const e=(0,a.OL)(t);if(!e)return;const d=t=>{if(!(0,u.zR)(t))return void n.Z.j.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);const e=a.A9.properties.type,p=a.A9.properties.ce,b=a.A9.properties.me,m=t[e];if(m===a.A9.types.le){const e=t[p];for(const t of e)d(t)}else{const e=t[b];let u,d;switch(m){case a.A9.types.logCustomEvent:Promise.resolve().then(i.bind(i,1454)).then((({logCustomEvent:t})=>{r.ZP.ue()?(d=Array.prototype.slice.call(e),t(...d)):n.Z.j.error(s.Go)}));break;case a.A9.types.requestPushPermission:Promise.resolve().then(i.bind(i,2261)).then((({requestPushPermission:t})=>{r.ZP.ue()?"Safari"===o.Z.browser&&o.Z.OS===l.T.fe?window.navigator.standalone&&t():t():n.Z.j.error(s.Go)}));break;case a.A9.types.setEmailNotificationSubscriptionType:case a.A9.types.setPushNotificationSubscriptionType:case a.A9.types.setCustomUserAttribute:case a.A9.types.addToSubscriptionGroup:case a.A9.types.removeFromSubscriptionGroup:case a.A9.types.addToCustomAttributeArray:case a.A9.types.removeFromCustomAttributeArray:u=(0,h.P)(),u&&u[m](...Array.prototype.slice.call(e));break;case a.A9.types.de:case a.A9.types.pe:d=Array.prototype.slice.call(e),c.SD.openUri(...d);break;default:n.Z.j.info(`Ignoring unknown Braze Action: ${m}`)}}};d(e)}else c.SD.openUri(t,e,d)}},1454:(t,e,i)=>{i.r(e),i.d(e,{logCustomEvent:()=>c});var n=i(3774),s=i(9179),r=i(2367),a=i(4365),o=i(9342),l=i(3905),u=i(7671);function c(t,e){if(!n.ZP.rr())return!1;if(null==t||t.length<=0)return r.Z.j.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!(0,l.zM)(t,"log custom event","the event name"))return!1;const[i,c]=(0,l.lg)(e,u._P,"eventProperties",`log custom event "${t}"`,"event");if(!i)return!1;const h=n.ZP.tr();if(h&&h.ge(t))return r.Z.j.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;const d=s.Z.N(r.Z.q.CustomEvent,{n:t,p:c});if(d.O){r.Z.j.info(`Logged custom event "${t}".`);for(const i of d.ve)o.n.er().je(a.Z.be,[t,e],i)}return d.O}},4650:(t,e,i)=>{i.r(e),i.d(e,{requestImmediateDataFlush:()=>s});var n=i(3774);function s(t){if(!n.ZP.rr())return;const e=n.ZP.cr();e&&e.requestImmediateDataFlush(t)}},3340:(t,e,i)=>{i.d(e,{q:()=>h});var n=i(1792),s=i(8376),r=i(4410),a=i(1090),o=i(4072),l=i(3811),u=i(6616),c=i(2367);function h(t){if(!t)return null;if(t.is_control)return s.Z.fromJson(t);let e=t.type;null!=e&&(e=e.toUpperCase());const i=t.message,h=t.text_align_message,d=t.slide_from,p=t.extras,b=t.trigger_id,m=t.click_action,f=t.uri,g=t.open_target,v=t.message_close,w=t.duration,y=t.icon,x=t.image_url,k=t.image_style,Z=t.icon_color,S=t.icon_bg_color,E=t.bg_color,A=t.text_color,_=t.close_btn_color,N=t.header,T=t.text_align_header,C=t.header_text_color,I=t.frame_color,O=[];let P=t.btns;null==P&&(P=[]);for(let t=0;t<P.length;t++)O.push(o.Z.fromJson(P[t]));const j=t.crop_type,D=t.orientation,z=t.animate_in,U=t.animate_out;let M,L=t.html_id,R=t.css;if(null!=L&&""!==L&&null!=R&&""!==R||(L=void 0,R=void 0),e===l.Z.es||e===n.Z.Ee.Ne)M=new l.Z(i,h,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,z,U,N,T,C,I,O,j,L,R);else if(e===r.Z.es)M=new r.Z(i,h,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,z,U,N,T,C,I,O,j,D,L,R);else if(e===u.Z.es)M=new u.Z(i,h,d,p,b,m,f,g,v,w,y,x,Z,S,E,A,_,z,U,L,R);else{if(e!==a.Z.es&&e!==n.Z.Ee.Pe)return void c.Z.j.error("Ignoring message with unknown type "+e);{const e=t.message_fields;M=new a.Z(i,p,b,v,w,z,U,I,L,R,e),M.trusted=t.trusted||!1}}return M.Ce=e,M}},1087:(t,e,i)=>{i.d(e,{Z:()=>Z});var n=i(1843),s=i(3774),r=i(8376),a=i(1090),o=i(1792),l=i(4072),u=i(9179),c=i(3340),h=i(6504),d=i(4673),p=i(2367),b=i(4663),m=i(2246),f=i(2893),g=i(3905),v=i(3046),w=i(4556),y=i(6870);class x{constructor(t,e,i,n){this.gt=t,this._e=e,this.u=i,this.ft=n,this.gt=t,this._e=e,this.u=i,this.ft=n,this.Se=new b.Z,s.ZP.jt(this.Se),this.Oe=1e3,this.Re=6e4,this.Qe=null}Ue(){return this.Se}Ve(t){return this.Se.lt(t)}We(){return this.Qe}Xe(t){this.Qe=t}Ye(t,e){if(!t)return new d.Z;if(!(0,f.fk)(o.Z.Me,e,`${e} is not a valid in-app message display failure`,"InAppMessage.DisplayFailures"))return new d.Z;const i={trigger_ids:[t],error_code:e};return u.Z.N(p.Z.q.Ze,i)}N(t,e,i,n){const s=new d.Z;let o;if(t instanceof r.Z)o={trigger_ids:[t.triggerId]};else{if(e===p.Z.q.Ii||t instanceof a.Z&&e===p.Z.q.Mi){if(!t.p(n))return p.Z.j.info("This in-app message has already received a click. Ignoring analytics event."),s}else if(e===p.Z.q._i&&!t.M())return p.Z.j.info("This in-app message has already received an impression. Ignoring analytics event."),s;o=this.Pi(t)}return null==o?s:(null!=i&&(o.bid=i),u.Z.N(e,o))}Gi(t,e){const i=new d.Z;if(!t.p())return p.Z.j.info("This in-app message button has already received a click. Ignoring analytics event."),i;const n=this.Pi(e);return null==n?i:t.id===l.Z.Oi?(p.Z.j.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=t.id&&(n.bid=t.id),u.Z.N(p.Z.q.Mi,n))}Hi(t){const e=t.messageFields;return null!=e&&e.is_push_primer||!1}Ji(t){if(!(t instanceof o.Z))return;const e=t=>{if(!t)return;const e=(0,v.OL)(t);return(0,v.je)(e)?(0,v.Tu)(v.yi.Ki,"In-App Message"):(0,v.zA)(e)&&!w.Z.Li()?(0,v.Tu)(v.yi.Qi,"In-App Message"):void 0};if(this.Hi(t)&&!w.Z.Li())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";const i=t.buttons||[];let n;for(const t of i)if(t.clickAction===o.Z.ClickAction.URI&&t.uri&&g.y9.test(t.uri)&&(n=e(t.uri),n))return n;return t.clickAction===o.Z.ClickAction.URI&&t.uri&&g.y9.test(t.uri)?e(t.uri):void 0}Vi(t,e,i,s){if(!this.gt)return;const r=this.gt.Wi(!1,!1),a=this.gt.Gs(r);a.template={trigger_id:t.triggerId,trigger_event_type:e},null!=i&&(a.template.data=i.Xi());const l=this.gt.Ks(a,y.Z.Qs.Yi);this.gt.Vs(a,(()=>{this.gt&&(y.Z.Xs(this.u,y.Z.Qs.Yi,(new Date).valueOf()),n.Z.Ys({url:`${this.gt.Zs()}/template/`,data:a,headers:l,O:e=>{if(!this.gt.ti(a,e,l))return this.Ye(t.triggerId,o.Z.Me.Zi),void("function"==typeof t.Mr&&t.Mr());if(this.gt.si(),null==e||null==e.templated_message)return void this.Ye(t.triggerId,o.Z.Me.Zi);const i=e.templated_message;if(i.type!==m.Z.Gr._r)return void this.Ye(t.triggerId,o.Z.Me.Or);const n=(0,c.q)(i.data);if(null==n)return void this.Ye(t.triggerId,o.Z.Me.Or);const s=this.Ji(n);if(s)return p.Z.j.error(s),void("function"==typeof t.Mr&&t.Mr());"function"==typeof t.Hr?t.Hr(n):this.Ye(t.triggerId,o.Z.Me.Zi)},error:n=>{let r=`getting user personalization for message ${t.triggerId}`;if((new Date).valueOf()-t.Jr>t.Kr)this.Ye(t.triggerId,o.Z.Me.Zi);else{const n=Math.min(t.Kr,this.Re),a=this.Oe;null==s&&(s=a);const o=Math.min(n,(0,h.R)(a,3*s));r+=`. Retrying in ${o} ms`,setTimeout((()=>{this.Vi(t,e,i,o)}),o)}this.gt.ii(n,r)}}))}))}Pi(t){if(null==t.triggerId)return p.Z.j.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const e={};return null!=t.triggerId&&(e.trigger_ids=[t.triggerId]),e}}const k={i:null,t:!1,m:()=>(k.o(),k.i||(k.i=new x(s.ZP.ar(),s.ZP.aa(),s.ZP.l(),s.ZP.ir())),k.i),o:()=>{k.t||(s.ZP.g(k),k.t=!0)},destroy:()=>{k.i=null,k.t=!1}},Z=k},8376:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(t){this.triggerId=t,this.triggerId=t,this.extras={},this.isControl=!0}static fromJson(t){return new n(t.trigger_id)}}},4410:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,N){l=l||n.Z.DismissType.MANUAL,A=A||n.Z.Orientation.PORTRAIT,super(t,e,void 0,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E=E||n.Z.CropType.CENTER_CROP,A,_,N),this.Le=n.Z.TextAlignment.CENTER}}s.es=n.Z.Ee.so},1090:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h){super(t,void 0,void 0,e,i,void 0,void 0,void 0,s=s||n.Z.DismissType.MANUAL,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,c),this.messageFields=h,this.messageFields=h}io(){return!1}p(t){if(this.Ce===n.Z.Ee.do){if(this.vo)return!1;this.vo=!0}return this.ht.Et(t),!0}}s.es=n.Z.Ee.do},4072:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(1792),s=i(4663);class r{constructor(t,e,i,a,o,l,u){this.text=t,this.backgroundColor=e,this.textColor=i,this.borderColor=a,this.clickAction=o,this.uri=l,this.id=u,this.text=t||"",this.backgroundColor=e||n.Z.Vr.Ur,this.textColor=i||n.Z.Vr.Wr,this.borderColor=a||this.backgroundColor,this.clickAction=o||n.Z.ClickAction.NONE,this.uri=l,null==u&&(u=r.Oi),this.id=u,this.vo=!1,this.ht=new s.Z}subscribeToClickedEvent(t){return this.ht.lt(t)}removeSubscription(t){this.ht.removeSubscription(t)}removeAllSubscriptions(){this.ht.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.ht.Et(),!0)}static fromJson(t){return new r(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}r.Oi=-1},1792:(t,e,i)=>{i.d(e,{Z:()=>u});var n=i(3774),s=i(3695),r=i(1507),a=i(7429),o=i(4663),l=i(7048);class u{constructor(t,e,i,n,s,r,a,l,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_,N,T,C){this.message=t,this.messageAlignment=e,this.slideFrom=i,this.extras=n,this.triggerId=s,this.clickAction=r,this.uri=a,this.openTarget=l,this.dismissType=c,this.duration=h,this.icon=d,this.imageUrl=p,this.imageStyle=b,this.iconColor=m,this.iconBackgroundColor=f,this.backgroundColor=g,this.textColor=v,this.closeButtonColor=w,this.animateIn=y,this.animateOut=x,this.header=k,this.headerAlignment=Z,this.headerTextColor=S,this.frameColor=E,this.buttons=A,this.cropType=_,this.orientation=N,this.htmlId=T,this.css=C,this.message=t,this.messageAlignment=e||u.TextAlignment.CENTER,this.duration=h||5e3,this.slideFrom=i||u.SlideFrom.BOTTOM,this.extras=n||{},this.triggerId=s,this.clickAction=r||u.ClickAction.NONE,this.uri=a,this.openTarget=l||u.OpenTarget.NONE,this.dismissType=c||u.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=b||u.ImageStyle.TOP,this.iconColor=m||u.Vr.Wr,this.iconBackgroundColor=f||u.Vr.Ur,this.backgroundColor=g||u.Vr.Wr,this.textColor=v||u.Vr.th,this.closeButtonColor=w||u.Vr.sh,this.animateIn=y,null==this.animateIn&&(this.animateIn=!0),this.animateOut=x,null==this.animateOut&&(this.animateOut=!0),this.header=k,this.headerAlignment=Z||u.TextAlignment.CENTER,this.headerTextColor=S||u.Vr.th,this.frameColor=E||u.Vr.ih,this.buttons=A||[],this.cropType=_||u.CropType.FIT_CENTER,this.orientation=N,this.htmlId=T,this.css=C,this.isControl=!1,this.hh=!1,this.eh=!1,this.vo=!1,this.nh=!1,this.qe=null,this.ke=null,this.ht=new o.Z,this.oh=new o.Z,this.Le=u.TextAlignment.CENTER}subscribeToClickedEvent(t){return this.ht.lt(t)}subscribeToDismissedEvent(t){return this.oh.lt(t)}removeSubscription(t){this.ht.removeSubscription(t),this.oh.removeSubscription(t)}removeAllSubscriptions(){this.ht.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.he(this.qe)}xe(){return!0}io(){return this.xe()}$e(){return null!=this.htmlId&&this.htmlId.length>4}ye(){return this.$e()&&null!=this.css&&this.css.length>0}Ae(){if(this.$e()&&this.ye())return this.htmlId+"-css"}M(){return!this.eh&&(this.eh=!0,!0)}Qr(){return this.eh}p(t){return!this.vo&&(this.vo=!0,this.ht.Et(),!0)}F(){return!this.nh&&(this.nh=!0,this.oh.Et(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");if(null==e&&(e=t),this.xe()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(u.rh)&&t.remove(u.rh),document.body.removeEventListener("touchmove",u.lh)}e.className=e.className.replace(u.uh,u.Eh)}return this.animateOut||!1}he(t,e){if(null==t)return;let i;this.qe=null,i=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let n=!1;i&&(n=this.hide(i));const r=document.body;let a;null!=r&&(a=r.scrollTop);const o=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const i=this.Ae();if(null!=i){const t=document.getElementById(i);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=r&&"Safari"===s.Z.browser&&(r.scrollTop=a),e?e():this.F()};n?setTimeout(o,u.Th):o(),this.ke&&this.ke.focus()}Be(){return document.createTextNode(this.message||"")}Ie(t){let e="";this.message||this.header||!this.xe()||(e="Modal Image"),t.setAttribute("alt",e)}static lh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${u.rh}`)&&t.preventDefault()}ah(t){const e=t.parentNode;this.xe()&&null!=e&&this.orientation!==u.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(u.rh),document.body.addEventListener("touchmove",u.lh,!!(0,r.QZ)()&&{passive:!1})),t.className+=" "+u.uh}static mh(t){if(t.keyCode===a.m.Ih&&!n.ZP.nn(n.JY.Lh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let e=!1;for(const i of t){let t=null;(0,l.f)(i)&&i.contentWindow&&(t=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,r.$j)(t),e=!0)}if(!e){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,r.$j)(t)}}}Ah(){this.hh||n.ZP.nn(n.JY.Lh)||(document.addEventListener("keydown",u.mh,!1),n.ZP.Nh((()=>{document.removeEventListener("keydown",u.mh)})),this.hh=!0)}}u.Vr={th:4281545523,Wr:4294967295,Ur:4278219733,dh:4293914607,_h:4283782485,ih:3224580915,sh:4288387995},u.Me={Oh:"hd",ze:"ias",Sh:"of",Dh:"do",Or:"umt",Zi:"tf",Mh:"te"},u.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},u.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},u.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u.OpenTarget={NONE:"NONE",BLANK:"BLANK"},u.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},u.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},u.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},u.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},u.Ee={Rh:"SLIDEUP",bh:"MODAL",Ne:"MODAL_STYLED",so:"FULL",do:"WEB_HTML",Pe:"HTML",ph:"HTML_FULL"},u.Th=500,u.Uh=200,u.uh="ab-show",u.Eh="ab-hide",u.rh="ab-pause-scrolling"},3811:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(1792);class s extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E,A,_){super(t,e,void 0,i,s,r,a,o,l=l||n.Z.DismissType.MANUAL,u,c,h,d,p,b,m,f,g,v,w,y,x,k,Z,S,E=E||n.Z.CropType.FIT_CENTER,void 0,A,_),this.Le=n.Z.TextAlignment.CENTER}}s.es=n.Z.Ee.bh},6616:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(1792),s=i(1507);class r extends n.Z{constructor(t,e,i,s,r,a,o,l,u,c,h,d,p,b,m,f,g,v,w,y,x){f=f||n.Z.Vr._h,m=m||n.Z.Vr.dh,super(t,e=e||n.Z.TextAlignment.START,i,s,r,a,o,l,u,c,h,d,void 0,p,b,m,f,g,v,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y,x),this.Le=n.Z.TextAlignment.START}xe(){return!1}Be(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}ah(t){const e=t.getElementsByClassName("ab-in-app-message")[0];s.lP.eo(e,!0,!0)||(this.slideFrom===n.Z.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.ah(t)}}r.es=n.Z.Ee.Rh},7048:(t,e,i)=>{i.d(e,{f:()=>n});const n=t=>null!==t&&"IFRAME"===t.tagName},761:(t,e,i)=>{i.r(e),i.d(e,{default:()=>b});var n=i(3774),s=i(2893),r=i(3552),a=i(2367),o=i(5966),l=i(7615),u=i(5319),c=i(4556),h=i(8031);class d{constructor(t,e,i,n,s,r,a,o,l,u){this.Yr=t,this.Xr=e,this.Zr=i,this.sn=s,this.rn=r,this.wt=a,this.on=o,this.un=l,this.u=u,this.Yr=t,this.Xr=e,this.Zr=i,this.hn=n+"/safari/"+e,this.sn=s||"/service-worker.js",this.rn=r,this.wt=a,this.on=o||!1,this.un=l||!1,this.u=u,this.an=c.Z.cn(),this.fn=c.Z.ln()}dn(){return this.un}pn(t,e,i,n,s){t.unsubscribe().then((t=>{t?this.bn(e,i,n,s):(a.Z.j.error("Failed to unsubscribe device from push."),"function"==typeof s&&s(!1))})).catch((t=>{a.Z.j.error("Push unsubscription error: "+t),"function"==typeof s&&s(!1)}))}mn(t,e,i){const n=(t=>{if("string"==typeof t)return t;if(0!==t.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return t.endpoint;let e=t.endpoint;const i=t;return i.yn&&-1===t.endpoint.indexOf(i.yn)&&(e=t.endpoint+"/"+i.yn),e})(t);let s=null,r=null;const a=t;if(null!=a.getKey)try{const t=Array.from(new Uint8Array(a.getKey("p256dh"))),e=Array.from(new Uint8Array(a.getKey("auth")));s=btoa(String.fromCharCode.apply(null,t)),r=btoa(String.fromCharCode.apply(null,e))}catch(t){if("invalid arguments"!==(0,h.e)(t))throw t}const o=(t=>{let e;return t.options&&(e=t.options.applicationServerKey)&&e.byteLength&&e.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(e)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(a);this.Yr&&this.Yr.gn(n,e,s,r,o),n&&"function"==typeof i&&i(n,s,r)}wn(){this.Yr&&this.Yr.vn(!0)}kn(t,e){this.Yr&&this.Yr.vn(!1),a.Z.j.info(t),"function"==typeof e&&e(!1)}Pn(t,e,i,n){var s;if("default"===e.permission)try{window.safari.pushNotification.requestPermission(this.hn,t,{api_key:this.Xr,device_id:(null===(s=this.Zr)||void 0===s?void 0:s.te().id)||""},(e=>{"granted"===e.permission&&this.Yr&&this.Yr.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.Pn(t,e,i,n)}))}catch(t){this.kn("Could not request permission for push: "+t,n)}else"denied"===e.permission?this.kn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",n):"granted"===e.permission&&(a.Z.j.info("Device successfully subscribed to push."),this.mn(e.deviceToken,new Date,i))}requestPermission(t,e,i){const n=n=>{switch(n){case"granted":return void("function"==typeof t&&t());case"default":return void("function"==typeof e&&e());case"denied":return void("function"==typeof i&&i());default:a.Z.j.error("Received unexpected permission result "+n)}};let s=!1;const r=window.Notification.requestPermission((t=>{s&&n(t)}));r?r.then((t=>{n(t)})):s=!0}bn(t,e,i,n){const s={userVisibleOnly:!0};null!=e&&(s.applicationServerKey=e),t.pushManager.subscribe(s).then((t=>{a.Z.j.info("Device successfully subscribed to push."),this.mn(t,new Date,i)})).catch((t=>{c.Z.isPushBlocked()?(a.Z.j.info("Permission for push notifications was denied."),"function"==typeof n&&n(!1)):(a.Z.j.error("Push subscription failed: "+t),"function"==typeof n&&n(!0))}))}Dn(){return this.on?navigator.serviceWorker.getRegistration(this.sn):navigator.serviceWorker.register(this.sn).then((()=>navigator.serviceWorker.ready.then((t=>(t&&"function"==typeof t.update&&t.update().catch((t=>{a.Z.j.info("ServiceWorker update failed: "+t)})),t)))))}Sn(t){this.on||(t.unregister(),a.Z.j.info("Service worker successfully unregistered."))}subscribe(t,e){if(!c.Z.isPushSupported())return a.Z.j.info(d.An),void("function"==typeof e&&e(!1));if(this.an){if(!this.on&&null!=window.location){let t=this.sn;-1===t.indexOf(window.location.host)&&(t=window.location.host+t),-1===t.indexOf(window.location.protocol)&&(t=window.location.protocol+"//"+t);const i=t.substr(0,t.lastIndexOf("/")+1);if(0!==u.SD.jn().indexOf(i))return a.Z.j.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+t+")"),void("function"==typeof e&&e(!0))}if(c.Z.isPushBlocked())return void this.kn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.wt&&!this.wt.Un()&&0===this.wt.oi())return a.Z.j.info("Waiting for VAPID key from server config before subscribing to push."),void this.wt.Wn((()=>{this.subscribe(t,e)}));const i=()=>{a.Z.j.info("Permission for push notifications was denied."),"function"==typeof e&&e(!1)},n=()=>{let t="Permission for push notifications was ignored.";c.Z.isPushBlocked()&&(t+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),a.Z.j.info(t),"function"==typeof e&&e(!0)},h=c.Z.isPushPermissionGranted(),d=()=>{!h&&this.Yr&&this.Yr.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.Dn().then((i=>{if(null==i)return a.Z.j.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof e&&e(!0));i.pushManager.getSubscription().then((n=>{let l=null;if(this.wt&&null!=this.wt.Un()&&(l=a.Z.xn._n(this.wt.Un())),n){let u,c=null,h=null;if(this.u&&(u=this.u.v(o.I.k.Nn)),u&&!(0,s.kJ)(u)){let t;try{t=r.Z.zn(u).Tn}catch(e){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(c=t,h=new Date(c),h.setMonth(c.getMonth()+6))}null!=l&&n.options&&n.options.applicationServerKey&&n.options.applicationServerKey.byteLength&&n.options.applicationServerKey.byteLength>0&&!(0,s.Xy)(l,new Uint8Array(n.options.applicationServerKey))?(n.options.applicationServerKey.byteLength>12?a.Z.j.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):a.Z.j.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.pn(n,i,l,t,e)):n.expirationTime&&new Date(n.expirationTime).valueOf()<=(new Date).valueOf()?(a.Z.j.info("Push subscription is expired, creating new subscription."),this.pn(n,i,l,t,e)):u&&(0,s.kJ)(u)?this.pn(n,i,l,t,e):null==h?(a.Z.j.info("No push subscription creation date found, creating new subscription."),this.pn(n,i,l,t,e)):h.valueOf()<=(new Date).valueOf()?(a.Z.j.info("Push subscription older than 6 months, creating new subscription."),this.pn(n,i,l,t,e)):(a.Z.j.info("Device already subscribed to push, sending existing subscription to backend."),this.mn(n,c,t))}else this.bn(i,l,t,e)})).catch((t=>{a.Z.j.error("Error checking current push subscriptions: "+t)}))})).catch((t=>{a.Z.j.error("ServiceWorker registration failed: "+t)}))};this.requestPermission(d,n,i)}else if(this.fn){if(null==this.rn||""===this.rn)return a.Z.j.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof e&&e(!0));const i=window.safari.pushNotification.permission(this.rn);this.Pn(this.rn,i,t,e)}}unsubscribe(t,e){if(!c.Z.isPushSupported())return a.Z.j.info(d.An),void("function"==typeof e&&e());this.an?navigator.serviceWorker.getRegistration().then((i=>{i?i.pushManager.getSubscription().then((n=>{n&&(this.wn(),n.unsubscribe().then((n=>{n?(a.Z.j.info("Device successfully unsubscribed from push."),"function"==typeof t&&t()):(a.Z.j.error("Failed to unsubscribe device from push."),"function"==typeof e&&e()),this.Sn(i)})).catch((t=>{a.Z.j.error("Push unsubscription error: "+t),"function"==typeof e&&e()})))})).catch((t=>{a.Z.j.error("Error unsubscribing from push: "+t),"function"==typeof e&&e()})):(a.Z.j.info("Device already unsubscribed from push."),"function"==typeof t&&t())})):this.fn&&(this.wn(),a.Z.j.info("Device unsubscribed from push."),"function"==typeof t&&t())}}d.An="Push notifications are not supported in this browser.";const p={t:!1,i:null,m:()=>(p.o(),p.i||(p.i=new d(n.ZP.jr(),n.ZP.ea(),n.ZP.ie(),n.ZP.Zs(),n.ZP.nn(n.JY.na),n.ZP.nn(n.JY.ra),n.ZP.tr(),n.ZP.nn(n.JY.ta),n.ZP.nn(n.JY.ia),n.ZP.l())),p.i),o:()=>{p.t||(n.ZP.g(p),p.t=!0)},destroy:()=>{p.i=null,p.t=!1}},b=p},2261:(t,e,i)=>{i.r(e),i.d(e,{requestPushPermission:()=>r});var n=i(3774),s=i(761);function r(t,e){if(n.ZP.rr())return s.default.m().subscribe(((e,i,s)=>{const r=n.ZP.cr();r&&r.requestImmediateDataFlush(),"function"==typeof t&&t(e,i,s)}),e)}},7824:(t,e,i)=>{i.r(e),i.d(e,{unregisterPush:()=>r});var n=i(3774),s=i(761);function r(t,e){if(n.ZP.rr())return s.default.m().unsubscribe(t,e)}},4556:(t,e,i)=>{i.d(e,{Z:()=>s});const n={cn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,ln:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.cn()||n.ln(),isPushBlocked:()=>{const t=n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,e=n.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Li:()=>!n.isPushBlocked()&&n.isPushSupported()&&!n.isPushPermissionGranted()},s=n},7615:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(2893),s=i(2367),r=i(3905),a=i(7671),o=i(7750);class l{constructor(t,e){this.ft=t,this.Ci=e,this.ft=t,this.Ci=e}getUserId(t){null==t&&s.Z.j.error("getUserId must be supplied with a callback. e.g., braze.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})"),"function"==typeof t&&t(this.ft.getUserId())}addAlias(t,e){return!(0,r.ro)(t,"add alias","the alias",!1)||t.length<=0?(s.Z.j.error("addAlias requires a non-empty alias"),!1):!(0,r.ro)(e,"add alias","the label",!1)||e.length<=0?(s.Z.j.error("addAlias requires a non-empty label"),!1):this.Ci.Cn(t,e).O}setFirstName(t){return!!(0,r.ro)(t,"set first name","the firstName",!0)&&this.ft.nu("first_name",t)}setLastName(t){return!!(0,r.ro)(t,"set last name","the lastName",!0)&&this.ft.nu("last_name",t)}setEmail(t){return null===t||(0,r.vV)(t)?this.ft.nu("email",t):(s.Z.j.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!(0,n.fk)(l.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.ft.nu("gender",t)}setDateOfBirth(t,e,i){return null===t&&null===e&&null===i?this.ft.nu("dob",null):(t=null!=t?parseInt(t.toString()):null,e=null!=e?parseInt(e.toString()):null,i=null!=i?parseInt(i.toString()):null,null==t||null==e||null==i||isNaN(t)||isNaN(e)||isNaN(i)||e>12||e<1||i>31||i<1?(s.Z.j.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.ft.nu("dob",`${t}-${e}-${i}`))}setCountry(t){return!!(0,r.ro)(t,"set country","the country",!0)&&this.ft.nu("country",t)}setHomeCity(t){return!!(0,r.ro)(t,"set home city","the homeCity",!0)&&this.ft.nu("home_city",t)}setLanguage(t){return!!(0,r.ro)(t,"set language","the language",!0)&&this.ft.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!(0,n.fk)(l.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.ft.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!(0,n.fk)(l.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.ft.nu("push_subscribe",t)}setPhoneNumber(t){return!!(0,r.ro)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(l.In)?this.ft.nu("phone",t):(s.Z.j.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,e,i,n,r){return null==t||null==e?(s.Z.j.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=i&&(i=parseFloat(i.toString())),null!=n&&(n=parseFloat(n.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(t)||isNaN(e)||null!=i&&isNaN(i)||null!=n&&isNaN(n)||null!=r&&isNaN(r)?(s.Z.j.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(s.Z.j.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):null!=i&&i<0||null!=r&&r<0?(s.Z.j.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ci.setLastKnownLocation(this.ft.getUserId(),t,e,n,i,r).O)}setCustomUserAttribute(t,e,i){if(!(0,r.bj)(t))return!1;const l=e=>{const[i]=(0,r.lg)(e,a.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return i};if((0,n.kJ)(e)){const[i,n]=(0,r.$g)(t,e);if(!i&&!n&&0!==e.length)return!1;if(i||0===e.length)return this.Ci.En(s.Z.q.Fn,t,e).O;for(const t of e)if(!l(t))return!1}else if((0,n.Kn)(e)){if(!l(e))return!1;if(i)return this.Ci.En(s.Z.q.$n,t,e).O}else{if(void 0===e||!(0,r.UO)(e))return!1;if((0,n.J_)(e)&&(e=(0,o.BT)(e)),"string"==typeof e&&!(0,r.zM)(e,`set custom user attribute "${t}"`,"the element in the given array"))return!1}return this.ft.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!(0,r.zM)(t,"add to custom user attribute array","the given key")&&!(null!=e&&!(0,r.zM)(e,"add to custom user attribute array","the given value"))&&this.Ci.En(s.Z.q.Bn,t,e).O}removeFromCustomAttributeArray(t,e){return!!(0,r.zM)(t,"remove from custom user attribute array","the given key")&&!(null!=e&&!(0,r.zM)(e,"remove from custom user attribute array","the given value"))&&this.Ci.En(s.Z.q.Ln,t,e).O}incrementCustomUserAttribute(t,e){if(!(0,r.zM)(t,"increment custom user attribute","the given key"))return!1;null==e&&(e=1);const i=parseInt(e.toString());return isNaN(i)||i!==parseFloat(e.toString())?(s.Z.j.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Ci.En(s.Z.q.Rn,t,i).O}setCustomLocationAttribute(t,e,i){return!!(0,r.zM)(t,"set custom location attribute","the given key")&&((null!==e||null!==i)&&(e=null!=e?parseFloat(e.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==e&&null!=i||null!=e&&null==i||null!=e&&(isNaN(e)||e>90||e<-90)||null!=i&&(isNaN(i)||i>180||i<-180))?(s.Z.j.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.Ci.On(t,e,i).O)}addToSubscriptionGroup(t){return!(0,r.ro)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(s.Z.j.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ci.Gn(t,l.qn.SUBSCRIBED).O}removeFromSubscriptionGroup(t){return!(0,r.ro)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(s.Z.j.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ci.Gn(t,l.qn.UNSUBSCRIBED).O}gn(t,e,i,n,s){this.ft.gn(t,e,i,n,s),this.Ci.Hn()}vn(t){this.ft.vn(t)}}l.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},l.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},l.In=/^[0-9 .\\(\\)\\+\\-]+$/,l.qn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},l.Kn="user_id",l.lu="custom",l.lr=997},67:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(5563);class s{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnreadCardCount(){let t=0;for(const e of this.cards)e.viewed||e instanceof n.Z||t++;return t}ur(){throw new Error("Must be implemented in a subclass")}logCardImpressions(t){throw new Error("Must be implemented in a subclass")}logCardClick(t){throw new Error("Must be implemented in a subclass")}sr(){throw new Error("Must be implemented in a subclass")}}s.mr=6e4,s.Th=500,s.uo=1e4},158:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(){}Ts(t){}changeUser(t=!1){}clearData(t=!1){}}},7671:(t,e,i)=>{i.d(e,{De:()=>s,Fz:()=>n,Go:()=>u,JG:()=>h,O4:()=>c,Tt:()=>p,U4:()=>r,_P:()=>o,dH:()=>d,db:()=>l,rF:()=>a});const n=100,s="inAppMessage must be an InAppMessage object",r="must be a Card object",a=500,o="logCustomEvent",l="setCustomUserAttribute",u="Braze must be initialized before calling methods.",c=5,h=90,d=72e5,p=3},9179:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(2367),s=i(3774),r=i(7559),a=i(4673);const o={N:(t,e,i)=>{var o;const l=new a.Z,u=s.ZP.aa();if(!u)return n.Z.j.info(`Not logging event with type "${t}" because the current session ID could not be found.`),l;const c=u.co();l.ve.push(new r.Z(i||(null===(o=s.ZP.ir())||void 0===o?void 0:o.getUserId()),t,(new Date).valueOf(),c,e));const h=s.ZP.l();return h&&(l.O=h.bo(l.ve)),l}}},1311:(t,e,i)=>{i.d(e,{cP:()=>w,tQ:()=>x,cz:()=>Z,Yz:()=>E,cV:()=>S,GB:()=>_,Of:()=>A});var n=i(67),s=i(5608),r=i(1507),a=i(5563),o=i(2857),l=i(2893),u=i(7429),c=i(3774),h=i(3695),d=i(2367);const p={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/>Fö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 b{constructor(t,e){if(null!=t&&(t=t.toLowerCase()),null!=t&&null==p[t]){const e=t.indexOf("-");e>0&&(t=t.substring(0,e))}if(null==p[t]){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?d.Z.j.error(i):d.Z.j.info(i),t="en"}this.language=t}get(t){return p[this.language][t]}}const m={t:!1,i:null,m:()=>{if(m.o(),!m.i){let t=h.Z.language,e=!1;c.ZP.nn(c.JY.Mn)&&(t=c.ZP.nn(c.JY.Mn),e=!0),m.i=new b(t,e)}return m.i},o:()=>{m.t||(c.ZP.g(m),m.t=!0)},destroy:()=>{m.i=null,m.t=!1}},f=m;var g=i(3905),v=i(3046);const w="data-last-requested-refresh",y={};function x(t){t&&(t.className=t.className.replace("ab-show","ab-hide"),setTimeout((()=>{t&&t.parentNode&&t.parentNode.removeChild(t)}),n.Z.Th));const e=t.getAttribute("data-update-subscription-id");var i;null!=e&&(i=e,c.ZP.rr()&&c.ZP.removeSubscription(i));const s=t.getAttribute("data-listener-id");null!=s&&(window.removeEventListener("scroll",y[s]),delete y[s])}function k(t,e){const i=document.createElement("div");if(i.className="ab-feed-body",i.setAttribute("aria-label","Feed"),i.setAttribute("role","feed"),null==t.lastUpdated){const t=document.createElement("div");t.className="ab-no-cards-message";const e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",t.appendChild(e),i.appendChild(t)}else{let n=!1;const r=e=>t.logCardClick(e);for(const o of t.cards){const l=o instanceof a.Z;!l||t.ur()?(i.appendChild((0,s.Dj)(o,r,e)),n=n||!l):d.Z.j.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!n){const t=document.createElement("div");t.className="ab-no-cards-message",t.innerHTML=f.m().get("NO_CARDS_MESSAGE"),t.setAttribute("role","article"),i.appendChild(t)}}return i}function Z(t,e){if(null!=t&&null!=e){const i=[],n=e.querySelectorAll(".ab-card");t.fo||(t.fo={});for(let e=0;e<n.length;e++){const a=(0,s.sv)(n[e]),o=(0,r.rJ)(n[e]),l=(0,r.Fr)(n[e]);if(t.fo[a]){o||l||(0,s.pq)(n[e]);continue}let u=(0,s.ql)(n[e]),c=(0,s.rW)(n[e]);const h=u,d=c;if(!u&&o&&(u=!0,(0,s.Ji)(n[e])),!c&&l&&(c=!0,(0,s.Zw)(n[e])),u&&c){if(h&&d)continue;for(const e of t.cards)if(e.id===a){t.fo[e.id]=!0,i.push(e);break}}}i.length>0&&t.logCardImpressions(i)}}function S(t,e){if(null==t||null==e)return;e.setAttribute("aria-busy","true");const i=e.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");const s=(new Date).valueOf().toString();e.setAttribute("data-last-requested-refresh",s),setTimeout((()=>{if(e.getAttribute("data-last-requested-refresh")===s){const t=e.querySelectorAll(".fa-spin");for(let e=0;e<t.length;e++)t[e].className=t[e].className.replace(/fa-spin/g,"");const i=e.querySelectorAll(".ab-initial-spinner")[0];if(null!=i){const t=document.createElement("span");t.innerHTML=f.m().get("FEED_TIMEOUT_MESSAGE"),null!=i.parentNode&&(i.parentNode.appendChild(t),i.parentNode.removeChild(i))}"true"===e.getAttribute("aria-busy")&&e.setAttribute("aria-busy","false")}}),n.Z.uo),t.sr()}function E(t,e,i){const n=document.createElement("div");n.className="ab-feed ab-hide ab-effect-slide",n.setAttribute("role","dialog"),n.setAttribute("aria-label","Feed"),n.setAttribute("tabindex","-1");const s=document.createElement("div");s.className="ab-feed-buttons-wrapper",s.setAttribute("role","group"),n.appendChild(s);const r=document.createElement("i");r.className="fa fa-times ab-close-button",r.setAttribute("aria-label","Close Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");const a=t=>{x(n),t.stopPropagation()};r.addEventListener("keydown",(t=>{t.keyCode!==u.m.yo&&t.keyCode!==u.m.Fo||a(t)})),r.onclick=a;const o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",t&&null==t.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");const l=e=>{S(t,n),e.stopPropagation()};o.addEventListener("keydown",(t=>{t.keyCode!==u.m.yo&&t.keyCode!==u.m.Fo||l(t)})),o.onclick=l,s.appendChild(o),s.appendChild(r),n.appendChild(k(t,e));const c=()=>Z(t,n);if(n.addEventListener("scroll",c),!i){window.addEventListener("scroll",c);const t=d.Z.Z.Y();y[t]=c,n.setAttribute("data-listener-id",t)}return n}function A(t,e,i,n,s){if(!(0,l.kJ)(e))return;const r=[];for(const t of e)if(t instanceof o.Z){if(t.url&&g.y9.test(t.url)){const e=(0,v.OL)(t.url);if((0,v.je)(e)){d.Z.j.error((0,v.Tu)(v.yi.Ki,"Content Card"));continue}}r.push(t)}if(t.cards=r,t.lastUpdated=i,null!=n)if(n.setAttribute("aria-busy","false"),null==t.lastUpdated)x(n);else{const e=n.querySelectorAll(".ab-feed-body")[0];if(null!=e){const i=k(t,s);e.parentNode&&e.parentNode.replaceChild(i,e),Z(t,i.parentNode)}}}function _(t,e){t&&e.setAttribute("data-update-subscription-id",t)}},3774:(t,e,i)=>{i.d(e,{JY:()=>L,ZP:()=>R});var n=i(5966),s=i(4663),r=i(2367);class a{constructor(t,e,i){this.u=t,this.Jn=e,this.Qn=i,this.u=t,this.Jn=e||!1,this.Qn=i,this.Vn=new s.Z,this.Xn=0,this.Yn=1}Zn(){return this.Jn}gh(){return this.u.v(n.I.k.Fh)}setSdkAuthenticationSignature(t){const e=this.gh();this.u.D(n.I.k.Fh,t);const i=r.Z.zt.Ft;new r.Z.xt(i,r.Z.j).setItem(i.Jt.kh,this.Yn,t),e!==t&&this.si()}fh(){this.u.ri(n.I.k.Fh);const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).br(t.Jt.kh,this.Yn)}subscribeToSdkAuthenticationFailures(t){return this.Qn.lt(t)}wh(t){this.Qn.Et(t)}jh(){this.Vn.removeAllSubscriptions()}Ch(){this.Xn+=1}xh(){return this.Xn}si(){this.Xn=0}}var o=i(158),l=i(3695);class u{constructor(t){this.id=t,this.id=t}Xi(){const t={};return null!=this.browser&&(t.browser=this.browser),null!=this.Yo&&(t.browser_version=this.Yo),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}const c={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};var h=i(2308),d=i(2893),p=i(8031);class b{constructor(t,e){this.u=t,this.Qo=e,this.u=t,null==e&&(e=(0,d.VO)(c)),this.Qo=e}te(){let t=this.u.tu(n.I.eu.Xo);null==t&&(t=new h.Z(r.Z.Z.Y()),this.u.uu(n.I.eu.Xo,t));const e=new u(t.iu);for(let t=0;t<this.Qo.length;t++)switch(this.Qo[t]){case c.BROWSER:e.browser=l.Z.browser;break;case c.BROWSER_VERSION:e.Yo=l.Z.version;break;case c.OS:e.os=this.Zo();break;case c.RESOLUTION:e.sa=screen.width+"x"+screen.height;break;case c.LANGUAGE:e.language=l.Z.language;break;case c.TIME_ZONE:e.timeZone=this.oa(new Date);break;case c.USER_AGENT:e.userAgent=l.Z.userAgent}return e}Zo(){if(l.Z.ca())return l.Z.ca();const t=this.u.v(n.I.k.la);return t&&t.os_version?t.os_version:l.Z.Zo()}oa(t){let e=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){r.Z.j.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,p.e)(t)),e=!0}if(e)return"";const i=t.getTimezoneOffset();return this.fa(i)}fa(t){const e=Math.trunc(t/60),i=Math.trunc(t%60);let n="GMT";return 0!==t&&(n+=t<0?"+":"-",n+=("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(i)).slice(-2)),n}}var m=i(3826),f=i(7559),g=i(7750),v=i(9179),w=i(6870),y=i(7671);class x{constructor(t,e,i,n,s,r,a,o,l,u,c){this.Zr=t,this.u=e,this.jo=i,this.ft=n,this._e=s,this.wt=r,this.Xr=a,this.Do=o,this.Ro=l,this.Mo=u,this.appVersion=c,this.Zr=t,this.u=e,this.jo=i,this.ft=n,this._e=s,this.wt=r,this.Xr=a,this.Do=o,this.Ro=l,this.Mo=u,this.appVersion=c,this.ha=["npm"]}Gs(t,e=!1){const i=this.Zr.te(),s=i.Xi(),r=this.u.v(n.I.k.la);(0,d.Xy)(r,s)||(t.device=s),t.api_key=this.Xr,t.time=(0,g.FX)((new Date).valueOf(),!0);const a=this.u.v(n.I.k.ua)||[],o=this.u.v(n.I.k.ma)||"";if(this.ha.length>0&&(!(0,d.Xy)(a,this.ha)||o!==this._e.pa())&&(t.sdk_metadata=this.ha),t.sdk_version=this.Ro,this.Mo&&(t.sdk_flavor=this.Mo),t.app_version=this.appVersion,t.device_id=i.id,e){const e=this.ft.getUserId();null!=e&&(t.user_id=e)}return t}ti(t,e,i){const n=e.auth_error,s=e.error;if(!n&&!s)return!0;if(n){let e;this.jo.Ch();const s={errorCode:n.error_code};for(const t of i)(0,d.kJ)(t)&&"X-Braze-Auth-Signature"===t[0]&&(s.signature=t[1]);t.respond_with&&t.respond_with.user_id?s.userId=t.respond_with.user_id:t.user_id&&(s.userId=t.user_id);const a=n.reason;return a?(s.reason=a,e=`due to ${a}`):e=`with error code ${n.error_code}.`,this.jo.Zn()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),r.Z.j.error(`SDK Authentication failed ${e}`),this.Ra(t.events||[],t.attributes||[]),this.jo.wh(s),!1}if(s){let i,n=s;switch(n){case m.Z.ga:return i="Received successful response with empty body.",v.Z.N(r.Z.q.Is,{e:i}),r.Z.j.info(i),!1;case m.Z.qa:return i="Received successful response with invalid JSON",v.Z.N(r.Z.q.Is,{e:i+": "+e.response}),r.Z.j.info(i),!1;case m.Z.ba:n=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Do}`;break;case m.Z.Aa:n="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case m.Z.za:n="No device identifier. Please contact support@braze.com"}r.Z.j.error("Backend error: "+n)}return!1}Ba(t,e,i,n){return!!(t&&0!==t.length||e&&0!==e.length||i||n)}Da(t,e,i,n){const s=[],r=t=>t||"",a=r(this.ft.getUserId());let o=this.Wi(t,e);const l=[],u=[];let c,h=null;if(i.length>0){const t=[];for(const e of i){if(c=e.Xi(),this.jo.Zn()){if(a&&!c.user_id){h||(h={}),h.events||(h.events=[]),h.events.push(c);continue}if(r(c.user_id)!==a){u.push(c);continue}}t.push(c)}t.length>0&&(o.events=t)}if(n.length>0){const t=[];for(const e of n)this.jo.Zn()&&r(e.user_id)!==a?l.push(e):t.push(e);t.length>0&&(o.attributes=t)}if(this.Ra(u,l),o=this.Gs(o,!0),h){h=this.Gs(h,!1);const t={requestData:h,headers:this.Ks(h,w.Z.Qs.Sa)};s.push(t)}if(o&&!this.Ba(o.events,o.attributes,t,e))return h?s:null;const d={requestData:o,headers:this.Ks(o,w.Z.Qs.Sa)};return s.push(d),s}Ra(t,e){if(t){const e=[];for(const i of t){const t=f.Z.fromJson(i);t.time=(0,g.Pn)(t.time),e.push(t)}this.u.bo(e)}if(e)for(const t of e)this.u.va(t)}ii(t,e){let i="HTTP error ";null!=t&&(i+=t+" "),i+=e,r.Z.j.error(i)}qr(t){return v.Z.N(r.Z.q.ka,{n:t})}Wi(t,e,i){const n={};t&&(n.feed=!0),e&&(n.triggers=!0);const s=null!=i?i:this.ft.getUserId();return s&&(n.user_id=s),n.config={config_time:this.wt.oi()},{respond_with:n}}Ta(t){const e=(new Date).valueOf();let i=y.dH.toString();const n=w.Z.Xa(this.u,t);return-1!==n&&(i=(e-n).toString()),i}Ks(t,e,i=!1){const s=[["X-Braze-Api-Key",this.Xr]],r=this.Ta(e);s.push(["X-Braze-Last-Req-Ms-Ago",r]);let a=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),a=!0),null!=t.respond_with&&t.respond_with.feed&&(s.push(["X-Braze-FeedRequest","true"]),a=!0),e===w.Z.Qs.Os){s.push(["X-Braze-ContentCardsRequest","true"]);let t=this.u.v(n.I.k.Fs);t&&i||(t=0,this.u.D(n.I.k.Fs,t)),s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),a=!0}if(e===w.Z.Qs.xi&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),a=!0),a&&s.push(["X-Braze-DataRequest","true"]),this.jo.Zn()){const t=this.jo.gh();null!=t&&s.push(["X-Braze-Auth-Signature",t])}return s}Vs(t,e){const i=t.device;i&&i.os_version instanceof Promise?i.os_version.then((i=>{t.device.os_version=i,e()})):e()}si(){this.jo.si()}Zs(){return this.Do}addSdkMetadata(t){for(const e of t)-1===this.ha.indexOf(e)&&this.ha.push(e)}}var k=i(1843),Z=i(6504),S=i(4673),E=i(4556);class A{constructor(t,e,i,n,r,a,o,l,u,c){this.$l=t,this.Fl=e,this.Ll=0,this.Pl=o.Wa(),this.Jl=null,this.Bl=i,this.Ql=n,this.Xl=r,this.Zl=a,this.yh=o,this.$h=u,this.qh=c,this.Ph=l,this.Jh=new s.Z,this.Kh=50}Wh(t,e){return!t&&!e&&this.$h.xh()>=this.Kh}Bh(t){let e=this.Bl.El();if(t.length>0){const i=this.Xl.getUserId();for(const n of t){const t=!n.userId&&!i||n.userId===i;n.type===r.Z.q.Wl&&t&&(e=!0)}}return e}Gh(t,e,i,s,a,o,l){null==i&&(i=!0),i&&this.Hh();const u=this.yh.Ja(),c=this.yh.Ha();let h=!1;const d=(t,e)=>{let r=!1;w.Z.Xs(this.yh,w.Z.Qs.Sa,(new Date).valueOf()),k.Z.Ys({url:this.Fl+"/data/",data:t,headers:e,O:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Ll=Math.max(this.Ll-1,0)),this.qh.ti(t,i,e)?(this.$h.si(),this.Zl.ul(i),null!=t.respond_with&&t.respond_with.user_id!=this.Xl.getUserId()||(null!=t.device&&this.yh.D(n.I.k.la,t.device),null!=t.sdk_metadata&&(this.yh.D(n.I.k.ua,t.sdk_metadata),this.yh.D(n.I.k.ma,this.Bl.pa())),this.Ph(i),"function"==typeof s&&s())):i.auth_error&&(r=!0)},error:()=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Ll=Math.max(this.Ll-1,0)),this.qh.Ra(t.events,t.attributes),"function"==typeof a&&a()},ei:t=>{if("function"==typeof o&&o(t),i&&!h){if(t&&!r)this.Qh();else{let t=this.Jl;(null==t||t<1e3*this.Pl)&&(t=1e3*this.Pl),this.Qh(Math.min(3e5,(0,Z.R)(1e3*this.Pl,3*t)))}h=!0}}})},p=this.Bh(u),b=e||p;if(this.Wh(l,p))return void r.Z.j.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.qh.Ba(u,c,t,b))return this.Qh(),void("function"==typeof o&&o(!0));const m=this.qh.Da(t,b,u,c);b&&this.Ll++;let f=!1;if(m)for(const t of m)this.qh.Vs(t.requestData,(()=>d(t.requestData,t.headers))),f=!0;this.$h.Zn()&&i&&!f?this.Qh():p&&(r.Z.j.info("Invoking new session subscriptions"),this.Jh.Et())}Vh(){return this.Ll>0}Qh(t){this.Xh||(null==t&&(t=1e3*this.Pl),this.Hh(),this.Yh=setTimeout((()=>{if(document.hidden){const t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.Gh())};document.addEventListener(t,e,!1)}else this.Gh()}),t),this.Jl=t)}Hh(){null!=this.Yh&&(clearTimeout(this.Yh),this.Yh=null)}initialize(){this.Xh=!1,this.Qh()}destroy(){this.Jh.removeAllSubscriptions(),this.$h.jh(),this.Hh(),this.Xh=!0,this.Gh(null,null,!1),this.Yh=null}pr(t){return this.Jh.lt(t)}openSession(){const t=this.Bl.pa()!==this.Bl.co();t&&(this.yh.Pa(n.I.eu.Xo),this.yh.Pa(n.I.eu.su)),this.Gh(null,!1,null,null,null),this.Hn(),t&&Promise.resolve().then(i.bind(i,761)).then((t=>{if(this.Xh)return;const e=t.default.m();if(null!=e&&(E.Z.isPushPermissionGranted()||E.Z.isPushBlocked())){const t=()=>{e.dn()?r.Z.j.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()},i=(e,i)=>{i&&t()},s=()=>{const e=this.yh.v(n.I.k.Nn);(null==e||e)&&t()},a=r.Z.zt.Ft;new r.Z.xt(a,r.Z.j).hr(a.Jt.cu,i,s)}}))}changeUser(t,e,i){const s=this.Xl.getUserId();if(s!==t){this.Bl.kl(),null!=s&&this.Gh(null,!1,null,null,null),this.Xl.ru(t),i?this.$h.setSdkAuthenticationSignature(i):this.$h.fh();for(let t=0;t<e.length;t++)e[t].changeUser(null==s);null!=s&&this.yh.ri(n.I.k.L),this.yh.ri(n.I.k.la),this.openSession(),r.Z.j.info('Changed user to "'+t+'".')}else{let e="Doing nothing.";i&&this.$h.gh()!==i&&(this.$h.setSdkAuthenticationSignature(i),e="Updated SDK authentication signature"),r.Z.j.info(`Current user is already ${t}. ${e}`)}}requestImmediateDataFlush(t){this.Hh(),this.Bl.co(),this.Gh(null,null,null,null,(()=>{r.Z.j.error("Failed to flush data, request will be retried automatically.")}),t,!0)}requestFeedRefresh(){this.Bl.co(),this.Gh(!0)}$r(t,e){this.Bl.co(),r.Z.j.info("Requesting explicit trigger refresh."),this.Gh(null,!0,null,t,e)}Cn(t,e){const i=r.Z.q.Zh,n={a:t,l:e},s=v.Z.N(i,n);return s&&r.Z.j.info(`Logged alias ${t} with label ${e}`),s}En(t,e,i){if(this.Zl.hu(e))return r.Z.j.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new S.Z;const n={key:e,value:i},s=v.Z.N(t,n);if(s){const t="object"==typeof i?JSON.stringify(i,null,2):i;r.Z.j.info(`Logged custom attribute: ${e} with value: ${t}`)}return s}setLastKnownLocation(t,e,i,n,s,a){const o={latitude:e,longitude:i};null!=n&&(o.altitude=n),null!=s&&(o.ll_accuracy=s),null!=a&&(o.alt_accuracy=a);const l=v.Z.N(r.Z.q.au,o,t);return l&&r.Z.j.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}vr(t,e){const i=this.Bl.co();return new f.Z(this.Xl.getUserId(),r.Z.q.du,t,i,{cid:e})}Hn(){const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).setItem(t.Jt.Sa,1,{baseUrl:this.Fl,data:{api_key:this.$l,device_id:this.Ql.te().id},userId:this.Xl.getUserId(),sdkAuthEnabled:this.$h.Zn()})}Fr(t){for(const e of t)if(e.api_key===this.$l)this.qh.Ra(e.events,e.attributes);else{const t=r.Z.zt.Ft;new r.Z.xt(t,r.Z.j).setItem(t.Jt.yr,r.Z.Z.Y(),e)}}On(t,e,i){if(this.Zl.hu(t))return r.Z.j.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new S.Z;let n,s;return null===e&&null===i?(n=r.Z.q.fu,s={key:t}):(n=r.Z.q.gu,s={key:t,latitude:e,longitude:i}),v.Z.N(n,s)}Gn(t,e){const i={group_id:t,status:e};return v.Z.N(r.Z.q.pu,i)}}class _{constructor(t=0,e=[],i=[],n=[],s=null,r=null,a={enabled:!1},o={enabled:!1,refresh_rate_limit:-1}){this.ol=t,this.cl=e,this.gl=i,this.fl=n,this.bl=s,this.al=r,this.ml=a,this.mi=o,this.ol=t,this.cl=e,this.gl=i,this.fl=n,this.bl=s,this.al=r,this.ml=a,this.mi=o}ss(){return{s:"4.8.3",l:this.ol,e:this.cl,a:this.gl,p:this.fl,m:this.bl,v:this.al,c:this.ml,f:this.mi}}static zn(t){let e=t.l;return"4.8.3"!==t.s&&(e=0),new _(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f)}}class N{constructor(t){this.u=t,this.u=t,this.tl=new s.Z,this.el=new s.Z,this.sl=new s.Z,this.il=null,this.rl=null}ll(){if(null==this.rl){const t=this.u.v(n.I.k.hl);this.rl=null!=t?_.zn(t):new _}return this.rl}oi(){return this.ll().ol}ul(t){if(null!=t&&null!=t.config){const e=t.config;if(e.time>this.ll().ol){const t=new _(e.time,e.events_blacklist,e.attributes_blacklist,e.purchases_blacklist,e.messaging_session_timeout,e.vapid_public_key,e.content_cards,e.feature_flags);let i=!1;null!=t.al&&this.Un()!==t.al&&(i=!0);let s=!1;null!=t.ml.enabled&&this.ni()!==t.ml.enabled&&(s=!0);let r=!1;null!=t.mi.enabled&&this.bi()!==t.mi.enabled&&(r=!0),this.rl=t,this.u.D(n.I.k.hl,t.ss()),i&&this.tl.Et(),s&&this.el.Et(),r&&this.sl.Et()}}}Wn(t){const e=this.tl.lt(t);return this.il&&this.tl.removeSubscription(this.il),this.il=e,e}$s(t){return this.el.lt(t)}Ni(t){return this.sl.lt(t)}ge(t){return-1!==this.ll().cl.indexOf(t)}hu(t){return-1!==this.ll().gl.indexOf(t)}Dr(t){return-1!==this.ll().fl.indexOf(t)}dl(){return this.ll().bl}Un(){return this.ll().al}ni(){return this.ll().ml.enabled||!1}_s(){const t=this.ll().ml.rate_limit;return!(!t||null==t.enabled)&&t.enabled}fi(){if(!this._s())return-1;const t=this.ll().ml.rate_limit;return null==t.capacity?y.O4:t.capacity<=0?-1:t.capacity}di(){if(!this._s())return-1;const t=this.ll().ml.rate_limit;return null==t.refill_rate?y.JG:t.refill_rate<=0?-1:t.refill_rate}bi(){return this.ll().mi.enabled&&null==this.Si()?(v.Z.N(r.Z.q.Is,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ll().mi.enabled||!1}Si(){return this.ll().mi.refresh_rate_limit}}class T{constructor(t,e,i,n){this.u=t,this.ft=e,this.wt=i,this.wl=n,this.u=t,this.ft=e,this.wt=i,this.Sl=1e3,(null==n||isNaN(n))&&(n=1800),n<this.Sl/1e3&&(r.Z.j.info("Specified session timeout of "+n+"s is too small, using the minimum session timeout of "+this.Sl/1e3+"s instead."),n=this.Sl/1e3),this.wl=n}jl(t,e){return new f.Z(this.ft.getUserId(),r.Z.q.xl,t,e.iu,{d:(0,g.FX)(t-e.vl)})}pa(){const t=this.u.tu(n.I.eu.Dl);return null==t?null:t.iu}El(){const t=(new Date).valueOf(),e=this.wt.dl(),i=this.u.v(n.I.k.zl);if(null!=i&&null==e)return!1;let s=!1;return null==i?s=!0:null!=e&&(s=t-i>1e3*e),s&&this.u.D(n.I.k.zl,t),s}Cl(t,e){return null==e||null==e.Gl||!(t-e.vl<this.Sl)&&e.Gl<t}co(){const t=(new Date).valueOf(),e=t+1e3*this.wl,i=this.u.tu(n.I.eu.Dl);if(this.Cl(t,i)){let s="Generating session start event with time "+t;if(null!=i){let t=i.Nl;t-i.vl<this.Sl&&(t=i.vl+this.Sl),this.u.Hl(this.jl(t,i)),s+=" (old session ended "+t+")"}s+=". Will expire "+e.valueOf(),r.Z.j.info(s);const a=new h.Z(r.Z.Z.Y(),e);return this.u.Hl(new f.Z(this.ft.getUserId(),r.Z.q.Wl,t,a.iu)),this.u.uu(n.I.eu.Dl,a),null==this.u.v(n.I.k.zl)&&this.u.D(n.I.k.zl,t),a.iu}if(null!=i)return i.Nl=t,i.Gl=e,this.u.uu(n.I.eu.Dl,i),i.iu}kl(){const t=this.u.tu(n.I.eu.Dl);null!=t&&(this.u.ql(n.I.eu.Dl),this.u.Hl(this.jl((new Date).valueOf(),t)))}}const C={$o:function(t,e=!1){let i=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(n.I.k.Ea,"true"),localStorage.getItem(n.I.k.Ea)&&(localStorage.removeItem(n.I.k.Ea),i=!0)}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;i=!0}}catch(t){r.Z.j.info("Local Storage not supported!")}const s=C.wa(),a=new n.Z._a(t,s&&!e,i);let o;return o=i?new n.Z.Oa(t):new n.Z.xa,new n.Z(a,o)},wa:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}},I=C;var O=i(9342),P=i(8548),j=i(3552),D=i(7615);class z{constructor(t,e){this.wt=t,this.u=e,this.wt=t,this.u=e}getUserId(){const t=this.u.tu(n.I.eu.su);if(null==t)return null;let e=t.iu,i=(0,P.E)(e);if(i>D.Z.lr){for(;i>D.Z.lr;)e=e.slice(0,e.length-1),i=(0,P.E)(e);t.iu=e,this.u.uu(n.I.eu.su,t)}return e}ru(t){const e=null==this.getUserId();this.u.uu(n.I.eu.su,new h.Z(t)),e&&this.u.ou(t)}setCustomUserAttribute(t,e){if(this.wt.hu(t))return r.Z.j.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const i={};return i[t]=e,this.nu(D.Z.lu,i,!0)}nu(t,e,i=!1,n=!1){const s=this.u.mu(this.getUserId(),t,e);let a="",o=t,l=e;return i&&(a=" custom","object"==typeof e&&(o=Object.keys(e)[0],l=e[o],"object"==typeof l&&(l=JSON.stringify(l,null,2)))),!n&&s&&r.Z.j.info(`Logged${a} attribute ${o} with value ${l}`),s}gn(t,e,i,s,a){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",s,!1,!0),this.nu("custom_push_vapid_public_key",a,!1,!0);const o=r.Z.zt.Ft,l=new r.Z.xt(o,r.Z.j),u=new j.Z(t,e,i,s,a);this.u.D(n.I.k.Nn,u.ss()),l.setItem(o.Jt.cu,o.se,!0)}vn(t){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),t){const t=r.Z.zt.Ft,e=new r.Z.xt(t,r.Z.j);this.u.D(n.I.k.Nn,!1),e.setItem(t.Jt.cu,t.se,!1)}}}var U=i(1148),M=i(5319);const L={ho:"allowCrawlerActivity",Eo:"baseUrl",_o:"noCookies",Io:"devicePropertyAllowlist",ia:"disablePushTokenMaintenance",Ao:"enableLogging",So:"enableSdkAuthentication",ta:"manageServiceWorkerExternally",No:"minimumIntervalBetweenTriggerActionsInSeconds",wo:"sessionTimeoutInSeconds",To:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",Mn:"localization",lo:"contentSecurityNonce",Oo:"enableHtmlInAppMessages",Co:"allowUserSuppliedJavascript",mo:"inAppMessageZIndex",po:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Lo:"doNotLoadFontAwesome",Po:"sdkFlavor"},R=new class{constructor(){this.Xr="",this.Ro="",this.Mo=void 0,this.jo=null,this.Zr=null,this.gt=null,this.Ci=null,this.wt=null,this._e=null,this.u=null,this.ft=null,this.Do="",this.Uo=!1,this.Bo=!1,this.Wo=new s.Z,this.zo=new s.Z,this.options={},this.Vo=[],this.Go=[],this.Se=[],this.Ro="4.8.3"}Ko(t){this.Wo.lt(t)}Nh(t){this.zo.lt(t)}initialize(t,e){if(this.ue())return r.Z.j.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let o=this.nn(L.Ao);const u=(0,U.L)(M.SD.jn());if(u&&"true"===u.brazeLogging&&(o=!0),r.Z.j.init(o),r.Z.j.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return r.Z.j.error("Braze requires a valid API key to be initialized."),!1;this.Xr=t;let h=this.nn(L.Eo);if(null==h||""===h||"string"!=typeof h)return r.Z.j.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(h)&&(h=`https://${h}`);const p=h;if(h=document.createElement("a"),h.href=p,"/"===h.pathname&&(h=`${h}api/v3`),this.Do=h.toString(),l.Z.Ho&&!this.nn(L.ho))return r.Z.j.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Bo=!0,!1;const m=this.nn(L._o)||!1;if(this.u=I.$o(t,m),m&&this.u.qo(t),new n.Z.ee(null,!0).wr(n.I.ne))return r.Z.j.info("Ignoring all activity due to previous opt out"),this.Bo=!0,!1;for(const t of(0,d.XP)(this.options))-1===(0,d.VO)(r.Z.xo).indexOf(t)&&r.Z.j.warn(`Ignoring unknown initialization option '${t}'.`);const f=["mparticle","wordpress","tealium"];if(null!=this.nn(L.Po)){const t=this.nn(L.Po);-1!==f.indexOf(t)?this.Mo=t:r.Z.j.error("Invalid sdk flavor passed: "+t)}let g=this.nn(r.Z.xo.Io);if(null!=g)if((0,d.kJ)(g)){const t=[];for(let e=0;e<g.length;e++)(0,d.fk)(c,g[e],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(g[e]);g=t}else r.Z.j.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),g=null;this.Zr=new b(this.u,g),this.wt=new N(this.u),this.ft=new z(this.wt,this.u),this._e=new T(this.u,this.ft,this.wt,this.nn(L.wo));const v=new s.Z;return this.jo=new a(this.u,this.nn(L.So),v),this.jt(v),this.gt=new x(this.Zr,this.u,this.jo,this.ft,this._e,this.wt,this.Xr,this.Do,this.Ro,this.Mo||"",this.nn(L.To)),this.Ci=new A(this.Xr,this.Do,this._e,this.Zr,this.ft,this.wt,this.u,(t=>{if(this.ue())for(const e of this.gr())e.Ts(t)}),this.jo,this.gt),this.Ci.initialize(),r.Z.j.info(`Initialized for the Braze backend at "${this.nn(L.Eo)}" with API key "${this.Xr}".`),null!=this.nn(L.Oo)&&function(t,e,i){let n="The 'enableHtmlInAppMessages' initialization option is deprecated.";i&&(n+=` Please use '${i}' instead.`),r.Z.j.warn(n)}(0,0,"allowUserSuppliedJavascript"),O.n.init(),this.wt.Ni((()=>{this.Uo&&this.wt&&this.wt.bi()&&i.e(787).then(i.bind(i,9787)).then((t=>{this.Uo&&(0,t.default)()}))})),this.Ci.pr((()=>{this.Uo&&this.wt&&this.wt.bi()&&i.e(787).then(i.bind(i,9787)).then((t=>{this.Uo&&(0,t.default)(void 0,void 0,!0)}))})),this.Wo.Et(this.options),this.Uo=!0,!0}destroy(t){if(r.Z.j.destroy(),this.ue()){this.zo.Et(),this.zo.removeAllSubscriptions();for(const t of this.Vo)t.destroy();this.Vo=[];for(const t of this.Go)t.clearData(!1);this.Go=[],this.removeAllSubscriptions(),this.Se=[],null!=this.Ci&&this.Ci.destroy(),this.Ci=null,this.jo=null,this.Zr=null,this.gt=null,this.wt=null,this._e=null,this.ft=null,this.options={},this.Mo=void 0,this.Uo=!1,this.Bo=!1,t&&(this.u=null)}}rr(){if(this.Jo())return!1;if(!this.ue())throw new Error(y.Go);return!0}ea(){return this.Xr}Sr(){return this.jo}Zs(){return this.Do}ie(){return this.Zr}ar(){return this.gt}nn(t){return this.options[t]}gr(){return this.Go}cr(){return this.Ci}tr(){return this.wt}aa(){return this._e}l(){return this.u}jr(){if(this.ft&&this.Ci)return new D.Z(this.ft,this.Ci)}ir(){return this.ft}nr(){return!0===this.nn(L.Co)||!0===this.nn(L.Oo)}g(t){let e=!1;for(const i of this.Vo)i===t&&(e=!0);e||this.Vo.push(t)}dr(t){let e=!1;for(const i of this.Go)i.constructor===t.constructor&&(e=!0);t instanceof o.Z&&!e&&this.Go.push(t)}jt(t){t instanceof s.Z&&this.Se.push(t)}removeAllSubscriptions(){if(this.rr())for(const t of this.Se)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(const e of this.Se)e.removeSubscription(t)}ae(t){this.Bo=t}ue(){return this.Uo}Jo(){return this.Bo}Us(){return this.Ro}}},5966:(t,e,i)=>{i.d(e,{I:()=>c,Z:()=>h});var n=i(7559),s=i(2308),r=i(2893),a=i(2367),o=i(7615),l=i(3695),u=i(8031);const c={eu:{su:"ab.storage.userId",Xo:"ab.storage.deviceId",Dl:"ab.storage.sessionId"},k:{Ea:"ab.test",Ia:"ab.storage.events",Ka:"ab.storage.attributes",Ya:"ab.storage.attributes.anonymous_user",la:"ab.storage.device",ua:"ab.storage.sdk_metadata",ma:"ab.storage.session_id_for_cached_metadata",Nn:"ab.storage.pushToken",ki:"ab.storage.newsFeed",Ai:"ab.storage.lastNewsFeedRefresh",L:"ab.storage.cardImpressions",hl:"ab.storage.serverConfig",Na:"ab.storage.triggers",Ca:"ab.storage.triggers.ts",zl:"ab.storage.messagingSessionStart",Zt:"ab.storage.cc",vs:"ab.storage.ccLastFullSync",ys:"ab.storage.ccLastCardUpdated",Ws:"ab.storage.ccLastClientRequest",ui:"ab.storage.ccRateLimitCurrentTokenCount",C:"ab.storage.ccClicks",K:"ab.storage.ccImpressions",G:"ab.storage.ccDismissals",Ga:"ab.storage.lastDisplayedTriggerTimesById",Ma:"ab.storage.lastDisplayedTriggerTime",ya:"ab.storage.triggerFireInstancesById",Fh:"ab.storage.signature",Fs:"ab.storage.brazeSyncRetryCount",Ss:"ab.storage.sdkVersion",Di:"ab.storage.ff",$i:"ab.storage.ffLastRefreshAt",Ua:"ab.storage.lastReqToEndpoint"},ne:"ab.optOut"};class h{constructor(t,e){this.La=t,this.Fa=e,this.La=t,this.Fa=e}qo(t){const e=(0,r.XP)(c.eu),i=new h.ee(t);for(const t of e)i.remove(c.eu[t])}uu(t,e){let i=null;null!=e&&e instanceof s.Z&&(i=e.ss()),this.La.store(t,i)}Pa(t){const e=this.tu(t);null!=e&&(e.Nl=(new Date).valueOf(),this.uu(t,e))}tu(t){return s.Z.zn(this.La.wr(t))}ql(t){this.La.remove(t)}bo(t){let e;if(null==t||0===t.length)return!1;e=(0,r.kJ)(t)?t:[t];let i=this.Fa.wr(c.k.Ia);null!=i&&(0,r.kJ)(i)||(i=[]);for(let t=0;t<e.length;t++)i.push(e[t].ss());return this.Fa.store(c.k.Ia,i)}Hl(t){return null!=t&&this.bo([t])}Ja(){let t=this.Fa.wr(c.k.Ia);this.Fa.remove(c.k.Ia),null==t&&(t=[]);const e=[];let i=!1,s=null;if((0,r.kJ)(t))for(let i=0;i<t.length;i++)n.Z.Qa(t[i])?e.push(n.Z.zn(t[i])):s=i;else i=!0;if(i||null!=s){let r="Stored events could not be deserialized as Events";i&&(r+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(r+=", value at index "+s+" does not look like an event"),r+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new n.Z(null,a.Z.q.Is,(new Date).valueOf(),null,{e:r}))}return e}D(t,e){return!!(0,r.fk)(c.k,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.Fa.store(t,e)}v(t){return!!(0,r.fk)(c.k,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.Fa.wr(t)}ri(t){return!!(0,r.fk)(c.k,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.Fa.remove(t),!0)}clearData(){const t=(0,r.XP)(c.eu),e=(0,r.XP)(c.k);for(let e=0;e<t.length;e++){const i=t[e];this.La.remove(c.eu[i])}for(let t=0;t<e.length;t++){const i=e[t];this.Fa.remove(c.k[i])}}Va(t){return t||c.k.Ya}va(t){let e=this.Fa.wr(c.k.Ka);null==e&&(e={});const i=this.Va(t[o.Z.Kn]),n=e[i];for(const s in t)s!==o.Z.Kn&&(null==e[i]||n&&null==n[s])&&this.mu(t[o.Z.Kn],s,t[s])}mu(t,e,i){let n=this.Fa.wr(c.k.Ka);null==n&&(n={});const s=this.Va(t);let r=n[s];if(null==r&&(r={},null!=t&&(r[o.Z.Kn]=t)),e===o.Z.lu){null==r[e]&&(r[e]={});for(const t in i)r[e][t]=i[t]}else null!=i&&(r[e]=i);return n[s]=r,this.Fa.store(c.k.Ka,n)}Ha(){const t=this.Fa.wr(c.k.Ka);this.Fa.remove(c.k.Ka);const e=[];for(const i in t)null!=t[i]&&e.push(t[i]);return e}ou(t){const e=this.Fa.wr(c.k.Ka);if(null!=e){const i=this.Va(null),n=e[i];null!=n&&(e[i]=void 0,this.Fa.store(c.k.Ka,e),n[o.Z.Kn]=t,this.va(n))}const i=this.tu(c.eu.Dl);let n=null;null!=i&&(n=i.iu);const s=this.Ja();if(null!=s)for(let e=0;e<s.length;e++){const i=s[e];null==i.userId&&i.sessionId==n&&(i.userId=t),this.Hl(i)}}Wa(){return this.Fa.Za}}h.Oa=class{constructor(t){this.Xr=t,this.Xr=t,this.Za=l.Z.$a()?3:10}_l(t){return t+"."+this.Xr}store(t,e){const i={v:e};try{return localStorage.setItem(this._l(t),JSON.stringify(i)),!0}catch(t){return a.Z.j.info("Storage failure: "+(0,u.e)(t)),!1}}wr(t){try{let e=null;const i=localStorage.getItem(this._l(t));return null!=i&&(e=JSON.parse(i)),null==e?null:e.v}catch(t){return a.Z.j.info("Storage retrieval failure: "+(0,u.e)(t)),null}}remove(t){try{localStorage.removeItem(this._l(t))}catch(t){return a.Z.j.info("Storage removal failure: "+(0,u.e)(t)),!1}}},h.xa=class{constructor(){this.Tl={},this.Al=5242880,this.Za=3}store(t,e){const i={value:e},n=this.Rl(e);return n>this.Al?(a.Z.j.info("Storage failure: object is ≈"+n+" bytes which is greater than the max of "+this.Al),!1):(this.Tl[t]=i,!0)}Rl(t){const e=[],i=[t];let n=0;for(;i.length;){const t=i.pop();if("boolean"==typeof t)n+=4;else if("string"==typeof t)n+=2*t.length;else if("number"==typeof t)n+=8;else if("object"==typeof t&&-1===e.indexOf(t)){let n,s;e.push(t);for(const e in t)s=t,n=e,i.push(s[n])}}return n}wr(t){const e=this.Tl[t];return null==e?null:e.value}remove(t){this.Tl[t]=null}},h.ee=class{constructor(t,e){this.Xr=t,this.Ol=e,this.Xr=t,this.Il=this.Kl(),this.Yl=576e3,this.Ol=!!e}_l(t){return null!=this.Xr?t+"."+this.Xr:t}Kl(){let t=0,e=document.location.hostname;const i=e.split("."),n="ab._gd";for(;t<i.length-1&&-1===document.cookie.indexOf(n+"="+n);)t++,e="."+i.slice(-1-t).join("."),document.cookie=n+"="+n+";domain="+e+";";return document.cookie=n+"=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}re(){const t=new Date;return t.setTime(t.getTime()+60*this.Yl*1e3),t.getFullYear()}Ml(){const t=(0,r.VO)(c.eu),e=document.cookie.split(";");for(let i=0;i<e.length;i++){let n=e[i];for(;" "===n.charAt(0);)n=n.substring(1);let s=!1;for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e])){s=!0;break}if(s){const t=n.split("=")[0];-1===t.indexOf("."+this.Xr)&&this.yl(t)}}}store(t,e){this.Ml();const i=new Date;i.setTime(i.getTime()+60*this.Yl*1e3);const n="expires="+i.toUTCString(),s="domain="+this.Il;let r;r=this.Ol?e:encodeURIComponent(JSON.stringify(e));const o=this._l(t)+"="+r+";"+n+";"+s+";path=/";return o.length>=4093?(a.Z.j.info("Storage failure: string is "+o.length+" chars which is too large to store as a cookie."),!1):(document.cookie=o,!0)}wr(t){const e=[],i=this._l(t)+"=",n=document.cookie.split(";");for(let s=0;s<n.length;s++){let r=n[s];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(i))try{let t;t=this.Ol?r.substring(i.length,r.length):JSON.parse(decodeURIComponent(r.substring(i.length,r.length))),e.push(t)}catch(e){return a.Z.j.info("Storage retrieval failure: "+(0,u.e)(e)),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.yl(this._l(t))}yl(t){const e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";const i=e+";domain="+this.Il;document.cookie=i,document.cookie=i+";path=/"}},h._a=class{constructor(t,e,i){this.Xr=t,this.Ul=[],e&&this.Ul.push(new h.ee(t)),i&&this.Ul.push(new h.Oa(t)),this.Ul.push(new h.xa)}store(t,e){let i=!0;for(let n=0;n<this.Ul.length;n++)i=this.Ul[n].store(t,e)&&i;return i}wr(t){for(let e=0;e<this.Ul.length;e++){const i=this.Ul[e].wr(t);if(null!=i)return i}return null}remove(t){new h.ee(this.Xr).remove(t);for(let e=0;e<this.Ul.length;e++)this.Ul[e].remove(t)}}},4663:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2367);class s{constructor(){this.Se={}}lt(t){if("function"!=typeof t)return null;const e=n.Z.Z.Y();return this.Se[e]=t,e}removeSubscription(t){delete this.Se[t]}removeAllSubscriptions(){this.Se={}}tc(){return Object.keys(this.Se).length}Et(t){const e=[];for(const i in this.Se){const n=this.Se[i];e.push(n(t))}return e}}},3826:(t,e,i)=>{i.d(e,{Z:()=>n});const n={ba:"invalid_api_key",Aa:"blacklisted",za:"no_device_identifier",qa:"invalid_json_response",ga:"empty_response",__:"sdk_auth_error"}},7559:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(2893),s=i(7750);class r{constructor(t,e,i,n,r){this.userId=t,this.type=e,this.time=i,this.sessionId=n,this.data=r,this.userId=t,this.type=e,this.time=(0,s._0)(i),this.sessionId=n,this.data=r}Xi(){const t={name:this.type,time:(0,s.FX)(this.time),data:this.data||{},session_id:this.sessionId,user_id:void 0};return null!=this.userId&&(t.user_id=this.userId),t}ss(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new r(t.user_id,t.name,t.time,t.session_id,t.data)}static Qa(t){return null!=t&&(0,n.Kn)(t)&&null!=t.t&&""!==t.t}static zn(t){return new r(t.u,t.t,t.ts,t.s,t.d)}}},2308:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2367);class s{constructor(t,e,i){this.iu=t,null==t&&(t=n.Z.Z.Y()),!i||isNaN(i)?this.vl=(new Date).valueOf():this.vl=i,this.iu=t,this.Nl=(new Date).valueOf(),this.Gl=e}ss(){return{g:this.iu,e:this.Gl,c:this.vl,l:this.Nl}}static zn(t){if(null==t||null==t.g)return null;const e=new s(t.g,t.e,t.c);return e.Nl=t.l,e}}},3552:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(7750);class s{constructor(t,e,i,n,s){this.endpoint=t,this.Tn=e,this.publicKey=i,this.Vl=n,this.al=s,this.endpoint=t||null,this.Tn=e||null,this.publicKey=i||null,this.Vl=n||null,this.al=s||null}ss(){return{e:this.endpoint,c:this.Tn,p:this.publicKey,u:this.Vl,v:this.al}}static zn(t){return new s(t.e,(0,n.Rd)(t.c),t.p,t.u,t.v)}}},4673:(t,e,i)=>{i.d(e,{Z:()=>n});class n{constructor(t=!1,e=[]){this.O=t,this.ve=e,this.O=t,this.ve=e}S(t){this.O=this.O&&t.O,this.ve.push(...t.ve)}}},4365:(t,e,i)=>{i.d(e,{Z:()=>n});const n={OPEN:"open",Rr:"purchase",zr:"push_click",be:"custom_event",Lr:"iam_click",ks:"test"}},2246:(t,e,i)=>{i.d(e,{Z:()=>f});var n=i(7750),s=i(2367);class r{constructor(t){this.wu=t}xu(t){return null==this.wu||this.wu===t[0]}static fromJson(t){return new r(t?t.event_name:null)}ss(){return this.wu}}var a=i(2893);class o{constructor(t,e,i,s){this.Eu=t,this.Tu=e,this.comparator=i,this.Au=s,this.Tu===o.yu._u&&this.comparator!==o.Nu.Su&&this.comparator!==o.Nu.Mu&&this.comparator!==o.Nu.Ru&&this.comparator!==o.Nu.Hu&&(this.Au=(0,n.X2)(this.Au))}xu(t){let e=null;switch(null!=t&&(e=t[this.Eu]),this.comparator){case o.Nu.Lu:return null!=e&&e.valueOf()===this.Au.valueOf();case o.Nu.Iu:return null==e||e.valueOf()!==this.Au.valueOf();case o.Nu.Ou:return typeof e==typeof this.Au&&e>this.Au;case o.Nu.Su:return this.Tu===o.yu._u?null!=e&&(0,a.J_)(e)&&(0,n.$N)(e)<=this.Au:typeof e==typeof this.Au&&e>=this.Au;case o.Nu.Uu:return typeof e==typeof this.Au&&e<this.Au;case o.Nu.Mu:return this.Tu===o.yu._u?null!=e&&(0,a.J_)(e)&&(0,n.$N)(e)>=this.Au:typeof e==typeof this.Au&&e<=this.Au;case o.Nu.Du:return null!=e&&"string"==typeof e&&typeof e==typeof this.Au&&null!=e.match(this.Au);case o.Nu.Qu:return null!=e;case o.Nu.Xu:return null==e;case o.Nu.Ru:return null!=e&&(0,a.J_)(e)&&(0,n.yo)(e)<this.Au;case o.Nu.Hu:return null!=e&&(0,a.J_)(e)&&(0,n.yo)(e)>this.Au;case o.Nu.Bu:return null==e||typeof e!=typeof this.Au||"string"!=typeof e||null==e.match(this.Au)}return!1}static fromJson(t){return new o(t.property_key,t.property_type,t.comparator,t.property_value)}ss(){let t=this.Au;return(0,a.J_)(this.Au)&&(t=(0,n.FX)(t.valueOf())),{k:this.Eu,t:this.Tu,c:this.comparator,v:t}}static zn(t){return new o(t.k,t.t,t.c,t.v)}}o.Nu={Lu:1,Iu:2,Ou:3,Su:4,Uu:5,Mu:6,Du:10,Qu:11,Xu:12,Ru:15,Hu:16,Bu:17},o.yu={Gu:"boolean",bu:"number",zu:"string",_u:"date"};class l{constructor(t){this.filters=t}xu(t){let e=!0;for(let i=0;i<this.filters.length;i++){const n=this.filters[i];let s=!1;for(let e=0;e<n.length;e++)if(n[e].xu(t)){s=!0;break}if(!s){e=!1;break}}return e}static fromJson(t){if(null==t||!(0,a.kJ)(t))return null;const e=[];for(let i=0;i<t.length;i++){const n=[],s=t[i];for(let t=0;t<s.length;t++)n.push(o.fromJson(s[t]));e.push(n)}return new l(e)}ss(){const t=[];for(let e=0;e<this.filters.length;e++){const i=this.filters[e],n=[];for(let t=0;t<i.length;t++)n.push(i[t].ss());t.push(n)}return t}static zn(t){const e=[];for(let i=0;i<t.length;i++){const n=[],s=t[i];for(let t=0;t<s.length;t++)n.push(o.zn(s[t]));e.push(n)}return new l(e)}}class u{constructor(t,e){this.wu=t,this.ju=e}xu(t){if(null==this.wu||null==this.ju)return!1;const e=t[0],i=t[1];return e===this.wu&&this.ju.xu(i)}static fromJson(t){return new u(t?t.event_name:null,t?l.fromJson(t.property_filters):null)}ss(){return{e:this.wu,pf:this.ju.ss()}}}class c{constructor(t,e){this.ku=t,this.Ju=e}xu(t){if(null==this.ku)return!1;const e=m.qu(t[0],this.ku);if(!e)return!1;let i=null==this.Ju||0===this.Ju.length;if(null!=this.Ju)for(let e=0;e<this.Ju.length;e++)if(this.Ju[e]===t[1]){i=!0;break}return e&&i}static fromJson(t){return new c(t?t.id:null,t?t.buttons:null)}ss(){return this.ku}}class h{constructor(t){this.productId=t}xu(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new h(t?t.product_id:null)}ss(){return this.productId}}class d{constructor(t,e){this.productId=t,this.ju=e}xu(t){if(null==this.productId||null==this.ju)return!1;const e=t[0],i=t[1];return e===this.productId&&this.ju.xu(i)}static fromJson(t){return new d(t?t.product_id:null,t?l.fromJson(t.property_filters):null)}ss(){return{id:this.productId,pf:this.ju.ss()}}}class p{constructor(t){this.ku=t}xu(t){return null==this.ku||m.qu(t[0],this.ku)}static fromJson(t){return new p(t?t.campaign_id:null)}ss(){return this.ku}}var b=i(4365);class m{constructor(t,e){this.type=t,this.data=e}ec(t,e){return m.rc[this.type]===t&&(null==this.data||this.data.xu(e))}static qu(t,e){let i=null;try{i=window.atob(t)}catch(e){return s.Z.j.info("Failed to unencode analytics id "+t+": "+e.message),!1}return e===i.split("_")[0]}static fromJson(t){const e=t.type;let i;switch(e){case m.ac.OPEN:i=null;break;case m.ac.Rr:i=h.fromJson(t.data);break;case m.ac.sc:i=d.fromJson(t.data);break;case m.ac.zr:i=p.fromJson(t.data);break;case m.ac.be:i=r.fromJson(t.data);break;case m.ac.cc:i=u.fromJson(t.data);break;case m.ac.Lr:i=c.fromJson(t.data);break;case m.ac.ks:i=null}return new m(e,i)}ss(){return{t:this.type,d:this.data?this.data.ss():null}}static zn(t){let e,i;switch(t.t){case m.ac.OPEN:e=null;break;case m.ac.Rr:e=new h(t.d);break;case m.ac.sc:i=t.d||{},e=new d(i.id,l.zn(i.pf||[]));break;case m.ac.zr:e=new p(t.d);break;case m.ac.be:e=new r(t.d);break;case m.ac.cc:i=t.d||{},e=new u(i.e,l.zn(i.pf||[]));break;case m.ac.Lr:e=new c(t.d);break;case m.ac.ks:e=null}return new m(t.t,e)}}m.ac={OPEN:"open",Rr:"purchase",sc:"purchase_property",zr:"push_click",be:"custom_event",cc:"custom_event_property",Lr:"iam_click",ks:"test"},m.rc={},m.rc[m.ac.OPEN]=b.Z.OPEN,m.rc[m.ac.Rr]=b.Z.Rr,m.rc[m.ac.sc]=b.Z.Rr,m.rc[m.ac.zr]=b.Z.zr,m.rc[m.ac.be]=b.Z.be,m.rc[m.ac.cc]=b.Z.be,m.rc[m.ac.Lr]=b.Z.Lr,m.rc[m.ac.ks]=b.Z.ks;class f{constructor(t,e,i,n,s,r,a,o,l,u,c,h){this.id=t,this.Pu=e||[],void 0===i&&(i=null),this.startTime=i,void 0===n&&(n=null),this.endTime=n,this.priority=s||0,this.type=r,this.vu=o||0,null==u&&(u=1e3*(this.vu+30)),this.Kr=u,this.data=a,null==l&&(l=f.$u),this.Cu=l,this.Fu=c,this.Vu=h||null}Ku(t){return null==this.Vu||this.Cu!==f.$u&&t-this.Vu>=1e3*this.Cu}Wu(t){this.Vu=t}Yu(t){const e=t+1e3*this.vu;return Math.max(e-(new Date).valueOf(),0)}Zu(t){const e=(new Date).valueOf()-t,i=null==t||isNaN(e)||null==this.Kr||e<this.Kr;return i||s.Z.j.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Kr}ms.`),!i}static fromJson(t){const e=t.id,i=[];for(let e=0;e<t.trigger_condition.length;e++)i.push(m.fromJson(t.trigger_condition[e]));const s=(0,n.X2)(t.start_time),r=(0,n.X2)(t.end_time),o=t.priority,l=t.type,u=t.delay,c=t.re_eligibility,h=t.timeout,d=t.data,p=t.min_seconds_since_last_trigger;return(0,a.fk)(f.Gr,l,"Could not construct Trigger from server data","Trigger.Types")?new f(e,i,s,r,o,l,d,u,c,h,p):null}ss(){const t=[];for(let e=0;e<this.Pu.length;e++)t.push(this.Pu[e].ss());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.vu,r:this.Cu,tm:this.Kr,ss:this.Fu,ld:this.Vu}}static zn(t){const e=[];for(let i=0;i<t.c.length;i++)e.push(m.zn(t.c[i]));return new f(t.i,e,(0,n.Rd)(t.s),(0,n.Rd)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}f.$u=-1,f.Gr={_r:"inapp",td:"templated_iam"}},9342:(t,e,i)=>{i.d(e,{n:()=>f});var n=i(1087),s=i(3774),r=i(158),a=i(3340),o=i(7559),l=i(1792),u=i(2893),c=i(5966);class h{constructor(t,e,i,n,s){this.triggerId=t,this.Hr=e,this.Mr=i,this.Jr=n,this.Kr=s,this.triggerId=t,this.Hr=e,this.Mr=i,this.Jr=n,this.Kr=s}static fromJson(t,e,i,n,s){return null==t||null==t.trigger_id?null:new h(t.trigger_id,e,i,n,s)}}var d=i(2246),p=i(4365),b=i(2367);class m extends r.Z{constructor(t,e,i,n,s){super(),this.tg=t,this.ig=e,this.yh=i,this.sg=n,this.eg=s,this.hg=[],this.og=[],this.ng=null,this.lg={},this.ag={},this.gg(),this.fg()}cg(){this.ng=this.yh.v(c.I.k.Ma)||this.ng,this.lg=this.yh.v(c.I.k.ya)||this.lg,this.ag=this.yh.v(c.I.k.Ga)||this.ag;for(let t=0;t<this.ug.length;t++){const e=this.ug[t];null!=this.ag[e.id]&&e.Wu(this.ag[e.id])}}gg(){this.dg=this.yh.v(c.I.k.Ca)||0;const t=this.yh.v(c.I.k.Na)||[],e=[];for(let i=0;i<t.length;i++)e.push(d.Z.zn(t[i]));this.ug=e,this.cg()}fg(){const t=this,e=function(e,i,n,s,r){return function(){t.mg(e,i,n,s,r)}},i={};for(let t=0;t<this.ug.length;t++)i[this.ug[t].id]=this.ug[t];let n=!1;for(let t=0;t<this.ug.length;t++){const s=this.ug[t];if(null!=this.lg[s.id]){const t=this.lg[s.id],r=[];for(let n=0;n<t.length;n++){const a=t[n],l=s.Yu(a.Jr);if(l>0){let t,n;r.push(a),null!=a.pg&&(t=a.pg),null!=a.bg&&o.Z.Qa(a.bg)&&(n=o.Z.zn(a.bg));const c=[];if((0,u.kJ)(a.Tg))for(let t=0;t<a.Tg.length;t++){const e=i[a.Tg[t]];null!=e&&c.push(e)}this.og.push(setTimeout(e(s,a.Jr,t,n,c),l))}}this.lg[s.id].length>r.length&&(this.lg[s.id]=r,n=!0,0===this.lg[s.id].length&&delete this.lg[s.id])}}n&&this.yh.D(c.I.k.ya,this.lg)}yg(){const t=[];for(let e=0;e<this.ug.length;e++)t.push(this.ug[e].ss());this.dg=(new Date).valueOf(),this.yh.D(c.I.k.Na,t),this.yh.D(c.I.k.Ca,this.dg)}vg(){(this.yh.v(c.I.k.Ca)||0)>this.dg?this.gg():this.cg()}Ts(t){let e=!1;if(null!=t&&t.triggers){this.cg();const i={},n={};this.ug=[];for(let s=0;s<t.triggers.length;s++){const r=d.Z.fromJson(t.triggers[s]);null!=this.ag[r.id]&&(r.Wu(this.ag[r.id]),i[r.id]=this.ag[r.id]),null!=this.lg[r.id]&&(n[r.id]=this.lg[r.id]);for(let t=0;t<r.Pu.length;t++)if(r.Pu[t].ec(p.Z.ks,null)){e=!0;break}null!=r&&this.ug.push(r)}(0,u.Xy)(this.ag,i)||(this.ag=i,this.yh.D(c.I.k.Ga,this.ag)),(0,u.Xy)(this.lg,n)||(this.lg=n,this.yh.D(c.I.k.ya,this.lg)),this.yg(),e&&(b.Z.j.info("Trigger with test condition found, firing test."),this.je(p.Z.ks)),this.je(p.Z.OPEN);const s=this.hg;this.hg=[];for(let t=0;t<s.length;t++)this.je.apply(this,s[t])}}mg(t,e,i,n,s){const r=n=>{this.cg();const s=(new Date).valueOf();if(!t.Zu(e))return!1===navigator.onLine&&t.type===d.Z.Gr._r&&n.imageUrl?(b.Z.j.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`),void this.eg.Ye(t.id,l.Z.Me.Dh)):void(t.Ku(s)&&this.wg(t,s,i)?0===this.ig.tc()?b.Z.j.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.ig.Et([n]),this.$g(t,s)):b.Z.j.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`));t.type===d.Z.Gr.td?this.eg.Ye(t.id,l.Z.Me.Zi):this.eg.Ye(t.id,l.Z.Me.Mh)},o=()=>{this.cg();const r=s.pop();if(null!=r)if(this.jg(r,e,i,n,s),r.Zu(e)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${r.id} has already elapsed.`;s.length>0&&(t+=" Continuing to fall back."),b.Z.j.info(t),this.eg.Ye(r.id,l.Z.Me.Mh),o()}else{b.Z.j.info(`Server aborted in-app message display. Falling back to lower priority ${r.type} trigger action ${t.id}.`);const a=1e3*r.vu-((new Date).valueOf()-e);a>0?this.og.push(setTimeout((()=>{this.mg(r,e,i,n,s)}),a)):this.mg(r,e,i,n,s)}};let u,c,p;switch(t.type){case d.Z.Gr._r:if(u=(0,a.q)(t.data),null==u){b.Z.j.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or);break}if(c=this.eg.Ji(u),c){b.Z.j.error(c),o();break}r(u);break;case d.Z.Gr.td:if(p=h.fromJson(t.data,r,o,e,t.Kr),null==p){b.Z.j.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or);break}this.eg.Vi(p,i,n);break;default:b.Z.j.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`),this.eg.Ye(t.id,l.Z.Me.Or)}}je(t,e,i){if(!(0,u.fk)(p.Z,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.sg.Vh())return b.Z.j.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.hg.push(arguments);this.vg();const n=(new Date).valueOf(),s=n-this.ng;let r=!0,a=!0;const o=[];for(let i=0;i<this.ug.length;i++){const s=this.ug[i],l=n+1e3*s.vu;if(s.Ku(l)&&(null==s.startTime||s.startTime<=n)&&(null==s.endTime||s.endTime>=n)){let i=!1;for(let n=0;n<s.Pu.length;n++)if(s.Pu[n].ec(t,e)){i=!0;break}i&&(r=!1,this.wg(s,l,t)&&(a=!1,o.push(s)))}}if(r)return void b.Z.j.info(`Trigger event ${t} did not match any trigger conditions.`);if(a)return void b.Z.j.info(`Ignoring ${t} trigger event because a trigger was displayed ${s/1e3}s ago.`);o.sort(((t,e)=>t.priority-e.priority));const l=o.pop();null!=l&&(b.Z.j.info(`Firing ${l.type} trigger action ${l.id} from trigger event ${t}.`),this.jg(l,n,t,i,o),0===l.vu?this.mg(l,n,t,i,o):this.og.push(setTimeout((()=>{this.mg(l,n,t,i,o)}),1e3*l.vu)))}changeUser(t){if(this.ug=[],this.yh.ri(c.I.k.Na),!t){this.hg=[],this.ng=null,this.ag={},this.lg={};for(let t=0;t<this.og.length;t++)clearTimeout(this.og[t]);this.og=[],this.yh.ri(c.I.k.Ma),this.yh.ri(c.I.k.Ga),this.yh.ri(c.I.k.ya)}}clearData(){this.ug=[],this.ng=null,this.ag={},this.lg={};for(let t=0;t<this.og.length;t++)clearTimeout(this.og[t]);this.og=[]}wg(t,e,i){if(null==this.ng)return!0;if(i===p.Z.ks)return b.Z.j.info("Ignoring minimum interval between trigger because it is a test type."),!0;let n=t.Fu;return null==n&&(n=this.tg),e-this.ng>=1e3*n}jg(t,e,i,n,s){this.cg(),this.lg[t.id]=this.lg[t.id]||[];const r={};let a;r.Jr=e,r.pg=i,null!=n&&(a=n.ss()),r.bg=a;const o=[];for(let t=0;t<s.length;t++)o.push(s[t].id);r.Tg=o,this.lg[t.id].push(r),this.yh.D(c.I.k.ya,this.lg)}$g(t,e){this.cg(),t.Wu(e),this.ng=e,this.yh.D(c.I.k.Ma,e),this.ag[t.id]=e,this.yh.D(c.I.k.Ga,this.ag)}}const f={t:!1,provider:null,er:()=>(f.init(),f.provider),rg:()=>{if(!f.provider){const t=s.ZP.nn(s.JY.No);f.provider=new m(null!=t?t:30,n.Z.m().Ue(),s.ZP.l(),s.ZP.cr(),n.Z.m()),s.ZP.dr(f.provider)}},init:()=>{f.t||(f.rg(),s.ZP.g(f),f.t=!0)},destroy:()=>{f.provider=null,f.t=!1}}},5333:(t,e,i)=>{i.d(e,{e:()=>s});var n=i(3774);function s(t,e,i){const s=t||document.querySelector("head"),r=`ab-${e}-css-definitions-${"4.8.3".replace(/\./g,"-")}`,a=s.ownerDocument||document;if(null==a.getElementById(r)){const t=a.createElement("style");t.innerHTML=i,t.id=r;const e=n.ZP.nn(n.JY.lo);null!=e&&t.setAttribute("nonce",e),s.appendChild(t)}}},6959:(t,e,i)=>{i.d(e,{B:()=>r});var n=i(5333),s=i(6524);function r(){(0,n.e)(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-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;right:0;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 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%}.ab-feed .ab-card.ab-banner .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',sans-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;padding-left: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 img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),(0,s.N)()}},6524:(t,e,i)=>{i.d(e,{N:()=>s});var n=i(3774);function s(){if(n.ZP.nn(n.JY.Lo))return;const t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}}},3046:(t,e,i)=>{i.d(e,{A9:()=>a,OL:()=>u,Tu:()=>l,je:()=>h,yi:()=>o,zA:()=>d});var n=i(2367),s=i(8548),r=i(3905);const a={types:{le:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",de:"openLink",pe:"openLinkInWebView"},properties:{type:"type",ce:"steps",me:"args"}},o={Ki:"unknownBrazeAction",Qi:"noPushPrompt"},l=(t,e)=>{switch(t){case o.Ki:return`${e} contains an unknown braze action type and will not be displayed.`;case o.Qi:return`${e} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function u(t){try{let e=t.match(r.y9)[0].length;const i=t.substring(e);if(e>t.length-1||!i)return void n.Z.j.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);const a=(0,s.T)(i);return a?JSON.parse(a):void n.Z.j.error(`Failed to decode base64 encoded brazeAction: ${i}`)}catch(e){return void n.Z.j.error(`Failed to process brazeAction URL ${t} : ${e.message}`)}}function c(t,e){let i=!1;for(const n of e)if(i=i||t(n),i)return!0;return!1}function h(t){try{const e=t[a.properties.type];return e===a.types.le?c(h,t[a.properties.ce]):!(0,r.OM)(e)}catch(t){return!0}}function d(t){if(!(0,r.zR)(t))return!1;const e=t[a.properties.type];return e===a.types.le?c(d,t[a.properties.ce]):e===a.types.requestPushPermission}},3695:(t,e,i)=>{i.d(e,{Z:()=>u});var n=i(2893);class s{constructor(){}tf(){}ef(){}Zo(t){}static rf(t,e){if(t&&e)if(t=t.toLowerCase(),(0,n.kJ)(e.if)){for(let i=0;i<e.if.length;i++)if(-1!==t.indexOf(e.if[i].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.if.toLowerCase()))return e.identity}}var r=i(5806);class a extends s{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.userAgentData){const t=this.ic();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}}tf(){return this.browser}ef(){return this.version}Zo(t){if(this.OS)return Promise.resolve(this.OS);const e=e=>{for(let i=0;i<t.length;i++){const n=a.rf(e,t[i]);if(n)return this.OS=n,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.nc().then((t=>e(t.platform))).catch((()=>navigator.platform))}ic(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const i of e){const e=this.oc(r.s),n=i.brand.match(e);if(n&&n.length>0){t.browser=n[0],t.version=i.version;break}}return t}oc(t){const e=[];for(const i in t)t[i]!==r.s.Pg&&e.push(t[i]);return new RegExp("("+e.join("|")+")","i")}nc(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends s{constructor(){super(),this.rd=o.ed(navigator.userAgent||"")}tf(){return this.rd[0]||"Unknown Browser"}ef(){return this.rd[1]||"Unknown Version"}Zo(t){for(let e=0;e<t.length;e++){let i=t[e].string,n=o.rf(i,t[e]);if(n)return n===r.T.Fg&&navigator.maxTouchPoints>1&&(n=r.T.fe),Promise.resolve(n)}return Promise.resolve(navigator.platform)}static ed(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(/trident/i.test(i[1]))return e=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(t)||[],[r.s.Pg,e[1]||""];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===r.s.rE&&(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("OPR",r.s.EE),e[0]=e[0].replace("EdgA",r.s.eE),"Edg"===e[0]&&(e[0]=r.s.eE),[e[0],e[1]];if(i[1]===r.s.kg&&(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",r.s.eE),[e[0],e[1]];if(i=i[2]?[i[1],i[2]]:[null,null],i[0]===r.s.kg&&null!=(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,e[1]),null!=(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,e[2]),i[0]===r.s.EE&&null!=(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(i[0]){const t=i[0].toLowerCase();"msie"===t&&(i[0]=r.s.Pg),"crios"===t&&(i[0]=r.s.rE),"tizen"===t&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===t&&(i[0]="Samsung Browser")}return i}}class l{constructor(){const t=navigator.userAgentData?a:o;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.tf(),this.version=this.Sg.ef(),this.Zo().then((t=>this.OS=t)),this.language=(navigator.userLanguage||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase(),this.Ho=l.Bg(this.userAgent)}Og(){return this.browser!==r.s.Pg||this.version>8}$a(){return this.browser===r.s.kg}ca(){return this.OS||null}Zo(){return this.OS?Promise.resolve(this.OS):this.Sg.Zo(l.xg).then((t=>(this.OS=t,t)))}static Bg(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"];for(let i=0;i<e.length;i++)if(-1!==t.indexOf(e[i]))return!0;return!1}}l.xg=[{string:navigator.platform,if:"Win",identity:r.T.Dg},{string:navigator.platform,if:"Mac",identity:r.T.Fg},{string:navigator.platform,if:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,if:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,if:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,if:"Nintendo",identity:"Nintendo"},{string:navigator.platform,if:"SunOS",identity:"SunOS"},{string:navigator.platform,if:"PlayStation",identity:"PlayStation"},{string:navigator.platform,if:"X11",identity:"X11"},{string:navigator.userAgent,if:["iPhone","iPad","iPod"],identity:r.T.fe},{string:navigator.platform,if:"Pike v",identity:r.T.fe},{string:navigator.userAgent,if:["Web0S"],identity:"WebOS"},{string:navigator.platform,if:["Linux armv7l","Android"],identity:r.T.Lg},{string:navigator.userAgent,if:["Android"],identity:r.T.Lg},{string:navigator.platform,if:"Linux",identity:"Linux"}];const u=new l},2893:(t,e,i)=>{i.d(e,{J_:()=>o,Kn:()=>l,VO:()=>s,XP:()=>c,Xy:()=>h,fk:()=>r,jV:()=>u,kJ:()=>a});var n=i(2367);function s(t){const e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&void 0!==t[i]&&e.push(t[i]);return e}function r(t,e,i,r){const a=s(t);return-1!==a.indexOf(e)||(n.Z.j.error(`${i} Valid values from ${r} are "${a.join('"/"')}".`),!1)}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function o(t){return"[object Date]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){null==t&&(t=[]);const e=[],i=arguments.length;for(let n=0,s=t.length;n<s;n++){const s=t[n];if(-1!==e.indexOf(s))continue;let r=1;for(r=1;r<i&&-1!==arguments[r].indexOf(s);r++);r===i&&e.push(s)}return e}function c(t){const e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e}function h(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;const i=t.toString();if(i!==e.toString())return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}const n="[object Array]"===i;if(!n){if("object"!=typeof t||"object"!=typeof e)return!1;const i=t.constructor,n=e.constructor;if(i!==n&&!("function"==typeof i&&i instanceof i&&"function"==typeof n&&n instanceof n)&&"constructor"in t&&"constructor"in e)return!1}const s=[],r=[];let a=s.length;for(;a--;)if(s[a]===t)return r[a]===e;if(s.push(t),r.push(e),n){if(a=t.length,a!==e.length)return!1;for(;a--;)if(!h(t[a],e[a]))return!1}else{let i,n=c(t);if(a=n.length,c(e).length!==a)return!1;for(;a--;)if(i=n[a],!Object.prototype.hasOwnProperty.call(e,i)||!h(t[i],e[i]))return!1}return s.pop(),r.pop(),!0}},5242:(t,e,i)=>{i.d(e,{B:()=>r});var n=i(1507),s=i(7429);function r(t,e,i){const r=document.createElement("button");r.setAttribute("aria-label",t),r.setAttribute("tabindex","0"),r.setAttribute("role","button"),(0,n.lj)(r,"touchstart"),r.className="ab-close-button";const a=(0,n.MK)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",e);return r.appendChild(a),r.addEventListener("keydown",(t=>{t.keyCode!==s.m.yo&&t.keyCode!==s.m.Fo||(i(),t.stopPropagation())})),r.onclick=t=>{i(),t.stopPropagation()},r}},7750:(t,e,i)=>{i.d(e,{$N:()=>c,BT:()=>o,FX:()=>s,Pn:()=>r,Rd:()=>l,X2:()=>a,_0:()=>u,yo:()=>h});var n=i(2893);function s(t,e){let i=t/1e3;return e&&(i=Math.floor(i)),i}function r(t){return 1e3*t}function a(t){const e=parseInt(t);return null==t||isNaN(e)?null:new Date(1e3*e)}function o(t){return null!=t&&(0,n.J_)(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function l(t){return null==t||""===t?null:new Date(t)}function u(t){return null==t||""===t?(new Date).valueOf():t}function c(t){return((new Date).valueOf()-t.valueOf())/1e3}function h(t){return(t.valueOf()-(new Date).valueOf())/1e3}},5806:(t,e,i)=>{i.d(e,{T:()=>s,s:()=>n});const n={rE:"Chrome",eE:"Edge",Pg:"Internet Explorer",EE:"Opera",kg:"Safari",oE:"Firefox"},s={Lg:"Android",fe:"iOS",Fg:"Mac",Dg:"Windows"}},1507:(t,e,i)=>{i.d(e,{$j:()=>u,FZ:()=>c,Fr:()=>l,MK:()=>h,QZ:()=>r,lP:()=>n,lj:()=>a,mQ:()=>s,rJ:()=>o});const n={lc:null,eo:function(t,e,i,n){if(null==t)return!1;e=e||!1,i=i||!1;const s=t.getBoundingClientRect();return null!=s&&(s.top>=0&&s.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(s.left>=0||!n)&&(s.bottom>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(s.right<=(window.innerWidth||document.documentElement.clientWidth)||!n)}},s={Je:"up",Ke:"down",W:"left",X:"right"};function r(){if(null==n.lc){n.lc=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{n.lc=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){}}return n.lc}function a(t,e,i=(()=>{})){t.addEventListener(e,i,!!r()&&{passive:!0})}function o(t){return n.eo(t,!0,!1,!1)}function l(t){return n.eo(t,!1,!0,!1)}function u(t){if(t.onclick){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}}function c(t,e,i){let n=null,r=null;a(t,"touchstart",(t=>{n=t.touches[0].clientX,r=t.touches[0].clientY})),a(t,"touchmove",(a=>{if(null==n||null==r)return;const o=n-a.touches[0].clientX,l=r-a.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&e===s.W||o<0&&e===s.X)&&i(a),n=null,r=null):Math.abs(l)>=25&&((l>0&&e===s.Je&&t.scrollTop===t.scrollHeight-t.offsetHeight||l<0&&e===s.Ke&&0===t.scrollTop)&&i(a),n=null,r=null)}))}function h(t,e,i){const n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg");s.setAttribute("viewBox",t),s.setAttribute("xmlns",n);const r=document.createElementNS(n,"path");return r.setAttribute("d",e),null!=i&&r.setAttribute("fill",i),s.appendChild(r),s}},8031:(t,e,i)=>{i.d(e,{e:()=>n});const n=t=>t instanceof Error?t.message:String(t)},7429:(t,e,i)=>{i.d(e,{m:()=>n});const n={yo:32,oo:9,Fo:13,Ih:27}},6504:(t,e,i)=>{i.d(e,{R:()=>n});const n=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t)},1843:(t,e,i)=>{i.d(e,{D:()=>r,Z:()=>a});var n=i(2367),s=i(3826);const r=t=>{let e={};const i=t.toString().split("\r\n");if(!i)return e;let n,s;for(const t of i)t&&(n=t.slice(0,t.indexOf(":")).toLowerCase().trim(),s=t.slice(t.indexOf(":")+1).trim(),e[n]=s);return e},a={Ys:t=>{let e,i;try{const r=()=>{n.Z.j.error("This browser does not have any supported ajax options!")};if(window.XMLHttpRequest?(e=new XMLHttpRequest,e||r()):r(),null!=e){const n=()=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.ei&&t.ei(!1)};e.onload=()=>{let i=!1;if(4===e.readyState)if(i=e.status>=200&&e.status<300||304===e.status,i){if("function"==typeof t.O){let n,r;try{n=JSON.parse(e.responseText),r=e.getAllResponseHeaders()}catch(i){const n={error:""===e.responseText?s.Z.ga:s.Z.qa,response:e.responseText};t.O(n,r)}n&&t.O(n,r)}"function"==typeof t.ei&&t.ei(!0)}else n()},e.onerror=()=>{n()},e.ontimeout=()=>{n()},i=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest");const r=t.headers||[];for(const t of r)e.setRequestHeader(t[0],t[1]);e.send(i)}}catch(t){n.Z.j.error(`Network request error: ${t.message}`)}}}},6870:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(5966);const s={Qs:{Sa:"d",Os:"cc",xi:"ff",Yi:"t"},eT:t=>{if(t)return t.v(n.I.k.Ua)},tT:(t,e)=>{t&&t.D(n.I.k.Ua,e)},Xa:(t,e)=>{if(!t||!e)return-1;const i=s.eT(t);if(null==i)return-1;const n=i[e];return null==n||isNaN(n)?-1:n},Xs:(t,e,i)=>{if(!t||!e)return;let n=s.eT(t);null==n&&(n={}),n[e]=i,s.tT(t,n)}},r=s},8548:(t,e,i)=>{i.d(e,{E:()=>s,T:()=>r});var n=i(2367);function s(t){let e=t.length;for(let i=t.length-1;i>=0;i--){const n=t.charCodeAt(i);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&i--}return e}function r(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");let e=window.atob(t),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);let n=new Uint16Array(i.buffer);return String.fromCharCode(...n)}catch(t){return n.Z.j.error("Unable to decode Base64: "+t),null}}},1148:(t,e,i)=>{function n(t){null==t&&(t="");const e=t.split("?").slice(1).join("?"),i={};if(null!=e){const t=e.split("&");for(let e=0;e<t.length;e++){const n=t[e].split("=");""!==n[0]&&(i[n[0]]=n[1])}}return i}function s(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}i.d(e,{L:()=>n,o:()=>s})},3905:(t,e,i)=>{i.d(e,{$g:()=>x,OM:()=>S,UO:()=>f,bj:()=>m,lg:()=>y,ro:()=>w,vV:()=>k,y9:()=>p,zM:()=>b,zR:()=>Z});var n=i(2893),s=i(8548),r=i(2367),a=i(7750),o=i(3046),l=i(7671);const u=/^[^\x00-\x1F\x22]+$/,c=/[$.]/,h=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time"],d=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//;function b(t,e,i){const n=null!=t&&"string"==typeof t&&(""===t||t.match(u));return n||r.Z.j.error(`Cannot ${e} because ${i} "${t}" is invalid.`),n}function m(t){return null!=t&&t.match(c)&&-1===h.indexOf(t)&&r.Z.j.warn("Custom attribute keys cannot contain '$' or '.'"),b(t,"set custom user attribute","the given key")}function f(t){const e=typeof t;return null==t||"number"===e||"boolean"===e||(0,n.J_)(t)||"string"===e}function g(t,e,i){const s=-1!==i;if(s&&i>50)return r.Z.j.error("Nested attributes cannot be more than 50 levels deep."),!1;const o=s?i+1:-1;if((0,n.kJ)(t)&&(0,n.kJ)(e)){for(let i=0;i<t.length&&i<e.length;i++)if((0,n.J_)(t[i])&&(e[i]=(0,a.BT)(t[i])),!g(t[i],e[i],o))return!1}else{if(!(0,n.Kn)(t))return f(t);for(const i of(0,n.XP)(t)){if(s&&!m(i))return!1;if((0,n.J_)(t[i])&&(e[i]=(0,a.BT)(t[i])),!g(t[i],e[i],o))return!1}}return!0}function v(t,e,i,s,a){let o;return o=(0,n.Kn)(t)||(0,n.kJ)(t)?g(t,e,a?1:-1):f(t),o||r.Z.j.error(`Cannot ${i} because ${s} "${t}" is invalid.`),o}function w(t,e,i,n){const s="string"==typeof t||null===t&&n;return s||r.Z.j.error(`Cannot ${e} because ${i} "${t}" is invalid.`),s}function y(t,e,i,o,u){if(null==t&&(t={}),"object"!=typeof t||(0,n.kJ)(t))return r.Z.j.error(`${e} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];let c,h;e===l.db?(c=76800,h="75KB"):(c=51200,h="50KB");const d=JSON.stringify(t);if((0,s.E)(d)>c)return r.Z.j.error(`Could not ${o} because ${i} was greater than the max size of ${h}.`),[!1,null];let p;try{p=JSON.parse(d)}catch(t){return r.Z.j.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in t){if(e===l.db&&!m(i))return[!1,null];if(!b(i,o,`the ${u} property name`))return[!1,null];const s=t[i];if(e===l.db||null!=s){if((0,n.J_)(s)&&(p[i]=(0,a.BT)(s)),!v(s,p[i],o,`the ${u} property "${i}"`,e===l.db))return[!1,null]}else delete t[i],delete p[i]}return[!0,p]}function x(t,e){let i=!1,s=!1;const a=()=>{r.Z.j.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const r of e)if("string"==typeof r){if(s)return a(),[!1,!1];if(!b(r,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,n.Kn)(r))return a(),[!1,!1];if(i)return a(),[!1,!1];if(!y(r,l.db,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];s=!0}return[i,s]}function k(t){return"string"==typeof t&&null!=t.toLowerCase().match(d)}function Z(t){if(!(o.A9.properties.type in t))return!1;switch(t[o.A9.properties.type]){case o.A9.types.le:if(o.A9.properties.ce in t)return!0;break;case o.A9.types.logCustomEvent:case o.A9.types.setEmailNotificationSubscriptionType:case o.A9.types.setPushNotificationSubscriptionType:case o.A9.types.setCustomUserAttribute:case o.A9.types.addToSubscriptionGroup:case o.A9.types.removeFromSubscriptionGroup:case o.A9.types.addToCustomAttributeArray:case o.A9.types.removeFromCustomAttributeArray:case o.A9.types.de:case o.A9.types.pe:if(o.A9.properties.me in t)return!0;break;case o.A9.types.requestPushPermission:return!0;default:return!1}return!1}function S(t){let e=!1;return Object.keys(o.A9.types).forEach((i=>{o.A9.types[i]!==t.toString()||(e=!0)})),e}},5319:(t,e,i)=>{i.d(e,{SD:()=>s,eh:()=>n});const n={PORTRAIT:0,LANDSCAPE:1},s={openUri:function(t,e,i){e||null!=i&&i.metaKey?window.open(t):window.location=t},no:function(){return screen.width<=600},ao:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?n.LANDSCAPE:n.PORTRAIT;if("screen"in window){let t=window.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?n.LANDSCAPE:n.PORTRAIT}return n.PORTRAIT},jn:function(){return window.location.href}}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@clickview/braze-client:",s.l=(i,n,r,a)=>{if(t[i])t[i].push(n);else{var o,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+r){o=h;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",e+r),o.src=i),t[i]=[n];var d=(e,n)=>{o.onerror=o.onload=null,clearTimeout(p);var s=t[i];if(delete t[i],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(n))),e)return e(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");i.length&&(t=i[i.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={143:0};s.f.j=(e,i)=>{var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,s)=>n=t[e]=[i,s]));i.push(n[2]=r);var a=s.p+s.u(e),o=new Error;s.l(a,(i=>{if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;o.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",o.name="ChunkLoadError",o.type=r,o.request=a,n[1](o)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,r,[a,o,l]=i,u=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);l&&l(s)}for(e&&e(i);u<a.length;u++)r=a[u],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var r={};return(()=>{s.r(r),s.d(r,{BrazeApiClient:()=>zt,ClientUserAliasLabel:()=>ft,CountryCode:()=>ot,CustomUserAttributes:()=>bt,DefaultUserAttributes:()=>pt,EventUserAttributes:()=>mt,MarketingFormEvent:()=>ct,MarketingUserEvent:()=>ut,PageEvent:()=>lt,ProductEvent:()=>dt,ProductFormEvent:()=>ht,getInstance:()=>Ut});var t=s(3774),e=s(1087),i=s(5333),n=s(6524);function a(t){(0,i.e)(t,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.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;right:0;top:0;z-index:9021}.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',sans-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-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 span{display: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;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.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',sans-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-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%}.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 o(){a(),(0,n.N)()}var l=s(8376),u=s(1090),c=s(1792),h=s(6616),d=s(4410),p=s(3811),b=s(1507),m=s(5242),f=s(3695);function g(t,e){if(t=parseInt(t),isNaN(t))return"";e=parseFloat(e),isNaN(e)&&(e=1);const i=255&(t>>>=0),n=(65280&t)>>>8,s=(16711680&t)>>>16,r=((4278190080&t)>>>24)/255;return f.Z.Og()?"rgba("+[s,n,i,r*e].join(",")+")":"rgb("+[s,n,i].join(",")+")"}var v=s(7671),w=s(2367);function y(i){if(!t.ZP.rr())return!1;if(!(i instanceof c.Z||i instanceof l.Z))return w.Z.j.error(v.De),!1;const n=i instanceof l.Z?w.Z.q.ro:w.Z.q._i;return e.Z.m().N(i,n).O}var x=s(4365),k=s(9342),Z=s(420);function S(i,n,s){if(!t.ZP.rr())return!1;if(!(i instanceof u.Z))return w.Z.j.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let r=w.Z.q.Ii;null!=n&&(r=w.Z.q.Mi);const a=e.Z.m().N(i,r,n,s);if(a.O)for(let t=0;t<a.ve.length;t++)k.n.er().je(x.Z.Lr,[i.triggerId,n],a.ve[t]);return a.O}var E=s(6243),A=s(2893),_=s(5806),N=s(1148),T=s(5319),C=s(4072),I=s(7429);const O=t=>{const e=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let i;for(let t=0;t<e.length;t++)i=e[t],i.tabIndex=0;if(e.length>0){const i=e[0],n=e[e.length-1];t.addEventListener("keydown",(e=>{const s=document.activeElement;e.keyCode===I.m.oo&&(e.shiftKey||s!==n&&s!==t?!e.shiftKey||s!==i&&s!==t||(e.preventDefault(),n.focus()):(e.preventDefault(),i.focus()))}))}},P=(i,n,s,r)=>{if(i.buttons&&i.buttons.length>0){const a=document.createElement("div");a.className="ab-message-buttons",s.appendChild(a);const o=s.getElementsByClassName("ab-message-text")[0];null!=o&&(o.className+=" ab-with-buttons");const l=a=>o=>(i.he(s,(()=>{(function(i,n){if(!t.ZP.rr())return!1;if(!(i instanceof C.Z))return w.Z.j.error("button must be an InAppMessageButton object"),!1;if(!(n instanceof c.Z))return w.Z.j.error(v.De),!1;const s=e.Z.m().Gi(i,n);if(s.O)for(let t=0;t<s.ve.length;t++)k.n.er().je(x.Z.Lr,[n.triggerId,i.id],s.ve[t]);s.O})(a,i),a.clickAction===c.Z.ClickAction.URI?(0,Z.S)(a.uri||"",r||i.openTarget===c.Z.OpenTarget.BLANK,o):a.clickAction===c.Z.ClickAction.NEWS_FEED&&n()})),o.stopPropagation(),!1);for(let t=0;t<i.buttons.length;t++){const e=i.buttons[t],n=document.createElement("button");n.className="ab-message-button",n.setAttribute("type","button"),(0,b.lj)(n,"touchstart");let s=e.text;""===e.text&&(s=" "),n.appendChild(document.createTextNode(s)),i.ye()||(n.style.backgroundColor=g(e.backgroundColor),n.style.color=g(e.textColor),n.style.borderColor=g(e.borderColor)),n.onclick=l(e),a.appendChild(n)}}};var j=s(7048);function D(i,n,r){if(!t.ZP.rr())return;if(o(),null==i)return!1;if(i instanceof l.Z)return w.Z.j.info("User received control for a multivariate test, logging to Braze servers."),y(i),!0;if(!(i instanceof c.Z))return!1;const C=e.Z.m();i.Ah();const D=i instanceof u.Z;if(D&&!i.trusted&&!t.ZP.nr())return w.Z.j.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),C.Ye(i.triggerId,c.Z.Me.Oh),!1;if(null==n&&(n=document.body),i.xe()&&n.querySelectorAll(".ab-modal-interactions").length>0)return w.Z.j.info(`Cannot show in-app message ${i.message} because another message is being shown.`),C.Ye(i.triggerId,c.Z.Me.ze),!1;if(T.SD.no()){const t=T.SD.ao();if(t===T.eh.PORTRAIT&&i.orientation===c.Z.Orientation.LANDSCAPE||t===T.eh.LANDSCAPE&&i.orientation===c.Z.Orientation.PORTRAIT){const e=t===T.eh.PORTRAIT?"portrait":"landscape",n=i.orientation===c.Z.Orientation.PORTRAIT?"portrait":"landscape";return w.Z.j.info(`Not showing ${n} in-app message ${i.message} because the screen is currently ${e}`),C.Ye(i.triggerId,c.Z.Me.Sh),!1}}if(!t.ZP.nr()){let t=!1;if(i.buttons&&i.buttons.length>0){const e=i.buttons;for(let i=0;i<e.length;i++)if(e[i].clickAction===c.Z.ClickAction.URI){const n=e[i].uri;t=(0,N.o)(n)}}else i.clickAction===c.Z.ClickAction.URI&&(t=(0,N.o)(i.uri));if(t)return w.Z.j.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),C.Ye(i.triggerId,c.Z.Me.Oh),!1}const z=document.createElement("div");if(z.className="ab-iam-root v3",z.className+=function(t){let e="";return t.animateIn&&(e+=" ab-animate-in"),t.animateOut&&(e+=" ab-animate-out"),t instanceof d.Z?e+=" ab-effect-fullscreen":t instanceof u.Z?e+=" ab-effect-html":t instanceof p.Z?e+=" ab-effect-modal":t instanceof h.Z&&(e+=" ab-effect-slide"),e}(i),z.setAttribute("role","complementary"),i.$e()&&(z.id=i.htmlId),t.ZP.nn(t.JY.mo)&&(z.style.zIndex=(t.ZP.nn(t.JY.mo)+1).toString()),n.appendChild(z),i.ye()){const e=document.createElement("style");e.innerHTML=i.css,e.id=i.Ae(),null!=t.ZP.nn(t.JY.lo)&&e.setAttribute("nonce",t.ZP.nn(t.JY.lo)),document.getElementsByTagName("head")[0].appendChild(e)}const U=i instanceof h.Z,M=function(i,n,r,o,l,C,I){if(i.ke=document.activeElement,i instanceof u.Z)return function(e,i,n,r,o,l){const u=document.createElement("iframe");u.setAttribute("title","Modal Message"),o&&(u.style.zIndex=(o+1).toString());const h=t=>{const i=t.getAttribute("href"),n=t.onclick;return s=>{if(null!=n&&"function"==typeof n&&!1===n.bind(t)(s))return;let a=(0,N.L)(i).abButtonId;if(null!=a&&""!==a||(a=t.getAttribute("id")||void 0),null!=i&&""!==i&&0!==i.indexOf("#")){const n="blank"===(t.getAttribute("target")||"").toLowerCase().replace("_",""),o=r||e.openTarget===c.Z.OpenTarget.BLANK||n,l=()=>{S(e,a,i),T.SD.openUri(i,o,s)};o?l():e.he(u,l)}else S(e,a,i||void 0);return s.stopPropagation(),!1}},d=(t,e,i)=>{const n=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,s=t.match(new RegExp(n));if(s){const i=`${s[1]}.setAttribute("nonce", "${e}")`;return`${t.slice(0,s.index+s[0].length)};${i};${t.slice(s.index+s[0].length)}`}return null};if(u.onload=()=>{let r=null;if(null!=l){r=document.createElement("html"),r.innerHTML=e.message||"";const t=r.getElementsByTagName("style");for(let e=0;e<t.length;e++)t[e].setAttribute("nonce",l);const i=r.getElementsByTagName("script");for(let t=0;t<i.length;t++){i[t].setAttribute("nonce",l),i[t].innerHTML=i[t].innerHTML.replace(/<style>/g,`<style nonce='${l}'>`);const e=d(i[t].innerHTML,l,"script");e&&(i[t].innerHTML=e);const n=d(i[t].innerHTML,l,"style");n&&(i[t].innerHTML=n)}}const o=u.contentWindow;o.focus(),o.document.write(r?r.innerHTML:e.message||"");const p=o.document.getElementsByTagName("head")[0];if(null!=p){if(a(p),e.ye()){const t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.Ae()||"",null!=l&&t.setAttribute("nonce",l),p.appendChild(t)}const t=o.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),p.appendChild(t))}const b=o.document.getElementsByTagName("title");b&&b.length>0&&u.setAttribute("title",b[0].textContent||"");const m={closeMessage:function(){e.he(u)},logClick:function(){S(e,...arguments)},display:{},web:{}},f=function(){return function(){const e=arguments;Promise.resolve().then(s.bind(s,2261)).then((i=>{t.ZP.ue()?i.requestPushPermission(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))}},g={requestImmediateDataFlush:function(){const e=arguments;Promise.resolve().then(s.bind(s,4650)).then((({requestImmediateDataFlush:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},logCustomEvent:function(){const e=arguments;Promise.resolve().then(s.bind(s,1454)).then((({logCustomEvent:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},logPurchase:function(){const e=arguments;s.e(364).then(s.bind(s,1364)).then((({logPurchase:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},unregisterPush:function(){const e=arguments;Promise.resolve().then(s.bind(s,7824)).then((({unregisterPush:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))},requestPushPermission:f(),changeUser:function(){const e=arguments;Promise.resolve().then(s.bind(s,4790)).then((({changeUser:i})=>{t.ZP.ue()?i(...Array.prototype.slice.call(e)):w.Z.j.error(v.Go)}))}},y=function(t){return function(){g[t](...Array.prototype.slice.call(arguments))}};for(const t of(0,A.XP)(g))m[t]=y(t);const x=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],k=function(t){return function(){const e=(0,E.P)();e&&e[t](...Array.prototype.slice.call(arguments))}},Z={};for(let t=0;t<x.length;t++)Z[x[t]]=k(x[t]);m.getUser=function(){return Z};const _={showFeed:i},N=function(t){return function(){const i=arguments;e.he(u,(function(){_[t](...Array.prototype.slice.call(i))}))}},T=m.display;for(const t of(0,A.XP)(_))T[t]=N(t);const C={registerAppboyPushMessages:f()},I=function(t){return function(){C[t](...Array.prototype.slice.call(arguments))}},O=m.web;for(const t of(0,A.XP)(C))O[t]=I(t);if(o.appboyBridge=m,o.brazeBridge=m,e.Ce!==c.Z.Ee.Pe){const t=o.document.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].onclick=h(t[e]);const e=o.document.getElementsByTagName("button");for(let t=0;t<e.length;t++)e[t].onclick=h(e[t])}const P=o.document.body;if(null!=P){e.$e()&&(P.id=e.htmlId||"");const t=document.createElement("hidden");t.onclick=m.closeMessage,t.className="ab-programmatic-close-button",P.appendChild(t)}o.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==u.className.indexOf("ab-start-hidden")&&(u.className=u.className.replace("ab-start-hidden",""),n(u)),document.activeElement!==u&&u.focus()},u.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",f.Z.OS===_.T.fe){const t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(u),e.qe=t,t}return e.qe=u,u}(i,n,r,l,C,I);const j=function(i,n,s,r,a,o){let l=null;const u=document.createElement("div");var h;u.className="ab-in-app-message ab-start-hidden ab-background",o&&(u.style.zIndex=(o+1).toString()),i.xe()&&(u.className+=" ab-modal-interactions",u.setAttribute("tabindex","-1")),i.ye()||(u.style.color=g(i.textColor),u.style.backgroundColor=g(i.backgroundColor),h=i.backgroundColor,h=parseInt(h),!isNaN(h)&&(4278190080&h)>>>24==0&&(u.className+=" ab-no-shadow"));const d=()=>{-1!==u.className.indexOf("ab-start-hidden")&&(u.className=u.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?r(`Cannot show in-app message ${i.message} because another message is being shown.`,c.Z.Me.ze):s(u))},p=(t=!0)=>{const e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&(e[0].classList.remove("ab-iam-img-loading"),l&&(clearTimeout(l),l=null),t?d():w.Z.j.error(`Cannot show in-app message ${i.message} because the image failed to load.`))};i.imageStyle===c.Z.ImageStyle.GRAPHIC&&(u.className+=" graphic"),i.orientation===c.Z.Orientation.LANDSCAPE&&(u.className+=" landscape"),null!=i.buttons&&0===i.buttons.length&&(i.clickAction!==c.Z.ClickAction.NONE&&(u.className+=" ab-clickable"),u.onclick=s=>(i.he(u,(()=>{(function(i){if(!t.ZP.rr())return!1;if(!(i instanceof c.Z))return w.Z.j.error(v.De),!1;const n=e.Z.m().N(i,w.Z.q.Ii);if(n){i.Qr()||y(i);for(let t=0;t<n.ve.length;t++)k.n.er().je(x.Z.Lr,[i.triggerId],n.ve[t])}n.O})(i),i.clickAction===c.Z.ClickAction.URI?(0,Z.S)(i.uri||"",a||i.openTarget===c.Z.OpenTarget.BLANK,s):i.clickAction===c.Z.ClickAction.NEWS_FEED&&n()})),s.stopPropagation(),!1));const f=(0,m.B)("Close Message",i.ye()?void 0:g(i.closeButtonColor),(()=>{i.he(u)}));u.appendChild(f),o&&(f.style.zIndex=(o+2).toString());const S=document.createElement("div");S.className="ab-message-text";const E=(i.messageAlignment||i.Le).toLowerCase();S.className+=" "+E+"-aligned";let A=!1;const _=document.createElement("div");if(_.className="ab-image-area",i.imageUrl){if(i.cropType===c.Z.CropType.CENTER_CROP){const t=document.createElement("span");t.className="ab-center-cropped-img",t.style.backgroundImage="url("+i.imageUrl+")",t.setAttribute("role","img"),t.setAttribute("aria-label","Modal Image"),i.Ie(t),_.appendChild(t)}else{const t=document.createElement("img");if(t.setAttribute("src",i.imageUrl),i.Ie(t),0===document.querySelectorAll(".ab-iam-img-loading").length){A=!0;const e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),l=window.setTimeout((()=>{p(!1)}),6e4),t.onload=()=>{p()},t.onerror=()=>{p(!1)}}_.appendChild(t)}u.appendChild(_),S.className+=" ab-with-image"}else if(i.icon){_.className+=" ab-icon-area";const t=document.createElement("span");t.className="ab-icon",i.ye()||(t.style.backgroundColor=g(i.iconBackgroundColor),t.style.color=g(i.iconColor));const e=document.createElement("i");e.className="fa",e.appendChild(document.createTextNode(i.icon)),e.setAttribute("aria-hidden","true"),t.appendChild(e),_.appendChild(t),u.appendChild(_),S.className+=" ab-with-icon"}if((0,b.lj)(S,"touchstart"),i.header&&i.header.length>0){const t=document.createElement("h1");t.className="ab-message-header",i.Te=w.Z.Z.Y(),t.id=i.Te;const e=(i.headerAlignment||c.Z.TextAlignment.CENTER).toLowerCase();t.className+=" "+e+"-aligned",i.ye()||(t.style.color=g(i.headerTextColor)),t.appendChild(document.createTextNode(i.header)),S.appendChild(t)}return S.appendChild(i.Be()),u.appendChild(S),A||d(),i.qe=u,u}(i,n,r,o,l,C);if(i instanceof d.Z||i instanceof p.Z){const t=i instanceof d.Z?"ab-fullscreen":"ab-modal";j.className+=` ${t} ab-centered`,P(i,n,j,l),O(j),((t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label","Modal Message"),t&&e.setAttribute("aria-labelledby",t)})(i.Te,j)}else if(i instanceof h.Z){j.className+=" ab-slideup";const t=j.getElementsByClassName("ab-close-button")[0];if(null!=t){const e=(0,b.MK)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",i.ye()?void 0:g(i.closeButtonColor));e.setAttribute("class","ab-chevron"),t.appendChild(e)}let e,n;(0,b.FZ)(j,b.mQ.W,(e=>{j.className+=" ab-swiped-left",null!=t&&null!=t.onclick&&t.onclick(e)})),(0,b.FZ)(j,b.mQ.X,(e=>{j.className+=" ab-swiped-right",null!=t&&null!=t.onclick&&t.onclick(e)})),i.slideFrom===c.Z.SlideFrom.TOP?(e=b.mQ.Je,n=" ab-swiped-up"):(e=b.mQ.Ke,n=" ab-swiped-down"),(0,b.FZ)(j,e,(e=>{j.className+=n,null!=t&&null!=t.onclick&&t.onclick(e)}))}return j}(i,(()=>{s.e(864).then(s.bind(s,4864)).then((e=>{t.ZP.ue()?e.showFeed():w.Z.j.error(v.Go)}))}),(e=>{if(i.xe()&&i.io()){const n=document.createElement("div");if(n.className="ab-page-blocker",i.ye()||(n.style.backgroundColor=g(i.frameColor)),t.ZP.nn(t.JY.mo)&&(n.style.zIndex=t.ZP.nn(t.JY.mo).toString()),z.appendChild(n),!t.ZP.nn(t.JY.Lh)){const t=(new Date).valueOf();n.onclick=n=>{(new Date).valueOf()-t>c.Z.Uh&&(i.he(e),n.stopPropagation())}}z.appendChild(e),e.focus(),i.ah(z)}else if(U){const t=document.querySelectorAll(".ab-slideup");let n=null;for(let i=t.length-1;i>=0;i--)if(t[i]!==e){n=t[i];break}if(i.slideFrom===c.Z.SlideFrom.TOP){let t=0;null!=n&&(t=n.offsetTop+n.offsetHeight),e.style.top=Math.max(t,0)+"px"}else{let t=0;null!=n&&(t=(window.innerHeight||document.documentElement.clientHeight)-n.offsetTop),e.style.bottom=Math.max(t,0)+"px"}}else if(D&&!t.ZP.nn(t.JY.Lh)){const t=i;(0,j.f)(e)&&e.contentWindow&&e.contentWindow.addEventListener("keydown",(function(e){e.keyCode===I.m.Ih&&t.closeMessage()}))}y(i),i.dismissType===c.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{z.contains(e)&&i.he(e)}),i.duration),"function"==typeof r&&r()}),((t,e)=>{w.Z.j.info(t),C.Ye(i.triggerId,e)}),t.ZP.nn(t.JY.po),t.ZP.nn(t.JY.mo),t.ZP.nn(t.JY.lo));return(D||U)&&(z.appendChild(M),i.ah(z)),!0}var z=s(1454),U=s(2261),M=s(7824),L=s(4790),R=s(4650),F=s(67),B=s(1066),G=s(1280),$=s(1843),q=s(158),J=s(7750),X=s(3153),Y=s(5966),V=s(4663),H=s(9179),K=s(6870),W=s(6504);class Q extends q.Z{constructor(e,i,n,s,r){super(),this.ft=e,this.u=i,this.wt=n,this.vt=s,this.gt=r,this.ft=e,this.u=i,this.wt=n,this.vt=s,this.gt=r,this.yt=new V.Z,t.ZP.jt(this.yt),this.kt=0,this.Ut=0,this.cards=[],this.Lt();const a=w.Z.zt.Ft;new w.Z.xt(a,w.Z.j).Mt(a.Jt.qt,(t=>{this.Pt(t)})),this.$t=null,this._t=null,this.Bt=null,this.Gt=null,this.Ht=null,this.Kt=null,this.Ot=10,this.Qt=0}Vt(){return this._t}Wt(t){this._t=t}Xt(){return this.Bt}Yt(t){this.Bt=t}Lt(){if(!this.u)return;const t=this.u.v(Y.I.k.Zt)||[],e=[];for(let i=0;i<t.length;i++){const n=(0,X.rN)(t[i]);null!=n&&e.push(n)}this.cards=this.Cs(this.ws(e,!1)),this.kt=this.u.v(Y.I.k.vs)||this.kt,this.Ut=this.u.v(Y.I.k.ys)||this.Ut}Ns(t,e=!1,i=0,n=0){let s;if(e){s=[];for(const t of this.cards)t.test&&s.push(t)}else s=this.cards.slice();for(let i=0;i<t.length;i++){const n=t[i];let r=null;for(let t=0;t<this.cards.length;t++)if(n.id===this.cards[t].id){r=this.cards[t];break}if(e){const t=(0,X.xA)(n);null!=r&&r.viewed&&t&&(t.viewed=!0),null!=t&&s.push(t)}else if(null==r){const t=(0,X.xA)(n);null!=t&&s.push(t)}else if(!r.ot(n))for(let t=0;t<s.length;t++)if(n.id===s[t].id){s.splice(t,1);break}}this.cards=this.Cs(this.ws(s,e)),this.Rs(),this.kt=i,this.Ut=n,this.u&&(this.u.D(Y.I.k.vs,this.kt),this.u.D(Y.I.k.ys,this.Ut))}Ts(e){if(this.Ds()&&null!=e&&e.cards){this.u&&this.u.D(Y.I.k.Ss,t.ZP.Us());const i=e.full_sync;i||this.Lt(),this.Ns(e.cards,i,e.last_full_sync_at,e.last_card_updated_at),this.yt.Et(this.As(!0))}}Ls(t){this.u&&this.u.D(Y.I.k.Fs,t)}Ms(t,e,i){const n=()=>{this.Es(e,i,!0)},s=(0,$.D)(t);let r;if(this.qs(),!s["retry-after"])return void this.Ls(0);const a=s["retry-after"];if(isNaN(a)&&!isNaN(Date.parse(a)))r=Date.parse(a)-(new Date).getTime(),r<0&&n();else{if(isNaN(parseFloat(a.toString()))){const t="Received unexpected value for retry-after header in /sync response";return H.Z.N(w.Z.q.Is,{e:t+": "+a}),void this.Ls(0)}r=1e3*parseFloat(a.toString())}this.Gt=window.setTimeout((()=>{n()}),r);let o=0;this.u&&(o=this.u.v(Y.I.k.Fs)),(null==o||isNaN(parseInt(o.toString())))&&(o=0),this.Ls(parseInt(o.toString())+1)}Pt(t){if(!this.Ds())return;this.Lt();const e=this.cards.slice();let i=null;this.ft&&(i=this.ft.getUserId());for(let n=0;n<t.length;n++)if(i===t[n].userId||null==i&&null==t[n].userId){const i=t[n].card;let s=null;for(let t=0;t<this.cards.length;t++)if(i.id===this.cards[t].id){s=this.cards[t];break}if(null==s){const t=(0,X.xA)(i);null!=t&&e.push(t)}else if(!s.ot(i))for(let t=0;t<e.length;t++)if(i.id===e[t].id){e.splice(t,1);break}}this.cards=this.Cs(this.ws(e,!1)),this.Rs(),this.yt.Et(this.As(!0))}ws(t,e){let i={},n={},s={};this.u&&(i=this.u.v(Y.I.k.C)||{},n=this.u.v(Y.I.k.K)||{},s=this.u.v(Y.I.k.G)||{});const r={},a={},o={};for(let e=0;e<t.length;e++){const l=t[e].id;l&&(i[l]&&(t[e].clicked=!0,r[l]=!0),n[l]&&(t[e].viewed=!0,a[l]=!0),s[l]&&(t[e].dismissed=!0,o[l]=!0))}return e&&this.u&&(this.u.D(Y.I.k.C,r),this.u.D(Y.I.k.K,a),this.u.D(Y.I.k.G,o)),t}Cs(t){const e=[],i=new Date;let n={};this.u&&(n=this.u.v(Y.I.k.G)||{});let s=!1;for(let r=0;r<t.length;r++){const a=t[r].url;if(!this.vt&&a&&(0,N.o)(a)){w.Z.j.error(`Card with url ${a} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const o=t[r].expiresAt;let l=!0;if(null!=o&&(l=o>=i),l=l&&!t[r].dismissed,l)e.push(t[r]);else{const e=t[r].id;e&&(n[e]=!0),s=!0}}return s&&this.u&&this.u.D(Y.I.k.G,n),e}Rs(){if(!this.u)return;const t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].ss());this.u.D(Y.I.k.Zt,t)}qs(){this.Gt&&(clearTimeout(this.Gt),this.Gt=null)}Js(){null!=this.Ht&&(clearTimeout(this.Ht),this.Ht=null)}Ps(t=1e3*this.Ot,e,i){this.Js(),this.Ht=window.setTimeout((()=>{this.Es(e,i,!0)}),t),this.Kt=t}Es(e,i,n=!1,s=!0){var r;const a=this.gt,o=this.u;if(!a||!o)return void("function"==typeof i&&i());const l=!n;if(l&&(this.qs(),this.Ls(0)),!this.Ds())return void(!this.$t&&this.wt&&(this.$t=this.wt.$s((()=>{this.Es(e,i)}))));let u=!0;if(l&&(null===(r=this.wt)||void 0===r?void 0:r._s())&&(u=this.Bs()),!u)return void w.Z.j.info("Content card sync being throttled.");s&&this.Js();const c=a.Gs({},!0);o.v(Y.I.k.Ss)!==t.ZP.Us()&&this.Hs(),c.last_full_sync_at=this.kt,c.last_card_updated_at=this.Ut;const h=a.Ks(c,K.Z.Qs.Os,n);let d=!1;a.Vs(c,(()=>{if(this.u){const t=(new Date).valueOf();l&&this.u.D(Y.I.k.Ws,t),K.Z.Xs(this.u,K.Z.Qs.Os,t)}$.Z.Ys({url:a.Zs()+"/content_cards/sync",data:c,headers:h,O:(t,n)=>{if(!a.ti(c,t,h))return d=!0,void("function"==typeof i&&i());a.si(),this.Ms(n,e,i),this.Ts(t),d=!1,"function"==typeof e&&e()},error:t=>{a.ii(t,"retrieving content cards"),d=!0,"function"==typeof i&&i()},ei:()=>{if(d&&s&&!this.Ht&&this.Qt+1<v.Tt){let t=this.Kt;(null==t||t<1e3*this.Ot)&&(t=1e3*this.Ot),this.Ps(Math.min(3e5,(0,W.R)(1e3*this.Ot,3*t)),e,i),this.Qt=this.Qt+1}}})}))}As(t){t||this.Lt();const e=this.Cs(this.cards);e.sort(((t,e)=>t.pinned&&!e.pinned?-1:e.pinned&&!t.pinned?1:t.updated&&e.updated&&t.updated>e.updated?-1:t.updated&&e.updated&&e.updated>t.updated?1:0));let i=Math.max(this.Ut||0,this.kt||0);return 0===i&&(i=void 0),this.u&&this.u.v(Y.I.k.ys)===this.Ut&&void 0===i&&(i=this.Ut),new it(e,(0,J.X2)(i))}hi(t){return this.yt.lt(t)}Hs(){this.kt=0,this.Ut=0,this.u&&(this.u.ri(Y.I.k.vs),this.u.ri(Y.I.k.ys))}changeUser(t){t||(this.cards=[],this.yt.Et(new it(this.cards.slice(),null)),this.u&&(this.u.ri(Y.I.k.Zt),this.u.ri(Y.I.k.C),this.u.ri(Y.I.k.K),this.u.ri(Y.I.k.G))),this.Hs()}clearData(t){this.kt=0,this.Ut=0,this.cards=[],this.yt.Et(new it(this.cards.slice(),null)),t&&this.u&&(this.u.ri(Y.I.k.Zt),this.u.ri(Y.I.k.C),this.u.ri(Y.I.k.K),this.u.ri(Y.I.k.G),this.u.ri(Y.I.k.vs),this.u.ri(Y.I.k.ys))}Ds(){return!(this.wt&&!this.wt.ni()&&(0!==this.wt.oi()&&this.li(),1))}ai(t){this.u&&this.u.D(Y.I.k.ui,t)}ci(){return this.u?this.u.v(Y.I.k.ui):null}Bs(){const t=this.u,e=this.wt;if(!t||!e)return!0;const i=t.v(Y.I.k.Ws);if(null==i||isNaN(i))return!0;const n=e.fi(),s=e.di();if(-1===n||-1===s)return!0;let r=this.ci();(null==r||isNaN(r))&&(r=n);const a=((new Date).valueOf()-i)/1e3;return r=Math.min(r+a/s,n),!(r<1||(r=Math.trunc(r)-1,this.ai(r),0))}li(){this.yt.Et(new it([],new Date)),this.u&&this.u.ri(Y.I.k.Zt)}}const tt={t:!1,provider:null,er:()=>(tt.o(),tt.provider||(tt.provider=new Q(t.ZP.ir(),t.ZP.l(),t.ZP.tr(),t.ZP.nr(),t.ZP.ar()),t.ZP.dr(tt.provider)),tt.provider),o:()=>{tt.t||(t.ZP.g(tt),tt.t=!0)},destroy:()=>{tt.provider=null,tt.t=!1}},et=tt;class it extends F.Z{constructor(t,e){super(t,e)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(t){(0,B.p)(t,!0)}logCardClick(t){return(0,G.d)(t,!0)}sr(){t.ZP.rr()&&et.er().Es(void 0,void 0)}ur(){return!0}}it.mr=6e4;var nt=s(1311),st=s(5608),rt=s(6959);function at(e,i){if(!t.ZP.rr())return;(0,rt.B)();let n=!1;null==e&&(e=document.body,n=!0);const s=t.ZP.nn(t.JY.tn)||t.ZP.nn(t.JY.en)||!1,r=et.er().As(!1);"function"==typeof i&&(0,nt.Of)(r,i(r.cards.slice()),r.lastUpdated,null,s);const a=(0,nt.Yz)(r,s,n),o=et.er(),l=o.Vt();(null==r.lastUpdated||(new Date).valueOf()-r.lastUpdated.valueOf()>it.mr)&&(null==l||(new Date).valueOf()-l>it.mr)&&(w.Z.j.info(`Cached content cards were older than max TTL of ${it.mr} ms, requesting an update from the server.`),(0,nt.cV)(r,a),o.Wt((new Date).valueOf()));const u=(new Date).valueOf(),c=function(e){if(!t.ZP.rr())return;const i=et.er(),n=i.hi(e);if(!i.Xt()){const e=t.ZP.cr();if(e){const t=e.pr((()=>{i.Es()}));t&&i.Yt(t)}}return n}((function(t){const e=a.querySelectorAll(".ab-refresh-button")[0];if(null!=e){let t=500,i=t-=(new Date).valueOf()-u;const n=a.getAttribute(nt.cP);n&&(i=parseInt(n),isNaN(i)||(t-=(new Date).valueOf()-i)),setTimeout((function(){e.className=e.className.replace(/fa-spin/g,"")}),Math.max(t,0))}let n=t.cards;"function"==typeof i&&(n=i(n.slice())),(0,nt.Of)(r,n,t.lastUpdated,a,s)}));(0,nt.GB)(c,a);const h=function(t){const e=t.querySelectorAll(".ab-feed");let i=null;for(let n=0;n<e.length;n++)e[n].parentNode===t&&(i=e[n]);null!=i?((0,nt.tQ)(i),null!=i.parentNode&&i.parentNode.replaceChild(a,i)):t.appendChild(a),setTimeout((function(){a.className=a.className.replace("ab-hide","ab-show")}),0),n&&a.focus(),(0,nt.cz)(r,a),(0,st.CG)(r.cards,t)};var d;null!=e?h(e):window.onload=(d=window.onload,function(){"function"==typeof d&&d(new Event("oldLoad")),h(document.body)})}var ot,lt,ut,ct,ht,dt,pt,bt,mt,ft,gt=s(2080);function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(ot||(ot={})),function(t){t.PageView="page_view"}(lt||(lt={})),function(t){t.ButtonClick="marketing_button_click",t.LinkClick="marketing_link_click"}(ut||(ut={})),function(t){t.FreeTrialSignup="marketing_free_trial_signup",t.DemoSignup="marketing_demo_signup",t.PostFreeTrialSubmission="marketing_post_free_trial_submission",t.FormSubmission="marketing_form_submission"}(ct||(ct={})),function(t){t.ProductTrailRequested="product_trial_requested"}(ht||(ht={})),function(t){t.ExploreTopics="product_explore_topics",t.Stream="product_stream",t.SearchClickthrough="product_search_clickthrough",t.ClickBookACall="product_book_a_call_clicked",t.Share="product_share",t.DownloadResource="product_download_resource",t.Invite="product_invite_send"}(dt||(dt={})),function(t){t.FirstName="first_name",t.LastName="last_name",t.Email="email",t.Phone="phone_number"}(pt||(pt={})),function(t){t.CrmId="cvc_id",t.JobTitle="job_title",t.AccountOwner="account_owner",t.Department="department",t.AccountName="account_name",t.AccountType="account_type",t.OrgType="organisation_type",t.OrgSubType="organisation_sub_type",t.TrialRequested="freetrial_requested",t.SyncToCrm="sync_to_crm",t.MasterId="master_id",t.AccountAddress="account_address",t.Topic="topic"}(bt||(bt={})),function(t){t.AccountCity="account_city",t.AccountState="account_state",t.AccountPostCode="account_post_code",t.AccountCountry="account_country",t.HowCanWeHelp="how_can_we_help",t.ReasonForInterest="reason_for_interest",t.EventTopic="event_topic",t.ContactUsComment="contact_us_comment"}(mt||(mt={})),function(t){t.Marketing="marketing_id",t.Product="master_id",t.Email="email"}(ft||(ft={}));var wt={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var t,e=wt.queryString,i=new URLSearchParams(e),n={},s=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return vt(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vt(t,e):void 0}}(t))){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}(i.keys());try{for(s.s();!(t=s.n()).done;){var r=t.value;if(!(r in n)){var a=i.getAll(r);a.length>1?n[r]=a:n[r]=a[0]}}}catch(t){s.e(t)}finally{s.f()}return n&&Object.keys(n).length?JSON.stringify(n):e},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return wt.hostname+wt.pathname},decodeURIComponent:function(t){return window.decodeURIComponent(t)}},yt=wt,xt={"www.clickview.com.au":ot.AU,"staging.clickview.com.au":ot.AU,"clickview.test":ot.AU,"www.clickview.co.uk":ot.UK,"staging.clickview.co.uk":ot.UK,"uk.clickview.test":ot.UK,"www.clickview.co.nz":ot.NZ,"staging.clickview.co.nz":ot.NZ,"nz.clickview.test":ot.NZ,"www.clickvieweducation.com":ot.US,"staging.clickvieweducation.com":ot.US,"clickvieweducation.clickview.test":ot.US},kt={isMarketingWebsite:function(){var t=yt.hostname;return Object.keys(xt).includes(t)},getMarketingLocale:function(){if(this.isMarketingWebsite()){var t=yt.hostname;return xt[t]}},getRequestUrl:function(){return yt.requestUrl},getUtmsFromUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&",e=yt.queryString;if(e.length){var i=yt.decodeURIComponent(e.substring(1)),n=new RegExp("((utm_[^=]+)=([^\\"+t+"]+))","gi"),s=i.match(n);if(s&&s.length){var r=s.reduce((function(t,e){var i=e.split("=");return t[i[0].split("_")[1]]=i[1],t}),{});if(Object.keys(r).length)return r}}}},Zt={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},St="Unknown";function Et(t,e,i){if(!e)return{name:t,version:St};var n=e.exec(i);return{name:t,version:n&&n.length?n[0].trim():St}}var At=function(){var t=window.navigator.userAgent;return Zt.mobileDevice.test(t)?Zt.iphone.test(t)?"iPhone":Zt.ipad.test(t)?"iPad":Zt.android.test(t)?"Android":Zt.blackberry.test(t)?"Blackberry":Zt.windowsPhone.test(t)?"Windows Phone":St:"Desktop"},_t={getEventDataPayload:function(t,e){var i={product:this.getProductData(e),client:this.getClientData(),request:this.getRequestData()};t.data&&Object.keys(t.data).length&&(i.data=t.data);var n=kt.getRequestUrl();return n&&(i.request_url=n),i},getProductData:function(t){var e={name:t.name,version:t.version},i=kt.getMarketingLocale();return i&&(e.locale=i),e},getClientData:function(){return{os:(t=window.navigator.userAgent,Zt.android.test(t)?Et("Android",Zt.androidVersion,t):Zt.iphone.test(t)||Zt.ipad.test(t)?Et("iOS",Zt.iosVersion,t):Zt.linux.test(t)?Et("Linux",null,t):Zt.unix.test(t)?Et("Unix",null,t):Zt.mac.test(t)?Et("Macintosh",Zt.osxVersion,t):Zt.windows.test(t)?function(t,e){var i={name:"Windows",version:null};return Zt.win2000.test(e)&&(i.version="2000"),Zt.winXP.test(e)&&(i.version="XP"),Zt.winVista.test(e)&&(i.version="Vista"),Zt.win7.test(e)&&(i.version="7"),Zt.win8.test(e)&&(i.version="8"),Zt.win81.test(e)&&(i.version="8.1"),Zt.win10.test(e)&&(i.version="10"),i.version||(i.version=St),i}(0,t):Zt.blackberry.test(t)?Et("BlackBerry",Zt.blackberryVersion,t):Zt.windowsPhone.test(t)?Et("Windows Phone",Zt.windowsPhoneVersion,t):{name:St,version:St}),device:{type:At(),resolution:"".concat(yt.screenWidth,"x").concat(yt.screenHeight)}};var t},getRequestData:function(){var t=yt.queryParams,e=yt.referrer,i=kt.getUtmsFromUrl(),n={page_name:yt.title,host_name:yt.hostname,path_name:yt.pathname};return t.length&&(n.query_params=t),e.length&&(n.referrer=e),i&&(n.utms=i),n}},Nt=function(t){throw new Error(t)},Tt=function(t){return new Error(t)},Ct=new RegExp("[A-Za-z0-9 _.,!\"'/$]*"),It=["productName","productVersion","apiKey","baseUrl"];function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function Pt(){Pt=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function u(t,e,i,s){var r=e&&e.prototype instanceof d?e:d,a=Object.create(r.prototype),o=new E(s||[]);return n(a,"_invoke",{value:x(t,i,o)}),a}function c(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function d(){}function p(){}function b(){}var m={};l(m,r,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(A([])));g&&g!==e&&i.call(g,r)&&(m=g);var v=b.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function s(n,r,a,o){var l=c(t[n],t,r);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==Ot(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){s("next",t,a,o)}),(function(t){s("throw",t,a,o)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return s("throw",t,a,o)}))}o(l.arg)}var r;n(this,"_invoke",{value:function(t,i){function n(){return new e((function(e,n){s(t,i,e,n)}))}return r=r?r.then(n,n):n()}})}function x(t,e,i){var n="suspendedStart";return function(s,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw r;return{value:void 0,done:!0}}for(i.method=s,i.arg=r;;){var a=i.delegate;if(a){var o=k(a,i);if(o){if(o===h)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=c(t,e,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function k(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h;var s=c(n,t.iterator,e.arg);if("throw"===s.type)return e.method="throw",e.arg=s.arg,e.delegate=null,h;var r=s.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function Z(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Z,this),this.reset(!0)}function A(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,s=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return s.next=s}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=b,n(v,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=l(b,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,a,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,n,s,r){void 0===r&&(r=Promise);var a=new y(u(e,i,n,s),r);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(v),l(v,o,"Generator"),l(v,r,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return a.type="throw",a.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var o=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(o&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),S(i),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var s=n.arg;S(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:A(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},t}function jt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(s=function(t,e){if("object"!==Ot(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==Ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Ot(s)?s:String(s)),n)}var s}var Dt=function(t,e,i,n){return new(i||(i=Promise))((function(s,r){function a(t){try{l(n.next(t))}catch(t){r(t)}}function o(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,o)}l((n=n.apply(t,e||[])).next())}))},zt=function(){function i(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),function(t){t||Nt("No Client options provided."),It.forEach((function(e){t.hasOwnProperty(e)||Nt('Cannot find the required "'.concat(e,'" attribute in client options.'))}))}(t),this.options=t,this.initialize()}var n,s,r;return n=i,s=[{key:"initialize",value:function(){var i,n;i=this.options.apiKey,n={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,doNotLoadFontAwesome:!0},t.ZP.initialize(i,n)||Nt('Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.'),this.options.automaticallyShowInAppMessages&&function(){if(!t.ZP.rr())return;o();const i=e.Z.m();if(null==i.We()){const n=function(i){if(t.ZP.rr())return e.Z.m().Ve((function(t){return(t=>{D(t)})(t[0]),t.slice(1)}))}();i.Xe(n)}i.We()}()}},{key:"openSession",value:function(){!function(){if(!t.ZP.rr())return;const e=t.ZP.cr();if(!e)return;e.openSession();const i=w.Z.zt.Ft,n=new w.Z.xt(i,w.Z.j);n.hr(i.Jt.kr,(function(t,s){const r=s.lastClick,a=s.trackingString;w.Z.j.info(`Firing push click trigger from ${a} push click at ${r}`);const o=e.vr(r,a),l=function(){k.n.er().je(x.Z.zr,[a],o)};e.$r(l,l),n.br(i.Jt.kr,t)})),n.Mt(i.Jt.yr,(function(t){e.Fr(t)}))}()}},{key:"logEvent",value:function(t){var e=_t.getEventDataPayload(t,{name:this.options.productName,version:this.options.productVersion});return z.logCustomEvent(t.type,e)}},{key:"getUserId",value:function(){return Dt(this,void 0,void 0,Pt().mark((function t(){var e;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.getBrazeUser(),t.abrupt("return",new Promise((function(t,i){e.getUserId((function(e){e?t(e):i(Tt("User is not identified or anonymous."))}))})));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"setCustomUserAttribute",value:function(t,e){var i=this.getBrazeUser();return function(t){if("boolean"==typeof t)return!0;if(!t)return!1;if("string"==typeof t){if(!t.length)return!1;if(!(t.length<=255))return!1;if("$"===t[0])return!1;if(!Ct.test(t))return!1}return!0}(e)||Nt("Invalid custom user attribute value: '".concat(e,"' for key: '").concat(t,"'")),i.setCustomUserAttribute(t,e)}},{key:"bulkSetCustomUserAttributes",value:function(t){var e=this;Object.keys(t).length||Nt("Cannot bulk set emptry object for custom user attributes"),Object.keys(t).forEach((function(i){var n=t[i];e.setCustomUserAttribute(i,n)}))}},{key:"requestPushPermission",value:function(t,e){U.requestPushPermission(t,e)}},{key:"unregisterPush",value:function(t,e){M.unregisterPush(t,e)}},{key:"setAlias",value:function(t,e){this.getBrazeUser().addAlias(e,t)}},{key:"setUser",value:function(t){L.changeUser(t)}},{key:"setUserFirstName",value:function(t){this.getBrazeUser().setFirstName(t)}},{key:"setUserLastName",value:function(t){this.getBrazeUser().setLastName(t)}},{key:"setUserEmail",value:function(t){this.getBrazeUser().setEmail(t)}},{key:"setUserCountry",value:function(t){this.getBrazeUser().setCountry(t)}},{key:"setUserPhone",value:function(t){this.getBrazeUser().setPhoneNumber(t)}},{key:"setUserGender",value:function(t){this.getBrazeUser().setGender(t)}},{key:"sendData",value:function(t){t&&"function"==typeof t?R.requestImmediateDataFlush(t):R.requestImmediateDataFlush()}},{key:"hasUser",value:function(){try{if(this.getBrazeUser())return!0}catch(t){return!1}finally{return!1}}},{key:"getBrazeUser",value:function(){var t=E.P();return t||Nt("No valid user found!"),t}},{key:"getContentCards",value:function(){return Dt(this,void 0,void 0,Pt().mark((function t(){return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,e){at(null,(function(i){return i?t(i):e(Tt("No content cards found.")),i}))})));case 1:case"end":return t.stop()}}),t)})))}},{key:"hideCards",value:function(){!function(e){if(!t.ZP.rr())return;const i=document.querySelectorAll(".ab-feed");for(let t=0;t<i.length;t++)(0,nt.tQ)(i[t])}()}},{key:"logContentCardDismissal",value:function(t){gt.K(t)}},{key:"logContentCardClick",value:function(t){G.d(t,!0)}},{key:"logContentCardImpressions",value:function(t){var e;e=t,(0,B.p)(e,!0)}}],r=[{key:"getInstance",value:function(t){return this._instance||(this._instance=new this(t))}}],s&&jt(n.prototype,s),r&&jt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Ut(t){return zt.getInstance(t)}})(),r})(),t.exports=e()}}]);
|