63fd604df4c75feafe3204910e0c5fd9.json
8.08 KB
{"ast":null,"code":"var global = require('../internals/global');\n\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\n\nvar macrotask = require('../internals/task').set;\n\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\n\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar flush, head, last, notify, toggle, node, promise, then; // modern engines have queueMicrotask method\n\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n\n while (head) {\n fn = head.fn;\n head = head.next;\n\n try {\n fn();\n } catch (error) {\n if (head) notify();else last = undefined;\n throw error;\n }\n }\n\n last = undefined;\n if (parent) parent.enter();\n }; // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n\n\n if (!IS_IOS && !IS_NODE && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, {\n characterData: true\n });\n\n notify = function () {\n node.data = toggle = !toggle;\n }; // environments with maybe non-completely correct, but existent Promise\n\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n then = promise.then;\n\n notify = function () {\n then.call(promise, flush);\n }; // Node.js without promises\n\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n }; // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = {\n fn: fn,\n next: undefined\n };\n if (last) last.next = task;\n\n if (!head) {\n head = task;\n notify();\n }\n\n last = task;\n};","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/core-js-pure/internals/microtask.js"],"names":["global","require","getOwnPropertyDescriptor","f","macrotask","set","IS_IOS","IS_NODE","MutationObserver","WebKitMutationObserver","document","process","Promise","queueMicrotaskDescriptor","queueMicrotask","value","flush","head","last","notify","toggle","node","promise","then","parent","fn","domain","exit","next","error","undefined","enter","createTextNode","observe","characterData","data","resolve","call","nextTick","module","exports","task"],"mappings":"AAAA,IAAIA,MAAM,GAAGC,OAAO,CAAC,qBAAD,CAApB;;AACA,IAAIC,wBAAwB,GAAGD,OAAO,CAAC,iDAAD,CAAP,CAA2DE,CAA1F;;AACA,IAAIC,SAAS,GAAGH,OAAO,CAAC,mBAAD,CAAP,CAA6BI,GAA7C;;AACA,IAAIC,MAAM,GAAGL,OAAO,CAAC,4BAAD,CAApB;;AACA,IAAIM,OAAO,GAAGN,OAAO,CAAC,6BAAD,CAArB;;AAEA,IAAIO,gBAAgB,GAAGR,MAAM,CAACQ,gBAAP,IAA2BR,MAAM,CAACS,sBAAzD;AACA,IAAIC,QAAQ,GAAGV,MAAM,CAACU,QAAtB;AACA,IAAIC,OAAO,GAAGX,MAAM,CAACW,OAArB;AACA,IAAIC,OAAO,GAAGZ,MAAM,CAACY,OAArB,C,CACA;;AACA,IAAIC,wBAAwB,GAAGX,wBAAwB,CAACF,MAAD,EAAS,gBAAT,CAAvD;AACA,IAAIc,cAAc,GAAGD,wBAAwB,IAAIA,wBAAwB,CAACE,KAA1E;AAEA,IAAIC,KAAJ,EAAWC,IAAX,EAAiBC,IAAjB,EAAuBC,MAAvB,EAA+BC,MAA/B,EAAuCC,IAAvC,EAA6CC,OAA7C,EAAsDC,IAAtD,C,CAEA;;AACA,IAAI,CAACT,cAAL,EAAqB;AACnBE,EAAAA,KAAK,GAAG,YAAY;AAClB,QAAI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;AACC,GARM,MAQA,IAAIT,OAAJ,EAAa;AAClBY,IAAAA,MAAM,GAAG,YAAY;AACnBR,MAAAA,OAAO,CAAC2B,QAAR,CAAiBtB,KAAjB;AACD,KAFD,CADkB,CAIpB;AACA;AACA;AACA;AACA;AACA;;AACC,GAVM,MAUA;AACLG,IAAAA,MAAM,GAAG,YAAY;AACnB;AACAf,MAAAA,SAAS,CAACiC,IAAV,CAAerC,MAAf,EAAuBgB,KAAvB;AACD,KAHD;AAID;AACF;;AAEDuB,MAAM,CAACC,OAAP,GAAiB1B,cAAc,IAAI,UAAUW,EAAV,EAAc;AAC/C,MAAIgB,IAAI,GAAG;AAAEhB,IAAAA,EAAE,EAAEA,EAAN;AAAUG,IAAAA,IAAI,EAAEE;AAAhB,GAAX;AACA,MAAIZ,IAAJ,EAAUA,IAAI,CAACU,IAAL,GAAYa,IAAZ;;AACV,MAAI,CAACxB,IAAL,EAAW;AACTA,IAAAA,IAAI,GAAGwB,IAAP;AACAtB,IAAAA,MAAM;AACP;;AAACD,EAAAA,IAAI,GAAGuB,IAAP;AACH,CAPD","sourcesContent":["var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n if (!IS_IOS && !IS_NODE && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n"]},"metadata":{},"sourceType":"script"}