{"version":3,"file":"ExecutionEnvironment.mjs","sources":["../../../../node_modules/normalize-wheel/src/ExecutionEnvironment.js"],"sourcesContent":["/**\n * Copyright (c) 2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ExecutionEnvironment\n */\n\n/*jslint evil: true */\n\n'use strict';\n\nvar canUseDOM = !!(\n  typeof window !== 'undefined' &&\n  window.document &&\n  window.document.createElement\n);\n\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\nvar ExecutionEnvironment = {\n\n  canUseDOM: canUseDOM,\n\n  canUseWorkers: typeof Worker !== 'undefined',\n\n  canUseEventListeners:\n    canUseDOM && !!(window.addEventListener || window.attachEvent),\n\n  canUseViewport: canUseDOM && !!window.screen,\n\n  isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\n\nmodule.exports = ExecutionEnvironment;\n"],"names":["canUseDOM","window","document","createElement","ExecutionEnvironment_1","canUseWorkers","Worker","canUseEventListeners","addEventListener","attachEvent","canUseViewport","screen","isInWorker"],"mappings":"AAeA,IAAIA,IACgB,oBAAXC,SACPA,OAAOC,WACPD,OAAOC,SAASC,eAwBlBC,EAf2B,CAEzBJ,UAAWA,EAEXK,cAAiC,oBAAXC,OAEtBC,qBACEP,MAAgBC,OAAOO,mBAAoBP,OAAOQ,aAEpDC,eAAgBV,KAAeC,OAAOU,OAEtCC,YAAaZ","x_google_ignoreList":[0]}