var getCorrectDocumentFromNode_1;
var hasRequiredGetCorrectDocumentFromNode;

function requireGetCorrectDocumentFromNode () {
	if (hasRequiredGetCorrectDocumentFromNode) return getCorrectDocumentFromNode_1;
	hasRequiredGetCorrectDocumentFromNode = 1;

	/**
	 * Copyright (c) Facebook, Inc. and its affiliates.
	 *
	 * This source code is licensed under the MIT license found in the
	 * LICENSE file in the root directory of this source tree.
	 *
	 * @format
	 * 
	 * @emails oncall+draft_js
	 */
	function getCorrectDocumentFromNode(node) {
	  if (!node || !node.ownerDocument) {
	    return document;
	  }

	  return node.ownerDocument;
	}

	getCorrectDocumentFromNode_1 = getCorrectDocumentFromNode;
	return getCorrectDocumentFromNode_1;
}

export { requireGetCorrectDocumentFromNode as __require };
//# sourceMappingURL=getCorrectDocumentFromNode.js.map
