1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f5e04b95-afc6-4252-8ff0-4d5190cd7d2a`,e._sentryDebugIdIdentifier=`sentry-dbid-f5e04b95-afc6-4252-8ff0-4d5190cd7d2a`)}catch{}})();import{O as e,k as t}from"./BNWMsBwf.js";import{C as n,_ as r,l as i}from"./CyU4sjus.js";import{Ht as a,L as o,Pt as s,ct as c,g as l,tt as u}from"./Dxi30lUR.js";import{t as d}from"./mae8fuSy.js";import{t as f}from"./CYuiUEJU.js";import{t as p}from"./CNySwjlF.js";import{t as m}from"./DSdhTlLm.js";import"./Q7w0U3k9.js";import{t as h}from"./Nl_ojO17.js";import{Dn as g}from"#entry";import{t as _}from"./Btw6Wu2u.js";function v(){let{$plausible:t}=e();return(e,n)=>{{t?.trackEvent(e,n),typeof window.clarity==`function`&&g.event(e);let r=n?.props??{};d(`/api/ad-events`,{method:`POST`,body:{name:e,...r}}).catch(()=>{})}}}var y=[`ad-free`,`ad free`,`ads-free`,`ad_free`,`no ads`,`remove ads`];function b(e){return e?typeof e.adFree==`boolean`?e.adFree:(e.features??[]).some(e=>{let t=String(e).toLowerCase();return y.some(e=>t.includes(e))})||e.isFree===!1:!1}function x(e){return e.isAuthenticated?e.planLoaded?b(e.plan):null:!1}function S(e){let t=x(e);return t!==null&&!t}var C=`macosicons_ad_free`;function w(){let{isAuthenticated:e}=h(),t=f(`ai_billing_summary`,()=>null),n=f(`ai_billing_last_loaded_at`,()=>0),r=p(C,{maxAge:2592e3,sameSite:`lax`,path:`/`,decode:e=>decodeURIComponent(e)}),i=l(()=>{let e=r.value;return e==null||e===``?null:String(e)}),o=l(()=>({isAuthenticated:e.value,plan:t.value?.plan,planLoaded:!!t.value,cachedAdFree:i.value})),s=l(()=>x(o.value)),c=l(()=>s.value??i.value===`1`),u=l(()=>S(o.value));a(s,t=>{e.value&&t!==null&&(r.value=t?`1`:`0`)},{immediate:!0}),a(e,e=>{e||(r.value=null)});let{data:g}=m(`ad-free-entitlement`,async()=>{if(!e.value)return{summary:null};let t;return t=d,{summary:await t(`/api/ai/billing/summary`).catch(()=>null)}},{server:!0,immediate:e.value,watch:[e],dedupe:`defer`,default:()=>({summary:null})});return a(g,e=>{e&&e.summary&&(t.value=e.summary,n.value=Date.now())},{immediate:!0}),{adFree:c,adsAllowed:u}}var T=/iPad|\bTablet\b/i,E=/iPhone|iPod|Windows Phone|IEMobile|BlackBerry|BB10|Opera Mini|\bMobile\b/i;function D(e){return!e||T.test(e)?!1:E.test(e)}function O(){let e=navigator.userAgent,t=D(e),n=k();return l(()=>t||n.value)}function k(){let t=n(!1);if(typeof window.matchMedia!=`function`)return t;let a=window.matchMedia(_),s=()=>{t.value=a.matches};return e().isHydrating||s(),o()?c(s):s(),a.addEventListener(`change`,s),i()&&r(()=>a.removeEventListener(`change`,s)),t}var A=null,j=`bsa-custom-sdk`,M=`//m.servedby-buysellads.com/monetization.custom.js`;function N(){return typeof _bsa<`u`&&_bsa?Promise.resolve():A||(A=new Promise(e=>{let t=!1,n=()=>{t||(t=!0,e())},r=document.getElementById(j);if(r){if(typeof _bsa<`u`&&_bsa){n();return}let e=window.setInterval(()=>{typeof _bsa<`u`&&_bsa&&(window.clearInterval(e),window.clearTimeout(t),n())},50),t=window.setTimeout(()=>{window.clearInterval(e),n()},5e3);r.addEventListener(`load`,()=>{window.clearInterval(e),window.clearTimeout(t),n()},{once:!0}),r.addEventListener(`error`,()=>{window.clearInterval(e),window.clearTimeout(t),n()},{once:!0});return}let i=document.createElement(`script`);i.id=j,i.src=M,i.type=`text/javascript`,i.defer=!0;let a=window.setInterval(()=>{typeof _bsa<`u`&&_bsa&&(window.clearInterval(a),window.clearTimeout(o),n())},50),o=window.setTimeout(()=>{window.clearInterval(a),console.warn(`[bsa] Polling timeout â _bsa not available after 5s`),n()},5e3);i.onload=()=>{typeof _bsa<`u`&&_bsa&&(window.clearInterval(a),window.clearTimeout(o),n())},i.onerror=()=>{console.warn(`[bsa] SDK script failed to load`),window.clearInterval(a),window.clearTimeout(o),n()},console.log(`[bsa] Loading SDK scriptâ¦`),document.head.appendChild(i)}),A)}async function P(e){let{adFree:f,adsAllowed:p}=w(),h=O(),g=e.mode??t().public.bsaAdMode,_=l(()=>p.value&&!h.value);if(f.value)return{targetId:null,adData:n(null),renderedHtml:l(()=>``),adFree:f,adsAllowed:_,mode:g,setAdViewEl:(()=>{})};let v=e.placement??`placement:macosiconscom`;if(g===`client`){let t=`bsa-target-${e.zoneKey.toLowerCase()}-${s()}`;if(o()){let n=!1,r=async()=>
1{!n&&_.value&&(n=!0,await N(),_.value&&(await u(),typeof _bsa<`u`&&_bsa?document.getElementById(t)?(console.log(`[bsa] Initialising zone ${e.zoneKey} â #${t}`),_bsa.init(`custom`,e.zoneKey,v,{target:`#${t}`,template:e.template})):console.warn(`[bsa] Target element #${t} not found in DOM â zone ${e.zoneKey} will not render`):console.warn(`[bsa] _bsa not available after script load â zone ${e.zoneKey} will not render`)))};c(()=>{if(_.value){r();return}let e=a(_,t=>{t&&(e(),r())})})}return{targetId:t,adData:n(null),renderedHtml:l(()=>``),adFree:f,adsAllowed:_,mode:g,setAdViewEl:(()=>{})}}let y;y=d;let b=`bsa-ad-${e.zoneKey.toLowerCase()}-${e.instanceKey??`default`}`,x=_.value,{data:S,refresh:C}=await m(b,async()=>await y(`/api/bsa-ad`,{query:{zoneKey:e.zoneKey,segment:v}})??null,{server:!0,lazy:!1,immediate:x,default:()=>null,getCachedData:(e,t)=>t.isHydrating?t.payload.data[e]:void 0});if(!x){let e=a(_,t=>{t&&(e(),C())});i()&&r(e)}let T=l(()=>{let t=S.value;return!t||!t.statlink?``:R(e.template,t,v,t.timestamp||String(Math.floor(Date.now()/1e3)))}),E=null,D=null,k=null,A=!1;function j(){k!==null&&(window.clearTimeout(k),k=null)}function M(){j(),D?.disconnect(),D=null}function P(){let e=S.value;!A&&e?.statview&&(A=!0,M(),new Image().src=e.statview)}function F(){if(A||!E)return;let e=S.value;e?.statview&&e.shouldRecordViewable&&(M(),D=new IntersectionObserver(e=>{for(let t of e){let{width:e,height:n}=t.boundingClientRect,r=e*n>=242500?.3:.5;t.isIntersecting&&t.intersectionRatio>=r?k===null&&(k=window.setTimeout(P,1e3)):j()}},{threshold:[0,.3,.5]}),D.observe(E))}function I(e){let t=e instanceof HTMLElement?e:null;t!==E&&(E=t,E?F():M())}{let e=n(!1);function t(t){if(!e.value&&(e.value=!0,t.pixel)){let e=String(Math.floor(Date.now()/1e3));t.pixel.split(`||`).forEach(t=>{let n=z(t.trim(),v,e);new Image().src=n.startsWith(`//`)?`https:${n}`:n})}}S.value&&t(S.value);let o=a(S,e=>{e&&(t(e),F())});i()&&r(()=>{o(),M()})}return{targetId:null,adData:S,renderedHtml:T,adFree:f,adsAllowed:_,mode:g,setAdViewEl:I}}var F=e=>String(e??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),I=e=>/^(https?:\/\/|\/(?![/\\]))\S*$/i.test(e||``)?F(e):``,L=e=>/^(#[0-9a-fA-F]{3,8}|rgba?\([\d.,\s%]+\)|hsla?\([\d.,\s%]+\)|[a-zA-Z]{3,20})$/.test(e||``)?e:``;function R(e,t,n,r){let i=I(z(B(t.statlink,n),n,r)),a={link:i,statlink:i,image:I(t.image),logo:I(t.logo),company:F(t.company),tagline:F(t.tagline||t.description),description:F(t.description),callToAction:F(t.callToAction),backgroundColor:L(t.backgroundColor),textColor:L(t.textColor),ctaBackgroundColor:L(t.ctaBackgroundColor),ctaTextColor:L(t.ctaTextColor)};return e.replace(/##(\w+)##/g,(e,t)=>a[t]??e)}function z(e,t,n){return e.replace(/\[placement\]/g,t).replace(/\[timestamp\]/g,n)}function B(e,t){return!e.includes(`srv.buysellads.com`)||e.includes(`?`)?e:`${e}?segment=${t}`}var V=` 2 <a 3 href="##link##" 4 target="_blank" 5 rel="noopener sponsored" 6 class="bsa-banner-ad" 7 > 8 <img 9 src="##image##" 10 alt="##company##" 11 class="bsa-banner-img" 12 style="background-color: ##backgroundColor##;" 13 /> 14 15 <span class="bsa-banner-text"> 16 <span class="bsa-banner-desc"> 17 <strong>##company##</strong> 18 <span class="pl-1 md:pl-0">-</span> 19 ##description## 20 </span> 21 </span> 22 <span class="bsa-banner-cta">##callToAction##</span> 23 <span class="bsa-banner-label">Sponsored</span> 24 </a> 25`,H=` 26 <a href="##link##" target="_blank" rel="noopener sponsored" class="bsa-icon-list-inner"> 27 <img 28 src="##image##" 29 alt="##company##" 30 class="bsa-icon-list-img" 31 style="background-color: ##backgroundColor##;" 32 /> 33 34 <div class="bsa-icon-list-info"> 35 <span class="bsa-icon-list-company">##company##</span> 36 <span class="bsa-icon-list-cta">##description##</span> 37 <span class="bsa-icon-list-label">Sponsored</span> 38 </div> 39 </a> 40`,U=` 41 <a 42 href="##link##" 43 target="_blank" 44 rel="noopener sponsored" 45 class="bsa-sticky-ad" 46 > 47 <img 48 src="##image##" 49 alt="##company##" 50 class="bsa-sticky-img" 51 style="background-color: ##backgroundColor##;" 52 /> 53 54 <div class="bsa-sticky-content"> 55 <strong class="bsa-sticky-company">##company##</strong>
56 <span class="bsa-sticky-desc">##description##</span> 57 </div> 58 <span class="bsa-sticky-label">Sponsored</span> 59 </a> 60`;export{w as a,P as i,H as n,v as o,U as r,V as t};
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.