var e,t,a,r,n=n||(e=globalThis.document.getElementsByTagName("head")[0],t=!1,a=function(a){var r,n="H5POldEmbed";t=!0,window[n]=function(t){var a=globalThis.document.createElement("script");a.src=t,e.appendChild(a),e.removeChild(r),delete window[n]},(r=globalThis.document.createElement("script")).src=a+(-1===a.indexOf("?")?"?":"&")+"callback="+n,e.appendChild(r)},r=function(e){var t=globalThis.document.createElement("iframe");t.src=e.getAttribute("data-h5p"),t.frameBorder=!1,t.allowFullscreen=!0;var a=e.parentNode;a.insertBefore(t,e),a.removeChild(e)},function n(){for(var e=globalThis.document.getElementsByTagName("script"),n=[],l=0;l<e.length;l++){var i=e[l];-1!==i.src.indexOf("/h5p-resizer.js")?t=!0:i.hasAttribute("data-h5p")&&n.push(i)}for(l=0;l<n.length;l++)t||a(n[l].getAttribute("data-h5p")),r(n[l])});new n;