1 var topLevel = typeof global !== 'undefined' ? global :
2 typeof window !== 'undefined' ? window : {}
3 var minDoc = require('min-document');
5 if (typeof document !== 'undefined') {
6 module.exports = document;
8 var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];
11 doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;
14 module.exports = doccy;