(()=>{"use strict";var t={687(){}},e={};(function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports})(687);let i;function r(){document.querySelectorAll(".jetpack-video-wrapper").forEach(function(t){t.querySelectorAll("embed, iframe, object").forEach(function(e){let i=0;const r=t.previousElementSibling;r&&"P"===r.nodeName&&"center"===getComputedStyle(r)["text-align"]&&(i="0 auto"),e.hasAttribute("data-ratio")||(e.setAttribute("data-ratio",(e.height||0)/(e.width||0)),e.setAttribute("data-width",e.width),e.setAttribute("data-height",e.height),e.style.display="block",e.style.margin=i);const n=e.getAttribute("data-height"),o=e.getAttribute("data-ratio"),a=e.parentElement.clientWidth;if(e.removeAttribute("height"),e.removeAttribute("width"),"Infinity"===o)return e.style.width="100%",void(e.style.height=n+"px");const d=e.getAttribute("data-width");parseInt(d,10)>a?(e.style.width=a+"px",e.style.height=a*parseFloat(o)+"px"):(e.style.width=d+"px",e.style.height=n+"px")})})}function n(){window.addEventListener("load",r),window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(r,500)}),window.addEventListener("is.post-load",r),setTimeout(r)}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)})();