(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,892161,e=>{"use strict";var t=e.i(902875),n=e.i(247865);let o="bluesky-script-loaded",u=null,l=({atUri:e,postLink:l})=>{let r=(0,n.useRef)(null),{isLoaded:s}=function(){let[e,t]=(0,n.useState)(()=>"function"==typeof window.bluesky?.scan);return(0,n.useEffect)(()=>{if(e)return;(u||(u=new Promise(e=>{if("function"==typeof window.bluesky?.scan)return void e();let t=document.createElement("script");t.src="https://embed.bsky.app/static/embed.js",t.async=!0,t.onload=()=>{let t=new CustomEvent(o);window.dispatchEvent(t),e()},document.body.appendChild(t)}))).then(()=>t(!0));let n=()=>t(!0);return window.addEventListener(o,n),()=>{window.removeEventListener(o,n)}},[e]),{isLoaded:e}}();return(0,n.useEffect)(()=>{e&&r.current&&(r.current.innerHTML=`

View on Bluesky
`,s&&"function"==typeof window.bluesky?.scan&&window.bluesky.scan(r.current))},[e,l,s]),(0,t.jsx)("div",{"data-fp-bluesky-embed":l||void 0,ref:r})};e.s(["BlueskyEmbed",0,l,"default",0,l],892161)},904504,function(e){e.n(e.i(892161))}]);