notices.js 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375
  1. this["wp"] = this["wp"] || {}; this["wp"]["notices"] =
  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 = 356);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 10:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
  93. function _defineProperty(obj, key, value) {
  94. if (key in obj) {
  95. Object.defineProperty(obj, key, {
  96. value: value,
  97. enumerable: true,
  98. configurable: true,
  99. writable: true
  100. });
  101. } else {
  102. obj[key] = value;
  103. }
  104. return obj;
  105. }
  106. /***/ }),
  107. /***/ 17:
  108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  109. "use strict";
  110. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
  111. function _arrayWithoutHoles(arr) {
  112. if (Array.isArray(arr)) {
  113. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
  114. arr2[i] = arr[i];
  115. }
  116. return arr2;
  117. }
  118. }
  119. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
  120. var iterableToArray = __webpack_require__(30);
  121. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
  122. function _nonIterableSpread() {
  123. throw new TypeError("Invalid attempt to spread non-iterable instance");
  124. }
  125. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
  126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
  127. function _toConsumableArray(arr) {
  128. return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
  129. }
  130. /***/ }),
  131. /***/ 2:
  132. /***/ (function(module, exports) {
  133. (function() { module.exports = this["lodash"]; }());
  134. /***/ }),
  135. /***/ 20:
  136. /***/ (function(module, exports, __webpack_require__) {
  137. module.exports = __webpack_require__(47);
  138. /***/ }),
  139. /***/ 30:
  140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  141. "use strict";
  142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
  143. function _iterableToArray(iter) {
  144. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  145. }
  146. /***/ }),
  147. /***/ 356:
  148. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  149. "use strict";
  150. __webpack_require__.r(__webpack_exports__);
  151. var actions_namespaceObject = {};
  152. __webpack_require__.r(actions_namespaceObject);
  153. __webpack_require__.d(actions_namespaceObject, "createNotice", function() { return createNotice; });
  154. __webpack_require__.d(actions_namespaceObject, "createSuccessNotice", function() { return createSuccessNotice; });
  155. __webpack_require__.d(actions_namespaceObject, "createInfoNotice", function() { return createInfoNotice; });
  156. __webpack_require__.d(actions_namespaceObject, "createErrorNotice", function() { return createErrorNotice; });
  157. __webpack_require__.d(actions_namespaceObject, "createWarningNotice", function() { return createWarningNotice; });
  158. __webpack_require__.d(actions_namespaceObject, "removeNotice", function() { return removeNotice; });
  159. var selectors_namespaceObject = {};
  160. __webpack_require__.r(selectors_namespaceObject);
  161. __webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; });
  162. // EXTERNAL MODULE: external {"this":["wp","data"]}
  163. var external_this_wp_data_ = __webpack_require__(4);
  164. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
  165. var toConsumableArray = __webpack_require__(17);
  166. // EXTERNAL MODULE: external "lodash"
  167. var external_lodash_ = __webpack_require__(2);
  168. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
  169. var defineProperty = __webpack_require__(10);
  170. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
  171. var objectSpread = __webpack_require__(7);
  172. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
  173. /**
  174. * Higher-order reducer creator which creates a combined reducer object, keyed
  175. * by a property on the action object.
  176. *
  177. * @param {string} actionProperty Action property by which to key object.
  178. *
  179. * @return {Function} Higher-order reducer.
  180. */
  181. var on_sub_key_onSubKey = function onSubKey(actionProperty) {
  182. return function (reducer) {
  183. return function () {
  184. var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  185. var action = arguments.length > 1 ? arguments[1] : undefined;
  186. // Retrieve subkey from action. Do not track if undefined; useful for cases
  187. // where reducer is scoped by action shape.
  188. var key = action[actionProperty];
  189. if (key === undefined) {
  190. return state;
  191. } // Avoid updating state if unchanged. Note that this also accounts for a
  192. // reducer which returns undefined on a key which is not yet tracked.
  193. var nextKeyState = reducer(state[key], action);
  194. if (nextKeyState === state[key]) {
  195. return state;
  196. }
  197. return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, key, nextKeyState));
  198. };
  199. };
  200. };
  201. /* harmony default export */ var on_sub_key = (on_sub_key_onSubKey);
  202. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js
  203. /**
  204. * External dependencies
  205. */
  206. /**
  207. * Internal dependencies
  208. */
  209. /**
  210. * Reducer returning the next notices state. The notices state is an object
  211. * where each key is a context, its value an array of notice objects.
  212. *
  213. * @param {Object} state Current state.
  214. * @param {Object} action Dispatched action.
  215. *
  216. * @return {Object} Updated state.
  217. */
  218. var notices = on_sub_key('context')(function () {
  219. var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  220. var action = arguments.length > 1 ? arguments[1] : undefined;
  221. switch (action.type) {
  222. case 'CREATE_NOTICE':
  223. // Avoid duplicates on ID.
  224. return [].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["reject"])(state, {
  225. id: action.notice.id
  226. })), [action.notice]);
  227. case 'REMOVE_NOTICE':
  228. return Object(external_lodash_["reject"])(state, {
  229. id: action.id
  230. });
  231. }
  232. return state;
  233. });
  234. /* harmony default export */ var store_reducer = (notices);
  235. // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
  236. var regenerator = __webpack_require__(20);
  237. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  238. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js
  239. /**
  240. * Default context to use for notice grouping when not otherwise specified. Its
  241. * specific value doesn't hold much meaning, but it must be reasonably unique
  242. * and, more importantly, referenced consistently in the store implementation.
  243. *
  244. * @type {string}
  245. */
  246. var DEFAULT_CONTEXT = 'global';
  247. /**
  248. * Default notice status.
  249. *
  250. * @type {string}
  251. */
  252. var DEFAULT_STATUS = 'info';
  253. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js
  254. var _marked =
  255. /*#__PURE__*/
  256. regenerator_default.a.mark(createNotice);
  257. /**
  258. * External dependencies
  259. */
  260. /**
  261. * Internal dependencies
  262. */
  263. /**
  264. * Yields action objects used in signalling that a notice is to be created.
  265. *
  266. * @param {string} [status='info'] Notice status.
  267. * @param {string} content Notice message.
  268. * @param {Object} [options] Notice options.
  269. * @param {string} [options.context='global'] Context under which to
  270. * group notice.
  271. * @param {string} [options.id] Identifier for notice.
  272. * Automatically assigned
  273. * if not specified.
  274. * @param {boolean} [options.isDismissible=true] Whether the notice can
  275. * be dismissed by user.
  276. * @param {string} [options.type='default'] Type of notice, one of
  277. * `default`, or `snackbar`.
  278. * @param {boolean} [options.speak=true] Whether the notice
  279. * content should be
  280. * announced to screen
  281. * readers.
  282. * @param {Array<WPNoticeAction>} [options.actions] User actions to be
  283. * presented with notice.
  284. */
  285. function createNotice() {
  286. var status,
  287. content,
  288. options,
  289. _options$speak,
  290. speak,
  291. _options$isDismissibl,
  292. isDismissible,
  293. _options$context,
  294. context,
  295. _options$id,
  296. id,
  297. _options$actions,
  298. actions,
  299. _options$type,
  300. type,
  301. __unstableHTML,
  302. _args = arguments;
  303. return regenerator_default.a.wrap(function createNotice$(_context) {
  304. while (1) {
  305. switch (_context.prev = _context.next) {
  306. case 0:
  307. status = _args.length > 0 && _args[0] !== undefined ? _args[0] : DEFAULT_STATUS;
  308. content = _args.length > 1 ? _args[1] : undefined;
  309. options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
  310. _options$speak = options.speak, speak = _options$speak === void 0 ? true : _options$speak, _options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? Object(external_lodash_["uniqueId"])(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions, _options$type = options.type, type = _options$type === void 0 ? 'default' : _options$type, __unstableHTML = options.__unstableHTML; // The supported value shape of content is currently limited to plain text
  311. // strings. To avoid setting expectation that e.g. a WPElement could be
  312. // supported, cast to a string.
  313. content = String(content);
  314. if (!speak) {
  315. _context.next = 8;
  316. break;
  317. }
  318. _context.next = 8;
  319. return {
  320. type: 'SPEAK',
  321. message: content,
  322. ariaLive: type === 'snackbar' ? 'polite' : 'assertive'
  323. };
  324. case 8:
  325. _context.next = 10;
  326. return {
  327. type: 'CREATE_NOTICE',
  328. context: context,
  329. notice: {
  330. id: id,
  331. status: status,
  332. content: content,
  333. __unstableHTML: __unstableHTML,
  334. isDismissible: isDismissible,
  335. actions: actions,
  336. type: type
  337. }
  338. };
  339. case 10:
  340. case "end":
  341. return _context.stop();
  342. }
  343. }
  344. }, _marked);
  345. }
  346. /**
  347. * Returns an action object used in signalling that a success notice is to be
  348. * created. Refer to `createNotice` for options documentation.
  349. *
  350. * @see createNotice
  351. *
  352. * @param {string} content Notice message.
  353. * @param {Object} [options] Optional notice options.
  354. *
  355. * @return {Object} Action object.
  356. */
  357. function createSuccessNotice(content, options) {
  358. return createNotice('success', content, options);
  359. }
  360. /**
  361. * Returns an action object used in signalling that an info notice is to be
  362. * created. Refer to `createNotice` for options documentation.
  363. *
  364. * @see createNotice
  365. *
  366. * @param {string} content Notice message.
  367. * @param {Object} [options] Optional notice options.
  368. *
  369. * @return {Object} Action object.
  370. */
  371. function createInfoNotice(content, options) {
  372. return createNotice('info', content, options);
  373. }
  374. /**
  375. * Returns an action object used in signalling that an error notice is to be
  376. * created. Refer to `createNotice` for options documentation.
  377. *
  378. * @see createNotice
  379. *
  380. * @param {string} content Notice message.
  381. * @param {Object} [options] Optional notice options.
  382. *
  383. * @return {Object} Action object.
  384. */
  385. function createErrorNotice(content, options) {
  386. return createNotice('error', content, options);
  387. }
  388. /**
  389. * Returns an action object used in signalling that a warning notice is to be
  390. * created. Refer to `createNotice` for options documentation.
  391. *
  392. * @see createNotice
  393. *
  394. * @param {string} content Notice message.
  395. * @param {Object} [options] Optional notice options.
  396. *
  397. * @return {Object} Action object.
  398. */
  399. function createWarningNotice(content, options) {
  400. return createNotice('warning', content, options);
  401. }
  402. /**
  403. * Returns an action object used in signalling that a notice is to be removed.
  404. *
  405. * @param {string} id Notice unique identifier.
  406. * @param {string} [context='global'] Optional context (grouping) in which the notice is
  407. * intended to appear. Defaults to default context.
  408. *
  409. * @return {Object} Action object.
  410. */
  411. function removeNotice(id) {
  412. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
  413. return {
  414. type: 'REMOVE_NOTICE',
  415. id: id,
  416. context: context
  417. };
  418. }
  419. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js
  420. /**
  421. * Internal dependencies
  422. */
  423. /**
  424. * The default empty set of notices to return when there are no notices
  425. * assigned for a given notices context. This can occur if the getNotices
  426. * selector is called without a notice ever having been created for the
  427. * context. A shared value is used to ensure referential equality between
  428. * sequential selector calls, since otherwise `[] !== []`.
  429. *
  430. * @type {Array}
  431. */
  432. var DEFAULT_NOTICES = [];
  433. /**
  434. * @typedef {Object} WPNotice Notice object.
  435. *
  436. * @property {string} id Unique identifier of notice.
  437. * @property {string} status Status of notice, one of `success`,
  438. * `info`, `error`, or `warning`. Defaults
  439. * to `info`.
  440. * @property {string} content Notice message.
  441. * @property {string} __unstableHTML Notice message as raw HTML. Intended to
  442. * serve primarily for compatibility of
  443. * server-rendered notices, and SHOULD NOT
  444. * be used for notices. It is subject to
  445. * removal without notice.
  446. * @property {boolean} isDismissible Whether the notice can be dismissed by
  447. * user. Defaults to `true`.
  448. * @property {string} type Type of notice, one of `default`,
  449. * or `snackbar`. Defaults to `default`.
  450. * @property {boolean} speak Whether the notice content should be
  451. * announced to screen readers. Defaults to
  452. * `true`.
  453. * @property {WPNoticeAction[]} actions User actions to present with notice.
  454. *
  455. */
  456. /**
  457. * @typedef {Object} WPNoticeAction Object describing a user action option associated with a notice.
  458. *
  459. * @property {string} label Message to use as action label.
  460. * @property {?string} url Optional URL of resource if action incurs
  461. * browser navigation.
  462. * @property {?Function} onClick Optional function to invoke when action is
  463. * triggered by user.
  464. *
  465. */
  466. /**
  467. * Returns all notices as an array, optionally for a given context. Defaults to
  468. * the global context.
  469. *
  470. * @param {Object} state Notices state.
  471. * @param {?string} context Optional grouping context.
  472. *
  473. * @return {WPNotice[]} Array of notices.
  474. */
  475. function getNotices(state) {
  476. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
  477. return state[context] || DEFAULT_NOTICES;
  478. }
  479. // EXTERNAL MODULE: external {"this":["wp","a11y"]}
  480. var external_this_wp_a11y_ = __webpack_require__(45);
  481. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/controls.js
  482. /**
  483. * WordPress dependencies
  484. */
  485. /* harmony default export */ var controls = ({
  486. SPEAK: function SPEAK(action) {
  487. Object(external_this_wp_a11y_["speak"])(action.message, action.ariaLive || 'assertive');
  488. }
  489. });
  490. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js
  491. /**
  492. * WordPress dependencies
  493. */
  494. /**
  495. * Internal dependencies
  496. */
  497. /* harmony default export */ var store = (Object(external_this_wp_data_["registerStore"])('core/notices', {
  498. reducer: store_reducer,
  499. actions: actions_namespaceObject,
  500. selectors: selectors_namespaceObject,
  501. controls: controls
  502. }));
  503. // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js
  504. /**
  505. * Internal dependencies
  506. */
  507. /***/ }),
  508. /***/ 4:
  509. /***/ (function(module, exports) {
  510. (function() { module.exports = this["wp"]["data"]; }());
  511. /***/ }),
  512. /***/ 45:
  513. /***/ (function(module, exports) {
  514. (function() { module.exports = this["wp"]["a11y"]; }());
  515. /***/ }),
  516. /***/ 47:
  517. /***/ (function(module, exports, __webpack_require__) {
  518. /**
  519. * Copyright (c) 2014-present, Facebook, Inc.
  520. *
  521. * This source code is licensed under the MIT license found in the
  522. * LICENSE file in the root directory of this source tree.
  523. */
  524. var runtime = (function (exports) {
  525. "use strict";
  526. var Op = Object.prototype;
  527. var hasOwn = Op.hasOwnProperty;
  528. var undefined; // More compressible than void 0.
  529. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  530. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  531. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  532. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  533. function wrap(innerFn, outerFn, self, tryLocsList) {
  534. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  535. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  536. var generator = Object.create(protoGenerator.prototype);
  537. var context = new Context(tryLocsList || []);
  538. // The ._invoke method unifies the implementations of the .next,
  539. // .throw, and .return methods.
  540. generator._invoke = makeInvokeMethod(innerFn, self, context);
  541. return generator;
  542. }
  543. exports.wrap = wrap;
  544. // Try/catch helper to minimize deoptimizations. Returns a completion
  545. // record like context.tryEntries[i].completion. This interface could
  546. // have been (and was previously) designed to take a closure to be
  547. // invoked without arguments, but in all the cases we care about we
  548. // already have an existing method we want to call, so there's no need
  549. // to create a new function object. We can even get away with assuming
  550. // the method takes exactly one argument, since that happens to be true
  551. // in every case, so we don't have to touch the arguments object. The
  552. // only additional allocation required is the completion record, which
  553. // has a stable shape and so hopefully should be cheap to allocate.
  554. function tryCatch(fn, obj, arg) {
  555. try {
  556. return { type: "normal", arg: fn.call(obj, arg) };
  557. } catch (err) {
  558. return { type: "throw", arg: err };
  559. }
  560. }
  561. var GenStateSuspendedStart = "suspendedStart";
  562. var GenStateSuspendedYield = "suspendedYield";
  563. var GenStateExecuting = "executing";
  564. var GenStateCompleted = "completed";
  565. // Returning this object from the innerFn has the same effect as
  566. // breaking out of the dispatch switch statement.
  567. var ContinueSentinel = {};
  568. // Dummy constructor functions that we use as the .constructor and
  569. // .constructor.prototype properties for functions that return Generator
  570. // objects. For full spec compliance, you may wish to configure your
  571. // minifier not to mangle the names of these two functions.
  572. function Generator() {}
  573. function GeneratorFunction() {}
  574. function GeneratorFunctionPrototype() {}
  575. // This is a polyfill for %IteratorPrototype% for environments that
  576. // don't natively support it.
  577. var IteratorPrototype = {};
  578. IteratorPrototype[iteratorSymbol] = function () {
  579. return this;
  580. };
  581. var getProto = Object.getPrototypeOf;
  582. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  583. if (NativeIteratorPrototype &&
  584. NativeIteratorPrototype !== Op &&
  585. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  586. // This environment has a native %IteratorPrototype%; use it instead
  587. // of the polyfill.
  588. IteratorPrototype = NativeIteratorPrototype;
  589. }
  590. var Gp = GeneratorFunctionPrototype.prototype =
  591. Generator.prototype = Object.create(IteratorPrototype);
  592. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  593. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  594. GeneratorFunctionPrototype[toStringTagSymbol] =
  595. GeneratorFunction.displayName = "GeneratorFunction";
  596. // Helper for defining the .next, .throw, and .return methods of the
  597. // Iterator interface in terms of a single ._invoke method.
  598. function defineIteratorMethods(prototype) {
  599. ["next", "throw", "return"].forEach(function(method) {
  600. prototype[method] = function(arg) {
  601. return this._invoke(method, arg);
  602. };
  603. });
  604. }
  605. exports.isGeneratorFunction = function(genFun) {
  606. var ctor = typeof genFun === "function" && genFun.constructor;
  607. return ctor
  608. ? ctor === GeneratorFunction ||
  609. // For the native GeneratorFunction constructor, the best we can
  610. // do is to check its .name property.
  611. (ctor.displayName || ctor.name) === "GeneratorFunction"
  612. : false;
  613. };
  614. exports.mark = function(genFun) {
  615. if (Object.setPrototypeOf) {
  616. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  617. } else {
  618. genFun.__proto__ = GeneratorFunctionPrototype;
  619. if (!(toStringTagSymbol in genFun)) {
  620. genFun[toStringTagSymbol] = "GeneratorFunction";
  621. }
  622. }
  623. genFun.prototype = Object.create(Gp);
  624. return genFun;
  625. };
  626. // Within the body of any async function, `await x` is transformed to
  627. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  628. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  629. // meant to be awaited.
  630. exports.awrap = function(arg) {
  631. return { __await: arg };
  632. };
  633. function AsyncIterator(generator) {
  634. function invoke(method, arg, resolve, reject) {
  635. var record = tryCatch(generator[method], generator, arg);
  636. if (record.type === "throw") {
  637. reject(record.arg);
  638. } else {
  639. var result = record.arg;
  640. var value = result.value;
  641. if (value &&
  642. typeof value === "object" &&
  643. hasOwn.call(value, "__await")) {
  644. return Promise.resolve(value.__await).then(function(value) {
  645. invoke("next", value, resolve, reject);
  646. }, function(err) {
  647. invoke("throw", err, resolve, reject);
  648. });
  649. }
  650. return Promise.resolve(value).then(function(unwrapped) {
  651. // When a yielded Promise is resolved, its final value becomes
  652. // the .value of the Promise<{value,done}> result for the
  653. // current iteration.
  654. result.value = unwrapped;
  655. resolve(result);
  656. }, function(error) {
  657. // If a rejected Promise was yielded, throw the rejection back
  658. // into the async generator function so it can be handled there.
  659. return invoke("throw", error, resolve, reject);
  660. });
  661. }
  662. }
  663. var previousPromise;
  664. function enqueue(method, arg) {
  665. function callInvokeWithMethodAndArg() {
  666. return new Promise(function(resolve, reject) {
  667. invoke(method, arg, resolve, reject);
  668. });
  669. }
  670. return previousPromise =
  671. // If enqueue has been called before, then we want to wait until
  672. // all previous Promises have been resolved before calling invoke,
  673. // so that results are always delivered in the correct order. If
  674. // enqueue has not been called before, then it is important to
  675. // call invoke immediately, without waiting on a callback to fire,
  676. // so that the async generator function has the opportunity to do
  677. // any necessary setup in a predictable way. This predictability
  678. // is why the Promise constructor synchronously invokes its
  679. // executor callback, and why async functions synchronously
  680. // execute code before the first await. Since we implement simple
  681. // async functions in terms of async generators, it is especially
  682. // important to get this right, even though it requires care.
  683. previousPromise ? previousPromise.then(
  684. callInvokeWithMethodAndArg,
  685. // Avoid propagating failures to Promises returned by later
  686. // invocations of the iterator.
  687. callInvokeWithMethodAndArg
  688. ) : callInvokeWithMethodAndArg();
  689. }
  690. // Define the unified helper method that is used to implement .next,
  691. // .throw, and .return (see defineIteratorMethods).
  692. this._invoke = enqueue;
  693. }
  694. defineIteratorMethods(AsyncIterator.prototype);
  695. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  696. return this;
  697. };
  698. exports.AsyncIterator = AsyncIterator;
  699. // Note that simple async functions are implemented on top of
  700. // AsyncIterator objects; they just return a Promise for the value of
  701. // the final result produced by the iterator.
  702. exports.async = function(innerFn, outerFn, self, tryLocsList) {
  703. var iter = new AsyncIterator(
  704. wrap(innerFn, outerFn, self, tryLocsList)
  705. );
  706. return exports.isGeneratorFunction(outerFn)
  707. ? iter // If outerFn is a generator, return the full iterator.
  708. : iter.next().then(function(result) {
  709. return result.done ? result.value : iter.next();
  710. });
  711. };
  712. function makeInvokeMethod(innerFn, self, context) {
  713. var state = GenStateSuspendedStart;
  714. return function invoke(method, arg) {
  715. if (state === GenStateExecuting) {
  716. throw new Error("Generator is already running");
  717. }
  718. if (state === GenStateCompleted) {
  719. if (method === "throw") {
  720. throw arg;
  721. }
  722. // Be forgiving, per 25.3.3.3.3 of the spec:
  723. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  724. return doneResult();
  725. }
  726. context.method = method;
  727. context.arg = arg;
  728. while (true) {
  729. var delegate = context.delegate;
  730. if (delegate) {
  731. var delegateResult = maybeInvokeDelegate(delegate, context);
  732. if (delegateResult) {
  733. if (delegateResult === ContinueSentinel) continue;
  734. return delegateResult;
  735. }
  736. }
  737. if (context.method === "next") {
  738. // Setting context._sent for legacy support of Babel's
  739. // function.sent implementation.
  740. context.sent = context._sent = context.arg;
  741. } else if (context.method === "throw") {
  742. if (state === GenStateSuspendedStart) {
  743. state = GenStateCompleted;
  744. throw context.arg;
  745. }
  746. context.dispatchException(context.arg);
  747. } else if (context.method === "return") {
  748. context.abrupt("return", context.arg);
  749. }
  750. state = GenStateExecuting;
  751. var record = tryCatch(innerFn, self, context);
  752. if (record.type === "normal") {
  753. // If an exception is thrown from innerFn, we leave state ===
  754. // GenStateExecuting and loop back for another invocation.
  755. state = context.done
  756. ? GenStateCompleted
  757. : GenStateSuspendedYield;
  758. if (record.arg === ContinueSentinel) {
  759. continue;
  760. }
  761. return {
  762. value: record.arg,
  763. done: context.done
  764. };
  765. } else if (record.type === "throw") {
  766. state = GenStateCompleted;
  767. // Dispatch the exception by looping back around to the
  768. // context.dispatchException(context.arg) call above.
  769. context.method = "throw";
  770. context.arg = record.arg;
  771. }
  772. }
  773. };
  774. }
  775. // Call delegate.iterator[context.method](context.arg) and handle the
  776. // result, either by returning a { value, done } result from the
  777. // delegate iterator, or by modifying context.method and context.arg,
  778. // setting context.delegate to null, and returning the ContinueSentinel.
  779. function maybeInvokeDelegate(delegate, context) {
  780. var method = delegate.iterator[context.method];
  781. if (method === undefined) {
  782. // A .throw or .return when the delegate iterator has no .throw
  783. // method always terminates the yield* loop.
  784. context.delegate = null;
  785. if (context.method === "throw") {
  786. // Note: ["return"] must be used for ES3 parsing compatibility.
  787. if (delegate.iterator["return"]) {
  788. // If the delegate iterator has a return method, give it a
  789. // chance to clean up.
  790. context.method = "return";
  791. context.arg = undefined;
  792. maybeInvokeDelegate(delegate, context);
  793. if (context.method === "throw") {
  794. // If maybeInvokeDelegate(context) changed context.method from
  795. // "return" to "throw", let that override the TypeError below.
  796. return ContinueSentinel;
  797. }
  798. }
  799. context.method = "throw";
  800. context.arg = new TypeError(
  801. "The iterator does not provide a 'throw' method");
  802. }
  803. return ContinueSentinel;
  804. }
  805. var record = tryCatch(method, delegate.iterator, context.arg);
  806. if (record.type === "throw") {
  807. context.method = "throw";
  808. context.arg = record.arg;
  809. context.delegate = null;
  810. return ContinueSentinel;
  811. }
  812. var info = record.arg;
  813. if (! info) {
  814. context.method = "throw";
  815. context.arg = new TypeError("iterator result is not an object");
  816. context.delegate = null;
  817. return ContinueSentinel;
  818. }
  819. if (info.done) {
  820. // Assign the result of the finished delegate to the temporary
  821. // variable specified by delegate.resultName (see delegateYield).
  822. context[delegate.resultName] = info.value;
  823. // Resume execution at the desired location (see delegateYield).
  824. context.next = delegate.nextLoc;
  825. // If context.method was "throw" but the delegate handled the
  826. // exception, let the outer generator proceed normally. If
  827. // context.method was "next", forget context.arg since it has been
  828. // "consumed" by the delegate iterator. If context.method was
  829. // "return", allow the original .return call to continue in the
  830. // outer generator.
  831. if (context.method !== "return") {
  832. context.method = "next";
  833. context.arg = undefined;
  834. }
  835. } else {
  836. // Re-yield the result returned by the delegate method.
  837. return info;
  838. }
  839. // The delegate iterator is finished, so forget it and continue with
  840. // the outer generator.
  841. context.delegate = null;
  842. return ContinueSentinel;
  843. }
  844. // Define Generator.prototype.{next,throw,return} in terms of the
  845. // unified ._invoke helper method.
  846. defineIteratorMethods(Gp);
  847. Gp[toStringTagSymbol] = "Generator";
  848. // A Generator should always return itself as the iterator object when the
  849. // @@iterator function is called on it. Some browsers' implementations of the
  850. // iterator prototype chain incorrectly implement this, causing the Generator
  851. // object to not be returned from this call. This ensures that doesn't happen.
  852. // See https://github.com/facebook/regenerator/issues/274 for more details.
  853. Gp[iteratorSymbol] = function() {
  854. return this;
  855. };
  856. Gp.toString = function() {
  857. return "[object Generator]";
  858. };
  859. function pushTryEntry(locs) {
  860. var entry = { tryLoc: locs[0] };
  861. if (1 in locs) {
  862. entry.catchLoc = locs[1];
  863. }
  864. if (2 in locs) {
  865. entry.finallyLoc = locs[2];
  866. entry.afterLoc = locs[3];
  867. }
  868. this.tryEntries.push(entry);
  869. }
  870. function resetTryEntry(entry) {
  871. var record = entry.completion || {};
  872. record.type = "normal";
  873. delete record.arg;
  874. entry.completion = record;
  875. }
  876. function Context(tryLocsList) {
  877. // The root entry object (effectively a try statement without a catch
  878. // or a finally block) gives us a place to store values thrown from
  879. // locations where there is no enclosing try statement.
  880. this.tryEntries = [{ tryLoc: "root" }];
  881. tryLocsList.forEach(pushTryEntry, this);
  882. this.reset(true);
  883. }
  884. exports.keys = function(object) {
  885. var keys = [];
  886. for (var key in object) {
  887. keys.push(key);
  888. }
  889. keys.reverse();
  890. // Rather than returning an object with a next method, we keep
  891. // things simple and return the next function itself.
  892. return function next() {
  893. while (keys.length) {
  894. var key = keys.pop();
  895. if (key in object) {
  896. next.value = key;
  897. next.done = false;
  898. return next;
  899. }
  900. }
  901. // To avoid creating an additional object, we just hang the .value
  902. // and .done properties off the next function object itself. This
  903. // also ensures that the minifier will not anonymize the function.
  904. next.done = true;
  905. return next;
  906. };
  907. };
  908. function values(iterable) {
  909. if (iterable) {
  910. var iteratorMethod = iterable[iteratorSymbol];
  911. if (iteratorMethod) {
  912. return iteratorMethod.call(iterable);
  913. }
  914. if (typeof iterable.next === "function") {
  915. return iterable;
  916. }
  917. if (!isNaN(iterable.length)) {
  918. var i = -1, next = function next() {
  919. while (++i < iterable.length) {
  920. if (hasOwn.call(iterable, i)) {
  921. next.value = iterable[i];
  922. next.done = false;
  923. return next;
  924. }
  925. }
  926. next.value = undefined;
  927. next.done = true;
  928. return next;
  929. };
  930. return next.next = next;
  931. }
  932. }
  933. // Return an iterator with no values.
  934. return { next: doneResult };
  935. }
  936. exports.values = values;
  937. function doneResult() {
  938. return { value: undefined, done: true };
  939. }
  940. Context.prototype = {
  941. constructor: Context,
  942. reset: function(skipTempReset) {
  943. this.prev = 0;
  944. this.next = 0;
  945. // Resetting context._sent for legacy support of Babel's
  946. // function.sent implementation.
  947. this.sent = this._sent = undefined;
  948. this.done = false;
  949. this.delegate = null;
  950. this.method = "next";
  951. this.arg = undefined;
  952. this.tryEntries.forEach(resetTryEntry);
  953. if (!skipTempReset) {
  954. for (var name in this) {
  955. // Not sure about the optimal order of these conditions:
  956. if (name.charAt(0) === "t" &&
  957. hasOwn.call(this, name) &&
  958. !isNaN(+name.slice(1))) {
  959. this[name] = undefined;
  960. }
  961. }
  962. }
  963. },
  964. stop: function() {
  965. this.done = true;
  966. var rootEntry = this.tryEntries[0];
  967. var rootRecord = rootEntry.completion;
  968. if (rootRecord.type === "throw") {
  969. throw rootRecord.arg;
  970. }
  971. return this.rval;
  972. },
  973. dispatchException: function(exception) {
  974. if (this.done) {
  975. throw exception;
  976. }
  977. var context = this;
  978. function handle(loc, caught) {
  979. record.type = "throw";
  980. record.arg = exception;
  981. context.next = loc;
  982. if (caught) {
  983. // If the dispatched exception was caught by a catch block,
  984. // then let that catch block handle the exception normally.
  985. context.method = "next";
  986. context.arg = undefined;
  987. }
  988. return !! caught;
  989. }
  990. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  991. var entry = this.tryEntries[i];
  992. var record = entry.completion;
  993. if (entry.tryLoc === "root") {
  994. // Exception thrown outside of any try block that could handle
  995. // it, so set the completion value of the entire function to
  996. // throw the exception.
  997. return handle("end");
  998. }
  999. if (entry.tryLoc <= this.prev) {
  1000. var hasCatch = hasOwn.call(entry, "catchLoc");
  1001. var hasFinally = hasOwn.call(entry, "finallyLoc");
  1002. if (hasCatch && hasFinally) {
  1003. if (this.prev < entry.catchLoc) {
  1004. return handle(entry.catchLoc, true);
  1005. } else if (this.prev < entry.finallyLoc) {
  1006. return handle(entry.finallyLoc);
  1007. }
  1008. } else if (hasCatch) {
  1009. if (this.prev < entry.catchLoc) {
  1010. return handle(entry.catchLoc, true);
  1011. }
  1012. } else if (hasFinally) {
  1013. if (this.prev < entry.finallyLoc) {
  1014. return handle(entry.finallyLoc);
  1015. }
  1016. } else {
  1017. throw new Error("try statement without catch or finally");
  1018. }
  1019. }
  1020. }
  1021. },
  1022. abrupt: function(type, arg) {
  1023. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  1024. var entry = this.tryEntries[i];
  1025. if (entry.tryLoc <= this.prev &&
  1026. hasOwn.call(entry, "finallyLoc") &&
  1027. this.prev < entry.finallyLoc) {
  1028. var finallyEntry = entry;
  1029. break;
  1030. }
  1031. }
  1032. if (finallyEntry &&
  1033. (type === "break" ||
  1034. type === "continue") &&
  1035. finallyEntry.tryLoc <= arg &&
  1036. arg <= finallyEntry.finallyLoc) {
  1037. // Ignore the finally entry if control is not jumping to a
  1038. // location outside the try/catch block.
  1039. finallyEntry = null;
  1040. }
  1041. var record = finallyEntry ? finallyEntry.completion : {};
  1042. record.type = type;
  1043. record.arg = arg;
  1044. if (finallyEntry) {
  1045. this.method = "next";
  1046. this.next = finallyEntry.finallyLoc;
  1047. return ContinueSentinel;
  1048. }
  1049. return this.complete(record);
  1050. },
  1051. complete: function(record, afterLoc) {
  1052. if (record.type === "throw") {
  1053. throw record.arg;
  1054. }
  1055. if (record.type === "break" ||
  1056. record.type === "continue") {
  1057. this.next = record.arg;
  1058. } else if (record.type === "return") {
  1059. this.rval = this.arg = record.arg;
  1060. this.method = "return";
  1061. this.next = "end";
  1062. } else if (record.type === "normal" && afterLoc) {
  1063. this.next = afterLoc;
  1064. }
  1065. return ContinueSentinel;
  1066. },
  1067. finish: function(finallyLoc) {
  1068. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  1069. var entry = this.tryEntries[i];
  1070. if (entry.finallyLoc === finallyLoc) {
  1071. this.complete(entry.completion, entry.afterLoc);
  1072. resetTryEntry(entry);
  1073. return ContinueSentinel;
  1074. }
  1075. }
  1076. },
  1077. "catch": function(tryLoc) {
  1078. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  1079. var entry = this.tryEntries[i];
  1080. if (entry.tryLoc === tryLoc) {
  1081. var record = entry.completion;
  1082. if (record.type === "throw") {
  1083. var thrown = record.arg;
  1084. resetTryEntry(entry);
  1085. }
  1086. return thrown;
  1087. }
  1088. }
  1089. // The context.catch method must only be called with a location
  1090. // argument that corresponds to a known catch block.
  1091. throw new Error("illegal catch attempt");
  1092. },
  1093. delegateYield: function(iterable, resultName, nextLoc) {
  1094. this.delegate = {
  1095. iterator: values(iterable),
  1096. resultName: resultName,
  1097. nextLoc: nextLoc
  1098. };
  1099. if (this.method === "next") {
  1100. // Deliberately forget the last sent value so that we don't
  1101. // accidentally pass it on to the delegate.
  1102. this.arg = undefined;
  1103. }
  1104. return ContinueSentinel;
  1105. }
  1106. };
  1107. // Regardless of whether this script is executing as a CommonJS module
  1108. // or not, return the runtime object so that we can declare the variable
  1109. // regeneratorRuntime in the outer scope, which allows this module to be
  1110. // injected easily by `bin/regenerator --include-runtime script.js`.
  1111. return exports;
  1112. }(
  1113. // If this script is executing as a CommonJS module, use module.exports
  1114. // as the regeneratorRuntime namespace. Otherwise create a new empty
  1115. // object. Either way, the resulting object will be used to initialize
  1116. // the regeneratorRuntime variable at the top of this file.
  1117. true ? module.exports : undefined
  1118. ));
  1119. try {
  1120. regeneratorRuntime = runtime;
  1121. } catch (accidentalStrictMode) {
  1122. // This module should not be running in strict mode, so the above
  1123. // assignment should always work unless something is misconfigured. Just
  1124. // in case runtime.js accidentally runs in strict mode, we can escape
  1125. // strict mode using a global Function call. This could conceivably fail
  1126. // if a Content Security Policy forbids using Function, but in that case
  1127. // the proper solution is to fix the accidental strict mode problem. If
  1128. // you've misconfigured your bundler to force strict mode and applied a
  1129. // CSP to forbid Function, and you're not willing to fix either of those
  1130. // problems, please detail your unique predicament in a GitHub issue.
  1131. Function("r", "regeneratorRuntime = r")(runtime);
  1132. }
  1133. /***/ }),
  1134. /***/ 7:
  1135. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1136. "use strict";
  1137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; });
  1138. /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
  1139. function _objectSpread(target) {
  1140. for (var i = 1; i < arguments.length; i++) {
  1141. var source = arguments[i] != null ? arguments[i] : {};
  1142. var ownKeys = Object.keys(source);
  1143. if (typeof Object.getOwnPropertySymbols === 'function') {
  1144. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  1145. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  1146. }));
  1147. }
  1148. ownKeys.forEach(function (key) {
  1149. Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]);
  1150. });
  1151. }
  1152. return target;
  1153. }
  1154. /***/ })
  1155. /******/ });