(()=>{"use strict";var t={1682:(t,e,n)=>{n.p="localhost"===window.location.hostname?"/assets/":"".concat(window.guardian.app.data.CAPI.config.frontendAssetsFullURL,"assets/")}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var c=e[r]={exports:{}};return t[r](c,c.exports,n),c.exports}n.p="",(()=>{n(1682);var t,e;t=function(){return".js-embed__iframe",t=[].slice.call(document.querySelectorAll(".js-embed__iframe")),window.addEventListener("message",(function(e){var n=t.find((function(t){try{return t.name===e.source.name}catch(t){return!1}}));if(n)try{var r=JSON.parse(e.data);switch(r.type){case"set-height":n.height=r.value}}catch(t){}})),t.forEach((function(t){var e=(t.getAttribute("srcdoc")||"").replace(/<gu-script>/g,"<script>").replace(/<\/gu-script>/g,"<\/script>");t.setAttribute("srcdoc",e)})),Promise.resolve();var t},e=function(){!function(t,e){var n=function(t){var e=window.performance,n="".concat(t,"-start"),r="".concat(t,"-end");return e?{start:function(){e.mark(n)},end:function(){e.mark(r),e.measure(t,n,r),console.log(JSON.stringify(e.getEntriesByName(t)));var a=e.getEntriesByName(t,"measure"),c=a&&a[0]&&a[0].duration||0;return Math.round(c)},clear:function(){e.clearMarks(n)}}:{start:function(){},end:function(){return 0},clear:function(){}}}(t),r=n.start,a=n.end;r(),e().then((function(){a()})).catch((function(){a()}))}("embedIframe",t.bind(null,null))},window.guardian.mustardCut||window.guardian.polyfilled?e():window.guardian.queue.push(e)})()})();
//# sourceMappingURL=embedIframe.legacy.612da483dc0f63b618d0.js.map