"use strict";exports.id=9995,exports.ids=[9995],exports.modules={99995:(a,b,c)=>{c.r(b),c.d(b,{searchUnsplash:()=>e});var d=c(43180);async function e(a){let b=await (0,d.CG)("unsplash");if(!b)throw Error("Unsplash Access Key is not configured. Open Settings → Images.");let c=new URL("https://api.unsplash.com/search/photos");c.searchParams.set("query",a.query),c.searchParams.set("per_page",String(a.count)),c.searchParams.set("orientation","landscape");let e=await fetch(c,{headers:{Authorization:`Client-ID ${b}`,"Accept-Version":"v1"}});if(!e.ok){let a=await e.text().catch(()=>"");throw Error(`Unsplash search ${e.status}: ${a.slice(0,200)}`)}return((await e.json()).results??[]).map(a=>({url:a.urls.regular,thumb:a.urls.thumb,attribution:{name:a.user.name,link:`${a.user.links.html}?utm_source=reflex&utm_medium=referral`},width:a.width,height:a.height,provider:"unsplash"}))}}};