<script>!function(window){const host=»https://labs.heygen.com»,url=host+»/guest/streaming-embed?share=eyJxdWFsaXR5IjoiaGlnaCIsImF2YXRhck5hbWUiOiJLYXlsYS1pbmNhc3VhbHN1aXQtMjAyMjA4%0D%0AMTgiLCJ2b2ljZSI6eyJ2b2ljZV9pZCI6IjBmMDU5ZjllNTQyODQzOTFiNDgzMDBmOTE2Y2M2YTAx%0D%0AIn0sInByZXZpZXdJbWciOiJodHRwczovL2ZpbGVzLmhleWdlbi5haS9hdmF0YXIvdjMvYmY4M2Yw%0D%0AZjgzMDc5NGQ5MGI1MDliYTY1MjQ5NjJlMDVfMTA3OS9wcmV2aWV3X3RhbGtfMi53ZWJwIiwibmVl%0D%0AZFJlbW92ZUJhY2tncm91bmQiOnRydWUsInVzZXJuYW1lIjoiMTZiMjcwZjczZWM2NDM1ZmI1Yzg3%0D%0AN2QxNDVlNTUzN2EifQ%3D%3D&inIFrame=1″,clientWidth=document.body.clientWidth,wrapDiv=document.createElement(«div»);wrapDiv.id=»heygen-streaming-embed»;const container=document.createElement(«div»);container.id=»heygen-streaming-container»;const stylesheet=document.createElement(«style»);stylesheet.innerHTML=`\n #heygen-streaming-embed {\n z-index: 9999;\n position: fixed;\n left: 40px;\n bottom: 40px;\n width: 200px;\n height: 200px;\n border-radius: 50%;\n border: 2px solid #fff;\n box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);\n transition: all linear 0.1s;\n overflow: hidden;\n\n opacity: 0;\n visibility: hidden;\n }\n #heygen-streaming-embed.show {\n opacity: 1;\n visibility: visible;\n }\n #heygen-streaming-embed.expand {\n ${clientWidth<540?»height: 266px; width: 96%; left: 50%; transform: translateX(-50%);»:»height: 366px; width: calc(366px * 16 / 9);»}\n border: 0;\n border-radius: 8px;\n }\n #heygen-streaming-container {\n width: 100%;\n height: 100%;\n }\n #heygen-streaming-container iframe {\n width: 100%;\n height: 100%;\n border: 0;\n }\n `;const iframe=document.createElement(«iframe»);iframe.allowFullscreen=!1,iframe.title=»Streaming Embed»,iframe.role=»dialog»,iframe.src=url;let visible=!1,initial=!1;window.addEventListener(«message»,(e=>{e.origin===host&&e.data&&e.data.type&&»streaming-embed»===e.data.type&&(«init»===e.data.action?(initial=!0,wrapDiv.classList.toggle(«show»,initial)):»show»===e.data.action?(visible=!0,wrapDiv.classList.toggle(«expand»,visible)):»hide»===e.data.action&&(visible=!1,wrapDiv.classList.toggle(«expand»,visible)))})),container.appendChild(iframe),wrapDiv.appendChild(stylesheet),wrapDiv.appendChild(container),document.body.appendChild(wrapDiv)}(globalThis);</script>