!function(){var e=new Set;function t(t){var o=t.id;if(o&&!e.has(o)){e.add(o);var a="fb-player-option"===o?"":o.replace("fb-player-option-",""),r=a?document.querySelector(".fb-play-icon."+a):document.querySelector(".fb-play-icon"),i=t.getAttribute("data-url");if(i){var n="true"===t.getAttribute("data-autoplay"),l="true"===t.getAttribute("data-muted"),u="true"===t.getAttribute("data-loop"),c="true"===t.getAttribute("data-controls"),d=t.getAttribute("data-preview-image");t.getAttribute("data-play-icon"),renderReactPlayer(t,{url:i,playing:n,muted:l,loop:u,controls:c,light:d,onClickPreview:function(){t.setAttribute("data-autoplay","true"),r&&(r.style.display="none"),renderReactPlayer(t,{url:i,playing:!0,muted:l,loop:u,controls:c,light:d,width:"100%",height:"100%",className:"fb-react-player"})},width:"100%",height:"100%",className:"fb-react-player"}),r&&r.addEventListener("click",function(){var e=t.querySelector(".react-player__preview");e&&e.click()})}}}function o(){var o=document.querySelectorAll('[id^="fb-player-option-"]'),a=document.getElementById("fb-player-option");o.forEach(function(e){t(e)}),a&&!e.has("fb-player-option")&&t(a)}!function(){if("complete"===document.readyState||"interactive"===document.readyState?setTimeout(o,100):document.addEventListener("DOMContentLoaded",function(){setTimeout(o,100)}),"undefined"!=typeof window){var t=window.location.href;new MutationObserver(function(){t!==window.location.href?(t=window.location.href,e.clear(),setTimeout(o,300)):setTimeout(o,100)}).observe(document.body,{childList:!0,subtree:!0})}}(),window.reinitVideoPlayer=o}();