/* eslint-disable no-bitwise, no-cond-assign */// HTML DOM and SVG DOM may have different support levels,// so we need to check on context instead of a document root element.exportdefaultfunctioncontains(context,node){if(context.contains)returncontext.contains(node);if(context.compareDocumentPosition)returncontext===node||!!(context.compareDocumentPosition(node)&16);}