"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1141],{193:(e,t,i)=>{i.d(t,{$P:()=>o,BY:()=>r,E$:()=>u,Gv:()=>l,HP:()=>h,cy:()=>n,n4:()=>function e(t,i){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;let s=t.toString();if(s!==i.toString())return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}let a="[object Array]"===s;if(!a){if("object"!=typeof t||"object"!=typeof i)return!1;let e=t.constructor,s=i.constructor;if(e!==s&&!("function"==typeof e&&e instanceof e&&"function"==typeof s&&s instanceof s)&&"constructor"in t&&"constructor"in i)return!1}let r=[],n=[],o=r.length;for(;o--;)if(r[o]===t)return n[o]===i;if(r.push(t),n.push(i),a){if((o=t.length)!==i.length)return!1;for(;o--;)if(!e(t[o],i[o]))return!1}else{let s;let a=h(t);if(o=a.length,h(i).length!==o)return!1;for(;o--;)if(s=a[o],!Object.prototype.hasOwnProperty.call(i,s)||!e(t[s],i[s]))return!1}return r.pop(),n.pop(),!0},zu:()=>a});var s=i(23916);function a(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&void 0!==e[i]&&t.push(e[i]);return t}function r(e,t,i,r){let n=a(e);return -1!==n.indexOf(t)||(s.A.error(`${i} Valid values from ${r} are "${n.join('"/"')}".`),!1)}function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Date]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,...t){null==e&&(e=[]);let i=[],s=arguments.length;for(let t=0,a=e.length;t{i.d(t,{g:()=>d,x:()=>c});var s=i(78189),a=i(30741),r=i(3684),n=i(62389),o=i(81648),l=i(36153),u=i(4869),h=i(23916);function d(e){let t;if(!e)return null;if(e.is_control)return a.A.fromJson(e);let i=e.type;null!=i&&(i=i.toUpperCase());let d=e.message,c=e.text_align_message,p=e.slide_from,b=e.extras,g=e.trigger_id,f=e.click_action,m=e.uri,A=e.open_target,v=e.message_close,y=e.duration,w=e.icon,x=e.image_url,E=e.image_style,C=e.icon_color,S=e.icon_bg_color,k=e.bg_color,N=e.text_color,T=e.close_btn_color,_=e.header,I=e.text_align_header,O=e.header_text_color,D=e.frame_color,B=[],M=e.btns;null==M&&(M=[]);for(let e=0;e{i.d(t,{A:()=>N});var s=i(5631),a=i(17729),r=i(30741),n=i(62389),o=i(78189),l=i(81648),u=i(16016),h=i(2287),d=i(8670),c=i(13507),p=i(40772),b=i(23916),g=i(86283),f=i(63788),m=i(72483),A=i(87196),v=i(54070),y=i(83353),w=i(28947),x=i(3684),E=i(36153),C=i(4869);class S{constructor(e,t,i,s){this.S=e,this.T=t,this.C=i,this.Cs=s,this.S=e,this.T=t,this.C=i,this.Cs=s,this.Mi=new g.A,a.Ay.N(this.Mi),this._i=1e3,this.Pi=6e4,this.Gi=null,this.$i=null,this.Oi=null}Xi(){return this.Mi}Hi(e){return this.Mi.Ft(e)}Ji(){return this.Gi}Ki(e){this.Gi=e}ut(e,t,i,s){let a;let o=new c.A;if(t===p.w.Li||e instanceof r.A){if(!e.ts())return b.A.info("This in-app message has already received an impression. Ignoring analytics event."),o}else if((t===p.w.Qi||e instanceof n.A&&t===p.w.Vi)&&!e.$t(s))return b.A.info("This in-app message has already received a click. Ignoring analytics event."),o;return null==(a=e instanceof r.A?{trigger_ids:[e.triggerId]}:this.Wi(e))?o:(e.messageExtras&&(a.message_extras=e.messageExtras),null!=i&&(a.bid=i),u.A.ut(t,a))}Yi(e,t){let i=new c.A;if(!e.$t())return b.A.info("This in-app message button has already received a click. Ignoring analytics event."),i;let s=this.Wi(t);return null==s?i:e.id===l.A.Zi?(b.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=e.id&&(s.bid=e.id),u.A.ut(p.w.Vi,s))}Ir(e){let t=e.messageFields;return null!=t&&t.is_push_primer||!1}Mr(e){let t;if(!(e instanceof o.A))return;let i=e=>{if(!e)return;let t=(0,A.jj)(e);return(0,A.qj)(t)?(0,A.$6)(A.mY.Tr,"In-App Message"):(0,A.dy)(t)&&!v.A.wr()?(0,A.$6)(A.mY.Br,"In-App Message"):void 0};if(this.Ir(e)&&!v.A.wr())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";for(let s of e.buttons||[])if(s.clickAction===o.A.ClickAction.URI&&s.uri&&m.nx.test(s.uri)&&(t=i(s.uri)))return t;return e.clickAction===o.A.ClickAction.URI&&e.uri&&m.nx.test(e.uri)?i(e.uri):void 0}_r(e,t){t!==this.Oi&&this.qr(),this.$i=e,this.Oi=t}qr(){null!=this.$i&&(clearTimeout(this.$i),this.$i=null,this.Oi=null)}Er(e,t,i,a){let r=this.S;if(!r)return;this.Oi&&e.triggerId!==this.Oi&&(this.qr(),y.A.wi(this.C,y.A.O.Gr));let n=r.Nr(!1,!1),o=r.H(n);o.template={trigger_id:e.triggerId,trigger_event_type:t},null!=i&&(o.template.data=i.$r());let l=r.J(o,y.A.O.Gr);r.V(o,(r=-1)=>{let n=this.S;if(!n)return;let u=new Date().valueOf();y.A.W(this.C,y.A.O.Gr,u),-1!==r&&l.push(["X-Braze-Req-Tokens-Remaining",r.toString()]);let c,p,g=!1;s.A.Y({url:`${n.Z()}/template/`,data:o,headers:l,tt:t=>{if(!n.st(o,t,l))return void("function"==typeof e.Cr&&e.Cr());if(n.it(),null==t||null==t.templated_message)return;let i=t.templated_message;if(i.type!==f.A.Xr.Or)return;let s=(0,h.g)(i.data);if(null==s)return;let a=this.Mr(s);if(a)return b.A.error(a),void("function"==typeof e.Cr&&e.Cr());"function"==typeof e.Hr&&e.Hr(s)},error:t=>{g=!0,c=t,p=`getting user personalization for message ${e.triggerId}.`},nt:(s,r)=>{if(new Date().valueOf()-e.Jr{this.Er(e,t,i,s)},y.A.O.Gr,t=>this._r(t,e.triggerId),()=>this.qr(),s)}g&&n.et(c,p)}})},y.A.O.Gr)}Wi(e){if(null==e.triggerId)return b.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let t={};return null!=e.triggerId&&(t.trigger_ids=[e.triggerId]),t}sn(e){return!!this.C&&!(!(e&&e instanceof o.A&&e.constructor!==o.A)||e instanceof r.A)&&this.C.Bt(w.d.gt.Lr,e.bt())}Ar(){let e;if(!this.C)return null;let t=this.C.ft(w.d.gt.Lr);if(!t)return null;switch(t.type){case o.A.po.Qr:e=x.A.Ur(t);break;case o.A.po.Vr:case o.A.po.fo:case o.A.po.Fo:e=n.A.Ur(t);break;case o.A.po.Wr:case o.A.po.Ao:e=E.A.Ur(t);break;case o.A.po.Yr:e=C.A.Ur(t)}return e&&this.Zr(),e}Zr(){this.C&&this.C.Ut(w.d.gt.Lr)}}let k={aa:null,l:!1,ea:()=>(k.p(),k.aa||(k.aa=new S(a.Ay.g(),a.Ay.P(),a.Ay.j(),a.Ay.ir())),k.aa),p:()=>{k.l||(a.Ay.h(k),k.l=!0)},destroy:()=>{k.aa=null,k.l=!1}},N=k},2720:(e,t,i)=>{i.d(t,{c:()=>s});let s={Wo:32,yo:9,Xo:13,_h:27}},3684:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(2287),a=i(78189);class r extends a.A{constructor(e,t,i,s,r,n,o,l,u,h,d,c,p,b,g,f,m,A,v,y,w,x,E,C,S,k,N,T,_){super(e,t,void 0,i,s,r,n,o,l=l||a.A.DismissType.MANUAL,u,h,d,c,p,b,g,f,m,A,v,y,w,x,E,C,S=S||a.A.CropType.CENTER_CROP,k=k||a.A.Orientation.PORTRAIT,N,T,_),this.Co=a.A.TextAlignment.CENTER}bt(){return super.bt(r.ds)}static Ur(e){return new r(e[a.A.es.ra],e[a.A.es.sa],e[a.A.es.vs],e[a.A.es.ta],e[a.A.es.ia],e[a.A.es.URI],e[a.A.es.oa],e[a.A.es.pa],e[a.A.es.ma],e[a.A.es.na],e[a.A.es.fs],e[a.A.es.ua],e[a.A.es.ca],e[a.A.es.fa],e[a.A.es.da],e[a.A.es.la],e[a.A.es.ga],e[a.A.es.ja],e[a.A.es.xa],e[a.A.es.za],e[a.A.es.ha],e[a.A.es.va],e[a.A.es.wa],(0,s.x)(e[a.A.es.ya]),e[a.A.es.Sa],e[a.A.es.ba],e[a.A.es.ka],e[a.A.es.CSS],e[a.A.es.qa])}}r.ds=a.A.po.Qr},4869:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(78189),a=i(19388);class r extends s.A{constructor(e,t,i,a,r,n,o,l,u,h,d,c,p,b,g,f,m,A,v,y,w,x){super(e,t=t||s.A.TextAlignment.START,i,a,r,n,o,l,u,h,d,c,void 0,p,b,g=g||s.A.th.Rh,f=f||s.A.th.Mh,m,A,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y,w,x),this.Co=s.A.TextAlignment.START}wo(){return!1}Mo(){let e=document.createElement("span");return e.appendChild(document.createTextNode(this.message||"")),e}Ah(e){let t=e.getElementsByClassName("ab-in-app-message")[0];a.e0.Ho(t,!0,!0)||(this.slideFrom===s.A.SlideFrom.TOP?t.style.top="0px":t.style.bottom="0px"),super.Ah(e)}bt(){return super.bt(r.ds)}static Ur(e){return new r(e[s.A.es.ra],e[s.A.es.sa],e[s.A.es.Sh],e[s.A.es.vs],e[s.A.es.ta],e[s.A.es.ia],e[s.A.es.URI],e[s.A.es.oa],e[s.A.es.pa],e[s.A.es.ma],e[s.A.es.na],e[s.A.es.fs],e[s.A.es.ca],e[s.A.es.fa],e[s.A.es.da],e[s.A.es.la],e[s.A.es.ga],e[s.A.es.ja],e[s.A.es.xa],e[s.A.es.ka],e[s.A.es.CSS],e[s.A.es.qa])}}r.ds=s.A.po.Yr},5245:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(17729),a=i(81985),r=i(193),n=i(16708);class o{constructor(e,t,i,s,a){this.userId=e,this.type=t,this.time=i,this.sessionId=s,this.data=a,this.userId=e,this.type=t,this.time=(0,n.S3)(i),this.sessionId=s,this.data=a}$r(){var e;let t={name:this.type,time:(0,n.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(t.user_id=this.userId);let i=(null===(e=s.Ay.Sr())||void 0===e?void 0:e.wh())||!1;if(!t.user_id&&!i){let e=(0,a.b)(s.Ay.j());e&&(t.alias=e)}return t}bt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new o(e.user_id,e.name,e.time,e.session_id,e.data)}static RE(e){return null!=e&&(0,r.Gv)(e)&&null!=e.t&&""!==e.t}static En(e){return new o(e.u,e.t,e.ts,e.s,e.d)}}},5631:(e,t,i)=>{i.d(t,{A:()=>o,s:()=>n});var s=i(23916),a=i(65718),r=i(99634);let n=e=>{let t,i;let s={},a=e.toString().split("\r\n");if(!a)return s;for(let e of a)e&&(t=e.slice(0,e.indexOf(":")).toLowerCase().trim(),i=e.slice(e.indexOf(":")+1).trim(),s[t]=i);return s},o={Y:e=>{let t,i;try{let r=!1;if(window.XMLHttpRequest&&(r=!0),!r)return void s.A.error("This browser does not have any supported ajax options!");t=new XMLHttpRequest;let n=i=>{"function"==typeof e.error&&e.error(t.status),"function"==typeof e.nt&&e.nt(!1,i)};for(let s of(t.onload=()=>{let i=!1;if(4!==t.readyState)return;i=t.status>=200&&t.status<300||304===t.status;let s=t.getAllResponseHeaders();if(i){if("function"==typeof e.tt){let i;try{i=JSON.parse(t.responseText)}catch(r){let i={error:""===t.responseText?a.A.gu:a.A.qu,response:t.responseText};(0,e.tt)(i,s)}i&&e.tt(i,s)}"function"==typeof e.nt&&e.nt(!0,s)}else n(s)},t.onerror=()=>{n(t.getAllResponseHeaders())},t.ontimeout=()=>{n()},i=JSON.stringify(e.data),t.open("POST",e.url,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers||[]))t.setRequestHeader(s[0],s[1]);t.send(i)}catch(e){s.A.error(`Network request error: ${(0,r.u)(e)}`)}}}},5644:(e,t,i)=>{i.d(t,{j3:()=>s,uD:()=>a});let s={PORTRAIT:0,LANDSCAPE:1},a={openUri:function(e,t,i){e&&(t||null!=i&&i.metaKey?window.open(e):window.location=e)},Uo:function(){return screen.width<=600},Jo:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?s.LANDSCAPE:s.PORTRAIT;let e=window;if("screen"in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?s.LANDSCAPE:s.PORTRAIT}return s.PORTRAIT},Ga:function(){return window.location.href}}},6036:(e,t,i)=>{i.d(t,{s:()=>r});var s=i(31065),a=i(41470);function r(){(0,s.n)(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;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button[dir=rtl]{left:0}.ab-feed .ab-card .ab-close-button[dir=ltr]{right:0}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',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}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=ltr]{padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=rtl]{padding-right:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area[dir=rtl]{padding:20px 25px 25px 0}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),(0,a.N)()}},7576:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(85251),a=i(16016),r=i(13507),n=i(23916),o=i(40772),l=i(28947);class u{constructor(e){this.C=e,this.C=e}logClick(e,t){let i=new r.A;if(e.$t(),null==e.url||""===e.url)return n.A.info(`Card ${e.id} has no url. Not logging click to Braze servers.`),i;if(t&&e.id&&this.C){let t=this.C.ft(l.d.gt.Kt)||{};t[e.id]=!0,this.C.Bt(l.d.gt.Kt,t)}let s=this.Lt([e]);if(null==s)return i;let u=t?o.w.Mt:o.w.Ot;return a.A.ut(u,s)}Pt(e){let t=new r.A;if(!e.Qt())return n.A.info(`Card ${e.id} refused this dismissal. Ignoring analytics event.`),t;if(e.id&&this.C){let t=this.C.ft(l.d.gt.Vt)||{};t[e.id]=!0,this.C.Bt(l.d.gt.Vt,t)}let i=this.Lt([e]);return null==i?t:a.A.ut(o.w.Wt,i)}Xt(e,t){let i=new r.A(!0),u=[],h=[],d={};for(let i of(this.C&&(d=t?this.C.ft(l.d.gt.Yt)||{}:this.C.ft(l.d.gt.Zt)||{}),e))i.ts()?(i instanceof s.A?h.push(i):u.push(i),i.id&&(d[i.id]=!0)):n.A.info(`Card ${i.id} logged an impression too recently. Ignoring analytics event.`);let c=this.Lt(u),p=this.Lt(h);if(null==c&&null==p)return i.tt=!1,i;if(this.C&&(t?this.C.Bt(l.d.gt.Yt,d):this.C.Bt(l.d.gt.Zt,d)),null!=c){let e=t?o.w.ss:o.w.ns,s=a.A.ut(e,c);i.rs(s)}if(null!=p&&t){let e=a.A.ut(o.w.os,p);i.rs(e)}return i}Lt(e){let t,i=null;for(let s=0;s(d.p(),d.aa||(d.aa=new u(h.Ay.j())),d.aa),p:()=>{d.l||(h.Ay.h(d),d.l=!0)},destroy:()=>{d.aa=null,d.l=!1}},c=d},8670:(e,t,i)=>{i.d(t,{C:()=>s});let s=(e,t)=>(e=Math.ceil(e),Math.floor(Math.random()*((t=Math.floor(t))-e+1))+e)},10027:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(16708),a=i(98048),r=i(86283),n=i(23916);class o{constructor(e,t,i,s,a,r,n,o,l,u,h,d,c,p,b,g){this.id=e,this.viewed=t,this.title=i,this.imageUrl=s,this.description=a,this.created=r,this.updated=n,this.categories=o,this.expiresAt=l,this.url=u,this.linkText=h,this.aspectRatio=d,this.extras=c,this.pinned=p,this.dismissible=b,this.clicked=g,this.id=e,this.viewed=t||!1,this.title=i||"",this.imageUrl=s,this.description=a||"",this.created=r||null,this.updated=n||null,this.categories=o||[],this.expiresAt=l||null,this.url=u,this.linkText=h,null==d?this.aspectRatio=null:(d=parseFloat(d.toString()),this.aspectRatio=isNaN(d)?null:d),this.extras=c||{},this.pinned=p||!1,this.dismissible=b||!1,this.dismissed=!1,this.clicked=g||!1,this.isControl=!1,this.test=!1,this.ti=null,this.ii=null,this.si=null}subscribeToClickedEvent(e){return this.hi().Ft(e)}subscribeToDismissedEvent(e){return this.ni().Ft(e)}removeSubscription(e){this.hi().removeSubscription(e),this.ni().removeSubscription(e)}removeAllSubscriptions(){this.hi().removeAllSubscriptions(),this.ni().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let e=this.te;!e&&this.id&&(e=document.getElementById(this.id)),e&&(e.style.height=e.offsetHeight+"px",e.className=e.className+" ab-hide",setTimeout(function(){e&&e.parentNode&&(e.style.height="0",e.style.margin="0",setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},o.li))},a.RW))}hi(){return null==this.ti&&(this.ti=new r.A),this.ti}ni(){return null==this.ii&&(this.ii=new r.A),this.ii}ts(){let e=new Date().valueOf();return!(null!=this.si&&e-this.si{i.r(t),i.d(t,{changeUser:()=>l});var s=i(17729),a=i(75093),r=i(23916),n=i(42674),o=i(72483);function l(e,t){if(!s.Ay.rr())return;if(null==e||0===e.length||e!=e)return void r.A.error("changeUser requires a non-empty userId.");if((0,a.N)(e)>n.A.ur)return void r.A.error(`Rejected user id "${e}" because it is longer than ${n.A.ur} bytes.`);if(null!=t&&!(0,o.rK)(t,"set signature for new user","signature"))return;let i=s.Ay.nn();i&&i.changeUser(e.toString(),s.Ay.ar(),t)}},13507:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e=!1,t=[]){this.tt=e,this.$e=t,this.tt=e,this.$e=t}rs(e){this.tt=this.tt&&e.tt,this.$e.push(...e.$e)}}},15141:(e,t,i)=>{function s(e){null==e&&(e="");let t=e.split("?").slice(1).join("?"),i={};if(null!=t){let e=t.split("&");for(let t=0;ta,y:()=>s})},16016:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(23916),a=i(17729),r=i(5245),n=i(13507);let o={ut:(e,t,i)=>{var o,l;let u=new n.A,h=a.Ay.P();if(!h)return s.A.info(`Not logging event with type "${e}" because the current session ID could not be found.`),u;let d=h.Qo();return u.$e.push(new r.A(i||(null===(o=a.Ay.ir())||void 0===o?void 0:o.getUserId()),e,new Date().valueOf(),d,t)),u.tt=(null===(l=a.Ay.j())||void 0===l?void 0:l.Vo(u.$e))||!1,u}}},16708:(e,t,i)=>{i.d(t,{DA:()=>d,EQ:()=>o,Jd:()=>h,S3:()=>u,UK:()=>a,YX:()=>r,Zo:()=>n,jU:()=>l});var s=i(193);function a(e,t=!1){let i=e/1e3;return t&&(i=Math.floor(i)),i}function r(e){return 1e3*e}function n(e){if(null==e)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function o(e){return null!=e&&(0,s.$P)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,""):e}function l(e){return null==e||""===e?null:new Date(e)}function u(e){return null==e||""===e?new Date().valueOf():e}function h(e){return(new Date().valueOf()-e.valueOf())/1e3}function d(e){return(e.valueOf()-new Date().valueOf())/1e3}},17729:(e,t,i)=>{i.d(t,{lw:()=>j,Ay:()=>X});var s=i(28947),a=i(86283),r=i(90600),n=i(23916);class o{constructor(e,t,i){this.C=e,this.Zn=t,this.gh=i,this.C=e,this.Zn=t||!1,this.gh=i,this.Fh=new a.A,this.kh=0,this.fh=1}wh(){return this.Zn}jh(){return this.C.ft(s.d.gt.xh)}setSdkAuthenticationSignature(e){let t=this.jh();this.C.Bt(s.d.gt.xh,e);let i=r.A.Ls.Fs;new r.A(i,n.A).setItem(i.Ms.qh,this.fh,e),t!==e&&this.it()}yh(){this.C.Ut(s.d.gt.xh);let e=r.A.Ls.Fs;new r.A(e,n.A).ge(e.Ms.qh,this.fh)}subscribeToSdkAuthenticationFailures(e){return this.gh.Ft(e)}Bh(e){this.gh.X(e)}Gh(){this.Fh.removeAllSubscriptions()}Hh(){this.kh+=1}Jh(){return this.kh}it(){this.kh=0}}var l=i(56188),u=i(51309);class h{constructor(e){this.id=e,this.id=e}$r(){let e={};return null!=this.browser&&(e.browser=this.browser),null!=this.Za&&(e.browser_version=this.Za),null!=this.os&&(e.os_version=this.os),null!=this.resolution&&(e.resolution=this.resolution),null!=this.language&&(e.locale=this.language),null!=this.timeZone&&(e.time_zone=this.timeZone),null!=this.userAgent&&(e.user_agent=this.userAgent),e}}var d=i(99571),c=i(47893),p=i(72093),b=i(193),g=i(99634);class f{constructor(e,t){this.C=e,this.Qa=t,this.C=e,null==t&&(t=(0,b.zu)(d.A)),this.Qa=t}ve(e=!0){let t=this.C.tu(s.d.iu.Ia);null==t&&(t=new c.A(p.A.ce()),e&&this.C.uu(s.d.iu.Ia,t));let i=new h(t.eu);for(let e=0;enull==e?"":`${e} `,this.an=e,this.C=t,this.Ra=i,this.Cs=s,this.T=a,this.B=r,this.un=n,this.Pa=o,this.Oa=l,this.Ta=u,this.appVersion=h,this.au=d,this.fu=["npm"]}H(e,t=!1,i=!1){let a=this.an.ve(!i),r=a.$r(),n=this.C.ft(s.d.gt.ic);(0,b.n4)(n,r)||(e.device=r),e.api_key=this.un,e.time=(0,v.UK)(new Date().valueOf(),!0);let o=this.C.ft(s.d.gt.vu)||[],l=this.C.ft(s.d.gt.pu)||"";this.fu.length>0&&(!(0,b.n4)(o,this.fu)||l!==this.T.St())&&(e.sdk_metadata=this.fu),e.sdk_version=this.Oa,this.Ta&&(e.sdk_flavor=this.Ta),e.app_version=this.appVersion,e.app_version_code=this.au,e.device_id=a.id;let u=this.Cs.getUserId();if(t&&null!==u&&(e.user_id=u),!u&&!this.Ra.wh()){let t=(0,C.b)(this.C);t&&(e.alias=t)}return e}st(e,t,i){let s=t.auth_error,a=t.error;if(!s&&!a)return!0;if(s){let t;this.Ra.Hh();let a={errorCode:s.error_code};for(let e of i)(0,b.cy)(e)&&"X-Braze-Auth-Signature"===e[0]&&(a.signature=e[1]);e.respond_with&&e.respond_with.user_id?a.userId=e.respond_with.user_id:e.user_id&&(a.userId=e.user_id);let r=s.reason;return r?(a.reason=r,t=`due to ${r}`):t=`with error code ${s.error_code}.`,this.Ra.wh()||(t+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),n.A.error(`SDK Authentication failed ${t}`),this.Ru(e.events||[],e.attributes||[]),this.Ra.Bh(a),!1}if(a){let i,s=a;switch(s){case m.A.gu:return i="Received successful response with empty body.",y.A.ut(w.w.bu,{e:i}),n.A.info(i),!1;case m.A.qu:return i="Received successful response with invalid JSON",y.A.ut(w.w.bu,{e:i+": "+t.response}),n.A.info(i),!1;case m.A.Au:s=`The API key "${e.api_key}" is invalid for the baseUrl ${this.Pa}`;break;case m.A.Du:s="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case m.A.ku:s="No device identifier. Please contact support@braze.com"}n.A.error("Backend error: "+s)}return!1}Tu(e,t,i,s){return!!(e&&0!==e.length||t&&0!==t.length||i||s)}yu(e,t,i,s,a=!1){let r=[],n=e=>e||"",o=n(this.Cs.getUserId()),l=this.Nr(e,t),u=[],h=[],d,c=null;if(i.length>0){let e=[];for(let t of i){if(d=t.$r(),this.Ra.wh()){if(o&&!d.user_id){c||(c={}),c.events||(c.events=[]),c.events.push(d);continue}if(n(d.user_id)!==o){h.push(d);continue}}e.push(d)}e.length>0&&(l.events=e)}if(s.length>0){let e=[];for(let t of s)t&&(this.Ra.wh()&&n(t.user_id)!==o?u.push(t):e.push(t));e.length>0&&(l.attributes=e)}if(this.Ru(h,u),l=this.H(l,!1,a),c){let e={requestData:c=this.H(c,!1,a),headers:this.J(c,x.A.O.Nu)};r.push(e)}if(l&&!this.Tu(l.events,l.attributes,e,t))return c?r:null;let p={requestData:l,headers:this.J(l,x.A.O.Nu)};return r.push(p),r}Ru(e,t){if(e){let t=[];for(let i of e){let e=A.A.fromJson(i);e.time=(0,v.YX)(e.time),t.push(e)}this.C.Vo(t)}if(t)for(let e of t)this.C.wu(e)}et(e,t){let i="HTTP error ";null!=e&&(i+=e+" "),i+=t,n.A.error(i)}zr(e){return y.A.ut(w.w.Cu,{n:e})}Nr(e,t,i){let s={};e&&(s.feed=!0),t&&(s.triggers=!0);let a=null!=i?i:this.Cs.getUserId();if(a&&(s.user_id=a),!s.user_id&&!this.Ra.wh()){let e=(0,C.b)(this.C);e&&(s.alias=e)}return s.config={config_time:this.B.Et()},{respond_with:s}}Su(e){let t=new Date().valueOf(),i=E.mO.toString(),s=x.A.Bu(this.C,e);return -1!==s&&(i=(t-s).toString()),i}J(e,t,i=!1){let s=[["X-Braze-Api-Key",this.un]],a=this.Su(t);s.push(["X-Braze-Last-Req-Ms-Ago",a]);let r=x.A.zu(this.C,t).toString();s.push(["X-Braze-Req-Attempt",r]);let n=!1;if(null!=e.respond_with&&e.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),n=!0),null!=e.respond_with&&e.respond_with.feed&&(s.push(["X-Braze-FeedRequest","true"]),n=!0),t===x.A.O.gi){s.push(["X-Braze-ContentCardsRequest","true"]);let e=x.A.zu(this.C,x.A.O.gi);e&&!i||(e=1,x.A.ju(this.C,x.A.O.gi,e));let t=Math.max(0,e-1);s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),n=!0}if(t===x.A.O.Le&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),n=!0),n&&s.push(["X-Braze-DataRequest","true"]),this.Ra.wh()){let e=this.Ra.jh();null!=e&&s.push(["X-Braze-Auth-Signature",e])}return s}Mu(e,t,i,s){window.setTimeout(()=>{n.A.info(`Retrying rate limited ${this.du(s)}SDK request.`),this.V(t,i,s)},e)}V(e,t,i,a){if(!this.Xu(i))return n.A.info(`${this.du(i)}SDK request being rate limited.`),void("function"==typeof a&&a());let r=this.$u();if(!r.Fu)return n.A.info(`${this.du(i)}SDK request being rate limited. Request will be retried in ${Math.trunc(r.Lu/1e3)} seconds.`),void this.Mu(r.Lu,e,t,i);this.C.Bt(s.d.gt.Eu,new Date().valueOf());let o=e.device;o&&o.os_version instanceof Promise?o.os_version.then(i=>{e.device.os_version=i,t(r.Ku)}):t(r.Ku)}Iu(e){let t=e?(0,S.s)(e):null;if(!t||!t["retry-after"])return null;let i=t["retry-after"];return isNaN(i)&&!isNaN(Date.parse(i))?{type:"date",value:Date.parse(i)}:isNaN(parseFloat(i.toString()))?(y.A.ut(w.w.bu,{e:"Received unexpected value for retry-after header in /sync response: "+i}),null):{type:"timestamp",value:1e3*parseFloat(i.toString())}}rt(e,t,i,s,a,r){let n;if(x.A.zu(this.C,i)>=E.uR)return;r=r||0;let o=this.Iu(e);a();let l=e=>{s(window.setTimeout(()=>{t()},e)),x.A.Pu(this.C,i)};if(o&&!isNaN(o.value)){switch(o.type){case"date":(n=o.value-new Date().getTime()+r)<0&&t();break;case"timestamp":n=o.value+r}l(n)}else r?l(r):x.A.wi(this.C,i)}Uu(e){var t;null===(t=this.C)||void 0===t||t.Bt(s.d.gt.xu,e)}Hu(e,t){let i=this.Ou();null==i&&(i={}),i[e]=t,this.C.Bt(s.d.gt.Gu,i)}_u(){var e;return null===(e=this.C)||void 0===e?void 0:e.ft(s.d.gt.xu)}Ou(){var e;return null===(e=this.C)||void 0===e?void 0:e.ft(s.d.gt.Gu)}Wu(e,t,i,s,a=""){let r;if(a){let e=this.Ou();r=null==e||isNaN(e[a])?t:e[a]}else(null==(r=this._u())||isNaN(r))&&(r=t);return Math.min(r+(e-s)/1e3/i,t)}Yu(e,t){return Math.max(0,(1-e)*t*1e3)}Ju(e,t=""){var i,a,r,n,o;let l={Fu:!0,Ku:-1,Lu:0};if(null==e&&(e=!0),!e&&!t)return l;let u,h,d=null;if(e)d=null===(i=this.C)||void 0===i?void 0:i.ft(s.d.gt.Eu);else{let e=x.A.Qu(this.C);if(null==e||null==e[t])return l;d=e[t]}if(null==d||isNaN(d)||(e?(u=(null===(a=this.B)||void 0===a?void 0:a.Vu())||-1,h=(null===(r=this.B)||void 0===r?void 0:r.Zu())||-1):(u=(null===(n=this.B)||void 0===n?void 0:n.tl(t))||-1,h=(null===(o=this.B)||void 0===o?void 0:o.el(t))||-1),-1===u||-1===h))return l;let c=new Date().valueOf(),p=this.Wu(c,u,h,d,t);return p<1?(l.Fu=!1,l.Lu=this.Yu(p,h)):(l.Ku=p=Math.trunc(p)-1,e?this.Uu(p):this.Hu(t,p)),l}$u(){return this.Ju(!0)}Xu(e){let t=this.Ju(!1,e);return!(t&&!t.Fu)}it(){this.Ra.it()}Z(){return this.Pa}addSdkMetadata(e){for(let t of e)-1===this.fu.indexOf(t)&&this.fu.push(t)}}var N=i(8670),T=i(13507),_=i(54070);class I{constructor(e,t,i,s,r,n,o,l,u,h){this.un=e,this.baseUrl=t,this.T=i,this.an=s,this.Cs=r,this.B=n,this.C=o,this.$l=l,this.Ra=u,this.S=h,this.un=e,this.baseUrl=t,this.Tl=0,this.dE=o.IE()||0,this.Ml=null,this.T=i,this.an=s,this.Cs=r,this.B=n,this.C=o,this.Ra=u,this.S=h,this.$l=l,this.Pl=new a.A,this.Ol=null,this.Ul=50,this._l=!1}Jl(e,t){return!e&&!t&&this.Ra.Jh()>=this.Ul}Kl(e){let t=this.T.zl();if(e.length>0){let i=this.Cs.getUserId();for(let s of e){let e=!s.userId&&!i||s.userId===i;s.type===w.w.Bl&&e&&(t=!0)}}return t}Xl(e=!1,t=!1,i=!0,a,r,o,l=!1,u=!1){i&&this.Ql();let h=this.C.AE(),d=this.C.OE(),c=!1,p=(e,t,n=-1)=>{let l=new Date().valueOf();x.A.W(this.C,x.A.O.Nu,l),-1!==n&&t.push(["X-Braze-Req-Tokens-Remaining",n.toString()]);let u=!1;S.A.Y({url:this.baseUrl+"/data/",data:e,headers:t,tt:i=>{null!=e.respond_with&&e.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.st(e,i,t)?(this.Ra.it(),this.B.gl(i),null!=e.respond_with&&e.respond_with.user_id!=this.Cs.getUserId()||(null!=e.device&&this.C.Bt(s.d.gt.ic,e.device),null!=e.sdk_metadata&&(this.C.Bt(s.d.gt.vu,e.sdk_metadata),this.C.Bt(s.d.gt.pu,this.T.St())),this.$l(i),x.A.ju(this.C,x.A.O.Nu,1),"function"==typeof a&&a())):i.auth_error&&(u=!0)},error:()=>{u=!0,null!=e.respond_with&&e.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.Ru(e.events,e.attributes),"function"==typeof r&&r()},nt:(e,t)=>{"function"==typeof o&&o(!u);let s=this.S.Iu(t),a=0;if(s)switch(s.type){case"date":a=Math.max(s.value-new Date().valueOf(),0);break;case"timestamp":a=s.value}if(i&&!c){if(u){x.A.Pu(this.C,x.A.O.Nu);let e=this.Ml;(null==e||e<1e3*this.dE)&&(e=1e3*this.dE);let t=Math.min(3e5,(0,N.C)(1e3*this.dE,3*e))+a;this.Yl(t)}else this.Yl(Math.max(1e3*this.dE,a));c=!0}}})},b=this.Kl(h),g=t||b;if(this.Jl(l,b))return void n.A.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.S.Tu(h,d,e,g))return this.Yl(),void("function"==typeof o&&o(!0));let f=this.S.yu(e,g,h,d,u);g&&this.Tl++;let m=!1;if(f)for(let e of f)this.S.V(e.requestData,t=>p(e.requestData,e.headers,t),x.A.O.Nu,r),m=!0;this.Ra.wh()&&i&&!m?this.Yl():b&&(n.A.info("Invoking new session subscriptions"),this.Pl.X())}Zl(){return this.Tl>0}Yl(e=1e3*this.dE){this._l||(this.Ql(),this.Ol=window.setTimeout(()=>{if(document.hidden){let e="visibilitychange",t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.Xl())};document.addEventListener(e,t,!1)}else this.Xl()},e),this.Ml=e)}Ql(){null!=this.Ol&&(clearTimeout(this.Ol),this.Ol=null)}initialize(){this._l=!1,this.Yl()}destroy(){this.Pl.removeAllSubscriptions(),this.Ra.Gh(),this.Ql(),this._l=!0,this.Xl(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.Ol=null}rn(e){return this.Pl.Ft(e)}openSession(){let e=this.T.St()!==this.T.Qo();e&&(this.C.TE(s.d.iu.Ia),this.C.TE(s.d.iu.su)),this.Xl(void 0,!1,void 0,()=>{this.C.Ut(s.d.gt.Ge)}),this.Jn(),e&&Promise.resolve().then(i.bind(i,50487)).then(e=>{if(this._l)return;let t=e.default.ea();if(null!=t&&(_.A.isPushPermissionGranted()||_.A.isPushBlocked())){let e=()=>{t.vn()?n.A.info("Push token maintenance is disabled, not refreshing token for backend."):t.subscribe()},i=r.A.Ls.Fs;new r.A(i,n.A).cr(i.Ms.cu,(t,i)=>{i&&e()},()=>{let t=this.C.ft(s.d.gt.qn);(null==t||t)&&e()})}})}hc(){this.C.Ut(s.d.gt.Xe),this.C.Ut(s.d.gt.Is),this.C.Ut(s.d.gt.Lr)}changeUser(e,t,i){let a=this.Cs.getUserId();if(a!==e){this.T.Fl(),this.hc(),null!=a&&this.Xl(void 0,!1,void 0,void 0,void 0),this.Cs.ou(e),i?this.Ra.setSdkAuthenticationSignature(i):this.Ra.yh();for(let e=0;e{n.A.error("Failed to flush data, request will be retried automatically.")},e,!0)}requestFeedRefresh(){this.T.Qo(),this.Xl(!0)}br(e,t){this.T.Qo(),n.A.info("Requesting explicit trigger refresh."),this.Xl(void 0,!0,void 0,e,t)}Cn(e,t){let i=w.w.dc,a={a:e,l:t},r=y.A.ut(i,a);return r&&(n.A.info(`Logged alias ${e} with label ${t}`),this.C.Bt(s.d.gt._E,a)),r}Ln(e,t,i){if(this.B.hu(t))return n.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new T.A;let s=y.A.ut(e,{key:t,value:i});if(s){let e="object"==typeof i?JSON.stringify(i,null,2):i;n.A.info(`Logged custom attribute: ${t} with value: ${e}`)}return s}setLastKnownLocation(e,t,i,s,a,r){let o={latitude:t,longitude:i};null!=s&&(o.altitude=s),null!=a&&(o.ll_accuracy=a),null!=r&&(o.alt_accuracy=r);let l=y.A.ut(w.w.mc,o,e||void 0);return l&&n.A.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}lr(e,t){let i=this.T.Qo();return new A.A(this.Cs.getUserId(),w.w.fc,e,i,{cid:t})}vc(e,t){return new r.A(e,t)}Jn(){let e=r.A.Ls.Fs;this.vc(e,n.A).setItem(e.Ms.Nu,1,{baseUrl:this.baseUrl,data:{api_key:this.un,device_id:this.an.ve().id},userId:this.Cs.getUserId(),sdkAuthEnabled:this.Ra.wh()})}vr(e){for(let t of e)if(t.api_key===this.un)this.S.Ru(t.events,t.attributes);else{let e=r.A.Ls.Fs;new r.A(e,n.A).setItem(e.Ms.kr,p.A.ce(),t)}}Hn(e,t,i){let s,a;return this.B.hu(e)?(n.A.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new T.A):(null===t&&null===i?(s=w.w.bc,a={key:e}):(s=w.w.wc,a={key:e,latitude:t,longitude:i}),y.A.ut(s,a))}Kn(e,t){return y.A.ut(w.w.kc,{group_id:e,status:t})}}class O{constructor(e=0,t=[],i=[],s=[],a=null,r=null,n={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:E.uy,refill_rate:E.Fn,endpoint_overrides:{}},u={enabled:!1,max_placements:0}){this.ml=e,this.Rl=t,this.Cl=i,this.El=s,this.wl=a,this.fl=r,this.dl=n,this.De=o,this.bl=l,this.banners=u,this.ml=e,this.Rl=t,this.Cl=i,this.El=s,this.wl=a,this.fl=r,this.dl=n,this.De=o,this.bl=l,this.banners=u}bt(){return{s:"5.8.1",l:this.ml,e:this.Rl,a:this.Cl,p:this.El,m:this.wl,v:this.fl,c:this.dl,f:this.De,grl:this.bl,b:this.banners}}static En(e){let t=e.l;return"5.8.1"!==e.s&&(t=0),new O(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl,e.b)}}class D{constructor(e){this.C=e,this.C=e,this.il=new a.A,this.sl=new a.A,this.rl=new a.A,this.al=new a.A,this.hl=null,this.ul=null}ol(){if(null==this.ul){let e=this.C.ft(s.d.gt.cl);this.ul=null!=e?O.En(e):new O}return this.ul}Et(){return this.ol().ml}gl(e){if(null!=e&&null!=e.config){let t=e.config;if(t.time>this.ol().ml){let e;let i=new O(t.time,t.events_blacklist,t.attributes_blacklist,t.purchases_blacklist,t.messaging_session_timeout,t.vapid_public_key,t.content_cards,t.feature_flags,null==(e=t.global_request_rate_limit)?this.ol().bl:e,t.banners),a=!1;null!=i.fl&&this.Tn()!==i.fl&&(a=!0);let r=!1;null!=i.dl.enabled&&this.Ri()!==i.dl.enabled&&(r=!0);let n=!1;null!=i.De.enabled&&this.Be()!==i.De.enabled&&(n=!0);let o=!1;null!=i.banners.enabled&&this.Dt()!==i.banners.enabled&&(o=!0),this.ul=i,this.C.Bt(s.d.gt.cl,i.bt()),a&&this.il.X(),r&&this.sl.X(),n&&this.rl.X(),o&&this.al.X()}}}In(e){let t=this.il.Ft(e);return this.hl&&this.il.removeSubscription(this.hl),this.hl=t,t}ji(e){return this.sl.Ft(e)}Ke(e){return this.rl.Ft(e)}A(e){return this.al.Ft(e)}je(e){return -1!==this.ol().Rl.indexOf(e)}hu(e){return -1!==this.ol().Cl.indexOf(e)}Dr(e){return -1!==this.ol().El.indexOf(e)}vl(){return this.ol().wl}Tn(){return this.ol().fl}Ri(){return this.ol().dl.enabled||!1}yl(){let e=this.ol().bl;return!(!e||null==e.enabled)&&e.enabled}Vu(){if(!this.yl())return -1;let e=this.ol().bl;return null==e.capacity||e.capacity<10?-1:e.capacity}Zu(){if(!this.yl())return -1;let e=this.ol().bl;return null==e.refill_rate||e.refill_rate<=0?-1:e.refill_rate}Ll(e){let t=this.ol().bl.endpoint_overrides;return null==t?null:t[e]}tl(e){let t=this.Ll(e);return null==t||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}el(e){let t=this.Ll(e);return null==t||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}Be(){return this.ol().De.enabled&&null==this.Oe()?(y.A.ut(w.w.bu,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ol().De.enabled||!1}Oe(){return this.ol().De.refresh_rate_limit}Dt(){return this.ol().banners.enabled||!1}ne(){return this.ol().banners.max_placements||0}}class B{constructor(e,t,i,s){this.C=e,this.Cs=t,this.B=i,this.Sl=s,this.C=e,this.Cs=t,this.B=i,this.jl=1e3,(null==s||isNaN(s))&&(s=1800),s1e3*t;return a&&this.C.Bt(s.d.gt.Hl,e),a}Wl(e,t){return null==t||null==t.kl||!(e-t.Gl0))throw e;a=!0}}catch(e){n.A.info("Local Storage not supported!")}let r=M.nc(),o=new s.A.cc(e,r&&!t,a);return i=a?new s.A.lc(e):new s.A.gc,new s.A(o,i)},nc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};var P=i(57086),U=i(75093),R=i(45250),z=i(42674);class F{constructor(e,t){this.B=e,this.C=t,this.B=e,this.C=t}getUserId(){let e=this.C.tu(s.d.iu.su);if(null==e)return null;let t=e.eu,i=(0,U.N)(t);if(i>z.A.ur){for(;i>z.A.ur;)t=t.slice(0,t.length-1),i=(0,U.N)(t);e.eu=t,this.C.uu(s.d.iu.su,e)}return t}ou(e){let t=null==this.getUserId();this.C.uu(s.d.iu.su,new c.A(e)),t&&this.C.ru(e)}setCustomUserAttribute(e,t){if(this.B.hu(e))return n.A.info('Custom Attribute "'+e+'" is blocklisted, ignoring.'),!1;let i={};return i[e]=t,this.nu(z.A.lu,i,!0)}nu(e,t,i=!1,s=!1){let a=this.C.mu(this.getUserId(),e,t),r="",o=e,l=t;return i&&(r=" custom","object"==typeof t&&(o=Object.keys(t)[0],"object"==typeof(l=t[o])&&(l=JSON.stringify(l,null,2)))),!s&&a&&n.A.info(`Logged${r} attribute ${o} with value ${l}`),a}Sn(e,t,i,a,o){this.nu("push_token",e,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",a,!1,!0),this.nu("custom_push_vapid_public_key",o,!1,!0);let l=r.A.Ls.Fs,u=new r.A(l,n.A),h=new R.A(e,t,i,a,o);this.C.Bt(s.d.gt.qn,h.bt()),u.setItem(l.Ms.cu,l.be,!0)}jn(e){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),e){let e=r.A.Ls.Fs,t=new r.A(e,n.A);this.C.Bt(s.d.gt.qn,!1),t.setItem(e.Ms.cu,e.be,!1)}}}var L=i(15141),$=i(5644);let G={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",Kh:"enableLogging",$h:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Yh:"minimumIntervalBetweenTriggerActionsInSeconds",Xh:"sessionTimeoutInSeconds",Zh:"appVersion",Qh:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Xn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",No:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ea:"doNotLoadFontAwesome",Ia:"deviceId",Aa:"serviceWorkerScope",Na:"sdkFlavor",tn:"openCardsInNewTab"},j={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",Kh:"enableLogging",$h:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Yh:"minimumIntervalBetweenTriggerActionsInSeconds",Xh:"sessionTimeoutInSeconds",Zh:"appVersion",Qh:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Xn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",No:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ea:"doNotLoadFontAwesome",Ia:"deviceId",Aa:"serviceWorkerScope",Na:"sdkFlavor"};class q{constructor(){this.un="",this.Oa="",this.Ta=void 0,this.Ra=null,this.an=null,this.S=null,this.Fi=null,this.B=null,this.T=null,this.C=null,this.Cs=null,this.Pa="",this.isInitialized=!1,this.La=!1,this.Ua=new a.A,this.Wa=new a.A,this.options={},this.Va=[],this.Fa=[],this.Mi=[],this.Oa="5.8.1"}Ka(e){this.Ua.Ft(e)}Nh(e){this.Wa.Ft(e)}initialize(e,t){if(this._t())return n.A.info("Braze has already been initialized with an API key."),!0;this.options=t||{};let r=this.ee(j.Kh),l=(0,L.y)($.uD.Ga());if(l&&"true"===l.brazeLogging&&(r=!0),n.A.init(r),n.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==e||""===e||"string"!=typeof e)return n.A.error("Braze requires a valid API key to be initialized."),!1;this.un=e;let h=this.ee(j.Zo);if(null==h||""===h||"string"!=typeof h)return n.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(h)&&(h=`https://${h}`);let p=h;if((h=document.createElement("a")).href=p,"/"===h.pathname&&(h=`${h}api/v3`),this.Pa=h.toString(),u.A.$a&&!this.ee(j.Yo))return n.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.La=!0,!1;let g=this.ee(j.Wh)||!1;if(this.C=M.Ja(e,g),g&&this.C.Ya(e),new s.A.se(null,!0).gr(s.d.me))return n.A.info("Ignoring all activity due to previous opt out"),this.La=!0,!1;for(let e of(0,b.HP)(this.options))-1===(0,b.zu)(G).indexOf(e)&&n.A.warn(`Ignoring unknown initialization option '${e}'.`);if(null!=this.ee(j.Na)){let e=this.ee(j.Na);-1!==["mparticle","wordpress","tealium"].indexOf(e)?this.Ta=e:n.A.error("Invalid sdk flavor passed: "+e)}let m=this.ee(G.Vh);if(null!=m){if((0,b.cy)(m)){let e=[];for(let t=0;t{if(this._t())for(let t of this.ar())t.U(e)},this.Ra,this.S),this.Fi.initialize(),g||this.C.Ha(),n.A.info(`Initialized for the Braze backend at "${this.ee(j.Zo)}" with API key "${this.un}".`),P.B.p(),this.B.Ke(()=>{var e;this.isInitialized&&(null===(e=this.B)||void 0===e?void 0:e.Be())&&Promise.resolve().then(i.bind(i,85591)).then(e=>{this.isInitialized&&(0,e.default)()})}),this.Fi.rn(()=>{var e;this.isInitialized&&(null===(e=this.B)||void 0===e?void 0:e.Be())&&Promise.resolve().then(i.bind(i,85591)).then(e=>{this.isInitialized&&(0,e.default)(void 0,void 0,!0)})}),this.Ua.X(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(e){if(n.A.destroy(),this._t()){for(let e of(this.Wa.X(),this.Wa.removeAllSubscriptions(),this.Va))e.destroy();for(let e of(this.Va=[],this.Fa))e.clearData(!1);this.Fa=[],this.removeAllSubscriptions(),this.Mi=[],null!=this.Fi&&this.Fi.destroy(),this.Fi=null,this.Ra=null,this.an=null,this.S=null,this.B=null,this.T=null,this.Cs=null,this.options={},this.Ta=void 0,this.isInitialized=!1,this.La=!1,e&&(this.C=null)}}rr(){return!this.Xa()&&(!!this._t()||(console.warn(E.xE),!1))}Ma(){return this.un}Sr(){return this.Ra}Z(){return this.Pa}ue(){return this.an}g(){return this.S}ee(e){return this.options[e]}ar(){return this.Fa}nn(){return this.Fi}v(){return this.B}P(){return this.T}j(){return this.C}mr(){if(this.Cs&&this.Fi)return new z.A(this.Cs,this.Fi)}ir(){return this.Cs}tr(){return!0===this.ee(j.re)}h(e){let t=!1;for(let i of this.Va)i===e&&(t=!0);t||this.Va.push(e)}_(e){let t=!1;for(let i of this.Fa)i.constructor===e.constructor&&(t=!0);e instanceof l.A&&!t&&this.Fa.push(e)}N(e){e instanceof a.A&&this.Mi.push(e)}removeAllSubscriptions(){if(this.rr())for(let e of this.Mi)e.removeAllSubscriptions()}removeSubscription(e){if(this.rr())for(let t of this.Mi)t.removeSubscription(e)}fe(e){this.La=e}_t(){return this.isInitialized}Xa(){return this.La}di(){return this.Oa}}let X=new q},19388:(e,t,i)=>{i.d(t,{CF:()=>o,K:()=>h,Kz:()=>u,P4:()=>l,RJ:()=>p,X:()=>n,e0:()=>r,jp:()=>d,sr:()=>c});var s=i(23916),a=i(99634);let r={Ic:null,Ho:function(e,t=!1,i=!1,s=!1){if(null==e)return!1;t=t||!1,i=i||!1;let a=e.getBoundingClientRect();return null!=a&&(a.top>=0&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(a.left>=0||!s)&&(a.bottom>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!s)}},n={To:"up",qo:"down",ie:"left",de:"right"};function o(){if(null==r.Ic){r.Ic=!1;try{let e=Object.defineProperty({},"passive",{get:()=>{r.Ic=!0}});window.addEventListener("testPassive",()=>{},e),window.removeEventListener("testPassive",()=>{},e)}catch(e){s.A.error((0,a.u)(e))}}return r.Ic}function l(e,t,i=()=>{}){e.addEventListener(t,i,!!o()&&{passive:!0})}function u(e){return r.Ho(e,!0,!1,!1)}function h(e){return r.Ho(e,!1,!0,!1)}function d(e){if(e.onclick){let t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),e.onclick.apply(e,[t])}}function c(e,t,i){let s=null,a=null;l(e,"touchstart",e=>{s=e.touches[0].clientX,a=e.touches[0].clientY}),l(e,"touchmove",r=>{if(null==s||null==a)return;let o=s-r.touches[0].clientX,l=a-r.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&t===n.ie||o<0&&t===n.de)&&i(r),s=null,a=null):Math.abs(l)>=25&&((l>0&&t===n.To&&e.scrollTop===e.scrollHeight-e.offsetHeight||l<0&&t===n.qo&&0===e.scrollTop)&&i(r),s=null,a=null)})}function p(e,t,i){let s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg");a.setAttribute("viewBox",e),a.setAttribute("xmlns",s);let r=document.createElementNS(s,"path");return r.setAttribute("d",t),null!=i&&r.setAttribute("fill",i),a.appendChild(r),a}},21965:(e,t,i)=>{i.d(t,{a:()=>l});var s=i(10027),a=i(7576),r=i(98048),n=i(17729),o=i(23916);function l(e){return!!n.Ay.rr()&&(e instanceof s.A?a.A.ea().Pt(e).tt:(o.A.error("card "+r.s1),!1))}},23916:(e,t,i)=>{i.d(t,{A:()=>a});let s={init:function(e){void 0===e&&void 0!==s.zg||(s.zg=!!e),s.l||(s.l=!0)},destroy:function(){s.l=!1,s.zg=void 0,s.vd=void 0},setLogger:function(e){"function"==typeof e?(s.init(),s.vd=e):s.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){s.init(),s.zg?(console.log("Disabling Braze logging"),s.zg=!1):(console.log("Enabled Braze logging"),s.zg=!0)},info:function(e){if(s.zg){let t="Braze: "+e;null!=s.vd?s.vd(t):console.log(t)}},warn:function(e){if(s.zg){let t="Braze SDK Warning: "+e+" (v5.8.1)";null!=s.vd?s.vd(t):console.warn(t)}},error:function(e){if(s.zg){let t="Braze SDK Error: "+e+" (v5.8.1)";null!=s.vd?s.vd(t):console.error(t)}}},a=s},25315:(e,t,i)=>{i.d(t,{p:()=>r});var s=i(19388),a=i(2720);function r(e,t,i,n="ltr"){let o=document.createElement("button");o.setAttribute("aria-label",e),o.setAttribute("tabindex","0"),o.setAttribute("role","button"),o.dir=n,(0,s.P4)(o,"touchstart"),o.className="ab-close-button";let l=(0,s.RJ)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",t);return o.appendChild(l),o.addEventListener("keydown",e=>{e.keyCode!==a.c.Wo&&e.keyCode!==a.c.Xo||(i(),e.stopPropagation())}),o.onclick=e=>{i(),e.stopPropagation()},o}},28947:(e,t,i)=>{i.d(t,{A:()=>c,d:()=>d});var s=i(5245),a=i(47893),r=i(193),n=i(40772),o=i(23916),l=i(42674),u=i(51309),h=i(99634);let d={iu:{su:"ab.storage.userId",Ia:"ab.storage.deviceId",Nl:"ab.storage.sessionId"},gt:{ac:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",ic:"ab.storage.device",vu:"ab.storage.sdk_metadata",pu:"ab.storage.session_id_for_cached_metadata",qn:"ab.storage.pushToken",qi:"ab.storage.newsFeed",zi:"ab.storage.lastNewsFeedRefresh",Zt:"ab.storage.cardImpressions",cl:"ab.storage.serverConfig",rE:"ab.storage.triggers",oE:"ab.storage.triggers.ts",Hl:"ab.storage.messagingSessionStart",Is:"ab.storage.cc",Qs:"ab.storage.ccLastFullSync",Vs:"ab.storage.ccLastCardUpdated",xu:"ab.storage.globalRateLimitCurrentTokenCount",Gu:"ab.storage.dynamicRateLimitCurrentTokenCount",Kt:"ab.storage.ccClicks",Yt:"ab.storage.ccImpressions",Vt:"ab.storage.ccDismissals",nE:"ab.storage.lastDisplayedTriggerTimesById",aE:"ab.storage.lastDisplayedTriggerTime",iE:"ab.storage.triggerFireInstancesById",xh:"ab.storage.signature",EE:"ab.storage.brazeSyncRetryCount",fi:"ab.storage.sdkVersion",Xe:"ab.storage.ff",Ge:"ab.storage.ffImpressions",Ze:"ab.storage.ffLastRefreshAt",Ve:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",SE:"ab.storage.requestAttempts",Lr:"ab.storage.deferredIam",Eu:"ab.storage.lastSdkReq",_E:"ab.storage.alias",vt:"ab.storage.banners",kt:"ab.storage.banners.impressions",yt:"ab.storage.banners.sessionId"},me:"ab.optOut"};class c{constructor(e,t){this.uE=e,this.cE=t,this.uE=e,this.cE=t}Ya(e){let t=(0,r.HP)(d.iu),i=new c.se(e);for(let e of t)i.remove(d.iu[e])}uu(e,t){let i=null;null!=t&&t instanceof a.A&&(i=t.bt()),this.uE.store(e,i)}TE(e){let t=this.tu(e);null!=t&&(t.ql=new Date().valueOf(),this.uu(e,t))}tu(e){let t;let i=this.uE.gr(e),s=(e=>{let t;try{t=JSON.parse(e)}catch(e){t=null}return t})(i);if(s)(t=a.A.En(s)||null)&&this.uu(e,t);else{let s=a.A.hE(i);t=a.A.En(s)||null,s!==i&&t&&this.uu(e,t)}return t}Il(e){this.uE.remove(e)}Ha(){let e;for(let t of(0,r.HP)(d.iu))null!=(e=this.tu(d.iu[t]))&&this.uu(d.iu[t],e)}Vo(e){let t;if(null==e||0===e.length)return!1;t=(0,r.cy)(e)?e:[e];let i=this.cE.gr(d.gt.tE);null!=i&&(0,r.cy)(i)||(i=[]);for(let e=0;ethis.mE?(o.A.info("Storage failure: object is ≈"+i+" bytes which is greater than the max of "+this.mE),!1):(this.KE[e]={value:t},!0)}YE(e){let t=[],i=[e],s=0;for(;i.length;){let e=i.pop();if("boolean"==typeof e)s+=4;else if("string"==typeof e)s+=2*e.length;else if("number"==typeof e)s+=8;else if("object"==typeof e&&-1===t.indexOf(e))for(let s in t.push(e),e)i.push(e[s])}return s}gr(e){let t=this.KE[e];return null==t?null:t.value}remove(e){this.KE[e]=null}},c.se=class{constructor(e,t){this.un=e,this.NE=t,this.un=e,this.GE=this.DE(),this.CE=576e3,this.NE=!!t}bE(e){return null!=this.un?e+"."+this.un:e}DE(){let e=0,t=document.location.hostname,i=t.split("."),s="ab._gd";for(;e=4093?(o.A.info("Storage failure: string is "+n.length+" chars which is too large to store as a cookie."),!1):(document.cookie=n,!0)}gr(e){let t=[],i=this.bE(e)+"=",s=document.cookie.split(";");for(let a=0;a0?t[t.length-1]:null}remove(e){this.pE(this.bE(e))}pE(e){let t=e+"=;expires="+new Date(0).toUTCString();document.cookie=t,document.cookie=t+";path=/";let i=t+";domain="+this.GE;document.cookie=i,document.cookie=i+";path=/"}},c.cc=class{constructor(e,t,i){this.un=e,this.vE=[],t&&this.vE.push(new c.se(e)),i&&this.vE.push(new c.lc(e)),this.vE.push(new c.gc)}store(e,t){let i=!0;for(let s=0;s{i.d(t,{o:()=>r});var s=i(17729),a=i(40772);function r(){var e;if(s.Ay.rr())return null===(e=s.Ay.g())||void 0===e?void 0:e.zr(a.j.Fr).tt}},30741:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0,this.Ht=!1}static fromJson(e){return new s(e.trigger_id,e.message_extras)}ts(){return!this.Ht&&(this.Ht=!0,!0)}Do(){return this.Ht}}},31065:(e,t,i)=>{i.d(t,{n:()=>a});var s=i(17729);function a(e,t,i){let a=e||document.querySelector("head"),r=`ab-${t}-css-definitions-${"5.8.1".replace(/\./g,"-")}`;if(!a)return;let n=a.ownerDocument||document;if(null==n.getElementById(r)){let e=n.createElement("style");e.innerHTML=i||"",e.id=r;let t=s.Ay.ee(s.lw.er);null!=t&&e.setAttribute("nonce",t),a.appendChild(e)}}},35695:(e,t,i)=>{i.r(t);var s=i(18999),a={};for(let e in s)"default"!==e&&(a[e]=()=>s[e]);i.d(t,a)},36153:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(2287),a=i(78189);class r extends a.A{constructor(e,t,i,s,r,n,o,l,u,h,d,c,p,b,g,f,m,A,v,y,w,x,E,C,S,k,N,T){super(e,t,void 0,i,s,r,n,o,l=l||a.A.DismissType.MANUAL,u,h,d,c,p,b,g,f,m,A,v,y,w,x,E,C,S=S||a.A.CropType.FIT_CENTER,void 0,k,N,T),this.Co=a.A.TextAlignment.CENTER}bt(){return super.bt(r.ds)}static Ur(e){return new r(e[a.A.es.ra],e[a.A.es.sa],e[a.A.es.vs],e[a.A.es.ta],e[a.A.es.ia],e[a.A.es.URI],e[a.A.es.oa],e[a.A.es.pa],e[a.A.es.ma],e[a.A.es.na],e[a.A.es.fs],e[a.A.es.ua],e[a.A.es.ca],e[a.A.es.fa],e[a.A.es.da],e[a.A.es.la],e[a.A.es.ga],e[a.A.es.ja],e[a.A.es.xa],e[a.A.es.za],e[a.A.es.ha],e[a.A.es.va],e[a.A.es.wa],(0,s.x)(e[a.A.es.ya]),e[a.A.es.Sa],e[a.A.es.ka],e[a.A.es.CSS],e[a.A.es.qa])}}r.ds=a.A.po.Wr},37796:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(10027);class a extends s.A{constructor(e,t,i,s,a,r,n,o,l,u,h,d,c,p,b,g){super(e,t,i,s,a,r,n,o,l,u,h,d,c,p,b,g),this.oe="ab-classic-card",this.ae=!0}bt(){let e={};return e[s.A.es.hs]=s.A.ds.Ii,e[s.A.es.ps]=this.id,e[s.A.es.us]=this.viewed,e[s.A.es.ls]=this.title,e[s.A.es.fs]=this.imageUrl,e[s.A.es.xs]=this.description,e[s.A.es.bs]=this.updated,e[s.A.es.gs]=this.created,e[s.A.es.js]=this.categories,e[s.A.es.zs]=this.expiresAt,e[s.A.es.URL]=this.url,e[s.A.es.ks]=this.linkText,e[s.A.es.qs]=this.aspectRatio,e[s.A.es.vs]=this.extras,e[s.A.es.ws]=this.pinned,e[s.A.es.ys]=this.dismissible,e[s.A.es.As]=this.clicked,e[s.A.es.Bs]=this.test,e}}},39216:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(10027);class a extends s.A{constructor(e,t,i,s,a,r,n,o,l,u,h,d,c,p,b,g){super(e,t,i,s,a,r,n,o,l,u,h,d,c,p,b,g),this.oe="ab-captioned-image",this.ae=!0,this.test=!1}bt(){let e={};return e[s.A.es.hs]=s.A.ds.cs,e[s.A.es.ps]=this.id,e[s.A.es.us]=this.viewed,e[s.A.es.ls]=this.title,e[s.A.es.fs]=this.imageUrl,e[s.A.es.xs]=this.description,e[s.A.es.bs]=this.updated,e[s.A.es.gs]=this.created,e[s.A.es.js]=this.categories,e[s.A.es.zs]=this.expiresAt,e[s.A.es.URL]=this.url,e[s.A.es.ks]=this.linkText,e[s.A.es.qs]=this.aspectRatio,e[s.A.es.vs]=this.extras,e[s.A.es.ws]=this.pinned,e[s.A.es.ys]=this.dismissible,e[s.A.es.As]=this.clicked,e[s.A.es.Bs]=this.test,e}}},40772:(e,t,i)=>{i.d(t,{j:()=>a,w:()=>s});let s={CustomEvent:"ce",Pr:"p",fc:"pc",Ac:"ca",Cu:"i",bu:"ie",ss:"cci",os:"ccic",Mt:"ccc",Wt:"ccd",Bl:"ss",Dl:"se",Li:"si",Qi:"sc",Vi:"sbc",Mc:"sfe",Eo:"iec",mc:"lr",dc:"uae",ns:"ci",Ot:"cc",wc:"lcaa",bc:"lcar",Gn:"inc",Rn:"add",On:"rem",$n:"set",Bn:"ncam",kc:"sgu",yr:"ffi",ro:"bi",ct:"bc"},a={Fr:"feed_displayed",Sc:"content_cards_displayed"}},41470:(e,t,i)=>{i.d(t,{N:()=>a});var s=i(17729);function a(){if(s.Ay.ee(s.lw.Ea))return;let e="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+e+'"]')){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}}},42674:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(193),a=i(23916),r=i(40772),n=i(72483),o=i(98048),l=i(16708);class u{constructor(e,t){this.Cs=e,this.Fi=t,this.Cs=e,this.Fi=t}getUserId(e){let t=this.Cs.getUserId();if("function"!=typeof e)return t;a.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,n.rK)(e,"add alias","the alias",!1)||e.length<=0?(a.A.error("addAlias requires a non-empty alias"),!1):!(0,n.rK)(t,"add alias","the label",!1)||t.length<=0?(a.A.error("addAlias requires a non-empty label"),!1):this.Fi.Cn(e,t).tt}setFirstName(e){return!!(0,n.rK)(e,"set first name","the firstName",!0)&&this.Cs.nu("first_name",e)}setLastName(e){return!!(0,n.rK)(e,"set last name","the lastName",!0)&&this.Cs.nu("last_name",e)}setEmail(e){return null===e||(0,n.B9)(e)?this.Cs.nu("email",e):(a.A.error(`Cannot set email address - "${e}" did not pass RFC-5322 validation.`),!1)}setGender(e){return"string"==typeof e&&(e=e.toLowerCase()),!(null!==e&&!(0,s.BY)(u.Genders,e,`Gender "${e}" is not a valid gender.`,"User.Genders"))&&this.Cs.nu("gender",e)}setDateOfBirth(e,t,i){return null===e&&null===t&&null===i?this.Cs.nu("dob",null):(e=null!=e?parseInt(e.toString()):null,t=null!=t?parseInt(t.toString()):null,i=null!=i?parseInt(i.toString()):null,null==e||null==t||null==i||isNaN(e)||isNaN(t)||isNaN(i)||t>12||t<1||i>31||i<1?(a.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Cs.nu("dob",`${e}-${t}-${i}`))}setCountry(e){return!!(0,n.rK)(e,"set country","the country",!0)&&this.Cs.nu("country",e)}setHomeCity(e){return!!(0,n.rK)(e,"set home city","the homeCity",!0)&&this.Cs.nu("home_city",e)}setLanguage(e){return!!(0,n.rK)(e,"set language","the language",!0)&&this.Cs.nu("language",e)}setEmailNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("email_subscribe",e)}setPushNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("push_subscribe",e)}setPhoneNumber(e){return!!(0,n.rK)(e,"set phone number","the phoneNumber",!0)&&(null===e||e.match(u.Fn)?this.Cs.nu("phone",e):(a.A.error(`Cannot set phone number - "${e}" did not pass validation.`),!1))}setLastKnownLocation(e,t,i,s,r){return null==e||null==t?(a.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),null!=i&&(i=parseFloat(i.toString())),null!=s&&(s=parseFloat(s.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(e)||isNaN(t)||null!=i&&isNaN(i)||null!=s&&isNaN(s)||null!=r&&isNaN(r)?(a.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):e>90||e<-90||t>180||t<-180?(a.A.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=i&&i<0||null!=r&&r<0?(a.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Fi.setLastKnownLocation(this.Cs.getUserId(),e,t,s,i,r).tt)}setCustomUserAttribute(e,t,i){if(!(0,n.ZJ)(e))return!1;let a=t=>{let[i]=(0,n.fB)(t,o.KG,"attribute value",`set custom user attribute "${e}"`,"custom user attribute");return i};if((0,s.cy)(t)){let[i,s]=(0,n.Z2)(e,t);if(!i&&!s&&0!==t.length)return!1;if(i||0===t.length)return this.Fi.Ln(r.w.$n,e,t).tt;for(let e of t)if(!a(e))return!1}else if((0,s.Gv)(t)){if(!a(t))return!1;if(i)return this.Fi.Ln(r.w.Bn,e,t).tt}else if(!(void 0!==t&&(0,n.uZ)(t))||((0,s.$P)(t)&&(t=(0,l.EQ)(t)),"string"==typeof t&&!(0,n.Dz)(t,`set custom user attribute "${e}"`,"the element in the given array")))return!1;return this.Cs.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,n.Dz)(e,"add to custom user attribute array","the given key")&&!(null!=t&&!(0,n.Dz)(t,"add to custom user attribute array","the given value"))&&this.Fi.Ln(r.w.Rn,e,t).tt}removeFromCustomAttributeArray(e,t){return!!(0,n.Dz)(e,"remove from custom user attribute array","the given key")&&!(null!=t&&!(0,n.Dz)(t,"remove from custom user attribute array","the given value"))&&this.Fi.Ln(r.w.On,e,t).tt}incrementCustomUserAttribute(e,t){if(!(0,n.Dz)(e,"increment custom user attribute","the given key"))return!1;null==t&&(t=1);let i=parseInt(t.toString());return isNaN(i)||i!==parseFloat(t.toString())?(a.A.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.Fi.Ln(r.w.Gn,e,i).tt}setCustomLocationAttribute(e,t,i){return!!(0,n.Dz)(e,"set custom location attribute","the given key")&&((null!==t||null!==i)&&(t=null!=t?parseFloat(t.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==t&&null!=i||null!=t&&null==i||null!=t&&(isNaN(t)||t>90||t<-90)||null!=i&&(isNaN(i)||i>180||i<-180))?(a.A.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \xb190 and \xb1180 respectively, or must both be null for removal."),!1):this.Fi.Hn(e,t,i).tt)}addToSubscriptionGroup(e){return!(0,n.rK)(e,"add user to subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Kn(e,u.Mn.SUBSCRIBED).tt}removeFromSubscriptionGroup(e){return!(0,n.rK)(e,"remove user from subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Kn(e,u.Mn.UNSUBSCRIBED).tt}setLineId(e){return(0,n.rK)(e,"set LINE user ID","the ID",!0)&&0!==(null==e?void 0:e.length)?e&&e.length>u.Yn?(a.A.error(`Rejected LINE user ID ${e} because it is longer than ${u.Yn} characters.`),!1):this.Cs.nu("native_line_id",e):(a.A.error("setLineId requires a non-empty ID"),!1)}Sn(e,t,i,s,a){this.Cs.Sn(e,t,i,s,a),this.Fi.Jn()}jn(e){this.Cs.jn(e)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Fn=/^[0-9 .\\(\\)\\+\\-]+$/,u.Mn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Qn="user_id",u.lu="custom",u.ur=997,u.Yn=33},43795:(e,t,i)=>{i.r(t),i.d(t,{logPurchase:()=>d});var s=i(17729),a=i(98048),r=i(23916),n=i(40772),o=i(83524),l=i(57086),u=i(72483),h=i(16016);function d(e,t,i,d,c){if(!s.Ay.rr())return!1;if(null==i&&(i="USD"),null==d&&(d=1),null==e||e.length<=0)return r.A.error(`logPurchase requires a non-empty productId, got "${e}", ignoring.`),!1;if(!(0,u.Dz)(e,"log purchase","the purchase name"))return!1;if(null==t||isNaN(parseFloat(t.toString())))return r.A.error(`logPurchase requires a numeric price, got ${t}, ignoring.`),!1;let p=parseFloat(t.toString()).toFixed(2);if(null==d||isNaN(parseInt(d.toString())))return r.A.error(`logPurchase requires an integer quantity, got ${d}, ignoring.`),!1;let b=parseInt(d.toString());if(b<1||b>a.$k)return r.A.error(`logPurchase requires a quantity >1 and <${a.$k}, got ${b}, ignoring.`),!1;if(-1===["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"].indexOf(i=null!=i?i.toUpperCase():i))return r.A.error(`logPurchase requires a valid currencyCode, got ${i}, ignoring.`),!1;let[g,f]=(0,u.fB)(c,"logPurchase","purchaseProperties",`log purchase "${e}"`,"purchase");if(!g)return!1;let m=s.Ay.v();if(m&&m.Dr(e))return r.A.info(`Purchase "${e}" is blocklisted, ignoring.`),!1;let A=h.A.ut(n.w.Pr,{pid:e,c:i,p:p,q:b,pr:f});if(A.tt)for(let t of(r.A.info(`Logged ${b} purchase${b>1?"s":""} of "${e}" for ${i} ${p}.`),A.$e))l.B.m().Ce(o.A.Rr,[e,c],t);return A.tt}},45250:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(16708);class a{constructor(e,t,i,s,a){this.endpoint=e,this.zn=t,this.publicKey=i,this.Vl=s,this.fl=a,this.endpoint=e||null,this.zn=t||null,this.publicKey=i||null,this.Vl=s||null,this.fl=a||null}bt(){return{e:this.endpoint,c:this.zn,p:this.publicKey,u:this.Vl,v:this.fl}}static En(e){return new a(e.e,(0,s.jU)(e.c),e.p,e.u,e.v)}}},46050:(e,t,i)=>{i.d(t,{Fu:()=>d,R:()=>c,_l:()=>p});var s=i(10027),a=i(37796),r=i(39216),n=i(69071),o=i(85251),l=i(16708),u=i(23916);function h(e,t,i,l,h,d,c,p,b,g,f,m,A,v,y,w,x,E){let C;if(t===s.A.ds.Ti||t===s.A.ds.Ii)C=new a.A(e,i,l,h,d,c,p,b,g,f,m,A,v,y,w,x);else if(t===s.A.ds.cs)C=new r.A(e,i,l,h,d,c,p,b,g,f,m,A,v,y,w,x);else if(t===s.A.ds.ai)C=new n.A(e,i,h,c,p,b,g,f,m,A,v,y,w,x);else{if(t!==s.A.ds.ci)return u.A.error("Ignoring card with unknown type "+t),null;C=new o.A(e,i,p,g,v,y)}return E&&(C.test=E),C}function d(e){if(e[s.A.ui.Ei])return null;let t=e[s.A.ui.ps],i=e[s.A.ui.hs],a=e[s.A.ui.us],r=e[s.A.ui.ls],n=e[s.A.ui.fs],o=e[s.A.ui.xs],u=(0,l.Zo)(e[s.A.ui.bs]);return h(t,i,a,r,n,o,u,u,null,e[s.A.ui.zs]===s.A.oi?null:(0,l.Zo)(e[s.A.ui.zs]),e[s.A.ui.URL],e[s.A.ui.ks],e[s.A.ui.qs],e[s.A.ui.vs],e[s.A.ui.ws],e[s.A.ui.ys],e[s.A.ui.As],e[s.A.ui.Bs]||!1)}function c(e){return h(e.id,e.type,e.viewed,e.title,e.image,e.description,(0,l.Zo)(e.created),(0,l.Zo)(e.updated),e.categories,(0,l.Zo)(e.expires_at),e.url,e.domain,e.aspect_ratio,e.extras,!1,!1)}function p(e){return h(e[s.A.es.ps],e[s.A.es.hs],e[s.A.es.us],e[s.A.es.ls],e[s.A.es.fs],e[s.A.es.xs],(0,l.jU)(e[s.A.es.gs]),(0,l.jU)(e[s.A.es.bs]),e[s.A.es.js],(0,l.jU)(e[s.A.es.zs]),e[s.A.es.URL],e[s.A.es.ks],e[s.A.es.qs],e[s.A.es.vs],e[s.A.es.ws],e[s.A.es.ys],e[s.A.es.As],e[s.A.es.Bs]||!1)||void 0}},47274:(e,t,i)=>{i.r(t),i.d(t,{logCustomEvent:()=>d});var s=i(17729),a=i(16016),r=i(23916),n=i(40772),o=i(83524),l=i(57086),u=i(72483),h=i(98048);function d(e,t){if(!s.Ay.rr())return!1;if(null==e||e.length<=0)return r.A.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,u.Dz)(e,"log custom event","the event name"))return!1;let[i,d]=(0,u.fB)(t,h.aV,"eventProperties",`log custom event "${e}"`,"event");if(!i)return!1;let c=s.Ay.v();if(c&&c.je(e))return r.A.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=a.A.ut(n.w.CustomEvent,{n:e,p:d});if(p.tt)for(let i of(r.A.info(`Logged custom event "${e}".`),p.$e))l.B.m().Ce(o.A.Ee,[e,t],i);return p.tt}},47790:(e,t,i)=>{i.d(t,{j:()=>u});var s=i(10027),a=i(7576),r=i(17729),n=i(193),o=i(98048),l=i(23916);function u(e,t){if(!r.Ay.rr())return!1;if(!(0,n.cy)(e))return l.A.error("cards must be an array"),!1;for(let t of e)if(!(t instanceof s.A))return l.A.error(`Each card in cards ${o.s1}`),!1;return a.A.ea().Xt(e,t).tt}},47893:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(72093),a=i(23916),r=i(193),n=i(99634);class o{constructor(e,t,i){this.eu=e,null==e&&(e=s.A.ce()),!i||isNaN(i)?this.Gl=new Date().valueOf():this.Gl=i,this.eu=e,this.ql=new Date().valueOf(),this.kl=t}bt(){return`g:${encodeURIComponent(this.eu)}|e:${this.kl}|c:${this.Gl}|l:${this.ql}`}static hE(e){let t;if("string"!=typeof e)return null;let i=e.lastIndexOf("|e:"),s=e.substring(0,i),a=s.split("g:")[1];return t=/[|:]/.test(a)?encodeURIComponent(a):a,e=e.replace(s,`g:${t}`)}static En(e){let t;if("string"==typeof e)try{let i=e.split("|");if(!(0,r.cy)(i)||4!==i.length)return null;let s=e=>e.split(":")[1],a=e=>{let t=parseInt(s(e));if(!isNaN(t))return t};(t=new o(decodeURIComponent(s(i[0])),a(i[1]),a(i[2]))).ql=a(i[3])}catch(t){a.A.info(`Unable to parse cookie string ${e}, failed with error: ${(0,n.u)(t)}`)}else{if(null==e||null==e.g)return null;(t=new o(e.g,e.e,e.c)).ql=e.l}return t}}},50487:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var s=i(17729),a=i(193),r=i(45250),n=i(23916);let o={Vn:function(e){let t=atob((e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(t.length);for(let e=0;e{e?this.kn(t,i,s,a):(n.A.error("Failed to unsubscribe device from push."),"function"==typeof a&&a(!1))}).catch(e=>{n.A.error("Push unsubscription error: "+e),"function"==typeof a&&a(!1)})}Pn(e,t,i){var s;let a;let r=(e=>{if("string"==typeof e)return e;if(0!==e.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return e.endpoint;let t=e.endpoint;return e.Dn&&-1===e.endpoint.indexOf(e.Dn)&&(t=e.endpoint+"/"+e.Dn),t})(e),o=null,l=null;if(null!=e.getKey)try{let t=Array.from(new Uint8Array(e.getKey("p256dh"))),i=Array.from(new Uint8Array(e.getKey("auth")));o=btoa(String.fromCharCode.apply(null,t)),l=btoa(String.fromCharCode.apply(null,i))}catch(e){n.A.error((0,d.u)(e))}let u=e.options&&(a=e.options.applicationServerKey)&&a.byteLength&&a.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(a)))).replace(/\+/g,"-").replace(/\//g,"_"):null;null===(s=this.on)||void 0===s||s.Sn(r,t,o,l,u),r&&"function"==typeof i&&i(r,o,l)}An(){var e;null===(e=this.on)||void 0===e||e.jn(!0)}xn(e,t){var i;null===(i=this.on)||void 0===i||i.jn(!1),n.A.info(e),"function"==typeof t&&t(!1)}Nn(e,t,i,s){var a;if("default"===t.permission)try{window.safari.pushNotification.requestPermission(this.pn,e,{api_key:this.un,device_id:(null===(a=this.an)||void 0===a?void 0:a.ve().id)||""},t=>{"granted"===t.permission&&this.on&&this.on.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Nn(e,t,i,s)})}catch(e){this.xn("Could not request permission for push: "+e,s)}else"denied"===t.permission?this.xn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",s):"granted"===t.permission&&(n.A.info("Device successfully subscribed to push."),this.Pn(t.deviceToken,new Date,i))}requestPermission(e,t,i){let s=s=>{switch(s){case"granted":return void("function"==typeof e&&e());case"default":return void("function"==typeof t&&t());case"denied":return void("function"==typeof i&&i());default:n.A.error("Received unexpected permission result "+s)}},a=!1;if("default"!==window.Notification.permission)s(Notification.permission);else{let e=window.Notification.requestPermission(e=>{a&&s(e)});e?e.then(e=>{s(e)}):a=!0}}kn(e,t,i,s){let a={userVisibleOnly:!0};null!=t&&(a.applicationServerKey=t),e.pushManager.subscribe(a).then(e=>{n.A.info("Device successfully subscribed to push."),this.Pn(e,new Date,i)}).catch(e=>{h.A.isPushBlocked()?(n.A.info("Permission for push notifications was denied."),"function"==typeof s&&s(!1)):(n.A.error("Push subscription failed: "+e),"function"==typeof s&&s(!0))})}Un(){if(this.ln)return navigator.serviceWorker.getRegistration(this.hn);let e=this.cn?{scope:this.cn}:void 0;return navigator.serviceWorker.register(this.hn,e).then(()=>navigator.serviceWorker.ready.then(e=>(e&&"function"==typeof e.update&&e.update().catch(e=>{n.A.info("ServiceWorker update failed: "+e)}),e)))}Wn(e){this.ln||(e.unregister(),n.A.info("Service worker successfully unregistered."))}subscribe(e,t){if(!h.A.isPushSupported())return n.A.info(c._n),void("function"==typeof t&&t(!1));if(this.bn){if(!this.ln&&null!=window.location){let e=this.hn;-1===e.indexOf(window.location.host)&&(e=window.location.host+e),-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e)}if(h.A.isPushBlocked())return void this.xn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",t);if(this.B&&!this.B.Tn()&&0===this.B.Et())return n.A.info("Waiting for VAPID key from server config before subscribing to push."),void this.B.In(()=>{this.subscribe(e,t)});let i=h.A.isPushPermissionGranted();this.requestPermission(()=>{!i&&this.on&&this.on.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Un().then(i=>{if(null==i)return n.A.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof t&&t(!0));i.pushManager.getSubscription().then(s=>{var u;let h=null;if(null!=(null===(u=this.B)||void 0===u?void 0:u.Tn())&&(h=o.Vn(this.B.Tn())),s){let o,u=null,d=null;if(this.C&&(o=this.C.ft(l.d.gt.qn)),o&&!(0,a.cy)(o)){let e;try{e=r.A.En(o).zn}catch(t){e=null}null==e||isNaN(e.getTime())||0===e.getTime()||(d=new Date(u=e)).setMonth(u.getMonth()+6)}null!=h&&s.options&&s.options.applicationServerKey&&s.options.applicationServerKey.byteLength&&s.options.applicationServerKey.byteLength>0&&!(0,a.n4)(h,new Uint8Array(s.options.applicationServerKey))?(s.options.applicationServerKey.byteLength>12?n.A.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):n.A.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.wn(s,i,h,e,t)):s.expirationTime&&new Date(s.expirationTime).valueOf()<=new Date().valueOf()?(n.A.info("Push subscription is expired, creating new subscription."),this.wn(s,i,h,e,t)):o&&(0,a.cy)(o)?this.wn(s,i,h,e,t):null==d?(n.A.info("No push subscription creation date found, creating new subscription."),this.wn(s,i,h,e,t)):d.valueOf()<=new Date().valueOf()?(n.A.info("Push subscription older than 6 months, creating new subscription."),this.wn(s,i,h,e,t)):(n.A.info("Device already subscribed to push, sending existing subscription to backend."),this.Pn(s,u,e))}else this.kn(i,h,e,t)}).catch(e=>{n.A.error("Error checking current push subscriptions: "+e)})}).catch(e=>{n.A.error("ServiceWorker registration failed: "+e)})},()=>{let e="Permission for push notifications was ignored.";h.A.isPushBlocked()&&(e+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),n.A.info(e),"function"==typeof t&&t(!0)},()=>{n.A.info("Permission for push notifications was denied."),"function"==typeof t&&t(!1)})}else if(this.mn){if(null==this.fn||""===this.fn)return n.A.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof t&&t(!0));let i=window.safari.pushNotification.permission(this.fn);this.Nn(this.fn,i,e,t)}}unsubscribe(e,t){if(!h.A.isPushSupported())return n.A.info(c._n),void("function"==typeof t&&t());this.bn?navigator.serviceWorker.getRegistration(this.hn).then(i=>{i?i.pushManager.getSubscription().then(s=>{s?(this.An(),s.unsubscribe().then(s=>{s?(n.A.info("Device successfully unsubscribed from push."),"function"==typeof e&&e()):(n.A.error("Failed to unsubscribe device from push."),"function"==typeof t&&t()),this.Wn(i)}).catch(e=>{n.A.error("Push unsubscription error: "+e),"function"==typeof t&&t()})):(n.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}).catch(e=>{n.A.error("Error unsubscribing from push: "+e),"function"==typeof t&&t()}):(n.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}):this.mn&&(this.An(),n.A.info("Device unsubscribed from push."),"function"==typeof e&&e())}}c._n="Push notifications are not supported in this browser.";let p={l:!1,aa:null,ea:()=>(p.p(),p.aa||(p.aa=new c(s.Ay.mr(),s.Ay.Ma(),s.Ay.ue(),s.Ay.Z(),s.Ay.ee(s.lw._a),s.Ay.ee(s.lw.Aa),s.Ay.ee(s.lw.Ba),s.Ay.v(),s.Ay.ee(s.lw.Ca),s.Ay.ee(s.lw.Da),s.Ay.j())),p.aa),p:()=>{p.l||(s.Ay.h(p),p.l=!0)},destroy:()=>{p.aa=null,p.l=!1}},b=p},51309:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(193);class a{constructor(){}ef(){}ff(){}tc(e){}static nf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,s.cy)(t.cf)){for(let i=0;i{for(let i=0;ie.platform?t(e.platform):navigator.platform).catch(()=>navigator.platform)}Bc(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let i of t){let t=this.Vc(r.c),s=i.brand.match(t);if(s&&s.length>0){e.browser=s[0],e.version=i.version;break}}return e}Vc(e){let t=[];for(let i in e)t.push(e[i]);return RegExp("("+t.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends a{constructor(){super(),this.fd=o.Bc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}ff(){return this.fd[1]||"Unknown Version"}tc(e){for(let t=0;t1&&(s=r.u.ao),Promise.resolve(s)}return Promise.resolve(navigator.platform)}static Bc(e){let t,i=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==e.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==e.indexOf("CrKey"))return["Chromecast",null];if(-1!==e.indexOf("BRAVIA")||-1!==e.indexOf("SonyCEBrowser")||-1!==e.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==e.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(e.match(/\b(Roku)\b/))return["Roku",null];if(e.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===r.c.rO&&null!=(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("OPR",r.c.oO),t[0]=t[0].replace("EdgA",r.c.eO),"Edg"===t[0]&&(t[0]=r.c.eO),[t[0],t[1]];if(i[1]===r.c.Bg&&null!=(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("EdgiOS",r.c.eO),[t[0],t[1]];if((i=i[2]?[i[1],i[2]]:[null,null])[0]===r.c.Bg&&null!=(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,t[1]),null!=(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,t[2]),i[0]===r.c.oO&&null!=(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",t[1]||""];if(i[0]){let e=i[0].toLowerCase();"crios"===e&&(i[0]=r.c.rO),"tizen"===e&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===e&&(i[0]="Samsung Browser")}return i}}class l{constructor(){let e=navigator.userAgentData?n:o;this.Sg=new e,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.ff(),this.OS=null,this.tc().then(e=>this.OS=e);let t=navigator;this.language=(t.userLanguage||t.language||t.browserLanguage||t.systemLanguage||"").toLowerCase(),this.$a=l.vg(this.userAgent)}fE(){return this.browser===r.c.Bg}sc(){return this.OS||null}tc(){return this.OS?Promise.resolve(this.OS):this.Sg.tc(l.kg).then(e=>(this.OS=e,e))}static vg(e){e=e.toLowerCase();let t=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma","taiko"];for(let i=0;i{i.d(t,{A:()=>a});let s={yn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,gn:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>s.yn()||s.gn(),isPushBlocked:()=>{let e=s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,t=s.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return e||t},isPushPermissionGranted:()=>s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,wr:()=>!s.isPushBlocked()&&s.isPushSupported()&&!s.isPushPermissionGranted()},a=s},54288:(e,t,i)=>{i.d(t,{x:()=>l});var s=i(10027),a=i(7576),r=i(98048),n=i(17729),o=i(23916);function l(e,t){return!!n.Ay.rr()&&(e instanceof s.A?a.A.ea().logClick(e,t).tt:(o.A.error("card "+r.s1),!1))}},54586:(e,t,i)=>{i.d(t,{R:()=>r});var s=i(17729),a=i(75293);function r(){if(s.Ay.rr())return a.A.m().vi()}},56073:(e,t,i)=>{i.d(t,{a:()=>a});var s=i(17729);function a(e){s.Ay.rr()&&s.Ay.removeSubscription(e)}},56188:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(){}U(e){}changeUser(e=!1){}clearData(e=!1){}}},57086:(e,t,i)=>{i.d(t,{B:()=>g});var s=i(2320),a=i(17729),r=i(56188),n=i(2287),o=i(5245),l=i(193),u=i(28947);class h{constructor(e,t,i,s,a){this.triggerId=e,this.Hr=t,this.Cr=i,this.Jr=s,this.Kr=a,this.triggerId=e,this.Hr=t,this.Cr=i,this.Jr=s,this.Kr=a}static fromJson(e,t,i,s,a){return null==e||null==e.trigger_id?null:new h(e.trigger_id,t,i,s,a)}}var d=i(63788),c=i(83524),p=i(23916);class b extends r.A{constructor(e,t,i,s,a){super(),this.tg=e,this.Ts=t,this.C=i,this.Fi=s,this.ig=a,this.tg=e,this.Ts=t,this.C=i,this.Fi=s,this.ig=a,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.C){this.hg=this.C.ft(u.d.gt.aE)||this.hg,this.ng=this.C.ft(u.d.gt.iE)||this.ng,this.og=this.C.ft(u.d.gt.nE)||this.og;for(let e=0;e0){let e,s;r.push(n),null!=n.ug&&(e=n.ug),null!=n.dg&&o.A.RE(n.dg)&&(s=o.A.En(n.dg));let h=[];if(n.pg&&(0,l.cy)(n.pg))for(let e=0;er.length&&(this.ng[a.id]=r,s=!0,0===this.ng[a.id].length&&delete this.ng[a.id])}}s&&this.C&&this.C.Bt(u.d.gt.iE,this.ng)}mg(){if(!this.C)return;let e=[];for(let t=0;tthis.lg?this.ag():this.fg())}U(e){let t=!1;if(null!=e&&e.triggers){let i;this.ig.Zr(),this.fg();let s={},a={};this.triggers=[];for(let i=0;i{this.fg();let a=new Date().valueOf();e.dd(t)||(!1===navigator.onLine&&e.type===d.A.Xr.Or&&s.imageUrl?p.A.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.nd(a)&&this.wg(e,a,i)?0===this.Ts.uc()?p.A.info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Ts.X([s]),this.yg(e,a)):p.A.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},c=()=>{this.fg();let r=a.pop();if(null!=r){if(this.Tg(r,t,i,s,a),r.dd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${r.id} has already elapsed.`;a.length>0&&(e+=" Continuing to fall back."),p.A.info(e),c()}else{p.A.info(`Server aborted in-app message display. Falling back to lower priority ${r.type} trigger action ${e.id}.`);let n=1e3*r.ed-(new Date().valueOf()-t);n>0?this.eg.push(window.setTimeout(()=>{this.cg(r,t,i,s,a)},n)):this.cg(r,t,i,s,a)}}};switch(e.type){case d.A.Xr.Or:if(null==(r=(0,n.g)(e.data))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(o=this.ig.Mr(r)){p.A.error(o),c();break}u(r);break;case d.A.Xr.md:if(null==(l=h.fromJson(e.data,u,c,t,e.Kr||0))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.Er(l,i,s);break;default:p.A.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}Ce(e,t=null,i){if(!(0,l.BY)(c.A,e,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Fi&&this.Fi.Zl())return p.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();let s=new Date().valueOf(),a=s-(this.hg||0),r=!0,n=!0,o=[];for(let i=0;i=s)){let i=!1;for(let s=0;se.priority-t.priority);let u=o.pop();null!=u&&(p.A.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${e}.`),this.Tg(u,s,e,i,o),0===u.ed?this.cg(u,s,e,i,o):this.eg.push(window.setTimeout(()=>{this.cg(u,s,e,i,o)},1e3*u.ed)))}changeUser(e=!1){if(this.triggers=[],this.C&&this.C.Ut(u.d.gt.rE),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e=1e3*s}Tg(e,t,i,s,a){let r;this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let n={};n.Jr=t,n.ug=i,null!=s&&(r=s.bt()),n.dg=r;let o=[];for(let e of a)e.id&&o.push(e.id);n.pg=o,e.id&&this.ng[e.id].push(n),this.C&&this.C.Bt(u.d.gt.iE,this.ng)}yg(e,t){this.fg(),e.ad(t),this.hg=t,e.id&&(this.og[e.id]=t),this.C&&(this.C.Bt(u.d.gt.aE,t),this.C.Bt(u.d.gt.nE,this.og))}}let g={l:!1,provider:null,m:()=>(g.p(),g.provider||g.rg(),g.provider),rg:()=>{if(!g.provider){let e=a.Ay.ee(a.lw.Yh);g.provider=new b(null!=e?e:30,s.A.ea().Xi(),a.Ay.j(),a.Ay.nn(),s.A.ea()),a.Ay._(g.provider)}},p:()=>{g.l||(g.rg(),a.Ay.h(g),g.l=!0)},destroy:()=>{g.provider=null,g.l=!1}}},60614:(e,t,i)=>{i.d(t,{B:()=>s});let s=e=>null!==e&&"IFRAME"===e.tagName},62389:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(78189);class a extends s.A{constructor(e,t,i,a,r,n,o,l,u,h,d,c){super(e,void 0,void 0,t,i,void 0,void 0,void 0,a=a||s.A.DismissType.MANUAL,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,h,c),this.messageFields=d,this.messageFields=d}Po(){return!1}$t(e){if(this.uo===s.A.po.Vr){if(this.So)return!1;this.So=!0}return this.ti.X(e),!0}bt(){let e=super.bt(a.ds);return e[s.A.es.Go]=this.messageFields,e}static Ur(e){return new a(e[s.A.es.ra],e[s.A.es.vs],e[s.A.es.ta],e[s.A.es.pa],e[s.A.es.ma],e[s.A.es.ja],e[s.A.es.xa],e[s.A.es.wa],e[s.A.es.ka],e[s.A.es.CSS],e[s.A.es.Go],e[s.A.es.qa])}}a.ds=s.A.po.Vr},63108:(e,t,i)=>{i.d(t,{ID:()=>y,Nc:()=>C,Ql:()=>A,UH:()=>x,Y9:()=>E,Z7:()=>S,kz:()=>k});var s=i(84501),a=i(91848),r=i(19388),n=i(85251),o=i(10027),l=i(193),u=i(2720),h=i(99643),d=i(56073),c=i(23916),p=i(72093),b=i(72483),g=i(87196),f=i(80686),m=i(98048);let A="data-last-requested-refresh",v={};function y(e){e&&(e.className=e.className.replace("ab-show","ab-hide"),setTimeout(()=>{e&&e.parentNode&&e.parentNode.removeChild(e)},s.A.Ih));let t=e.getAttribute(m.og);null!=t&&(0,d.a)(t);let i=e.getAttribute("data-listener-id");null!=i&&(window.removeEventListener("scroll",v[i]),delete v[i])}function w(e,t){let i=h.A.ea(),s=document.createElement("div");if(s.className="ab-feed-body",s.setAttribute("aria-label","Feed"),s.setAttribute("role","feed"),null==e.lastUpdated){let e=document.createElement("div");e.className="ab-no-cards-message";let t=document.createElement("i");t.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",e.appendChild(t),s.appendChild(e)}else{let r=!1,o=t=>e.logCardClick(t);for(let l of e.cards){let u=l instanceof n.A;!u||e.nr()?(s.appendChild((0,a.ZZ)(l,o,t,i.Oo())),r=r||!u):c.A.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!r){let e=document.createElement("div");e.className="ab-no-cards-message",e.innerHTML=i.get("NO_CARDS_MESSAGE")||"",e.setAttribute("role","article"),s.appendChild(e)}}return s}function x(e,t){if(null!=e&&null!=t){let i=[],s=t.querySelectorAll(".ab-card");e._o||(e._o={});for(let t=0;t0&&e.logCardImpressions(i)}}function E(e,t){if(null==e||null==t)return;t.setAttribute("aria-busy","true");let i=t.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");let a=new Date().valueOf().toString();t.setAttribute("data-last-requested-refresh",a),setTimeout(()=>{if(t.getAttribute("data-last-requested-refresh")===a){let e=t.querySelectorAll(".fa-spin");for(let t=0;t{y(s),e.stopPropagation()};r.addEventListener("keydown",e=>{e.keyCode!==u.c.Wo&&e.keyCode!==u.c.Xo||n(e)}),r.onclick=n;let o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",e&&null==e.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");let l=t=>{E(e,s),t.stopPropagation()};o.addEventListener("keydown",e=>{e.keyCode!==u.c.Wo&&e.keyCode!==u.c.Xo||l(e)}),o.onclick=l,a.appendChild(o),a.appendChild(r),s.appendChild(w(e,t));let h=()=>x(e,s);if(s.addEventListener("scroll",h),!i){window.addEventListener("scroll",h);let e=p.A.ce();v[e]=h,s.setAttribute("data-listener-id",e)}return s}function S(e,t,i,s,a){if(!(0,l.cy)(t))return;let r=[];for(let e of t)if(e instanceof o.A){if(e.url&&b.nx.test(e.url)){let t=(0,g.jj)(e.url);if((0,g.qj)(t)){c.A.error((0,g.$6)(g.mY.Tr,"Content Card"));continue}}r.push(e)}if(e.cards=r,e.lastUpdated=i,null!=s){if(s.setAttribute("aria-busy","false"),null==e.lastUpdated)y(s);else{let t=s.querySelectorAll(".ab-feed-body")[0];if(null!=t){let i=w(e,a);t.parentNode&&t.parentNode.replaceChild(i,t),x(e,i.parentNode)}}}}function k(e,t){e&&t.setAttribute(m.og,e)}},63788:(e,t,i)=>{i.d(t,{A:()=>m});var s=i(16708),a=i(23916);class r{constructor(e){this.xc=e,this.xc=e}yc(e){return null==this.xc||this.xc===e[0]}static fromJson(e){return new r(e?e.event_name:null)}bt(){return this.xc}}var n=i(193);class o{constructor(e,t,i,a){this.yE=e,this.HE=t,this.comparator=i,this.LE=a,this.yE=e,this.HE=t,this.comparator=i,this.LE=a,this.HE===o.QE.UE&&this.comparator!==o.wE.XE&&this.comparator!==o.wE.BE&&this.comparator!==o.wE.jE&&this.comparator!==o.wE.zE&&(this.LE=(0,s.Zo)(this.LE))}yc(e){let t=null;switch(null!=e&&(t=e[this.yE]),this.comparator){case o.wE.FE:return null!=t&&t.valueOf()===this.LE.valueOf();case o.wE.kE:return null==t||t.valueOf()!==this.LE.valueOf();case o.wE.xE:return null!=t&&typeof t==typeof this.LE&&t>this.LE;case o.wE.XE:return this.HE===o.QE.UE?null!=t&&(0,n.$P)(t)&&(0,s.Jd)(t)<=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t>=this.LE;case o.wE.JE:return null!=t&&typeof t==typeof this.LE&&t=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t<=this.LE;case o.wE.VE:return null!=t&&"string"==typeof t&&typeof t==typeof this.LE&&null!=t.match(this.LE);case o.wE.qE:return null!=t;case o.wE.PE:return null==t;case o.wE.jE:return null!=t&&(0,n.$P)(t)&&(0,s.DA)(t)this.LE;case o.wE.WE:return null==t||typeof t!=typeof this.LE||"string"!=typeof t||null==t.match(this.LE)}return!1}static fromJson(e){return new o(e.property_key,e.property_type,e.comparator,e.property_value)}bt(){let e=this.LE;return(0,n.$P)(this.LE)&&(e=(0,s.UK)(e.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:e}}static En(e){return new o(e.k,e.t,e.c,e.v)}}o.QE={ZE:"boolean",$E:"number",tT:"string",UE:"date"},o.wE={FE:1,kE:2,xE:3,XE:4,JE:5,BE:6,VE:10,qE:11,PE:12,jE:15,zE:16,WE:17};class l{constructor(e){this.filters=e,this.filters=e}yc(e){let t=!0;for(let i=0;i=1e3*this.rd}ad(e){this.od=e}ud(e){return Math.max(e+1e3*this.ed-new Date().valueOf(),0)}dd(e){let t=new Date().valueOf()-e,i=null==e||isNaN(t)||null==this.Kr||t{i.d(t,{A:()=>s});let s={Au:"invalid_api_key",Du:"blacklisted",ku:"no_device_identifier",qu:"invalid_json_response",gu:"empty_response",__:"sdk_auth_error"}},69071:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(10027);class a extends s.A{constructor(e,t,i,s,a,r,n,o,l,u,h,d,c,p){super(e,t,null,i,null,s,a,r,n,o,l,u,h,d,c,p),this.oe="ab-image-only",this.ae=!1,this.test=!1}bt(){let e={};return e[s.A.es.hs]=s.A.ds.ai,e[s.A.es.ps]=this.id,e[s.A.es.us]=this.viewed,e[s.A.es.fs]=this.imageUrl,e[s.A.es.bs]=this.updated,e[s.A.es.gs]=this.created,e[s.A.es.js]=this.categories,e[s.A.es.zs]=this.expiresAt,e[s.A.es.URL]=this.url,e[s.A.es.ks]=this.linkText,e[s.A.es.qs]=this.aspectRatio,e[s.A.es.vs]=this.extras,e[s.A.es.ws]=this.pinned,e[s.A.es.ys]=this.dismissible,e[s.A.es.As]=this.clicked,e[s.A.es.Bs]=this.test,e}}},71137:(e,t,i)=>{i.d(t,{w:()=>a});var s=i(17729);function a(){if(s.Ay.rr())return s.Ay.mr()}},72093:(e,t,i)=>{i.d(t,{A:()=>s});let s={ce:function(){let e=(e=!1)=>{let t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},72483:(e,t,i)=>{i.d(t,{B9:()=>w,Dz:()=>g,L4:()=>C,To:()=>E,Z2:()=>y,ZJ:()=>f,fB:()=>v,nx:()=>p,rK:()=>A,uZ:()=>m,xs:()=>x});var s=i(193),a=i(75093),r=i(23916),n=i(16708),o=i(87196),l=i(98048);let u=/^[^\x00-\x1F\x22]+$/,h=/[$.]/,d=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],c=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//,b=/^[^\s]+$/;function g(e,t,i){let s=null!=e&&"string"==typeof e&&(""===e||null!=e.match(u));return s||r.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),s}function f(e){return null!=e&&e.match(h)&&-1===d.indexOf(e)&&r.A.warn("Custom attribute keys cannot contain '$' or '.'"),g(e,"set custom user attribute","the given key")}function m(e){let t=typeof e;return null==e||"number"===t||"boolean"===t||(0,s.$P)(e)||"string"===t}function A(e,t,i,s=!1){let a="string"==typeof e||null===e&&s;return a||r.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),a}function v(e,t,i,o,u){let h,d,c;if(null==e&&(e={}),"object"!=typeof e||(0,s.cy)(e))return r.A.error(`${t} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];t===l.KG?(h=76800,d="75KB"):(h=51200,d="50KB");let p=JSON.stringify(e);if((0,a.N)(p)>h)return r.A.error(`Could not ${o} because ${i} was greater than the max size of ${d}.`),[!1,null];try{c=JSON.parse(p)}catch(e){return r.A.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in e){if(t===l.KG&&!f(i)||!g(i,o,`the ${u} property name`))return[!1,null];let a=e[i];if(t!==l.KG&&null==a){delete e[i],delete c[i];continue}if((0,s.$P)(a)&&(c[i]=(0,n.EQ)(a)),!function(e,t,i,a,o){let l;return(l=(0,s.Gv)(e)||(0,s.cy)(e)?function e(t,i,a){let o=-1!==a;if(o&&a>50)return r.A.error("Nested attributes cannot be more than 50 levels deep."),!1;let l=o?a+1:-1;if((0,s.cy)(t)&&(0,s.cy)(i)){for(let a=0;a{r.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let r of t)if("string"==typeof r){if(a)return n(),[!1,!1];if(!g(r,`set custom user attribute "${e}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,s.Gv)(r)||i)return n(),[!1,!1];if(!v(r,l.KG,"attribute value",`set custom user attribute "${e}"`,"custom user attribute"))return[!1,!1];a=!0}return[i,a]}function w(e){return"string"==typeof e&&null!=e.toLowerCase().match(c)}function x(e){if(!(o.V.properties.type in e))return!1;switch(e[o.V.properties.type]){case o.V.types.io:if(o.V.properties.eo in e)return!0;break;case o.V.types.logCustomEvent:case o.V.types.setEmailNotificationSubscriptionType:case o.V.types.setPushNotificationSubscriptionType:case o.V.types.setCustomUserAttribute:case o.V.types.addToSubscriptionGroup:case o.V.types.removeFromSubscriptionGroup:case o.V.types.addToCustomAttributeArray:case o.V.types.removeFromCustomAttributeArray:case o.V.types.co:case o.V.types.mo:if(o.V.properties.so in e)return!0;break;case o.V.types.requestPushPermission:return!0}return!1}function E(e){let t=!1;return Object.keys(o.V.types).forEach(i=>{o.V.types[i]!==e.toString()||(t=!0)}),t}function C(e){return b.test(e)}},75093:(e,t,i)=>{i.d(t,{N:()=>a,u:()=>r});var s=i(23916);function a(e){let t=e.length;for(let i=e.length-1;i>=0;i--){let s=e.charCodeAt(i);s>127&&s<=2047?t++:s>2047&&s<=65535&&(t+=2),s>=56320&&s<=57343&&i--}return t}function r(e){try{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=window.atob(e),i=new Uint8Array(t.length);for(let e=0;e{i.d(t,{A:()=>c});var s=i(17729),a=i(56188),r=i(76840),n=i(46050),o=i(16708),l=i(28947),u=i(86283);class h extends a.A{constructor(e,t){super(),this.C=e,this.Fi=t,this.cards=[],this.xi=null,this.C=e,this.Fi=t,this.Ts=new u.A,s.Ay.N(this.Ts),this.Ds()}Ds(){let e=[];this.C&&(e=this.C.ft(l.d.gt.qi)||[]);let t=[];for(let i=0;i=t),a&&e.push(this.cards[i])}return new r.A(e,this.xi)}vi(){this.Fi&&this.Fi.requestFeedRefresh()}qt(e){return this.Ts.Ft(e)}clearData(e){null==e&&(e=!1),this.cards=[],this.xi=null,e&&this.C&&(this.C.Ut(l.d.gt.qi),this.C.Ut(l.d.gt.zi)),this.Ts.X(new r.A(this.cards.slice(),this.xi))}}let d={l:!1,provider:null,m:()=>(d.p(),d.provider||(d.provider=new h(s.Ay.j(),s.Ay.nn()),s.Ay._(d.provider)),d.provider),p:()=>{d.l||(s.Ay.h(d),d.l=!0)},destroy:()=>{d.provider=null,d.l=!1}},c=d},76840:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(84501),a=i(47790),r=i(54288),n=i(54586);class o extends s.A{constructor(e,t){super(e,t)}logCardImpressions(e){(0,a.j)(e,!1)}logCardClick(e){return(0,r.x)(e,!1)}sr(){(0,n.R)()}nr(){return!1}}},78189:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(17729),a=i(51309),r=i(19388),n=i(2720),o=i(86283),l=i(60614);class u{constructor(e,t,i,s,a,r,n,l,h,d,c,p,b,g,f,m,A,v,y,w,x,E,C,S,k,N,T,_,I,O){this.message=e,this.messageAlignment=t,this.slideFrom=i,this.extras=s,this.triggerId=a,this.clickAction=r,this.uri=n,this.openTarget=l,this.dismissType=h,this.duration=d,this.icon=c,this.imageUrl=p,this.imageStyle=b,this.iconColor=g,this.iconBackgroundColor=f,this.backgroundColor=m,this.textColor=A,this.closeButtonColor=v,this.animateIn=y,this.animateOut=w,this.header=x,this.headerAlignment=E,this.headerTextColor=C,this.frameColor=S,this.buttons=k,this.cropType=N,this.orientation=T,this.htmlId=_,this.css=I,this.messageExtras=O,this.message=e,this.messageAlignment=t||u.TextAlignment.CENTER,this.duration=d||5e3,this.slideFrom=i||u.SlideFrom.BOTTOM,this.extras=s||{},this.triggerId=a,this.clickAction=r||u.ClickAction.NONE,this.uri=n,this.openTarget=l||u.OpenTarget.NONE,this.dismissType=h||u.DismissType.AUTO_DISMISS,this.icon=c,this.imageUrl=p,this.imageStyle=b||u.ImageStyle.TOP,this.iconColor=g||u.th.ih,this.iconBackgroundColor=f||u.th.sh,this.backgroundColor=m||u.th.ih,this.textColor=A||u.th.hh,this.closeButtonColor=v||u.th.eh,this.animateIn=y,null==this.animateIn&&(this.animateIn=!0),this.animateOut=w,null==this.animateOut&&(this.animateOut=!0),this.header=x,this.headerAlignment=E||u.TextAlignment.CENTER,this.headerTextColor=C||u.th.hh,this.frameColor=S||u.th.Eh,this.buttons=k||[],this.cropType=N||u.CropType.FIT_CENTER,this.orientation=T,this.htmlId=_,this.css=I,this.isControl=!1,this.messageExtras=O,this.nh=!1,this.Ht=!1,this.So=!1,this.Th=!1,this.ho=null,this.jo=null,this.ti=new o.A,this.oh=new o.A,this.Co=u.TextAlignment.CENTER}subscribeToClickedEvent(e){return this.ti.Ft(e)}subscribeToDismissedEvent(e){return this.oh.Ft(e)}removeSubscription(e){this.ti.removeSubscription(e),this.oh.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.ll(this.ho)}wo(){return!0}Po(){return this.wo()}bo(){return null!=this.htmlId&&this.htmlId.length>4}lo(){return this.bo()&&null!=this.css&&this.css.length>0}do(){if(this.bo()&&this.lo())return this.htmlId+"-css"}ts(){return!this.Ht&&(this.Ht=!0,!0)}Do(){return this.Ht}$t(e){return!this.So&&(this.So=!0,this.ti.X(),!0)}Qt(){return!this.Th&&(this.Th=!0,this.oh.X(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(".ab-iam-root");if(null==t&&(t=e),this.wo()&&null!=t.parentNode){let e=t.parentNode.classList;e&&e.contains(u.rh)&&e.remove(u.rh),document.body.removeEventListener("touchmove",u.lh)}t.className=t.className.replace(u.uh,u.ah)}return this.animateOut||!1}ll(e,t){let i,s;if(null==e)return;this.ho=null;let r=!1;(i=-1===e.className.indexOf("ab-in-app-message")?e.getElementsByClassName("ab-in-app-message")[0]:e)&&(r=this.hide(i));let n=document.body;null!=n&&(s=n.scrollTop);let o=()=>{if(e&&e.parentNode){let t=e.closest(".ab-iam-root");null==t&&(t=e),t.parentNode&&t.parentNode.removeChild(t)}let i=this.do();if(null!=i){let e=document.getElementById(i);e&&e.parentNode&&e.parentNode.removeChild(e)}null!=n&&"Safari"===a.A.browser&&(n.scrollTop=s),t?t():this.Qt()};r?setTimeout(o,u.Ih):o(),this.jo&&this.jo.focus()}Mo(){return document.createTextNode(this.message||"")}$o(e){let t="";this.message||this.header||!this.wo()||(t="Modal Image"),e.setAttribute("alt",t)}static lh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains("ab-message-text")&&t.scrollHeight>t.clientHeight||document.querySelector(`.${u.rh}`)&&e.cancelable&&e.preventDefault()}Ah(e){let t=e.parentNode;this.wo()&&null!=t&&this.orientation!==u.Orientation.LANDSCAPE&&(null!=t.classList&&t.classList.add(u.rh),document.body.addEventListener("touchmove",u.lh,!!(0,r.CF)()&&{passive:!1})),e.className+=" "+u.uh}static Oh(e){if(e.keyCode===n.c._h&&!s.Ay.ee(s.lw.mh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let e=document.getElementsByClassName("ab-html-message"),t=!1;for(let i of e){let e=null;(0,l.B)(i)&&i.contentWindow&&(e=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=e&&((0,r.jp)(e),t=!0)}if(!t){let e=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=e&&(0,r.jp)(e)}}}Lh(){this.nh||s.Ay.ee(s.lw.mh)||(document.addEventListener("keydown",u.Oh,!1),s.Ay.Nh(()=>{document.removeEventListener("keydown",u.Oh)}),this.nh=!0)}bt(e){let t={};return e&&(t[u.es.ra]=this.message,t[u.es.sa]=this.messageAlignment,t[u.es.Sh]=this.slideFrom,t[u.es.vs]=this.extras,t[u.es.ta]=this.triggerId,t[u.es.ia]=this.clickAction,t[u.es.URI]=this.uri,t[u.es.oa]=this.openTarget,t[u.es.pa]=this.dismissType,t[u.es.ma]=this.duration,t[u.es.na]=this.icon,t[u.es.fs]=this.imageUrl,t[u.es.ua]=this.imageStyle,t[u.es.ca]=this.iconColor,t[u.es.fa]=this.iconBackgroundColor,t[u.es.da]=this.backgroundColor,t[u.es.la]=this.textColor,t[u.es.ga]=this.closeButtonColor,t[u.es.ja]=this.animateIn,t[u.es.xa]=this.animateOut,t[u.es.za]=this.header,t[u.es.ha]=this.headerAlignment,t[u.es.va]=this.headerTextColor,t[u.es.wa]=this.frameColor,t[u.es.ya]=this.buttons,t[u.es.Sa]=this.cropType,t[u.es.ba]=this.orientation,t[u.es.ka]=this.htmlId,t[u.es.CSS]=this.css,t[u.es.hs]=e,t[u.es.qa]=this.messageExtras),t}}u.th={hh:0xff333333,ih:0xffffffff,sh:0xff0073d5,Rh:0xffefefef,Mh:0xff555555,Eh:0xc0333333,eh:0xff9b9b9b},u.xo={Dh:"hd",vo:"ias",Ch:"of",dh:"do",Uh:"umt",bh:"tf",Ph:"te"},u.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},u.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},u.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u.OpenTarget={NONE:"NONE",BLANK:"BLANK"},u.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},u.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},u.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},u.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},u.po={Yr:"SLIDEUP",Wr:"MODAL",Ao:"MODAL_STYLED",Qr:"FULL",Vr:"WEB_HTML",fo:"HTML",Fo:"HTML_FULL"},u.Ih=500,u.ph=200,u.uh="ab-show",u.ah="ab-hide",u.rh="ab-pause-scrolling",u.es={ra:"m",sa:"ma",Sh:"sf",vs:"e",ta:"ti",ia:"ca",URI:"u",oa:"oa",pa:"dt",ma:"d",na:"i",fs:"iu",ua:"is",ca:"ic",fa:"ibc",da:"bc",la:"tc",ga:"cbc",ja:"ai",xa:"ao",za:"h",ha:"ha",va:"htc",wa:"fc",ya:"b",Sa:"ct",ba:"o",ka:"hi",CSS:"css",hs:"type",Go:"messageFields",qa:"me"}},78450:(e,t,i)=>{i.d(t,{k:()=>r});var s=i(17729),a=i(75293);function r(e){if(s.Ay.rr())return a.A.m().qt(e)}},80686:(e,t,i)=>{function s(e){return null!=e&&!!e.getAttribute("data-ab-had-top-impression")}function a(e){null!=e&&e.setAttribute("data-ab-had-top-impression","true")}function r(e){return null!=e&&!!e.getAttribute("data-ab-had-bottom-impression")}function n(e){null!=e&&e.setAttribute("data-ab-had-bottom-impression","true")}i.d(t,{M4:()=>a,MX:()=>n,M_:()=>r,rA:()=>o,sf:()=>s});let o={oo:s,no:r}},81648:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(78189),a=i(86283);class r{constructor(e,t,i,n,o,l,u){this.text=e,this.backgroundColor=t,this.textColor=i,this.borderColor=n,this.clickAction=o,this.uri=l,this.id=u,this.text=e||"",this.backgroundColor=t||s.A.th.sh,this.textColor=i||s.A.th.ih,this.borderColor=n||this.backgroundColor,this.clickAction=o||s.A.ClickAction.NONE,this.uri=l,null==u&&(u=r.Zi),this.id=u,this.So=!1,this.ti=new a.A}subscribeToClickedEvent(e){return this.ti.Ft(e)}removeSubscription(e){this.ti.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}$t(){return!this.So&&(this.So=!0,this.ti.X(),!0)}static fromJson(e){return new r(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}r.Zi=-1},81985:(e,t,i)=>{i.d(t,{b:()=>a});var s=i(28947);function a(e){let t;let i=null==e?void 0:e.ft(s.d.gt._E);return i&&(t={label:i.l,name:i.a}),t}},82722:(e,t,i)=>{i.d(t,{c:()=>s,u:()=>a});let s={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},a={xg:"Android",ao:"iOS",Pg:"Mac",Og:"Windows"}},83353:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(98048),a=i(28947);let r={O:{Nu:"data",gi:"content_cards/sync",Le:"feature_flags/sync",Gr:"template",K:"banners/sync"},Qu:e=>null==e?void 0:e.ft(a.d.gt.lE),sm:e=>null==e?void 0:e.ft(a.d.gt.SE),nm:(e,t)=>{null==e||e.Bt(a.d.gt.lE,t)},rm:(e,t)=>{null==e||e.Bt(a.d.gt.SE,t)},Bu:(e,t)=>{if(!e||!t)return -1;let i=r.Qu(e);if(null==i)return -1;let s=i[t];return null==s||isNaN(s)?-1:s},zu:(e,t)=>{let i=s.et;if(!e||!t)return i;let a=r.sm(e);return null==a?i:null==(i=a[t])||isNaN(i)?s.et:i},W:(e,t,i)=>{if(!e||!t)return;let s=r.Qu(e);null==s&&(s={}),s[t]=i,r.nm(e,s)},ju:(e,t,i)=>{if(!e||!t)return;let s=r.sm(e);null==s&&(s={}),s[t]=i,r.rm(e,s)},wi:(e,t)=>{e&&t&&r.ju(e,t,s.et)},Pu:(e,t)=>{if(!e||!t)return;let i=r.zu(e,t);r.ju(e,t,i+1)}},n=r},83524:(e,t,i)=>{i.d(t,{A:()=>s});let s={OPEN:"open",Rr:"purchase",hr:"push_click",Ee:"custom_event",Bo:"iam_click",Bs:"test"}},83967:(e,t,i)=>{i.r(t),i.d(t,{Banner:()=>tu,BrazeSdkMetadata:()=>z,CaptionedImage:()=>r.A,Card:()=>s.A,ClassicCard:()=>n.A,ContentCards:()=>_,ControlCard:()=>o.A,ControlMessage:()=>eC.A,DeviceProperties:()=>j.A,FeatureFlag:()=>tt.A,Feed:()=>ep.A,FullScreenMessage:()=>eS.A,HtmlMessage:()=>ek.A,ImageOnly:()=>a.A,InAppMessage:()=>ex.A,InAppMessageButton:()=>eE.A,ModalMessage:()=>eN.A,SlideUpMessage:()=>eT.A,User:()=>te.A,WindowUtils:()=>eG.uD,addSdkMetadata:()=>L,automaticallyShowInAppMessages:()=>e1,changeUser:()=>$.changeUser,deferInAppMessage:()=>e3,destroy:()=>G,destroyFeed:()=>ef,disableSDK:()=>q,enableSDK:()=>X,getAllBanners:()=>tv,getAllFeatureFlags:()=>tr,getBanner:()=>tp,getCachedContentCards:()=>I,getCachedFeed:()=>eg,getDeferredInAppMessage:()=>e5,getDeviceId:()=>K,getFeatureFlag:()=>ta,getUser:()=>H.w,handleBrazeAction:()=>ec.V,hideContentCards:()=>D,initialize:()=>V,insertBanner:()=>tw,isDisabled:()=>J,isInitialized:()=>Y,isPushBlocked:()=>e7,isPushPermissionGranted:()=>e8,isPushSupported:()=>e9,logBannerImpressions:()=>tm,logCardClick:()=>l.x,logCardDismissal:()=>u.a,logCardImpressions:()=>h.j,logContentCardClick:()=>c,logContentCardImpressions:()=>d,logCustomEvent:()=>W.logCustomEvent,logFeatureFlagImpression:()=>tl,logFeedDisplayed:()=>em.o,logInAppMessageButtonClick:()=>eH,logInAppMessageClick:()=>ez,logInAppMessageHtmlClick:()=>eL,logInAppMessageImpression:()=>eR,logPurchase:()=>Z.logPurchase,openSession:()=>et,refreshFeatureFlags:()=>ti.refreshFeatureFlags,removeAllSubscriptions:()=>ei,removeSubscription:()=>es.a,requestBannersRefresh:()=>function e(t,i,s){if(!b.Ay.rr())return void S.A.warn(eh.xE);let a=b.Ay.v();if(!a)return;if(!(0,F.cy)(t)||0===t.length)return void S.A.warn("placementIds should be a non-empty array.");if(!b.Ay.ee(b.lw.re))return void S.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");let r=td.m();if(td.m().Rt())return void S.A.warn("Banners can be refreshed only once per session per user.");if(!a||!r.L())return void a.A(()=>{e(t,i,s)});let n=a.ne();t.length>n&&(S.A.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${n} (max allowed).`),t=t.slice(0,n)),0!==(t=t.filter(e=>!!(0,en.L4)(e)||(S.A.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${e}`),!1))).length&&(S.A.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),td.m().$(t,i,s))},requestContentCardsRefresh:()=>T,requestFeedRefresh:()=>eA.R,requestImmediateDataFlush:()=>ea.requestImmediateDataFlush,requestPushPermission:()=>e4.requestPushPermission,setLogger:()=>er,setSdkAuthenticationSignature:()=>eo,showContentCards:()=>U,showFeed:()=>ev.showFeed,showInAppMessage:()=>eQ,subscribeToBannersUpdates:()=>ty,subscribeToContentCardsUpdates:()=>B,subscribeToFeatureFlagsUpdates:()=>tn,subscribeToFeedUpdates:()=>ey.k,subscribeToInAppMessage:()=>e0,subscribeToSdkAuthenticationFailures:()=>el,toggleContentCards:()=>R,toggleFeed:()=>ew,toggleLogging:()=>eu,unregisterPush:()=>e6.unregisterPush,wipeData:()=>ed});var s=i(10027),a=i(69071),r=i(39216),n=i(37796),o=i(85251),l=i(54288),u=i(21965),h=i(47790);function d(e){return(0,h.j)(e,!0)}function c(e){return(0,l.x)(e,!0)}var p=i(84501),b=i(17729),g=i(5631),f=i(56188),m=i(16708),A=i(15141),v=i(46050),y=i(28947),w=i(86283),x=i(83353),E=i(8670),C=i(90600),S=i(23916);class k extends f.A{constructor(e,t,i,s,a){super(),this.Cs=e,this.C=t,this.B=i,this.Ss=s,this.S=a,this.Cs=e,this.C=t,this.B=i,this.Ss=s,this.S=a,this.Ts=new w.A,b.Ay.N(this.Ts),this.Rs=0,this.Us=0,this.cards=[],this.Ds();let r=C.A.Ls.Fs;new C.A(r,S.A).Ns(r.Ms.Js,e=>{this.$s(e)}),this.Es=null,this.k=null,this.Ps=null,this.Xs=null,this._s=10}Gs(){return this.Es}Hs(e){this.Es=e}Ct(){return this.k}Tt(e){this.k=e}Ds(){if(!this.C)return;let e=this.C.ft(y.d.gt.Is)||[],t=[];for(let i=0;i=i),l=l&&!e[r].dismissed)t.push(e[r]);else{let t=e[r].id;t&&(s[t]=!0),a=!0}}return a&&this.C&&this.C.Bt(y.d.gt.Vt,s),t}Ys(){var e;let t=[];for(let e=0;e{this.vi(e,t,!0)}));let n=a.H({},!0);r.ft(y.d.gt.fi)!==b.Ay.di()&&this.yi(),n.last_full_sync_at=this.Rs,n.last_card_updated_at=this.Us;let o=a.J(n,x.A.O.gi,i),l=!1;a.V(n,(i=-1)=>{if(this.C){let e=new Date().valueOf();x.A.W(this.C,x.A.O.gi,e)}-1!==i&&o.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),g.A.Y({url:`${a.Z()}/content_cards/sync`,data:n,headers:o,tt:i=>{if(!a.st(n,i,o))return l=!0,void("function"==typeof t&&t());a.it(),this.U(i),l=!1,"function"==typeof e&&e()},error:e=>{a.et(e,"retrieving content cards"),l=!0,"function"==typeof t&&t()},nt:(i,s)=>{let r;if(l){let e=this.Xs;(null==e||e<1e3*this._s)&&(e=1e3*this._s),r=Math.min(3e5,(0,E.C)(1e3*this._s,3*e))}a.rt(s,()=>{this.vi(e,t,!1)},x.A.O.gi,e=>this.Ci(e),()=>this.bi(),r)}})},x.A.O.gi,t)}pi(e){e||this.Ds();let t=this.Ks(this.cards);t.sort((e,t)=>e.pinned&&!t.pinned?-1:t.pinned&&!e.pinned?1:e.updated&&t.updated&&e.updated>t.updated?-1:e.updated&&t.updated&&t.updated>e.updated?1:0);let i=Math.max(this.Us||0,this.Rs||0);return 0===i&&(i=void 0),this.C&&this.C.ft(y.d.gt.Vs)===this.Us&&void 0===i&&(i=this.Us),new _(t,(0,m.Zo)(i))}qt(e){return this.Ts.Ft(e)}yi(){this.Rs=0,this.Us=0,this.C&&(this.C.Ut(y.d.gt.Qs),this.C.Ut(y.d.gt.Vs))}changeUser(e){e||(this.cards=[],this.Ts.X(new _(this.cards.slice(),null)),this.C&&(this.C.Ut(y.d.gt.Is),this.C.Ut(y.d.gt.Kt),this.C.Ut(y.d.gt.Yt),this.C.Ut(y.d.gt.Vt))),this.yi()}clearData(e){this.Rs=0,this.Us=0,this.cards=[],this.Ts.X(new _(this.cards.slice(),null)),e&&this.C&&(this.C.Ut(y.d.gt.Is),this.C.Ut(y.d.gt.Kt),this.C.Ut(y.d.gt.Yt),this.C.Ut(y.d.gt.Vt),this.C.Ut(y.d.gt.Qs),this.C.Ut(y.d.gt.Vs))}Zs(){return!!this.B&&(!!this.B.Ri()||(0!==this.B.Et()&&this.Ui(),!1))}Ui(){this.Ts.X(new _([],new Date)),this.C&&this.C.Ut(y.d.gt.Is)}}let N={l:!1,provider:null,m:()=>(N.p(),N.provider||(N.provider=new k(b.Ay.ir(),b.Ay.j(),b.Ay.v(),b.Ay.tr(),b.Ay.g()),b.Ay._(N.provider)),N.provider),p:()=>{N.l||(b.Ay.h(N),N.l=!0)},destroy:()=>{N.provider=null,N.l=!1}};function T(e,t){if(b.Ay.rr())return N.m().vi(e,t,!0)}class _ extends p.A{constructor(e,t){super(e,t)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(e){(0,h.j)(e,!0)}logCardClick(e){return(0,l.x)(e,!0)}sr(){T()}nr(){return!0}}function I(){if(b.Ay.rr())return N.m().pi(!1)}_.dr=6e4;var O=i(63108);function D(e){if(!b.Ay.rr())return;let t=document.querySelectorAll(".ab-feed");for(let i=0;i{t.vi(void 0,void 0,!0)});i&&t.Tt(i)}}return i}var M=i(91848),P=i(6036);function U(e,t){var i;if(!b.Ay.rr())return;(0,P.s)();let s=!1;null==e&&(e=document.body,s=!0);let a=b.Ay.ee(b.lw.tn)||b.Ay.ee(b.lw.en)||!1,r=N.m().pi(!1);"function"==typeof t&&(0,O.Z7)(r,t(r.cards.slice()),r.lastUpdated,null,a);let n=(0,O.Nc)(r,a,s),o=N.m(),l=o.Gs();(null==r.lastUpdated||new Date().valueOf()-r.lastUpdated.valueOf()>_.dr)&&(null==l||new Date().valueOf()-l>_.dr)&&(S.A.info(`Cached content cards were older than max TTL of ${_.dr} ms, requesting an update from the server.`),(0,O.Y9)(r,n),o.Hs(new Date().valueOf()));let u=new Date().valueOf(),h=B(function(e){let i=n.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let e,t=e=500-(new Date().valueOf()-u),s=n.getAttribute(O.Ql);s&&(isNaN(t=parseInt(s))||(e-=new Date().valueOf()-t)),setTimeout(function(){i.className=i.className.replace(/fa-spin/g,"")},Math.max(e,0))}let s=e.cards;"function"==typeof t&&(s=t(s.slice())),(0,O.Z7)(r,s,e.lastUpdated,n,a)});(0,O.kz)(h,n);let d=function(e){let t=e.querySelectorAll(".ab-feed"),i=null;for(let s=0;s0?D():U(e,t))}let z={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};var F=i(193);function L(e){if(!b.Ay.rr())return;let t=b.Ay.g();if(t){if(!(0,F.cy)(e))return S.A.error("Cannot set SDK metadata because metadata is not an array."),!1;for(let t of e)if(!(0,F.BY)(z,t,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;return t.addSdkMetadata(e),!0}}var $=i(10403);function G(){S.A.info("Destroying Braze instance"),b.Ay.destroy(!0)}var j=i(99571);function q(){let e=b.Ay.nn();e&&e.requestImmediateDataFlush();let t=new y.A.se(null,!0),i="This-cookie-will-expire-in-"+t.le();t.store(y.d.me,i);let s=C.A.Ls.Fs;new C.A(s,S.A).setItem(s.Ms.pe,s.be,!0),S.A.info("disableSDK was called"),b.Ay.destroy(!1),b.Ay.fe(!0)}function X(){new y.A.se(null,!0).remove(y.d.me);let e=C.A.Ls.Fs;new C.A(e,S.A).ge(e.Ms.pe,e.be),S.A.info("enableSDK was called"),b.Ay.destroy(!1),b.Ay.fe(!1)}function K(e){if(!b.Ay.rr())return;let t=b.Ay.ue();if(!t)return;let i=t.ve().id;if("function"!=typeof e)return i;S.A.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),e(i)}var H=i(71137);function V(e,t){return b.Ay.initialize(e,t)}function J(){return!!new y.A.se(null,!0).gr(y.d.me)}function Y(){return b.Ay._t()}var W=i(47274),Z=i(43795),Q=i(83524),ee=i(57086);function et(){if(!b.Ay.rr())return;let e=b.Ay.nn();if(!e)return;e.openSession();let t=C.A.Ls.Fs,i=new C.A(t,S.A);i.cr(t.Ms.jr,(s,a)=>{let r=a.lastClick,n=a.trackingString;S.A.info(`Firing push click trigger from ${n} push click at ${r}`);let o=e.lr(r,n),l=function(){ee.B.m().Ce(Q.A.hr,[n],o)};e.br(l,l),i.ge(t.Ms.jr,s)}),i.Ns(t.Ms.kr,function(t){e.vr(t)})}function ei(){b.Ay.rr()&&b.Ay.removeAllSubscriptions()}var es=i(56073),ea=i(99002);function er(e){S.A.setLogger(e)}var en=i(72483);function eo(e){if(!b.Ay.rr()||""===e||!(0,en.rK)(e,"set signature","signature",!1))return!1;let t=b.Ay.Sr();return!!t&&(t.setSdkAuthenticationSignature(e),!0)}function el(e){var t;if(b.Ay.rr())return null===(t=b.Ay.Sr())||void 0===t?void 0:t.subscribeToSdkAuthenticationFailures(e)}function eu(){S.A.toggleLogging()}var eh=i(98048);function ed(){let e=b.Ay.j();if(null==e)return void S.A.warn(eh.xE);e.clearData();let t=(0,F.HP)(C.A.Ls);for(let e=0;e0?ef():(0,ev.showFeed)(e,t,i))}var ex=i(78189),eE=i(81648),eC=i(30741),eS=i(3684),ek=i(62389),eN=i(36153),eT=i(4869),e_=i(2320),eI=i(31065),eO=i(41470);function eD(){(0,eI.n)(void 0,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text[dir=rtl]{border-width:5px 10px 5px 25px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}"),(0,eO.N)()}var eB=i(19388),eM=i(25315);function eP(e,t){return null==e||isNaN(e=parseInt(e.toString()))?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(0xff0000&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((0xff000000&e)>>>24)/255*t].join(",")+")")}var eU=i(40772);function eR(e){if(!b.Ay.rr())return!1;if(!(e instanceof ex.A||e instanceof eC.A))return S.A.error(eh.fX),!1;let t=e instanceof eC.A?eU.w.Eo:eU.w.Li;return e_.A.ea().ut(e,t).tt}function ez(e){if(!b.Ay.rr())return!1;if(!(e instanceof ex.A))return S.A.error(eh.fX),!1;let t=e_.A.ea().ut(e,eU.w.Qi);if(t){e.Do()||eR(e);for(let i=0;i{let a=i.getAttribute("href"),r=i.onclick;return n=>{if(null!=r&&"function"==typeof r&&!1===r.bind(i)(n))return;let o=(0,A.y)(a).abButtonId;if(null!=o&&""!==o||(o=i.getAttribute("id")||void 0),null!=a&&""!==a&&0!==a.indexOf("#")){let r="blank"===(i.getAttribute("target")||"").toLowerCase().replace("_",""),l=s||e.openTarget===ex.A.OpenTarget.BLANK||r,u=()=>{eL(e,o,a),eG.uD.openUri(a,l,n)};l?u():e.ll(t,u)}else eL(e,o,a||void 0);return n.stopPropagation(),!1}},eq=(e,t,s)=>{let a={display:{},web:{}},r=function(){return function(){let e=arguments;Promise.resolve().then(i.bind(i,97268)).then(t=>{b.Ay._t()?t.requestPushPermission(...Array.prototype.slice.call(e)):S.A.error(eh.xE)})}},n={requestImmediateDataFlush:function(){let e=arguments;Promise.resolve().then(i.bind(i,99002)).then(({requestImmediateDataFlush:t})=>{b.Ay._t()?t(...Array.prototype.slice.call(e)):S.A.error(eh.xE)})},logCustomEvent:function(){let e=arguments;Promise.resolve().then(i.bind(i,47274)).then(({logCustomEvent:t})=>{if(!b.Ay._t())return void S.A.error(eh.xE);t(...Array.prototype.slice.call(e))})},logPurchase:function(){let e=arguments;Promise.resolve().then(i.bind(i,43795)).then(({logPurchase:t})=>{if(!b.Ay._t())return void S.A.error(eh.xE);t(...Array.prototype.slice.call(e))})},unregisterPush:function(){let e=arguments;Promise.resolve().then(i.bind(i,84945)).then(({unregisterPush:t})=>{b.Ay._t()?t(...Array.prototype.slice.call(e)):S.A.error(eh.xE)})},requestPushPermission:r(),changeUser:function(){let e=arguments;Promise.resolve().then(i.bind(i,10403)).then(({changeUser:t})=>{if(!b.Ay._t())return void S.A.error(eh.xE);t(...Array.prototype.slice.call(e))})}},o=function(e){return function(){n[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,F.HP)(n))a[e]=o(e);let l=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],u=function(e){return function(){let t=(0,H.w)();t&&t[e](...Array.prototype.slice.call(arguments))}},h={};for(let e=0;e{let s=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,a=e.match(new RegExp(s));if(a){let i=`${a[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,a.index+a[0].length)};${i};${e.slice(a.index+a[0].length)}`}return null},eK=(e,t,i)=>{let s=null;if(null!=i){(s=document.createElement("html")).innerHTML=t||"";let e=s.getElementsByTagName("style");for(let t=0;t/g,`