(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5925],{2606:function(e,t,r){Promise.resolve().then(r.bind(r,7781))},7781:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var o=r(7437),i=r(2265);function n(e){let{children:t}=e,[r,n]=(0,i.useState)(!1),s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e;let t=()=>{var e,t,r,o;let i=null!==(r=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==r?r:window.innerHeight,l=null!==(o=null===(t=window.visualViewport)||void 0===t?void 0:t.width)&&void 0!==o?o:window.innerWidth,y=i>620||l>380;n(y);let h=document.documentElement,p=document.body,m=s.current;if(!y){h.style.removeProperty("height"),h.style.removeProperty("width"),h.style.removeProperty("min-height"),h.style.removeProperty("max-height"),p.style.removeProperty("height"),p.style.removeProperty("width"),p.style.removeProperty("min-height"),p.style.removeProperty("max-height"),p.style.removeProperty("overflow"),m&&(m.style.removeProperty("height"),m.style.removeProperty("width"),m.style.removeProperty("max-width"),m.style.removeProperty("min-height"),m.style.removeProperty("max-height"));return}let d="".concat(Math.round(i),"px");h.style.setProperty("height",d,"important"),h.style.setProperty("width","100%","important"),h.style.setProperty("min-height",d,"important"),h.style.setProperty("max-height",d,"important"),p.style.setProperty("height",d,"important"),p.style.setProperty("width","100%","important"),p.style.setProperty("min-height",d,"important"),p.style.setProperty("max-height",d,"important"),p.style.setProperty("overflow","hidden","important"),m&&(m.style.setProperty("height",d,"important"),m.style.setProperty("width","100%","important"),m.style.setProperty("max-width","420px","important"),m.style.setProperty("min-height",d,"important"),m.style.setProperty("max-height",d,"important"))};return t(),window.addEventListener("resize",t),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",t),()=>{var e;window.removeEventListener("resize",t),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",t)}},[]),(0,o.jsx)("div",{ref:s,className:"popup-root font-display".concat(r?" is-sidepanel":""),style:{overflow:"hidden",color:"var(--text-primary)"},children:t})}r(8642)},8642:function(){}},function(e){e.O(0,[3082,2971,2117,1744],function(){return e(e.s=2606)}),_N_E=e.O()}]);