Açıklama Yok

warning.js 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. this["wp"] = this["wp"] || {}; this["wp"]["warning"] =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = "WyMB");
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ "8oxB":
  90. /***/ (function(module, exports) {
  91. // shim for using process in browser
  92. var process = module.exports = {};
  93. // cached from whatever global is present so that test runners that stub it
  94. // don't break things. But we need to wrap it in a try catch in case it is
  95. // wrapped in strict mode code which doesn't define any globals. It's inside a
  96. // function because try/catches deoptimize in certain engines.
  97. var cachedSetTimeout;
  98. var cachedClearTimeout;
  99. function defaultSetTimout() {
  100. throw new Error('setTimeout has not been defined');
  101. }
  102. function defaultClearTimeout () {
  103. throw new Error('clearTimeout has not been defined');
  104. }
  105. (function () {
  106. try {
  107. if (typeof setTimeout === 'function') {
  108. cachedSetTimeout = setTimeout;
  109. } else {
  110. cachedSetTimeout = defaultSetTimout;
  111. }
  112. } catch (e) {
  113. cachedSetTimeout = defaultSetTimout;
  114. }
  115. try {
  116. if (typeof clearTimeout === 'function') {
  117. cachedClearTimeout = clearTimeout;
  118. } else {
  119. cachedClearTimeout = defaultClearTimeout;
  120. }
  121. } catch (e) {
  122. cachedClearTimeout = defaultClearTimeout;
  123. }
  124. } ())
  125. function runTimeout(fun) {
  126. if (cachedSetTimeout === setTimeout) {
  127. //normal enviroments in sane situations
  128. return setTimeout(fun, 0);
  129. }
  130. // if setTimeout wasn't available but was latter defined
  131. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  132. cachedSetTimeout = setTimeout;
  133. return setTimeout(fun, 0);
  134. }
  135. try {
  136. // when when somebody has screwed with setTimeout but no I.E. maddness
  137. return cachedSetTimeout(fun, 0);
  138. } catch(e){
  139. try {
  140. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  141. return cachedSetTimeout.call(null, fun, 0);
  142. } catch(e){
  143. // 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
  144. return cachedSetTimeout.call(this, fun, 0);
  145. }
  146. }
  147. }
  148. function runClearTimeout(marker) {
  149. if (cachedClearTimeout === clearTimeout) {
  150. //normal enviroments in sane situations
  151. return clearTimeout(marker);
  152. }
  153. // if clearTimeout wasn't available but was latter defined
  154. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  155. cachedClearTimeout = clearTimeout;
  156. return clearTimeout(marker);
  157. }
  158. try {
  159. // when when somebody has screwed with setTimeout but no I.E. maddness
  160. return cachedClearTimeout(marker);
  161. } catch (e){
  162. try {
  163. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  164. return cachedClearTimeout.call(null, marker);
  165. } catch (e){
  166. // 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.
  167. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  168. return cachedClearTimeout.call(this, marker);
  169. }
  170. }
  171. }
  172. var queue = [];
  173. var draining = false;
  174. var currentQueue;
  175. var queueIndex = -1;
  176. function cleanUpNextTick() {
  177. if (!draining || !currentQueue) {
  178. return;
  179. }
  180. draining = false;
  181. if (currentQueue.length) {
  182. queue = currentQueue.concat(queue);
  183. } else {
  184. queueIndex = -1;
  185. }
  186. if (queue.length) {
  187. drainQueue();
  188. }
  189. }
  190. function drainQueue() {
  191. if (draining) {
  192. return;
  193. }
  194. var timeout = runTimeout(cleanUpNextTick);
  195. draining = true;
  196. var len = queue.length;
  197. while(len) {
  198. currentQueue = queue;
  199. queue = [];
  200. while (++queueIndex < len) {
  201. if (currentQueue) {
  202. currentQueue[queueIndex].run();
  203. }
  204. }
  205. queueIndex = -1;
  206. len = queue.length;
  207. }
  208. currentQueue = null;
  209. draining = false;
  210. runClearTimeout(timeout);
  211. }
  212. process.nextTick = function (fun) {
  213. var args = new Array(arguments.length - 1);
  214. if (arguments.length > 1) {
  215. for (var i = 1; i < arguments.length; i++) {
  216. args[i - 1] = arguments[i];
  217. }
  218. }
  219. queue.push(new Item(fun, args));
  220. if (queue.length === 1 && !draining) {
  221. runTimeout(drainQueue);
  222. }
  223. };
  224. // v8 likes predictible objects
  225. function Item(fun, array) {
  226. this.fun = fun;
  227. this.array = array;
  228. }
  229. Item.prototype.run = function () {
  230. this.fun.apply(null, this.array);
  231. };
  232. process.title = 'browser';
  233. process.browser = true;
  234. process.env = {};
  235. process.argv = [];
  236. process.version = ''; // empty string to avoid regexp issues
  237. process.versions = {};
  238. function noop() {}
  239. process.on = noop;
  240. process.addListener = noop;
  241. process.once = noop;
  242. process.off = noop;
  243. process.removeListener = noop;
  244. process.removeAllListeners = noop;
  245. process.emit = noop;
  246. process.prependListener = noop;
  247. process.prependOnceListener = noop;
  248. process.listeners = function (name) { return [] }
  249. process.binding = function (name) {
  250. throw new Error('process.binding is not supported');
  251. };
  252. process.cwd = function () { return '/' };
  253. process.chdir = function (dir) {
  254. throw new Error('process.chdir is not supported');
  255. };
  256. process.umask = function() { return 0; };
  257. /***/ }),
  258. /***/ "WyMB":
  259. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  260. "use strict";
  261. __webpack_require__.r(__webpack_exports__);
  262. /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return warning; });
  263. function isDev() {
  264. return typeof process !== 'undefined' && process.env && "production" !== 'production';
  265. }
  266. /**
  267. * Shows a warning with `message` if environment is not `production`.
  268. *
  269. * @param {string} message Message to show in the warning.
  270. *
  271. * @example
  272. * ```js
  273. * import warning from '@wordpress/warning';
  274. *
  275. * function MyComponent( props ) {
  276. * if ( ! props.title ) {
  277. * warning( '`props.title` was not passed' );
  278. * }
  279. * ...
  280. * }
  281. * ```
  282. */
  283. function warning(message) {
  284. if (!isDev()) {
  285. return;
  286. } // eslint-disable-next-line no-console
  287. console.warn(message); // Throwing an error and catching it immediately to improve debugging
  288. // A consumer can use 'pause on caught exceptions'
  289. // https://github.com/facebook/react/issues/4216
  290. try {
  291. throw Error(message);
  292. } catch (x) {// do nothing
  293. }
  294. }
  295. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("8oxB")))
  296. /***/ })
  297. /******/ })["default"];