{"version":3,"sources":["node_modules\\node-libs-browser\\node_modules\\process\\browser.js"],"names":["process","module","exports","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","Error","defaultClearTimeout","setTimeout","e","clearTimeout","runTimeout","fun","call","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","length","concat","drainQueue","timeout","len","run","nextTick","args","Array","arguments","i","push","Item","array","prototype","apply","title","browser","env","argv","version","versions","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask"],"mappings":";AACA,GAAIA,SAAUC,OAAOC,OAAP,CAAiB,EAA/B;;;;;;;AAOA,GAAIC,iBAAJ;AACA,GAAIC,mBAAJ;;AAEA,QAASC,iBAAT,EAA4B;AACxB,KAAM,IAAIC,MAAJ,CAAU,iCAAV,CAAN;AACH;AACD,QAASC,oBAAT,EAAgC;AAC5B,KAAM,IAAID,MAAJ,CAAU,mCAAV,CAAN;AACH;AACA,WAAY;AACT,GAAI;AACA,GAAI,MAAOE,WAAP,GAAsB,UAA1B,CAAsC;AAClCL,iBAAmBK,UAAnB;AACH,CAFD,IAEO;AACHL,iBAAmBE,gBAAnB;AACH;AACJ,CAAC,MAAOI,CAAP,CAAU;AACRN,iBAAmBE,gBAAnB;AACH;AACD,GAAI;AACA,GAAI,MAAOK,aAAP,GAAwB,UAA5B,CAAwC;AACpCN,mBAAqBM,YAArB;AACH,CAFD,IAEO;AACHN,mBAAqBG,mBAArB;AACH;AACJ,CAAC,MAAOE,CAAP,CAAU;AACRL,mBAAqBG,mBAArB;AACH;AACJ,CAnBA,GAAD;AAoBA,QAASI,WAAT,CAAoBC,GAApB,CAAyB;AACrB,GAAIT,mBAAqBK,UAAzB,CAAqC;;AAEjC,MAAOA,YAAWI,GAAX,CAAgB,CAAhB,CAAP;AACH;;AAED,GAAI,CAACT,mBAAqBE,gBAArB,EAAyC,CAACF,gBAA3C,GAAgEK,UAApE,CAAgF;AAC5EL,iBAAmBK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,CAAe,IAAf,CAAqB,KAAKF,KAA1B;AACH,CAFD;AAGAlC,QAAQqC,KAAR,CAAgB,SAAhB;AACArC,QAAQsC,OAAR,CAAkB,IAAlB;AACAtC,QAAQuC,GAAR,CAAc,EAAd;AACAvC,QAAQwC,IAAR,CAAe,EAAf;AACAxC,QAAQyC,OAAR,CAAkB,EAAlB;AACAzC,QAAQ0C,QAAR,CAAmB,EAAnB;;AAEA,QAASC,KAAT,EAAgB,CAAE;;AAElB3C,QAAQ4C,EAAR,CAAaD,IAAb;AACA3C,QAAQ6C,WAAR,CAAsBF,IAAtB;AACA3C,QAAQ8C,IAAR,CAAeH,IAAf;AACA3C,QAAQ+C,GAAR,CAAcJ,IAAd;AACA3C,QAAQgD,cAAR,CAAyBL,IAAzB;AACA3C,QAAQiD,kBAAR,CAA6BN,IAA7B;AACA3C,QAAQkD,IAAR,CAAeP,IAAf;AACA3C,QAAQmD,eAAR,CAA0BR,IAA1B;AACA3C,QAAQoD,mBAAR,CAA8BT,IAA9B;;AAEA3C,QAAQqD,SAAR,CAAoB,SAAUC,IAAV,CAAgB,CAAE,MAAO,EAAP,CAAW,CAAjD;;AAEAtD,QAAQuD,OAAR,CAAkB,SAAUD,IAAV,CAAgB;AAC9B,KAAM,IAAIhD,MAAJ,CAAU,kCAAV,CAAN;AACH,CAFD;;AAIAN,QAAQwD,GAAR,CAAc,UAAY,CAAE,MAAO,GAAP,CAAY,CAAxC;AACAxD,QAAQyD,KAAR,CAAgB,SAAUC,GAAV,CAAe;AAC3B,KAAM,IAAIpD,MAAJ,CAAU,gCAAV,CAAN;AACH,CAFD;AAGAN,QAAQ2D,KAAR,CAAgB,UAAW,CAAE,MAAO,EAAP,CAAW,CAAxC","file":"browser.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n    throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n    throw new Error('clearTimeout has not been defined');\n}\n(function () {\n    try {\n        if (typeof setTimeout === 'function') {\n            cachedSetTimeout = setTimeout;\n        } else {\n            cachedSetTimeout = defaultSetTimout;\n        }\n    } catch (e) {\n        cachedSetTimeout = defaultSetTimout;\n    }\n    try {\n        if (typeof clearTimeout === 'function') {\n            cachedClearTimeout = clearTimeout;\n        } else {\n            cachedClearTimeout = defaultClearTimeout;\n        }\n    } catch (e) {\n        cachedClearTimeout = defaultClearTimeout;\n    }\n} ())\nfunction runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n        //normal enviroments in sane situations\n        return setTimeout(fun, 0);\n    }\n    // if setTimeout wasn't available but was latter defined\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n        cachedSetTimeout = setTimeout;\n        return setTimeout(fun, 0);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedSetTimeout(fun, 0);\n    } catch(e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n            return cachedSetTimeout.call(null, fun, 0);\n        } catch(e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n            return cachedSetTimeout.call(this, fun, 0);\n        }\n    }\n\n\n}\nfunction runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n        //normal enviroments in sane situations\n        return clearTimeout(marker);\n    }\n    // if clearTimeout wasn't available but was latter defined\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n        cachedClearTimeout = clearTimeout;\n        return clearTimeout(marker);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedClearTimeout(marker);\n    } catch (e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n            return cachedClearTimeout.call(null, marker);\n        } catch (e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n            return cachedClearTimeout.call(this, marker);\n        }\n    }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n        return;\n    }\n    draining = false;\n    if (currentQueue.length) {\n        queue = currentQueue.concat(queue);\n    } else {\n        queueIndex = -1;\n    }\n    if (queue.length) {\n        drainQueue();\n    }\n}\n\nfunction drainQueue() {\n    if (draining) {\n        return;\n    }\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n\n    var len = queue.length;\n    while(len) {\n        currentQueue = queue;\n        queue = [];\n        while (++queueIndex < len) {\n            if (currentQueue) {\n                currentQueue[queueIndex].run();\n            }\n        }\n        queueIndex = -1;\n        len = queue.length;\n    }\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n    var args = new Array(arguments.length - 1);\n    if (arguments.length > 1) {\n        for (var i = 1; i < arguments.length; i++) {\n            args[i - 1] = arguments[i];\n        }\n    }\n    queue.push(new Item(fun, args));\n    if (queue.length === 1 && !draining) {\n        runTimeout(drainQueue);\n    }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n    this.fun = fun;\n    this.array = array;\n}\nItem.prototype.run = function () {\n    this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n    throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n    throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"]}