const e=require("./canUseDom.js");var t=()=>e.default()&&window.document.documentElement,n=t=>{if(e.default()&&window.document.documentElement){let e=Array.isArray(t)?t:[t],{documentElement:n}=window.document;return e.some(e=>e in n.style)}return!1},r=(e,t)=>{if(!n(e))return!1;let r=document.createElement(`div`),i=r.style[e];return r.style[e]=t,r.style[e]!==i};function i(e,t){return!Array.isArray(e)&&t!==void 0?r(e,t):n(e)}var a,o=()=>{if(!t())return!1;if(a!==void 0)return a;let e=document.createElement(`div`);return e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e),a=e.scrollHeight===1,document.body.removeChild(e),a};exports.canUseDocElement=t,exports.default=i,exports.isStyleSupport=i,exports.detectFlexGapSupported=o;