js.appboycdn.com
Open in
urlscan Pro
2606:4700::6810:7709
Public Scan
URL:
https://js.appboycdn.com/web-sdk/4.1/braze.no-module.min.js
Submission: On August 23 via api from IT — Scanned from IT
Submission: On August 23 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/* * Braze Web SDK v4.1.0 * (c) Braze, Inc. 2022 - http://braze.com * License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE * Compiled on 2022-07-21 */ (function(){(function(b,a){if(b.braze){var d=a(),c;for(c in d)b.braze[c]=d[c]}else b.braze=a()})("undefined"!==typeof self?self:this,function(){var brazeInterface={};var p;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function ca(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a} var da="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; function fa(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ha=fa(this);function ja(a,b){if(b)a:{var c=ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ea(c,a,{configurable:!0,writable:!0,value:b})}}var ka; if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka; function pa(a,b){a.prototype=da(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Mh=b.prototype}function qa(){this.Yb=!1;this.Ya=null;this.ua=void 0;this.C=1;this.$e=this.tg=0;this.Sb=null}function ra(a){if(a.Yb)throw new TypeError("Generator is already running");a.Yb=!0}qa.prototype.bc=function(a){this.ua=a}; qa.prototype.jc=function(a){this.Sb={ug:a,Bg:!0};this.C=this.tg||this.$e};qa.prototype.return=function(a){this.Sb={return:a};this.C=this.$e};function sa(a,b,c){a.C=c;return{value:b}}function ta(a){this.H=new qa;this.Fg=a}ta.prototype.bc=function(a){ra(this.H);if(this.H.Ya)return ua(this,this.H.Ya.next,a,this.H.bc);this.H.bc(a);return va(this)}; function wa(a,b){ra(a.H);var c=a.H.Ya;if(c)return ua(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.H.return);a.H.return(b);return va(a)}ta.prototype.jc=function(a){ra(this.H);if(this.H.Ya)return ua(this,this.H.Ya["throw"],a,this.H.bc);this.H.jc(a);return va(this)}; function ua(a,b,c,d){try{var e=b.call(a.H.Ya,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.H.Yb=!1,e;var g=e.value}catch(f){return a.H.Ya=null,a.H.jc(f),va(a)}a.H.Ya=null;d.call(a.H,g);return va(a)} function va(a){for(;a.H.C;)try{var b=a.Fg(a.H);if(b)return a.H.Yb=!1,{value:b.value,done:!1}}catch(c){a.H.ua=void 0,a.H.jc(c)}a.H.Yb=!1;if(a.H.Sb){b=a.H.Sb;a.H.Sb=null;if(b.Bg)throw b.ug;return{value:b.return,done:!0}}return{value:void 0,done:!0}}function xa(a){this.next=function(b){return a.bc(b)};this.throw=function(b){return a.jc(b)};this.return=function(b){return wa(a,b)};this[Symbol.iterator]=function(){return this}} function ya(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function g(f){f.done?d(f.value):Promise.resolve(f.value).then(b,c).then(g,e)}g(a.next())})}function Ba(a){return ya(new xa(new ta(a)))} ja("Symbol",function(a){function b(g){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(g||"")+"_"+e++,g)}function c(g,f){this.sf=g;ea(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.sf};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b}); ja("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ea(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Ca(ba(this))}})}return a});function Ca(a){a={next:a};a[Symbol.iterator]=function(){return this};return a} ja("Promise",function(a){function b(f){this.Fb=0;this.hc=void 0;this.zb=[];this.ef=!1;var h=this.Gd();try{f(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.Ta=null}function d(f){return f instanceof b?f:new b(function(h){h(f)})}if(a)return a;c.prototype.Se=function(f){if(null==this.Ta){this.Ta=[];var h=this;this.Te(function(){h.vg()})}this.Ta.push(f)};var e=ha.setTimeout;c.prototype.Te=function(f){e(f,0)};c.prototype.vg=function(){for(;this.Ta&&this.Ta.length;){var f=this.Ta;this.Ta=[]; for(var h=0;h<f.length;++h){var k=f[h];f[h]=null;try{k()}catch(l){this.sg(l)}}}this.Ta=null};c.prototype.sg=function(f){this.Te(function(){throw f;})};b.prototype.Gd=function(){function f(l){return function(n){k||(k=!0,l.call(h,n))}}var h=this,k=!1;return{resolve:f(this.Hg),reject:f(this.Ud)}};b.prototype.Hg=function(f){if(f===this)this.Ud(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof b)this.Vg(f);else{a:switch(typeof f){case "object":var h=null!=f;break a;case "function":h= !0;break a;default:h=!1}h?this.Gg(f):this.bf(f)}};b.prototype.Gg=function(f){var h=void 0;try{h=f.then}catch(k){this.Ud(k);return}"function"==typeof h?this.Wg(h,f):this.bf(f)};b.prototype.Ud=function(f){this.mf(2,f)};b.prototype.bf=function(f){this.mf(1,f)};b.prototype.mf=function(f,h){if(0!=this.Fb)throw Error("Cannot settle("+f+", "+h+"): Promise already settled in state"+this.Fb);this.Fb=f;this.hc=h;2===this.Fb&&this.Jg();this.wg()};b.prototype.Jg=function(){var f=this;e(function(){if(f.Eg()){var h= ha.console;"undefined"!==typeof h&&h.error(f.hc)}},1)};b.prototype.Eg=function(){if(this.ef)return!1;var f=ha.CustomEvent,h=ha.Event,k=ha.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof f?f=new f("unhandledrejection",{cancelable:!0}):"function"===typeof h?f=new h("unhandledrejection",{cancelable:!0}):(f=ha.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.hc;return k(f)};b.prototype.wg=function(){if(null!=this.zb){for(var f= 0;f<this.zb.length;++f)g.Se(this.zb[f]);this.zb=null}};var g=new c;b.prototype.Vg=function(f){var h=this.Gd();f.Mc(h.resolve,h.reject)};b.prototype.Wg=function(f,h){var k=this.Gd();try{f.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(f,h){function k(q,u){return"function"==typeof q?function(x){try{l(q(x))}catch(w){n(w)}}:u}var l,n,m=new b(function(q,u){l=q;n=u});this.Mc(k(f,l),k(h,n));return m};b.prototype.catch=function(f){return this.then(void 0,f)};b.prototype.Mc=function(f, h){function k(){switch(l.Fb){case 1:f(l.hc);break;case 2:h(l.hc);break;default:throw Error("Unexpected state: "+l.Fb);}}var l=this;null==this.zb?g.Se(k):this.zb.push(k);this.ef=!0};b.resolve=d;b.reject=function(f){return new b(function(h,k){k(f)})};b.race=function(f){return new b(function(h,k){for(var l=r(f),n=l.next();!n.done;n=l.next())d(n.value).Mc(h,k)})};b.all=function(f){var h=r(f),k=h.next();return k.done?d([]):new b(function(l,n){function m(x){return function(w){q[x]=w;u--;0==u&&l(q)}}var q= [],u=0;do q.push(void 0),u++,d(k.value).Mc(m(q.length-1),n),k=h.next();while(!k.done)})};return b});ja("String.prototype.repeat",function(a){return a?a:function(b){if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");var c=this+"";if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); function Da(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ja("Array.prototype.keys",function(a){return a?a:function(){return Da(this,function(b){return b})}}); var Ea={ah:function(a){var b="=".repeat((4-a.length%4)%4);a=(a+b).replace(/\-/g,"+").replace(/_/g,"/");a=atob(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}};var Fa={Ua:function(){function a(b){var c=(Math.random().toString(16)+"000000000").substr(2,8);return b?"-"+c.substr(0,4)+"-"+c.substr(4,4):c}return a()+a(!0)+a(!0)+a()}};function Ga(a){var b=t;this.Me="undefined"===typeof window?self:window;this.I=a;this.K=b}function Ha(a){if("indexedDB"in a.Me)return a.Me.indexedDB} function Ia(a){try{if(null==Ha(a))return!1;Ha(a).open("Braze IndexedDB Support Test");if("undefined"!==typeof window){var b=window.Hh||window.Lc||window.Jh;if(b&&b.Ig&&b.Ig.id)return a.K.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}catch(c){return a.K.info("Not using IndexedDB for storage due to following error: "+c),!1}} function Ja(a,b,c){var d=Ha(a).open(a.I.X,a.I.VERSION);if(null==d)return"function"===typeof c&&c(),!1;d.onupgradeneeded=function(e){a.K.info("Upgrading indexedDB "+a.I.X+" to v"+a.I.VERSION+"...");e=e.target.result;for(var g in a.I.N)a.I.N.hasOwnProperty(g)&&!e.objectStoreNames.contains(a.I.N[g])&&e.createObjectStore(a.I.N[g])};d.onsuccess=function(e){var g=e.target.result;g.onversionchange=function(){g.close();"function"===typeof c&&c();a.K.error("Needed to close the database unexpectedly because of an upgrade in another tab")}; b(g)};d.onerror=function(e){a.K.info("Could not open indexedDB "+a.I.X+" v"+a.I.VERSION+": "+e.target.errorCode);"function"===typeof c&&c();return!0};return!0} Ga.prototype.setItem=function(a,b,c,d,e){if(!Ia(this))return"function"===typeof e&&e(),!1;var g=this;return Ja(this,function(f){f.objectStoreNames.contains(a)?(f=f.transaction([a],"readwrite").objectStore(a).put(c,b),f.onerror=function(){g.K.error("Could not store object "+b+" in "+a+" on indexedDB "+g.I.X);"function"===typeof e&&e()},f.onsuccess=function(){"function"===typeof d&&d()}):(g.K.error("Could not store object "+b+" in "+a+" on indexedDB "+g.I.X+" - "+a+" is not a valid objectStore"),"function"=== typeof e&&e())},e)};Ga.prototype.getItem=function(a,b,c){if(!Ia(this))return!1;var d=this;return Ja(this,function(e){e.objectStoreNames.contains(a)?(e=e.transaction([a],"readonly").objectStore(a).get(b),e.onerror=function(){d.K.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.I.X)},e.onsuccess=function(g){g=g.target.result;null!=g&&c(g)}):d.K.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.I.X+" - "+a+" is not a valid objectStore")})}; function Ka(a,b,c,d){Ia(a)?Ja(a,function(e){e.objectStoreNames.contains(b)?(e=e.transaction([b],"readonly").objectStore(b).openCursor(null,"prev"),e.onerror=function(){a.K.error("Could not open cursor for "+b+" on indexedDB "+a.I.X);"function"===typeof d&&d()},e.onsuccess=function(g){g=g.target.result;null!=g&&null!=g.value&&null!=g.key?c(g.key,g.value):"function"===typeof d&&d()}):(a.K.error("Could not retrieve last record from "+b+" on indexedDB "+a.I.X+" - "+b+" is not a valid objectStore"),"function"=== typeof d&&d())},d):"function"===typeof d&&d()}function La(a,b,c){Ia(a)&&Ja(a,function(d){d.objectStoreNames.contains(b)?d.transaction([b],"readwrite").objectStore(b)["delete"](c).onerror=function(){a.K.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.I.X)}:a.K.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.I.X+" - "+b+" is not a valid objectStore")})} function Ma(a,b,c){Ia(a)&&Ja(a,function(d){if(d.objectStoreNames.contains(b)){var e=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();var g=[];d.onerror=function(){0<g.length?(a.K.info("Cursor closed midway through for "+b+" on indexedDB "+a.I.X),c(g)):a.K.error("Could not open cursor for "+b+" on indexedDB "+a.I.X)};d.onsuccess=function(f){var h=f.target.result;null!=h?(null!=h.value&&null!=h.key&&(e["delete"](h.key).onsuccess=function(){g.push(h.value)}),h.continue()):0<g.length&&c(g)}}else a.K.error("Could not retrieve objects from "+ b+" on indexedDB "+a.I.X+" - "+b+" is not a valid objectStore")})} Ga.prototype.clearData=function(){if(!Ia(this))return!1;var a=[],b;for(b in this.I.N)this.I.N.hasOwnProperty(b)&&this.I.N[b]!==this.I.N.jd&&a.push(this.I.N[b]);var c=this;return Ja(this,function(d){d=d.transaction(a,"readwrite");for(var e=0;e<a.length;e++)d.objectStore(a[e]).clear().onerror=function(){c.K.error("Could not clear "+this.source.name+" on indexedDB "+c.I.X)};d.onerror=function(){c.K.error("Could not clear object stores on indexedDB "+c.I.X)}})};var v={yb:function(a){if(void 0!==a||void 0===v.Ra)v.Ra=!!a;v.He||(v.He=!0)},ca:function(){v.He=!1;v.Ra=void 0;v.K=void 0},Tg:function(a){"function"!==typeof a?v.info("Ignoring setLogger call since logger is not a function"):(v.yb(),v.K=a)},Yg:function(){v.yb();v.Ra?(console.log("Disabling Braze logging"),v.Ra=!1):(console.log("Enabled Braze logging"),v.Ra=!0)},info:function(a){v.Ra&&(a="Braze: "+a,null!=v.K?v.K(a):console.log(a))},warn:function(a){v.Ra&&(a="Braze SDK Warning: "+a+" (v4.1.0)", null!=v.K?v.K(a):console.warn(a))},error:function(a){v.Ra&&(a="Braze SDK Error: "+a+" (v4.1.0)",null!=v.K?v.K(a):console.error(a))}};var z={CustomEvent:"ce",Pf:"p",Wf:"pc",yh:"ca",Qf:"i",ed:"ie",Af:"cci",Bf:"ccic",yf:"ccc",zf:"ccd",te:"ss",Yf:"se",ge:"si",dd:"sc",cd:"sbc",Of:"sfe",Cf:"iec",Tf:"lr",uf:"uae",xf:"ci",wf:"cc",Rf:"lcaa",Sf:"lcar",Ef:"inc",Df:"add",Ff:"rem",Gf:"set",ue:"sgu"},Na={Nf:"feed_displayed",ih:"content_cards_displayed"},Oa={pa:{X:"AppboyServiceWorkerAsyncStorage",VERSION:6,N:{Hf:"data",me:"pushClicks",md:"pushSubscribed",oh:"fallbackDevice",vf:"cardUpdates",jd:"optOut",ke:"pendingData",oe:"sdkAuthenticationSignature"}, uc:1}},t=v,Pa={dh:"allowCrawlerActivity",gh:"baseUrl",Uf:"noCookies",Mf:"devicePropertyAllowlist",jh:"disablePushTokenMaintenance",mh:"enableLogging",nh:"enableSdkAuthentication",uh:"manageServiceWorkerExternally",qh:"minimumIntervalBetweenTriggerActionsInSeconds",Eh:"sessionTimeoutInSeconds",fh:"appVersion",Dh:"serviceWorkerLocation",Bh:"safariWebsitePushId",sh:"localization",hh:"contentSecurityNonce",lh:"enableHtmlInAppMessages",eh:"allowUserSuppliedJavascript",rh:"inAppMessageZIndex",wh:"openInAppMessagesInNewTab", xh:"openNewsFeedCardsInNewTab",Ah:"requireExplicitInAppMessageDismissal",kh:"doNotLoadFontAwesome",Ch:"sdkFlavor",vh:"openCardsInNewTab"};function Qa(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&b.push(a[c]);return b}function Ra(a,b,c,d){a=Qa(a);return-1===a.indexOf(b)?(t.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}function A(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function Sa(a){return"[object Date]"===Object.prototype.toString.call(a)}function Ta(a){return"[object Object]"===Object.prototype.toString.call(a)} function Ua(a){null==a&&(a=[]);for(var b=[],c=arguments.length,d=0,e=a.length;d<e;d++){var g=a[d];if(-1===b.indexOf(g)){var f;for(f=1;f<c&&-1!==arguments[f].indexOf(g);f++);f===c&&b.push(g)}}return b}function Va(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b} function Wa(a,b){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;var c=a.toString();if(c!==b.toString())return!1;switch(c){case "[object RegExp]":case "[object String]":return""+a===""+b;case "[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return+a===+b}c="[object Array]"===c;if(!c){if("object"!==typeof a||"object"!==typeof b)return!1;var d=a.constructor,e=b.constructor;if(d!==e&&!("function"===typeof d&&d instanceof d&&"function"===typeof e&&e instanceof e)&&"constructor"in a&&"constructor"in b)return!1}d=[];e=[];for(var g=d.length;g--;)if(d[g]===a)return e[g]===b;d.push(a);e.push(b);if(c){g=a.length;if(g!==b.length)return!1;for(;g--;)if(!Wa(a[g],b[g]))return!1}else{c=Va(a);g=c.length;if(Va(b).length!==g)return!1;for(;g--;){var f=c[g];if(!b.hasOwnProperty(f)||!Wa(a[f],b[f]))return!1}}d.pop();e.pop();return!0};function Xa(a,b){a/=1E3;b&&(a=Math.floor(a));return a}function Ya(a){var b=parseInt(a);return null==a||isNaN(b)?null:new Date(1E3*b)}function Za(a){return null!=a&&Sa(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}function $a(a){return null==a||""===a?null:new Date(a)};function B(){this.la={}}function ab(a,b){if("function"!==typeof b)return null;var c=Fa.Ua();a.la[c]=b;return c}B.prototype.ea=function(a){delete this.la[a]};B.prototype.U=function(){this.la={}};function C(a,b){var c=[],d;for(d in a.la)c.push(a.la[d](b))};function D(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=g||null;this.updated=f||null;this.categories=h||[];this.expiresAt=k||null;this.url=l;this.linkText=n;m=parseFloat(m);this.aspectRatio=isNaN(m)?null:m;this.extras=q;this.pinned=u||!1;this.dismissible=x||!1;this.dismissed=!1;this.clicked=w||!1;this.test=!1;this.vd=this.ha=null}p=D.prototype;p.ic=function(a){return ab(bb(this),a)}; p.Wd=function(a){return ab(cb(this),a)};p.ea=function(a){bb(this).ea(a);cb(this).ea(a)};p.U=function(){bb(this).U();cb(this).U()};p.Ye=function(){if(this.dismissible&&!this.dismissed){this.Ke&&this.Ke(this);var a=this.ze;a&&(a.style.height=a.offsetHeight+"px",a.className+=" ab-hide",setTimeout(function(){a&&a.parentNode&&(a.style.height="0",a.style.margin="0",setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a)},fb))},500))}};function bb(a){null==a.ha&&(a.ha=new B);return a.ha} function cb(a){null==a.vd&&(a.vd=new B);return a.vd}p.Sd=function(){this.viewed=!0};p.Ab=function(){this.clicked=this.viewed=!0;C(bb(this))};p.Rd=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,C(cb(this)),!0):!1}; function gb(a,b){if(null==b||b[E.Ka]!==a.id)return!0;if(b[E.ne])return!1;if(null!=b[E.qa]&&null!=a.updated&&b[E.qa]<Xa(a.updated.valueOf()))return!0;b[E.Na]&&!a.viewed&&(a.viewed=!0);b[E.Ha]&&!a.clicked&&(a.clicked=b[E.Ha]);null!=b[E.bb]&&(a.title=b[E.bb]);null!=b[E.La]&&(a.imageUrl=b[E.La]);null!=b[E.$a]&&(a.description=b[E.$a]);if(null!=b[E.qa]){var c=Ya(b[E.qa]);null!=c&&(a.updated=c)}null!=b[E.oa]&&(a.expiresAt=b[E.oa]===hb?null:Ya(b[E.oa]));null!=b[E.URL]&&(a.url=b[E.URL]);null!=b[E.Ma]&&(a.linkText= b[E.Ma]);null!=b[E.Ga]&&(c=parseFloat(b[E.Ga]),a.aspectRatio=isNaN(c)?null:c);null!=b[E.za]&&(a.extras=b[E.za]);null!=b[E.Aa]&&(a.pinned=b[E.Aa]);null!=b[E.Ja]&&(a.dismissible=b[E.Ja]);null!=b[E.ga]&&(a.test=b[E.ga]);return!0} var hb=-1,ib={$d:"captioned_image",Zf:"text_announcement",ie:"short_news",Yd:"banner_image",be:"control"},E={Ka:"id",Na:"v",Ja:"db",ne:"r",qa:"ca",Aa:"p",oa:"ea",za:"e",TYPE:"tp",La:"i",bb:"tt",$a:"ds",URL:"u",Ma:"dm",Ga:"ar",Ha:"cl",ga:"t"},G={Ka:"id",Na:"v",Ja:"db",nc:"cr",qa:"ca",Aa:"p",lc:"t",oa:"ea",za:"e",TYPE:"tp",La:"i",bb:"tt",$a:"ds",URL:"u",Ma:"dm",Ga:"ar",Ha:"cl",ga:"s"},fb=400;function jb(a,b,c,d,e,g,f,h,k,l,n,m,q,u){D.call(this,a,b,null,c,null,d,e,g,f,h,k,l,n,m,q,u);this.Oc="ab-banner";this.Qc=!1}pa(jb,D);jb.prototype.D=function(){var a={};a[G.TYPE]=ib.Yd;a[G.Ka]=this.id;a[G.Na]=this.viewed;a[G.La]=this.imageUrl;a[G.qa]=this.updated;a[G.nc]=this.created;a[G.lc]=this.categories;a[G.oa]=this.expiresAt;a[G.URL]=this.url;a[G.Ma]=this.linkText;a[G.Ga]=this.aspectRatio;a[G.za]=this.extras;a[G.Aa]=this.pinned;a[G.Ja]=this.dismissible;a[G.Ha]=this.clicked;a[G.ga]=this.test;return a};function kb(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w){D.call(this,a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w);this.Oc="ab-captioned-image";this.Qc=!0}pa(kb,D); kb.prototype.D=function(){var a={};a[G.TYPE]=ib.$d;a[G.Ka]=this.id;a[G.Na]=this.viewed;a[G.bb]=this.title;a[G.La]=this.imageUrl;a[G.$a]=this.description;a[G.qa]=this.updated;a[G.nc]=this.created;a[G.lc]=this.categories;a[G.oa]=this.expiresAt;a[G.URL]=this.url;a[G.Ma]=this.linkText;a[G.Ga]=this.aspectRatio;a[G.za]=this.extras;a[G.Aa]=this.pinned;a[G.Ja]=this.dismissible;a[G.Ha]=this.clicked;a[G.ga]=this.test;return a};function lb(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w){D.call(this,a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w);this.Oc="ab-classic-card";this.Qc=!0}pa(lb,D); lb.prototype.D=function(){var a={};a[G.TYPE]=ib.ie;a[G.Ka]=this.id;a[G.Na]=this.viewed;a[G.bb]=this.title;a[G.La]=this.imageUrl;a[G.$a]=this.description;a[G.qa]=this.updated;a[G.nc]=this.created;a[G.lc]=this.categories;a[G.oa]=this.expiresAt;a[G.URL]=this.url;a[G.Ma]=this.linkText;a[G.Ga]=this.aspectRatio;a[G.za]=this.extras;a[G.Aa]=this.pinned;a[G.Ja]=this.dismissible;a[G.Ha]=this.clicked;a[G.ga]=this.test;return a};function mb(a,b,c,d,e,g){D.call(this,a,b,null,null,null,null,c,null,d,null,null,null,e,g,null);this.Oc="ab-control-card";this.Qc=!1}pa(mb,D);mb.prototype.D=function(){var a={};a[G.TYPE]=ib.be;a[G.Ka]=this.id;a[G.Na]=this.viewed;a[G.qa]=this.updated;a[G.oa]=this.expiresAt;a[G.za]=this.extras;a[G.Aa]=this.pinned;a[G.ga]=this.test;return a};function nb(){}nb.prototype.Kd=function(){};nb.prototype.Ld=function(){};nb.prototype.xb=function(){};function ob(a,b){if(a&&b)if(a=a.toLowerCase(),A(b.V))for(var c=0;c<b.V.length;c++){if(-1!==a.indexOf(b.V[c].toLowerCase()))return b.aa}else if(-1!==a.indexOf(b.V.toLowerCase()))return b.aa};var pb={ae:"Chrome",ad:"Edge",pc:"Internet Explorer",je:"Opera",nd:"Safari",ph:"Firefox"};function qb(){if(this.userAgentData=navigator.userAgentData){var a=this.userAgentData.brands;if(a&&a.length){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0,d=[];for(c in pb)pb[c]!==pb.pc&&d.push(pb[c]);if((c=b.brand.match(new RegExp("("+d.join("|")+")","i")))&&0<c.length){var e=c[0];var g=b.version;break}}}this.Lc=e||"Unknown Browser";this.version=g||"Unknown Version"}}pa(qb,nb);qb.prototype.Kd=function(){return this.Lc};qb.prototype.Ld=function(){return this.version}; qb.prototype.xb=function(a){function b(d){for(var e=0;e<a.length;e++){var g=ob(d,a[e]);if(g)return c.va=g,c.va}return d}var c=this;return this.va?Promise.resolve(this.va):this.userAgentData.platform?Promise.resolve(b(this.userAgentData.platform)):(this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()).then(function(d){return b(d.platform)}).catch(function(){return navigator.platform})};function rb(){this.Ve=tb()}pa(rb,nb);rb.prototype.Kd=function(){return this.Ve[0]||"Unknown Browser"};rb.prototype.Ld=function(){return this.Ve[1]||"Unknown Version"};rb.prototype.xb=function(a){for(var b=0;b<a.length;b++){var c=ob(a[b].fa,a[b]);if(c)return"Mac"===c&&1<navigator.maxTouchPoints&&(c="iOS"),Promise.resolve(c)}return Promise.resolve(navigator.platform)}; function tb(){var a=navigator.userAgent||"",b=a.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(/trident/i.test(b[1])){var c=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(a)||[];return[pb.pc,c[1]||""]}if(-1!==a.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==a.indexOf("CrKey"))return["Chromecast",null];if(-1!==a.indexOf("BRAVIA")||-1!==a.indexOf("SonyCEBrowser")||-1!==a.indexOf("SonyDTV"))return["Sony Smart TV", null];if(-1!==a.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(a.match(/\b(Roku)\b/))return["Roku",null];if(a.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(b[1]===pb.ae&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("OPR",pb.je),c[0]=c[0].replace("EdgA",pb.ad),"Edg"===c[0]&&(c[0]=pb.ad),[c[0],c[1]];if(b[1]===pb.nd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("EdgiOS",pb.ad), [c[0],c[1]];b=b[2]?[b[1],b[2]]:[null,null];b[0]===pb.nd&&null!=(c=a.match(/version\/(\.?\d+(\.\d+)*)/i))&&b.splice(1,1,c[1]);null!=(c=a.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&b.splice(1,1,c[2]);if(b[0]===pb.je&&null!=(c=a.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",c[1]||""];b[0]&&(a=b[0].toLowerCase(),"msie"===a&&(b[0]=pb.pc),"crios"===a&&(b[0]=pb.ae),"tizen"===a&&(b[0]="Samsung Smart TV",b[1]=null),"samsungbrowser"===a&&(b[0]="Samsung Browser"));return b};function ub(){var a=this;this.Qd=new (navigator.userAgentData?qb:rb);this.userAgent=navigator.userAgent;this.browser=this.Qd.Kd();this.version=this.Qd.Ld();this.xb().then(function(b){return a.va=b});this.language=(navigator.Oh||navigator.language||navigator.browserLanguage||navigator.Nh||"").toLowerCase();this.Ag=vb(this.userAgent)}ub.prototype.xb=function(){var a=this;return this.va?Promise.resolve(this.va):this.Qd.xb(wb).then(function(b){return a.va=b})}; function vb(a){a=a.toLowerCase();for(var b="googlebot bingbot slurp duckduckbot baiduspider yandex facebookexternalhit sogou ia_archiver https://github.com/prerender/prerender aolbuild bingpreview msnbot adsbot mediapartners-google teoma".split(" "),c=0;c<b.length;c++)if(-1!==a.indexOf(b[c]))return!0;return!1} var wb=[{fa:navigator.platform,V:"Win",aa:"Windows"},{fa:navigator.platform,V:"Mac",aa:"Mac"},{fa:navigator.platform,V:"BlackBerry",aa:"BlackBerry"},{fa:navigator.platform,V:"FreeBSD",aa:"FreeBSD"},{fa:navigator.platform,V:"OpenBSD",aa:"OpenBSD"},{fa:navigator.platform,V:"Nintendo",aa:"Nintendo"},{fa:navigator.platform,V:"SunOS",aa:"SunOS"},{fa:navigator.platform,V:"PlayStation",aa:"PlayStation"},{fa:navigator.platform,V:"X11",aa:"X11"},{fa:navigator.userAgent,V:["iPhone","iPad","iPod"],aa:"iOS"}, {fa:navigator.platform,V:"Pike v",aa:"iOS"},{fa:navigator.userAgent,V:["Web0S"],aa:"WebOS"},{fa:navigator.platform,V:["Linux armv7l","Android"],aa:"Android"},{fa:navigator.userAgent,V:["Android"],aa:"Android"},{fa:navigator.platform,V:"Linux",aa:"Linux"}],xb=new ub;function yb(a,b,c,d,e){this.mb=a;this.type=b;this.time=null==c||""===c?(new Date).valueOf():c;this.sessionId=d;this.data=e}yb.prototype.Kc=function(){var a={name:this.type,time:Xa(this.time),data:this.data||{},session_id:this.sessionId};null!=this.mb&&(a.user_id=this.mb);return a};yb.prototype.D=function(){return{u:this.mb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};function zb(a){return null!=a&&Ta(a)&&null!=a.t&&""!==a.t}function Ab(a){return new yb(a.u,a.t,a.ts,a.s,a.d)};function Bb(a,b,c){null==a&&(a=Fa.Ua());c=parseInt(c);if(isNaN(c)||0===c)c=(new Date).valueOf();this.ya=a;this.Wb=c;this.$b=(new Date).valueOf();this.Id=b}Bb.prototype.D=function(){return{g:this.ya,e:this.Id,c:this.Wb,l:this.$b}};function Cb(a){for(var b=a.length,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);127<d&&2047>=d?b++:2047<d&&65535>=d&&(b+=2);56320<=d&&57343>=d&&c--}return b};var H={Nc:"container",ac:"logCustomEvent",Wc:"setEmailNotificationSubscriptionType",Eb:"setPushNotificationSubscriptionType",Db:"setCustomUserAttribute",Bb:"requestPushPermission",Ic:"addToSubscriptionGroup",Vc:"removeFromSubscriptionGroup",Hc:"addToCustomAttributeArray",Uc:"removeFromCustomAttributeArray",gf:"openLink",hf:"openLinkInWebView"}; function Db(a,b){switch(a){case "unknownBrazeAction":return b+" contains an unknown braze action type and will not be displayed.";case "noPushPrompt":return b+" contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.";default:return""}} function Eb(a){try{var b=a.match(Fb)[0].length,c=a.substring(b);if(b>a.length-1||!c)t.error("Did not find base64 encoded brazeAction in url to process : "+a);else{b=c;try{b=b.replace(/-/g,"+").replace(/_/g,"/");var d=window.atob(b),e=new Uint8Array(d.length);for(b=0;b<d.length;b++)e[b]=d.charCodeAt(b);var g=new Uint16Array(e.buffer);var f=String.fromCharCode.apply(String,ca(g))}catch(h){t.error("Unable to decode Base64: "+h),f=null}if(f)return JSON.parse(f);t.error("Failed to decode base64 encoded brazeAction: "+ c)}}catch(h){t.error("Failed to process brazeAction URL "+a+" : "+h.message)}}function Gb(a,b){var c=!1;b=r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,c=c||a(d))return!0;return!1}function Hb(a){try{var b=a.type;return b===H.Nc?Gb(Hb,a.steps):!Ib(b)}catch(c){return!0}}function Jb(a){if(!Kb(a))return!1;var b=a.type;return b===H.Nc?Gb(Jb,a.steps):b===H.Bb};var Lb=/^[^\x00-\x1F\x22]+$/,Mb=new RegExp(/^.+@.+\..+$/),Fb=/^brazeActions:\/\/v\d+\//;function Nb(a){var b=typeof a;return null==a||"number"===b||"boolean"===b||Sa(a)||"string"===b}function Ob(a,b){if(A(a)&&A(b))for(var c=0;c<a.length&&c<b.length;c++){if(Sa(a[c])&&(b[c]=Za(a[c])),!Ob(a[c],b[c]))return!1}else if(Ta(a)){c=r(Va(a));for(var d=c.next();!d.done;d=c.next())if(d=d.value,Sa(a[d])&&(b[d]=Za(a[d])),!Ob(a[d],b[d]))return!1}else return Nb(a);return!0} function Pb(a,b,c,d){(d="string"===typeof a||null===a&&d)||t.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}function Qb(a,b,c){var d=null!=a&&"string"===typeof a&&(""===a||a.match(Lb));d||t.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d} function Rb(a,b,c,d,e){null==a&&(a={});if("object"!==typeof a||A(a))return t.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(51200<Cb(b))return t.error("Could not "+d+" because "+c+" was greater than the max size of 50KB."),[!1,null];try{var g=JSON.parse(b)}catch(l){return t.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(var f in a){if(!Qb(f,d,"the "+e+" property name"))return[!1,null];c=a[f];if(null==c)delete a[f],delete g[f]; else{Sa(c)&&(g[f]=Za(c));var h=d,k="the "+e+' property "'+f+'"';(b=Ta(c)||A(c)?Ob(c,g[f]):Nb(c))||t.error("Cannot "+h+" because "+k+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,g]}function Kb(a){if(!("type"in a))return!1;switch(a.type){case H.Nc:if("steps"in a)return!0;break;case H.ac:case H.Wc:case H.Eb:case H.Db:case H.Ic:case H.Vc:case H.Hc:case H.Uc:case H.gf:case H.hf:if("args"in a)return!0;break;case H.Bb:return!0}return!1} function Ib(a){var b=!1;Object.keys(H).forEach(function(c){H[c]===a.toString()&&(b=!0)});return b};function J(a,b){this.j=a;this.G=b}p=J.prototype;p.T=function(a){null==a&&t.error("getUserId must be supplied with a callback. e.g., braze.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})");"function"===typeof a&&a(this.j.T())}; p.rg=function(a,b){if(!Pb(a,"add alias","the alias",!1)||0>=a.length)return t.error("addAlias requires a non-empty alias"),!1;if(!Pb(b,"add alias","the label",!1)||0>=b.length)return t.error("addAlias requires a non-empty label"),!1;var c=O(z.uf,{a:a,l:b});c&&t.info("Logged alias "+a+" with label "+b);return c.A};p.Og=function(a){return Pb(a,"set first name","the firstName",!0)?P(this.j,"first_name",a):!1};p.Sg=function(a){return Pb(a,"set last name","the lastName",!0)?P(this.j,"last_name",a):!1}; p.Ng=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Mb)?P(this.j,"email",a):(t.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.Pg=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Ra(Sb,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?P(this.j,"gender",a):!1}; p.Mg=function(a,b,c){if(null===a&&null===b&&null===c)return P(this.j,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12<b||1>b||31<c||1>c?(t.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):P(this.j,"dob",a+"-"+b+"-"+c)};p.Kg=function(a){return Pb(a,"set country","the country",!0)?P(this.j,"country",a):!1}; p.Qg=function(a){return Pb(a,"set home city","the homeCity",!0)?P(this.j,"home_city",a):!1};p.Rg=function(a){return Pb(a,"set language","the language",!0)?P(this.j,"language",a):!1};p.Wc=function(a){return Ra(Tb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?P(this.j,"email_subscribe",a):!1}; p.Eb=function(a){return Ra(Tb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?P(this.j,"push_subscribe",a):!1};p.Ug=function(a){return Pb(a,"set phone number","the phoneNumber",!0)?null===a||a.match(Ub)?P(this.j,"phone",a):(t.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1}; p.Vd=function(a,b,c,d,e){if(null==a||null==b)return t.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));return isNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(t.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(t.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."), !1):null!=c&&0>c||null!=e&&0>e?(t.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.G.Vd(this.j.T(),a,b,d,c,e).A}; p.Db=function(a,b){if(!Qb(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Sa(b),e=A(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Qb(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=Za(b));if(e){for(c=0;c<b.length;c++)if(!Qb(b[c],'set custom user attribute "'+a+'"',"the element in the given array"))return!1;return Vb(this.G,z.Gf,a,b).A}return this.j.Db(a,b)}; p.Hc=function(a,b){return!Qb(a,"add to custom user attribute array","the given key")||null!=b&&!Qb(b,"add to custom user attribute array","the given value")?!1:Vb(this.G,z.Df,a,b).A};p.Uc=function(a,b){return!Qb(a,"remove from custom user attribute array","the given key")||null!=b&&!Qb(b,"remove from custom user attribute array","the given value")?!1:Vb(this.G,z.Ff,a,b).A}; p.zg=function(a,b){if(!Qb(a,"increment custom user attribute","the given key"))return!1;null==b&&(b=1);var c=parseInt(b);return isNaN(c)||c!==parseFloat(b)?(t.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):Vb(this.G,z.Ef,a,c).A}; p.Lg=function(a,b,c){if(!Qb(a,"set custom location attribute","the given key"))return!1;if(null!==b||null!==c)if(b=parseFloat(b),c=parseFloat(c),isNaN(b)||90<b||-90>b||isNaN(c)||180<c||-180>c)return t.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;var d=c;Wb(this.G.B,a)?(t.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),a=new Xb):(null===b&&null===d?(c=z.Sf,a= {key:a}):(c=z.Rf,a={key:a,latitude:b,longitude:d}),a=O(c,a));return a.A};p.Ic=function(a){return!Pb(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(t.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):O(z.ue,{group_id:a,status:Yb}).A}; p.Vc=function(a){return!Pb(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(t.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):O(z.ue,{group_id:a,status:Zb}).A};p.Td=function(a,b,c,d,e){this.j.Td(a,b,c,d,e);$b(this.G)};p.dc=function(a){this.j.dc(a)}; var Ub=/^[0-9 .\\(\\)\\+\\-]+$/,Sb={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},Tb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},Yb="subscribed",Zb="unsubscribed";var ac={vc:"ab.storage.userId",$c:"ab.storage.deviceId",ab:"ab.storage.sessionId"},Q={od:"ab.test",kc:"ab.storage.events",Za:"ab.storage.attributes",Yc:"ab.storage.attributes.anonymous_user",oc:"ab.storage.device",pe:"ab.storage.sdk_metadata",se:"ab.storage.session_id_for_cached_metadata",tc:"ab.storage.pushToken",hd:"ab.storage.newsFeed",gd:"ab.storage.lastNewsFeedRefresh",Hb:"ab.storage.cardImpressions",re:"ab.storage.serverConfig",pd:"ab.storage.triggers",qd:"ab.storage.triggers.ts",sc:"ab.storage.messagingSessionStart", Jb:"ab.storage.cc",mc:"ab.storage.ccLastFullSync",Ib:"ab.storage.ccLastCardUpdated",nb:"ab.storage.ccClicks",ob:"ab.storage.ccImpressions",Ia:"ab.storage.ccDismissals",rc:"ab.storage.lastDisplayedTriggerTimesById",fd:"ab.storage.lastDisplayedTriggerTime",Mb:"ab.storage.triggerFireInstancesById",Kb:"ab.storage.signature",qe:"ab.storage.sdkVersion"};function bc(a,b){this.Cc=a;this.Y=b}function cc(a,b,c){var d=c;null!=c&&c instanceof Bb&&(d=c.D());a.Cc.store(b,d)} function dc(a,b){var c=ec(a,b);null!=c&&(c.$b=(new Date).valueOf(),cc(a,b,c))}function ec(a,b){a=a.Cc.ma(b);null==a||null==a.g?a=null:(b=new Bb(a.g,a.e,a.c),b.$b=a.l,a=b);return a}function fc(a,b){if(null==b||0===b.length)return!1;A(b)||(b=[b]);var c=a.Y.ma(Q.kc);null!=c&&A(c)||(c=[]);for(var d=0;d<b.length;d++)c.push(b[d].D());return a.Y.store(Q.kc,c)} function gc(a){var b=a.Y.ma(Q.kc);a.Y.remove(Q.kc);null==b&&(b=[]);a=[];var c=!1,d=null;if(A(b))for(var e=0;e<b.length;e++)zb(b[e])?a.push(Ab(b[e])):d=e;else c=!0;if(c||null!=d)e="Stored events could not be deserialized as Events",c&&(e+=", was "+Object.prototype.toString.call(b)+" not an array"),null!=d&&(e+=", value at index "+d+" does not look like an event"),e+=", serialized values were of type "+typeof b+": "+JSON.stringify(b),a.push(new yb(null,z.ed,(new Date).valueOf(),null,{e:e}));return a} function R(a,b,c){Ra(Q,b,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&a.Y.store(b,c)}function S(a,b){return Ra(Q,b,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")?a.Y.ma(b):!1}function T(a,b){Ra(Q,b,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&a.Y.remove(b)}bc.prototype.clearData=function(){for(var a=Va(ac),b=Va(Q),c=0;c<a.length;c++)this.Cc.remove(ac[a[c]]);for(a=0;a<b.length;a++)this.Y.remove(Q[b[a]])}; function hc(a,b){var c=a.Y.ma(Q.Za);null==c&&(c={});var d=b.user_id||Q.Yc,e;for(e in b)"user_id"===e||null!=c[d]&&null!=c[d][e]||ic(a,b.user_id,e,b[e])}function ic(a,b,c,d){var e=a.Y.ma(Q.Za);null==e&&(e={});var g=b||Q.Yc,f=e[g];null==f&&(f={},null!=b&&(f.user_id=b));if("custom"===c){null==f[c]&&(f[c]={});for(var h in d)f[c][h]=d[h]}else f[c]=d;e[g]=f;return a.Y.store(Q.Za,e)}function jc(a){var b=a.Y.ma(Q.Za);a.Y.remove(Q.Za);a=[];for(var c in b)null!=b[c]&&a.push(b[c]);return a} function kc(a){this.S=a;this.af=xb.Lc===pb.nd?3:10}kc.prototype.fb=function(a){return a+"."+this.S};kc.prototype.store=function(a,b){b={v:b};try{return localStorage.setItem(this.fb(a),JSON.stringify(b)),!0}catch(c){return t.info("Storage failure: "+c.message),!1}};kc.prototype.ma=function(a){try{var b=JSON.parse(localStorage.getItem(this.fb(a)));return null==b?null:b.v}catch(c){return t.info("Storage retrieval failure: "+c.message),null}}; kc.prototype.remove=function(a){try{localStorage.removeItem(this.fb(a))}catch(b){return t.info("Storage removal failure: "+b.message),!1}};function lc(a,b){this.S=a;a=0;for(var c=document.location.hostname,d=c.split(".");a<d.length-1&&-1===document.cookie.indexOf("ab._gd=ab._gd");)a++,c="."+d.slice(-1-a).join("."),document.cookie="ab._gd=ab._gd;domain="+c+";";document.cookie="ab._gd=;expires="+(new Date(0)).toGMTString()+";domain="+c+";";this.Oe=c;this.De=576E3;this.Qe=!!b} lc.prototype.fb=function(a){return null!=this.S?a+"."+this.S:a}; lc.prototype.store=function(a,b){for(var c=Qa(ac),d=document.cookie.split(";"),e=0;e<d.length;e++){for(var g=d[e];" "===g.charAt(0);)g=g.substring(1);for(var f=!1,h=0;h<c.length;h++)if(0===g.indexOf(c[h])){f=!0;break}f&&(g=g.split("=")[0],-1===g.indexOf("."+this.S)&&mc(this,g))}c=new Date;c.setTime(c.getTime()+6E4*this.De);c="expires="+c.toUTCString();d="domain="+this.Oe;b=this.Qe?b:encodeURIComponent(JSON.stringify(b));a=this.fb(a)+"="+b+";"+c+";"+d+";path=/";if(4093<=a.length)return t.info("Storage failure: string is "+ a.length+" chars which is too large to store as a cookie."),!1;document.cookie=a;return!0}; lc.prototype.ma=function(a){for(var b=[],c=this.fb(a)+"=",d=document.cookie.split(";"),e=0;e<d.length;e++){for(var g=d[e];" "===g.charAt(0);)g=g.substring(1);if(0===g.indexOf(c))try{var f=void 0;f=this.Qe?g.substring(c.length,g.length):JSON.parse(decodeURIComponent(g.substring(c.length,g.length)));b.push(f)}catch(h){return t.info("Storage retrieval failure: "+h.message),this.remove(a),null}}return 0<b.length?b[b.length-1]:null};lc.prototype.remove=function(a){mc(this,this.fb(a))}; function mc(a,b){b=b+"=;expires="+(new Date(0)).toGMTString();document.cookie=b;document.cookie=b+";path=/";a=b+";domain="+a.Oe;document.cookie=a;document.cookie=a+";path=/"}function nc(){this.yd={};this.Le=5242880;this.af=3} nc.prototype.store=function(a,b){var c={value:b};var d=[];b=[b];for(var e=0;b.length;){var g=b.pop();if("boolean"===typeof g)e+=4;else if("string"===typeof g)e+=2*g.length;else if("number"===typeof g)e+=8;else if("object"===typeof g&&-1===d.indexOf(g)){d.push(g);for(var f in g)b.push(g[f])}}d=e;if(d>this.Le)return t.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Le),!1;this.yd[a]=c;return!0};nc.prototype.ma=function(a){a=this.yd[a];return null==a?null:a.value}; nc.prototype.remove=function(a){this.yd[a]=null};function oc(a,b,c){this.Ba=[];b&&this.Ba.push(new lc(a));c&&this.Ba.push(new kc(a));this.Ba.push(new nc)}oc.prototype.store=function(a,b){for(var c=!0,d=0;d<this.Ba.length;d++)c=this.Ba[d].store(a,b)&&c;return c};oc.prototype.ma=function(a){for(var b=0;b<this.Ba.length;b++){var c=this.Ba[b].ma(a);if(null!=c)return c}return null};oc.prototype.remove=function(a){for(var b=0;b<this.Ba.length;b++)this.Ba[b].remove(a)};function pc(a,b,c){this.h=a;this.tb=b||!1;this.xe=c;this.ng=new B;this.wc=0;this.we=1}function qc(a,b){var c=S(a.h,Q.Kb);R(a.h,Q.Kb,b);var d=Oa.pa;(new Ga(d)).setItem(d.N.oe,a.we,b);c!==b&&a.Cb()}pc.prototype.Cb=function(){this.wc=0};function rc(){}rc.prototype.Xb=function(){};rc.prototype.Ub=function(){};rc.prototype.clearData=function(){};var sc={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};function tc(a){this.id=a}tc.prototype.Kc=function(){var a={};null!=this.browser&&(a.browser=this.browser);null!=this.browserVersion&&(a.browser_version=this.browserVersion);null!=this.os&&(a.os_version=this.os);null!=this.resolution&&(a.resolution=this.resolution);null!=this.language&&(a.locale=this.language);null!=this.timeZone&&(a.time_zone=this.timeZone);null!=this.userAgent&&(a.user_agent=this.userAgent);return a};function uc(a,b){this.h=a;null==b&&(b=Qa(sc));this.Ce=b} function vc(a){var b=ec(a.h,ac.$c);null==b&&(b=new Bb(Fa.Ua()),cc(a.h,ac.$c,b));b=new tc(b.ya);for(var c=0;c<a.Ce.length;c++){var d=a.Ce[c];switch(d){case "browser":b[d]=xb.browser;break;case "browserVersion":b[d]=xb.version;break;case "os":var e=xb.va?xb.va||null:(e=S(a.h,Q.oc))&&e.os_version?e.os_version:xb.xb();b[d]=e;break;case "resolution":b[d]=screen.width+"x"+screen.height;break;case "language":b[d]=xb.language;break;case "timeZone":a:{e=new Date;if("undefined"!==typeof Intl&&"function"=== typeof Intl.DateTimeFormat)try{if("function"===typeof Intl.DateTimeFormat().resolvedOptions){var g=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=g&&""!==g){var f=g;break a}}}catch(l){t.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+l.message)}f=e.getTimezoneOffset();e=parseInt(f/60);var h=parseInt(f%60),k="GMT";0!==f&&(k=k+(0>f?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2))); f=k}b[d]=f;break;case "userAgent":b[d]=xb.userAgent}}return b};function wc(a,b,c){a="The '"+a+"' "+b+" is deprecated.";c&&(a+=" Please use '"+c+"' instead.");t.warn(a)};function xc(a,b,c,d,e,g,f,h,k,l,n){this.ra=a;this.h=b;this.L=c;this.j=d;this.P=e;this.B=g;this.S=f;this.wa=h;this.Rb=k;this.Pb=l;this.fg=n;this.Qb=["wcd"]} function yc(a,b,c){var d=vc(a.ra),e=d.Kc(),g=S(a.h,Q.oc);Wa(g,e)||(b.device=e);b.api_key=a.S;b.time=Xa((new Date).valueOf(),!0);e=S(a.h,Q.pe)||[];g=S(a.h,Q.se)||"";0<a.Qb.length&&(!Wa(e,a.Qb)||g!==zc(a.P))&&(b.sdk_metadata=a.Qb);b.sdk_version=a.Rb;a.Pb&&(b.sdk_flavor=a.Pb);b.app_version=a.fg;b.device_id=d.id;c&&(a=a.j.T(),null!=a&&(b.user_id=a));return b} function Ac(a,b,c,d){var e=c.auth_error,g=c.error;if(!e&&!g)return!0;if(e){c=a.L;c.wc+=1;c={errorCode:e.error_code};d=r(d);for(g=d.next();!g.done;g=d.next())g=g.value,A(g)&&"X-Braze-Auth-Signature"===g[0]&&(c.signature=g[1]);b.respond_with&&b.respond_with.user_id?c.userId=b.respond_with.user_id:b.user_id&&(c.userId=b.user_id);(d=e.reason)?(c.reason=d,e="due to "+d):e="with error code "+e.error_code+".";a.L.tb||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'); t.error("SDK Authentication failed "+e);Bc(a,b.events,b.attributes);C(a.L.xe,c);return!1}if(g){e=g;switch(e){case "empty_response":return O(z.ed,{e:"Received successful response with empty body."}),t.info("Received successful response with empty body."),!1;case "invalid_json_response":return O(z.ed,{e:"Received successful response with invalid JSON: "+c.response}),t.info("Received successful response with invalid JSON"),!1;case "invalid_api_key":e='The API key "'+b.api_key+'" is invalid for the baseUrl '+ a.wa;break;case "blacklisted":e="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case "no_device_identifier":e="No device identifier. Please contact support@braze.com"}t.error("Backend error: "+e)}return!1}function Cc(a,b,c,d){return a&&0!==a.length||b&&0!==b.length||c||d?!0:!1} function Dc(a,b,c,d,e){function g(x){return x?x:""}var f=[],h=g(a.j.T()),k=Ec(a,b,c),l,n,m,q;if(0<d.length){var u=[];d=r(d);for(l=d.next();!l.done;l=d.next()){l=l.value.Kc();if(a.L.tb)if(h&&!l.user_id){q||(q={events:[]});q.events.push(l);continue}else if(g(l.user_id)!==h){n||(n=[]);n.push(l);continue}u.push(l)}0<u.length&&(k.events=u)}if(0<e.length){u=[];e=r(e);for(d=e.next();!d.done;d=e.next())d=d.value,a.L.tb&&g(d.user_id)!==h?(m||(m=[]),m.push(d)):u.push(d);0<u.length&&(k.attributes=u)}Bc(a,n, m);k=yc(a,k,!0);q&&(q=yc(a,q,!1),h={requestData:q,headers:Fc(a,q)},f.push(h));if(k&&!Cc(k.events,k.attributes,b,c))return q?f:null;a={requestData:k,headers:Fc(a,k)};f.push(a);return f}function Bc(a,b,c){if(b){var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e=new yb(e.user_id,e.name,e.time,e.session_id,e.data),e.time*=1E3,d.push(e);fc(a.h,d)}if(c)for(c=r(c),d=c.next();!d.done;d=c.next())hc(a.h,d.value)}function Gc(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");t.error(c+b)} function Ec(a,b,c){var d={};b&&(d.feed=!0);c&&(d.triggers=!0);(b=a.j.T())&&(d.user_id=b);d.config={config_time:Hc(a.B).Zb};return{respond_with:d}} function Fc(a,b,c){var d=[["X-Braze-Api-Key",a.S]],e=!1;null!=b.respond_with&&b.respond_with.triggers&&(d.push(["X-Braze-TriggersRequest","true"]),e=!0);null!=b.respond_with&&b.respond_with.feed&&(d.push(["X-Braze-FeedRequest","true"]),e=!0);c&&(d.push(["X-Braze-ContentCardsRequest","true"]),e=!0);e&&d.push(["X-Braze-DataRequest","true"]);a.L.tb&&(a=S(a.L.h,Q.Kb),null!=a&&d.push(["X-Braze-Auth-Signature",a]));return d} function Ic(a,b){var c=a.device;c&&c.os_version instanceof Promise?c.os_version.then(function(d){a.device.os_version=d;b()}):b()}xc.prototype.Cb=function(){this.L.Cb()};function Jc(a){var b,c=!1;try{if(window.XMLHttpRequest&&(b=new XMLHttpRequest)&&"undefined"!==typeof b.withCredentials||("undefined"!==typeof XDomainRequest?(b=new XDomainRequest,c=b.async=!0):t.error("This browser does not have any supported ajax options!")),null!=b){var d=function(){"function"===typeof a.error&&a.error(b.status);"function"===typeof a.Jc&&a.Jc(!1)};b.onload=function(){if(c)var h=!0;else{if(4!==b.readyState)return;h=200<=b.status&&300>b.status||304===b.status}if(h){if("function"=== typeof a.A){try{var k=JSON.parse(b.responseText)}catch(l){a.A({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText})}k&&a.A(k)}"function"===typeof a.Jc&&a.Jc(!0)}else d()};b.onerror=function(){d()};b.ontimeout=function(){d()};var e=JSON.stringify(a.data);if(c)b.onprogress=function(){},b.open("post",a.url);else{b.open("POST",a.url,!0);b.setRequestHeader("Content-type","application/json");b.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var g=a.headers|| [],f=0;f<g.length;f++)b.setRequestHeader(g[f][0],g[f][1])}b.send(e)}}catch(h){t.error("Network request error: "+h.message)}};function Kc(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a+1))+a};function Xb(a){this.A=!!a;this.na=[]}function Lc(a,b){a.A=a.A&&b.A;a.na.push.apply(a.na,ca(b.na))};function Mc(a,b,c,d,e,g,f,h,k,l){this.S=a;this.wa=b;this.pb=0;this.Ac=f.Y.af;this.Je=null;this.P=c;this.ra=d;this.j=e;this.B=g;this.h=f;this.L=k;this.M=l;this.dg=h;this.xd=new B;this.ag=50}function Nc(a,b){var c=a.P;var d=(new Date).valueOf(),e=Hc(c.B).Pd,g=S(c.h,Q.sc);null!=g&&null==e?c=!1:((e=null==g||d-g>1E3*e)&&R(c.h,Q.sc,d),c=e);if(0<b.length)for(a=a.j.T(),b=r(b),d=b.next();!d.done;d=b.next())d=d.value,e=!d.mb&&!a||d.mb===a,d.type===z.te&&e&&(c=!0);return c} function Oc(a,b,c,d,e,g,f,h){function k(u,x){var w=!1;Jc({url:""+a.wa+"/data/",data:u,headers:x,A:function(y){null!=u.respond_with&&u.respond_with.triggers&&(a.pb=Math.max(a.pb-1,0));if(Ac(a.M,u,y,x)){a.L.Cb();var K=a.B;if(null!=y&&null!=y.config){var I=y.config;if(I.time>Hc(K).Zb){I=new Pc(I.time,I.events_blacklist,I.attributes_blacklist,I.purchases_blacklist,I.messaging_session_timeout,I.vapid_public_key,I.content_cards);var V=!1;null!=I.Fa&&Hc(K).Fa!==I.Fa&&(V=!0);var aa=!1;null!=I.Vb.enabled&& (Hc(K).Vb.enabled||!1)!==I.Vb.enabled&&(aa=!0);K.Fc=I;R(K.h,Q.re,I.D());V&&C(K.Cd);aa&&C(K.Ae)}}if(null==u.respond_with||u.respond_with.user_id==a.j.T())null!=u.device&&R(a.h,Q.oc,u.device),null!=u.sdk_metadata&&(R(a.h,Q.pe,u.sdk_metadata),R(a.h,Q.se,zc(a.P))),a.dg(y),"function"===typeof e&&e()}else y.auth_error&&(w=!0)},error:function(){null!=u.respond_with&&u.respond_with.triggers&&(a.pb=Math.max(a.pb-1,0));Bc(a.M,u.events,u.attributes);"function"===typeof g&&g()},Jc:function(y){"function"===typeof f&& f(y);if(d&&!m){if(y&&!w)Qc(a);else{y=a.Je;if(null==y||y<1E3*a.Ac)y=1E3*a.Ac;Qc(a,Math.min(3E5,Kc(1E3*a.Ac,3*y)))}m=!0}}})}null==d&&(d=!0);d&&Rc(a);var l=gc(a.h),n=jc(a.h),m=!1,q=Nc(a,l);c=c||q;if(!h&&!q&&a.L.wc>=a.ag)t.info("Declining to flush data due to 50 consecutive authentication failures");else if(d&&!Cc(l,n,b,c))Qc(a),"function"===typeof f&&f(!0);else{l=Dc(a.M,b,c,l,n);c&&a.pb++;b=!1;if(l)for(h={},l=r(l),n=l.next();!n.done;h={Gb:h.Gb},n=l.next())h.Gb=n.value,Ic(h.Gb.requestData,function(u){return function(){return k(u.Gb.requestData, u.Gb.headers)}}(h)),b=!0;a.L.tb&&d&&!b?Qc(a):q&&(t.info("Invoking new session subscriptions"),C(a.xd))}}function Qc(a,b){a.ud||(null==b&&(b=1E3*a.Ac),Rc(a),a.Bc=setTimeout(function(){if(document.hidden){var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),Oc(a))};document.addEventListener("visibilitychange",c,!1)}else Oc(a)},b),a.Je=b)}function Rc(a){null!=a.Bc&&(clearTimeout(a.Bc),a.Bc=null)}p=Mc.prototype;p.Md=function(){this.ud=!1;Qc(this)}; p.ca=function(){this.xd.U();this.L.ng.U();Rc(this);this.ud=!0;Oc(this,null,null,!1);this.Bc=null}; function Sc(a){var b=zc(a.P),c=Tc(a.P);if(b=b!==c)dc(a.h,ac.$c),dc(a.h,ac.vc);Oc(a,null,!1,null,null,null);$b(a);b&&Promise.resolve(Uc).then(function(d){if(!a.ud){var e=d.default.jb();if(null!=e&&(Vc(e)||Wc(e))){var g=function(){e.hg?t.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()};d=Oa.pa;Ka(new Ga(d),d.N.md,function(f,h){h&&g()},function(){var f=S(a.h,Q.tc);(null==f||f)&&g()})}}})} p.Ub=function(a,b,c){var d=this.j.T();if(d!==a){var e=this.P,g=ec(e.h,ac.ab);null!=g&&(e.h.Cc.remove(ac.ab),g=Xc(e,(new Date).valueOf(),g),null==g||fc(e.h,[g]));null!=d&&Oc(this,null,!1,null,null,null);e=this.j;g=null==e.T();cc(e.h,ac.vc,new Bb(a));if(g){e=e.h;g=e.Y.ma(Q.Za);if(null!=g){var f=Q.Yc,h=g[f];null!=h&&(g[f]=void 0,e.Y.store(Q.Za,g),h.user_id=a,hc(e,h))}f=ec(e,ac.ab);g=null;null!=f&&(g=f.ya);f=gc(e);if(null!=f)for(h=0;h<f.length;h++){var k=f[h];null==k.mb&&k.sessionId==g&&(k.mb=a);null== k||fc(e,[k])}}c?qc(this.L,c):(c=this.L,T(c.h,Q.Kb),e=Oa.pa,La(new Ga(e),e.N.oe,c.we));for(c=0;c<b.length;c++)b[c].Ub(null==d);null!=d&&T(this.h,Q.Hb);T(this.h,Q.oc);Sc(this);t.info('Changed user to "'+a+'".')}else b="Doing nothing.",c&&S(this.L.h,Q.Kb)!==c&&(qc(this.L,c),b="Updated SDK authentication signature"),t.info("Current user is already "+a+". "+b)};p.ec=function(a){Rc(this);Tc(this.P);Oc(this,null,null,null,null,null,a,!0)}; function Yc(a,b){var c=U.G;Tc(c.P);t.info("Requesting explicit trigger refresh.");Oc(c,null,!0,null,a,b)}function Vb(a,b,c,d){if(Wb(a.B,c))return t.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),new Xb;(a=O(b,{key:c,value:d}))&&t.info("Logged custom attribute: "+c+" with value: "+d);return a} p.Vd=function(a,b,c,d,e,g){b={latitude:b,longitude:c};null!=d&&(b.altitude=d);null!=e&&(b.ll_accuracy=e);null!=g&&(b.alt_accuracy=g);(a=O(z.Tf,b,a))&&t.info("Set user last known location as "+JSON.stringify(b,null,2));return a};function Zc(a,b){var c=U.G,d=Tc(c.P);return new yb(c.j.T(),z.Wf,a,d,{cid:b})}function $b(a){var b=Oa.pa;(new Ga(b)).setItem(b.N.Hf,1,{baseUrl:a.wa,data:{api_key:a.S,device_id:vc(a.ra).id},userId:a.j.T(),sdkAuthEnabled:a.L.tb})};function Pc(a,b,c,d,e,g,f){this.Zb=a||0;this.Ze=b||[];this.Ue=c||[];this.kf=d||[];this.Pd=e;if(null==e||""===e)this.Pd=null;this.Fa=g||null;this.Vb=f||{}}Pc.prototype.D=function(){return{s:"4.1.0",l:this.Zb,e:this.Ze,a:this.Ue,p:this.kf,m:this.Pd,v:this.Fa,c:this.Vb}};function $c(a){this.h=a;this.Cd=new B;this.Ae=new B;this.Fc=null}function Hc(a){if(null==a.Fc){var b=S(a.h,Q.re);if(null!=b){var c=b.l;"4.1.0"!==b.s&&(c=0);b=new Pc(c,b.e,b.a,b.p,b.m,b.v,b.c)}else b=new Pc;a.Fc=b}return a.Fc}function ad(a,b){b=ab(a.Cd,b);a.Be&&a.Cd.ea(a.Be);a.Be=b}function bd(a,b){return ab(a.Ae,b)}function Wb(a,b){return-1!==Hc(a).Ue.indexOf(b)};function cd(a,b,c,d){this.h=a;this.j=b;this.B=c;this.Ob=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.Ob/1E3&&(t.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.Ob/1E3+"s instead."),d=this.Ob/1E3);this.pg=d}function Xc(a,b,c){return new yb(a.j.T(),z.Yf,b,c.ya,{d:Xa(b-c.Wb)})}function zc(a){a=ec(a.h,ac.ab);return null==a?null:a.ya} function Tc(a){var b=(new Date).valueOf(),c=b+1E3*a.pg,d=ec(a.h,ac.ab);if(null==d||(b-d.Wb<a.Ob?0:d.Id<b)){var e="Generating session start event with time "+b;if(null!=d){var g=d.$b;g-d.Wb<a.Ob&&(g=d.Wb+a.Gh);d=Xc(a,g,d);null==d||fc(a.h,[d]);e+=" (old session ended "+g+")"}e+=". Will expire "+c.valueOf();t.info(e);c=new Bb(Fa.Ua(),c);e=new yb(a.j.T(),z.te,b,c.ya);null==e||fc(a.h,[e]);cc(a.h,ac.ab,c);null==S(a.h,Q.sc)&&R(a.h,Q.sc,b);return c.ya}d.$b=b;d.Id=c;cc(a.h,ac.ab,d);return d.ya};function dd(a,b){var c=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(Q.od,!0),localStorage.getItem(Q.od)&&(localStorage.removeItem(Q.od),c=!0)}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;else throw e;}}catch(e){t.info("Local Storage not supported!")}var d=navigator.cookieEnabled||"cookie"in document&&(0<document.cookie.length||-1<(document.cookie="test").indexOf.call(document.cookie,"test"));b=new oc(a,d&&!b, c);return new bc(b,c?new kc(a):new nc)};function ed(a){this.triggerId=a};var fd=null;function gd(a,b,c,d){if(null==a)return!1;b=b||!1;c=c||!1;a=a.getBoundingClientRect();return null==a?!1:(0<=a.top&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!b)&&(0<=a.left||!d)&&(0<=a.bottom&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!c)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!d)} function hd(){if(null==fd){fd=!1;try{var a=Object.defineProperty({},"passive",{get:function(){fd=!0}});window.addEventListener("testPassive",null,a);window.removeEventListener("testPassive",null,a)}catch(b){}}return fd}function id(a,b,c){a.addEventListener(b,c,hd()?{passive:!0}:!1)}function jd(a){if(a.onclick){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.onclick.apply(a,[b])}} function kd(a,b,c){var d=null,e=null;id(a,"touchstart",function(g){d=g.touches[0].clientX;e=g.touches[0].clientY});id(a,"touchmove",function(g){if(null!=d&&null!=e){var f=d-g.touches[0].clientX,h=e-g.touches[0].clientY;Math.abs(f)>Math.abs(h)&&25<=Math.abs(f)?(0<f&&"left"===b?c(g):0>f&&"right"===b&&c(g),e=d=null):25<=Math.abs(h)&&(0<h&&"up"===b&&a.scrollTop===a.scrollHeight-a.offsetHeight?c(g):0>h&&"down"===b&&0===a.scrollTop&&c(g),e=d=null)}})} function ld(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox",a);d.setAttribute("xmlns","http://www.w3.org/2000/svg");a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",b);null!=c&&a.setAttribute("fill",c);d.appendChild(a);return d};function W(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa,za,L,M,N,F,Aa,ia,sb){this.message=a;this.messageAlignment=b||md.CENTER;this.duration=l||5E3;this.slideFrom=c||nd.BOTTOM;this.extras=d||{};this.triggerId=e;this.clickAction=g||od.NONE;this.uri=f;this.openTarget=h||pd.NONE;this.dismissType=k||qd.AUTO_DISMISS;this.icon=n;this.imageUrl=m;this.imageStyle=q||rd.TOP;this.iconColor=u||sd.rd;this.iconBackgroundColor=x||sd.Zd;this.backgroundColor=w||sd.rd;this.textColor=y||sd.ce;this.closeButtonColor=K|| sd.If;this.animateIn=I;null==this.animateIn&&(this.animateIn=!0);this.animateOut=V;null==this.animateOut&&(this.animateOut=!0);this.header=aa;this.headerAlignment=za||md.CENTER;this.headerTextColor=L||sd.ce;this.frameColor=M||sd.Xf;this.buttons=N||[];this.cropType=F||td.FIT_CENTER;this.orientation=Aa;this.htmlId=ia;this.css=sb;this.Ee=this.cb=this.Fe=!1;this.ha=new B;this.xc=new B}p=W.prototype;p.ic=function(a){return ab(this.ha,a)};p.Wd=function(a){return ab(this.xc,a)}; p.ea=function(a){this.ha.ea(a);this.xc.ea(a)};p.U=function(){this.ha.U();this.xc.U()};p.We=function(){ud(this,this.Dc)};p.Va=function(){return!0};p.qf=function(){return this.Va()};function vd(a){return null!=a.htmlId&&4<a.htmlId.length}function wd(a){return vd(a)&&null!=a.css&&0<a.css.length}function xd(a){if(vd(a)&&wd(a))return a.htmlId+"-css"}p.Sd=function(){return this.Fe?!1:this.Fe=!0};p.Ab=function(){return this.cb?!1:(this.cb=!0,C(this.ha),!0)}; p.Rd=function(){return this.Ee?!1:(this.Ee=!0,C(this.xc),!0)};function yd(a,b){if(b&&b.parentNode){var c=b.closest(".ab-iam-root");null==c&&(c=b);a.Va()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(zd)&&b.remove(zd),document.body.removeEventListener("touchmove",Ad));c.className=c.className.replace(Bd,W.Fh)}return a.animateOut} function ud(a,b,c){if(null!=b){a.Dc=null;var d=-1===b.className.indexOf("ab-in-app-message")?b.getElementsByClassName("ab-in-app-message")[0]:b;var e=!1;d&&(e=yd(a,d));var g=document.body;if(null!=g)var f=g.scrollTop;d=function(){if(b&&b.parentNode){var h=b.closest(".ab-iam-root");null==h&&(h=b);h.parentNode&&h.parentNode.removeChild(h)}null!=xd(a)&&(h=document.getElementById(xd(a)))&&h.parentNode&&h.parentNode.removeChild(h);null!=g&&"Safari"===xb.browser&&(g.scrollTop=f);c?c():a.Rd()};e?setTimeout(d, Cd):d();a.Ne&&a.Ne.focus()}}p.Re=function(){return document.createTextNode(this.message)};function Dd(a,b){var c="";a.message||a.header||!a.Va()||(c="Modal Image");b.setAttribute("alt",c)}function Ad(a){a.targetTouches&&1<a.targetTouches.length||a.target.classList&&a.target.classList.contains("ab-message-text")&&a.target.scrollHeight>a.target.clientHeight||document.querySelector("."+zd)&&a.preventDefault()} p.Sc=function(a){this.Va()&&null!=a.parentNode&&this.orientation!==Ed.LANDSCAPE&&(null!=a.parentNode.classList&&a.parentNode.classList.add(zd),document.body.addEventListener("touchmove",Ad,hd()?{passive:!1}:!1));a.className+=" "+Bd}; function Fd(a){if(27===a.keyCode&&!U.o[Gd]&&0<document.querySelectorAll(".ab-modal-interactions").length){a=document.getElementsByClassName("ab-html-message");for(var b=!1,c=0;c<a.length;c++){var d=a[c].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=d&&(jd(d),b=!0)}b||(a=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0],null!=a&&jd(a))}} function Hd(a){a.ig||U.o[Gd]||(document.addEventListener("keydown",Fd,!1),ab(U.td,function(){document.removeEventListener("keydown",Fd)}),a.ig=!0)} var sd={ce:4281545523,rd:4294967295,Zd:4278219733,Jf:4293914607,Kf:4283782485,Xf:3224580915,If:4288387995},Id={ee:"hd",tf:"ias",Vf:"of",Lf:"do",Nb:"umt",Lb:"tf",fe:"te"},nd={TOP:"TOP",BOTTOM:"BOTTOM"},od={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},qd={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},pd={NONE:"NONE",BLANK:"BLANK"},rd={TOP:"TOP",GRAPHIC:"GRAPHIC"},Ed={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},md={START:"START",CENTER:"CENTER",END:"END"},td={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"}, Cd=500,Bd="ab-show",zd="ab-pause-scrolling";function Jd(a,b,c,d,e,g,f,h,k,l,n){d=d||qd.MANUAL;null!=a&&0<a.length&&0<a.indexOf('"ab-in-app-message ab-html-message ab-email-capture"')&&0<a.indexOf('"ab-in-app-message ab-show ab-modal ab-effect-modal"')&&(f=g=!0);W.call(this,a,null,null,b,c,null,null,null,d,e,null,null,null,null,null,null,null,null,g,f,null,null,null,h,void 0,void 0,void 0,k,l);this.messageFields=n}pa(Jd,W);Jd.prototype.qf=function(){return!1}; Jd.prototype.Ab=function(a){if("WEB_HTML"===this.lf){if(this.cb)return!1;this.cb=!0}C(this.ha,a);return!0};function Kd(a,b,c,d,e,g,f){this.text=a||"";this.backgroundColor=b||sd.Zd;this.textColor=c||sd.rd;this.borderColor=d||this.backgroundColor;this.clickAction=e||od.NONE;this.uri=g;null==f&&(f=Ld);this.id=f;this.cb=!1;this.ha=new B}Kd.prototype.ic=function(a){return ab(this.ha,a)};Kd.prototype.ea=function(a){this.ha.ea(a)};Kd.prototype.U=function(){this.ha.U()};Kd.prototype.Ab=function(){return this.cb?!1:(this.cb=!0,C(this.ha),!0)};var Ld=-1;function Md(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa,za,L,M,N,F,Aa,ia){h=h||qd.MANUAL;F=F||Ed.PORTRAIT;N=N||td.CENTER_CROP;W.call(this,a,b,null,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa,za,L,M,N,F,Aa,ia)}pa(Md,W);ha.Object.defineProperties(Md.prototype,{Hd:{configurable:!0,enumerable:!0,get:function(){return md.CENTER}}});function Nd(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa,za,L,M,N,F,Aa){h=h||qd.MANUAL;N=N||td.FIT_CENTER;W.call(this,a,b,null,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa,za,L,M,N,void 0,F,Aa)}pa(Nd,W);ha.Object.defineProperties(Nd.prototype,{Hd:{configurable:!0,enumerable:!0,get:function(){return md.CENTER}}});function Od(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,aa){w=w||sd.Kf;x=x||sd.Jf;b=b||md.START;W.call(this,a,b,c,d,e,g,f,h,k,l,n,m,null,q,u,x,w,y,K,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V,aa)}pa(Od,W);Od.prototype.Va=function(){return!1};Od.prototype.Re=function(){var a=document.createElement("span");a.appendChild(document.createTextNode(this.message));return a}; Od.prototype.Sc=function(a){var b=a.getElementsByClassName("ab-in-app-message")[0];gd(b,!0,!0)||(this.slideFrom===nd.TOP?b.style.top="0px":b.style.bottom="0px");W.prototype.Sc.call(this,a)};ha.Object.defineProperties(Od.prototype,{Hd:{configurable:!0,enumerable:!0,get:function(){return md.START}}});function Pd(a){if(a.is_control)return new ed(a.trigger_id);var b=a.type;null!=b&&(b=b.toUpperCase());var c=a.message,d=a.text_align_message,e=a.slide_from,g=a.extras,f=a.trigger_id,h=a.click_action,k=a.uri,l=a.open_target,n=a.message_close,m=a.duration,q=a.icon,u=a.image_url,x=a.image_style,w=a.icon_color,y=a.icon_bg_color,K=a.bg_color,I=a.text_color,V=a.close_btn_color,aa=a.header,za=a.text_align_header,L=a.header_text_color,M=a.frame_color,N=[],F=a.btns;null==F&&(F=[]);for(var Aa=0;Aa<F.length;Aa++){var ia= F[Aa];N.push(new Kd(ia.text,ia.bg_color,ia.text_color,ia.border_color,ia.click_action,ia.uri,ia.id))}F=a.crop_type;Aa=a.orientation;ia=a.animate_in;var sb=a.animate_out,db=a.html_id,eb=a.css;if(null==db||""===db||null==eb||""===eb)eb=db=void 0;if("MODAL"===b||"MODAL_STYLED"===b)c=new Nd(c,d,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,ia,sb,aa,za,L,M,N,F,db,eb);else if("FULL"===b)c=new Md(c,d,g,f,h,k,l,n,m,q,u,x,w,y,K,I,V,ia,sb,aa,za,L,M,N,F,Aa,db,eb);else if("SLIDEUP"===b)c=new Od(c,d,e,g,f,h,k,l,n,m,q,u,w,y,K, I,V,ia,sb,db,eb);else if("WEB_HTML"===b||"HTML"===b)c=new Jd(c,g,f,n,m,ia,sb,M,db,eb,a.message_fields),c.Zg=a.trusted||!1;else{t.error("Ignoring message with unknown type "+b);return}c.lf=b;return c};function Qd(a){this.ib=a}Qd.prototype.ta=function(a){return null==this.ib||this.ib===a[0]};Qd.prototype.D=function(){return this.ib};function Rd(a,b,c,d){this.jf=a;this.Tc=b;this.vb=c;this.O=d;this.Tc===Sd&&this.vb!==Td&&this.vb!==Ud&&this.vb!==Vd&&this.vb!==Wd&&(this.O=Ya(this.O))} Rd.prototype.ta=function(a){var b=null;null!=a&&(b=a[this.jf]);switch(this.vb){case Xd:return null!=b&&b.valueOf()===this.O.valueOf();case Yd:return null==b||b.valueOf()!==this.O.valueOf();case Zd:return typeof b===typeof this.O&&b>this.O;case Td:return this.Tc===Sd?null!=b&&Sa(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.O:typeof b===typeof this.O&&b>=this.O;case $d:return typeof b===typeof this.O&&b<this.O;case Ud:return this.Tc===Sd?null!=b&&Sa(b)&&((new Date).valueOf()-b.valueOf())/1E3>=this.O: typeof b===typeof this.O&&b<=this.O;case ae:return null!=b&&"string"===typeof b&&typeof b===typeof this.O&&null!=b.match(this.O);case be:return null!=b;case ce:return null==b;case Vd:return null!=b&&Sa(b)&&(b.valueOf()-(new Date).valueOf())/1E3<this.O;case Wd:return null!=b&&Sa(b)&&(b.valueOf()-(new Date).valueOf())/1E3>this.O;case de:return null==b||typeof b!==typeof this.O||"string"!==typeof b||null==b.match(this.O)}return!1}; Rd.prototype.D=function(){var a=this.O;Sa(this.O)&&(a=Xa(a.valueOf()));return{k:this.jf,t:this.Tc,c:this.vb,v:a}};var Xd=1,Yd=2,Zd=3,Td=4,$d=5,Ud=6,ae=10,be=11,ce=12,Vd=15,Wd=16,de=17,Sd="date";function ee(a){this.filters=a}ee.prototype.ta=function(a){for(var b=!0,c=0;c<this.filters.length;c++){for(var d=this.filters[c],e=!1,g=0;g<d.length;g++)if(d[g].ta(a)){e=!0;break}if(!e){b=!1;break}}return b};function fe(a){if(null==a||!A(a))return null;for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],g=0;g<e.length;g++){var f=e[g];d.push(new Rd(f.property_key,f.property_type,f.comparator,f.property_value))}b.push(d)}return new ee(b)} ee.prototype.D=function(){for(var a=[],b=0;b<this.filters.length;b++){for(var c=this.filters[b],d=[],e=0;e<c.length;e++)d.push(c[e].D());a.push(d)}return a};function ge(a){for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],g=0;g<e.length;g++){var f=e[g];d.push(new Rd(f.k,f.t,f.c,f.v))}b.push(d)}return new ee(b)};function he(a,b){this.ib=a;this.lb=b}he.prototype.ta=function(a){if(null==this.ib||null==this.lb)return!1;var b=a[1];return a[0]===this.ib&&this.lb.ta(b)};he.prototype.D=function(){return{e:this.ib,pf:this.lb.D()}};function ie(a,b){this.gb=a;this.Tb=b}ie.prototype.ta=function(a){if(null==this.gb)return!1;var b=je(a[0],this.gb);if(!b)return!1;var c=null==this.Tb||0===this.Tb.length;if(null!=this.Tb)for(var d=0;d<this.Tb.length;d++)if(this.Tb[d]===a[1]){c=!0;break}return b&&c};ie.prototype.D=function(){return this.gb};function ke(a){this.kb=a}ke.prototype.ta=function(a){return null==this.kb||a[0]===this.kb};ke.prototype.D=function(){return this.kb};function le(a,b){this.kb=a;this.lb=b}le.prototype.ta=function(a){if(null==this.kb||null==this.lb)return!1;var b=a[1];return a[0]===this.kb&&this.lb.ta(b)};le.prototype.D=function(){return{id:this.kb,pf:this.lb.D()}};function me(a){this.gb=a}me.prototype.ta=function(a){return null==this.gb?!0:je(a[0],this.gb)};me.prototype.D=function(){return this.gb};var X={OPEN:"open",kd:"purchase",le:"push_click",Zc:"custom_event",qc:"iam_click",ga:"test"};function ne(a,b){this.type=a;this.data=b}function oe(a,b,c){return pe[a.type]===b&&(null==a.data||a.data.ta(c))}function je(a,b){var c=null;try{c=window.atob(a)}catch(d){return t.info("Failed to unencode analytics id "+a+": "+d.message),!1}return b===c.split("_")[0]}ne.prototype.D=function(){return{t:this.type,d:this.data?this.data.D():null}};var pe={};pe.open=X.OPEN;pe.purchase=X.kd;pe.purchase_property=X.kd;pe.push_click=X.le;pe.custom_event=X.Zc;pe.custom_event_property=X.Zc;pe.iam_click=X.qc; pe.test=X.ga;function qe(a,b,c,d,e,g,f,h,k,l,n,m){this.id=a;this.wb=b||[];void 0===c&&(c=null);this.startTime=c;void 0===d&&(d=null);this.endTime=d;this.priority=e||0;this.type=g;this.hb=h||0;null==l&&(l=1E3*(this.hb+30));this.Wa=l;this.data=f;null==k&&(k=re);this.cc=k;this.ff=n;this.Pa=m||null} function se(a,b){var c=(new Date).valueOf()-b;(b=null==b||isNaN(c)||null==a.Wa||c<a.Wa)||t.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Wa+"ms.");return!b}qe.prototype.D=function(){for(var a=[],b=0;b<this.wb.length;b++)a.push(this.wb[b].D());return{i:this.id,c:a,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.hb,r:this.cc,tm:this.Wa,ss:this.ff,ld:this.Pa}};var re=-1,te={bd:"inapp",ve:"templated_iam"};function ue(){var a=U.P,b=U.h,c=U.j;this.M=U.M;this.P=a;this.h=b;this.j=c;this.la=new B;ve(U,this.la);this.cg=1E3;this.bg=6E4}function we(a){var b=xe.Z();return ab(b.la,a)}function ye(a,b){Ra(Id,b,b+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")&&O(z.Of,{trigger_ids:[a],error_code:b})} function ze(a,b,c,d,e){a=new Xb;if(b instanceof ed)b={trigger_ids:[b.triggerId]};else{if(c===z.dd||b instanceof Jd&&c===z.cd){if(!b.Ab(e))return t.info("This in-app message has already received a click. Ignoring analytics event."),a}else if(c===z.ge&&!b.Sd())return t.info("This in-app message has already received an impression. Ignoring analytics event."),a;b=Ae(b)}if(null==b)return a;null!=d&&(b.bid=d);return O(c,b)} function Be(a){var b,c,d,e,g,f;return Ba(function(h){switch(h.C){case 1:if(!(a instanceof W))return h.return();b=function(k){var l;return Ba(function(n){l=Eb(k);if(Hb(l))return n.return(Db("unknownBrazeAction","In-App Message"));if(Jb(l))return n.return(Promise.resolve(Uc).then(function(m){m=m.default.jb();if(null!=m&&(Wc(m)||!Ce(m)||Vc(m)))return Db("noPushPrompt","In-App Message")}));n.C=0})};c=a.buttons;e=r(c);g=e.next();case 2:if(g.done){h.C=4;break}f=g.value;if("URI"!==f.clickAction||!Fb.test(f.uri)){h.C= 3;break}return sa(h,b(f.uri),6);case 6:if(d=h.ua)return h.return(d);case 3:g=e.next();h.C=2;break;case 4:return"URI"===a.clickAction&&Fb.test(a.uri)?h.return(b(a.uri)):h.return()}})} function De(a,b,c,d,e){var g=Ec(a.M,!1,!1);g=yc(a.M,g);g.template={trigger_id:b.Xa,trigger_event_type:c};null!=d&&(g.template.data=d.Kc());var f=Fc(a.M,g);Ic(g,function(){Jc({url:a.M.wa+"/template/",data:g,headers:f,A:function(h){var k,l,n;return Ba(function(m){if(1==m.C){if(!Ac(a.M,g,h,f))return ye(b.Xa,Id.Lb),"function"===typeof b.Xc&&b.Xc(),m.return();a.M.Cb();if(null==h||null==h.templated_message)return ye(b.Xa,Id.Lb),m.return();k=h.templated_message;if(k.type!==te.bd)return ye(b.Xa,Id.Nb),m.return(); l=Pd(k.data);return null==l?(ye(b.Xa,Id.Nb),m.return()):sa(m,Be(l),2)}if(n=m.ua)return t.error(n),"function"===typeof b.Xc&&b.Xc(),m.return();"function"===typeof b.rf?b.rf(l):ye(b.Xa,Id.Lb);m.C=0})},error:function(h){var k="getting user personalization for message "+b.Xa;if((new Date).valueOf()-b.Pc>b.Wa)ye(b.Xa,Id.Lb);else{var l=Math.min(b.Wa,a.bg),n=a.cg;null==e&&(e=n);var m=Math.min(l,Kc(n,3*e));k+=". Retrying in "+m+" ms";setTimeout(function(){De(a,b,c,d,m)},m)}Gc(h,k)}})})} function Ae(a){if(null==a.triggerId)return t.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b};var xe={Rc:null,J:!1,Z:function(){xe.sa();xe.Rc||(xe.Rc=new ue);return xe.Rc},sa:function(){xe.J||(Ee(xe),xe.J=!0)},ca:function(){xe.Rc=null;xe.J=!1}};function Fe(a,b,c){a=a||document.querySelector("head");b="ab-"+b+"-css-definitions-"+"4.1.0".replace(/\./g,"-");var d=a.ownerDocument||document;null==d.getElementById(b)&&(d=d.createElement("style"),d.innerHTML=c,d.id=b,c=U.o[Ge],null!=c&&d.setAttribute("nonce",c),a.appendChild(d))};function He(){if(!U.o[Ie]&&null===document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')){var a=document.createElement("link");a.setAttribute("rel","stylesheet");a.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css");document.getElementsByTagName("head")[0].appendChild(a)}};function Je(){Fe(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}.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%}}")};function Ke(a){Fe(a,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-centering-div,.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-centering-div:focus,.ab-iam-root.v3:focus{outline:0}.ab-centering-div.ab-effect-fullscreen,.ab-centering-div.ab-effect-html,.ab-centering-div.ab-effect-modal,.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-centering-div.ab-effect-fullscreen.ab-show,.ab-centering-div.ab-effect-html.ab-show,.ab-centering-div.ab-effect-modal.ab-show,.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-centering-div.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-centering-div.ab-effect-html.ab-show.ab-animate-in,.ab-centering-div.ab-effect-modal.ab-show.ab-animate-in,.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-centering-div.ab-effect-fullscreen.ab-hide,.ab-centering-div.ab-effect-html.ab-hide,.ab-centering-div.ab-effect-modal.ab-hide,.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-centering-div.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-html.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-modal.ab-hide.ab-animate-out,.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-centering-div.ab-effect-slide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down,.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-centering-div.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message,.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-centering-div .ab-ios-scroll-wrapper,.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-centering-div .ab-in-app-message,.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-centering-div .ab-in-app-message.ab-no-shadow,.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-centering-div .ab-in-app-message :focus,.ab-centering-div .ab-in-app-message:focus,.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-centering-div .ab-in-app-message.ab-clickable,.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-centering-div .ab-in-app-message.ab-background,.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-centering-div .ab-in-app-message .ab-close-button,.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-centering-div .ab-in-app-message .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-text,.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-centering-div .ab-in-app-message .ab-message-text.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-text.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-text.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb,.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-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-header,.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-centering-div .ab-in-app-message .ab-message-header.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-header.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-header.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron),.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup .ab-close-button,.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-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area,.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-centering-div .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img,.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-centering-div .ab-in-app-message.ab-fullscreen .ab-icon,.ab-centering-div .ab-in-app-message.ab-modal .ab-icon,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic,.ab-centering-div .ab-in-app-message.ab-modal.graphic,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-centering-div .ab-in-app-message.ab-modal.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{max-height:720px;max-width:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic),.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button,.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-centering-div .ab-in-app-message.ab-html-message,.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-centering-div .ab-in-app-message .ab-message-buttons,.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-centering-div .ab-in-app-message .ab-message-button,.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-centering-div .ab-in-app-message .ab-message-button:first-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-centering-div .ab-in-app-message .ab-message-button:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-button:active:after,.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-centering-div .ab-in-app-message .ab-message-button:focus:after,.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-centering-div .ab-in-app-message .ab-message-button a,.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-centering-div .ab-in-app-message img,.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-centering-div .ab-in-app-message .ab-icon,.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-centering-div .ab-in-app-message .ab-icon .fa,.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-centering-div .ab-start-hidden,.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-centering-div .ab-centered,.ab-centering-div.ab-centering-div .ab-modal,.ab-iam-root.v3 .ab-centered,.ab-iam-root.v3.ab-centering-div .ab-modal{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-email-capture,.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-email-capture .ab-page-blocker,.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)}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-capture-input{margin-bottom:30px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text{max-height:541px;margin-bottom:160px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text.with-explanatory-link{max-height:513px;margin-bottom:188px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text{max-height:385.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text.with-explanatory-link{max-height:357.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-validation-error{margin-top:62px}.ab-email-capture .ab-in-app-message.ab-modal .ab-explanatory-link{display:block}.ab-email-capture .ab-in-app-message.ab-modal .ab-background,.ab-email-capture .ab-in-app-message.ab-modal .ab-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.ab-email-capture .ab-in-app-message.ab-modal .ab-close-button{line-height:normal}.ab-email-capture .ab-in-app-message.ab-modal .ab-html-close-button{right:3px;top:-1px;font-size:34px;padding-top:0}@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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon,.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 Le(a){var b="";a.animateIn&&(b+=" ab-animate-in");a.animateOut&&(b+=" ab-animate-out");a instanceof Md?b+=" ab-effect-fullscreen":a instanceof Jd?b+=" ab-effect-html":a instanceof Nd?b+=" ab-effect-modal":a instanceof Od&&(b+=" ab-effect-slide");return b};function Me(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");id(d,"touchstart",function(){});d.className="ab-close-button";a=ld("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",b);d.appendChild(a);d.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)c(),e.stopPropagation()});d.onclick=function(e){c();e.stopPropagation()};return d};function Ne(a){a=parseInt(a);return!isNaN(a)&&0===(a&4278190080)>>>24}function Oe(a){a=parseInt(a);if(isNaN(a))return"";var b=parseFloat(b);isNaN(b)&&(b=1);a>>>=0;var c=a&255,d=(a&65280)>>>8,e=(a&16711680)>>>16;return(xb.Lc===pb.pc?8<xb.version:1)?"rgba("+[e,d,c,((a&4278190080)>>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function Pe(a){if(!Y(U))return!1;if(!(a instanceof W))return t.error("inAppMessage must be an InAppMessage object"),!1;var b=ze(xe.Z(),a,z.dd);if(b)for(var c=0;c<b.na.length;c++)Qe.$().Da(X.qc,[a.triggerId],b.na[c]);return b.A};function Re(a,b,c){b||null!=c&&c.metaKey?window.open(a):window.location=a}var Se={openUri:Re,Cg:function(){return 600>=screen.width},xg:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?1:0;if("screen"in window){var a=window.screen.orientation||screen.Ih||screen.Kh;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return 1}return 0},cf:function(){return window.location.href}};function Te(){if(Y(U))return Ue()};function Ve(a,b,c){if(Y(U))if(Fb.test(a)){if(a=Eb(a)){var d=function(e){var g,f,h,k,l,n,m;return Ba(function(q){switch(q.C){case 1:if(!Kb(e))return t.error("Decoded Braze Action json is invalid: "+JSON.stringify(e,null,2)),q.return();g=e.type;if(g===H.Nc){f=r(e.steps);for(h=f.next();!h.done;h=f.next())k=h.value,d(k);q.C=0;break}l=e.args;switch(g){case H.ac:q.C=3;return;case H.Bb:q.C=4;return;case H.Wc:case H.Eb:case H.Db:case H.Ic:case H.Vc:case H.Hc:case H.Uc:m=Te();m[g].apply(m,Array.prototype.slice.call(l)); break;case H.gf:case H.hf:Se.Lh.apply(null,Array.prototype.slice.call(l));break;default:t.info("Ignoring unknown Braze Action: "+g)}q.C=0;break;case 3:return sa(q,Promise.resolve(We),6);case 6:n=q.ua;n.ac.apply(null,Array.prototype.slice.call(l));q.C=0;break;case 4:return sa(q,Promise.resolve(Xe),7);case 7:n=q.ua,n.Bb(),q.C=0}})};d(a)}}else Se.openUri(a,c,b)};function Ye(a,b,c){if(!Y(U))return!1;if(!(a instanceof Jd))return t.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;var d=z.dd;null!=b&&(d=z.cd);c=ze(xe.Z(),a,d,b,c);if(c.A)for(d=0;d<c.na.length;d++)Qe.$().Da(X.qc,[a.triggerId,b],c.na[d]);return c.A};function Ze(a){null==a&&(a="");var b=a.split("?").slice(1).join("?");a={};if(null!=b){b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].split("=");""!==d[0]&&(a[d[0]]=d[1])}}return a}function $e(a){return a&&(a=a.toString().toLowerCase(),0===a.lastIndexOf("javascript:",0)||0===a.lastIndexOf("data:",0))?!0:!1};function af(a,b,c,d,e,g){function f(l,n,m){return(m=l.match(new RegExp("([\\w]+)\\s*=\\s*document.createElement\\(['\"]"+m+"['\"]\\)")))?l.slice(0,m.index+m[0].length)+";"+(m[1]+'.setAttribute("nonce", "'+n+'");')+l.slice(m.index+m[0].length):null}function h(l){var n=l.getAttribute("href"),m=l.onclick;return function(q){if(null==m||"function"!==typeof m||!1!==m()){var u=Ze(n).abButtonId;if(null==u||""===u)u=l.getAttribute("id");if(null!=n&&""!==n&&0!==n.indexOf("#")){var x="blank"===(l.getAttribute("target")|| "").toLowerCase().replace("_",""),w=d||a.openTarget===pd.BLANK||x;x=function(){Ye(a,u,n);Se.openUri(n,w,q)};w?x():ud(a,k,x)}else Ye(a,u,n);q.stopPropagation();return!1}}}var k=document.createElement("iframe");k.setAttribute("title","Modal Message");e&&(k.style.zIndex=e+1);k.onload=function(){function l(L){return function(){za[L].apply(null,Array.prototype.slice.call(arguments))}}function n(L){return function(){var M=arguments;ud(a,k,function(){aa[L].apply(null,Array.prototype.slice.call(M))})}}function m(L){return function(){var M= Te();M[L].apply(M,Array.prototype.slice.call(arguments))}}function q(L){return function(){I[L].apply(null,Array.prototype.slice.call(arguments))}}function u(){return function(){var L=arguments;Promise.resolve(Xe).then(function(M){M.Bb.apply(null,Array.prototype.slice.call(L))})}}var x=null;if(null!=g){x=document.createElement("html");x.innerHTML=a.message;for(var w=x.getElementsByTagName("style"),y=0;y<w.length;y++)w[y].setAttribute("nonce",g);w=x.getElementsByTagName("script");for(y=0;y<w.length;y++){w[y].setAttribute("nonce", g);w[y].innerHTML=w[y].innerHTML.replace(/<style>/g,"<style nonce='"+g+"'>");var K=f(w[y].innerHTML,g,"script");K&&(w[y].innerHTML=K);if(K=f(w[y].innerHTML,g,"style"))w[y].innerHTML=K}}k.contentWindow.focus();k.contentWindow.document.write(x?x.innerHTML:a.message);x=k.contentWindow.document.getElementsByTagName("head")[0];null!=x&&(Ke(x),wd(a)&&(w=document.createElement("style"),w.innerHTML=a.css,w.id=xd(a),null!=g&&w.setAttribute("nonce",g),x.appendChild(w)),w=k.contentWindow.document.createElement("base"), w.setAttribute("target","_parent"),x.appendChild(w));x=k.contentWindow.document.getElementsByTagName("title");0<x.length&&k.setAttribute("title",x[0].textContent);x={closeMessage:function(){ud(a,k)},logClick:function(){var L=[a].concat(ca(arguments));Ye.apply(a,Array.prototype.slice.call(L))},display:{},web:{}};var I={requestImmediateDataFlush:function(){var L=arguments,M,N;return Ba(function(F){if(1==F.C)return M=L,sa(F,Promise.resolve(bf),2);N=F.ua;N.ec.apply(null,Array.prototype.slice.call(M)); F.C=0})},logCustomEvent:function(){var L=arguments,M,N;return Ba(function(F){if(1==F.C)return M=L,sa(F,Promise.resolve(We),2);N=F.ua;N.ac.apply(null,Array.prototype.slice.call(M));F.C=0})},logPurchase:function(){var L=arguments,M,N;return Ba(function(F){if(1==F.C)return M=L,sa(F,Promise.resolve(cf),2);N=F.ua;N.Dg.apply(null,Array.prototype.slice.call(M));F.C=0})},unregisterPush:function(){var L=arguments,M,N;return Ba(function(F){if(1==F.C)return M=L,sa(F,Promise.resolve(df),2);N=F.ua;N.$g.apply(null, Array.prototype.slice.call(M));F.C=0})},requestPushPermission:u()};y=r(Va(I));for(w=y.next();!w.done;w=y.next())w=w.value,x[w]=q(w);w="setFirstName setLastName setEmail setGender setDateOfBirth setCountry setHomeCity setEmailNotificationSubscriptionType setLanguage addAlias setPushNotificationSubscriptionType setPhoneNumber setCustomUserAttribute addToCustomAttributeArray removeFromCustomAttributeArray incrementCustomUserAttribute setCustomLocationAttribute addToSubscriptionGroup removeFromSubscriptionGroup".split(" "); var V={};for(y=0;y<w.length;y++)V[w[y]]=m(w[y]);x.getUser=function(){return V};var aa={showFeed:b};y=r(Va(aa));for(w=y.next();!w.done;w=y.next())w=w.value,x.display[w]=n(w);var za={registerAppboyPushMessages:u()};y=r(Va(za));for(w=y.next();!w.done;w=y.next())w=w.value,x.web[w]=l(w);k.contentWindow.appboyBridge=x;k.contentWindow.brazeBridge=x;if("HTML"!==a.lf){w=k.contentWindow.document.getElementsByTagName("a");for(y=0;y<w.length;y++)w[y].onclick=h(w[y]);w=k.contentWindow.document.getElementsByTagName("button"); for(y=0;y<w.length;y++)w[y].onclick=h(w[y])}w=k.contentWindow.document.body;null!=w&&(vd(a)&&(w.id=a.htmlId),y=document.createElement("hidden"),y.onclick=x.closeMessage,y.className="ab-programmatic-close-button",w.appendChild(y));k.contentWindow.dispatchEvent(new CustomEvent("ab.BridgeReady"));-1!==k.className.indexOf("ab-start-hidden")&&(k.className=k.className.replace("ab-start-hidden",""),c(k));document.activeElement!==k&&k.focus()};k.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions"; return"iOS"===xb.va?(e=document.createElement("div"),e.className="ab-ios-scroll-wrapper",e.appendChild(k),a.Dc=e):a.Dc=k};function ef(a,b){if(!Y(U))return!1;if(!(a instanceof Kd))return t.error("button must be an InAppMessageButton object"),!1;if(!(b instanceof W))return t.error("inAppMessage must be an InAppMessage object"),!1;xe.Z();var c=new Xb;if(a.Ab()){var d=Ae(b);null!=d&&(a.id===Ld?t.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."):(null!=a.id&&(d.bid=a.id),c=O(z.cd,d)))}else t.info("This in-app message button has already received a click. Ignoring analytics event."); if(c.A)for(d=0;d<c.na.length;d++)Qe.$().Da(X.qc,[b.triggerId,a.id],c.na[d]);return c.A};function ff(a){for(var b=a.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button"),c=0;c<b.length;c++)b[c].tabIndex=0;if(0<b.length){var d=b[0],e=b[b.length-1];a.addEventListener("keydown",function(g){var f=document.activeElement;9===g.keyCode&&(g.shiftKey||f!==e&&f!==a?!g.shiftKey||f!==d&&f!==a||(g.preventDefault(),e.focus()):(g.preventDefault(),d.focus()))})}} function gf(a,b){b.setAttribute("role","dialog");b.setAttribute("aria-modal",!0);b.setAttribute("aria-label","Modal Message");a&&b.setAttribute("aria-labelledby",a)} function hf(a,b,c,d){if(0<a.buttons.length){var e=document.createElement("div");e.className="ab-message-buttons";c.appendChild(e);var g=c.getElementsByClassName("ab-message-text")[0];null!=g&&(g.className+=" ab-with-buttons");g=function(n){return function(m){ud(a,c,function(){ef(n,a);n.clickAction===od.URI?Ve(n.uri,m,d||a.openTarget===pd.BLANK):n.clickAction===od.NEWS_FEED&&b()});m.stopPropagation();return!1}};for(var f=0;f<a.buttons.length;f++){var h=a.buttons[f],k=document.createElement("button"); k.className="ab-message-button";k.setAttribute("type","button");id(k,"touchstart",function(){});var l=h.text;""===h.text&&(l="\u00a0");k.appendChild(document.createTextNode(l));wd(a)||(k.style.backgroundColor=Oe(h.backgroundColor),k.style.color=Oe(h.textColor),k.style.borderColor=Oe(h.borderColor));k.onclick=g(h);e.appendChild(k)}}};function jf(a,b,c,d,e){function g(){-1!==f.className.indexOf("ab-start-hidden")&&(f.className=f.className.replace("ab-start-hidden",""),c(f))}var f=document.createElement("div");f.className="ab-in-app-message ab-start-hidden ab-background";e&&(f.style.zIndex=e+1);a.Va()&&(f.className+=" ab-modal-interactions",f.setAttribute("tabindex","-1"));wd(a)||(f.style.color=Oe(a.textColor),f.style.backgroundColor=Oe(a.backgroundColor),Ne(a.backgroundColor)&&(f.className+=" ab-no-shadow"));a.imageStyle===rd.GRAPHIC&& (f.className+=" graphic");a.orientation===Ed.LANDSCAPE&&(f.className+=" landscape");0===a.buttons.length&&(a.clickAction!==od.NONE&&(f.className+=" ab-clickable"),f.onclick=function(m){ud(a,f,function(){Pe(a);a.clickAction===od.URI?Ve(a.uri,m,d||a.openTarget===pd.BLANK):a.clickAction===od.NEWS_FEED&&b()});m.stopPropagation();return!1});var h=Me("Close Message",wd(a)?void 0:Oe(a.closeButtonColor),function(){ud(a,f)});f.appendChild(h);e&&(h.style.zIndex=e+2);e=document.createElement("div");e.className= "ab-message-text";e.className+=" "+(a.messageAlignment||a.Hd).toLowerCase()+"-aligned";h=!1;var k=document.createElement("div");k.className="ab-image-area";if(a.imageUrl){if(a.cropType===td.CENTER_CROP){var l=document.createElement("span");l.className="ab-center-cropped-img";l.style.backgroundImage="url("+a.imageUrl+")";l.setAttribute("role","img");l.setAttribute("aria-label","Modal Image");Dd(a,l);k.appendChild(l)}else l=document.createElement("img"),l.setAttribute("src",a.imageUrl),Dd(a,l),h=!0, l.onload=g,setTimeout(g,1E3),k.appendChild(l);f.appendChild(k);e.className+=" ab-with-image"}else if(a.icon){k.className+=" ab-icon-area";l=document.createElement("span");l.className="ab-icon";wd(a)||(l.style.backgroundColor=Oe(a.iconBackgroundColor),l.style.color=Oe(a.iconColor));var n=document.createElement("i");n.className="fa";n.appendChild(document.createTextNode(a.icon));n.setAttribute("aria-hidden",!0);l.appendChild(n);k.appendChild(l);f.appendChild(k);e.className+=" ab-with-icon"}id(e,"touchstart", function(){});a.header&&0<a.header.length&&(k=document.createElement("h1"),k.className="ab-message-header",a.Ge=Fa.Ua(),k.id=a.Ge,k.className+=" "+(a.headerAlignment||md.CENTER).toLowerCase()+"-aligned",wd(a)||(k.style.color=Oe(a.headerTextColor)),k.appendChild(document.createTextNode(a.header)),e.appendChild(k));e.appendChild(a.Re());f.appendChild(e);h||g();return a.Dc=f} function kf(a,b,c){var d=U.o[lf],e=U.o[mf],g=U.o[Ge];a.Ne=document.activeElement;if(a instanceof Jd)return af(a,b,c,d,e,g);var f=jf(a,b,c,d,e);if(a instanceof Md||a instanceof Nd)f.className+=" "+(a instanceof Md?"ab-fullscreen":"ab-modal")+" ab-centered",hf(a,b,f,d),ff(f),gf(a.Ge,f);else if(a instanceof Od){f.className+=" ab-slideup";var h=f.getElementsByClassName("ab-close-button")[0];null!=h&&(b=ld("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",wd(a)?void 0: Oe(a.closeButtonColor)),b.setAttribute("class","ab-chevron"),h.appendChild(b));kd(f,"left",function(l){f.className+=" ab-swiped-left";h.onclick(l)});kd(f,"right",function(l){f.className+=" ab-swiped-right";h.onclick(l)});if(a.slideFrom===nd.TOP){a="up";var k=" ab-swiped-up"}else a="down",k=" ab-swiped-down";kd(f,a,function(l){f.className+=k;h.onclick(l)})}return f};function nf(a){if(!Y(U))return!1;if(!(a instanceof W||a instanceof ed))return t.error("inAppMessage must be an InAppMessage object"),!1;var b=a instanceof ed?z.Cf:z.ge;return ze(xe.Z(),a,b).A};function of(a,b,c){if(Y(U)){Ke();He();if(null==a)return!1;if(a instanceof ed)return t.info("User received control for a multivariate test, logging to Braze servers."),nf(a),!0;if(!(a instanceof W))return!1;xe.Z();Hd(a);var d=a instanceof Jd;if(d&&!a.Zg&&!pf())return t.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),ye(a.triggerId,Id.ee),!1;null==b&&(b=document.body);if(a.Va()&&0<b.querySelectorAll(".ab-modal-interactions").length)return t.info("Cannot show in-app message "+ a.message+" because another message is being shown."),ye(a.triggerId,Id.tf),!1;if(Se.Cg()){var e=Se.xg();if(0===e&&a.orientation===Ed.LANDSCAPE||1===e&&a.orientation===Ed.PORTRAIT)return t.info("Not showing "+(a.orientation===Ed.PORTRAIT?"portrait":"landscape")+" in-app message "+a.message+" because the screen is currently "+(0===e?"portrait":"landscape")),ye(a.triggerId,Id.Vf),!1}if(!pf()){e=!1;if(a.buttons&&0<a.buttons.length)for(var g=a.buttons,f=0;f<g.length;f++)g[f].clickAction===od.URI&&(e= $e(g[f].uri));else a.clickAction===od.URI&&(e=$e(a.uri));if(e)return t.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),ye(a.triggerId,Id.ee),!1}var h=document.createElement("div");h.className="ab-iam-root v3";h.className+=Le(a);h.setAttribute("role","complementary");vd(a)&&(h.id=a.htmlId);U.o[mf]&&(h.style.zIndex=U.o[mf]+1);b.appendChild(h);wd(a)&&(b=document.createElement("style"),b.innerHTML=a.css,b.id=xd(a), null!=U.o[Ge]&&b.setAttribute("nonce",U.o[Ge]),document.getElementsByTagName("head")[0].appendChild(b));var k=a instanceof Od;b=kf(a,function(){Promise.resolve(qf).then(function(l){return l.Xg()})},function(l){if(a.Va()&&a.qf()){var n=document.createElement("div");n.className="ab-page-blocker";wd(a)||(n.style.backgroundColor=Oe(a.frameColor));U.o[mf]&&(n.style.zIndex=U.o[mf]);h.appendChild(n);if(!U.o[Gd]){var m=(new Date).valueOf();n.onclick=function(x){200<(new Date).valueOf()-m&&(ud(a,l),x.stopPropagation())}}h.appendChild(l); l.focus();a.Sc(h)}else if(k){var q=document.querySelectorAll(".ab-slideup");n=null;for(var u=q.length-1;0<=u;u--)if(q[u]!==l){n=q[u];break}a.slideFrom===nd.TOP?(q=0,null!=n&&(q=n.offsetTop+n.offsetHeight),l.style.top=Math.max(q,0)+"px"):(q=0,null!=n&&(q=(window.innerHeight||document.documentElement.clientHeight)-n.offsetTop),l.style.bottom=Math.max(q,0)+"px")}else d&&!U.o[Gd]&&l.contentWindow.addEventListener("keydown",function(x){27===x.keyCode&&a.We()});nf(a);a.dismissType===qd.AUTO_DISMISS&&setTimeout(function(){h.contains(l)&& ud(a,l)},a.duration);"function"===typeof c&&c()});if(d||k)h.appendChild(b),a.Sc(h);return!0}};function rf(a){if(Y(U))return"function"!==typeof a?null:we(function(b){a(b[0]);return b.slice(1)})};function sf(a,b,c,d,e){this.Xa=a;this.rf=b;this.Xc=c;this.Pc=d;this.Wa=e}function tf(a,b,c,d,e){return null==a||null==a.trigger_id?null:new sf(a.trigger_id,b,c,d,e)};function uf(a,b,c,d,e){this.lg=a;this.ka=b;this.h=c;this.G=d;this.jg=e;this.yc=[];this.Ca=[];this.Oa=null;this.R={};this.ia={};vf(this);wf(this)}pa(uf,rc);function xf(a){a.Oa=S(a.h,Q.fd)||a.Oa;a.R=S(a.h,Q.Mb)||a.R;a.ia=S(a.h,Q.rc)||a.ia;for(var b=0;b<a.ba.length;b++){var c=a.ba[b];null!=a.ia[c.id]&&(c.Pa=a.ia[c.id])}} function vf(a){a.Bd=S(a.h,Q.qd)||0;for(var b=S(a.h,Q.pd)||[],c=[],d=0;d<b.length;d++){for(var e=c,g=e.push,f=b[d],h=[],k=0;k<f.c.length;k++){var l=h,n=l.push;var m=void 0;var q=f.c[k];switch(q.t){case "open":m=null;break;case "purchase":m=new ke(q.d);break;case "purchase_property":m=q.d||{};m=new le(m.id,ge(m.pf||[]));break;case "push_click":m=new me(q.d);break;case "custom_event":m=new Qd(q.d);break;case "custom_event_property":m=q.d||{};m=new he(m.e,ge(m.pf||[]));break;case "iam_click":m=new ie(q.d); break;case "test":m=null}n.call(l,new ne(q.t,m))}g.call(e,new qe(f.i,h,$a(f.s),$a(f.e),f.p,f.t,f.da,f.d,f.r,f.tm,f.ss,f.ld))}a.ba=c;xf(a)} function wf(a){function b(y,K,I,V,aa){return function(){yf(a,y,K,I,V,aa)}}for(var c={},d=0;d<a.ba.length;d++)c[a.ba[d].id]=a.ba[d];d=!1;for(var e=0;e<a.ba.length;e++){var g=a.ba[e];if(null!=a.R[g.id]){for(var f=a.R[g.id],h=[],k=0;k<f.length;k++){var l=f[k],n=Math.max(l.Pc+1E3*g.hb-(new Date).valueOf(),0);if(0<n){h.push(l);var m=void 0,q=void 0;null!=l.nf&&(m=l.nf);null!=l.Fd&&zb(l.Fd)&&(q=Ab(l.Fd));var u=[];if(A(l.Jd))for(var x=0;x<l.Jd.length;x++){var w=c[l.Jd[x]];null!=w&&u.push(w)}a.Ca.push(setTimeout(b(g, l.Pc,m,q,u),n))}}a.R[g.id].length>h.length&&(a.R[g.id]=h,d=!0,0===a.R[g.id].length&&delete a.R[g.id])}}d&&R(a.h,Q.Mb,a.R)} uf.prototype.Xb=function(a){var b=!1;if(null!=a&&a.triggers){xf(this);var c={},d={};this.ba=[];for(var e=0;e<a.triggers.length;e++){for(var g=a.triggers[e],f=g.id,h=[],k=0;k<g.trigger_condition.length;k++){var l=h,n=l.push,m=void 0,q=g.trigger_condition[k],u=q.type;switch(u){case "open":m=null;break;case "purchase":m=q.data;m=new ke(m?m.product_id:null);break;case "purchase_property":m=q.data;m=new le(m?m.product_id:null,m?fe(m.property_filters):null);break;case "push_click":m=q.data;m=new me(m?m.campaign_id: null);break;case "custom_event":m=q.data;m=new Qd(m?m.event_name:null);break;case "custom_event_property":m=q.data;m=new he(m?m.event_name:null,m?fe(m.property_filters):null);break;case "iam_click":m=q.data;m=new ie(m?m.id:null,m?m.buttons:null);break;case "test":m=null}n.call(l,new ne(u,m))}k=Ya(g.start_time);l=Ya(g.end_time);n=g.priority;u=g.type;m=g.delay;q=g.re_eligibility;var x=g.timeout,w=g.data;g=g.min_seconds_since_last_trigger;f=Ra(te,u,"Could not construct Trigger from server data","Trigger.Types")? new qe(f,h,k,l,n,u,w,m,q,x,g):null;null!=this.ia[f.id]&&(f.Pa=this.ia[f.id],c[f.id]=this.ia[f.id]);null!=this.R[f.id]&&(d[f.id]=this.R[f.id]);for(h=0;h<f.wb.length;h++)if(oe(f.wb[h],X.ga,null)){b=!0;break}null!=f&&this.ba.push(f)}Wa(this.ia,c)||(this.ia=c,R(this.h,Q.rc,this.ia));Wa(this.R,d)||(this.R=d,R(this.h,Q.Mb,this.R));a=[];for(c=0;c<this.ba.length;c++)a.push(this.ba[c].D());this.Bd=(new Date).valueOf();R(this.h,Q.pd,a);R(this.h,Q.qd,this.Bd);b&&(t.info("Trigger with test condition found, firing test."), this.Da(X.ga));this.Da(X.OPEN);b=this.yc;this.yc=[];for(a=0;a<b.length;a++)this.Da.apply(this,b[a])}}; function yf(a,b,c,d,e,g){var f,h,k,l,n;Ba(function(m){if(1==m.C)switch(f=function(q){xf(a);var u=(new Date).valueOf();se(b,c)?b.type===te.ve?ye(b.id,Id.Lb):ye(b.id,Id.fe):!1===navigator.onLine&&b.type===te.bd&&q.imageUrl?(t.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),ye(b.id,Id.Lf)):(null==b.Pa||b.cc!==re&&u-b.Pa>=1E3*b.cc)&&zf(a,b,u,d)?(C(a.ka,[q]),xf(a),b.Pa=u,a.Oa=u,R(a.h,Q.fd,u),a.ia[b.id]=u,R(a.h,Q.rc,a.ia)):t.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}, h=function(){xf(a);var q=g.pop();if(null!=q)if(Af(a,q,c,d,e,g),se(q,c)){var u="Server aborted in-app message display, but the timeout on fallback trigger "+q.id+" has already elapsed.";0<g.length&&(u+=" Continuing to fall back.");t.info(u);ye(q.id,Id.fe);h()}else t.info("Server aborted in-app message display. Falling back to lower priority "+q.type+" trigger action "+b.id+"."),u=1E3*q.hb-((new Date).valueOf()-c),0<u?a.Ca.push(setTimeout(function(){yf(a,q,c,d,e,g)},u)):yf(a,q,c,d,e,g)},b.type){case te.bd:m.C= 2;return;case te.ve:k=tf(b.data,f,h,c,b.Wa);if(null==k){t.error("Could not parse trigger data for trigger "+b.id+", ignoring.");ye(b.id,Id.Nb);break}De(a.jg,k,d,e);break;default:t.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),ye(b.id,Id.Nb)}else{if(4!=m.C){l=Pd(b.data);if(null==l){t.error("Could not parse trigger data for trigger "+b.id+", ignoring.");ye(b.id,Id.Nb);m.C=0;return}return sa(m,Be(l),4)}(n=m.ua)?(t.error(n),h()):f(l)}m.C=0})} uf.prototype.Da=function(a,b,c){var d=this;if(Ra(X,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.G.pb)t.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.yc.push(arguments);else{(S(this.h,Q.qd)||0)>this.Bd?vf(this):xf(this);for(var e=(new Date).valueOf(),g=e-this.Oa,f=!0,h=!0,k=[],l=0;l<this.ba.length;l++){var n=this.ba[l],m=e+1E3*n.hb;if((null==n.Pa||n.cc!==re&&m-n.Pa>=1E3*n.cc)&&(null==n.startTime||n.startTime<=e)&&(null==n.endTime|| n.endTime>=e)){for(var q=!1,u=0;u<n.wb.length;u++)if(oe(n.wb[u],a,b)){q=!0;break}q&&(f=!1,zf(this,n,m,a)&&(h=!1,k.push(n)))}}if(f)t.info("Trigger event "+a+" did not match any trigger conditions.");else if(h)t.info("Ignoring "+a+" trigger event because a trigger was displayed "+g/1E3+"s ago.");else{k.sort(function(w,y){return w.priority-y.priority});var x=k.pop();null!=x&&(t.info("Firing "+x.type+" trigger action "+x.id+" from trigger event "+a+"."),Af(this,x,e,a,c,k),0===x.hb?yf(this,x,e,a,c,k): this.Ca.push(setTimeout(function(){yf(d,x,e,a,c,k)},1E3*x.hb)))}}};uf.prototype.Ub=function(a){this.ba=[];T(this.h,Q.pd);if(!a){this.yc=[];this.Oa=null;this.ia={};this.R={};for(a=0;a<this.Ca.length;a++)clearTimeout(this.Ca[a]);this.Ca=[];T(this.h,Q.fd);T(this.h,Q.rc);T(this.h,Q.Mb)}};uf.prototype.clearData=function(){this.ba=[];this.Oa=null;this.ia={};this.R={};for(var a=0;a<this.Ca.length;a++)clearTimeout(this.Ca[a]);this.Ca=[]}; function zf(a,b,c,d){if(null==a.Oa)return!0;if(d===X.ga)return t.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.ff;null==b&&(b=a.lg);return c-a.Oa>=1E3*b}function Af(a,b,c,d,e,g){xf(a);a.R[b.id]=a.R[b.id]||[];var f={};f.Pc=c;f.nf=d;var h;null!=e&&(h=e.D());f.Fd=h;c=[];for(d=0;d<g.length;d++)c.push(g[d].id);f.Jd=c;a.R[b.id].push(f);R(a.h,Q.Mb,a.R)};var Qe={J:!1,W:null,$:function(){Qe.yb();return Qe.W},qg:function(){if(!Qe.W){var a=U.o[Bf];var b=xe.Z().la;Qe.W=new uf(null!=a?a:30,b,U.h,U.G,xe.Z());Cf(Qe.W)}},yb:function(){Qe.J||(Qe.qg(),Ee(Qe),Qe.J=!0)},ca:function(){Qe.W=null;Qe.J=!1}};function Df(a,b,c,d,e){this.endpoint=a||null;this.Xe=b||null;this.publicKey=c||null;this.bh=d||null;this.Fa=e||null}Df.prototype.D=function(){return{e:this.endpoint,c:this.Xe,p:this.publicKey,u:this.bh,v:this.Fa}};function Ef(a,b){this.B=a;this.h=b}Ef.prototype.T=function(){var a=ec(this.h,ac.vc);if(null==a)return null;var b=a.ya,c=Cb(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=Cb(b);a.ya=b;cc(this.h,ac.vc,a)}return b};Ef.prototype.Db=function(a,b){if(Wb(this.B,a))return t.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;var c={};c[a]=b;return P(this,"custom",c,!0)}; function P(a,b,c,d,e){a=ic(a.h,a.T(),b,c);!e&&a&&t.info("Logged"+(d?" custom":"")+" attribute "+b+" with value "+c);return a}Ef.prototype.Td=function(a,b,c,d,e){P(this,"push_token",a,!1,!0);P(this,"custom_push_public_key",c,!1,!0);P(this,"custom_push_user_auth",d,!1,!0);P(this,"custom_push_vapid_public_key",e,!1,!0);var g=Oa.pa,f=new Ga(g);R(this.h,Q.tc,(new Df(a,b,c,d,e)).D());f.setItem(g.N.md,g.uc,!0)}; Ef.prototype.dc=function(a){P(this,"push_token",null,!1,!0);P(this,"custom_push_public_key",null,!1,!0);P(this,"custom_push_user_auth",null,!1,!0);P(this,"custom_push_vapid_public_key",null,!1,!0);if(a){a=Oa.pa;var b=new Ga(a);R(this.h,Q.tc,!1);b.setItem(a.N.md,a.uc,!1)}};var Bf="minimumIntervalBetweenTriggerActionsInSeconds",Ge="contentSecurityNonce",mf="inAppMessageZIndex",lf="openInAppMessagesInNewTab",Gd="requireExplicitInAppMessageDismissal",Ie="doNotLoadFontAwesome";function Ff(){this.rb=this.qb=!1;this.kg=new B;this.td=new B;this.o={};this.zc=[];this.eb=[];this.la=[];this.Rb="4.1.0"} Ff.prototype.Md=function(a,b){var c=this;if(this.qb)return t.info("Braze has already been initialized with an API key."),!0;this.o=b||{};b=this.o.enableLogging;var d=Ze(Se.cf());d&&"true"===d.brazeLogging&&(b=!0);t.yb(b);t.info("Initialization Options: "+JSON.stringify(this.o,null,2));if(null==a||""===a||"string"!==typeof a)return t.error("Braze requires a valid API key to be initialized."),!1;this.S=a;b=this.o.baseUrl;if(null==b||""===b||"string"!==typeof b)return t.error("Braze requires a valid baseUrl to be initialized."), !1;b=b.replace(/(\.[a-z]+)[^\.]*$/i,"$1/api/v3");0!==b.indexOf("http")&&(b="https://"+b);this.wa=b;if(xb.Ag&&!this.o.allowCrawlerActivity)return t.info("Ignoring activity from crawler bot "+navigator.userAgent),this.rb=!0,!1;this.h=dd(a,this.o[Ff.Uf]||!1);if((new lc(null,!0)).ma("ab.optOut"))return t.info("Ignoring all activity due to previous opt out"),this.rb=!0,!1;a=r(Va(this.o));for(b=a.next();!b.done;b=a.next())b=b.value,-1===Qa(Pa).indexOf(b)&&t.warn("Ignoring unknown initialization option '"+ b+"'.");a=["mparticle","wordpress","tealium"];null!=this.o.sdkFlavor&&(b=this.o.sdkFlavor,-1!==a.indexOf(b)?this.Pb=b:t.error("Invalid sdk flavor passed: "+b));a=this.o[Pa.Mf];if(null!=a)if(A(a)){b=[];for(d=0;d<a.length;d++)Ra(sc,a[d],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&b.push(a[d]);a=b}else t.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),a=null;this.ra=new uc(this.h,a);this.B=new $c(this.h);this.j=new Ef(this.B,this.h);this.P= new cd(this.h,this.j,this.B,this.o.sessionTimeoutInSeconds);a=new B;this.L=new pc(this.h,this.o.enableSdkAuthentication,a);ve(this,a);this.M=new xc(this.ra,this.h,this.L,this.j,this.P,this.B,this.S,this.wa,this.Rb,this.Pb,this.o.appVersion);this.G=new Mc(this.S,this.wa,this.P,this.ra,this.j,this.B,this.h,function(e){if(c.qb)for(var g=r(c.eb),f=g.next();!f.done;f=g.next())f.value.Xb(e)},this.L,this.M);this.G.Md();t.info('Initialized for the Braze backend at "'+this.o.baseUrl+'" with API key "'+this.S+ '".');null!=this.o.enableHtmlInAppMessages&&wc("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");Qe.yb();C(this.kg,this.o);return this.qb=!0}; Ff.prototype.ca=function(a){t.ca();if(this.qb){C(this.td);this.td.U();for(var b=r(this.zc),c=b.next();!c.done;c=b.next())c.value.ca();this.zc=[];b=r(this.eb);for(c=b.next();!c.done;c=b.next())c.value.clearData(!1);this.eb=[];this.U();this.la=[];this.G.ca();this.j=this.P=this.B=this.M=this.ra=this.L=this.G=null;this.o={};this.Pb=void 0;this.rb=this.qb=!1;a&&(this.h=null)}};function Y(a){if(a.rb)return!1;if(!a.qb)throw Error("Braze must be initialized before calling methods.");return!0} function Ue(){var a=U;if(a.j&&a.G)return new J(a.j,a.G)}function pf(){var a=U;return!0===a.o.allowUserSuppliedJavascript||!0===a.o.enableHtmlInAppMessages}function Ee(a){for(var b=U,c=!1,d=r(b.zc),e=d.next();!e.done;e=d.next())e.value===a&&(c=!0);c||b.zc.push(a)}function Cf(a){for(var b=U,c=!1,d=r(b.eb),e=d.next();!e.done;e=d.next())e.value.constructor===a.constructor&&(c=!0);a instanceof rc&&!c&&b.eb.push(a)}function ve(a,b){b instanceof B&&a.la.push(b)} Ff.prototype.U=function(){if(Y(this))for(var a=r(this.la),b=a.next();!b.done;b=a.next())b.value.U()};Ff.prototype.ea=function(a){if(Y(this))for(var b=r(this.la),c=b.next();!c.done;c=b.next())c.value.ea(a)};var U=new Ff;function O(a,b,c){var d=new Xb,e=U.P;if(!e)return t.info('Not logging event with type "'+a+'" because the current session ID could not be found.'),d;e=Tc(e);d.na.push(new yb(c||U.j.T(),a,(new Date).valueOf(),e,b));d.A=fc(U.h,d.na);return d};function Gf(){var a=U.P,b=U.j;this.h=U.h;this.P=a;this.j=b}function Hf(a){for(var b=null,c=0;c<a.length;c++)null!=a[c].id&&""!==a[c].id&&(b=b||{},b.ids=b.ids||[],b.ids.push(a[c].id));return b};var If={J:!1,Ea:null,Z:function(){If.sa();If.Ea||(If.Ea=new Gf);return If.Ea},sa:function(){If.J||(Ee(If),If.J=!0)},ca:function(){If.Ea=null;If.J=!1}};function Jf(a,b){if(!Y(U))return!1;if(!(a instanceof D))return t.error("card must be a Card object"),!1;var c=If.Z(),d=new Xb;a.Ab();if(null==a.url||""===a.url)t.info("Card "+a.id+" has no url. Not logging click to Braze servers."),b=d;else{if(b){var e=S(c.h,Q.nb)||{};e[a.id]=!0;R(c.h,Q.nb,e)}a=Hf([a]);b=null==a?d:O(b?z.yf:z.wf,a)}return b.A};function Kf(a){if(!Y(U))return!1;if(!(a instanceof D))return t.error("card must be a Card object"),!1;var b=If.Z();var c=new Xb;if(a.Rd()){var d=S(b.h,Q.Ia)||{};d[a.id]=!0;R(b.h,Q.Ia,d);a=Hf([a]);c=null==a?c:O(z.zf,a)}else t.info("Card "+a.id+" refused this dismissal. Ignoring analytics event.");return c.A};function Lf(a,b){if(!Y(U))return!1;if(!A(a))return t.error("cards must be an array"),!1;for(var c=r(a),d=c.next();!d.done;d=c.next())if(!(d.value instanceof D))return t.error("Each card in cards must be a Card object"),!1;d=If.Z();c=new Xb(!0);var e=[],g=[];var f=b?S(d.h,Q.ob)||{}:S(d.h,Q.Hb)||{};a=r(a);for(var h=a.next();!h.done;h=a.next())h=h.value,h.Sd(),h instanceof mb?g.push(h):e.push(h),f[h.id]=!0;e=Hf(e);g=Hf(g);null==e&&null==g?c.A=!1:(b?R(d.h,Q.ob,f):R(d.h,Q.Hb,f),null!=e&&(d=O(b?z.Af:z.xf, e),Lc(c,d)),null!=g&&b&&(b=O(z.Bf,g),Lc(c,b)));return c.A};function Mf(a,b){this.cards=a;this.lastUpdated=b}p=Mf.prototype;p.df=function(){for(var a=0,b=r(this.cards),c=b.next();!c.done;c=b.next())c=c.value,c.viewed||c instanceof mb||a++;return a};p.Ed=function(){throw Error("Must be implemented in a subclass");};p.Od=function(){throw Error("Must be implemented in subclass");};p.Nd=function(){throw Error("Must be implemented in subclass");};p.Dd=function(){throw Error("Must be implemented in subclass");};function Nf(a,b,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y,K){if(b===ib.Zf||b===ib.ie)a=new lb(a,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y);else if(b===ib.$d)a=new kb(a,c,d,e,g,f,h,k,l,n,m,q,u,x,w,y);else if(b===ib.Yd)a=new jb(a,c,e,f,h,k,l,n,m,q,u,x,w,y);else if(b===ib.be)a=new mb(a,c,h,l,u,x);else return t.error("Ignoring card with unknown type "+b),null;K&&(a.test=K);return a} function Of(a){if(a[E.ne])return null;var b=Ya(a[E.qa]);return Nf(a[E.Ka],a[E.TYPE],a[E.Na],a[E.bb],a[E.La],a[E.$a],b,b,null,a[E.oa]===hb?null:Ya(a[E.oa]),a[E.URL],a[E.Ma],a[E.Ga],a[E.za],a[E.Aa],a[E.Ja],a[E.Ha],a[E.ga]||!1)}function Pf(a){return Nf(a[G.Ka],a[G.TYPE],a[G.Na],a[G.bb],a[G.La],a[G.$a],$a(a[G.nc]),$a(a[G.qa]),a[G.lc],$a(a[G.oa]),a[G.URL],a[G.Ma],a[G.Ga],a[G.za],a[G.Aa],a[G.Ja],a[G.Ha],a[G.ga]||!1)||void 0};function Qf(a,b,c,d,e){var g=this;this.j=a;this.h=b;this.B=c;this.eg=d;this.M=e;this.ka=new B;ve(U,this.ka);this.xa=this.Qa=0;this.Sa();a=Oa.pa;Ma(new Ga(a),a.N.vf,function(f){if(Rf(g)){g.Sa();for(var h=g.F.slice(),k=g.j.T(),l=0;l<f.length;l++)if(k===f[l].userId||null==k&&null==f[l].userId){for(var n=f[l].card,m=null,q=0;q<g.F.length;q++)if(n.id===g.F[q].id){m=g.F[q];break}if(null==m)n=Of(n),null!=n&&h.push(n);else if(!gb(m,n))for(m=0;m<h.length;m++)if(n.id===h[m].id){h.splice(m,1);break}}g.F=Sf(g, Tf(g,h,!1));g.Gc();C(g.ka,Uf(g,!0))}})}pa(Qf,rc);p=Qf.prototype;p.Sa=function(){for(var a=S(this.h,Q.Jb)||[],b=[],c=0;c<a.length;c++){var d=Pf(a[c]);null!=d&&b.push(d)}this.F=Sf(this,Tf(this,b,!1));this.Qa=S(this.h,Q.mc)||this.Qa;this.xa=S(this.h,Q.Ib)||this.xa}; p.Xb=function(a){if(Rf(this)&&null!=a&&a.cards){R(this.h,Q.qe,U.Rb);var b=a.full_sync;b||this.Sa();var c=a.cards,d=a.last_full_sync_at;a=a.last_card_updated_at;if(b){var e=[];for(var g=r(this.F),f=g.next();!f.done;f=g.next())f=f.value,f.test&&e.push(f)}else e=this.F.slice();for(g=0;g<c.length;g++){f=c[g];for(var h=null,k=0;k<this.F.length;k++)if(f.id===this.F[k].id){h=this.F[k];break}if(b)f=Of(f),null!=h&&h.viewed&&(f.viewed=!0),null!=f&&e.push(f);else if(null==h)f=Of(f),null!=f&&e.push(f);else if(!gb(h, f))for(h=0;h<e.length;h++)if(f.id===e[h].id){e.splice(h,1);break}}this.F=Sf(this,Tf(this,e,b));this.Gc();this.Qa=d||0;R(this.h,Q.mc,this.Qa);this.xa=a||0;R(this.h,Q.Ib,this.xa);C(this.ka,Uf(this,!0))}}; function Tf(a,b,c){for(var d=S(a.h,Q.nb)||{},e=S(a.h,Q.ob)||{},g=S(a.h,Q.Ia)||{},f={},h={},k={},l=0;l<b.length;l++)d[b[l].id]&&(b[l].clicked=!0,f[b[l].id]=!0),e[b[l].id]&&(b[l].viewed=!0,h[b[l].id]=!0),g[b[l].id]&&(b[l].dismissed=!0,k[b[l].id]=!0);c&&(R(a.h,Q.nb,f),R(a.h,Q.ob,h),R(a.h,Q.Ia,k));return b} function Sf(a,b){for(var c=[],d=new Date,e=S(a.h,Q.Ia)||{},g=!1,f=0;f<b.length;f++){var h=b[f].url;!a.eg&&h&&$e(h)?t.error("Card with url "+h+' will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.'):(null==b[f].expiresAt||b[f].expiresAt>=d)&&!b[f].dismissed?c.push(b[f]):g=e[b[f].id]=!0}g&&R(a.h,Q.Ia,e);return c}p.Gc=function(){for(var a=[],b=0;b<this.F.length;b++)a.push(this.F[b].D());R(this.h,Q.Jb,a)}; p.fc=function(a,b){var c=this;if(Rf(this)){var d=yc(this.M,{},!0);S(this.h,Q.qe)!==U.Rb&&Vf(this);d.last_full_sync_at=this.Qa;d.last_card_updated_at=this.xa;var e=Fc(this.M,d,!0);Ic(d,function(){Jc({url:""+c.M.wa+"/content_cards/sync",data:d,headers:e,A:function(g){Ac(c.M,d,g,e)?(c.M.Cb(),c.Xb(g),"function"===typeof a&&a()):"function"===typeof b&&b()},error:function(g){Gc(g,"retrieving content cards");"function"===typeof b&&b()}})})}else this.gg||(this.gg=bd(this.B,function(){c.fc(a,b)}))}; function Uf(a,b){b||a.Sa();b=Sf(a,a.F);b.sort(function(d,e){return d.pinned&&!e.pinned?-1:e.pinned&&!d.pinned?1:d.updated>e.updated?-1:e.updated>d.updated?1:0});var c=Math.max(a.xa||0,a.Qa||0);0===c&&(c=void 0);S(a.h,Q.Ib)===a.xa&&void 0===c&&(c=a.xa);return new Wf(b,Ya(c))}p.Xd=function(a){return ab(this.ka,a)};function Vf(a){a.Qa=0;a.xa=0;T(a.h,Q.mc);T(a.h,Q.Ib)}p.Ub=function(a){a||(this.F=[],C(this.ka,new Wf(this.F.slice(),null)),T(this.h,Q.Jb),T(this.h,Q.nb),T(this.h,Q.ob),T(this.h,Q.Ia));Vf(this)}; p.clearData=function(a){this.xa=this.Qa=0;this.F=[];C(this.ka,new Wf(this.F.slice(),null));a&&(T(this.h,Q.Jb),T(this.h,Q.nb),T(this.h,Q.ob),T(this.h,Q.Ia),T(this.h,Q.mc),T(this.h,Q.Ib))};function Rf(a){return Hc(a.B).Vb.enabled?!0:(0!==Hc(a.B).Zb&&(C(a.ka,new Wf([],(new Date).valueOf())),T(a.h,Q.Jb)),!1)};var Xf={J:!1,W:null,$:function(){Xf.sa();Xf.W||(Xf.W=new Qf(U.j,U.h,U.B,pf(),U.M),Cf(Xf.W));return Xf.W},sa:function(){Xf.J||(Ee(Xf),Xf.J=!0)},ca:function(){Xf.W=null;Xf.J=!1}};function Yf(a,b){if(Y(U))return Xf.$().fc(a,b)};function Wf(a,b){Mf.call(this,a,b)}pa(Wf,Mf);p=Wf.prototype;p.yg=function(){return Mf.prototype.df.call(this)};p.Od=function(a){Lf(a,!0)};p.Nd=function(a){Jf(a,!0)};p.Dd=function(){Yf()};p.Ed=function(){return!0};function Zf(a){null!=a&&(a=a.querySelectorAll(".ab-unread-indicator")[0],null!=a&&(a.className+=" read"))}function $f(a,b){var c="";a.title||a.description||(c="Feed Image");b.setAttribute("alt",c)}function ag(a,b){var c=b.querySelectorAll(".ab-image-area");b=0;0<c.length&&(b=c[0].offsetWidth);a=r(a);for(c=a.next();!c.done;c=a.next()){var d=c.value;(c=d.ze)&&d.imageUrl&&!isNaN(d.aspectRatio)&&(d=b/d.aspectRatio)&&(c.style.height=d+"px")}} function bg(a,b,c){function d(m){Zf(e);g&&(b(a),Ve(a.url,m,c));return!1}var e=document.createElement("div");e.className="ab-card ab-effect-card "+a.Oc;e.setAttribute("data-ab-card-id",a.id);e.setAttribute("role","article");e.setAttribute("tabindex","0");var g=a.url&&""!==a.url;if(a.pinned){var f=document.createElement("div");f.className="ab-pinned-indicator";var h=document.createElement("i");h.className="fa fa-star";f.appendChild(h);e.appendChild(f)}a.imageUrl&&""!==a.imageUrl&&(f=document.createElement("div"), f.className="ab-image-area",h=document.createElement("img"),h.setAttribute("src",a.imageUrl),h.onload=function(){e.style.height="auto"},$f(a,h),f.appendChild(h),e.className+=" with-image",g&&!a.Qc?(h=document.createElement("a"),h.setAttribute("href",a.url),h.onclick=d,h.appendChild(f),e.appendChild(h)):e.appendChild(f));f=document.createElement("div");f.className="ab-card-body";if(a.dismissible){a.Ke=function(){return Kf(a)};var k=Me("Dismiss Card",void 0,a.Ye.bind(a));e.appendChild(k);kd(f,"left", function(m){e.className+=" ab-swiped-left";k.onclick(m)});kd(f,"right",function(m){e.className+=" ab-swiped-right";k.onclick(m)})}if(h=a.title&&""!==a.title){var l=document.createElement("h1");l.className="ab-title";l.id=Fa.Ua();e.setAttribute("aria-labelledby",l.id);if(g){var n=document.createElement("a");n.setAttribute("href",a.url);n.onclick=d;n.appendChild(document.createTextNode(a.title));l.appendChild(n)}else l.appendChild(document.createTextNode(a.title));f.appendChild(l)}l=document.createElement("div"); l.className=h?"ab-description":"ab-description ab-no-title";l.id=Fa.Ua();e.setAttribute("aria-describedby",l.id);l.appendChild(document.createTextNode(a.description));g&&(h=document.createElement("div"),h.className="ab-url-area",n=document.createElement("a"),n.setAttribute("href",a.url),n.appendChild(document.createTextNode(a.linkText)),n.onclick=d,h.appendChild(n),l.appendChild(h));f.appendChild(l);e.appendChild(f);f=document.createElement("div");f.className="ab-unread-indicator";a.viewed&&(f.className+= " read");e.appendChild(f);return a.ze=e};var cg={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"}, cs:{NO_CARDS_MESSAGE:"V tuto chv\u00edli pro v\u00e1s nem\u00e1me \u017e\u00e1dn\u00e9 aktualizace.<br/>Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.<br/>Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."}, es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\u00e9belo m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\u00e9ntelo m\u00e1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\u00f3n.<br/>Vuelva a verificar m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\u00e1s 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\u00e4ivityksi\u00e4 ei ole saatavilla.<br/>Tarkista my\u00f6hemmin uudelleen.", FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.<br/>Veuillez v\u00e9rifier ult\u00e9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\u00e9essayer ult\u00e9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"}, hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."}, id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare pi\u00f9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\u00f9 tardi."},ja:{NO_CARDS_MESSAGE:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br/>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}, ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.", FEED_TIMEOUT_MESSAGE:"Vennligst pr\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Prosz\u0119 sprawdzi\u0107 ponownie p\u00f3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\u00f3bowa\u0107 ponownie p\u00f3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\u00e3o temos atualiza\u00e7\u00f5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\u00e3o temos nenhuma atualiza\u00e7\u00e3o.<br/>Verifique novamente mais tarde.", FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<br/>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."}, sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>F\u00f6rs\u00f6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\u00f6rs\u00f6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."}, uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.<br/>\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."}, vi:{NO_CARDS_MESSAGE:"Ch\u00fang t\u00f4i kh\u00f4ng c\u00f3 c\u1eadp nh\u1eadt n\u00e0o.<br/>Vui l\u00f2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\u00f2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}, "zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}};function dg(a,b){null!=a&&(a=a.toLowerCase());if(null!=a&&null==cg[a]){var c=a.indexOf("-");0<c&&(a=a.substring(0,c))}null==cg[a]&&(a="Braze does not yet have a localization for language "+a+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.",b?t.error(a):t.info(a),a="en");this.language=a}dg.prototype.get=function(a){return cg[this.language][a]};var eg={J:!1,Ea:null,Z:function(){eg.sa();if(!eg.Ea){var a=xb.language,b=!1;U.o.localization&&(a=U.o.localization,b=!0);eg.Ea=new dg(a,b)}return eg.Ea},sa:function(){eg.J||(Ee(eg),eg.J=!0)},ca:function(){eg.Ea=null;eg.J=!1}};function fg(a){Y(U)&&U.ea(a)};function gg(a){a&&(a.className=a.className.replace("ab-show","ab-hide"),setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a)},500));var b=a.getAttribute("data-update-subscription-id");null!=b&&fg(b)} function hg(a,b){var c=document.createElement("div");c.className="ab-feed-body";c.setAttribute("aria-label","Feed");c.setAttribute("role","feed");if(null==a.lastUpdated){b=document.createElement("div");b.className="ab-no-cards-message";var d=document.createElement("i");d.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner";b.appendChild(d);c.appendChild(b)}else{d=!1;for(var e=function(k){a.Nd(k)},g=r(a.cards),f=g.next();!f.done;f=g.next()){f=f.value;var h=f instanceof mb;h&&!a.Ed()?t.error("Received a control card for a legacy news feed. Control cards are only supported with content cards."): (c.appendChild(bg(f,e,b)),d=d||!h)}d||(b=document.createElement("div"),b.className="ab-no-cards-message",b.innerHTML=eg.Z().get("NO_CARDS_MESSAGE"),b.setAttribute("role","article"),c.appendChild(b))}return c} function ig(a,b){if(null!=b){var c=[];b=b.querySelectorAll(".ab-card");a.sd||(a.sd={});for(var d=0;d<b.length;d++){var e=b[d].getAttribute("data-ab-card-id");if(!a.sd[e]){var g=b[d];g=null!=g&&!!g.getAttribute("data-ab-had-top-impression");var f=b[d];f=null!=f&&!!f.getAttribute("data-ab-had-bottom-impression");var h=g,k=f,l=gd(b[d],!0,!1,!1),n=gd(b[d],!1,!0,!1);if(!g&&l){g=!0;var m=b[d];null!=m&&m.setAttribute("data-ab-had-top-impression",!0)}!f&&n&&(f=!0,m=b[d],null!=m&&m.setAttribute("data-ab-had-bottom-impression", !0));if(g&&f&&(l||n||Zf(b[d]),!h||!k))for(g=r(a.cards),f=g.next();!f.done;f=g.next())if(f=f.value,f.id===e){a.sd[f.id]=!0;c.push(f);break}}}0<c.length&&a.Od(c)}} function jg(a,b){b.setAttribute("aria-busy","true");var c=b.querySelectorAll(".ab-refresh-button")[0];null!=c&&(c.className+=" fa-spin");var d=(new Date).valueOf().toString();b.setAttribute("data-last-requested-refresh",d);setTimeout(function(){if(b.getAttribute("data-last-requested-refresh")===d){for(var e=b.querySelectorAll(".fa-spin"),g=0;g<e.length;g++)e[g].className=e[g].className.replace(/fa-spin/g,"");e=b.querySelectorAll(".ab-initial-spinner")[0];null!=e&&(g=document.createElement("span"), g.innerHTML=eg.Z().get("FEED_TIMEOUT_MESSAGE"),e.parentNode.appendChild(g),e.parentNode.removeChild(e));"true"===b.getAttribute("aria-busy")&&b.setAttribute("aria-busy","false")}},1E4);a.Dd()} function kg(a,b){function c(k){jg(a,e);k.stopPropagation()}function d(k){gg(e);k.stopPropagation()}var e=document.createElement("div");e.className="ab-feed ab-hide ab-effect-slide";e.setAttribute("role","dialog");e.setAttribute("aria-label","Feed");e.setAttribute("tabindex","-1");var g=document.createElement("div");g.className="ab-feed-buttons-wrapper";g.setAttribute("role","group");e.appendChild(g);var f=document.createElement("i");f.className="fa fa-times ab-close-button";f.setAttribute("aria-label", "Close Feed");f.setAttribute("tabindex","0");f.setAttribute("role","button");f.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||d(k)});f.onclick=d;var h=document.createElement("i");h.className="fa fa-refresh ab-refresh-button";null==a.lastUpdated&&(h.className+=" fa-spin");h.setAttribute("aria-label","Refresh Feed");h.setAttribute("tabindex","0");h.setAttribute("role","button");h.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||c(k)});h.onclick=c;g.appendChild(h); g.appendChild(f);e.appendChild(hg(a,b));e.onscroll=function(){ig(a,e)};return e} function lg(a,b,c,d,e){if(A(b)){var g=[];b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,f instanceof D){if(f.url&&Fb.test(f.url)){var h=Eb(f.url);if(Hb(h)){t.error(Db("unknownBrazeAction","Content Card"));continue}}g.push(f)}a.cards=g;a.lastUpdated=c;null!=d&&(d.setAttribute("aria-busy","false"),null==a.lastUpdated?gg(d):(c=d.querySelectorAll(".ab-feed-body")[0],null!=c&&(e=hg(a,e),c.parentNode.replaceChild(e,c),ig(a,e.parentNode))))}} function mg(a,b){b.setAttribute("data-update-subscription-id",a)};function ng(a){if(Y(U))for(var b=document.querySelectorAll(".ab-feed"),c=0;c<b.length;c++)(null==a||null!=a&&b[c].parentNode===a)&&gg(b[c])};function og(a,b){if(Y(U)){Je();He();var c=!1;null==a&&(a=document.body,c=!0);var d=U.o.openCardsInNewTab||U.o.openNewsFeedCardsInNewTab||!1,e=Uf(Xf.$(),!1);"function"===typeof b&&lg(e,b(e.cards.slice()),e.lastUpdated,null,d);var g=kg(e,d),f=Xf.$();(null==e.lastUpdated||6E4<(new Date).valueOf()-e.lastUpdated.valueOf())&&(null==f.Ie||6E4<(new Date).valueOf()-f.Ie)&&(t.info("Cached content cards were older than max TTL of 60000 ms, requesting an update from the server."),jg(e,g),f.Ie=(new Date).valueOf()); var h=(new Date).valueOf();f=pg(function(l){var n=g.querySelectorAll(".ab-refresh-button")[0];if(null!=n){var m=500,q=parseInt(g.getAttribute("data-last-requested-refresh"));m=isNaN(q)?m-((new Date).valueOf()-h):m-((new Date).valueOf()-q);setTimeout(function(){n.className=n.className.replace(/fa-spin/g,"")},Math.max(m,0))}m=l.cards;"function"===typeof b&&(m=b(m.slice()));lg(e,m,l.lastUpdated,g,d)});mg(f,g);var k=function(l){for(var n=l.querySelectorAll(".ab-feed"),m=null,q=0;q<n.length;q++)n[q].parentNode=== l&&(m=n[q]);null!=m?(gg(m),m.parentNode.replaceChild(g,m)):l.appendChild(g);setTimeout(function(){g.className=g.className.replace("ab-hide","ab-show")},0);c&&g.focus();ig(e,g);ag(e.cards,l)};null!=a?k(a):window.onload=function(l){return function(){"function"===typeof l&&l();k(document.body)}}(window.onload)}};function pg(a){if(Y(U)){var b=Xf.$();a=b.Xd(a);if(!b.mg){var c=ab(U.G.xd,function(){b.fc()});b.mg=c}return a}};var qg={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};function rg(a,b){if(!Y(U))return!1;if(null==a||0>=a.length)return t.error('logCustomEvent requires a non-empty eventName, got "'+a+'". Ignoring event.'),!1;if(!Qb(a,"log custom event","the event name"))return!1;var c=r(Rb(b,"logCustomEvent","eventProperties",'log custom event "'+a+'"',"event")),d=c.next().value;c=c.next().value;if(!d)return!1;if(-1!==Hc(U.B).Ze.indexOf(a))return t.info('Custom Event "'+a+'" is blocklisted, ignoring.'),!1;d=O(z.CustomEvent,{n:a,p:c});if(d.A){t.info('Logged custom event "'+ a+'".');c=r(d.na);for(var e=c.next();!e.done;e=c.next())e=e.value,Qe.$().Da(X.Zc,[a,b],e)}return d.A}var We={};We.ac=rg;function sg(a,b,c,d,e){if(!Y(U))return!1;null==c&&(c="USD");null==d&&(d=1);if(null==a||0>=a.length)return t.error('logPurchase requires a non-empty productId, got "'+a+'", ignoring.'),!1;if(!Qb(a,"log purchase","the purchase name"))return!1;var g=parseFloat(b);if(isNaN(g))return t.error("logPurchase requires a numeric price, got "+b+", ignoring."),!1;g=g.toFixed(2);b=parseInt(d);if(isNaN(b))return t.error("logPurchase requires an integer quantity, got "+d+", ignoring."),!1;if(1>b||100<b)return t.error("logPurchase requires a quantity >1 and <100, got "+ b+", ignoring."),!1;c=c.toUpperCase();if(-1==="AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTC BTN BWP BYR BZD CAD CDF CHF CLF CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EEK EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MRO MTL MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMK ZMW ZWL".split(" ").indexOf(c))return t.error("logPurchase requires a valid currencyCode, got "+ c+", ignoring."),!1;var f=r(Rb(e,"logPurchase","purchaseProperties",'log purchase "'+a+'"',"purchase"));d=f.next().value;f=f.next().value;if(!d)return!1;if(-1!==Hc(U.B).kf.indexOf(a))return t.info('Purchase "'+a+'" is blocklisted, ignoring.'),!1;d=O(z.Pf,{pid:a,c:c,p:g,q:b,pr:f});if(d.A)for(t.info("Logged "+b+" purchase"+(1<b?"s":"")+' of "'+a+'" for '+c+" "+g+"."),c=r(d.na),g=c.next();!g.done;g=c.next())g=g.value,Qe.$().Da(X.kd,[a,e],g);return d.A}var cf={};cf.Dg=sg;function tg(a){Y(U)&&U.G.ec(a)}var bf={};bf.ec=tg;function ug(a,b){this.h=a;this.G=b;this.ka=new B;ve(U,this.ka);this.Sa()}pa(ug,rc);p=ug.prototype;p.Sa=function(){for(var a=S(this.h,Q.hd)||[],b=[],c=0;c<a.length;c++){var d=Pf(a[c]);null!=d&&b.push(d)}this.F=b;this.sb=$a(S(this.h,Q.gd))};p.Gc=function(){for(var a=[],b=0;b<this.F.length;b++)a.push(this.F[b].D());R(this.h,Q.hd,a)}; p.Xb=function(a){if(null!=a&&a.feed){this.Sa();a=a.feed;for(var b=[],c,d=S(this.h,Q.Hb)||{},e={},g=0;g<a.length;g++)c=a[g],c=Nf(c.id,c.type,c.viewed,c.title,c.image,c.description,Ya(c.created),Ya(c.updated),c.categories,Ya(c.expires_at),c.url,c.domain,c.aspect_ratio,c.extras,!1,!1),null!=c&&(d[c.id]&&(c.viewed=!0,e[c.id]=!0),b.push(c));R(this.h,Q.Hb,e);this.F=b;this.Gc();this.sb=new Date;R(this.h,Q.gd,this.sb);C(this.ka,new vg(this.F.slice(),this.sb))}}; function wg(){var a=xg.$();a.Sa();for(var b=[],c=new Date,d=0;d<a.F.length;d++)(null==a.F[d].expiresAt||a.F[d].expiresAt>=c)&&b.push(a.F[d]);return new vg(b,a.sb)}p.fc=function(){var a=this.G;Tc(a.P);Oc(a,!0)};p.Xd=function(a){return ab(this.ka,a)};p.clearData=function(a){null==a&&(a=!1);this.F=[];this.sb=null;a&&(T(this.h,Q.hd),T(this.h,Q.gd));C(this.ka,new vg(this.F.slice(),this.sb))};var xg={J:!1,W:null,$:function(){xg.sa();xg.W||(xg.W=new ug(U.h,U.G),Cf(xg.W));return xg.W},sa:function(){xg.J||(Ee(xg),xg.J=!0)},ca:function(){xg.W=null;xg.J=!1}};function yg(){if(Y(U))return xg.$().fc()};function vg(a,b){Mf.call(this,a,b)}pa(vg,Mf);vg.prototype.Od=function(a){Lf(a,!1)};vg.prototype.Nd=function(a){Jf(a,!1)};vg.prototype.Dd=function(){yg()};vg.prototype.Ed=function(){return!1};function zg(){if(Y(U))for(var a=document.querySelectorAll(".ab-feed"),b=0;b<a.length;b++)gg(a[b])};function Ag(){if(Y(U))return O(z.Qf,{n:Na.Nf}).A};function Bg(a,b,c){if(Y(U)){Je();He();var d=function(m,q){if(null==q)return m;for(var u=[],x=0;x<q.length;x++)u.push(q[x].toLowerCase());q=[];for(x=0;x<m.length;x++){for(var w=[],y=0;y<m[x].categories.length;y++)w.push(m[x].categories[y].toLowerCase());0<Ua(w,u).length&&q.push(m[x])}return q},e=U.o.openCardsInNewTab||U.o.openNewsFeedCardsInNewTab||!1,g=!1;null==a&&(a=document.body,g=!0);var f=!1,h=null;null==b?(h=wg(),lg(h,d(h.cards,c),h.lastUpdated,null,e),f=!0):h=new vg(d(b,c),new Date);var k=kg(h, e);if(f){if(null==h.lastUpdated||6E4<(new Date).valueOf()-h.lastUpdated.valueOf())t.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),jg(h,k);var l=(new Date).valueOf();b=Cg(function(m){var q=k.querySelectorAll(".ab-refresh-button")[0];if(null!=q){var u=500,x=parseInt(k.getAttribute("data-last-requested-refresh"));u=isNaN(x)?u-((new Date).valueOf()-l):u-((new Date).valueOf()-x);setTimeout(function(){q.className=q.className.replace(/fa-spin/g,"")},Math.max(u, 0))}lg(h,d(m.cards,c),m.lastUpdated,k,e)});mg(b,k)}var n=function(m){for(var q=m.querySelectorAll(".ab-feed"),u=null,x=0;x<q.length;x++)q[x].parentNode===m&&(u=q[x]);null!=u?(gg(u),u.parentNode.replaceChild(k,u)):m.appendChild(k);setTimeout(function(){k.className=k.className.replace("ab-hide","ab-show")},0);g&&k.focus();Ag();ig(h,k);ag(h.cards,m)};null!=a?n(a):window.onload=function(m){return function(){"function"===typeof m&&m();n(document.body)}}(window.onload)}}var qf={};qf.Xg=Bg;function Cg(a){if(Y(U))return xg.$().Xd(a)};function Dg(){var a=Ue();var b=U.S;var c=U.ra,d=U.wa,e=U.o.serviceWorkerLocation,g=U.o.safariWebsitePushId,f=U.B,h=U.o.disablePushTokenMaintenance,k=U.o.manageServiceWorkerExternally,l=U.h;this.ub=a;this.S=b;this.ra=c;this.og=d+"/safari/"+b;this.Pe=e||"/service-worker.js";this.Ec=g;this.B=f;this.wd=h||!1;this.hg=k||!1;this.h=l;this.Ad="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.zd= "safari"in window&&"pushNotification"in window.safari&&"function"===typeof window.safari.pushNotification.permission&&"function"===typeof window.safari.pushNotification.requestPermission}function Ce(a){return a.Ad||a.zd}function Wc(a){var b=Ce(a)&&(!("Notification"in window)||null==window.Notification);return Ce(a)&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission||b} function Vc(a){return Ce(a)&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission}function Eg(a,b,c,d,e,g){b.unsubscribe().then(function(f){f?Fg(a,c,d,e,g):(t.error("Failed to unsubscribe device from push."),"function"===typeof g&&g(!1))}).catch(function(f){t.error("Push unsubscription error: "+f);"function"===typeof g&&g(!1)})} function Gg(a,b,c,d){var e=function(h){if("string"===typeof h)return h;if(0!==h.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return h.endpoint;var k=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(k=h.endpoint+"/"+h.subscriptionId);return k}(b),g=null,f=null;if(null!=b.getKey)try{g=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("auth"))))}catch(h){if("invalid arguments"!== h.message)throw h;}b=function(h){var k;return h.options&&(k=h.options.applicationServerKey)&&k.byteLength&&0<k.byteLength?btoa(String.fromCharCode.apply(null,new Uint8Array(k))).replace(/\+/g,"-").replace(/\//g,"_"):null}(b);a.ub.Td(e,d,g,f,b);e&&"function"===typeof c&&c(e,g,f)}function Hg(a,b,c){a.ub.dc(!1);t.info(b);"function"===typeof c&&c(!1)} function Ig(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.og,b,{api_key:a.S,device_id:vc(a.ra).id},function(g){"granted"===g.permission&&a.ub.Eb(Tb.OPTED_IN);Ig(a,b,g,d,e)})}catch(g){Hg(a,"Could not request permission for push: "+g,e)}else"denied"===c.permission?Hg(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(t.info("Device successfully subscribed to push."), Gg(a,c.deviceToken,d,new Date))}function Jg(a,b,c){function d(f){switch(f){case "granted":"function"===typeof a&&a();break;case "default":"function"===typeof b&&b();break;case "denied":"function"===typeof c&&c();break;default:t.error("Received unexpected permission result "+f)}}var e=!1,g=window.Notification.requestPermission(function(f){e&&d(f)});g?g.then(function(f){d(f)}):e=!0} function Fg(a,b,c,d,e){var g={userVisibleOnly:!0};null!=c&&(g.applicationServerKey=c);b.pushManager.subscribe(g).then(function(f){t.info("Device successfully subscribed to push.");Gg(a,f,d,new Date)}).catch(function(f){Wc(a)?(t.info("Permission for push notifications was denied."),"function"===typeof e&&e(!1)):t.error("Push subscription failed: "+f)})} function Kg(a){return a.wd?navigator.serviceWorker.getRegistration():navigator.serviceWorker.register(a.Pe).then(function(){return navigator.serviceWorker.ready.then(function(b){b&&"function"===typeof b.update&&b.update().catch(function(c){t.info("ServiceWorker update failed: "+c)});return b})})} Dg.prototype.subscribe=function(a,b){var c=this;if(Ce(this))if(this.Ad){if(!this.wd&&null!=window.location){var d=this.Pe;-1===d.indexOf(window.location.host)&&(d=window.location.host+d);-1===d.indexOf(window.location.protocol)&&(d=window.location.protocol+"//"+d);if(0!==Se.cf().indexOf(d.substr(0,d.lastIndexOf("/")+1))){t.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 "+d+")");return}}if(Wc(this))Hg(this, "Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",b);else if(this.B&&!Hc(this.B).Fa&&0===Hc(this.B).Zb)t.info("Waiting for VAPID key from server config before subscribing to push."),ad(this.B,function(){c.subscribe(a,b)});else{var e=Vc(this);Jg(function(){e||c.ub.Eb(Tb.OPTED_IN);Kg(c).then(function(g){null==g?(t.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."), "function"===typeof b&&b()):g.pushManager.getSubscription().then(function(f){var h=null;c.B&&null!=Hc(c.B).Fa&&(h=Ea.ah(Hc(c.B).Fa));if(f){var k=null,l=null,n=S(c.h,Q.tc);if(n&&!A(n)){try{var m=(new Df(n.e,$a(n.c),n.p,n.u,n.v)).Xe}catch(q){m=null}null==m||isNaN(m.getTime())||0===m.getTime()||(k=m,l=new Date(k),l.setMonth(k.getMonth()+6))}null!=h&&f.options&&f.options.applicationServerKey&&f.options.applicationServerKey.byteLength&&0<f.options.applicationServerKey.byteLength&&!Wa(h,new Uint8Array(f.options.applicationServerKey))? (12<f.options.applicationServerKey.byteLength?t.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):t.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."),Eg(c,f,g,h,a,b)):f.expirationTime&&new Date(f.expirationTime)<=(new Date).valueOf()?(t.info("Push subscription is expired, creating new subscription."),Eg(c,f,g,h,a, b)):n&&A(n)?Eg(c,f,g,h,a,b):null==l?(t.info("No push subscription creation date found, creating new subscription."),Eg(c,f,g,h,a,b)):l<=(new Date).valueOf()?(t.info("Push subscription older than 6 months, creating new subscription."),Eg(c,f,g,h,a,b)):(t.info("Device already subscribed to push, sending existing subscription to backend."),Gg(c,f,a,k))}else Fg(c,g,h,a,b)}).catch(function(f){t.error("Error checking current push subscriptions: "+f)})}).catch(function(g){t.error("ServiceWorker registration failed: "+ g)})},function(){var g="Permission for push notifications was ignored.";Wc(c)&&(g+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");t.info(g);"function"===typeof b&&b(!0)},function(){t.info("Permission for push notifications was denied.");"function"===typeof b&&b(!1)})}}else this.zd&&(null==this.Ec||""===this.Ec?t.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"):(d=window.safari.pushNotification.permission(this.Ec), Ig(this,this.Ec,d,a,b)));else t.info(this.$f)}; Dg.prototype.unsubscribe=function(a,b){var c=this;Ce(this)?this.Ad?navigator.serviceWorker.getRegistration().then(function(d){d?d.pushManager.getSubscription().then(function(e){e&&(c.ub.dc(!0),e.unsubscribe().then(function(g){g?(t.info("Device successfully unsubscribed from push."),"function"===typeof a&&a()):(t.error("Failed to unsubscribe device from push."),"function"===typeof b&&b());c.wd||(d.unregister(),t.info("Service worker successfully unregistered."))}).catch(function(g){t.error("Push unsubscription error: "+g); "function"===typeof b&&b()}))}).catch(function(e){t.error("Error unsubscribing from push: "+e);"function"===typeof b&&b()}):(t.info("Device already unsubscribed from push."),"function"===typeof a&&a())}):this.zd&&(this.ub.dc(!0),t.info("Device unsubscribed from push."),"function"===typeof a&&a()):t.info(this.$f)};var Lg={J:!1,pushManager:null,jb:function(){Lg.sa();Lg.pushManager||(Lg.pushManager=new Dg);return Lg.pushManager},sa:function(){Lg.J||(Ee(Lg),Lg.J=!0)},ca:function(){Lg.pushManager=null;Lg.J=!1}},Uc={default:Lg};function Mg(a,b){if(Y(U))return Lg.jb().subscribe(function(c,d,e){U.G.ec();"function"===typeof a&&a(c,d,e)},b)}var Xe={};Xe.Bb=Mg;function Ng(a,b){if(Y(U))return Lg.jb().unsubscribe(a,b)}var df={};df.$g=Ng;var Z="object"===typeof brazeInterface?brazeInterface:{};Z.initialize=function(a,b){return U.Md(a,b)};Z.destroy=function(){t.info("Destroying Braze instance");U.ca(!0)};Z.getDeviceId=function(a){Y(U)&&(null==a&&t.error("getDeviceId must be supplied with a callback. e.g., braze.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"===typeof a&&a(vc(U.ra).id))};Z.toggleLogging=function(){t.Yg()};Z.setLogger=function(a){t.Tg(a)}; Z.openSession=function(){if(Y(U)){Sc(U.G);var a=Oa.pa,b=new Ga(a);Ka(b,a.N.me,function(c,d){function e(){Qe.$().Da(X.le,[f],h)}var g=d.lastClick,f=d.trackingString;t.info("Firing push click trigger from "+f+" push click at "+g);var h=Zc(g,f);Yc(e,e);La(b,a.N.me,c)});Ma(b,a.N.ke,function(c){var d=U.G;c=r(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.api_key!==d.S){var g=Oa.pa;(new Ga(g)).setItem(g.N.ke,Fa.Ua(),e)}else Bc(d.M,e.events,e.attributes)})}}; Z.changeUser=function(a,b){if(!Y(U))return!1;if(null==a||0===a.length||a!==a)return t.error("changeUser requires a non-empty userId."),!1;if(997<Cb(a))return t.error('Rejected user id "'+a+'" because it is longer than 997 bytes.'),!1;if(null!=b&&!Pb(b,"set signature for new user","signature"))return!1;U.G.Ub(a.toString(),U.eb,b)};Z.getUser=Te;Z.requestImmediateDataFlush=tg;Z.removeSubscription=fg;Z.removeAllSubscriptions=function(){Y(U)&&U.U()};Z.logCustomEvent=rg;Z.logPurchase=sg; Z.isPushSupported=function(){if(Y(U))return Ce(Lg.jb())};Z.isPushBlocked=function(){if(Y(U))return Wc(Lg.jb())};Z.isPushPermissionGranted=function(){if(Y(U))return Vc(Lg.jb())};Z.requestPushPermission=Mg;Z.unregisterPush=Ng;Z.setSdkAuthenticationSignature=function(a){if(!Y(U)||""===a||!Pb(a,"set signature","signature",!1))return!1;qc(U.L,a);return!0};Z.subscribeToSdkAuthenticationFailures=function(a){if(Y(U))return ab(U.L.xe,a)}; Z.addSdkMetadata=function(a){if(Y(U)){if(!A(a))return t.error("Cannot set SDK metadata because metadata is not an array."),!1;for(var b=r(a),c=b.next();!c.done;c=b.next())if(!Ra(qg,c.value,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;b=U.M;a=r(a);for(c=a.next();!c.done;c=a.next())c=c.value,-1===b.Qb.indexOf(c)&&b.Qb.push(c);return!0}}; Z.disableSDK=function(){null!=U.G&&U.G.ec();var a=new lc(null,!0),b=a.store,c=new Date;c.setTime(c.getTime()+6E4*a.De);b.call(a,"ab.optOut","This-cookie-will-expire-in-"+c.getFullYear());a=Oa.pa;(new Ga(a)).setItem(a.N.jd,a.uc,!0);U.ca(!1);U.rb=!0};Z.enableSDK=function(){(new lc(null,!0)).remove("ab.optOut");var a=Oa.pa;La(new Ga(a),a.N.jd,a.uc);U.ca(!1);U.rb=!1}; Z.wipeData=function(){if(null==U.h)throw Error("Braze must be initialized before calling methods.");U.h.clearData();for(var a=Va(Oa),b=0;b<a.length;b++)(new Ga(Oa[a[b]])).clearData();if(Y(U))for(a=r(U.eb),b=a.next();!b.done;b=a.next())b.value.clearData(!0)};Z.handleBrazeAction=function(a,b){Ve(a,b)};Z.isDisabled=function(){return!!(new lc(null,!0)).ma("ab.optOut")};Z.logCardImpressions=Lf;Z.logContentCardImpressions=function(a){return Lf(a,!0)};Z.logCardClick=Jf;Z.logCardDismissal=Kf;Z.Banner=jb; Z.CaptionedImage=kb;Z.ClassicCard=lb;Z.ControlCard=mb;Z.Card=D;Z.Card.prototype.dismissCard=D.prototype.Ye;Z.Card.prototype.subscribeToClickedEvent=D.prototype.ic;Z.Card.prototype.subscribeToDismissedEvent=D.prototype.Wd;Z.Card.prototype.removeSubscription=D.prototype.ea;Z.Card.prototype.removeAllSubscriptions=D.prototype.U;Z.Card.fromContentCardsJson=Of;Z.requestContentCardsRefresh=Yf;Z.getCachedContentCards=function(){if(Y(U))return Uf(Xf.$(),!1)};Z.subscribeToContentCardsUpdates=pg; Z.logContentCardsDisplayed=function(){if(Y(U))return wc("logContentCardsDisplayed","method"),!0};Z.ContentCards=Wf;Z.ContentCards.prototype.getUnviewedCardCount=Wf.prototype.yg;Z.requestFeedRefresh=yg;Z.getCachedFeed=function(){if(Y(U))return wg()};Z.subscribeToFeedUpdates=Cg;Z.logFeedDisplayed=Ag;Z.Feed=vg;Z.Feed.prototype.getUnreadCardCount=vg.prototype.df;Z.logInAppMessageImpression=nf;Z.logInAppMessageClick=Pe;Z.logInAppMessageButtonClick=ef;Z.logInAppMessageHtmlClick=Ye; Z.subscribeToInAppMessage=rf;Z.ControlMessage=ed;Z.FullScreenMessage=Md;Z.HtmlMessage=Jd;Z.ModalMessage=Nd;Z.SlideUpMessage=Od;Z.InAppMessage=W;Z.InAppMessage.SlideFrom=nd;Z.InAppMessage.ClickAction=od;Z.InAppMessage.DismissType=qd;Z.InAppMessage.OpenTarget=pd;Z.InAppMessage.ImageStyle=rd;Z.InAppMessage.TextAlignment=md;Z.InAppMessage.Orientation=Ed;Z.InAppMessage.CropType=td;Z.InAppMessage.fromJson=Pd;Z.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.ic; Z.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Wd;Z.InAppMessage.prototype.removeSubscription=W.prototype.ea;Z.InAppMessage.prototype.removeAllSubscriptions=W.prototype.U;Z.InAppMessage.prototype.closeMessage=W.prototype.We;Z.InAppMessageButton=Kd;Z.InAppMessageButton.prototype.subscribeToClickedEvent=Kd.prototype.ic;Z.InAppMessageButton.prototype.removeSubscription=Kd.prototype.ea;Z.InAppMessageButton.prototype.removeAllSubscriptions=Kd.prototype.U;Z.BrazeSdkMetadata=qg; Z.DeviceProperties=sc;Z.User=J;Z.User.Genders=Sb;Z.User.NotificationSubscriptionTypes=Tb;Z.User.prototype.getUserId=J.prototype.T;Z.User.prototype.setFirstName=J.prototype.Og;Z.User.prototype.setLastName=J.prototype.Sg;Z.User.prototype.setEmail=J.prototype.Ng;Z.User.prototype.setGender=J.prototype.Pg;Z.User.prototype.setDateOfBirth=J.prototype.Mg;Z.User.prototype.setCountry=J.prototype.Kg;Z.User.prototype.setHomeCity=J.prototype.Qg;Z.User.prototype.setLanguage=J.prototype.Rg; Z.User.prototype.setEmailNotificationSubscriptionType=J.prototype.Wc;Z.User.prototype.setPushNotificationSubscriptionType=J.prototype.Eb;Z.User.prototype.setPhoneNumber=J.prototype.Ug;Z.User.prototype.setLastKnownLocation=J.prototype.Vd;Z.User.prototype.setCustomUserAttribute=J.prototype.Db;Z.User.prototype.addToCustomAttributeArray=J.prototype.Hc;Z.User.prototype.removeFromCustomAttributeArray=J.prototype.Uc;Z.User.prototype.incrementCustomUserAttribute=J.prototype.zg;Z.User.prototype.addAlias=J.prototype.rg; Z.User.prototype.setCustomLocationAttribute=J.prototype.Lg;Z.User.prototype.addToSubscriptionGroup=J.prototype.Ic;Z.User.prototype.removeFromSubscriptionGroup=J.prototype.Vc;Z.WindowUtils={};Z.WindowUtils.openUri=Re;Z.automaticallyShowInAppMessages=function(){if(Y(U)){Ke();He();var a=xe.Z();if(null==a.ye){var b=rf(function(c){return of(c)});a.ye=b}return a.ye}};Z.showInAppMessage=of;Z.showFeed=Bg;Z.destroyFeed=zg;Z.toggleFeed=function(a,b,c){Y(U)&&(0<document.querySelectorAll(".ab-feed").length?zg():Bg(a,b,c))};Z.showContentCards=og;Z.hideContentCards=ng;Z.toggleContentCards=function(a,b){Y(U)&&(0<document.querySelectorAll(".ab-feed").length?ng():og(a,b))};return brazeInterface});var a=window.brazeQueue||("undefined"!==typeof brazeQueue?brazeQueue:null); if("undefined"!==typeof a&&a&&a.length&&0<a.length){var b=a===window.brazeQueue;window.brazeQueue=brazeQueue=null;for(var c=0;c<a.length;c++)if(a[c].callee){var d=a[c].callee.name;if(null==d||""===d)d=/^function ([\w]*)\(/g.exec(a[c].callee.toString())[1];if(null!=d&&""!==d){for(var e=d.split("_"),f=b?window.braze:braze,g=this,h="braze",k=0;k<e.length;k++){if("prototype"===e[k]){var l=eval({"braze.ContentCards":"braze.getCachedContentCards","braze.Feed":"braze.getCachedFeed","braze.User":"braze.getUser"}[h]); g=f=null!=l?l.apply():new f.constructor}else f=f[e[k]];h+="."+e[k]}null!=f&&"function"===typeof f&&f.apply(g,a[c])}}}; }).call(window);