!function(a,b){var c=document.documentElement,d="orientationchange"in window?"orientationchange":"resize",e=("orientationchange"in window,function(){var a=c.clientWidth;a&&(a>640?a=640:a<320&&(a=320),c.style.fontSize=100*(a/640)+"px")});window.addEventListener||window.addEventListener(d,e,!1),window.onorientationchange=function(){},e()}(document,window);var ModalHelper=function(a){document.scrollingElement||!function(){function a(){if(b)return b;if(document.body.scrollTop)return b=document.body;var a=document.createElement("iframe");a.style.height="1px",document.documentElement.appendChild(a);var c=a.contentWindow.document;c.write('<!DOCTYPE html><div style="height:9999em">x</div>'),c.close();var d=c.documentElement.scrollHeight>c.body.scrollHeight;return a.parentNode.removeChild(a),b=d?document.documentElement:document.body}var b=null;Object.defineProperty(document,"scrollingElement",{get:a})}();var b;return{afterOpen:function(c){c||(b=document.scrollingElement.scrollTop,document.body.classList.add(a),document.body.style.top=-b+"px")},beforeClose:function(c){c||(document.body.classList.remove(a),document.scrollingElement.scrollTop=b)},getScrollTop:function(){return b}}}("popup-open");