1import{r as k,j as f}from"./jsx-runtime-ByGpHSPZ.js";import{G as rr}from"./index-Bsm9OUgD.js";import{G as nr}from"./index.esm-tTynBdYz.js";import{r as ir,i as sr,g as or,s as ar}from"./index.esm2017-y1MYeHdR.js";import{h as Fe}from"./moment-C5S46NFB.js";import{a as cr}from"./TrackingProvider-Dlwk0V4w.js";import{c as lr}from"./clientApiFetch-BU3ANL27.js";import{b as ur}from"./backoff-DHsieljc.js";import{p as fr}from"./env-client-safe-BAEa6l2G.js";import{t as _t,i as dr,m as hr,a as pr,s as gr,r as yr,b as mr}from"./mixpanel-CQG126_6.js";import{v as br}from"./v4-CtRu48qb.js";import{w as kr}from"./performance-CQMfIpIm.js";import{o as vr,p as wr,_ as _r,q as ft,t as Er,u as Sr,M as Ar,v as Cr,S as Br}from"./components-U2owbxFm.js";import{b as Et,j as Tr,c as xr,i as Rr,u as Or,O as Vr}from"./index-CwEkVfM6.js";import{c as Fr}from"./errors-BdIKFyDZ.js";import{w as Dr}from"./exports-BfK44wnj.js";import"./timeZoneHeaders-CjL82m9X.js";import"./node-5jBVRjIE.js";/** 2 * @remix-run/react v2.17.4 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */let dt="positions";function Lr({getKey:t,...e}){let{isSpaMode:r}=vr(),n=Et(),s=Tr();wr({getKey:t,storageKey:dt});let o=k.useMemo(()=>{if(!t)return null;let i=t(n,s);return i!==n.key?i:null},[]);if(r)return null;let a=((i,l)=>{if(!window.history.state||!window.history.state.key){let c=Math.random().toString(32).slice(2);window.history.replaceState({key:c},"")}try{let u=JSON.parse(sessionStorage.getItem(i)||"{}")[l||window.history.state.key];typeof u=="number"&&window.scrollTo(0,u)}catch(c){console.error(c),sessionStorage.removeItem(i)}}).toString();return k.createElement("script",_r({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${a})(${ft(JSON.stringify(dt))}, ${ft(JSON.stringify(o))})`}}))}function Nr(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function jr(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var $r=function(){function t(r){var n=this;this._insertTag=function(s){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,o),n.tags.push(s)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jr(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Nr(s);try{o.insertRule(n,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(n));this.ctr++}
10,e.flush=function(){this.tags.forEach(function(n){var s;return(s=n.parentNode)==null?void 0:s.removeChild(n)}),this.tags=[],this.ctr=0},t}(),x="-ms-",ve="-moz-",p="-webkit-",St="comm",We="rule",Xe="decl",Mr="@import",At="@keyframes",Pr="@layer",Ir=Math.abs,Ee=String.fromCharCode,qr=Object.assign;function Hr(t,e){return B(t,0)^45?(((e<<2^B(t,0))<<2^B(t,1))<<2^B(t,2))<<2^B(t,3):0}function Ct(t){return t.trim()}function Ur(t,e){return(t=e.exec(t))?t[0]:t}function g(t,e,r){return t.replace(e,r)}function Ie(t,e){return t.indexOf(e)}function B(t,e){return t.charCodeAt(e)|0}function ae(t,e,r){return t.slice(e,r)}function M(t){return t.length}function Ye(t){return t.length}function fe(t,e){return e.push(t),t}function Kr(t,e){return t.map(e).join("")}var Se=1,Y=1,Bt=0,D=0,S=0,re="";function Ae(t,e,r,n,s,o,a){return{value:t,root:e,parent:r,type:n,props:s,children:o,line:Se,column:Y,length:a,return:""}}function ne(t,e){return qr(Ae("",null,null,"",null,null,0),t,{length:-t.length},e)}function zr(){return S}function Gr(){return S=D>0?B(re,--D):0,Y--,S===10&&(Y=1,Se--),S}function L(){return S=D<Bt?B(re,D++):0,Y++,S===10&&(Y=1,Se++),S}function I(){return B(re,D)}function ye(){return D}function le(t,e){return ae(re,t,e)}function ce(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Tt(t){return Se=Y=1,Bt=M(re=t),D=0,[]}function xt(t){return re="",t}function me(t){return Ct(le(D-1,qe(t===91?t+2:t===40?t+1:t)))}function Jr(t){for(;(S=I())&&S<33;)L();return ce(t)>2||ce(S)>3?"":" "}function Wr(t,e){for(;--e&&L()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return le(t,ye()+(e<6&&I()==32&&L()==32))}function qe(t){for(;L();)switch(S){case t:return D;case 34:case 39:t!==34&&t!==39&&qe(S);break;case 40:t===41&&qe(t);break;case 92:L();break}return D}function Xr(t,e){for(;L()&&t+S!==57;)if(t+S===84&&I()===47)break;return"/*"+le(e,D-1)+"*"+Ee(t===47?t:L())}function Yr(t){for(;!ce(I());)L();return le(t,D)}function Zr(t){return xt(be("",null,null,null,[""],t=Tt(t),0,[0],t))}function be(t,e,r,n,s,o,a,i,l){for(var c=0,u=0,d=a,y=0,A=0,m=0,w=1,v=1,h=1,_=0,V="",H=s,$=o,F=n,b=V;v;)switch(m=_,_=L()){case 40:if(m!=108&&B(b,d-1)==58){Ie(b+=g(me(_),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:b+=me(_);break;case 9:case 10:case 13:case 32:b+=Jr(m);break;case 92:b+=Wr(ye()-1,7);continue;case 47:switch(I()){case 42:case 47:fe(Qr(Xr(L(),ye()),e,r),l);break;default:b+="/"}break;case 123*w:i[c++]=M(b)*h;case 125*w:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:h==-1&&(b=g(b,/\f/g,"")),A>0&&M(b)-d&&fe(A>32?pt(b+";",n,r,d-1):pt(g(b," ","")+";",n,r,d-2),l);break;case 59:b+=";";default:if(fe(F=ht(b,e,r,c,u,s,i,V,H=[],$=[],d),o),_===123)if(u===0)be(b,e,F,F,H,o,d,i,$);else switch(y===99&&B(b,3)===110?100:y){case 100:case 108:case 109:case 115:be(t,F,F,n&&fe(ht(t,F,F,0,0,s,i,V,s,H=[],d),$),s,$,d,i,n?H:$);break;default:be(b,F,F,F,[""],$,0,i,$)}}c=u=A=0,w=h=1,V=b="",d=a;break;case 58:d=1+M(b),A=m;default:if(w<1){if(_==123)--w;else if(_==125&&w++==0&&Gr()==125)continue}switch(b+=Ee(_),_*w){case 38:h=u>0?1:(b+="\f",-1);break;case 44:i[c++]=(M(b)-1)*h,h=1;break;case 64:I()===45&&(b+=me(L())),y=I(),u=d=M(V=b+=Yr(ye())),_++;break;case 45:m===45&&M(b)==2&&(w=0)}}return o}function ht(t,e,r,n,s,o,a,i,l,c,u){for(var d=s-1,y=s===0?o:[""],A=Ye(y),m=0,w=0,v=0;m<n;++m)for(var h=0,_=ae(t,d+1,d=Ir(w=a[m])),V=t;h<A;++h)(V=Ct(w>0?y[h]+" "+_:g(_,/&\f/g,y[h])))&&(l[v++]=V);return Ae(t,e,r,s===0?We:i,l,c,u)}function Qr(t,e,r){return Ae(t,e,r,St,Ee(zr()),ae(t,2,-2),0)}function pt(t,e,r,n){return Ae(t,e,r,Xe,ae(t,0,n),ae(t,n+1,-1),n)}function W(t,e){for(var r="",n=Ye(t),s=0;s<n;s++)r+=e(t[s],s,t,e)||"";return r}function en(t,e,r,n){switch(t.type){case Pr:if(t.children.length)break;case Mr:case Xe:return t.return=t.return||t.value;case St:return"";case At:return t.return=t.value+"{"+W(t.children,n)+"}";case We:t.value=t.props.join(",")}return M(r=W(t.children,n))?t.return=t.value+"{"+r+"}":""}function tn(t){var e=Ye(t);return function(r,n,s,o){for(var a="",i=0;i<e;i++)a+=t[i](r,n,s,o)||"";return a}}function rn(t){return function(e){e.root||(e=e.return)&&t(e)}}var nn=function(e,r,n){for(var s=0,o=0;s=o,o=I(),s===38&&o===12&&(r[n]=1),!ce(o);)L();return le(e,D)},sn=function(e,r){var n=-1,s=44;do switch(ce(s)){case 0:s===38&&I()===12&&(r[n]=1),e[n]+=nn(D-1,r,n);break;case 2:e[n]+=me(s);break;case 4:if(s===44){e[++n]=I()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ee(s)}while(s=L());return e},on=function(e,r){return xt(sn(Tt(e),r))},gt=new WeakMap,an=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,s=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!gt.get(n))&&!s){gt.set(e,!0);for(var o=[],a=on(r,o),i=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},cn=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Rt(t,e){switch(Hr(t,e)){case 5103:return p+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return p+t+t;
vendor: 1,601 bytes, line 10
10case 5349:case 4246:case 4810:case 6968:case 2756:return p+t+ve+t+x+t+t;case 6828:case 4268:return p+t+x+t+t;case 6165:return p+t+x+"flex-"+t+t;case 5187:return p+t+g(t,/(\w+).+(:[^]+)/,p+"box-$1$2"+x+"flex-$1$2")+t;case 5443:return p+t+x+"flex-item-"+g(t,/flex-|-self/,"")+t;case 4675:return p+t+x+"flex-line-pack"+g(t,/align-content|flex-|-self/,"")+t;case 5548:return p+t+x+g(t,"shrink","negative")+t;case 5292:return p+t+x+g(t,"basis","preferred-size")+t;case 6060:return p+"box-"+g(t,"-grow","")+p+t+x+g(t,"grow","positive")+t;case 4554:return p+g(t,/([^-])(transform)/g,"$1"+p+"$2")+t;case 6187:return g(g(g(t,/(zoom-|grab)/,p+"$1"),/(image-set)/,p+"$1"),t,"")+t;case 5495:case 3959:return g(t,/(image-set\([^]*)/,p+"$1$`$1");case 4968:return g(g(t,/(.+:)(flex-)?(.*)/,p+"box-pack:$3"+x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+p+t+t;case 4095:case 3583:case 4068:case 2532:return g(t,/(.+)-inline(.+)/,p+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(t)-1-e>6)switch(B(t,e+1)){case 109:if(B(t,e+4)!==45)break;case 102:return g(t,/(.+:)(.+)-([^]+)/,"$1"+p+"$2-$3$1"+ve+(B(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ie(t,"stretch")?Rt(g(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(B(t,e+1)!==115)break;case 6444:switch(B(t,M(t)-3-(~Ie(t,"!important")&&10))){case 107:return g(t,":",":"+p)+t;case 101:return g(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+p+(B(t,14)===45?"inline-":"")+"box$3$1"+p+"$2$3$1"+x+"$2box$3")+t}break;case 5936:switch(B(t,e+11)){case 114:return p+t+x+g(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
10case 108:return p+t+x+g(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return p+t+x+g(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return p+t+x+t+t}return t}var ln=function(e,r,n,s){if(e.length>-1&&!e.return)switch(e.type){case Xe:e.return=Rt(e.value,e.length);break;case At:return W([ne(e,{value:g(e.value,"@","@"+p)})],s);case We:if(e.length)return Kr(e.props,function(o){switch(Ur(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([ne(e,{props:[g(o,/:(read-\w+)/,":"+ve+"$1")]})],s);case"::placeholder":return W([ne(e,{props:[g(o,/:(plac\w+)/,":"+p+"input-$1")]}),ne(e,{props:[g(o,/:(plac\w+)/,":"+ve+"$1")]}),ne(e,{props:[g(o,/:(plac\w+)/,x+"input-$1")]})],s)}return""})}},un=[ln],Ot=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=e.stylisPlugins||un,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),h=1;h<v.length;h++)o[v[h]]=!0;i.push(w)});var l,c=[an,cn];{var u,d=[en,rn(function(w){u.insert(w)})],y=tn(c.concat(s,d)),A=function(v){return W(Zr(v),y)};l=function(v,h,_,V){u=_,A(v?v+"{"+h.styles+"}":h.styles),V&&(m.inserted[h.name]=!0)}}var m={key:r,sheet:new $r({key:r,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(i),m},fn=k.createContext(typeof HTMLElement<"u"?Ot({key:"css"}):null),dn=fn.Provider;const Vt={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function hn(){return Vt}function De(t){let e=2166136261;const r=t.length;for(let n=0;n<r;n++)e^=t.charCodeAt(n),e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24);return e>>>0}function Ce(t,e,r){return r===2?De(De(t+e)+"")%1e4/1e4:r===1?De(e+t)%1e3/1e3:null}function pn(t){return t<=0?[]:new Array(t).fill(1/t)}function Ze(t,e){return t>=e[0]&&t<e[1]}function gn(t,e){const r=Ce("__"+e[0],t,1);return r===null?!1:r>=e[1]&&r<e[2]}function yn(t,e){for(let r=0;r<e.length;r++)if(Ze(t,e[r]))return r;return-1}function Ft(t){try{const e=t.replace(/([^\\])\//g,"$1\\/");return new RegExp(e)}catch(e){console.error(e);return}}function Dt(t,e){if(!e.length)return!1;let r=!1,n=!1;for(let s=0;s<e.length;s++){const o=kn(t,e[s].type,e[s].pattern);if(e[s].include===!1){if(o)return!1}else r=!0,o&&(n=!0)}return n||!r}function mn(t,e,r){try{let n=e.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return r&&(n="\\/?"+n.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+n+"$","i").test(t)}catch{return!1}}function bn(t,e){try{const r=new URL(e.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),n=[[t.host,r.host,!1],[t.pathname,r.pathname,!0]];return r.hash&&n.push([t.hash,r.hash,!1]),r.searchParams.forEach((s,o)=>{n.push([t.searchParams.get(o)||"",s,!1])}),!n.some(s=>!mn(s[0],s[1],s[2]))}catch{return!1}}function kn(t,e,r){try{const n=new URL(t,"https://_");if(e==="regex"){const s=Ft(r);return s?s.test(n.href)||s.test(n.href.substring(n.origin.length)):!1}else if(e==="simple")return bn(n,r);return!1}catch{return!1}}function vn(t,e,r){e=e===void 0?1:e,e<0?e=0:e>1&&(e=1);const n=pn(t);r=r||n,r.length!==t&&(r=n);const s=r.reduce((a,i)=>i+a,0);(s<.99||s>1.01)&&(r=n);let o=0;return r.map(a=>{const i=o;return o+=a,[i,i+e*a]})}function wn(t,e,r){if(!e)return null;const n=e.split("?")[1];if(!n)return null;const s=n.replace(/#.*/,"").split("&").map(o=>o.split("=",2)).filter(o=>{let[a]=o;return a===t}).map(o=>{let[,a]=o;return parseInt(a)});return s.length>0&&s[0]>=0&&s[0]<r?s[0]:null}function _n(t){try{return t()}catch(e){return console.error(e),!1}}const Le=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0));async function ie(t,e,r){if(e=e||"",r=r||globalThis.crypto&&globalThis.crypto.subtle||Vt.SubtleCrypto,!r)throw new Error("No SubtleCrypto implementation found");try{const n=await r.importKey("raw",Le(e),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[s,o]=t.split("."),a=await r.decrypt({
10name:"AES-CBC",iv:Le(s)},n,Le(o));return new TextDecoder().decode(a)}catch{throw new Error("Failed to decrypt")}}function we(t){return typeof t=="string"?t:JSON.stringify(t)}function j(t){typeof t=="number"&&(t=t+""),(!t||typeof t!="string")&&(t="0");const e=t.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return e.length===3&&e.push("~"),e.map(r=>r.match(/^[0-9]+$/)?r.padStart(5," "):r).join("-")}function En(){let t;try{t="1.5.1"}catch{t=""}return t}function Sn(t,e){let r,n;try{r=new URL(t),n=new URL(e)}catch(s){return console.error(`Unable to merge query strings: ${s}`),e}return r.searchParams.forEach((s,o)=>{n.searchParams.has(o)||n.searchParams.set(o,s)}),n.toString()}function yt(t){return typeof t=="object"&&t!==null}function Ne(t){return t.urlPatterns&&t.variations.some(e=>yt(e)&&"urlRedirect"in e)?"redirect":t.variations.some(e=>yt(e)&&(e.domMutations||"js"in e||"css"in e))?"visual":"unknown"}async function Lt(t,e){return new Promise(r=>{let n=!1,s;const o=a=>{n||(n=!0,s&&clearTimeout(s),r(a||null))};e&&(s=setTimeout(()=>o(),e)),t.then(a=>o(a)).catch(()=>o())})}const R={staleTTL:1e3*60,maxAge:1e3*60*60*4,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},P=hn(),Z={fetchFeaturesCall:t=>{let{host:e,clientKey:r,headers:n}=t;return P.fetch(`${e}/api/features/${r}`,{headers:n})},fetchRemoteEvalCall:t=>{let{host:e,clientKey:r,payload:n,headers:s}=t;const o={method:"POST",headers:{"Content-Type":"application/json",...s},body:JSON.stringify(n)};return P.fetch(`${e}/api/eval/${r}`,o)},eventSourceCall:t=>{let{host:e,clientKey:r,headers:n}=t;return n?new P.EventSource(`${e}/sub/${r}`,{headers:n}):new P.EventSource(`${e}/sub/${r}`)},startIdleListener:()=>{let t;if(!(typeof window<"u"&&typeof document<"u"))return;const r=()=>{document.visibilityState==="visible"?(window.clearTimeout(t),Rn()):document.visibilityState==="hidden"&&(t=window.setTimeout(xn,R.idleStreamInterval))};return document.addEventListener("visibilitychange",r),()=>document.removeEventListener("visibilitychange",r)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(P.localStorage=globalThis.localStorage)}catch{}const Q=new Map;let mt=!1;const q=new Map,de=new Map,ee=new Map,te=new Set;function An(t){Object.assign(R,t),R.backgroundSync||Ln()}async function Cn(t){let{instance:e,timeout:r,skipCache:n,allowStale:s,backgroundSync:o}=t;return o||(R.backgroundSync=!1),On({instance:e,allowStale:s,timeout:r,skipCache:n})}function Bn(t){const e=ue(t),r=Q.get(e)||new Set;r.add(t),Q.set(e,r)}function Tn(t){Q.forEach(e=>e.delete(t))}function xn(){ee.forEach(t=>{t&&(t.state="idle",tt(t))})}function Rn(){ee.forEach(t=>{t&&t.state==="idle"&&rt(t)})}async function bt(){try{if(!P.localStorage)return;await P.localStorage.setItem(R.cacheKey,JSON.stringify(Array.from(q.entries())))}catch{}}async function On(t){let{instance:e,allowStale:r,timeout:n,skipCache:s}=t;const o=ue(e),a=Qe(e),i=new Date,l=new Date(i.getTime()-R.maxAge+R.staleTTL);await Vn();const c=!R.disableCache&&!s?q.get(a):void 0;return c&&(r||c.staleAt>i)&&c.staleAt>l?(c.sse&&te.add(o),c.staleAt<i?He(e):et(e),{data:c.data,success:!0,source:"cache"}):await Lt(He(e),n)||{data:null,success:!1,source:"timeout",error:new Error("Timeout")}}function ue(t){const[e,r]=t.getApiInfo();return`${e}||${r}`}function Qe(t){const e=ue(t);if(!("isRemoteEval"in t)||!t.isRemoteEval())return e;const r=t.getAttributes(),n=t.getCacheKeyAttributes()||Object.keys(t.getAttributes()),s={};n.forEach(i=>{s[i]=r[i]});const o=t.getForcedVariations(),a=t.getUrl();return`${e}||${JSON.stringify({ca:s,fv:o,url:a})}`}async function Vn(){if(!mt){mt=!0;try{if(P.localStorage){const t=await P.localStorage.getItem(R.cacheKey);if(!R.disableCache&&t){const e=JSON.parse(t);e&&Array.isArray(e)&&e.forEach(r=>{let[n,s]=r;q.set(n,{...s,staleAt:new Date(s.staleAt)})}),Nt()}}}catch{}if(!R.disableIdleStreams){const t=Z.startIdleListener();t&&(Z.stopIdleListener=t)}}}function Nt(){const t=Array.from(q.entries()).map(r=>{let[n,s]=r;return{key:n,staleAt:s.staleAt.getTime()}}).sort((r,n)=>r.staleAt-n.staleAt),e=Math.min(Math.max(0,q.size-R.maxEntries),q.size);for(let r=0;r<e;r++)q.delete(t[r].key)}function jt(t,e,r){const n=r.dateUpdated||"",s=new Date(Date.now()+R.staleTTL),o=R.disableCache?void 0:q.get(e);if(o&&n&&o.version===n){o.staleAt=s,bt();return}R.disableCache||(q.set(e,{data:r,version:n,staleAt:s,sse:te.has(t)}),Nt()),bt();const a=Q.get(t);a&&a.forEach(i=>
10Fn(i,r))}async function Fn(t,e){await t.setPayload(e||t.getPayload())}async function He(t){const{apiHost:e,apiRequestHeaders:r}=t.getApiHosts(),n=t.getClientKey(),s="isRemoteEval"in t&&t.isRemoteEval(),o=ue(t),a=Qe(t);let i=de.get(a);return i||(i=(s?Z.fetchRemoteEvalCall({host:e,clientKey:n,payload:{attributes:t.getAttributes(),forcedVariations:t.getForcedVariations(),forcedFeatures:Array.from(t.getForcedFeatures().entries()),url:t.getUrl()},headers:r}):Z.fetchFeaturesCall({host:e,clientKey:n,headers:r})).then(c=>{if(!c.ok)throw new Error(`HTTP error: ${c.status}`);return c.headers.get("x-sse-support")==="enabled"&&te.add(o),c.json()}).then(c=>(jt(o,a,c),et(t),de.delete(a),{data:c,success:!0,source:"network"})).catch(c=>(de.delete(a),{data:null,source:"error",success:!1,error:c})),de.set(a,i)),i}function et(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=ue(t),n=Qe(t),{streamingHost:s,streamingHostRequestHeaders:o}=t.getApiHosts(),a=t.getClientKey();if(e&&te.add(r),R.backgroundSync&&te.has(r)&&P.EventSource){if(ee.has(r))return;const i={src:null,host:s,clientKey:a,headers:o,cb:l=>{try{if(l.type==="features-updated"){const c=Q.get(r);c&&c.forEach(u=>{He(u)})}else if(l.type==="features"){const c=JSON.parse(l.data);jt(r,n,c)}i.errors=0}catch{$t(i)}},errors:0,state:"active"};ee.set(r,i),rt(i)}}function $t(t){if(t.state!=="idle"&&(t.errors++,t.errors>3||t.src&&t.src.readyState===2)){const e=Math.pow(3,t.errors-3)*(1e3+Math.random()*1e3);tt(t),setTimeout(()=>{["idle","active"].includes(t.state)||rt(t)},Math.min(e,3e5))}}function tt(t){t.src&&(t.src.onopen=null,t.src.onerror=null,t.src.close(),t.src=null,t.state==="active"&&(t.state="disabled"))}function rt(t){t.src=Z.eventSourceCall({host:t.host,clientKey:t.clientKey,headers:t.headers}),t.state="active",t.src.addEventListener("features",t.cb),t.src.addEventListener("features-updated",t.cb),t.src.onerror=()=>$t(t),t.src.onopen=()=>{t.errors=0}}function Dn(t,e){tt(t),ee.delete(e)}function Ln(){te.clear(),ee.forEach(Dn),Q.clear(),Z.stopIdleListener()}function je(t,e){if(e.streaming){if(!t.getClientKey())throw new Error("Mu
10st specify clientKey to enable streaming");e.payload&&et(t,!0),Bn(t)}}var Nn=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,nt={revert:function(){}},_e=new Map,it=new Set;function jn(t){return t==="html"?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[t]}}function Be(t){var e=_e.get(t);return e||(e={element:t,attributes:{}},_e.set(t,e)),e}function Te(t,e,r,n,s){var o=r(t),a={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:t,_positionTimeout:null,observer:new MutationObserver(function(){if(!(e==="position"&&a._positionTimeout)){e==="position"&&(a._positionTimeout=setTimeout(function(){a._positionTimeout=null},1e3));var i=r(t);e==="position"&&i.parentNode===a.virtualValue.parentNode&&i.insertBeforeNode===a.virtualValue.insertBeforeNode||i!==a.virtualValue&&(a.originalValue=i,s(a))}}),mutationRunner:s,setValue:n,getCurrentValue:r};return e==="position"&&t.parentNode?a.observer.observe(t.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(t,jn(e)),a}function xe(t,e){var r=e.getCurrentValue(e.el);e.virtualValue=t,t&&typeof t!="string"?(!r||t.parentNode!==r.parentNode||t.insertBeforeNode!==r.insertBeforeNode)&&(e.isDirty=!0,kt()):t!==r&&(e.isDirty=!0,kt())}function $n(t){var e=t.originalValue;t.mutations.forEach(function(r){return e=r.mutate(e)}),xe(Zn(e),t)}function Mn(t){var e=new Set(t.originalValue.split(/\s+/).filter(Boolean));t.mutations.forEach(function(r){return r.mutate(e)}),xe(Array.from(e).filter(Boolean).join(" "),t)}function Pn(t){var e=t.originalValue;t.mutations.forEach(function(r){return e=r.mutate(e)}),xe(e,t)}function In(t){var e=t.parentSelector,r=t.insertBeforeSelector,n=document.querySelector(e);if(!n)return null;var s=r?document.querySelector(r):null;return r&&!s?null:{parentNode:n,insertBeforeNode:s}}function qn(t){var e=t.originalValue;t.mutations.forEach(function(r){var n=r.mutate(),s=In(n);e=s||e}),xe(e,t)}var Hn=function(e){return e.innerHTML},Un=function(e,r){return e.innerHTML=r};function Mt(t){var e=Be(t);return e.html||(e.html=Te(t,"html",Hn,Un,$n)),e.html}var Kn=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},zn=function(e,r){r.insertBeforeNode&&!r.parentNode.contains(r.insertBeforeNode)||r.parentNode.insertBefore(e,r.insertBeforeNode)};function Pt(t){var e=Be(t);return e.position||(e.position=Te(t,"position",Kn,zn,qn)),e.position}var Gn=function(e,r){return r?e.className=r:e.removeAttribute("class")},Jn=function(e){return e.className};function It(t){var e=Be(t);return e.classes||(e.classes=Te(t,"class",Jn,Gn,Mn)),e.classes}var Wn=function(e){return function(r){var n;return(n=r.getAttribute(e))!=null?n:null}},Xn=function(e){return function(r,n){return n!==null?r.setAttribute(e,n):r.removeAttribute(e)}};function qt(t,e){var r=Be(t);return r.attributes[e]||(r.attributes[e]=Te(t,e,Wn(e),Xn(e),Pn)),r.attributes[e]}function Yn(t,e){var r=_e.get(t);if(r)if(e==="html"){var n,s;(n=r.html)==null||(s=n.observer)==null||s.disconnect(),delete r.html}else if(e==="class"){var o,a;(o=r.classes)==null||(a=o.observer)==null||a.disconnect(),delete r.classes}else if(e==="position"){var i,l;(i=r.position)==null||(l=i.observer)==null||l.disconnect(),delete r.position}else{var c,u,d;(c=r.attributes)==null||(u=c[e])==null||(d=u.observer)==null||d.disconnect(),delete r.attributes[e]}}var he;function Zn(t){return he||(he=document.createElement("div")),he.innerHTML=t,he.innerHTML}function pe(t,e,r){if(r.isDirty){r.isDirty=!1;var n=r.virtualValue;r.mutations.length||Yn(t,e),r.setValue(t,n)}}function Qn(t,e){t.html&&pe(e,"html",t.html),t.classes&&pe(e,"class",t.classes),t.position&&pe(e,"position",t.position),Object.keys(t.attributes).forEach(function(r){pe(e,r,t.attributes[r])})}function kt(){_e.forEach(Qn)}function ei(t,e){var r=null;t.kind==="html"?r=Mt(e):t.kind==="class"?r=It(e):t.kind==="attribute"?r=qt(e,t.attribute):t.kind==="position"&&(r=Pt(e)),r&&(r.mutations.push(t),r.mutationRunner(r))}function ti(t,e){var r=null;if(t.kind==="html"?r=Mt(e):t.kind==="class"?r=It(e):t.kind==="attribute"?r=qt(e,t.attribute):t.kind==="position"&&(r=Pt(e)),!!r){var n=r.mutations.indexOf(t);n!==-1&&r.mutations.splice(n,1),r.mutationRunner(r)}}function Ht(t){if(!(t.kind==="position"&&t.elements.size===1)){var e=new Set(t.elements),r=document.querySelectorAll(t.selector);r.forEach(function(n){e.has(n)||(t.elements.add(n),ei(t,n))})}}
10function ri(t){t.elements.forEach(function(e){return ti(t,e)}),t.elements.clear(),it.delete(t)}function vt(){it.forEach(Ht)}var $e;function ni(){typeof document>"u"||($e||($e=new MutationObserver(function(){vt()})),vt(),$e.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))}ni();function Re(t){return typeof document>"u"?nt:(it.add(t),Ht(t),{revert:function(){ri(t)}})}function Ue(t,e){return Re({kind:"html",elements:new Set,mutate:e,selector:t})}function Ut(t,e){return Re({kind:"position",elements:new Set,mutate:e,selector:t})}function se(t,e){return Re({kind:"class",elements:new Set,mutate:e,selector:t})}function ke(t,e,r){return Nn.test(e)?e==="class"||e==="className"?se(t,function(n){var s=r(Array.from(n).join(" "));n.clear(),s&&s.split(/\s+/g).filter(Boolean).forEach(function(o){return n.add(o)})}):Re({kind:"attribute",attribute:e,elements:new Set,mutate:r,selector:t}):nt}function ii(t){var e=t.selector,r=t.action,n=t.value,s=t.attribute,o=t.parentSelector,a=t.insertBeforeSelector;if(s==="html"){if(r==="append")return Ue(e,function(i){return i+(n??"")});if(r==="set")return Ue(e,function(){return n??""})}else if(s==="class"){if(r==="append")return se(e,function(i){n&&i.add(n)});if(r==="remove")return se(e,function(i){n&&i.delete(n)});if(r==="set")return se(e,function(i){i.clear(),n&&i.add(n)})}else if(s==="position"){if(r==="set"&&o)return Ut(e,function(){return{insertBeforeSelector:a,parentSelector:o}})}else{if(r==="append")return ke(e,s,function(i){return i!==null?i+(n??""):n??""});if(r==="set")return ke(e,s,function(){return n??""});if(r==="remove")return ke(e,s,function(){return null})}return nt}var si={html:Ue,classes:se,attribute:ke,position:Ut,declarative:ii};const Me={};function z(t,e,r){r=r||{};for(const[n,s]of Object.entries(e))switch(n){case"$or":if(!wt(t,s,r))return!1;break;case"$nor":if(wt(t,s,r))return!1;break;case"$and":if(!fi(t,s,r))return!1;break;case"$not":if(z(t,s,r))return!1;break;default:if(!oe(s,oi(t,n),r))return!1}return!0}function oi(t,e){const r=e.split(".");let n=t;for(let s=0;s<r.length;s++)if(n&&typeof n=="object"&&r[s]in n)n=n[r[s]];else return null;return n}function ai(t){return Me[t]||(Me[t]=new RegExp(t.replace(/([^\\])\//g,"$1\\/"))),Me[t]}function oe(t,e,r){if(typeof t=="string")return e+""===t;if(typeof t=="number")return e*1===t;if(typeof t=="boolean")return e!==null&&!!e===t;if(t===null)return e===null;if(Array.isArray(t)||!Kt(t))return JSON.stringify(e)===JSON.stringify(t);for(const n in t)if(!ui(n,e,t[n],r))return!1;return!0}function Kt(t){const e=Object.keys(t);return e.length>0&&e.filter(r=>r[0]==="$").length===e.length}function ci(t){if(t===null)return"null";if(Array.isArray(t))return"array";const e=typeof t;return["string","number","boolean","object","undefined"].includes(e)?e:"unknown"}function li(t,e,r){if(!Array.isArray(t))return!1;const n=Kt(e)?s=>oe(e,s,r):s=>z(s,e,r);for(let s=0;s<t.length;s++)if(t[s]&&n(t[s]))return!0;return!1}function ge(t,e){return Array.isArray(t)?t.some(r=>e.includes(r)):e.includes(t)}function ui(t,e,r,n){switch(t){case"$veq":return j(e)===j(r);case"$vne":return j(e)!==j(r);case"$vgt":return j(e)>j(r);case"$vgte":return j(e)>=j(r);case"$vlt":return j(e)<j(r);case"$vlte":return j(e)<=j(r);case"$eq":return e===r;case"$ne":return e!==r;case"$lt":return e<r;case"$lte":return e<=r;case"$gt":return e>r;case"$gte":return e>=r;case"$exists":return r?e!=null:e==null;case"$in":return Array.isArray(r)?ge(e,r):!1;case"$inGroup":return ge(e,n[r]||[]);case"$notInGroup":return!ge(e,n[r]||[]);case"$nin":return Array.isArray(r)?!ge(e,r):!1;case"$not":return!oe(r,e,n);case"$size":return Array.isArray(e)?oe(r,e.length,n):!1;case"$elemMatch":return li(e,r,n);case"$all":if(!Array.isArray(e))return!1;for(let s=0;s<r.length;s++){let o=!1;for(let a=0;a<e.length;a++)if(oe(r[s],e[a],n)){o=!0;break}if(!o)return!1}return!0;case"$regex":try{return ai(r).test(e)}catch{return!1}case"$type":return ci(e)===r;default:return console.error("Unknown operator: "+t),!1}}function wt(t,e,r){if(!e.length)return!0;for(let n=0;n<e.length;n++)if(z(t,e[n],r))return!0;return!1}function fi(t,e,r){for(let n=0;n<e.length;n++)if(!z(t,e[n],r))return!1;return!0}const di="Feature Evaluated",hi="Experiment Viewed";function pi(t){const e=new Map;return t.global.forcedFeatureValues&&t.global.forcedFeatureValues.forEac
10h((r,n)=>e.set(n,r)),t.user.forcedFeatureValues&&t.user.forcedFeatureValues.forEach((r,n)=>e.set(n,r)),e}function gi(t){return t.global.forcedVariations&&t.user.forcedVariations?{...t.global.forcedVariations,...t.user.forcedVariations}:t.global.forcedVariations?t.global.forcedVariations:t.user.forcedVariations?t.user.forcedVariations:{}}async function X(t){try{await t()}catch{}}function zt(t,e,r){if(t.user.trackedExperiments){const s=Je(e,r);if(t.user.trackedExperiments.has(s))return[];t.user.trackedExperiments.add(s)}t.user.enableDevMode&&t.user.devLogs&&t.user.devLogs.push({experiment:e,result:r,timestamp:Date.now().toString(),logType:"experiment"});const n=[];if(t.global.trackingCallback){const s=t.global.trackingCallback;n.push(X(()=>s(e,r,t.user)))}if(t.user.trackingCallback){const s=t.user.trackingCallback;n.push(X(()=>s(e,r)))}if(t.global.eventLogger){const s=t.global.eventLogger;n.push(X(()=>s(hi,{experimentId:e.key,variationId:r.key,hashAttribute:r.hashAttribute,hashValue:r.hashValue},t.user)))}return n}function yi(t,e,r){if(t.user.trackedFeatureUsage){const n=JSON.stringify(r.value);if(t.user.trackedFeatureUsage[e]===n)return;t.user.trackedFeatureUsage[e]=n,t.user.enableDevMode&&t.user.devLogs&&t.user.devLogs.push({featureKey:e,result:r,timestamp:Date.now().toString(),logType:"feature"})}if(t.global.onFeatureUsage){const n=t.global.onFeatureUsage;X(()=>n(e,r,t.user))}if(t.user.onFeatureUsage){const n=t.user.onFeatureUsage;X(()=>n(e,r))}if(t.global.eventLogger){const n=t.global.eventLogger;X(()=>n(di,{feature:e,source:r.source,value:r.value,ruleId:r.source==="defaultValue"?"$default":r.ruleId||"",variationId:r.experimentResult?r.experimentResult.key:""},t.user))}}function st(t,e){if(e.stack.evaluatedFeatures.has(t))return U(e,t,null,"cyclicPrerequisite");e.stack.evaluatedFeatures.add(t),e.stack.id=t;const r=pi(e);if(r.has(t))return U(e,t,r.get(t),"override");if(!e.global.features||!e.global.features[t])return U(e,t,null,"unknownFeature");const n=e.global.features[t];if(n.rules){const s=new Set(e.stack.evaluatedFeatures);e:for(const o of n.rules){if(o.parentConditions)for(const l of o.parentConditions){e.stack.evaluatedFeatures=new Set(s);const c=st(l.id,e);if(c.source==="cyclicPrerequisite")return U(e,t,null,"cyclicPrerequisite");const u={value:c.value};if(!z(u,l.condition||{})){if(l.gate)return U(e,t,null,"prerequisite");continue e}}if(o.filters&&Wt(o.filters,e))continue;if("force"in o){if(o.condition&&!Jt(o.condition,e)||!mi(e,o.seed||t,o.hashAttribute,e.user.saveStickyBucketAssignmentDoc&&!o.disableStickyBucketing?o.fallbackAttribute:void 0,o.range,o.coverage,o.hashVersion))continue;return o.tracks&&o.tracks.forEach(l=>{!zt(e,l.experiment,l.result).length&&e.global.saveDeferredTrack&&e.global.saveDeferredTrack({experiment:l.experiment,result:l.result})}),U(e,t,o.force,"force",o.id)}if(!o.variations)continue;const a={variations:o.variations,key:o.key||t};"coverage"in o&&(a.coverage=o.coverage),o.weights&&(a.weights=o.weights),o.hashAttribute&&(a.hashAttribute=o.hashAttribute),o.fallbackAttribute&&(a.fallbackAttribute=o.fallbackAttribute),o.disableStickyBucketing&&(a.disableStickyBucketing=o.disableStickyBucketing),o.bucketVersion!==void 0&&(a.bucketVersion=o.bucketVersion),o.minBucketVersion!==void 0&&(a.minBucketVersion=o.minBucketVersion),o.namespace&&(a.namespace=o.namespace),o.meta&&(a.meta=o.meta),o.ranges&&(a.ranges=o.ranges),o.name&&(a.name=o.name),o.phase&&(a.phase=o.phase),o.seed&&(a.seed=o.seed),o.hashVersion&&(a.hashVersion=o.hashVersion),o.filters&&(a.filters=o.filters),o.condition&&(a.condition=o.condition);const{result:i}=Ke(a,t,e);if(e.global.onExperimentEval&&e.global.onExperimentEval(a,i),i.inExperiment&&!i.passthrough)return U(e,t,i.value,"experiment",o.id,a,i)}}return U(e,t,n.defaultValue===void 0?null:n.defaultValue,"defaultValue")}function Ke(t,e,r){const n=t.key,s=t.variations.length;if(s<2)return{result:E(r,t,-1,!1,e)};if(r.global.enabled===!1||r.user.enabled===!1)return{result:E(r,t,-1,!1,e)};if(t=bi(t,r),t.urlPatterns&&!Dt(r.user.url||"",t.urlPatterns))return{result:E(r,t,-1,!1,e)};const o=wn(n,r.user.url||"",s);if(o!==null)return{result:E(r,t,o,!1,e)};const a=gi(r);if(n in a){const v=a[n];return{result:E(r,t,v,!1,e)}}if(t.status==="draft"||t.active===!1)return{result:E(r,t,-1,!1,e)};const{hashAttribute:i,hashValue:l}=K(r,t.hashAttribute,r.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing?t.fallbackAttribute:void 0);if(!l)return{result:E(r,t,-1,!1,e)};let c=-1,u=!1,d=!1;if(r.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing){const{variation:v,versionIsBlocked:h}=wi({ctx:r,expKey:t.key,expBucketVersion:t.bucketVersion,expHashAttribute:t.hashAttribute,expFallbackAttribute:t.fallbackAttribute,expMinBucketVersion:t.minBucketVersion,expMeta:t.meta});u=v>=0,c=v,d=!!h}if(!u){if(t.filters){if(Wt(t.filters,r))return{result:E(r,t,-1,!1,e)}}else if(t.namespace&&!gn(l,t.namespace))return{result:E(r,t,-1,!1,e)};if(t.include&&!_n(t.include))return{result:E(r,t,-1,!1,e)};if(t.condition&&!Jt(t.condition,r))return{result:E(r,t,-1,!1,e)};if(t.parentConditions){const v=new Set(r.stack.evaluatedFeatures);for(const h of t.parentConditions){r.stack.evaluatedFeatures=new Set(v);const _=st(h.id,r);if(_.source==="cyclicPrerequisite")return{result:E(r,t,-1,!1,e)};const V={value:_.value};if(!z(V,h.condition||{}))return{result:E(r,t,-1,!1,e)}}}if(t.groups&&!vi(t.groups,r))return{result:E(r,t,-1,!1,e)}}if(t.url&&!ki(t.url,r))return{result:E(r,t,-1,!1,e)};const y=Ce(t.seed||n,l,t.hashVersion||1);if(y===null)return{result:E(r,t,-1,!1,e)};if(!u){const v=t.ranges||vn(s,t.coverage===void 0?1:t.coverage,t.weights);c=yn(y,v)}if(d)return{result:E(r,t,-1,!1,e,void 0,!0)};if(c<0)return{result:E(r,t,-1,!1,e)};if("force"in t)return{result:E(r,t,t.force===void 0?-1:t.force,!1,e)};if(r.global.qaMode||r.user.qaMode)return{result:E(r,t,-1,!1,e)};if(t.status==="stopped")return{result:E(r,t,-1,!1,e)};const A=E(r,t,c,!0,e,y,u);if(r.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing){const{changed:v,key:h,doc:_}=Ei(r,i,we(l),{[ze(t.key,t.bucketVersion)]:A.key});v&&(r.user.stickyBucketAssignmentDocs=r.user.stickyBucketAssignmentDocs||{},r.user.stickyBucketAssignmentDocs[h]=_,r.user.saveStickyBucketAssignmentDoc(_))}const m=zt(r,t,A);m.length===0&&r.global.saveDeferredTrack&&r.global.saveDeferredTrack({experiment:t,result:A});const w=m.length?m.length===1?m[0]:Promise.all(m).then(()=>{}):void 0;return"changeId"in t&&t.changeId&&r.global.recordChangeId&&r.global.recordChangeId(t.changeId),{result:A,trackingCall:w}}function U(t,e,r,n,s,o,a){const i={value:r,on:!!r,off:!r,source:n,ruleId:s||""};return o&&(i.experiment=o),a&&(i.experimentResult=a),n!=="override"&&yi(t,e,i),i}function Gt(t){return{...t.user.attributes,...t.user.attributeOverrides}}function Jt(t,e){return z(Gt(e),t,e.global.savedGroups||{})}function Wt(t,e){return t.some(r=>{const{hashValue:n}=K(e,r.attribute);if(!n)return!0;const s=Ce(r.seed,n,r.hashVersion||2);return s===null?!0:!r.ranges.some(o=>Ze(s,o))})}function mi(t,e,r,n,s,o,a){if(!s&&o===void 0)return!0;
10if(!s&&o===0)return!1;const{hashValue:i}=K(t,r,n);if(!i)return!1;const l=Ce(e,i,a||1);return l===null?!1:s?Ze(l,s):o!==void 0?l<=o:!0}function E(t,e,r,n,s,o,a){let i=!0;(r<0||r>=e.variations.length)&&(r=0,i=!1);const{hashAttribute:l,hashValue:c}=K(t,e.hashAttribute,t.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),u=e.meta?e.meta[r]:{},d={key:u.key||""+r,featureId:s,inExperiment:i,hashUsed:n,variationId:r,value:e.variations[r],hashAttribute:l,hashValue:c,stickyBucketUsed:!!a};return u.name&&(d.name=u.name),o!==void 0&&(d.bucket=o),u.passthrough&&(d.passthrough=u.passthrough),d}function bi(t,e){const r=t.key,n=e.global.overrides;return n&&n[r]&&(t=Object.assign({},t,n[r]),typeof t.url=="string"&&(t.url=Ft(t.url))),t}function K(t,e,r){let n=e||"id",s="";const o=Gt(t);return o[n]&&(s=o[n]),!s&&r&&(o[r]&&(s=o[r]),s&&(n=r)),{hashAttribute:n,hashValue:s}}function ki(t,e){const r=e.user.url;if(!r)return!1;const n=r.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(t.test(r)||t.test(n))}function vi(t,e){const r=e.global.groups||{};for(let n=0;n<t.length;n++)if(r[t[n]])return!0;return!1}function wi(t){let{ctx:e,expKey:r,expBucketVersion:n,expHashAttribute:s,expFallbackAttribute:o,expMinBucketVersion:a,expMeta:i}=t;n=n||0,a=a||0,s=s||"id",i=i||[];const l=ze(r,n),c=_i(e,s,o);if(a>0)for(let y=0;y<=a;y++){const A=ze(r,y);if(c[A]!==void 0)return{variation:-1,versionIsBlocked:!0}}const u=c[l];if(u===void 0)return{variation:-1};const d=i.findIndex(y=>y.key===u);return d<0?{variation:-1}:{variation:d}}function ze(t,e){return e=e||0,`${t}__${e}`}function Ge(t,e){return`${t}||${e}`}function _i(t,e,r){if(!t.user.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:s}=K(t,e),o=Ge(n,we(s)),{hashAttribute:a,hashValue:i}=K(t,r),l=i?Ge(a,we(i)):null,c={};return l&&t.user.stickyBucketAssignmentDocs[l]&&Object.assign(c,t.user.stickyBucketAssignmentDocs[l].assignments||{}),t.user.stickyBucketAssignmentDocs[o]&&Object.assign(c,t.user.stickyBucketAssignmentDocs[o].assignments||{}),c}function Ei(t,e,r,n){const s=Ge(e,r),o=t.user.stickyBucketAssignmentDocs&&t.user.stickyBucketAssignmentDocs[s]?t.user.stickyBucketAssignmentDocs[s].assignments||{}:{},a={...o,...n},i=JSON.stringify(o)!==JSON.stringify(a);return{key:s,doc:{attributeName:e,attributeValue:r,assignments:a},changed:i}}function Si(t,e){const r=new Set,n=e&&e.features?e.features:t.global.features||{},s=e&&e.experiments?e.experiments:t.global.experiments||[];return Object.keys(n).forEach(o=>{const a=n[o];if(a.rules)for(const i of a.rules)i.variations&&(r.add(i.hashAttribute||"id"),i.fallbackAttribute&&r.add(i.fallbackAttribute))}),s.map(o=>{r.add(o.hashAttribute||"id"),o.fallbackAttribute&&r.add(o.fallbackAttribute)}),Array.from(r)}async function Ai(t,e,r){const n=Xt(t,r);return e.getAllAssignments(n)}function Xt(t,e){const r={};return Si(t,e).forEach(s=>{const{hashValue:o}=K(t,s);r[s]=we(o)}),r}async function Ci(t,e,r){if(t={...t},t.encryptedFeatures){try{t.features=JSON.parse(await ie(t.encryptedFeatures,e,r))}catch(n){console.error(n)}delete t.encryptedFeatures}if(t.encryptedExperiments){try{t.experiments=JSON.parse(await ie(t.encryptedExperiments,e,r))}catch(n){console.error(n)}delete t.encryptedExperiments}if(t.encryptedSavedGroups){try{t.savedGroups=JSON.parse(await ie(t.encryptedSavedGroups,e,r))}catch(n){console.error(n)}delete t.encryptedSavedGroups}return t}function Bi(t){const e=t.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(t.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:t.apiHostRequestHeaders,streamingHostRequestHeaders:t.streamingHostRequestHeaders}}function Je(t,e){return e.hashAttribute+e.hashValue+t.key+e.variationId}const J=typeof window<"u"&&typeof document<"u",Ti=En();class xi{constructor(e){if(e=e||{},this.version=Ti,this._options=this.context=e,this._renderer=e.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!e.debug,this._subscriptions=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!e.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),e.remoteEval){if(e.decryptionKey)throw new Error("Encryption is not available for remoteEval");if(!e.clientKey)throw new Error("Missing clientKey");let r=!1;try{r=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch{}if(r)throw new Error("Cannot use remoteEval on GrowthBook Cloud")}
10else if(e.cacheKeyAttributes)throw new Error("cacheKeyAttributes are only used for remoteEval");if(e.stickyBucketService){const r=e.stickyBucketService;this._saveStickyBucketAssignmentDoc=n=>r.saveAssignments(n)}if(e.plugins)for(const r of e.plugins)r(this);if(e.features&&(this.ready=!0),J&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(const r in this._options.stickyBucketAssignmentDocs){const n=this._options.stickyBucketAssignmentDocs[r];n&&this._options.stickyBucketService.saveAssignments(n).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const r=await Ci(e,this._options.decryptionKey);this._decryptedPayload=r,await this.refreshStickyBuckets(r),r.features&&(this._options.features=r.features),r.savedGroups&&(this._options.savedGroups=r.savedGroups),r.experiments&&(this._options.experiments=r.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const r=e.payload;if(r.encryptedExperiments||r.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");return this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs&&(this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,r)),this._payload=r,this._decryptedPayload=r,r.features&&(this._options.features=r.features),r.experiments&&(this._options.experiments=r.experiments,this._updateAllAutoExperiments()),this.ready=!0,je(this,e),this}async init(e){if(this._initialized=!0,e=e||{},e.cacheSettings&&An(e.cacheSettings),e.payload)return await this.setPayload(e.payload),je(this,e),{success:!0,source:"init"};{const{data:r,...n}=await this._refresh({...e,allowStale:!0});return je(this,e),await this.setPayload(r||{}),n}}async loadFeatures(e){e=e||{},await this.init({skipCache:e.skipCache,timeout:e.timeout,streaming:(this._options.backgroundSync??!0)&&(e.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(e){const r=await this._refresh({...e||{},allowStale:!1});r.data&&await this.setPayload(r.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return Bi(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh(e){let{timeout:r,skipCache:n,allowStale:s,streaming:o}=e;if(!this._options.clientKey)throw new Error("Missing clientKey");return Cn({instance:this,timeout:r,skipCache:n||this._options.disableCache,allowStale:s,backgroundSync:o??this._options.backgroundSync??!0})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._options.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,r,n){const s=await ie(e,r||this._options.decryptionKey,n);this.setFeatures(JSON.parse(s))}setExperiments(e){this._options.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,r,n){const s=await ie(e,r||this._options.decryptionKey,n);this.setExperiments(JSON.parse(s))}async setAttributes(e){if(this._options.attributes=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async updateAttributes(e){return this.setAttributes({...this._options.attributes,...e})}async setAttributeOverrides(e){if(this._options.attributeOverrides=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async setForcedVariations(e){if(this._options.forcedVariations=e||{},this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(e){this._options.forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._options.url){if(this._options.url=e,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._options.attributes,...this._options.attributeOverrides}}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}async _refreshForRemoteEval(){if(!this._options.remoteEval||!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}onDestroy(e){this._destroyCallbacks.push(e)}isDestroyed(){return!!this._destroyed}
10destroy(){this._destroyed=!0,this._destroyCallbacks.forEach(e=>{try{e()}catch(r){console.error(r)}}),this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,Tn(this),this.logs=[],J&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,r){if(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[e]=r,this._options.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(e){const{result:r}=Ke(e,null,this._getEvalContext());return this._fireSubscriptions(e,r),r}triggerExperiment(e){return this._triggeredExpKeys.add(e),this._options.experiments?this._options.experiments.filter(n=>n.key===e).map(n=>this._runAutoExperiment(n)).filter(n=>n!==null):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?{...this._options.user,...this._options.attributes}:this._options.attributes,enableDevMode:this._options.enableDevMode,blockedChangeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._subscriptions.size>0?this._fireSubscriptions:void 0,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(e,r){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;const s=this._isAutoExperimentBlockedByContext(e);let o,a;s?o=E(this._getEvalContext(),e,-1,!1,""):({result:o,trackingCall:a}=Ke(e,null,this._getEvalContext()),this._fireSubscriptions(e,o));const i=JSON.stringify(o.value);if(!r&&o.inExperiment&&n&&n.valueHash===i)return o;if(n&&this._undoActiveAutoExperiment(e),o.inExperiment){const l=Ne(e);if(l==="redirect"&&o.value.urlRedirect&&e.urlPatterns){const c=e.persistQueryString?Sn(this._getContextUrl(),o.value.urlRedirect):o.value.urlRedirect;if(Dt(c,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),o;this._redirectedUrl=c;const{navigate:u,delay:d}=this._getNavigateFunction();if(u)if(J)Promise.all([...a?[Lt(a,this._options.maxNavigateDelay??1e3)]:[],new Promise(y=>window.setTimeout(y,this._options.navigateDelay??d))]).then(()=>{try{u(c)}catch(y){console.error(y)}});else try{u(c)}catch(y){console.error(y)}}else if(l==="visual"){const c=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(o.value):this._applyDOMChanges(o.value);c&&this._activeAutoExperiments.set(e,{undo:c,valueHash:i})}}return o}_undoActiveAutoExperiment(e){const r=this._activeAutoExperiments.get(e);r&&(r.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const r=this._options.experiments||[],n=new Set(r);this._activeAutoExperiments.forEach((s,o)=>
10{n.has(o)||(s.undo(),this._activeAutoExperiments.delete(o))});for(const s of r){const o=this._runAutoExperiment(s,e);if(o!=null&&o.inExperiment&&Ne(s)==="redirect")break}}_fireSubscriptions(e,r){const n=e.key,s=this._assigned.get(n);(!s||s.result.inExperiment!==r.inExperiment||s.result.variationId!==r.variationId)&&(this._assigned.set(n,{experiment:e,result:r}),this._subscriptions.forEach(o=>{try{o(e,r)}catch(a){console.error(a)}}))}_recordChangedId(e){this._completedChangeIds.add(e)}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,r){const n=this.evalFeature(e).value;return n===null?r:n}feature(e){return this.evalFeature(e)}evalFeature(e){return st(e,this._getEvalContext())}log(e,r){this.debug&&(this._options.log?this._options.log(e,r):console.log(e,r))}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(e){this._deferredTrackingCalls=new Map(e.filter(r=>r&&r.experiment&&r.result).map(r=>[Je(r.experiment,r.result),r]))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach(r=>{!r||!r.experiment||!r.result?console.error("Invalid deferred tracking call",{call:r}):e.push(this._options.trackingCallback(r.experiment,r.result))}),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._options.trackingCallback=e,this.fireDeferredTrackingCalls()}setEventLogger(e){this._options.eventLogger=e}async logEvent(e,r){if(this._destroyed){console.error("Cannot log event to destroyed GrowthBook instance");return}if(this._options.enableDevMode&&this.logs.push({eventName:e,properties:r,timestamp:Date.now().toString(),logType:"event"}),this._options.eventLogger)try{await this._options.eventLogger(e,r||{},this._getUserContext())}catch(n){console.error(n)}else console.error("No event logger configured")}_saveDeferredTrack(e){this._deferredTrackingCalls.set(Je(e.experiment,e.result),e)}_getContextUrl(){return this._options.url||(J?window.location.href:"")}_isAutoExperimentBlockedByContext(e){const r=Ne(e);if(r==="visual"){if(this._options.disableVisualExperiments||this._options.disableJsInjection&&e.variations.some(n=>n.js))return!0}else if(r==="redirect"){if(this._options.disableUrlRedirectExperiments)return!0;try{const n=new URL(this._getContextUrl());for(const s of e.variations){if(!s||!s.urlRedirect)continue;const o=new URL(s.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments&&(o.protocol!==n.protocol||o.host!==n.host))return!0}}catch(n){return this.log("Error parsing current or redirect URL",{id:e.key,error:n}),!0}}else return!0;return!!(e.changeId&&(this._options.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._options.navigate?{navigate:this._options.navigate,delay:0}:J?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!J)return;const r=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),r.push(()=>n.remove())}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._options.jsInjectionNonce&&(n.nonce=this._options.jsInjectionNonce),document.head.appendChild(n),r.push(()=>n.remove())}return e.domMutations&&e.domMutations.forEach(n=>{r.push(si.declarative(n).revert)}),()=>{r.forEach(n=>n())}}async refreshStickyBuckets(e){if(this._options.stickyBucketService){const r=this._getEvalContext(),n=await Ai(r,this._options.stickyBucketService,e);this._options.stickyBucketAssignmentDocs=n}}generateStickyBucketAssignmentDocsSync(e,r){if(!("getAllAssignmentsSync"in e)){console.error("generating StickyBucketAssignmentDocs docs requires StickyBucketServiceSync");return}const n=this._getEvalContext(),s=Xt(n,r);return e.getAllAssignmentsSync(s)}inDevMode(){return!!this._options.enableDevMode}}var Ri="firebase",Oi="9.23.0";/** 11 * @license 12 * Copyright 2020 Google LLC 13 * 14 * Licensed under the Apache License, Version 2.0 (the "License"); 15 * you may not use this file except in compliance with the License. 16 * You may obtain a copy of the License at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, softw
20are 21 * distributed under the License is distributed on an "AS IS" BASIS, 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. 25 */ir(Ri,Oi,"app");function Vi({cbid:t,showOnRoute:e=!0}){const[r,n]=k.useState(!1),[s,o]=k.useState(!1),a=r&&e;k.useEffect(function(){if(!t||document.getElementById("Cookiebot"))return;const u=document.createElement("script");u.id="Cookiebot",u.src="https://consent.cookiebot.com/uc.js",u.dataset.cbid=t,u.dataset.blockingmode="manual",u.type="text/javascript",document.head.appendChild(u)},[t]),k.useEffect(function(){const u=()=>{const y=window.Cookiebot;y&&y.hasResponse===!1&&n(!0)},d=()=>n(!1);return u(),window.addEventListener("CookiebotOnDialogInit",u),window.addEventListener("CookiebotOnLoad",u),window.addEventListener("CookiebotOnAccept",d),window.addEventListener("CookiebotOnDecline",d),()=>{window.removeEventListener("CookiebotOnDialogInit",u),window.removeEventListener("CookiebotOnLoad",u),window.removeEventListener("CookiebotOnAccept",d),window.removeEventListener("CookiebotOnDecline",d)}},[]);const i=()=>{var c;(c=window.Cookiebot)==null||c.submitCustomConsent(!0,!0,!0)},l=()=>{var c;(c=window.Cookiebot)==null||c.submitCustomConsent(!1,!1,!1)};return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:'[id*="Cookiebot"], [id*="Cybot"] { display: none !important; }'}}),a&&f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:` 26 .cookie-banner, 27 .cookie-banner *, 28 .cookie-banner *::before, 29 .cookie-banner *::after { 30 box-sizing: border-box; 31 letter-spacing: normal; 32 text-transform: none; 33 text-indent: 0; 34 text-shadow: none; 35 word-spacing: normal; 36 } 37 .cookie-banner { 38 position: fixed; 39 bottom: 0; 40 left: 0; 41 right: 0; 42 z-index: 9999; 43 background-color: rgba(46, 47, 53, 0.9); 44 backdrop-filter: blur(12px); 45 -webkit-backdrop-filter: blur(12px); 46 border-top: 1px solid rgba(255, 255, 255, 0.12); 47 box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4); 48 padding: 12px 12px 12px 16px; 49 display: flex; 50 flex-direction: column; 51 gap: 12px; 52 font-family: Satoshi, sans-serif; 53 font-size: 14px; 54 font-weight: 400; 55 line-height: 1.5; 56 color: #c8c8c9; 57 } 58 @media (min-width: 640px) { 59 .cookie-banner { 60 padding: 12px 12px 12px 16px; 61 max-width: 375px; 62 margin: 16px 16px 16px auto; 63 border: 1px solid rgba(255, 255, 255, 0.12); 64 border-radius: 16px; 65 } 66 } 67 .cookie-banner p { 68 font-family: Satoshi, sans-serif; 69 margin: 0; 70 padding: 0; 71 } 72 .cookie-banner-text { 73 color: #c8c8c9; 74 font-size: 14px; 75 font-weight: 400; 76 line-height: 1.5; 77 text-wrap: pretty; 78 margin: 0; 79 } 80 .cookie-banner-row { 81 display: flex; 82 align-items: center; 83 gap: 8px; 84 } 85 .cookie-banner-link { 86 color: #fff; 87 text-decoration: underline; 88 font-size: 13px; 89 font-weight: 400; 90 line-height: 1.5; 91 white-space: nowrap; 92 } 93 .cookie-banner-link:visited { 94 color: #fff; 95 } 96 .cookie-banner-spacer { 97 flex: 1; 98 } 99 .cookie-banner-btn { 100 border-radius: 50px; 101 color: #fff; 102 padding: 6px 18px; 103 font-size: 13px; 104 line-height: 1.5; 105 font-family: Satoshi, sans-serif; 106 cursor: pointer; 107 white-space: nowrap; 108 } 109 .cookie-banner-btn-decline { 110 background-color: transparent; 111 border: 1px solid rgba(255, 255, 255, 0.25); 112 font-weight: 500; 113 } 114 .cookie-banner-btn-accept { 115 background: linear-gradient(10deg, #f89348 12.29%, #f5277f 87.5%); 116 border: none; 117 font-weight: 700; 118 } 119 .cookie-banner-details-toggle { 120 background: none; 121 border: none; 122 color: #c8c8c9; 123 font-size: 12px; 124 font-weight: 400; 125 line-height: 1.5; 126 font-family: Satoshi, sans-serif; 127 cursor: pointer; 128 padding: 0; 129 text-decoration: underline; 130 text-underline-offset: 2px; 131 } 132 .cookie-banner-details { 133 display: flex; 134 flex-direction: column; 135 gap: 8px; 136 padding: 10px 0 10px; 137 border-top: 1px solid rgba(255, 255, 255, 0.08); 138 } 139 .cookie-banner-category { 140 display: flex; 141 flex-direction: column; 142 gap: 0; 143 } 144 .cookie-banner-category-name { 145 color: #fff; 146 font-size: 12px; 147 font-weight: 600; 148 line-height: 1.4; 149 margin: 0; 150 } 151 .cookie-banner-category-desc { 152 color: #aaa; 153 font-size: 12px; 154 font-weight: 400; 155 line-height: 1.4; 156 margin: 0; 157 } 158 `}}),f.jsxs("div",{className:"cookie-banner",children:[f.jsx("p",{className:"cookie-banner-text",children:"We use cookies to analyze site usage and improve your experience."}),s&&f.jsxs("div",{className:"cookie-banner-details",children:[f.jsxs("div",{className:"cookie-banner-category",children:[f.jsx("p",{className:"cookie-banner-category-name",children:"Necessary â always active"}),f.jsx("p",{className:"cookie-banner-category-desc",children:"Core site functionality, error monitoring, and feature testing."})]}),f.jsxs("div",{className:"cookie-banner-category",children:[f.jsx("p",{className:"cookie-banner-category-name",children:"Analytics"}),f.jsx("p",{className:"cookie-banner-category-desc",children:"Understanding how visitors use the site to improve the experience."})]}),f.jsxs("div",{className:"cookie-banner-category",children:[f.jsx("p",{className:"cookie-banner-category-name",children:"Marketing"}),f.jsx("p",{className:"cookie-banner-category-desc",children:"Measuring the effectiveness of our advertising."})]})]}),f.jsxs("div",{className:"cookie-banner-row",children:[f.jsx("button",{onClick:()=>o(!s),className:"cookie-banner-details-toggle",children:s?"Less info":"Learn more"}),f.jsx("div",{className:"cookie-banner-spacer"}),f.jsx("button",{onClick:l,className:"cookie-banner-btn cookie-banner-btn-decline",children:"Decline"}),f.jsx("button",{onClick:i,className:"cookie-banner-btn cookie-banner-btn-accept",children:"Accept"})]})]})]})]})}function Fi(){const[t,e]=k.useState({statistics:!1,marketing:!1,hasResponded:!1,isReady:!1}),r=k.useCallback(()=>{var a,i;const o=window.Cookiebot;!o||!o.hasResponse||e({statistics:((a=o.consent)==null?void 0:a.statistics)??!1,marketing:((i=o.consent)==null?void 0:i.marketing)??!1,hasResponded:!0,isReady:!0})},[]),n=k.useCallback(()=>{e(o=>({...o,isReady:!0}))},[]),s=k.useCallback(()=>{setTimeout(()=>{e(o=>o.isReady?o:{...o,isReady:!0})},100)},[]);return k.useEffect(function(){return r(),window.addEventListener("CookiebotOnDialogInit",n),window.addEventListener("CookiebotOnLoad",s),window.addEventListener("CookiebotOnAccept",r),window.addEventListener("CookiebotOnDecline",r),
158()=>{window.removeEventListener("CookiebotOnDialogInit",n),window.removeEventListener("CookiebotOnLoad",s),window.removeEventListener("CookiebotOnAccept",r),window.removeEventListener("CookiebotOnDecline",r)}},[r,n,s]),t}const Di="/assets/global-DWHq80iJ.css",Li=()=>new xi({apiHost:"https://cdn.growthbook.io",clientKey:fr("sdk-fU5Unl50oEkE3Y44","sdk-5qFtE9H5YnZGKZ9"),trackingCallback:(t,e)=>{_t("$experiment_started",{"Experiment name":t.key,"Variant name":e.variationId,$source:"growthbook"})}}),Ni=async(t,e={streaming:!0,skipCache:!1},r={shouldRetry:!0})=>{var a;let n,s=0,o=null;if(t!=null&&t.ready&&Object.keys(((a=t==null?void 0:t.context)==null?void 0:a.features)??{}).length>0)return{error:null,source:"already_initialized",attempts:s};try{await ur(async()=>{s++;const i=await t.init(e);if(n=i.source,!i.success)throw i.error||new Error("GrowthBook initialization failed")},{maxDelay:1e3,numOfAttempts:r.shouldRetry?5:1})}catch(i){o=i instanceof Error?i:new Error("Unknown error during GrowthBook initialization")}return{error:o,source:n,attempts:s}},ji=async(t,e)=>{try{t==null||t.setFeatures(e)}catch(r){console.log("GrowthBook SetFeatures Error",r)}},Yt=()=>{if(typeof window>"u")return;const t=localStorage.getItem("udi");if(t)return t;const e=br();return localStorage.setItem("udi",e),e},$i=t=>!!(t!=null&&t.id)&&!t.featureFlagDistinctId&&t.emailVerificationStatus!=="pending",Pe=(t,e,r,n)=>{const s=Yt(),o={id:(e==null?void 0:e.featureFlagDistinctId)??s,env:r?"prod":"dev",platform:"web",timezone_offset:new Date().getTimezoneOffset()/60,firstOpen:Math.floor(Date.now()/1e3),...n&&{developerId:n},...(e==null?void 0:e.phoneOS)&&{phoneOS:e.phoneOS},...(e==null?void 0:e.email)&&{email:e.email},...(e==null?void 0:e.language)&&{language:e.language},...(e==null?void 0:e.skippedTrial)!==void 0&&{skipped_trial:e.skippedTrial},...(e==null?void 0:e.referral)&&{referral_source:e.referral},...(e==null?void 0:e.subStatus)&&{sub_status:e.subStatus},...(e==null?void 0:e.goal)&&{goal:e.goal},...(e==null?void 0:e.englishLevel)&&{englishLevel:e.englishLevel},...(e==null?void 0:e.age)&&{age:e.age},...(e==null?void 0:e.englishFrequency)&&{englishFrequency:e.englishFrequency},...(e==null?void 0:e.pronunciationLevel)&&{pronunciationLevel:e.pronunciationLevel},...(e==null?void 0:e.pronunciationEffect)&&{pronunciationEffect:e.pronunciationEffect},...(e==null?void 0:e.previousCoaching)&&{previousCoaching:e.previousCoaching},...(e==null?void 0:e.proficiencyGoal)&&{proficiencyGoal:e.proficiencyGoal},...(e==null?void 0:e.timeline)&&{timeline:e.timeline},...(e==null?void 0:e.practiceTime)&&{practiceTime:e.practiceTime},...(e==null?void 0:e.beyondPronunciation)&&{beyondPronunciation:e.beyondPronunciation},...(e==null?void 0:e.interestingTopics)&&{interestingTopics:e.interestingTopics}};t==null||t.setAttributes(o)},Mi=["/","/accent-oracle","/accent-guesser","/accent-filter","/accent-spy","/accent-tax","/whats-my-accent","/guess-the-accent"],ss=()=>[{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon.ico"},{rel:"apple-touch-icon",type:"image/png",sizes:"60x60",href:"/images/apple-touch-icon-iphone-60x60.png"},{rel:"apple-touch-icon",type:"image/png",sizes:"76x76",href:"/images/apple-touch-icon-ipad-76x76.png"},{rel:"apple-touch-icon",type:"image/png",sizes:"120x120",href:"/images/apple-touch-icon-iphone-retina-120x120.png"},{rel:"apple-touch-icon",type:"image/png",sizes:"152x152",href:"/images/apple-touch-icon-ipad-retina-152x152.png"},{rel:"apple-touch-icon",type:"image/png",sizes:"180x180",href:"/images/apple-touch-icon-180x180.png"},{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"},{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css"},{rel:"stylesheet",href:Di},{rel:"preload",href:"/fonts/satoshi/Satoshi-Black.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/satoshi/Satoshi-Bold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/satoshi/Satoshi-Medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/satoshi/Satoshi-Regular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/FoundersGroteskX/FoundersGroteskX-Condensed-Regular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/FoundersGroteskX/FoundersGroteskX-Condensed-Medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"preload",href:"/fonts/FoundersGroteskX/FoundersGroteskX-Condensed-Semibold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}],os=()=>{const t="BoldVoice is an accent training app that helps non-native English speakers speak clearly and confidently. Users learn with video lessons from Hollywood accent coaches, and get instant feedback as they speak from our speech Artificial Intelligence.",e="BoldVoice | American Acce
158nt Training App",r="https://start.boldvoice.com/images/share_img_new.png";return[{charset:"utf-8"},{title:e},{name:"description",content:t},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:image",content:r},{property:"og:type",content:"website"},{property:"og:url",content:"https://start.boldvoice.com"},{name:"twitter:title",content:e},{name:"twitter:description",content:t},{name:"twitter:image",content:r},{name:"twitter:card",content:"summary_large_image"},{name:"keywords",content:"Boldvoice,American,English,Accent,Training,Pronunciation"},{name:"viewport",content:"width=device-width,initial-scale=1"},{name:"facebook-domain-verification",content:"77ljcul4t5btd9vtakeq5d0xibt2sf"},{name:"theme-color",content:"#f2f3f7"}]};function Pi(){const{gbApiKey:t,mixpanelKey:e,firebaseConfig:r,facebookId:n,tikTokPixelId:s,redditPixelId:o,cookiebotCbid:a,user:i,provisionalUser:l,isProdEnv:c,developerId:u,googleClientId:d,isAccentOracle:y,payload:A,ipv4Beacon:m}=Sr(),[w,v]=k.useState(null),[h,_]=k.useState(null),V=Or(),H=Et(),{statistics:$,marketing:F,hasResponded:b,isReady:Zt}=Fi(),ot=Mi.includes(H.pathname),at=!ot&&Zt&&!b,ct=$||at,lt=F||at,Oe=k.useRef(!1),N=k.useMemo(()=>{const T=Li();return Pe(T,l!=null&&l.id&&!(i!=null&&i.id)?l:i!=null&&i.id?i:null,c,u),A?T.initSync({payload:A,streaming:typeof window<"u"}):T},[]),ut=k.useCallback(async()=>{var G;const{error:T,source:O,attempts:C}=await Ni(N,{streaming:!0,skipCache:!1},{shouldRetry:!0});if(!T)return{success:!0};if(!((G=N==null?void 0:N.context)!=null&&G.features)){const er=await fetch(`https://cdn.growthbook.io/api/features/${t}`,{headers:{connection:"keep-alive"}}).then(tr=>tr.json()).catch(()=>({features:{}}));ji(N,er)}return N!=null&&N.ready?(console.warn("Initialized GrowthBook the old way"),{success:!0}):(_t("Web - GrowthBook - Failed to initialize",{error:T.message,source:O,attempts:C,triedOldWay:!0}),{success:!1})},[N]);k.useEffect(function(){(async()=>{const{success:C}=await ut();C||V("/error",{state:{from:`${H.pathname}${H.search}`}})})()},[]),k.useEffect(function(){!m||m.id===window.__ipv4BeaconFiredId||(window.__ipv4BeaconFiredId=m.id,fetch(`${m.url}/api/v1/auth/observed_ipv4`,{method:"POST",headers:{Authorization:`Bearer ${m.token}`},keepalive:!0}).catch(O=>{console.warn("ipv4 beacon failed",O)}))},[m]),k.useEffect(function(){if(!ct||h||!r)return;dr(e,c);const O=sr(r),C=or(O);ar(C),_(hr),v(C),Oe.current=!0},[ct]),k.useEffect(function(){if(!lt||document.getElementById("facebook-pixel"))return;const O=document.createElement("script");O.id="facebook-pixel",O.textContent=` 159 !function(f,b,e,v,n,t,s) 160 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 161 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 162 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 163 n.queue=[];t=b.createElement(e);t.async=!0; 164 t.src=v;s=b.getElementsByTagName(e)[0]; 165 s.parentNode.insertBefore(t,s)}(window, document,'script', 166 'https://connect.facebook.net/en_US/fbevents.js'); 167 fbq('init', '${n}'); 168 `,document.body.appendChild(O);const C=document.createElement("script");C.id="tiktok-pixel",C.textContent=`!function (w, d, t) { 169 w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}; 170 ttq.load('${s}'); 171 ttq.page(); 172 }(window, document, 'ttq');`,document.body.appendChild(C);const G=document.createElement("script");G.id="reddit-pixel",G.textContent=`!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js?pixel_id=${o}";t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document); 173 rdt('init','${o}'); 174 rdt('track','PageVisit');`,document.body.appendChild(G),Oe.current=!0},[lt]),k.useEffect(function(){b&&!$&&!F&&Oe.current&&window.location.reload()},[b,$,F]),k.useEffect(()=>{l!=null&&l.id&&!(i!=null&&i.id)?Pe(N,l,c,u):i!=null&&i.id&&Pe(N,i,c,u)},[JSON.stringify(l),JSON.stringify(i)]),k.useEffect(()=>{h&&(i!=null&&i.id?(c||console.log("mixpanel identify user",i.id),pr(i.id)):yr())},[h,i==null?void 0:i.id,c]),k.useEffect(function(){i!=null&&i.id&&Dr({id:i.id,email:i.email||void 0})},[i==null?void 0:i.id,i==null?void 0:i.email]);const Ve=k.useRef(null);
174k.useEffect(function(){if(!$i(i)||Ve.current===i.id)return;const O=Yt();O&&(Ve.current=i.id,lr("/api/seed-distinct-id",{method:"POST",body:JSON.stringify({featureFlagDistinctId:O})}).then(C=>{if(!C.ok)throw new Error(`HTTP ${C.status}`)}).catch(C=>{Ve.current=null,console.warn("seed distinct id failed",C)}))},[i]),k.useEffect(()=>{if(h&&(i!=null&&i.id)){const T={...(i==null?void 0:i.subStatus)&&{sub_status:i.subStatus},...(i==null?void 0:i.language)&&{language:i.language},...(i==null?void 0:i.referral)&&{referral_source:i.referral},...(i==null?void 0:i.motivation)&&{motivation:i.motivation},...(i==null?void 0:i.skippedTrial)!==void 0&&{skipped_trial:i.skippedTrial},...(i==null?void 0:i.goal)&&{goal:i.goal},...(i==null?void 0:i.englishLevel)&&{englishLevel:i.englishLevel},...(i==null?void 0:i.age)&&{age:i.age},...(i==null?void 0:i.englishFrequency)&&{englishFrequency:i.englishFrequency},...(i==null?void 0:i.pronunciationLevel)&&{pronunciationLevel:i.pronunciationLevel},...(i==null?void 0:i.pronunciationEffect)&&{pronunciationEffect:i.pronunciationEffect},...(i==null?void 0:i.previousCoaching)&&{previousCoaching:i.previousCoaching},...(i==null?void 0:i.proficiencyGoal)&&{proficiencyGoal:i.proficiencyGoal},...(i==null?void 0:i.timeline)&&{timeline:i.timeline},...(i==null?void 0:i.practiceTime)&&{practiceTime:i.practiceTime},...(i==null?void 0:i.beyondPronunciation)&&{beyondPronunciation:i.beyondPronunciation},...(i==null?void 0:i.interestingTopics)&&{interestingTopics:i.interestingTopics}};if(gr({$email:i==null?void 0:i.email,$first_name:i==null?void 0:i.firstName,$last_name:i==null?void 0:i.lastName,joined:i==null?void 0:i.createdAt,...T}),i!=null&&i.subStatus||i!=null&&i.language||i!=null&&i.referral||i!=null&&i.motivation||i!=null&&i.createdAt||(i==null?void 0:i.skippedTrial)!==void 0){const O=Fe(),C={...(i==null?void 0:i.createdAt)&&{daysOld:O.diff(Fe(i.createdAt),"days"),createdAt:Fe(i.createdAt).unix()},...T};mr(C)}}},[h,i]);const Qt=Ot({key:"test",prepend:!1});return f.jsxs("html",{lang:"en",children:[f.jsxs("head",{children:[f.jsx(Ar,{}),f.jsx(Cr,{}),f.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`window.env = ${JSON.stringify({IS_ACCENT_ORACLE:y,IS_PROD_APP:c})};`}}),f.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"if (location.pathname === '/verify-email' && location.hash.indexOf('#token=') === 0) { window.__bvVerifyEmailHash = location.hash; history.replaceState(null, '', location.pathname + location.search); }"}}),m&&f.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`window.__ipv4BeaconFiredId = ${JSON.stringify(m.id)}; fetch(${JSON.stringify(`${m.url}/api/v1/auth/observed_ipv4`)}, { method: 'POST', headers: { Authorization: 'Bearer ' + ${JSON.stringify(m.token)} }, keepalive: true }).catch(function (error) { console.warn('ipv4 beacon failed', error); });`}})]}),f.jsxs("body",{children:[f.jsx(dn,{value:Qt,children:f.jsx(nr,{clientId:d,children:f.jsx(rr,{growthbook:N,children:f.jsxs(cr,{mixpanel:h,fbAnalytics:w,children:[f.jsx(Vr,{context:{tryInitGrowthBook:ut}}),f.jsx(Vi,{cbid:a,showOnRoute:ot})]})})})}),f.jsx(Lr,{}),f.jsx(Br,{})]})]})}const as=kr(Pi);function cs(){const t=Er("root"),e=xr();Fr(e);let r="Something went wrong",n="We're sorry, but something unexpected happened. Please try again.";return Rr(e)&&(e.status===404?(r="Page not found",n="The page you're looking for doesn't exist or has been moved."):e.status===500&&(r="Server error",n="We're experiencing some technical difficulties. Please try again later.")),(t==null?void 0:t.isProdEnv)===!1&&e instanceof Error&&(e.stack?n=e.stack.split(` 175`).slice(0,2).join(` 176`):n=`Error: ${e.message}`),f.jsxs("html",{lang:"en",children:[f.jsxs("head",{children:[f.jsx("meta",{charSet:"utf-8"}),f.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),f.jsx("title",{children:`${r} | BoldVoice`}),f.jsx("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"}),f.jsx("style",{dangerouslySetInnerHTML:{__html:` 177 @font-face { 178 font-family: 'Satoshi'; 179 src: url('/fonts/satoshi/Satoshi-Bold.woff2') format('woff2'); 180 font-weight: 700; 181 font-display: fallback; 182 } 183 @font-face { 184 font-family: 'Satoshi'; 185 src: url('/fonts/satoshi/Satoshi-Medium.woff2') format('woff2'); 186 font-weight: 500; 187 font-display: fallback; 188 } 189 @font-face { 190 font-family: 'Satoshi'; 191 src: url('/fonts/satoshi/Satoshi-Regular.woff2') format('woff2'); 192 font-weight: 400; 193 font-display: fallback; 194 } 195 @font-face { 196 font-family: 'Satoshi'; 197 src: url('/fonts/satoshi/Satoshi-Black.woff2') format('woff2'); 198 font-weight: 900; 199 font-display: fallback; 200 } 201 html, body { 202 background-color: #f2f3f7; 203 font-family: 'Satoshi', sans-serif; 204 min-height: 100vh; 205 margin: 0; 206 } 207 .error-container { 208 min-height: 100vh; 209 display: flex; 210 flex-direction: column; 211 align-items: center; 212 justify-content: center; 213 padding: 2rem; 214 text-align: center; 215 } 216 .error-logo { 217 margin-bottom: 2.5rem; 218 } 219 .error-icon { 220 width: 80px; 221 height: 80px; 222 margin-bottom: 1.5rem; 223 border-radius: 50%; 224 background: linear-gradient(135deg, rgba(248, 147, 72, 0.15) 0%, rgba(245, 39, 127, 0.15) 100%); 225 display: flex; 226 align-items: center; 227 justify-content: center; 228 } 229 .error-icon svg { 230 width: 40px; 231 height: 40px; 232 } 233 .error-title { 234 font-size: 1.75rem; 235 font-weight: 700; 236 color: #2e2f35; 237 margin-bottom: 0.75rem; 238 } 239 .error-message { 240 font-size: 1.1rem; 241 color: #666; 242 max-width: 800px; 243 line-height: 1.6; 244 margin-bottom: 2rem; 245 } 246 .bv-button { 247 color: white; 248 text-decoration: none; 249 background: linear-gradient(10deg, #f89348 12.29%, #f5277f 87.5%); 250 font-family: 'Satoshi', sans-serif; 251 font-weight: 900; 252 font-size: 1.1rem; 253 padding: 0.75rem 2rem; 254 border-radius: 50px; 255 box-shadow: 0px 3px 0px #c14019; 256 border: none; 257 cursor: pointer; 258 transition: all 0.1s linear; 259 display: inline-block; 260 } 261 .bv-button:hover { 262 transform: translateY(-1px); 263 } 264 .bv-button:active { 265 box-shadow: 0px 0px 0px #c14019; 266 transform: translateY(3px); 267 } 268 .error-support { 269 margin-top: 1.5rem; 270 font-size: 0.9rem; 271 color: #888; 272 } 273 .error-support a { 274 color: #f5277f; 275 text-decoration: none; 276 } 277 .error-support a:hover { 278 text-decoration: underline; 279 } 280 `}})]}),f.jsx("body",{children:f.jsxs("div",{className:"error-container",children:[f.jsx("div",{className:"error-logo",children:f.jsx("img",{src:"/images/boldvoice-logo.svg",alt:"BoldVoice",width:"140",height:"42"})}),f.jsx("div",{className:"error-icon",children:f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M12 8V12M12 16H12.01M21 12C2
2801 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"url(#error-icon-gradient)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("defs",{children:f.jsxs("linearGradient",{id:"error-icon-gradient",x1:"3",y1:"3",x2:"21",y2:"21",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{stopColor:"#f89348"}),f.jsx("stop",{offset:"1",stopColor:"#f5277f"})]})})]})}),f.jsx("h1",{className:"error-title",children:r}),f.jsx("p",{className:"error-message",children:n}),f.jsx("button",{className:"bv-button",onClick:()=>{window.location.href="/"},children:"Go to Homepage"}),f.jsxs("p",{className:"error-support",children:["Need help?"," ",f.jsx("a",{href:"mailto:[email protected]",children:"Contact Support"})]})]})})]})}export{cs as ErrorBoundary,as as default,ss as links,os as meta};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.