{“ast”:null,“code”:“// shim for using process in browsernvar process = module.exports = {}; // cached from whatever global is present so that test runners that stub itn// don't break things. But we need to wrap it in a try catch in case it isn// wrapped in strict mode code which doesn't define any globals. It's inside an// function because try/catches deoptimize in certain engines.nnvar cachedSetTimeout;nvar cachedClearTimeout;nnfunction defaultSetTimout() {n throw new Error('setTimeout has not been defined');n}nnfunction defaultClearTimeout() {n throw new Error('clearTimeout has not been defined');n}nn(function () {n try {n if (typeof setTimeout === 'function') {n cachedSetTimeout = setTimeout;n } else {n cachedSetTimeout = defaultSetTimout;n }n } catch (e) {n cachedSetTimeout = defaultSetTimout;n }nn try {n if (typeof clearTimeout === 'function') {n cachedClearTimeout = clearTimeout;n } else {n cachedClearTimeout = defaultClearTimeout;n }n } catch (e) {n cachedClearTimeout = defaultClearTimeout;n }n})();nnfunction runTimeout(fun) {n if (cachedSetTimeout === setTimeout) {n //normal enviroments in sane situationsn return setTimeout(fun, 0);n } // if setTimeout wasn't available but was latter definednnn if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {n cachedSetTimeout = setTimeout;n return setTimeout(fun, 0);n }nn try {n // when when somebody has screwed with setTimeout but no I.E. maddnessn 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 normallyn 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 errorn return cachedSetTimeout.call(this, fun, 0);n }n }n}nnfunction runClearTimeout(marker) {n if (cachedClearTimeout === clearTimeout) {n //normal enviroments in sane situationsn return clearTimeout(marker);n } // if clearTimeout wasn't available but was latter definednnn if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {n cachedClearTimeout = clearTimeout;n return clearTimeout(marker);n }nn try {n // when when somebody has screwed with setTimeout but no I.E. maddnessn 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 normallyn 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 setTimeoutn return cachedClearTimeout.call(this, marker);n }n }n}nnvar queue = [];nvar draining = false;nvar currentQueue;nvar queueIndex = -1;nnfunction cleanUpNextTick() {n if (!draining || !currentQueue) {n return;n }nn draining = false;nn if (currentQueue.length) {n queue = currentQueue.concat(queue);n } else {n queueIndex = -1;n }nn if (queue.length) {n drainQueue();n }n}nnfunction drainQueue() {n if (draining) {n return;n }nn var timeout = runTimeout(cleanUpNextTick);n draining = true;n var len = queue.length;nn while (len) {n currentQueue = queue;n queue = [];nn while (++queueIndex < len) {n if (currentQueue) {n currentQueue.run();n }n }nn queueIndex = -1;n len = queue.length;n }nn currentQueue = null;n draining = false;n runClearTimeout(timeout);n}nnprocess.nextTick = function (fun) {n var args = new Array(arguments.length - 1);nn if (arguments.length > 1) {n for (var i = 1; i < arguments.length; i++) {n args[i - 1] = arguments;n }n }nn queue.push(new Item(fun, args));nn if (queue.length === 1 && !draining) {n runTimeout(drainQueue);n }n}; // v8 likes predictible objectsnnnfunction Item(fun, array) {n this.fun = fun;n this.array = array;n}nnItem.prototype.run = function () {n this.fun.apply(null, this.array);n};nnprocess.title = 'browser';nprocess.browser = true;nprocess.env = {};nprocess.argv = [];nprocess.version = ''; // empty string to avoid regexp issuesnnprocess.versions = {};nnfunction noop() {}nnprocess.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;nnprocess.listeners = function (name) {n return [];n};nnprocess.binding = function (name) {n throw new Error('process.binding is not supported');n};nnprocess.cwd = function () {n return '/';n};nnprocess.chdir = function (dir) {n throw new Error('process.chdir is not supported');n};nnprocess.umask = function () {n return 0;n};”,“map”:null,“metadata”:{},“sourceType”:“module”}