import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{m as t,n}from"./vendor-react-nmZsNlRz.js";import{E as r}from"./index-DjNTYlku.js";var i=n(),a=e(t(),1),o=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen`;function s(e){let t=new URL(e);return typeof window<`u`&&(window.location.protocol===`http:`||window.location.protocol===`https:`)&&window.location.origin&&window.location.origin!==`null`&&t.searchParams.set(`origin`,window.location.origin),t.toString()}function c(e){let t=(0,i.c)(7),{descriptor:n}=e,c=r(),l;t[0]===n.embedUrl?l=t[1]:(l=s(n.embedUrl),t[0]=n.embedUrl,t[1]=l);let u=l,d=c?`dark`:`light`,f;t[2]===d?f=t[3]:(f={colorScheme:d},t[2]=d,t[3]=f);let p;return t[4]!==u||t[5]!==f?(p=(0,a.jsx)(`iframe`,{allow:o,allowFullScreen:!0,className:`block aspect-video w-full border-0 bg-transparent`,loading:`lazy`,referrerPolicy:`strict-origin-when-cross-origin`,scrolling:`no`,src:u,style:f,title:`YouTube embed`}),t[4]=u,t[5]=f,t[6]=p):p=t[6],p}export{c as default};