[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-library.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] =
   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 = 449);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = window["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = window["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 10:
 105  /***/ (function(module, exports, __webpack_require__) {
 106  
 107  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 108    Copyright (c) 2018 Jed Watson.
 109    Licensed under the MIT License (MIT), see
 110    http://jedwatson.github.io/classnames
 111  */
 112  /* global define */
 113  
 114  (function () {
 115      'use strict';
 116  
 117      var hasOwn = {}.hasOwnProperty;
 118  
 119  	function classNames() {
 120          var classes = [];
 121  
 122          for (var i = 0; i < arguments.length; i++) {
 123              var arg = arguments[i];
 124              if (!arg) continue;
 125  
 126              var argType = typeof arg;
 127  
 128              if (argType === 'string' || argType === 'number') {
 129                  classes.push(arg);
 130              } else if (Array.isArray(arg)) {
 131                  if (arg.length) {
 132                      var inner = classNames.apply(null, arg);
 133                      if (inner) {
 134                          classes.push(inner);
 135                      }
 136                  }
 137              } else if (argType === 'object') {
 138                  if (arg.toString === Object.prototype.toString) {
 139                      for (var key in arg) {
 140                          if (hasOwn.call(arg, key) && arg[key]) {
 141                              classes.push(key);
 142                          }
 143                      }
 144                  } else {
 145                      classes.push(arg.toString());
 146                  }
 147              }
 148          }
 149  
 150          return classes.join(' ');
 151      }
 152  
 153      if ( true && module.exports) {
 154          classNames.default = classNames;
 155          module.exports = classNames;
 156      } else if (true) {
 157          // register as 'classnames', consistent with npm package name
 158          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 159              return classNames;
 160          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 161                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 162      } else {}
 163  }());
 164  
 165  
 166  /***/ }),
 167  
 168  /***/ 11:
 169  /***/ (function(module, exports) {
 170  
 171  (function() { module.exports = window["wp"]["compose"]; }());
 172  
 173  /***/ }),
 174  
 175  /***/ 118:
 176  /***/ (function(module, exports) {
 177  
 178  (function() { module.exports = window["wp"]["viewport"]; }());
 179  
 180  /***/ }),
 181  
 182  /***/ 119:
 183  /***/ (function(module, exports) {
 184  
 185  (function() { module.exports = window["wp"]["autop"]; }());
 186  
 187  /***/ }),
 188  
 189  /***/ 12:
 190  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 191  
 192  "use strict";
 193  
 194  // EXPORTS
 195  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
 196  
 197  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 198  var arrayWithHoles = __webpack_require__(38);
 199  
 200  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 201  function _iterableToArrayLimit(arr, i) {
 202    var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
 203  
 204    if (_i == null) return;
 205    var _arr = [];
 206    var _n = true;
 207    var _d = false;
 208  
 209    var _s, _e;
 210  
 211    try {
 212      for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
 213        _arr.push(_s.value);
 214  
 215        if (i && _arr.length === i) break;
 216      }
 217    } catch (err) {
 218      _d = true;
 219      _e = err;
 220    } finally {
 221      try {
 222        if (!_n && _i["return"] != null) _i["return"]();
 223      } finally {
 224        if (_d) throw _e;
 225      }
 226    }
 227  
 228    return _arr;
 229  }
 230  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 231  var unsupportedIterableToArray = __webpack_require__(28);
 232  
 233  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 234  var nonIterableRest = __webpack_require__(39);
 235  
 236  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 237  
 238  
 239  
 240  
 241  function _slicedToArray(arr, i) {
 242    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
 243  }
 244  
 245  /***/ }),
 246  
 247  /***/ 121:
 248  /***/ (function(module, exports, __webpack_require__) {
 249  
 250  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 251    Copyright (c) 2018 Jed Watson.
 252    Licensed under the MIT License (MIT), see
 253    http://jedwatson.github.io/classnames
 254  */
 255  /* global define */
 256  
 257  (function () {
 258      'use strict';
 259  
 260      var classNames = (function () {
 261          // don't inherit from Object so we can skip hasOwnProperty check later
 262          // http://stackoverflow.com/questions/15518328/creating-js-object-with-object-createnull#answer-21079232
 263  		function StorageObject() {}
 264          StorageObject.prototype = Object.create(null);
 265  
 266  		function _parseArray (resultSet, array) {
 267              var length = array.length;
 268  
 269              for (var i = 0; i < length; ++i) {
 270                  _parse(resultSet, array[i]);
 271              }
 272          }
 273  
 274          var hasOwn = {}.hasOwnProperty;
 275  
 276  		function _parseNumber (resultSet, num) {
 277              resultSet[num] = true;
 278          }
 279  
 280  		function _parseObject (resultSet, object) {
 281              if (object.toString === Object.prototype.toString) {
 282                  for (var k in object) {
 283                      if (hasOwn.call(object, k)) {
 284                          // set value to false instead of deleting it to avoid changing object structure
 285                          // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions
 286                          resultSet[k] = !!object[k];
 287                      }
 288                  }
 289              } else {
 290                  resultSet[object.toString()] = true;
 291              }
 292          }
 293  
 294          var SPACE = /\s+/;
 295  		function _parseString (resultSet, str) {
 296              var array = str.split(SPACE);
 297              var length = array.length;
 298  
 299              for (var i = 0; i < length; ++i) {
 300                  resultSet[array[i]] = true;
 301              }
 302          }
 303  
 304  		function _parse (resultSet, arg) {
 305              if (!arg) return;
 306              var argType = typeof arg;
 307  
 308              // 'foo bar'
 309              if (argType === 'string') {
 310                  _parseString(resultSet, arg);
 311  
 312              // ['foo', 'bar', ...]
 313              } else if (Array.isArray(arg)) {
 314                  _parseArray(resultSet, arg);
 315  
 316              // { 'foo': true, ... }
 317              } else if (argType === 'object') {
 318                  _parseObject(resultSet, arg);
 319  
 320              // '130'
 321              } else if (argType === 'number') {
 322                  _parseNumber(resultSet, arg);
 323              }
 324          }
 325  
 326  		function _classNames () {
 327              // don't leak arguments
 328              // https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments
 329              var len = arguments.length;
 330              var args = Array(len);
 331              for (var i = 0; i < len; i++) {
 332                  args[i] = arguments[i];
 333              }
 334  
 335              var classSet = new StorageObject();
 336              _parseArray(classSet, args);
 337  
 338              var list = [];
 339  
 340              for (var k in classSet) {
 341                  if (classSet[k]) {
 342                      list.push(k)
 343                  }
 344              }
 345  
 346              return list.join(' ');
 347          }
 348  
 349          return _classNames;
 350      })();
 351  
 352      if ( true && module.exports) {
 353          classNames.default = classNames;
 354          module.exports = classNames;
 355      } else if (true) {
 356          // register as 'classnames', consistent with npm package name
 357          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 358              return classNames;
 359          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 360                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 361      } else {}
 362  }());
 363  
 364  
 365  /***/ }),
 366  
 367  /***/ 13:
 368  /***/ (function(module, exports) {
 369  
 370  (function() { module.exports = window["React"]; }());
 371  
 372  /***/ }),
 373  
 374  /***/ 133:
 375  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 376  
 377  "use strict";
 378  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
 379  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
 380  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
 381  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
 382  
 383  
 384  
 385  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 386  
 387  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 388  
 389  /**
 390   * WordPress dependencies
 391   */
 392  
 393  /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
 394  
 395  /**
 396   * Return an SVG icon.
 397   *
 398   * @param {IconProps} props icon is the SVG component to render
 399   *                          size is a number specifiying the icon size in pixels
 400   *                          Other props will be passed to wrapped SVG component
 401   *
 402   * @return {JSX.Element}  Icon component
 403   */
 404  
 405  function Icon(_ref) {
 406    var icon = _ref.icon,
 407        _ref$size = _ref.size,
 408        size = _ref$size === void 0 ? 24 : _ref$size,
 409        props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
 410  
 411    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
 412      width: size,
 413      height: size
 414    }, props));
 415  }
 416  
 417  /* harmony default export */ __webpack_exports__["a"] = (Icon);
 418  
 419  
 420  /***/ }),
 421  
 422  /***/ 14:
 423  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 424  
 425  "use strict";
 426  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
 427  /* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
 428  
 429  function _objectWithoutProperties(source, excluded) {
 430    if (source == null) return {};
 431    var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
 432    var key, i;
 433  
 434    if (Object.getOwnPropertySymbols) {
 435      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 436  
 437      for (i = 0; i < sourceSymbolKeys.length; i++) {
 438        key = sourceSymbolKeys[i];
 439        if (excluded.indexOf(key) >= 0) continue;
 440        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 441        target[key] = source[key];
 442      }
 443    }
 444  
 445    return target;
 446  }
 447  
 448  /***/ }),
 449  
 450  /***/ 149:
 451  /***/ (function(module, exports) {
 452  
 453  (function() { module.exports = window["wp"]["reusableBlocks"]; }());
 454  
 455  /***/ }),
 456  
 457  /***/ 15:
 458  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 459  
 460  "use strict";
 461  
 462  // EXPORTS
 463  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
 464  
 465  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
 466  var arrayLikeToArray = __webpack_require__(24);
 467  
 468  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
 469  
 470  function _arrayWithoutHoles(arr) {
 471    if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
 472  }
 473  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
 474  var iterableToArray = __webpack_require__(42);
 475  
 476  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 477  var unsupportedIterableToArray = __webpack_require__(28);
 478  
 479  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
 480  function _nonIterableSpread() {
 481    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 482  }
 483  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
 484  
 485  
 486  
 487  
 488  function _toConsumableArray(arr) {
 489    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
 490  }
 491  
 492  /***/ }),
 493  
 494  /***/ 150:
 495  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 496  
 497  "use strict";
 498  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectDestructuringEmpty; });
 499  function _objectDestructuringEmpty(obj) {
 500    if (obj == null) throw new TypeError("Cannot destructure undefined");
 501  }
 502  
 503  /***/ }),
 504  
 505  /***/ 164:
 506  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 507  
 508  "use strict";
 509  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 510  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 511  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 512  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 513  
 514  
 515  /**
 516   * WordPress dependencies
 517   */
 518  
 519  var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 520    xmlns: "http://www.w3.org/2000/svg",
 521    viewBox: "0 0 24 24"
 522  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 523    d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
 524  }));
 525  /* harmony default export */ __webpack_exports__["a"] = (closeSmall);
 526  
 527  
 528  /***/ }),
 529  
 530  /***/ 166:
 531  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 532  
 533  "use strict";
 534  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 535  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 536  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 537  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 538  
 539  
 540  /**
 541   * WordPress dependencies
 542   */
 543  
 544  var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 545    xmlns: "http://www.w3.org/2000/svg",
 546    viewBox: "0 0 24 24"
 547  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 548    d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"
 549  }));
 550  /* harmony default export */ __webpack_exports__["a"] = (check);
 551  
 552  
 553  /***/ }),
 554  
 555  /***/ 17:
 556  /***/ (function(module, exports) {
 557  
 558  (function() { module.exports = window["wp"]["keycodes"]; }());
 559  
 560  /***/ }),
 561  
 562  /***/ 18:
 563  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 564  
 565  "use strict";
 566  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
 567  function _assertThisInitialized(self) {
 568    if (self === void 0) {
 569      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
 570    }
 571  
 572    return self;
 573  }
 574  
 575  /***/ }),
 576  
 577  /***/ 19:
 578  /***/ (function(module, exports) {
 579  
 580  (function() { module.exports = window["wp"]["richText"]; }());
 581  
 582  /***/ }),
 583  
 584  /***/ 2:
 585  /***/ (function(module, exports) {
 586  
 587  (function() { module.exports = window["lodash"]; }());
 588  
 589  /***/ }),
 590  
 591  /***/ 201:
 592  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 593  
 594  "use strict";
 595  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 596  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 597  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 598  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 599  
 600  
 601  /**
 602   * WordPress dependencies
 603   */
 604  
 605  var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 606    xmlns: "http://www.w3.org/2000/svg",
 607    viewBox: "0 0 24 24"
 608  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 609    d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"
 610  }));
 611  /* harmony default export */ __webpack_exports__["a"] = (link);
 612  
 613  
 614  /***/ }),
 615  
 616  /***/ 219:
 617  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 618  
 619  "use strict";
 620  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 621  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 622  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 623  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 624  
 625  
 626  /**
 627   * WordPress dependencies
 628   */
 629  
 630  var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 631    xmlns: "http://www.w3.org/2000/svg",
 632    viewBox: "0 0 24 24"
 633  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 634    d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
 635  }));
 636  /* harmony default export */ __webpack_exports__["a"] = (search);
 637  
 638  
 639  /***/ }),
 640  
 641  /***/ 22:
 642  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 643  
 644  "use strict";
 645  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 646  function _getPrototypeOf(o) {
 647    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 648      return o.__proto__ || Object.getPrototypeOf(o);
 649    };
 650    return _getPrototypeOf(o);
 651  }
 652  
 653  /***/ }),
 654  
 655  /***/ 220:
 656  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 657  
 658  "use strict";
 659  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 660  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 661  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 662  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 663  
 664  
 665  /**
 666   * WordPress dependencies
 667   */
 668  
 669  var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 670    xmlns: "http://www.w3.org/2000/svg",
 671    viewBox: "0 0 24 24"
 672  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 673    d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
 674  }));
 675  /* harmony default export */ __webpack_exports__["a"] = (chevronRight);
 676  
 677  
 678  /***/ }),
 679  
 680  /***/ 221:
 681  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 682  
 683  "use strict";
 684  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 685  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 686  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 687  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 688  
 689  
 690  /**
 691   * WordPress dependencies
 692   */
 693  
 694  var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 695    xmlns: "http://www.w3.org/2000/svg",
 696    viewBox: "0 0 24 24"
 697  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 698    d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
 699  }));
 700  /* harmony default export */ __webpack_exports__["a"] = (chevronLeft);
 701  
 702  
 703  /***/ }),
 704  
 705  /***/ 223:
 706  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 707  
 708  "use strict";
 709  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 710  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 711  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 712  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 713  
 714  
 715  /**
 716   * WordPress dependencies
 717   */
 718  
 719  var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 720    xmlns: "http://www.w3.org/2000/svg",
 721    viewBox: "-2 -2 24 24"
 722  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 723    d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
 724  }));
 725  /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn);
 726  
 727  
 728  /***/ }),
 729  
 730  /***/ 224:
 731  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 732  
 733  "use strict";
 734  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 735  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 736  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 737  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 738  
 739  
 740  /**
 741   * WordPress dependencies
 742   */
 743  
 744  var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 745    xmlns: "http://www.w3.org/2000/svg",
 746    viewBox: "0 0 24 24"
 747  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 748    d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
 749  }));
 750  /* harmony default export */ __webpack_exports__["a"] = (upload);
 751  
 752  
 753  /***/ }),
 754  
 755  /***/ 225:
 756  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 757  
 758  "use strict";
 759  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 760  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 761  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 762  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 763  
 764  
 765  /**
 766   * WordPress dependencies
 767   */
 768  
 769  var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 770    xmlns: "http://www.w3.org/2000/svg",
 771    viewBox: "0 0 24 24"
 772  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 773    d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"
 774  }));
 775  /* harmony default export */ __webpack_exports__["a"] = (linkOff);
 776  
 777  
 778  /***/ }),
 779  
 780  /***/ 24:
 781  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 782  
 783  "use strict";
 784  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
 785  function _arrayLikeToArray(arr, len) {
 786    if (len == null || len > arr.length) len = arr.length;
 787  
 788    for (var i = 0, arr2 = new Array(len); i < len; i++) {
 789      arr2[i] = arr[i];
 790    }
 791  
 792    return arr2;
 793  }
 794  
 795  /***/ }),
 796  
 797  /***/ 25:
 798  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 799  
 800  "use strict";
 801  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 802  function _classCallCheck(instance, Constructor) {
 803    if (!(instance instanceof Constructor)) {
 804      throw new TypeError("Cannot call a class as a function");
 805    }
 806  }
 807  
 808  /***/ }),
 809  
 810  /***/ 26:
 811  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 812  
 813  "use strict";
 814  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 815  function _defineProperties(target, props) {
 816    for (var i = 0; i < props.length; i++) {
 817      var descriptor = props[i];
 818      descriptor.enumerable = descriptor.enumerable || false;
 819      descriptor.configurable = true;
 820      if ("value" in descriptor) descriptor.writable = true;
 821      Object.defineProperty(target, descriptor.key, descriptor);
 822    }
 823  }
 824  
 825  function _createClass(Constructor, protoProps, staticProps) {
 826    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 827    if (staticProps) _defineProperties(Constructor, staticProps);
 828    return Constructor;
 829  }
 830  
 831  /***/ }),
 832  
 833  /***/ 277:
 834  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 835  
 836  "use strict";
 837  
 838  // EXTERNAL MODULE: external ["wp","element"]
 839  var external_wp_element_ = __webpack_require__(0);
 840  
 841  // EXTERNAL MODULE: external ["wp","primitives"]
 842  var external_wp_primitives_ = __webpack_require__(7);
 843  
 844  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
 845  
 846  
 847  /**
 848   * WordPress dependencies
 849   */
 850  
 851  var pencil = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
 852    xmlns: "http://www.w3.org/2000/svg",
 853    viewBox: "0 0 24 24"
 854  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
 855    d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"
 856  }));
 857  /* harmony default export */ var library_pencil = (pencil);
 858  
 859  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
 860  /**
 861   * Internal dependencies
 862   */
 863  
 864  /* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil);
 865  
 866  
 867  /***/ }),
 868  
 869  /***/ 28:
 870  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 871  
 872  "use strict";
 873  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
 874  /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24);
 875  
 876  function _unsupportedIterableToArray(o, minLen) {
 877    if (!o) return;
 878    if (typeof o === "string") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 879    var n = Object.prototype.toString.call(o).slice(8, -1);
 880    if (n === "Object" && o.constructor) n = o.constructor.name;
 881    if (n === "Map" || n === "Set") return Array.from(o);
 882    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 883  }
 884  
 885  /***/ }),
 886  
 887  /***/ 283:
 888  /***/ (function(module, exports, __webpack_require__) {
 889  
 890  module.exports = __webpack_require__(313);
 891  
 892  
 893  /***/ }),
 894  
 895  /***/ 284:
 896  /***/ (function(module, exports, __webpack_require__) {
 897  
 898  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
 899  (function (global, factory) {
 900       true ? module.exports = factory() :
 901      undefined;
 902  }(this, (function () { 'use strict';
 903  
 904  function _classCallCheck(instance, Constructor) {
 905    if (!(instance instanceof Constructor)) {
 906      throw new TypeError("Cannot call a class as a function");
 907    }
 908  }
 909  
 910  function _defineProperties(target, props) {
 911    for (var i = 0; i < props.length; i++) {
 912      var descriptor = props[i];
 913      descriptor.enumerable = descriptor.enumerable || false;
 914      descriptor.configurable = true;
 915      if ("value" in descriptor) descriptor.writable = true;
 916      Object.defineProperty(target, descriptor.key, descriptor);
 917    }
 918  }
 919  
 920  function _createClass(Constructor, protoProps, staticProps) {
 921    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 922    if (staticProps) _defineProperties(Constructor, staticProps);
 923    return Constructor;
 924  }
 925  
 926  function _slicedToArray(arr, i) {
 927    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
 928  }
 929  
 930  function _arrayWithHoles(arr) {
 931    if (Array.isArray(arr)) return arr;
 932  }
 933  
 934  function _iterableToArrayLimit(arr, i) {
 935    var _arr = [];
 936    var _n = true;
 937    var _d = false;
 938    var _e = undefined;
 939  
 940    try {
 941      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 942        _arr.push(_s.value);
 943  
 944        if (i && _arr.length === i) break;
 945      }
 946    } catch (err) {
 947      _d = true;
 948      _e = err;
 949    } finally {
 950      try {
 951        if (!_n && _i["return"] != null) _i["return"]();
 952      } finally {
 953        if (_d) throw _e;
 954      }
 955    }
 956  
 957    return _arr;
 958  }
 959  
 960  function _nonIterableRest() {
 961    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 962  }
 963  
 964  var FastAverageColor =
 965  /*#__PURE__*/
 966  function () {
 967    function FastAverageColor() {
 968      _classCallCheck(this, FastAverageColor);
 969    }
 970  
 971    _createClass(FastAverageColor, [{
 972      key: "getColorAsync",
 973  
 974      /**
 975       * Get asynchronously the average color from not loaded image.
 976       *
 977       * @param {HTMLImageElement} resource
 978       * @param {Function} callback
 979       * @param {Object|null} [options]
 980       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
 981       * @param {*}      [options.data]
 982       * @param {string} [options.mode="speed"] "precision" or "speed"
 983       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
 984       * @param {number} [options.step=1]
 985       * @param {number} [options.left=0]
 986       * @param {number} [options.top=0]
 987       * @param {number} [options.width=width of resource]
 988       * @param {number} [options.height=height of resource]
 989       */
 990      value: function getColorAsync(resource, callback, options) {
 991        if (resource.complete) {
 992          callback.call(resource, this.getColor(resource, options), options && options.data);
 993        } else {
 994          this._bindImageEvents(resource, callback, options);
 995        }
 996      }
 997      /**
 998       * Get the average color from images, videos and canvas.
 999       *
1000       * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource
1001       * @param {Object|null} [options]
1002       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
1003       * @param {*}      [options.data]
1004       * @param {string} [options.mode="speed"] "precision" or "speed"
1005       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
1006       * @param {number} [options.step=1]
1007       * @param {number} [options.left=0]
1008       * @param {number} [options.top=0]
1009       * @param {number} [options.width=width of resource]
1010       * @param {number} [options.height=height of resource]
1011       *
1012       * @returns {Object}
1013       */
1014  
1015    }, {
1016      key: "getColor",
1017      value: function getColor(resource, options) {
1018        options = options || {};
1019  
1020        var defaultColor = this._getDefaultColor(options),
1021            originalSize = this._getOriginalSize(resource),
1022            size = this._prepareSizeAndPosition(originalSize, options);
1023  
1024        var error = null,
1025            value = defaultColor;
1026  
1027        if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) {
1028          return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.'));
1029        }
1030  
1031        if (!this._ctx) {
1032          this._canvas = this._makeCanvas();
1033          this._ctx = this._canvas.getContext && this._canvas.getContext('2d');
1034  
1035          if (!this._ctx) {
1036            return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.'));
1037          }
1038        }
1039  
1040        this._canvas.width = size.destWidth;
1041        this._canvas.height = size.destHeight;
1042  
1043        try {
1044          this._ctx.clearRect(0, 0, size.destWidth, size.destHeight);
1045  
1046          this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight);
1047  
1048          var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data;
1049  
1050          value = this.getColorFromArray4(bitmapData, options);
1051        } catch (e) {
1052          // Security error, CORS
1053          // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image
1054          error = e;
1055        }
1056  
1057        return this._prepareResult(value, error);
1058      }
1059      /**
1060       * Get the average color from a array when 1 pixel is 4 bytes.
1061       *
1062       * @param {Array|Uint8Array} arr
1063       * @param {Object} [options]
1064       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
1065       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
1066       * @param {number} [options.step=1]
1067       *
1068       * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)]
1069       */
1070  
1071    }, {
1072      key: "getColorFromArray4",
1073      value: function getColorFromArray4(arr, options) {
1074        options = options || {};
1075        var bytesPerPixel = 4,
1076            arrLength = arr.length;
1077  
1078        if (arrLength < bytesPerPixel) {
1079          return this._getDefaultColor(options);
1080        }
1081  
1082        var len = arrLength - arrLength % bytesPerPixel,
1083            preparedStep = (options.step || 1) * bytesPerPixel,
1084            algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm';
1085  
1086        if (typeof this[algorithm] !== 'function') {
1087          throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm."));
1088        }
1089  
1090        return this[algorithm](arr, len, preparedStep);
1091      }
1092      /**
1093       * Destroy the instance.
1094       */
1095  
1096    }, {
1097      key: "destroy",
1098      value: function destroy() {
1099        delete this._canvas;
1100        delete this._ctx;
1101      }
1102    }, {
1103      key: "_getDefaultColor",
1104      value: function _getDefaultColor(options) {
1105        return this._getOption(options, 'defaultColor', [255, 255, 255, 255]);
1106      }
1107    }, {
1108      key: "_getOption",
1109      value: function _getOption(options, name, defaultValue) {
1110        return typeof options[name] === 'undefined' ? defaultValue : options[name];
1111      }
1112    }, {
1113      key: "_prepareSizeAndPosition",
1114      value: function _prepareSizeAndPosition(originalSize, options) {
1115        var srcLeft = this._getOption(options, 'left', 0),
1116            srcTop = this._getOption(options, 'top', 0),
1117            srcWidth = this._getOption(options, 'width', originalSize.width),
1118            srcHeight = this._getOption(options, 'height', originalSize.height),
1119            destWidth = srcWidth,
1120            destHeight = srcHeight;
1121  
1122        if (options.mode === 'precision') {
1123          return {
1124            srcLeft: srcLeft,
1125            srcTop: srcTop,
1126            srcWidth: srcWidth,
1127            srcHeight: srcHeight,
1128            destWidth: destWidth,
1129            destHeight: destHeight
1130          };
1131        }
1132  
1133        var maxSize = 100,
1134            minSize = 10;
1135        var factor;
1136  
1137        if (srcWidth > srcHeight) {
1138          factor = srcWidth / srcHeight;
1139          destWidth = maxSize;
1140          destHeight = Math.round(destWidth / factor);
1141        } else {
1142          factor = srcHeight / srcWidth;
1143          destHeight = maxSize;
1144          destWidth = Math.round(destHeight / factor);
1145        }
1146  
1147        if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) {
1148          destWidth = srcWidth;
1149          destHeight = srcHeight;
1150        }
1151  
1152        return {
1153          srcLeft: srcLeft,
1154          srcTop: srcTop,
1155          srcWidth: srcWidth,
1156          srcHeight: srcHeight,
1157          destWidth: destWidth,
1158          destHeight: destHeight
1159        };
1160      }
1161    }, {
1162      key: "_simpleAlgorithm",
1163      value: function _simpleAlgorithm(arr, len, preparedStep) {
1164        var redTotal = 0,
1165            greenTotal = 0,
1166            blueTotal = 0,
1167            alphaTotal = 0,
1168            count = 0;
1169  
1170        for (var i = 0; i < len; i += preparedStep) {
1171          var alpha = arr[i + 3],
1172              red = arr[i] * alpha,
1173              green = arr[i + 1] * alpha,
1174              blue = arr[i + 2] * alpha;
1175          redTotal += red;
1176          greenTotal += green;
1177          blueTotal += blue;
1178          alphaTotal += alpha;
1179          count++;
1180        }
1181  
1182        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1183      }
1184    }, {
1185      key: "_sqrtAlgorithm",
1186      value: function _sqrtAlgorithm(arr, len, preparedStep) {
1187        var redTotal = 0,
1188            greenTotal = 0,
1189            blueTotal = 0,
1190            alphaTotal = 0,
1191            count = 0;
1192  
1193        for (var i = 0; i < len; i += preparedStep) {
1194          var red = arr[i],
1195              green = arr[i + 1],
1196              blue = arr[i + 2],
1197              alpha = arr[i + 3];
1198          redTotal += red * red * alpha;
1199          greenTotal += green * green * alpha;
1200          blueTotal += blue * blue * alpha;
1201          alphaTotal += alpha;
1202          count++;
1203        }
1204  
1205        return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1206      }
1207    }, {
1208      key: "_dominantAlgorithm",
1209      value: function _dominantAlgorithm(arr, len, preparedStep) {
1210        var colorHash = {},
1211            divider = 24;
1212  
1213        for (var i = 0; i < len; i += preparedStep) {
1214          var red = arr[i],
1215              green = arr[i + 1],
1216              blue = arr[i + 2],
1217              alpha = arr[i + 3],
1218              key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider);
1219  
1220          if (colorHash[key]) {
1221            colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1];
1222          } else {
1223            colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1];
1224          }
1225        }
1226  
1227        var buffer = Object.keys(colorHash).map(function (key) {
1228          return colorHash[key];
1229        }).sort(function (a, b) {
1230          var countA = a[4],
1231              countB = b[4];
1232          return countA > countB ? -1 : countA === countB ? 0 : 1;
1233        });
1234  
1235        var _buffer$ = _slicedToArray(buffer[0], 5),
1236            redTotal = _buffer$[0],
1237            greenTotal = _buffer$[1],
1238            blueTotal = _buffer$[2],
1239            alphaTotal = _buffer$[3],
1240            count = _buffer$[4];
1241  
1242        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1243      }
1244    }, {
1245      key: "_bindImageEvents",
1246      value: function _bindImageEvents(resource, callback, options) {
1247        var _this = this;
1248  
1249        options = options || {};
1250  
1251        var data = options && options.data,
1252            defaultColor = this._getDefaultColor(options),
1253            onload = function onload() {
1254          unbindEvents();
1255          callback.call(resource, _this.getColor(resource, options), data);
1256        },
1257            onerror = function onerror() {
1258          unbindEvents();
1259          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data);
1260        },
1261            onabort = function onabort() {
1262          unbindEvents();
1263          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data);
1264        },
1265            unbindEvents = function unbindEvents() {
1266          resource.removeEventListener('load', onload);
1267          resource.removeEventListener('error', onerror);
1268          resource.removeEventListener('abort', onabort);
1269        };
1270  
1271        resource.addEventListener('load', onload);
1272        resource.addEventListener('error', onerror);
1273        resource.addEventListener('abort', onabort);
1274      }
1275    }, {
1276      key: "_prepareResult",
1277      value: function _prepareResult(value, error) {
1278        var rgb = value.slice(0, 3),
1279            rgba = [].concat(rgb, value[3] / 255),
1280            isDark = this._isDark(value);
1281  
1282        return {
1283          error: error,
1284          value: value,
1285          rgb: 'rgb(' + rgb.join(',') + ')',
1286          rgba: 'rgba(' + rgba.join(',') + ')',
1287          hex: this._arrayToHex(rgb),
1288          hexa: this._arrayToHex(value),
1289          isDark: isDark,
1290          isLight: !isDark
1291        };
1292      }
1293    }, {
1294      key: "_getOriginalSize",
1295      value: function _getOriginalSize(resource) {
1296        if (resource instanceof HTMLImageElement) {
1297          return {
1298            width: resource.naturalWidth,
1299            height: resource.naturalHeight
1300          };
1301        }
1302  
1303        if (resource instanceof HTMLVideoElement) {
1304          return {
1305            width: resource.videoWidth,
1306            height: resource.videoHeight
1307          };
1308        }
1309  
1310        return {
1311          width: resource.width,
1312          height: resource.height
1313        };
1314      }
1315    }, {
1316      key: "_toHex",
1317      value: function _toHex(num) {
1318        var str = num.toString(16);
1319        return str.length === 1 ? '0' + str : str;
1320      }
1321    }, {
1322      key: "_arrayToHex",
1323      value: function _arrayToHex(arr) {
1324        return '#' + arr.map(this._toHex).join('');
1325      }
1326    }, {
1327      key: "_isDark",
1328      value: function _isDark(color) {
1329        // http://www.w3.org/TR/AERT#color-contrast
1330        var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000;
1331        return result < 128;
1332      }
1333    }, {
1334      key: "_makeCanvas",
1335      value: function _makeCanvas() {
1336        return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas');
1337      }
1338    }]);
1339  
1340    return FastAverageColor;
1341  }();
1342  
1343  return FastAverageColor;
1344  
1345  })));
1346  
1347  
1348  /***/ }),
1349  
1350  /***/ 29:
1351  /***/ (function(module, exports) {
1352  
1353  (function() { module.exports = window["wp"]["url"]; }());
1354  
1355  /***/ }),
1356  
1357  /***/ 3:
1358  /***/ (function(module, exports) {
1359  
1360  (function() { module.exports = window["wp"]["components"]; }());
1361  
1362  /***/ }),
1363  
1364  /***/ 30:
1365  /***/ (function(module, exports) {
1366  
1367  (function() { module.exports = window["wp"]["hooks"]; }());
1368  
1369  /***/ }),
1370  
1371  /***/ 304:
1372  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1373  
1374  "use strict";
1375  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1376  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1377  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
1378  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1379  
1380  
1381  /**
1382   * WordPress dependencies
1383   */
1384  
1385  var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1386    xmlns: "http://www.w3.org/2000/svg",
1387    viewBox: "0 0 24 24"
1388  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1389    d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
1390  }));
1391  /* harmony default export */ __webpack_exports__["a"] = (alignLeft);
1392  
1393  
1394  /***/ }),
1395  
1396  /***/ 305:
1397  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1398  
1399  "use strict";
1400  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1401  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1402  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
1403  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1404  
1405  
1406  /**
1407   * WordPress dependencies
1408   */
1409  
1410  var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1411    xmlns: "http://www.w3.org/2000/svg",
1412    viewBox: "0 0 24 24"
1413  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1414    d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
1415  }));
1416  /* harmony default export */ __webpack_exports__["a"] = (alignCenter);
1417  
1418  
1419  /***/ }),
1420  
1421  /***/ 306:
1422  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1423  
1424  "use strict";
1425  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1426  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1427  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
1428  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1429  
1430  
1431  /**
1432   * WordPress dependencies
1433   */
1434  
1435  var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1436    xmlns: "http://www.w3.org/2000/svg",
1437    viewBox: "0 0 24 24"
1438  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1439    d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
1440  }));
1441  /* harmony default export */ __webpack_exports__["a"] = (alignRight);
1442  
1443  
1444  /***/ }),
1445  
1446  /***/ 31:
1447  /***/ (function(module, exports) {
1448  
1449  (function() { module.exports = window["wp"]["editor"]; }());
1450  
1451  /***/ }),
1452  
1453  /***/ 311:
1454  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1455  
1456  "use strict";
1457  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1458  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1459  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
1460  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1461  
1462  
1463  /**
1464   * WordPress dependencies
1465   */
1466  
1467  var media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1468    xmlns: "http://www.w3.org/2000/svg",
1469    viewBox: "0 0 24 24"
1470  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1471    d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"
1472  }));
1473  /* harmony default export */ __webpack_exports__["a"] = (media);
1474  
1475  
1476  /***/ }),
1477  
1478  /***/ 313:
1479  /***/ (function(module, exports, __webpack_require__) {
1480  
1481  "use strict";
1482  /**
1483   * Copyright (c) 2015, Facebook, Inc.
1484   * All rights reserved.
1485   *
1486   * This source code is licensed under the BSD-style license found in the
1487   * LICENSE file in the root directory of this source tree. An additional grant
1488   * of patent rights can be found in the PATENTS file in the same directory.
1489   *
1490   * @providesModule normalizeWheel
1491   * @typechecks
1492   */
1493  
1494  
1495  
1496  var UserAgent_DEPRECATED = __webpack_require__(314);
1497  
1498  var isEventSupported = __webpack_require__(315);
1499  
1500  
1501  // Reasonable defaults
1502  var PIXEL_STEP  = 10;
1503  var LINE_HEIGHT = 40;
1504  var PAGE_HEIGHT = 800;
1505  
1506  /**
1507   * Mouse wheel (and 2-finger trackpad) support on the web sucks.  It is
1508   * complicated, thus this doc is long and (hopefully) detailed enough to answer
1509   * your questions.
1510   *
1511   * If you need to react to the mouse wheel in a predictable way, this code is
1512   * like your bestest friend. * hugs *
1513   *
1514   * As of today, there are 4 DOM event types you can listen to:
1515   *
1516   *   'wheel'                -- Chrome(31+), FF(17+), IE(9+)
1517   *   'mousewheel'           -- Chrome, IE(6+), Opera, Safari
1518   *   'MozMousePixelScroll'  -- FF(3.5 only!) (2010-2013) -- don't bother!
1519   *   'DOMMouseScroll'       -- FF(0.9.7+) since 2003
1520   *
1521   * So what to do?  The is the best:
1522   *
1523   *   normalizeWheel.getEventType();
1524   *
1525   * In your event callback, use this code to get sane interpretation of the
1526   * deltas.  This code will return an object with properties:
1527   *
1528   *   spinX   -- normalized spin speed (use for zoom) - x plane
1529   *   spinY   -- " - y plane
1530   *   pixelX  -- normalized distance (to pixels) - x plane
1531   *   pixelY  -- " - y plane
1532   *
1533   * Wheel values are provided by the browser assuming you are using the wheel to
1534   * scroll a web page by a number of lines or pixels (or pages).  Values can vary
1535   * significantly on different platforms and browsers, forgetting that you can
1536   * scroll at different speeds.  Some devices (like trackpads) emit more events
1537   * at smaller increments with fine granularity, and some emit massive jumps with
1538   * linear speed or acceleration.
1539   *
1540   * This code does its best to normalize the deltas for you:
1541   *
1542   *   - spin is trying to normalize how far the wheel was spun (or trackpad
1543   *     dragged).  This is super useful for zoom support where you want to
1544   *     throw away the chunky scroll steps on the PC and make those equal to
1545   *     the slow and smooth tiny steps on the Mac. Key data: This code tries to
1546   *     resolve a single slow step on a wheel to 1.
1547   *
1548   *   - pixel is normalizing the desired scroll delta in pixel units.  You'll
1549   *     get the crazy differences between browsers, but at least it'll be in
1550   *     pixels!
1551   *
1552   *   - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT.  This
1553   *     should translate to positive value zooming IN, negative zooming OUT.
1554   *     This matches the newer 'wheel' event.
1555   *
1556   * Why are there spinX, spinY (or pixels)?
1557   *
1558   *   - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
1559   *     with a mouse.  It results in side-scrolling in the browser by default.
1560   *
1561   *   - spinY is what you expect -- it's the classic axis of a mouse wheel.
1562   *
1563   *   - I dropped spinZ/pixelZ.  It is supported by the DOM 3 'wheel' event and
1564   *     probably is by browsers in conjunction with fancy 3D controllers .. but
1565   *     you know.
1566   *
1567   * Implementation info:
1568   *
1569   * Examples of 'wheel' event if you scroll slowly (down) by one step with an
1570   * average mouse:
1571   *
1572   *   OS X + Chrome  (mouse)     -    4   pixel delta  (wheelDelta -120)
1573   *   OS X + Safari  (mouse)     -  N/A   pixel delta  (wheelDelta  -12)
1574   *   OS X + Firefox (mouse)     -    0.1 line  delta  (wheelDelta  N/A)
1575   *   Win8 + Chrome  (mouse)     -  100   pixel delta  (wheelDelta -120)
1576   *   Win8 + Firefox (mouse)     -    3   line  delta  (wheelDelta -120)
1577   *
1578   * On the trackpad:
1579   *
1580   *   OS X + Chrome  (trackpad)  -    2   pixel delta  (wheelDelta   -6)
1581   *   OS X + Firefox (trackpad)  -    1   pixel delta  (wheelDelta  N/A)
1582   *
1583   * On other/older browsers.. it's more complicated as there can be multiple and
1584   * also missing delta values.
1585   *
1586   * The 'wheel' event is more standard:
1587   *
1588   * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
1589   *
1590   * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
1591   * deltaX, deltaY and deltaZ.  Some browsers provide other values to maintain
1592   * backward compatibility with older events.  Those other values help us
1593   * better normalize spin speed.  Example of what the browsers provide:
1594   *
1595   *                          | event.wheelDelta | event.detail
1596   *        ------------------+------------------+--------------
1597   *          Safari v5/OS X  |       -120       |       0
1598   *          Safari v5/Win7  |       -120       |       0
1599   *         Chrome v17/OS X  |       -120       |       0
1600   *         Chrome v17/Win7  |       -120       |       0
1601   *                IE9/Win7  |       -120       |   undefined
1602   *         Firefox v4/OS X  |     undefined    |       1
1603   *         Firefox v4/Win7  |     undefined    |       3
1604   *
1605   */
1606  function normalizeWheel(/*object*/ event) /*object*/ {
1607    var sX = 0, sY = 0,       // spinX, spinY
1608        pX = 0, pY = 0;       // pixelX, pixelY
1609  
1610    // Legacy
1611    if ('detail'      in event) { sY = event.detail; }
1612    if ('wheelDelta'  in event) { sY = -event.wheelDelta / 120; }
1613    if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
1614    if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
1615  
1616    // side scrolling on FF with DOMMouseScroll
1617    if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
1618      sX = sY;
1619      sY = 0;
1620    }
1621  
1622    pX = sX * PIXEL_STEP;
1623    pY = sY * PIXEL_STEP;
1624  
1625    if ('deltaY' in event) { pY = event.deltaY; }
1626    if ('deltaX' in event) { pX = event.deltaX; }
1627  
1628    if ((pX || pY) && event.deltaMode) {
1629      if (event.deltaMode == 1) {          // delta in LINE units
1630        pX *= LINE_HEIGHT;
1631        pY *= LINE_HEIGHT;
1632      } else {                             // delta in PAGE units
1633        pX *= PAGE_HEIGHT;
1634        pY *= PAGE_HEIGHT;
1635      }
1636    }
1637  
1638    // Fall-back if spin cannot be determined
1639    if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
1640    if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
1641  
1642    return { spinX  : sX,
1643             spinY  : sY,
1644             pixelX : pX,
1645             pixelY : pY };
1646  }
1647  
1648  
1649  /**
1650   * The best combination if you prefer spinX + spinY normalization.  It favors
1651   * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
1652   * 'wheel' event, making spin speed determination impossible.
1653   */
1654  normalizeWheel.getEventType = function() /*string*/ {
1655    return (UserAgent_DEPRECATED.firefox())
1656             ? 'DOMMouseScroll'
1657             : (isEventSupported('wheel'))
1658                 ? 'wheel'
1659                 : 'mousewheel';
1660  };
1661  
1662  module.exports = normalizeWheel;
1663  
1664  
1665  /***/ }),
1666  
1667  /***/ 314:
1668  /***/ (function(module, exports) {
1669  
1670  /**
1671   * Copyright 2004-present Facebook. All Rights Reserved.
1672   *
1673   * @providesModule UserAgent_DEPRECATED
1674   */
1675  
1676  /**
1677   *  Provides entirely client-side User Agent and OS detection. You should prefer
1678   *  the non-deprecated UserAgent module when possible, which exposes our
1679   *  authoritative server-side PHP-based detection to the client.
1680   *
1681   *  Usage is straightforward:
1682   *
1683   *    if (UserAgent_DEPRECATED.ie()) {
1684   *      //  IE
1685   *    }
1686   *
1687   *  You can also do version checks:
1688   *
1689   *    if (UserAgent_DEPRECATED.ie() >= 7) {
1690   *      //  IE7 or better
1691   *    }
1692   *
1693   *  The browser functions will return NaN if the browser does not match, so
1694   *  you can also do version compares the other way:
1695   *
1696   *    if (UserAgent_DEPRECATED.ie() < 7) {
1697   *      //  IE6 or worse
1698   *    }
1699   *
1700   *  Note that the version is a float and may include a minor version number,
1701   *  so you should always use range operators to perform comparisons, not
1702   *  strict equality.
1703   *
1704   *  **Note:** You should **strongly** prefer capability detection to browser
1705   *  version detection where it's reasonable:
1706   *
1707   *    http://www.quirksmode.org/js/support.html
1708   *
1709   *  Further, we have a large number of mature wrapper functions and classes
1710   *  which abstract away many browser irregularities. Check the documentation,
1711   *  grep for things, or ask on javascript@lists.facebook.com before writing yet
1712   *  another copy of "event || window.event".
1713   *
1714   */
1715  
1716  var _populated = false;
1717  
1718  // Browsers
1719  var _ie, _firefox, _opera, _webkit, _chrome;
1720  
1721  // Actual IE browser for compatibility mode
1722  var _ie_real_version;
1723  
1724  // Platforms
1725  var _osx, _windows, _linux, _android;
1726  
1727  // Architectures
1728  var _win64;
1729  
1730  // Devices
1731  var _iphone, _ipad, _native;
1732  
1733  var _mobile;
1734  
1735  function _populate() {
1736    if (_populated) {
1737      return;
1738    }
1739  
1740    _populated = true;
1741  
1742    // To work around buggy JS libraries that can't handle multi-digit
1743    // version numbers, Opera 10's user agent string claims it's Opera
1744    // 9, then later includes a Version/X.Y field:
1745    //
1746    // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
1747    var uas = navigator.userAgent;
1748    var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
1749    var os    = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
1750  
1751    _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
1752    _ipad = /\b(iP[ao]d)/.exec(uas);
1753    _android = /Android/i.exec(uas);
1754    _native = /FBAN\/\w+;/i.exec(uas);
1755    _mobile = /Mobile/i.exec(uas);
1756  
1757    // Note that the IE team blog would have you believe you should be checking
1758    // for 'Win64; x64'.  But MSDN then reveals that you can actually be coming
1759    // from either x64 or ia64;  so ultimately, you should just check for Win64
1760    // as in indicator of whether you're in 64-bit IE.  32-bit IE on 64-bit
1761    // Windows will send 'WOW64' instead.
1762    _win64 = !!(/Win64/.exec(uas));
1763  
1764    if (agent) {
1765      _ie = agent[1] ? parseFloat(agent[1]) : (
1766            agent[5] ? parseFloat(agent[5]) : NaN);
1767      // IE compatibility mode
1768      if (_ie && document && document.documentMode) {
1769        _ie = document.documentMode;
1770      }
1771      // grab the "true" ie version from the trident token if available
1772      var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
1773      _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
1774  
1775      _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
1776      _opera   = agent[3] ? parseFloat(agent[3]) : NaN;
1777      _webkit  = agent[4] ? parseFloat(agent[4]) : NaN;
1778      if (_webkit) {
1779        // We do not add the regexp to the above test, because it will always
1780        // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
1781        // the userAgent string.
1782        agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
1783        _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
1784      } else {
1785        _chrome = NaN;
1786      }
1787    } else {
1788      _ie = _firefox = _opera = _chrome = _webkit = NaN;
1789    }
1790  
1791    if (os) {
1792      if (os[1]) {
1793        // Detect OS X version.  If no version number matches, set _osx to true.
1794        // Version examples:  10, 10_6_1, 10.7
1795        // Parses version number as a float, taking only first two sets of
1796        // digits.  If only one set of digits is found, returns just the major
1797        // version number.
1798        var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
1799  
1800        _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
1801      } else {
1802        _osx = false;
1803      }
1804      _windows = !!os[2];
1805      _linux   = !!os[3];
1806    } else {
1807      _osx = _windows = _linux = false;
1808    }
1809  }
1810  
1811  var UserAgent_DEPRECATED = {
1812  
1813    /**
1814     *  Check if the UA is Internet Explorer.
1815     *
1816     *
1817     *  @return float|NaN Version number (if match) or NaN.
1818     */
1819    ie: function() {
1820      return _populate() || _ie;
1821    },
1822  
1823    /**
1824     * Check if we're in Internet Explorer compatibility mode.
1825     *
1826     * @return bool true if in compatibility mode, false if
1827     * not compatibility mode or not ie
1828     */
1829    ieCompatibilityMode: function() {
1830      return _populate() || (_ie_real_version > _ie);
1831    },
1832  
1833  
1834    /**
1835     * Whether the browser is 64-bit IE.  Really, this is kind of weak sauce;  we
1836     * only need this because Skype can't handle 64-bit IE yet.  We need to remove
1837     * this when we don't need it -- tracked by #601957.
1838     */
1839    ie64: function() {
1840      return UserAgent_DEPRECATED.ie() && _win64;
1841    },
1842  
1843    /**
1844     *  Check if the UA is Firefox.
1845     *
1846     *
1847     *  @return float|NaN Version number (if match) or NaN.
1848     */
1849    firefox: function() {
1850      return _populate() || _firefox;
1851    },
1852  
1853  
1854    /**
1855     *  Check if the UA is Opera.
1856     *
1857     *
1858     *  @return float|NaN Version number (if match) or NaN.
1859     */
1860    opera: function() {
1861      return _populate() || _opera;
1862    },
1863  
1864  
1865    /**
1866     *  Check if the UA is WebKit.
1867     *
1868     *
1869     *  @return float|NaN Version number (if match) or NaN.
1870     */
1871    webkit: function() {
1872      return _populate() || _webkit;
1873    },
1874  
1875    /**
1876     *  For Push
1877     *  WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
1878     */
1879    safari: function() {
1880      return UserAgent_DEPRECATED.webkit();
1881    },
1882  
1883    /**
1884     *  Check if the UA is a Chrome browser.
1885     *
1886     *
1887     *  @return float|NaN Version number (if match) or NaN.
1888     */
1889    chrome : function() {
1890      return _populate() || _chrome;
1891    },
1892  
1893  
1894    /**
1895     *  Check if the user is running Windows.
1896     *
1897     *  @return bool `true' if the user's OS is Windows.
1898     */
1899    windows: function() {
1900      return _populate() || _windows;
1901    },
1902  
1903  
1904    /**
1905     *  Check if the user is running Mac OS X.
1906     *
1907     *  @return float|bool   Returns a float if a version number is detected,
1908     *                       otherwise true/false.
1909     */
1910    osx: function() {
1911      return _populate() || _osx;
1912    },
1913  
1914    /**
1915     * Check if the user is running Linux.
1916     *
1917     * @return bool `true' if the user's OS is some flavor of Linux.
1918     */
1919    linux: function() {
1920      return _populate() || _linux;
1921    },
1922  
1923    /**
1924     * Check if the user is running on an iPhone or iPod platform.
1925     *
1926     * @return bool `true' if the user is running some flavor of the
1927     *    iPhone OS.
1928     */
1929    iphone: function() {
1930      return _populate() || _iphone;
1931    },
1932  
1933    mobile: function() {
1934      return _populate() || (_iphone || _ipad || _android || _mobile);
1935    },
1936  
1937    nativeApp: function() {
1938      // webviews inside of the native apps
1939      return _populate() || _native;
1940    },
1941  
1942    android: function() {
1943      return _populate() || _android;
1944    },
1945  
1946    ipad: function() {
1947      return _populate() || _ipad;
1948    }
1949  };
1950  
1951  module.exports = UserAgent_DEPRECATED;
1952  
1953  
1954  /***/ }),
1955  
1956  /***/ 315:
1957  /***/ (function(module, exports, __webpack_require__) {
1958  
1959  "use strict";
1960  /**
1961   * Copyright 2013-2015, Facebook, Inc.
1962   * All rights reserved.
1963   *
1964   * This source code is licensed under the BSD-style license found in the
1965   * LICENSE file in the root directory of this source tree. An additional grant
1966   * of patent rights can be found in the PATENTS file in the same directory.
1967   *
1968   * @providesModule isEventSupported
1969   */
1970  
1971  
1972  
1973  var ExecutionEnvironment = __webpack_require__(316);
1974  
1975  var useHasFeature;
1976  if (ExecutionEnvironment.canUseDOM) {
1977    useHasFeature =
1978      document.implementation &&
1979      document.implementation.hasFeature &&
1980      // always returns true in newer browsers as per the standard.
1981      // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
1982      document.implementation.hasFeature('', '') !== true;
1983  }
1984  
1985  /**
1986   * Checks if an event is supported in the current execution environment.
1987   *
1988   * NOTE: This will not work correctly for non-generic events such as `change`,
1989   * `reset`, `load`, `error`, and `select`.
1990   *
1991   * Borrows from Modernizr.
1992   *
1993   * @param {string} eventNameSuffix Event name, e.g. "click".
1994   * @param {?boolean} capture Check if the capture phase is supported.
1995   * @return {boolean} True if the event is supported.
1996   * @internal
1997   * @license Modernizr 3.0.0pre (Custom Build) | MIT
1998   */
1999  function isEventSupported(eventNameSuffix, capture) {
2000    if (!ExecutionEnvironment.canUseDOM ||
2001        capture && !('addEventListener' in document)) {
2002      return false;
2003    }
2004  
2005    var eventName = 'on' + eventNameSuffix;
2006    var isSupported = eventName in document;
2007  
2008    if (!isSupported) {
2009      var element = document.createElement('div');
2010      element.setAttribute(eventName, 'return;');
2011      isSupported = typeof element[eventName] === 'function';
2012    }
2013  
2014    if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
2015      // This is the only way to test support for the `wheel` event in IE9+.
2016      isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
2017    }
2018  
2019    return isSupported;
2020  }
2021  
2022  module.exports = isEventSupported;
2023  
2024  
2025  /***/ }),
2026  
2027  /***/ 316:
2028  /***/ (function(module, exports, __webpack_require__) {
2029  
2030  "use strict";
2031  /**
2032   * Copyright (c) 2015, Facebook, Inc.
2033   * All rights reserved.
2034   *
2035   * This source code is licensed under the BSD-style license found in the
2036   * LICENSE file in the root directory of this source tree. An additional grant
2037   * of patent rights can be found in the PATENTS file in the same directory.
2038   *
2039   * @providesModule ExecutionEnvironment
2040   */
2041  
2042  /*jslint evil: true */
2043  
2044  
2045  
2046  var canUseDOM = !!(
2047    typeof window !== 'undefined' &&
2048    window.document &&
2049    window.document.createElement
2050  );
2051  
2052  /**
2053   * Simple, lightweight module assisting with the detection and context of
2054   * Worker. Helps avoid circular dependencies and allows code to reason about
2055   * whether or not they are in a Worker, even if they never include the main
2056   * `ReactWorker` dependency.
2057   */
2058  var ExecutionEnvironment = {
2059  
2060    canUseDOM: canUseDOM,
2061  
2062    canUseWorkers: typeof Worker !== 'undefined',
2063  
2064    canUseEventListeners:
2065      canUseDOM && !!(window.addEventListener || window.attachEvent),
2066  
2067    canUseViewport: canUseDOM && !!window.screen,
2068  
2069    isInWorker: !canUseDOM // For now, this is true - might change in the future.
2070  
2071  };
2072  
2073  module.exports = ExecutionEnvironment;
2074  
2075  
2076  /***/ }),
2077  
2078  /***/ 317:
2079  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2080  
2081  "use strict";
2082  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2083  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2084  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
2085  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2086  
2087  
2088  /**
2089   * WordPress dependencies
2090   */
2091  
2092  var button = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2093    viewBox: "0 0 24 24",
2094    xmlns: "http://www.w3.org/2000/svg"
2095  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2096    d: "M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"
2097  }));
2098  /* harmony default export */ __webpack_exports__["a"] = (button);
2099  
2100  
2101  /***/ }),
2102  
2103  /***/ 318:
2104  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2105  
2106  "use strict";
2107  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2108  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2109  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
2110  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2111  
2112  
2113  /**
2114   * WordPress dependencies
2115   */
2116  
2117  var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2118    viewBox: "0 0 24 24",
2119    xmlns: "http://www.w3.org/2000/svg"
2120  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2121    d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
2122  }));
2123  /* harmony default export */ __webpack_exports__["a"] = (code);
2124  
2125  
2126  /***/ }),
2127  
2128  /***/ 33:
2129  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2130  
2131  "use strict";
2132  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
2133  /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55);
2134  
2135  function _inherits(subClass, superClass) {
2136    if (typeof superClass !== "function" && superClass !== null) {
2137      throw new TypeError("Super expression must either be null or a function");
2138    }
2139  
2140    subClass.prototype = Object.create(superClass && superClass.prototype, {
2141      constructor: {
2142        value: subClass,
2143        writable: true,
2144        configurable: true
2145      }
2146    });
2147    if (superClass) Object(_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(subClass, superClass);
2148  }
2149  
2150  /***/ }),
2151  
2152  /***/ 34:
2153  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2154  
2155  "use strict";
2156  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
2157  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59);
2158  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
2159  /* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
2160  
2161  
2162  function _possibleConstructorReturn(self, call) {
2163    if (call && (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(call) === "object" || typeof call === "function")) {
2164      return call;
2165    }
2166  
2167    return Object(_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
2168  }
2169  
2170  /***/ }),
2171  
2172  /***/ 35:
2173  /***/ (function(module, exports) {
2174  
2175  (function() { module.exports = window["wp"]["deprecated"]; }());
2176  
2177  /***/ }),
2178  
2179  /***/ 37:
2180  /***/ (function(module, exports) {
2181  
2182  (function() { module.exports = window["wp"]["coreData"]; }());
2183  
2184  /***/ }),
2185  
2186  /***/ 38:
2187  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2188  
2189  "use strict";
2190  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
2191  function _arrayWithHoles(arr) {
2192    if (Array.isArray(arr)) return arr;
2193  }
2194  
2195  /***/ }),
2196  
2197  /***/ 39:
2198  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2199  
2200  "use strict";
2201  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
2202  function _nonIterableRest() {
2203    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2204  }
2205  
2206  /***/ }),
2207  
2208  /***/ 4:
2209  /***/ (function(module, exports) {
2210  
2211  (function() { module.exports = window["wp"]["data"]; }());
2212  
2213  /***/ }),
2214  
2215  /***/ 42:
2216  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2217  
2218  "use strict";
2219  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
2220  function _iterableToArray(iter) {
2221    if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2222  }
2223  
2224  /***/ }),
2225  
2226  /***/ 43:
2227  /***/ (function(module, exports) {
2228  
2229  (function() { module.exports = window["wp"]["blob"]; }());
2230  
2231  /***/ }),
2232  
2233  /***/ 44:
2234  /***/ (function(module, exports) {
2235  
2236  (function() { module.exports = window["moment"]; }());
2237  
2238  /***/ }),
2239  
2240  /***/ 449:
2241  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2242  
2243  "use strict";
2244  // ESM COMPAT FLAG
2245  __webpack_require__.r(__webpack_exports__);
2246  
2247  // EXPORTS
2248  __webpack_require__.d(__webpack_exports__, "__experimentalGetCoreBlocks", function() { return /* binding */ build_module_experimentalGetCoreBlocks; });
2249  __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return /* binding */ build_module_registerCoreBlocks; });
2250  __webpack_require__.d(__webpack_exports__, "__experimentalRegisterExperimentalCoreBlocks", function() { return /* binding */ __experimentalRegisterExperimentalCoreBlocks; });
2251  
2252  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
2253  var build_module_paragraph_namespaceObject = {};
2254  __webpack_require__.r(build_module_paragraph_namespaceObject);
2255  __webpack_require__.d(build_module_paragraph_namespaceObject, "metadata", function() { return paragraph_metadata; });
2256  __webpack_require__.d(build_module_paragraph_namespaceObject, "name", function() { return paragraph_name; });
2257  __webpack_require__.d(build_module_paragraph_namespaceObject, "settings", function() { return paragraph_settings; });
2258  
2259  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/image/index.js
2260  var build_module_image_namespaceObject = {};
2261  __webpack_require__.r(build_module_image_namespaceObject);
2262  __webpack_require__.d(build_module_image_namespaceObject, "metadata", function() { return image_metadata; });
2263  __webpack_require__.d(build_module_image_namespaceObject, "name", function() { return image_name; });
2264  __webpack_require__.d(build_module_image_namespaceObject, "settings", function() { return image_settings; });
2265  
2266  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/heading/index.js
2267  var build_module_heading_namespaceObject = {};
2268  __webpack_require__.r(build_module_heading_namespaceObject);
2269  __webpack_require__.d(build_module_heading_namespaceObject, "metadata", function() { return heading_metadata; });
2270  __webpack_require__.d(build_module_heading_namespaceObject, "name", function() { return heading_name; });
2271  __webpack_require__.d(build_module_heading_namespaceObject, "settings", function() { return heading_settings; });
2272  
2273  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/quote/index.js
2274  var build_module_quote_namespaceObject = {};
2275  __webpack_require__.r(build_module_quote_namespaceObject);
2276  __webpack_require__.d(build_module_quote_namespaceObject, "metadata", function() { return quote_metadata; });
2277  __webpack_require__.d(build_module_quote_namespaceObject, "name", function() { return quote_name; });
2278  __webpack_require__.d(build_module_quote_namespaceObject, "settings", function() { return quote_settings; });
2279  
2280  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/gallery/index.js
2281  var build_module_gallery_namespaceObject = {};
2282  __webpack_require__.r(build_module_gallery_namespaceObject);
2283  __webpack_require__.d(build_module_gallery_namespaceObject, "metadata", function() { return gallery_metadata; });
2284  __webpack_require__.d(build_module_gallery_namespaceObject, "name", function() { return gallery_name; });
2285  __webpack_require__.d(build_module_gallery_namespaceObject, "settings", function() { return gallery_settings; });
2286  
2287  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/archives/index.js
2288  var archives_namespaceObject = {};
2289  __webpack_require__.r(archives_namespaceObject);
2290  __webpack_require__.d(archives_namespaceObject, "metadata", function() { return archives_metadata; });
2291  __webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; });
2292  __webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; });
2293  
2294  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/audio/index.js
2295  var build_module_audio_namespaceObject = {};
2296  __webpack_require__.r(build_module_audio_namespaceObject);
2297  __webpack_require__.d(build_module_audio_namespaceObject, "metadata", function() { return audio_metadata; });
2298  __webpack_require__.d(build_module_audio_namespaceObject, "name", function() { return audio_name; });
2299  __webpack_require__.d(build_module_audio_namespaceObject, "settings", function() { return audio_settings; });
2300  
2301  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/button/index.js
2302  var button_namespaceObject = {};
2303  __webpack_require__.r(button_namespaceObject);
2304  __webpack_require__.d(button_namespaceObject, "metadata", function() { return button_metadata; });
2305  __webpack_require__.d(button_namespaceObject, "name", function() { return button_name; });
2306  __webpack_require__.d(button_namespaceObject, "settings", function() { return button_settings; });
2307  
2308  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/buttons/index.js
2309  var build_module_buttons_namespaceObject = {};
2310  __webpack_require__.r(build_module_buttons_namespaceObject);
2311  __webpack_require__.d(build_module_buttons_namespaceObject, "metadata", function() { return buttons_metadata; });
2312  __webpack_require__.d(build_module_buttons_namespaceObject, "name", function() { return buttons_name; });
2313  __webpack_require__.d(build_module_buttons_namespaceObject, "settings", function() { return buttons_settings; });
2314  
2315  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/calendar/index.js
2316  var build_module_calendar_namespaceObject = {};
2317  __webpack_require__.r(build_module_calendar_namespaceObject);
2318  __webpack_require__.d(build_module_calendar_namespaceObject, "metadata", function() { return calendar_metadata; });
2319  __webpack_require__.d(build_module_calendar_namespaceObject, "name", function() { return calendar_name; });
2320  __webpack_require__.d(build_module_calendar_namespaceObject, "settings", function() { return calendar_settings; });
2321  
2322  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/categories/index.js
2323  var categories_namespaceObject = {};
2324  __webpack_require__.r(categories_namespaceObject);
2325  __webpack_require__.d(categories_namespaceObject, "metadata", function() { return categories_metadata; });
2326  __webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; });
2327  __webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; });
2328  
2329  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/code/index.js
2330  var code_namespaceObject = {};
2331  __webpack_require__.r(code_namespaceObject);
2332  __webpack_require__.d(code_namespaceObject, "metadata", function() { return code_metadata; });
2333  __webpack_require__.d(code_namespaceObject, "name", function() { return code_name; });
2334  __webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; });
2335  
2336  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/columns/index.js
2337  var build_module_columns_namespaceObject = {};
2338  __webpack_require__.r(build_module_columns_namespaceObject);
2339  __webpack_require__.d(build_module_columns_namespaceObject, "metadata", function() { return columns_metadata; });
2340  __webpack_require__.d(build_module_columns_namespaceObject, "name", function() { return columns_name; });
2341  __webpack_require__.d(build_module_columns_namespaceObject, "settings", function() { return columns_settings; });
2342  
2343  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/column/index.js
2344  var build_module_column_namespaceObject = {};
2345  __webpack_require__.r(build_module_column_namespaceObject);
2346  __webpack_require__.d(build_module_column_namespaceObject, "metadata", function() { return column_metadata; });
2347  __webpack_require__.d(build_module_column_namespaceObject, "name", function() { return column_name; });
2348  __webpack_require__.d(build_module_column_namespaceObject, "settings", function() { return column_settings; });
2349  
2350  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/cover/index.js
2351  var build_module_cover_namespaceObject = {};
2352  __webpack_require__.r(build_module_cover_namespaceObject);
2353  __webpack_require__.d(build_module_cover_namespaceObject, "metadata", function() { return cover_metadata; });
2354  __webpack_require__.d(build_module_cover_namespaceObject, "name", function() { return cover_name; });
2355  __webpack_require__.d(build_module_cover_namespaceObject, "settings", function() { return cover_settings; });
2356  
2357  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/embed/index.js
2358  var embed_namespaceObject = {};
2359  __webpack_require__.r(embed_namespaceObject);
2360  __webpack_require__.d(embed_namespaceObject, "metadata", function() { return embed_metadata; });
2361  __webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; });
2362  __webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; });
2363  
2364  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/file/index.js
2365  var build_module_file_namespaceObject = {};
2366  __webpack_require__.r(build_module_file_namespaceObject);
2367  __webpack_require__.d(build_module_file_namespaceObject, "metadata", function() { return file_metadata; });
2368  __webpack_require__.d(build_module_file_namespaceObject, "name", function() { return file_name; });
2369  __webpack_require__.d(build_module_file_namespaceObject, "settings", function() { return file_settings; });
2370  
2371  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/html/index.js
2372  var build_module_html_namespaceObject = {};
2373  __webpack_require__.r(build_module_html_namespaceObject);
2374  __webpack_require__.d(build_module_html_namespaceObject, "metadata", function() { return html_metadata; });
2375  __webpack_require__.d(build_module_html_namespaceObject, "name", function() { return html_name; });
2376  __webpack_require__.d(build_module_html_namespaceObject, "settings", function() { return html_settings; });
2377  
2378  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/media-text/index.js
2379  var media_text_namespaceObject = {};
2380  __webpack_require__.r(media_text_namespaceObject);
2381  __webpack_require__.d(media_text_namespaceObject, "metadata", function() { return media_text_metadata; });
2382  __webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; });
2383  __webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; });
2384  
2385  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js
2386  var latest_comments_namespaceObject = {};
2387  __webpack_require__.r(latest_comments_namespaceObject);
2388  __webpack_require__.d(latest_comments_namespaceObject, "metadata", function() { return latest_comments_metadata; });
2389  __webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; });
2390  __webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; });
2391  
2392  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js
2393  var latest_posts_namespaceObject = {};
2394  __webpack_require__.r(latest_posts_namespaceObject);
2395  __webpack_require__.d(latest_posts_namespaceObject, "metadata", function() { return latest_posts_metadata; });
2396  __webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; });
2397  __webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; });
2398  
2399  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/list/index.js
2400  var build_module_list_namespaceObject = {};
2401  __webpack_require__.r(build_module_list_namespaceObject);
2402  __webpack_require__.d(build_module_list_namespaceObject, "metadata", function() { return list_metadata; });
2403  __webpack_require__.d(build_module_list_namespaceObject, "name", function() { return list_name; });
2404  __webpack_require__.d(build_module_list_namespaceObject, "settings", function() { return list_settings; });
2405  
2406  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/missing/index.js
2407  var missing_namespaceObject = {};
2408  __webpack_require__.r(missing_namespaceObject);
2409  __webpack_require__.d(missing_namespaceObject, "metadata", function() { return missing_metadata; });
2410  __webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; });
2411  __webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; });
2412  
2413  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/more/index.js
2414  var build_module_more_namespaceObject = {};
2415  __webpack_require__.r(build_module_more_namespaceObject);
2416  __webpack_require__.d(build_module_more_namespaceObject, "metadata", function() { return more_metadata; });
2417  __webpack_require__.d(build_module_more_namespaceObject, "name", function() { return more_name; });
2418  __webpack_require__.d(build_module_more_namespaceObject, "settings", function() { return more_settings; });
2419  
2420  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js
2421  var nextpage_namespaceObject = {};
2422  __webpack_require__.r(nextpage_namespaceObject);
2423  __webpack_require__.d(nextpage_namespaceObject, "metadata", function() { return nextpage_metadata; });
2424  __webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; });
2425  __webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; });
2426  
2427  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/page-list/index.js
2428  var page_list_namespaceObject = {};
2429  __webpack_require__.r(page_list_namespaceObject);
2430  __webpack_require__.d(page_list_namespaceObject, "metadata", function() { return page_list_metadata; });
2431  __webpack_require__.d(page_list_namespaceObject, "name", function() { return page_list_name; });
2432  __webpack_require__.d(page_list_namespaceObject, "settings", function() { return page_list_settings; });
2433  
2434  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js
2435  var build_module_preformatted_namespaceObject = {};
2436  __webpack_require__.r(build_module_preformatted_namespaceObject);
2437  __webpack_require__.d(build_module_preformatted_namespaceObject, "metadata", function() { return preformatted_metadata; });
2438  __webpack_require__.d(build_module_preformatted_namespaceObject, "name", function() { return preformatted_name; });
2439  __webpack_require__.d(build_module_preformatted_namespaceObject, "settings", function() { return preformatted_settings; });
2440  
2441  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js
2442  var build_module_pullquote_namespaceObject = {};
2443  __webpack_require__.r(build_module_pullquote_namespaceObject);
2444  __webpack_require__.d(build_module_pullquote_namespaceObject, "metadata", function() { return pullquote_metadata; });
2445  __webpack_require__.d(build_module_pullquote_namespaceObject, "name", function() { return pullquote_name; });
2446  __webpack_require__.d(build_module_pullquote_namespaceObject, "settings", function() { return pullquote_settings; });
2447  
2448  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/block/index.js
2449  var block_namespaceObject = {};
2450  __webpack_require__.r(block_namespaceObject);
2451  __webpack_require__.d(block_namespaceObject, "metadata", function() { return block_metadata; });
2452  __webpack_require__.d(block_namespaceObject, "name", function() { return block_name; });
2453  __webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; });
2454  
2455  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/rss/index.js
2456  var build_module_rss_namespaceObject = {};
2457  __webpack_require__.r(build_module_rss_namespaceObject);
2458  __webpack_require__.d(build_module_rss_namespaceObject, "metadata", function() { return rss_metadata; });
2459  __webpack_require__.d(build_module_rss_namespaceObject, "name", function() { return rss_name; });
2460  __webpack_require__.d(build_module_rss_namespaceObject, "settings", function() { return rss_settings; });
2461  
2462  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/search/index.js
2463  var search_namespaceObject = {};
2464  __webpack_require__.r(search_namespaceObject);
2465  __webpack_require__.d(search_namespaceObject, "metadata", function() { return search_metadata; });
2466  __webpack_require__.d(search_namespaceObject, "name", function() { return search_name; });
2467  __webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; });
2468  
2469  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/group/index.js
2470  var build_module_group_namespaceObject = {};
2471  __webpack_require__.r(build_module_group_namespaceObject);
2472  __webpack_require__.d(build_module_group_namespaceObject, "metadata", function() { return group_metadata; });
2473  __webpack_require__.d(build_module_group_namespaceObject, "name", function() { return group_name; });
2474  __webpack_require__.d(build_module_group_namespaceObject, "settings", function() { return group_settings; });
2475  
2476  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/separator/index.js
2477  var build_module_separator_namespaceObject = {};
2478  __webpack_require__.r(build_module_separator_namespaceObject);
2479  __webpack_require__.d(build_module_separator_namespaceObject, "metadata", function() { return separator_metadata; });
2480  __webpack_require__.d(build_module_separator_namespaceObject, "name", function() { return separator_name; });
2481  __webpack_require__.d(build_module_separator_namespaceObject, "settings", function() { return build_module_separator_settings; });
2482  
2483  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js
2484  var build_module_shortcode_namespaceObject = {};
2485  __webpack_require__.r(build_module_shortcode_namespaceObject);
2486  __webpack_require__.d(build_module_shortcode_namespaceObject, "metadata", function() { return shortcode_metadata; });
2487  __webpack_require__.d(build_module_shortcode_namespaceObject, "name", function() { return shortcode_name; });
2488  __webpack_require__.d(build_module_shortcode_namespaceObject, "settings", function() { return shortcode_settings; });
2489  
2490  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/spacer/index.js
2491  var spacer_namespaceObject = {};
2492  __webpack_require__.r(spacer_namespaceObject);
2493  __webpack_require__.d(spacer_namespaceObject, "metadata", function() { return spacer_metadata; });
2494  __webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; });
2495  __webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; });
2496  
2497  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/table/index.js
2498  var build_module_table_namespaceObject = {};
2499  __webpack_require__.r(build_module_table_namespaceObject);
2500  __webpack_require__.d(build_module_table_namespaceObject, "metadata", function() { return table_metadata; });
2501  __webpack_require__.d(build_module_table_namespaceObject, "name", function() { return table_name; });
2502  __webpack_require__.d(build_module_table_namespaceObject, "settings", function() { return table_settings; });
2503  
2504  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js
2505  var text_columns_namespaceObject = {};
2506  __webpack_require__.r(text_columns_namespaceObject);
2507  __webpack_require__.d(text_columns_namespaceObject, "metadata", function() { return text_columns_metadata; });
2508  __webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; });
2509  __webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; });
2510  
2511  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/verse/index.js
2512  var build_module_verse_namespaceObject = {};
2513  __webpack_require__.r(build_module_verse_namespaceObject);
2514  __webpack_require__.d(build_module_verse_namespaceObject, "metadata", function() { return verse_metadata; });
2515  __webpack_require__.d(build_module_verse_namespaceObject, "name", function() { return verse_name; });
2516  __webpack_require__.d(build_module_verse_namespaceObject, "settings", function() { return verse_settings; });
2517  
2518  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/video/index.js
2519  var build_module_video_namespaceObject = {};
2520  __webpack_require__.r(build_module_video_namespaceObject);
2521  __webpack_require__.d(build_module_video_namespaceObject, "metadata", function() { return video_metadata; });
2522  __webpack_require__.d(build_module_video_namespaceObject, "name", function() { return video_name; });
2523  __webpack_require__.d(build_module_video_namespaceObject, "settings", function() { return video_settings; });
2524  
2525  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js
2526  var tag_cloud_namespaceObject = {};
2527  __webpack_require__.r(tag_cloud_namespaceObject);
2528  __webpack_require__.d(tag_cloud_namespaceObject, "metadata", function() { return tag_cloud_metadata; });
2529  __webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; });
2530  __webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; });
2531  
2532  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/freeform/index.js
2533  var freeform_namespaceObject = {};
2534  __webpack_require__.r(freeform_namespaceObject);
2535  __webpack_require__.d(freeform_namespaceObject, "metadata", function() { return freeform_metadata; });
2536  __webpack_require__.d(freeform_namespaceObject, "name", function() { return freeform_name; });
2537  __webpack_require__.d(freeform_namespaceObject, "settings", function() { return freeform_settings; });
2538  
2539  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-links/index.js
2540  var social_links_namespaceObject = {};
2541  __webpack_require__.r(social_links_namespaceObject);
2542  __webpack_require__.d(social_links_namespaceObject, "metadata", function() { return social_links_metadata; });
2543  __webpack_require__.d(social_links_namespaceObject, "name", function() { return social_links_name; });
2544  __webpack_require__.d(social_links_namespaceObject, "settings", function() { return social_links_settings; });
2545  
2546  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-link/index.js
2547  var social_link_namespaceObject = {};
2548  __webpack_require__.r(social_link_namespaceObject);
2549  __webpack_require__.d(social_link_namespaceObject, "metadata", function() { return social_link_metadata; });
2550  __webpack_require__.d(social_link_namespaceObject, "name", function() { return social_link_name; });
2551  __webpack_require__.d(social_link_namespaceObject, "settings", function() { return social_link_settings; });
2552  
2553  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
2554  var toConsumableArray = __webpack_require__(15);
2555  
2556  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
2557  var defineProperty = __webpack_require__(5);
2558  
2559  // EXTERNAL MODULE: external ["wp","coreData"]
2560  var external_wp_coreData_ = __webpack_require__(37);
2561  
2562  // EXTERNAL MODULE: external ["wp","blockEditor"]
2563  var external_wp_blockEditor_ = __webpack_require__(6);
2564  
2565  // EXTERNAL MODULE: external ["wp","blocks"]
2566  var external_wp_blocks_ = __webpack_require__(9);
2567  
2568  // EXTERNAL MODULE: external "lodash"
2569  var external_lodash_ = __webpack_require__(2);
2570  
2571  // EXTERNAL MODULE: external ["wp","i18n"]
2572  var external_wp_i18n_ = __webpack_require__(1);
2573  
2574  // EXTERNAL MODULE: external ["wp","element"]
2575  var external_wp_element_ = __webpack_require__(0);
2576  
2577  // EXTERNAL MODULE: external ["wp","primitives"]
2578  var external_wp_primitives_ = __webpack_require__(7);
2579  
2580  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js
2581  
2582  
2583  /**
2584   * WordPress dependencies
2585   */
2586  
2587  var paragraph = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
2588    xmlns: "http://www.w3.org/2000/svg",
2589    viewBox: "0 0 24 24"
2590  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
2591    d: "M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"
2592  }));
2593  /* harmony default export */ var library_paragraph = (paragraph);
2594  
2595  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2596  var classnames = __webpack_require__(10);
2597  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2598  
2599  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js
2600  
2601  
2602  
2603  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2604  
2605  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2606  
2607  /**
2608   * External dependencies
2609   */
2610  
2611  
2612  /**
2613   * WordPress dependencies
2614   */
2615  
2616  
2617  
2618  var supports = {
2619    className: false
2620  };
2621  var deprecated_blockAttributes = {
2622    align: {
2623      type: 'string'
2624    },
2625    content: {
2626      type: 'string',
2627      source: 'html',
2628      selector: 'p',
2629      default: ''
2630    },
2631    dropCap: {
2632      type: 'boolean',
2633      default: false
2634    },
2635    placeholder: {
2636      type: 'string'
2637    },
2638    textColor: {
2639      type: 'string'
2640    },
2641    backgroundColor: {
2642      type: 'string'
2643    },
2644    fontSize: {
2645      type: 'string'
2646    },
2647    direction: {
2648      type: 'string',
2649      enum: ['ltr', 'rtl']
2650    },
2651    style: {
2652      type: 'object'
2653    }
2654  };
2655  
2656  var deprecated_migrateCustomColorsAndFontSizes = function migrateCustomColorsAndFontSizes(attributes) {
2657    if (!attributes.customTextColor && !attributes.customBackgroundColor && !attributes.customFontSize) {
2658      return attributes;
2659    }
2660  
2661    var style = {};
2662  
2663    if (attributes.customTextColor || attributes.customBackgroundColor) {
2664      style.color = {};
2665    }
2666  
2667    if (attributes.customTextColor) {
2668      style.color.text = attributes.customTextColor;
2669    }
2670  
2671    if (attributes.customBackgroundColor) {
2672      style.color.background = attributes.customBackgroundColor;
2673    }
2674  
2675    if (attributes.customFontSize) {
2676      style.typography = {
2677        fontSize: attributes.customFontSize
2678      };
2679    }
2680  
2681    return _objectSpread(_objectSpread({}, Object(external_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customFontSize'])), {}, {
2682      style: style
2683    });
2684  };
2685  
2686  var deprecated = [{
2687    supports: supports,
2688    attributes: _objectSpread(_objectSpread({}, Object(external_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, {
2689      customTextColor: {
2690        type: 'string'
2691      },
2692      customBackgroundColor: {
2693        type: 'string'
2694      },
2695      customFontSize: {
2696        type: 'number'
2697      }
2698    }),
2699    migrate: deprecated_migrateCustomColorsAndFontSizes,
2700    save: function save(_ref) {
2701      var _classnames;
2702  
2703      var attributes = _ref.attributes;
2704      var align = attributes.align,
2705          content = attributes.content,
2706          dropCap = attributes.dropCap,
2707          backgroundColor = attributes.backgroundColor,
2708          textColor = attributes.textColor,
2709          customBackgroundColor = attributes.customBackgroundColor,
2710          customTextColor = attributes.customTextColor,
2711          fontSize = attributes.fontSize,
2712          customFontSize = attributes.customFontSize,
2713          direction = attributes.direction;
2714      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
2715      var backgroundClass = Object(external_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2716      var fontSizeClass = Object(external_wp_blockEditor_["getFontSizeClass"])(fontSize);
2717      var className = classnames_default()((_classnames = {
2718        'has-text-color': textColor || customTextColor,
2719        'has-background': backgroundColor || customBackgroundColor,
2720        'has-drop-cap': dropCap
2721      }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
2722      var styles = {
2723        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2724        color: textClass ? undefined : customTextColor,
2725        fontSize: fontSizeClass ? undefined : customFontSize
2726      };
2727      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
2728        tagName: "p",
2729        style: styles,
2730        className: className ? className : undefined,
2731        value: content,
2732        dir: direction
2733      });
2734    }
2735  }, {
2736    supports: supports,
2737    attributes: _objectSpread(_objectSpread({}, Object(external_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, {
2738      customTextColor: {
2739        type: 'string'
2740      },
2741      customBackgroundColor: {
2742        type: 'string'
2743      },
2744      customFontSize: {
2745        type: 'number'
2746      }
2747    }),
2748    migrate: deprecated_migrateCustomColorsAndFontSizes,
2749    save: function save(_ref2) {
2750      var _classnames2;
2751  
2752      var attributes = _ref2.attributes;
2753      var align = attributes.align,
2754          content = attributes.content,
2755          dropCap = attributes.dropCap,
2756          backgroundColor = attributes.backgroundColor,
2757          textColor = attributes.textColor,
2758          customBackgroundColor = attributes.customBackgroundColor,
2759          customTextColor = attributes.customTextColor,
2760          fontSize = attributes.fontSize,
2761          customFontSize = attributes.customFontSize,
2762          direction = attributes.direction;
2763      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
2764      var backgroundClass = Object(external_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2765      var fontSizeClass = Object(external_wp_blockEditor_["getFontSizeClass"])(fontSize);
2766      var className = classnames_default()((_classnames2 = {
2767        'has-text-color': textColor || customTextColor,
2768        'has-background': backgroundColor || customBackgroundColor,
2769        'has-drop-cap': dropCap
2770      }, Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2));
2771      var styles = {
2772        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2773        color: textClass ? undefined : customTextColor,
2774        fontSize: fontSizeClass ? undefined : customFontSize,
2775        textAlign: align
2776      };
2777      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
2778        tagName: "p",
2779        style: styles,
2780        className: className ? className : undefined,
2781        value: content,
2782        dir: direction
2783      });
2784    }
2785  }, {
2786    supports: supports,
2787    attributes: _objectSpread(_objectSpread({}, Object(external_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, {
2788      customTextColor: {
2789        type: 'string'
2790      },
2791      customBackgroundColor: {
2792        type: 'string'
2793      },
2794      customFontSize: {
2795        type: 'number'
2796      },
2797      width: {
2798        type: 'string'
2799      }
2800    }),
2801    migrate: deprecated_migrateCustomColorsAndFontSizes,
2802    save: function save(_ref3) {
2803      var _classnames3;
2804  
2805      var attributes = _ref3.attributes;
2806      var width = attributes.width,
2807          align = attributes.align,
2808          content = attributes.content,
2809          dropCap = attributes.dropCap,
2810          backgroundColor = attributes.backgroundColor,
2811          textColor = attributes.textColor,
2812          customBackgroundColor = attributes.customBackgroundColor,
2813          customTextColor = attributes.customTextColor,
2814          fontSize = attributes.fontSize,
2815          customFontSize = attributes.customFontSize;
2816      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
2817      var backgroundClass = Object(external_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2818      var fontSizeClass = fontSize && "is-".concat(fontSize, "-text");
2819      var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames3, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3));
2820      var styles = {
2821        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2822        color: textClass ? undefined : customTextColor,
2823        fontSize: fontSizeClass ? undefined : customFontSize,
2824        textAlign: align
2825      };
2826      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
2827        tagName: "p",
2828        style: styles,
2829        className: className ? className : undefined,
2830        value: content
2831      });
2832    }
2833  }, {
2834    supports: supports,
2835    attributes: Object(external_lodash_["omit"])(_objectSpread(_objectSpread({}, deprecated_blockAttributes), {}, {
2836      fontSize: {
2837        type: 'number'
2838      }
2839    }), ['style']),
2840    save: function save(_ref4) {
2841      var _classnames4;
2842  
2843      var attributes = _ref4.attributes;
2844      var width = attributes.width,
2845          align = attributes.align,
2846          content = attributes.content,
2847          dropCap = attributes.dropCap,
2848          backgroundColor = attributes.backgroundColor,
2849          textColor = attributes.textColor,
2850          fontSize = attributes.fontSize;
2851      var className = classnames_default()((_classnames4 = {}, Object(defineProperty["a" /* default */])(_classnames4, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames4, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames4, 'has-drop-cap', dropCap), _classnames4));
2852      var styles = {
2853        backgroundColor: backgroundColor,
2854        color: textColor,
2855        fontSize: fontSize,
2856        textAlign: align
2857      };
2858      return Object(external_wp_element_["createElement"])("p", {
2859        style: styles,
2860        className: className ? className : undefined
2861      }, content);
2862    },
2863    migrate: function migrate(attributes) {
2864      return deprecated_migrateCustomColorsAndFontSizes(Object(external_lodash_["omit"])(_objectSpread(_objectSpread({}, attributes), {}, {
2865        customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined,
2866        customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
2867        customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined
2868      })), ['fontSize', 'textColor', 'backgroundColor', 'style']);
2869    }
2870  }, {
2871    supports: supports,
2872    attributes: _objectSpread(_objectSpread({}, deprecated_blockAttributes), {}, {
2873      content: {
2874        type: 'string',
2875        source: 'html',
2876        default: ''
2877      }
2878    }),
2879    save: function save(_ref5) {
2880      var attributes = _ref5.attributes;
2881      return Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, attributes.content);
2882    },
2883    migrate: function migrate(attributes) {
2884      return attributes;
2885    }
2886  }];
2887  /* harmony default export */ var paragraph_deprecated = (deprecated);
2888  
2889  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2890  var esm_extends = __webpack_require__(8);
2891  
2892  // EXTERNAL MODULE: external ["wp","components"]
2893  var external_wp_components_ = __webpack_require__(3);
2894  
2895  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-ltr.js
2896  
2897  
2898  /**
2899   * WordPress dependencies
2900   */
2901  
2902  var formatLtr = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
2903    xmlns: "http://www.w3.org/2000/svg",
2904    viewBox: "-2 -2 24 24"
2905  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
2906    d: "M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"
2907  }));
2908  /* harmony default export */ var format_ltr = (formatLtr);
2909  
2910  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js
2911  
2912  
2913  
2914  
2915  function edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2916  
2917  function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2918  
2919  /**
2920   * External dependencies
2921   */
2922  
2923  /**
2924   * WordPress dependencies
2925   */
2926  
2927  
2928  
2929  
2930  
2931  
2932  var edit_name = 'core/paragraph';
2933  
2934  function ParagraphRTLControl(_ref) {
2935    var direction = _ref.direction,
2936        setDirection = _ref.setDirection;
2937    return Object(external_wp_i18n_["isRTL"])() && Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], {
2938      isToolbarButton: true,
2939      controls: [{
2940        icon: format_ltr,
2941        title: Object(external_wp_i18n_["_x"])('Left to right', 'editor button'),
2942        isActive: direction === 'ltr',
2943        onClick: function onClick() {
2944          setDirection(direction === 'ltr' ? undefined : 'ltr');
2945        }
2946      }]
2947    });
2948  }
2949  
2950  function ParagraphBlock(_ref2) {
2951    var attributes = _ref2.attributes,
2952        mergeBlocks = _ref2.mergeBlocks,
2953        onReplace = _ref2.onReplace,
2954        onRemove = _ref2.onRemove,
2955        setAttributes = _ref2.setAttributes,
2956        clientId = _ref2.clientId;
2957    var align = attributes.align,
2958        content = attributes.content,
2959        direction = attributes.direction,
2960        dropCap = attributes.dropCap,
2961        placeholder = attributes.placeholder;
2962    var isDropCapFeatureEnabled = Object(external_wp_blockEditor_["__experimentalUseEditorFeature"])('typography.dropCap');
2963    var blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
2964      className: classnames_default()(Object(defineProperty["a" /* default */])({
2965        'has-drop-cap': dropCap
2966      }, "has-text-align-".concat(align), align)),
2967      style: {
2968        direction: direction
2969      }
2970    });
2971    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
2972      group: "block"
2973    }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["AlignmentControl"], {
2974      value: align,
2975      onChange: function onChange(newAlign) {
2976        return setAttributes({
2977          align: newAlign
2978        });
2979      }
2980    }), Object(external_wp_element_["createElement"])(ParagraphRTLControl, {
2981      direction: direction,
2982      setDirection: function setDirection(newDirection) {
2983        return setAttributes({
2984          direction: newDirection
2985        });
2986      }
2987    })), isDropCapFeatureEnabled && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
2988      title: Object(external_wp_i18n_["__"])('Text settings')
2989    }, Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
2990      label: Object(external_wp_i18n_["__"])('Drop cap'),
2991      checked: !!dropCap,
2992      onChange: function onChange() {
2993        return setAttributes({
2994          dropCap: !dropCap
2995        });
2996      },
2997      help: dropCap ? Object(external_wp_i18n_["__"])('Showing large initial letter.') : Object(external_wp_i18n_["__"])('Toggle to show a large initial letter.')
2998    }))), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({
2999      identifier: "content",
3000      tagName: "p"
3001    }, blockProps, {
3002      value: content,
3003      onChange: function onChange(newContent) {
3004        return setAttributes({
3005          content: newContent
3006        });
3007      },
3008      onSplit: function onSplit(value, isOriginal) {
3009        var newAttributes;
3010  
3011        if (isOriginal || value) {
3012          newAttributes = edit_objectSpread(edit_objectSpread({}, attributes), {}, {
3013            content: value
3014          });
3015        }
3016  
3017        var block = Object(external_wp_blocks_["createBlock"])(edit_name, newAttributes);
3018  
3019        if (isOriginal) {
3020          block.clientId = clientId;
3021        }
3022  
3023        return block;
3024      },
3025      onMerge: mergeBlocks,
3026      onReplace: onReplace,
3027      onRemove: onRemove,
3028      "aria-label": content ? Object(external_wp_i18n_["__"])('Paragraph block') : Object(external_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'),
3029      "data-empty": content ? false : true,
3030      placeholder: placeholder || Object(external_wp_i18n_["__"])('Type / to choose a block'),
3031      __unstableEmbedURLOnPaste: true,
3032      __unstableAllowPrefixTransformations: true
3033    })));
3034  }
3035  
3036  /* harmony default export */ var edit = (ParagraphBlock);
3037  
3038  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js
3039  
3040  
3041  
3042  /**
3043   * External dependencies
3044   */
3045  
3046  /**
3047   * WordPress dependencies
3048   */
3049  
3050  
3051  function save_save(_ref) {
3052    var attributes = _ref.attributes;
3053    var align = attributes.align,
3054        content = attributes.content,
3055        dropCap = attributes.dropCap,
3056        direction = attributes.direction;
3057    var className = classnames_default()(Object(defineProperty["a" /* default */])({
3058      'has-drop-cap': dropCap
3059    }, "has-text-align-".concat(align), align));
3060    return Object(external_wp_element_["createElement"])("p", external_wp_blockEditor_["useBlockProps"].save({
3061      className: className,
3062      dir: direction
3063    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
3064      value: content
3065    }));
3066  }
3067  
3068  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js
3069  /**
3070   * WordPress dependencies
3071   */
3072  
3073  /**
3074   * Internal dependencies
3075   */
3076  
3077  var _apiVersion$name$cate = {
3078    apiVersion: 2,
3079    name: "core/paragraph",
3080    category: "text",
3081    attributes: {
3082      align: {
3083        type: "string"
3084      },
3085      content: {
3086        type: "string",
3087        source: "html",
3088        selector: "p",
3089        "default": "",
3090        __experimentalRole: "content"
3091      },
3092      dropCap: {
3093        type: "boolean",
3094        "default": false
3095      },
3096      placeholder: {
3097        type: "string"
3098      },
3099      direction: {
3100        type: "string",
3101        "enum": ["ltr", "rtl"]
3102      }
3103    },
3104    supports: {
3105      anchor: true,
3106      className: false,
3107      color: {
3108        link: true
3109      },
3110      fontSize: true,
3111      lineHeight: true,
3112      __experimentalSelector: "p",
3113      __unstablePasteTextInline: true
3114    },
3115    editorStyle: "wp-block-paragraph-editor",
3116    style: "wp-block-paragraph"
3117  },
3118      transforms_name = _apiVersion$name$cate.name;
3119  var transforms = {
3120    from: [{
3121      type: 'raw',
3122      // Paragraph is a fallback and should be matched last.
3123      priority: 20,
3124      selector: 'p',
3125      schema: function schema(_ref) {
3126        var phrasingContentSchema = _ref.phrasingContentSchema,
3127            isPaste = _ref.isPaste;
3128        return {
3129          p: {
3130            children: phrasingContentSchema,
3131            attributes: isPaste ? [] : ['style', 'id']
3132          }
3133        };
3134      },
3135      transform: function transform(node) {
3136        var attributes = Object(external_wp_blocks_["getBlockAttributes"])(transforms_name, node.outerHTML);
3137  
3138        var _ref2 = node.style || {},
3139            textAlign = _ref2.textAlign;
3140  
3141        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
3142          attributes.align = textAlign;
3143        }
3144  
3145        return Object(external_wp_blocks_["createBlock"])(transforms_name, attributes);
3146      }
3147    }]
3148  };
3149  /* harmony default export */ var paragraph_transforms = (transforms);
3150  
3151  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
3152  /**
3153   * External dependencies
3154   */
3155  
3156  /**
3157   * WordPress dependencies
3158   */
3159  
3160  
3161  
3162  /**
3163   * Internal dependencies
3164   */
3165  
3166  
3167  
3168  var paragraph_metadata = {
3169    apiVersion: 2,
3170    name: "core/paragraph",
3171    category: "text",
3172    attributes: {
3173      align: {
3174        type: "string"
3175      },
3176      content: {
3177        type: "string",
3178        source: "html",
3179        selector: "p",
3180        "default": "",
3181        __experimentalRole: "content"
3182      },
3183      dropCap: {
3184        type: "boolean",
3185        "default": false
3186      },
3187      placeholder: {
3188        type: "string"
3189      },
3190      direction: {
3191        type: "string",
3192        "enum": ["ltr", "rtl"]
3193      }
3194    },
3195    supports: {
3196      anchor: true,
3197      className: false,
3198      color: {
3199        link: true
3200      },
3201      fontSize: true,
3202      lineHeight: true,
3203      __experimentalSelector: "p",
3204      __unstablePasteTextInline: true
3205    },
3206    editorStyle: "wp-block-paragraph-editor",
3207    style: "wp-block-paragraph"
3208  };
3209  
3210  
3211  var paragraph_name = paragraph_metadata.name;
3212  
3213  var paragraph_settings = {
3214    title: Object(external_wp_i18n_["_x"])('Paragraph', 'block title'),
3215    description: Object(external_wp_i18n_["__"])('Start with the building block of all narrative.'),
3216    icon: library_paragraph,
3217    keywords: [Object(external_wp_i18n_["__"])('text')],
3218    example: {
3219      attributes: {
3220        content: Object(external_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'),
3221        style: {
3222          typography: {
3223            fontSize: 28
3224          }
3225        },
3226        dropCap: true
3227      }
3228    },
3229    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
3230      var context = _ref.context;
3231  
3232      if (context === 'accessibility') {
3233        var content = attributes.content;
3234        return Object(external_lodash_["isEmpty"])(content) ? Object(external_wp_i18n_["__"])('Empty') : content;
3235      }
3236    },
3237    transforms: paragraph_transforms,
3238    deprecated: paragraph_deprecated,
3239    merge: function merge(attributes, attributesToMerge) {
3240      return {
3241        content: (attributes.content || '') + (attributesToMerge.content || '')
3242      };
3243    },
3244    edit: edit,
3245    save: save_save
3246  };
3247  
3248  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/image.js
3249  
3250  
3251  /**
3252   * WordPress dependencies
3253   */
3254  
3255  var image_image = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
3256    viewBox: "0 0 24 24",
3257    xmlns: "http://www.w3.org/2000/svg"
3258  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
3259    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"
3260  }));
3261  /* harmony default export */ var library_image = (image_image);
3262  
3263  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js
3264  
3265  
3266  
3267  
3268  /**
3269   * External dependencies
3270   */
3271  
3272  /**
3273   * WordPress dependencies
3274   */
3275  
3276  
3277  var image_deprecated_blockAttributes = {
3278    align: {
3279      type: 'string'
3280    },
3281    url: {
3282      type: 'string',
3283      source: 'attribute',
3284      selector: 'img',
3285      attribute: 'src'
3286    },
3287    alt: {
3288      type: 'string',
3289      source: 'attribute',
3290      selector: 'img',
3291      attribute: 'alt',
3292      default: ''
3293    },
3294    caption: {
3295      type: 'string',
3296      source: 'html',
3297      selector: 'figcaption'
3298    },
3299    href: {
3300      type: 'string',
3301      source: 'attribute',
3302      selector: 'figure > a',
3303      attribute: 'href'
3304    },
3305    rel: {
3306      type: 'string',
3307      source: 'attribute',
3308      selector: 'figure > a',
3309      attribute: 'rel'
3310    },
3311    linkClass: {
3312      type: 'string',
3313      source: 'attribute',
3314      selector: 'figure > a',
3315      attribute: 'class'
3316    },
3317    id: {
3318      type: 'number'
3319    },
3320    width: {
3321      type: 'number'
3322    },
3323    height: {
3324      type: 'number'
3325    },
3326    linkDestination: {
3327      type: 'string'
3328    },
3329    linkTarget: {
3330      type: 'string',
3331      source: 'attribute',
3332      selector: 'figure > a',
3333      attribute: 'target'
3334    }
3335  };
3336  var deprecated_deprecated = [{
3337    attributes: image_deprecated_blockAttributes,
3338    save: function save(_ref) {
3339      var _classnames;
3340  
3341      var attributes = _ref.attributes;
3342      var url = attributes.url,
3343          alt = attributes.alt,
3344          caption = attributes.caption,
3345          align = attributes.align,
3346          href = attributes.href,
3347          width = attributes.width,
3348          height = attributes.height,
3349          id = attributes.id;
3350      var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
3351      var image = Object(external_wp_element_["createElement"])("img", {
3352        src: url,
3353        alt: alt,
3354        className: id ? "wp-image-".concat(id) : null,
3355        width: width,
3356        height: height
3357      });
3358      return Object(external_wp_element_["createElement"])("figure", {
3359        className: classes
3360      }, href ? Object(external_wp_element_["createElement"])("a", {
3361        href: href
3362      }, image) : image, !external_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
3363        tagName: "figcaption",
3364        value: caption
3365      }));
3366    }
3367  }, {
3368    attributes: image_deprecated_blockAttributes,
3369    save: function save(_ref2) {
3370      var attributes = _ref2.attributes;
3371      var url = attributes.url,
3372          alt = attributes.alt,
3373          caption = attributes.caption,
3374          align = attributes.align,
3375          href = attributes.href,
3376          width = attributes.width,
3377          height = attributes.height,
3378          id = attributes.id;
3379      var image = Object(external_wp_element_["createElement"])("img", {
3380        src: url,
3381        alt: alt,
3382        className: id ? "wp-image-".concat(id) : null,
3383        width: width,
3384        height: height
3385      });
3386      return Object(external_wp_element_["createElement"])("figure", {
3387        className: align ? "align".concat(align) : null
3388      }, href ? Object(external_wp_element_["createElement"])("a", {
3389        href: href
3390      }, image) : image, !external_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
3391        tagName: "figcaption",
3392        value: caption
3393      }));
3394    }
3395  }, {
3396    attributes: image_deprecated_blockAttributes,
3397    save: function save(_ref3) {
3398      var attributes = _ref3.attributes;
3399      var url = attributes.url,
3400          alt = attributes.alt,
3401          caption = attributes.caption,
3402          align = attributes.align,
3403          href = attributes.href,
3404          width = attributes.width,
3405          height = attributes.height;
3406      var extraImageProps = width || height ? {
3407        width: width,
3408        height: height
3409      } : {};
3410      var image = Object(external_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
3411        src: url,
3412        alt: alt
3413      }, extraImageProps));
3414      var figureStyle = {};
3415  
3416      if (width) {
3417        figureStyle = {
3418          width: width
3419        };
3420      } else if (align === 'left' || align === 'right') {
3421        figureStyle = {
3422          maxWidth: '50%'
3423        };
3424      }
3425  
3426      return Object(external_wp_element_["createElement"])("figure", {
3427        className: align ? "align".concat(align) : null,
3428        style: figureStyle
3429      }, href ? Object(external_wp_element_["createElement"])("a", {
3430        href: href
3431      }, image) : image, !external_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
3432        tagName: "figcaption",
3433        value: caption
3434      }));
3435    }
3436  }];
3437  /* harmony default export */ var image_deprecated = (deprecated_deprecated);
3438  
3439  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
3440  var slicedToArray = __webpack_require__(12);
3441  
3442  // EXTERNAL MODULE: external ["wp","blob"]
3443  var external_wp_blob_ = __webpack_require__(43);
3444  
3445  // EXTERNAL MODULE: external ["wp","data"]
3446  var external_wp_data_ = __webpack_require__(4);
3447  
3448  // EXTERNAL MODULE: external ["wp","compose"]
3449  var external_wp_compose_ = __webpack_require__(11);
3450  
3451  // EXTERNAL MODULE: external ["wp","url"]
3452  var external_wp_url_ = __webpack_require__(29);
3453  
3454  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js
3455  
3456  
3457  /**
3458   * WordPress dependencies
3459   */
3460  
3461  var crop_crop = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
3462    xmlns: "http://www.w3.org/2000/svg",
3463    viewBox: "0 0 24 24"
3464  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
3465    d: "M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"
3466  }));
3467  /* harmony default export */ var library_crop = (crop_crop);
3468  
3469  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
3470  var upload = __webpack_require__(224);
3471  
3472  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/overlay-text.js
3473  
3474  
3475  /**
3476   * WordPress dependencies
3477   */
3478  
3479  var overlayText = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
3480    xmlns: "http://www.w3.org/2000/svg",
3481    viewBox: "0 0 24 24"
3482  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
3483    d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"
3484  }));
3485  /* harmony default export */ var overlay_text = (overlayText);
3486  
3487  // EXTERNAL MODULE: external ["wp","notices"]
3488  var external_wp_notices_ = __webpack_require__(51);
3489  
3490  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js
3491  var ASPECT_RATIOS = [// Common video resolutions.
3492  {
3493    ratio: '2.33',
3494    className: 'wp-embed-aspect-21-9'
3495  }, {
3496    ratio: '2.00',
3497    className: 'wp-embed-aspect-18-9'
3498  }, {
3499    ratio: '1.78',
3500    className: 'wp-embed-aspect-16-9'
3501  }, {
3502    ratio: '1.33',
3503    className: 'wp-embed-aspect-4-3'
3504  }, // Vertical video and instagram square video support.
3505  {
3506    ratio: '1.00',
3507    className: 'wp-embed-aspect-1-1'
3508  }, {
3509    ratio: '0.56',
3510    className: 'wp-embed-aspect-9-16'
3511  }, {
3512    ratio: '0.50',
3513    className: 'wp-embed-aspect-1-2'
3514  }];
3515  var WP_EMBED_TYPE = 'wp-embed';
3516  
3517  // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
3518  var dedupe = __webpack_require__(121);
3519  var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe);
3520  
3521  // EXTERNAL MODULE: ./node_modules/memize/index.js
3522  var memize = __webpack_require__(68);
3523  var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
3524  
3525  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
3526  
3527  
3528  
3529  function util_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3530  
3531  function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { util_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { util_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3532  
3533  /**
3534   * Internal dependencies
3535   */
3536  
3537  /**
3538   * External dependencies
3539   */
3540  
3541  
3542  
3543  
3544  /**
3545   * WordPress dependencies
3546   */
3547  
3548  
3549  
3550  /**
3551   * Internal dependencies
3552   */
3553  
3554  var util_metadata = {
3555    apiVersion: 2,
3556    name: "core/embed",
3557    category: "embed",
3558    attributes: {
3559      url: {
3560        type: "string"
3561      },
3562      caption: {
3563        type: "string",
3564        source: "html",
3565        selector: "figcaption"
3566      },
3567      type: {
3568        type: "string"
3569      },
3570      providerNameSlug: {
3571        type: "string"
3572      },
3573      allowResponsive: {
3574        type: "boolean",
3575        "default": true
3576      },
3577      responsive: {
3578        type: "boolean",
3579        "default": false
3580      },
3581      previewable: {
3582        type: "boolean",
3583        "default": true
3584      }
3585    },
3586    supports: {
3587      align: true
3588    },
3589    editorStyle: "wp-block-embed-editor",
3590    style: "wp-block-embed"
3591  };
3592  var DEFAULT_EMBED_BLOCK = util_metadata.name;
3593  /** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */
3594  
3595  /**
3596   * Returns the embed block's information by matching the provided service provider
3597   *
3598   * @param {string} provider The embed block's provider
3599   * @return {WPBlockVariation} The embed block's information
3600   */
3601  
3602  var util_getEmbedInfoByProvider = function getEmbedInfoByProvider(provider) {
3603    var _getBlockVariations;
3604  
3605    return (_getBlockVariations = Object(external_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations === void 0 ? void 0 : _getBlockVariations.find(function (_ref) {
3606      var name = _ref.name;
3607      return name === provider;
3608    });
3609  };
3610  /**
3611   * Returns true if any of the regular expressions match the URL.
3612   *
3613   * @param {string}   url      The URL to test.
3614   * @param {Array}    patterns The list of regular expressions to test agains.
3615   * @return {boolean} True if any of the regular expressions match the URL.
3616   */
3617  
3618  var matchesPatterns = function matchesPatterns(url) {
3619    var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3620    return patterns.some(function (pattern) {
3621      return url.match(pattern);
3622    });
3623  };
3624  /**
3625   * Finds the block variation that should be used for the URL,
3626   * based on the provided URL and the variation's patterns.
3627   *
3628   * @param {string}  url The URL to test.
3629   * @return {WPBlockVariation} The block variation that should be used for this URL
3630   */
3631  
3632  var util_findMoreSuitableBlock = function findMoreSuitableBlock(url) {
3633    var _getBlockVariations2;
3634  
3635    return (_getBlockVariations2 = Object(external_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations2 === void 0 ? void 0 : _getBlockVariations2.find(function (_ref2) {
3636      var patterns = _ref2.patterns;
3637      return matchesPatterns(url, patterns);
3638    });
3639  };
3640  var isFromWordPress = function isFromWordPress(html) {
3641    return html && html.includes('class="wp-embedded-content"');
3642  };
3643  var util_getPhotoHtml = function getPhotoHtml(photo) {
3644    // 100% width for the preview so it fits nicely into the document, some "thumbnails" are
3645    // actually the full size photo. If thumbnails not found, use full image.
3646    var imageUrl = photo.thumbnail_url || photo.url;
3647    var photoPreview = Object(external_wp_element_["createElement"])("p", null, Object(external_wp_element_["createElement"])("img", {
3648      src: imageUrl,
3649      alt: photo.title,
3650      width: "100%"
3651    }));
3652    return Object(external_wp_element_["renderToString"])(photoPreview);
3653  };
3654  /**
3655   * Creates a more suitable embed block based on the passed in props
3656   * and attributes generated from an embed block's preview.
3657   *
3658   * We require `attributesFromPreview` to be generated from the latest attributes
3659   * and preview, and because of the way the react lifecycle operates, we can't
3660   * guarantee that the attributes contained in the block's props are the latest
3661   * versions, so we require that these are generated separately.
3662   * See `getAttributesFromPreview` in the generated embed edit component.
3663   *
3664   * @param {Object} props                  The block's props.
3665   * @param {Object} [attributesFromPreview]  Attributes generated from the block's most up to date preview.
3666   * @return {Object|undefined} A more suitable embed block if one exists.
3667   */
3668  
3669  var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props) {
3670    var _getBlockVariations3;
3671  
3672    var attributesFromPreview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3673    var preview = props.preview,
3674        _props$attributes = props.attributes;
3675    _props$attributes = _props$attributes === void 0 ? {} : _props$attributes;
3676    var url = _props$attributes.url,
3677        providerNameSlug = _props$attributes.providerNameSlug,
3678        type = _props$attributes.type;
3679    if (!url || !Object(external_wp_blocks_["getBlockType"])(DEFAULT_EMBED_BLOCK)) return;
3680    var matchedBlock = util_findMoreSuitableBlock(url); // WordPress blocks can work on multiple sites, and so don't have patterns,
3681    // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL.
3682  
3683    var isCurrentBlockWP = providerNameSlug === 'wordpress' || type === WP_EMBED_TYPE; // if current block is not WordPress and a more suitable block found
3684    // that is different from the current one, create the new matched block
3685  
3686    var shouldCreateNewBlock = !isCurrentBlockWP && matchedBlock && (matchedBlock.attributes.providerNameSlug !== providerNameSlug || !providerNameSlug);
3687  
3688    if (shouldCreateNewBlock) {
3689      return Object(external_wp_blocks_["createBlock"])(DEFAULT_EMBED_BLOCK, util_objectSpread({
3690        url: url
3691      }, matchedBlock.attributes));
3692    }
3693  
3694    var wpVariation = (_getBlockVariations3 = Object(external_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations3 === void 0 ? void 0 : _getBlockVariations3.find(function (_ref3) {
3695      var name = _ref3.name;
3696      return name === 'wordpress';
3697    }); // We can't match the URL for WordPress embeds, we have to check the HTML instead.
3698  
3699    if (!wpVariation || !preview || !isFromWordPress(preview.html) || isCurrentBlockWP) {
3700      return;
3701    } // This is not the WordPress embed block so transform it into one.
3702  
3703  
3704    return Object(external_wp_blocks_["createBlock"])(DEFAULT_EMBED_BLOCK, util_objectSpread(util_objectSpread({
3705      url: url
3706    }, wpVariation.attributes), attributesFromPreview));
3707  };
3708  /**
3709   * Removes all previously set aspect ratio related classes and return the rest
3710   * existing class names.
3711   *
3712   * @param {string} existingClassNames Any existing class names.
3713   * @return {string} The class names without any aspect ratio related class.
3714   */
3715  
3716  var util_removeAspectRatioClasses = function removeAspectRatioClasses(existingClassNames) {
3717    if (!existingClassNames) {
3718      // Avoids extraneous work and also, by returning the same value as
3719      // received, ensures the post is not dirtied by a change of the block
3720      // attribute from `undefined` to an emtpy string.
3721      return existingClassNames;
3722    }
3723  
3724    var aspectRatioClassNames = ASPECT_RATIOS.reduce(function (accumulator, _ref4) {
3725      var className = _ref4.className;
3726      accumulator[className] = false;
3727      return accumulator;
3728    }, {
3729      'wp-has-aspect-ratio': false
3730    });
3731    return dedupe_default()(existingClassNames, aspectRatioClassNames);
3732  };
3733  /**
3734   * Returns class names with any relevant responsive aspect ratio names.
3735   *
3736   * @param {string}  html               The preview HTML that possibly contains an iframe with width and height set.
3737   * @param {string}  existingClassNames Any existing class names.
3738   * @param {boolean} allowResponsive    If the responsive class names should be added, or removed.
3739   * @return {string} Deduped class names.
3740   */
3741  
3742  function getClassNames(html, existingClassNames) {
3743    var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3744  
3745    if (!allowResponsive) {
3746      return util_removeAspectRatioClasses(existingClassNames);
3747    }
3748  
3749    var previewDocument = document.implementation.createHTMLDocument('');
3750    previewDocument.body.innerHTML = html;
3751    var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block.
3752  
3753    if (iframe && iframe.height && iframe.width) {
3754      var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it.
3755  
3756      for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) {
3757        var potentialRatio = ASPECT_RATIOS[ratioIndex];
3758  
3759        if (aspectRatio >= potentialRatio.ratio) {
3760          // Evaluate the difference between actual aspect ratio and closest match.
3761          // If the difference is too big, do not scale the embed according to aspect ratio.
3762          var ratioDiff = aspectRatio - potentialRatio.ratio;
3763  
3764          if (ratioDiff > 0.1) {
3765            // No close aspect ratio match found.
3766            return util_removeAspectRatioClasses(existingClassNames);
3767          } // Close aspect ratio match found.
3768  
3769  
3770          return dedupe_default()(util_removeAspectRatioClasses(existingClassNames), potentialRatio.className, 'wp-has-aspect-ratio');
3771        }
3772      }
3773    }
3774  
3775    return existingClassNames;
3776  }
3777  /**
3778   * Fallback behaviour for unembeddable URLs.
3779   * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
3780   *
3781   * @param {string}   url       The URL that could not be embedded.
3782   * @param {Function} onReplace Function to call with the created fallback block.
3783   */
3784  
3785  function util_fallback(url, onReplace) {
3786    var link = Object(external_wp_element_["createElement"])("a", {
3787      href: url
3788    }, url);
3789    onReplace(Object(external_wp_blocks_["createBlock"])('core/paragraph', {
3790      content: Object(external_wp_element_["renderToString"])(link)
3791    }));
3792  }
3793  /***
3794   * Gets block attributes based on the preview and responsive state.
3795   *
3796   * @param {Object} preview The preview data.
3797   * @param {string} title The block's title, e.g. Twitter.
3798   * @param {Object} currentClassNames The block's current class names.
3799   * @param {boolean} isResponsive Boolean indicating if the block supports responsive content.
3800   * @param {boolean} allowResponsive Apply responsive classes to fixed size content.
3801   * @return {Object} Attributes and values.
3802   */
3803  
3804  var getAttributesFromPreview = memize_default()(function (preview, title, currentClassNames, isResponsive) {
3805    var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
3806  
3807    if (!preview) {
3808      return {};
3809    }
3810  
3811    var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'.
3812  
3813    var _preview$type = preview.type,
3814        type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title,
3815    // because not all embed code gives us a provider name.
3816  
3817    var html = preview.html,
3818        providerName = preview.provider_name;
3819    var providerNameSlug = Object(external_lodash_["kebabCase"])((providerName || title).toLowerCase());
3820  
3821    if (isFromWordPress(html)) {
3822      type = WP_EMBED_TYPE;
3823    }
3824  
3825    if (html || 'photo' === type) {
3826      attributes.type = type;
3827      attributes.providerNameSlug = providerNameSlug;
3828    }
3829  
3830    attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive);
3831    return attributes;
3832  });
3833  
3834  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/use-client-width.js
3835  
3836  
3837  /**
3838   * WordPress dependencies
3839   */
3840  
3841  function useClientWidth(ref, dependencies) {
3842    var _useState = Object(external_wp_element_["useState"])(),
3843        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
3844        clientWidth = _useState2[0],
3845        setClientWidth = _useState2[1];
3846  
3847    function calculateClientWidth() {
3848      setClientWidth(ref.current.clientWidth);
3849    }
3850  
3851    Object(external_wp_element_["useEffect"])(calculateClientWidth, dependencies);
3852    Object(external_wp_element_["useEffect"])(function () {
3853      var defaultView = ref.current.ownerDocument.defaultView;
3854      defaultView.addEventListener('resize', calculateClientWidth);
3855      return function () {
3856        defaultView.removeEventListener('resize', calculateClientWidth);
3857      };
3858    }, []);
3859    return clientWidth;
3860  }
3861  
3862  // CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
3863  /*! *****************************************************************************

3864  Copyright (c) Microsoft Corporation.

3865  

3866  Permission to use, copy, modify, and/or distribute this software for any

3867  purpose with or without fee is hereby granted.

3868  

3869  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH

3870  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

3871  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,

3872  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM

3873  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR

3874  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR

3875  PERFORMANCE OF THIS SOFTWARE.

3876  ***************************************************************************** */
3877  /* global Reflect, Promise */

3878  
3879  var extendStatics = function(d, b) {
3880      extendStatics = Object.setPrototypeOf ||
3881          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3882          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3883      return extendStatics(d, b);
3884  };
3885  
3886  function __extends(d, b) {
3887      extendStatics(d, b);
3888      function __() { this.constructor = d; }
3889      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3890  }
3891  
3892  var __assign = function() {
3893      __assign = Object.assign || function __assign(t) {
3894          for (var s, i = 1, n = arguments.length; i < n; i++) {
3895              s = arguments[i];
3896              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3897          }
3898          return t;
3899      }
3900      return __assign.apply(this, arguments);
3901  }
3902  
3903  function __rest(s, e) {
3904      var t = {};
3905      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3906          t[p] = s[p];
3907      if (s != null && typeof Object.getOwnPropertySymbols === "function")
3908          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3909              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3910                  t[p[i]] = s[p[i]];
3911          }
3912      return t;
3913  }
3914  
3915  function __decorate(decorators, target, key, desc) {
3916      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3917      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3918      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3919      return c > 3 && r && Object.defineProperty(target, key, r), r;
3920  }
3921  
3922  function __param(paramIndex, decorator) {
3923      return function (target, key) { decorator(target, key, paramIndex); }
3924  }
3925  
3926  function __metadata(metadataKey, metadataValue) {
3927      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3928  }
3929  
3930  function __awaiter(thisArg, _arguments, P, generator) {
3931      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3932      return new (P || (P = Promise))(function (resolve, reject) {
3933          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3934          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3935          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3936          step((generator = generator.apply(thisArg, _arguments || [])).next());
3937      });
3938  }
3939  
3940  function __generator(thisArg, body) {
3941      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3942      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3943      function verb(n) { return function (v) { return step([n, v]); }; }
3944      function step(op) {
3945          if (f) throw new TypeError("Generator is already executing.");
3946          while (_) try {
3947              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
3948              if (y = 0, t) op = [op[0] & 2, t.value];
3949              switch (op[0]) {
3950                  case 0: case 1: t = op; break;
3951                  case 4: _.label++; return { value: op[1], done: false };
3952                  case 5: _.label++; y = op[1]; op = [0]; continue;
3953                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
3954                  default:
3955                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3956                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3957                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3958                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3959                      if (t[2]) _.ops.pop();
3960                      _.trys.pop(); continue;
3961              }
3962              op = body.call(thisArg, _);
3963          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3964          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3965      }
3966  }
3967  
3968  var __createBinding = Object.create ? (function(o, m, k, k2) {
3969      if (k2 === undefined) k2 = k;
3970      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3971  }) : (function(o, m, k, k2) {
3972      if (k2 === undefined) k2 = k;
3973      o[k2] = m[k];
3974  });
3975  
3976  function __exportStar(m, o) {
3977      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
3978  }
3979  
3980  function __values(o) {
3981      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3982      if (m) return m.call(o);
3983      if (o && typeof o.length === "number") return {
3984          next: function () {
3985              if (o && i >= o.length) o = void 0;
3986              return { value: o && o[i++], done: !o };
3987          }
3988      };
3989      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
3990  }
3991  
3992  function __read(o, n) {
3993      var m = typeof Symbol === "function" && o[Symbol.iterator];
3994      if (!m) return o;
3995      var i = m.call(o), r, ar = [], e;
3996      try {
3997          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3998      }
3999      catch (error) { e = { error: error }; }
4000      finally {
4001          try {
4002              if (r && !r.done && (m = i["return"])) m.call(i);
4003          }
4004          finally { if (e) throw e.error; }
4005      }
4006      return ar;
4007  }
4008  
4009  function __spread() {
4010      for (var ar = [], i = 0; i < arguments.length; i++)
4011          ar = ar.concat(__read(arguments[i]));
4012      return ar;
4013  }
4014  
4015  function __spreadArrays() {
4016      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4017      for (var r = Array(s), k = 0, i = 0; i < il; i++)
4018          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4019              r[k] = a[j];
4020      return r;
4021  };
4022  
4023  function __await(v) {
4024      return this instanceof __await ? (this.v = v, this) : new __await(v);
4025  }
4026  
4027  function __asyncGenerator(thisArg, _arguments, generator) {
4028      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4029      var g = generator.apply(thisArg, _arguments || []), i, q = [];
4030      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
4031      function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
4032      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
4033      function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
4034      function fulfill(value) { resume("next", value); }
4035      function reject(value) { resume("throw", value); }
4036      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
4037  }
4038  
4039  function __asyncDelegator(o) {
4040      var i, p;
4041      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
4042      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
4043  }
4044  
4045  function __asyncValues(o) {
4046      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4047      var m = o[Symbol.asyncIterator], i;
4048      return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
4049      function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
4050      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
4051  }
4052  
4053  function __makeTemplateObject(cooked, raw) {
4054      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4055      return cooked;
4056  };
4057  
4058  var __setModuleDefault = Object.create ? (function(o, v) {
4059      Object.defineProperty(o, "default", { enumerable: true, value: v });
4060  }) : function(o, v) {
4061      o["default"] = v;
4062  };
4063  
4064  function __importStar(mod) {
4065      if (mod && mod.__esModule) return mod;
4066      var result = {};
4067      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4068      __setModuleDefault(result, mod);
4069      return result;
4070  }
4071  
4072  function __importDefault(mod) {
4073      return (mod && mod.__esModule) ? mod : { default: mod };
4074  }
4075  
4076  function __classPrivateFieldGet(receiver, privateMap) {
4077      if (!privateMap.has(receiver)) {
4078          throw new TypeError("attempted to get private field on non-instance");
4079      }
4080      return privateMap.get(receiver);
4081  }
4082  
4083  function __classPrivateFieldSet(receiver, privateMap, value) {
4084      if (!privateMap.has(receiver)) {
4085          throw new TypeError("attempted to set private field on non-instance");
4086      }
4087      privateMap.set(receiver, value);
4088      return value;
4089  }
4090  
4091  // EXTERNAL MODULE: external "React"
4092  var external_React_ = __webpack_require__(13);
4093  var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
4094  
4095  // EXTERNAL MODULE: ./node_modules/normalize-wheel/index.js
4096  var normalize_wheel = __webpack_require__(283);
4097  var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
4098  
4099  // CONCATENATED MODULE: ./node_modules/react-easy-crop/index.module.js
4100  
4101  
4102  
4103  
4104  /**

4105   * Compute the dimension of the crop area based on media size,

4106   * aspect ratio and optionally rotation

4107   */
4108  
4109  function getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation) {
4110    if (rotation === void 0) {
4111      rotation = 0;
4112    }
4113  
4114    var _a = translateSize(mediaWidth, mediaHeight, rotation),
4115        width = _a.width,
4116        height = _a.height;
4117  
4118    var fittingWidth = Math.min(width, containerWidth);
4119    var fittingHeight = Math.min(height, containerHeight);
4120  
4121    if (fittingWidth > fittingHeight * aspect) {
4122      return {
4123        width: fittingHeight * aspect,
4124        height: fittingHeight
4125      };
4126    }
4127  
4128    return {
4129      width: fittingWidth,
4130      height: fittingWidth / aspect
4131    };
4132  }
4133  /**

4134   * Ensure a new media position stays in the crop area.

4135   */
4136  
4137  function index_module_restrictPosition(position, mediaSize, cropSize, zoom, rotation) {
4138    if (rotation === void 0) {
4139      rotation = 0;
4140    }
4141  
4142    var _a = translateSize(mediaSize.width, mediaSize.height, rotation),
4143        width = _a.width,
4144        height = _a.height;
4145  
4146    return {
4147      x: restrictPositionCoord(position.x, width, cropSize.width, zoom),
4148      y: restrictPositionCoord(position.y, height, cropSize.height, zoom)
4149    };
4150  }
4151  
4152  function restrictPositionCoord(position, mediaSize, cropSize, zoom) {
4153    var maxPosition = mediaSize * zoom / 2 - cropSize / 2;
4154    return Math.min(maxPosition, Math.max(position, -maxPosition));
4155  }
4156  
4157  function getDistanceBetweenPoints(pointA, pointB) {
4158    return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2));
4159  }
4160  function getRotationBetweenPoints(pointA, pointB) {
4161    return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI;
4162  }
4163  /**

4164   * Compute the output cropped area of the media in percentages and pixels.

4165   * x/y are the top-left coordinates on the src media

4166   */
4167  
4168  function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition) {
4169    if (rotation === void 0) {
4170      rotation = 0;
4171    }
4172  
4173    if (restrictPosition === void 0) {
4174      restrictPosition = true;
4175    } // if the media is rotated by the user, we cannot limit the position anymore
4176    // as it might need to be negative.
4177  
4178  
4179    var limitAreaFn = restrictPosition && rotation === 0 ? limitArea : noOp;
4180    var croppedAreaPercentages = {
4181      x: limitAreaFn(100, ((mediaSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaSize.width * 100),
4182      y: limitAreaFn(100, ((mediaSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaSize.height * 100),
4183      width: limitAreaFn(100, cropSize.width / mediaSize.width * 100 / zoom),
4184      height: limitAreaFn(100, cropSize.height / mediaSize.height * 100 / zoom)
4185    }; // we compute the pixels size naively
4186  
4187    var widthInPixels = Math.round(limitAreaFn(mediaSize.naturalWidth, croppedAreaPercentages.width * mediaSize.naturalWidth / 100));
4188    var heightInPixels = Math.round(limitAreaFn(mediaSize.naturalHeight, croppedAreaPercentages.height * mediaSize.naturalHeight / 100));
4189    var isImgWiderThanHigh = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect; // then we ensure the width and height exactly match the aspect (to avoid rounding approximations)
4190    // if the media is wider than high, when zoom is 0, the crop height will be equals to iamge height
4191    // thus we want to compute the width from the height and aspect for accuracy.
4192    // Otherwise, we compute the height from width and aspect.
4193  
4194    var sizePixels = isImgWiderThanHigh ? {
4195      width: Math.round(heightInPixels * aspect),
4196      height: heightInPixels
4197    } : {
4198      width: widthInPixels,
4199      height: Math.round(widthInPixels / aspect)
4200    };
4201  
4202    var croppedAreaPixels = __assign(__assign({}, sizePixels), {
4203      x: Math.round(limitAreaFn(mediaSize.naturalWidth - sizePixels.width, croppedAreaPercentages.x * mediaSize.naturalWidth / 100)),
4204      y: Math.round(limitAreaFn(mediaSize.naturalHeight - sizePixels.height, croppedAreaPercentages.y * mediaSize.naturalHeight / 100))
4205    });
4206  
4207    return {
4208      croppedAreaPercentages: croppedAreaPercentages,
4209      croppedAreaPixels: croppedAreaPixels
4210    };
4211  }
4212  /**

4213   * Ensure the returned value is between 0 and max

4214   */
4215  
4216  function limitArea(max, value) {
4217    return Math.min(max, Math.max(0, value));
4218  }
4219  
4220  function noOp(_max, value) {
4221    return value;
4222  }
4223  /**

4224   * Compute the crop and zoom from the croppedAreaPixels

4225   */
4226  
4227  
4228  function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
4229    var mediaZoom = mediaSize.width / mediaSize.naturalWidth;
4230  
4231    if (cropSize) {
4232      var isHeightMaxSize_1 = cropSize.height > cropSize.width;
4233      return isHeightMaxSize_1 ? cropSize.height / mediaZoom / croppedAreaPixels.height : cropSize.width / mediaZoom / croppedAreaPixels.width;
4234    }
4235  
4236    var aspect = croppedAreaPixels.width / croppedAreaPixels.height;
4237    var isHeightMaxSize = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect;
4238    return isHeightMaxSize ? mediaSize.naturalHeight / croppedAreaPixels.height : mediaSize.naturalWidth / croppedAreaPixels.width;
4239  }
4240  /**

4241   * Compute the crop and zoom from the croppedAreaPixels

4242   */
4243  
4244  
4245  function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
4246    var mediaZoom = mediaSize.width / mediaSize.naturalWidth;
4247    var zoom = getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize);
4248    var cropZoom = mediaZoom * zoom;
4249    var crop = {
4250      x: ((mediaSize.naturalWidth - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom,
4251      y: ((mediaSize.naturalHeight - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom
4252    };
4253    return {
4254      crop: crop,
4255      zoom: zoom
4256    };
4257  }
4258  /**

4259   * Return the point that is the center of point a and b

4260   */
4261  
4262  function getCenter(a, b) {
4263    return {
4264      x: (b.x + a.x) / 2,
4265      y: (b.y + a.y) / 2
4266    };
4267  }
4268  /**

4269   *

4270   * Returns an x,y point once rotated around xMid,yMid

4271   */
4272  
4273  function rotateAroundMidPoint(x, y, xMid, yMid, degrees) {
4274    var cos = Math.cos;
4275    var sin = Math.sin;
4276    var radian = degrees * Math.PI / 180; // Convert to radians
4277    // Subtract midpoints, so that midpoint is translated to origin
4278    // and add it in the end again
4279  
4280    var xr = (x - xMid) * cos(radian) - (y - yMid) * sin(radian) + xMid;
4281    var yr = (x - xMid) * sin(radian) + (y - yMid) * cos(radian) + yMid;
4282    return [xr, yr];
4283  }
4284  /**

4285   * Returns the new bounding area of a rotated rectangle.

4286   */
4287  
4288  function translateSize(width, height, rotation) {
4289    var centerX = width / 2;
4290    var centerY = height / 2;
4291    var outerBounds = [rotateAroundMidPoint(0, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, height, centerX, centerY, rotation), rotateAroundMidPoint(0, height, centerX, centerY, rotation)];
4292    var minX = Math.min.apply(Math, outerBounds.map(function (p) {
4293      return p[0];
4294    }));
4295    var maxX = Math.max.apply(Math, outerBounds.map(function (p) {
4296      return p[0];
4297    }));
4298    var minY = Math.min.apply(Math, outerBounds.map(function (p) {
4299      return p[1];
4300    }));
4301    var maxY = Math.max.apply(Math, outerBounds.map(function (p) {
4302      return p[1];
4303    }));
4304    return {
4305      width: maxX - minX,
4306      height: maxY - minY
4307    };
4308  }
4309  /**

4310   * Combine multiple class names into a single string.

4311   */
4312  
4313  function index_module_classNames() {
4314    var args = [];
4315  
4316    for (var _i = 0; _i < arguments.length; _i++) {
4317      args[_i] = arguments[_i];
4318    }
4319  
4320    return args.filter(function (value) {
4321      if (typeof value === 'string' && value.length > 0) {
4322        return true;
4323      }
4324  
4325      return false;
4326    }).join(' ').trim();
4327  }
4328  
4329  var css_248z = ".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n";
4330  
4331  var MIN_ZOOM = 1;
4332  var MAX_ZOOM = 3;
4333  
4334  var index_module_Cropper =
4335  /** @class */
4336  function (_super) {
4337    __extends(Cropper, _super);
4338  
4339    function Cropper() {
4340      var _this = _super !== null && _super.apply(this, arguments) || this;
4341  
4342      _this.imageRef = null;
4343      _this.videoRef = null;
4344      _this.containerRef = null;
4345      _this.styleRef = null;
4346      _this.containerRect = null;
4347      _this.mediaSize = {
4348        width: 0,
4349        height: 0,
4350        naturalWidth: 0,
4351        naturalHeight: 0
4352      };
4353      _this.dragStartPosition = {
4354        x: 0,
4355        y: 0
4356      };
4357      _this.dragStartCrop = {
4358        x: 0,
4359        y: 0
4360      };
4361      _this.lastPinchDistance = 0;
4362      _this.lastPinchRotation = 0;
4363      _this.rafDragTimeout = null;
4364      _this.rafPinchTimeout = null;
4365      _this.wheelTimer = null;
4366      _this.state = {
4367        cropSize: null,
4368        hasWheelJustStarted: false
4369      }; // this is to prevent Safari on iOS >= 10 to zoom the page
4370  
4371      _this.preventZoomSafari = function (e) {
4372        return e.preventDefault();
4373      };
4374  
4375      _this.cleanEvents = function () {
4376        document.removeEventListener('mousemove', _this.onMouseMove);
4377        document.removeEventListener('mouseup', _this.onDragStopped);
4378        document.removeEventListener('touchmove', _this.onTouchMove);
4379        document.removeEventListener('touchend', _this.onDragStopped);
4380      };
4381  
4382      _this.clearScrollEvent = function () {
4383        if (_this.containerRef) _this.containerRef.removeEventListener('wheel', _this.onWheel);
4384  
4385        if (_this.wheelTimer) {
4386          clearTimeout(_this.wheelTimer);
4387        }
4388      };
4389  
4390      _this.onMediaLoad = function () {
4391        _this.computeSizes();
4392  
4393        _this.emitCropData();
4394  
4395        _this.setInitialCrop();
4396  
4397        if (_this.props.onMediaLoaded) {
4398          _this.props.onMediaLoaded(_this.mediaSize);
4399        }
4400      };
4401  
4402      _this.setInitialCrop = function () {
4403        var _a = _this.props,
4404            initialCroppedAreaPixels = _a.initialCroppedAreaPixels,
4405            cropSize = _a.cropSize;
4406  
4407        if (!initialCroppedAreaPixels) {
4408          return;
4409        }
4410  
4411        var _b = getInitialCropFromCroppedAreaPixels(initialCroppedAreaPixels, _this.mediaSize, cropSize),
4412            crop = _b.crop,
4413            zoom = _b.zoom;
4414  
4415        _this.props.onCropChange(crop);
4416  
4417        _this.props.onZoomChange && _this.props.onZoomChange(zoom);
4418      };
4419  
4420      _this.computeSizes = function () {
4421        var _a, _b, _c, _d, _e, _f;
4422  
4423        var mediaRef = _this.imageRef || _this.videoRef;
4424  
4425        if (mediaRef && _this.containerRef) {
4426          _this.containerRect = _this.containerRef.getBoundingClientRect();
4427          _this.mediaSize = {
4428            width: mediaRef.offsetWidth,
4429            height: mediaRef.offsetHeight,
4430            naturalWidth: ((_a = _this.imageRef) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0,
4431            naturalHeight: ((_c = _this.imageRef) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0
4432          };
4433          var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(mediaRef.offsetWidth, mediaRef.offsetHeight, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation);
4434  
4435          if (((_e = _this.state.cropSize) === null || _e === void 0 ? void 0 : _e.height) !== cropSize.height || ((_f = _this.state.cropSize) === null || _f === void 0 ? void 0 : _f.width) !== cropSize.width) {
4436            _this.props.onCropSizeChange && _this.props.onCropSizeChange(cropSize);
4437          }
4438  
4439          _this.setState({
4440            cropSize: cropSize
4441          }, _this.recomputeCropPosition);
4442        }
4443      };
4444  
4445      _this.onMouseDown = function (e) {
4446        e.preventDefault();
4447        document.addEventListener('mousemove', _this.onMouseMove);
4448        document.addEventListener('mouseup', _this.onDragStopped);
4449  
4450        _this.onDragStart(Cropper.getMousePoint(e));
4451      };
4452  
4453      _this.onMouseMove = function (e) {
4454        return _this.onDrag(Cropper.getMousePoint(e));
4455      };
4456  
4457      _this.onTouchStart = function (e) {
4458        e.preventDefault();
4459        document.addEventListener('touchmove', _this.onTouchMove, {
4460          passive: false
4461        }); // iOS 11 now defaults to passive: true
4462  
4463        document.addEventListener('touchend', _this.onDragStopped);
4464  
4465        if (e.touches.length === 2) {
4466          _this.onPinchStart(e);
4467        } else if (e.touches.length === 1) {
4468          _this.onDragStart(Cropper.getTouchPoint(e.touches[0]));
4469        }
4470      };
4471  
4472      _this.onTouchMove = function (e) {
4473        // Prevent whole page from scrolling on iOS.
4474        e.preventDefault();
4475  
4476        if (e.touches.length === 2) {
4477          _this.onPinchMove(e);
4478        } else if (e.touches.length === 1) {
4479          _this.onDrag(Cropper.getTouchPoint(e.touches[0]));
4480        }
4481      };
4482  
4483      _this.onDragStart = function (_a) {
4484        var _b, _c;
4485  
4486        var x = _a.x,
4487            y = _a.y;
4488        _this.dragStartPosition = {
4489          x: x,
4490          y: y
4491        };
4492        _this.dragStartCrop = __assign({}, _this.props.crop);
4493        (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b);
4494      };
4495  
4496      _this.onDrag = function (_a) {
4497        var x = _a.x,
4498            y = _a.y;
4499        if (_this.rafDragTimeout) window.cancelAnimationFrame(_this.rafDragTimeout);
4500        _this.rafDragTimeout = window.requestAnimationFrame(function () {
4501          if (!_this.state.cropSize) return;
4502          if (x === undefined || y === undefined) return;
4503          var offsetX = x - _this.dragStartPosition.x;
4504          var offsetY = y - _this.dragStartPosition.y;
4505          var requestedPosition = {
4506            x: _this.dragStartCrop.x + offsetX,
4507            y: _this.dragStartCrop.y + offsetY
4508          };
4509          var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition;
4510  
4511          _this.props.onCropChange(newPosition);
4512        });
4513      };
4514  
4515      _this.onDragStopped = function () {
4516        var _a, _b;
4517  
4518        _this.cleanEvents();
4519  
4520        _this.emitCropData();
4521  
4522        (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
4523      };
4524  
4525      _this.onWheel = function (e) {
4526        e.preventDefault();
4527        var point = Cropper.getMousePoint(e);
4528        var pixelY = normalize_wheel_default()(e).pixelY;
4529        var newZoom = _this.props.zoom - pixelY * _this.props.zoomSpeed / 200;
4530  
4531        _this.setNewZoom(newZoom, point);
4532  
4533        if (!_this.state.hasWheelJustStarted) {
4534          _this.setState({
4535            hasWheelJustStarted: true
4536          }, function () {
4537            var _a, _b;
4538  
4539            return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
4540          });
4541        }
4542  
4543        if (_this.wheelTimer) {
4544          clearTimeout(_this.wheelTimer);
4545        }
4546  
4547        _this.wheelTimer = window.setTimeout(function () {
4548          return _this.setState({
4549            hasWheelJustStarted: false
4550          }, function () {
4551            var _a, _b;
4552  
4553            return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
4554          });
4555        }, 250);
4556      };
4557  
4558      _this.getPointOnContainer = function (_a) {
4559        var x = _a.x,
4560            y = _a.y;
4561  
4562        if (!_this.containerRect) {
4563          throw new Error('The Cropper is not mounted');
4564        }
4565  
4566        return {
4567          x: _this.containerRect.width / 2 - (x - _this.containerRect.left),
4568          y: _this.containerRect.height / 2 - (y - _this.containerRect.top)
4569        };
4570      };
4571  
4572      _this.getPointOnMedia = function (_a) {
4573        var x = _a.x,
4574            y = _a.y;
4575        var _b = _this.props,
4576            crop = _b.crop,
4577            zoom = _b.zoom;
4578        return {
4579          x: (x + crop.x) / zoom,
4580          y: (y + crop.y) / zoom
4581        };
4582      };
4583  
4584      _this.setNewZoom = function (zoom, point) {
4585        if (!_this.state.cropSize || !_this.props.onZoomChange) return;
4586  
4587        var zoomPoint = _this.getPointOnContainer(point);
4588  
4589        var zoomTarget = _this.getPointOnMedia(zoomPoint);
4590  
4591        var newZoom = Math.min(_this.props.maxZoom, Math.max(zoom, _this.props.minZoom));
4592        var requestedPosition = {
4593          x: zoomTarget.x * newZoom - zoomPoint.x,
4594          y: zoomTarget.y * newZoom - zoomPoint.y
4595        };
4596        var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition;
4597  
4598        _this.props.onCropChange(newPosition);
4599  
4600        _this.props.onZoomChange(newZoom);
4601      };
4602  
4603      _this.getCropData = function () {
4604        if (!_this.state.cropSize) {
4605          return null;
4606        } // this is to ensure the crop is correctly restricted after a zoom back (https://github.com/ricardo-ch/react-easy-crop/issues/6)
4607  
4608  
4609        var restrictedPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
4610        return computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition);
4611      };
4612  
4613      _this.emitCropData = function () {
4614        var cropData = _this.getCropData();
4615  
4616        if (!cropData) return;
4617        var croppedAreaPercentages = cropData.croppedAreaPercentages,
4618            croppedAreaPixels = cropData.croppedAreaPixels;
4619  
4620        if (_this.props.onCropComplete) {
4621          _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels);
4622        }
4623  
4624        if (_this.props.onCropAreaChange) {
4625          _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
4626        }
4627      };
4628  
4629      _this.emitCropAreaChange = function () {
4630        var cropData = _this.getCropData();
4631  
4632        if (!cropData) return;
4633        var croppedAreaPercentages = cropData.croppedAreaPercentages,
4634            croppedAreaPixels = cropData.croppedAreaPixels;
4635  
4636        if (_this.props.onCropAreaChange) {
4637          _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
4638        }
4639      };
4640  
4641      _this.recomputeCropPosition = function () {
4642        if (!_this.state.cropSize) return;
4643        var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
4644  
4645        _this.props.onCropChange(newPosition);
4646  
4647        _this.emitCropData();
4648      };
4649  
4650      return _this;
4651    }
4652  
4653    Cropper.prototype.componentDidMount = function () {
4654      window.addEventListener('resize', this.computeSizes);
4655  
4656      if (this.containerRef) {
4657        this.props.zoomWithScroll && this.containerRef.addEventListener('wheel', this.onWheel, {
4658          passive: false
4659        });
4660        this.containerRef.addEventListener('gesturestart', this.preventZoomSafari);
4661        this.containerRef.addEventListener('gesturechange', this.preventZoomSafari);
4662      }
4663  
4664      if (!this.props.disableAutomaticStylesInjection) {
4665        this.styleRef = document.createElement('style');
4666        this.styleRef.setAttribute('type', 'text/css');
4667        this.styleRef.innerHTML = css_248z;
4668        document.head.appendChild(this.styleRef);
4669      } // when rendered via SSR, the image can already be loaded and its onLoad callback will never be called
4670  
4671  
4672      if (this.imageRef && this.imageRef.complete) {
4673        this.onMediaLoad();
4674      }
4675    };
4676  
4677    Cropper.prototype.componentWillUnmount = function () {
4678      var _a;
4679  
4680      window.removeEventListener('resize', this.computeSizes);
4681  
4682      if (this.containerRef) {
4683        this.containerRef.removeEventListener('gesturestart', this.preventZoomSafari);
4684        this.containerRef.removeEventListener('gesturechange', this.preventZoomSafari);
4685      }
4686  
4687      if (this.styleRef) {
4688        (_a = this.styleRef.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this.styleRef);
4689      }
4690  
4691      this.cleanEvents();
4692      this.props.zoomWithScroll && this.clearScrollEvent();
4693    };
4694  
4695    Cropper.prototype.componentDidUpdate = function (prevProps) {
4696      var _a, _b, _c, _d, _e, _f, _g, _h;
4697  
4698      if (prevProps.rotation !== this.props.rotation) {
4699        this.computeSizes();
4700        this.recomputeCropPosition();
4701      } else if (prevProps.aspect !== this.props.aspect) {
4702        this.computeSizes();
4703      } else if (prevProps.zoom !== this.props.zoom) {
4704        this.recomputeCropPosition();
4705      } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
4706        this.computeSizes();
4707      } else if (((_e = prevProps.crop) === null || _e === void 0 ? void 0 : _e.x) !== ((_f = this.props.crop) === null || _f === void 0 ? void 0 : _f.x) || ((_g = prevProps.crop) === null || _g === void 0 ? void 0 : _g.y) !== ((_h = this.props.crop) === null || _h === void 0 ? void 0 : _h.y)) {
4708        this.emitCropAreaChange();
4709      }
4710  
4711      if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) {
4712        this.props.zoomWithScroll ? this.containerRef.addEventListener('wheel', this.onWheel, {
4713          passive: false
4714        }) : this.clearScrollEvent();
4715      }
4716    };
4717  
4718    Cropper.prototype.getAspect = function () {
4719      var _a = this.props,
4720          cropSize = _a.cropSize,
4721          aspect = _a.aspect;
4722  
4723      if (cropSize) {
4724        return cropSize.width / cropSize.height;
4725      }
4726  
4727      return aspect;
4728    };
4729  
4730    Cropper.prototype.onPinchStart = function (e) {
4731      var pointA = Cropper.getTouchPoint(e.touches[0]);
4732      var pointB = Cropper.getTouchPoint(e.touches[1]);
4733      this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB);
4734      this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB);
4735      this.onDragStart(getCenter(pointA, pointB));
4736    };
4737  
4738    Cropper.prototype.onPinchMove = function (e) {
4739      var _this = this;
4740  
4741      var pointA = Cropper.getTouchPoint(e.touches[0]);
4742      var pointB = Cropper.getTouchPoint(e.touches[1]);
4743      var center = getCenter(pointA, pointB);
4744      this.onDrag(center);
4745      if (this.rafPinchTimeout) window.cancelAnimationFrame(this.rafPinchTimeout);
4746      this.rafPinchTimeout = window.requestAnimationFrame(function () {
4747        var distance = getDistanceBetweenPoints(pointA, pointB);
4748        var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance);
4749  
4750        _this.setNewZoom(newZoom, center);
4751  
4752        _this.lastPinchDistance = distance;
4753        var rotation = getRotationBetweenPoints(pointA, pointB);
4754        var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation);
4755        _this.props.onRotationChange && _this.props.onRotationChange(newRotation);
4756        _this.lastPinchRotation = rotation;
4757      });
4758    };
4759  
4760    Cropper.prototype.render = function () {
4761      var _this = this;
4762  
4763      var _a = this.props,
4764          image = _a.image,
4765          video = _a.video,
4766          mediaProps = _a.mediaProps,
4767          transform = _a.transform,
4768          _b = _a.crop,
4769          x = _b.x,
4770          y = _b.y,
4771          rotation = _a.rotation,
4772          zoom = _a.zoom,
4773          cropShape = _a.cropShape,
4774          showGrid = _a.showGrid,
4775          _c = _a.style,
4776          containerStyle = _c.containerStyle,
4777          cropAreaStyle = _c.cropAreaStyle,
4778          mediaStyle = _c.mediaStyle,
4779          _d = _a.classes,
4780          containerClassName = _d.containerClassName,
4781          cropAreaClassName = _d.cropAreaClassName,
4782          mediaClassName = _d.mediaClassName;
4783      return /*#__PURE__*/external_React_default.a.createElement("div", {
4784        onMouseDown: this.onMouseDown,
4785        onTouchStart: this.onTouchStart,
4786        ref: function ref(el) {
4787          return _this.containerRef = el;
4788        },
4789        "data-testid": "container",
4790        style: containerStyle,
4791        className: index_module_classNames('reactEasyCrop_Container', containerClassName)
4792      }, image ? /*#__PURE__*/external_React_default.a.createElement("img", __assign({
4793        alt: "",
4794        className: index_module_classNames('reactEasyCrop_Image', mediaClassName)
4795      }, mediaProps, {
4796        src: image,
4797        ref: function ref(el) {
4798          return _this.imageRef = el;
4799        },
4800        style: __assign(__assign({}, mediaStyle), {
4801          transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")"
4802        }),
4803        onLoad: this.onMediaLoad
4804      })) : video && /*#__PURE__*/external_React_default.a.createElement("video", __assign({
4805        autoPlay: true,
4806        loop: true,
4807        muted: true,
4808        className: index_module_classNames('reactEasyCrop_Video', mediaClassName)
4809      }, mediaProps, {
4810        src: video,
4811        ref: function ref(el) {
4812          return _this.videoRef = el;
4813        },
4814        onLoadedMetadata: this.onMediaLoad,
4815        style: __assign(__assign({}, mediaStyle), {
4816          transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")"
4817        }),
4818        controls: false
4819      })), this.state.cropSize && /*#__PURE__*/external_React_default.a.createElement("div", {
4820        style: __assign(__assign({}, cropAreaStyle), {
4821          width: this.state.cropSize.width,
4822          height: this.state.cropSize.height
4823        }),
4824        "data-testid": "cropper",
4825        className: index_module_classNames('reactEasyCrop_CropArea', cropShape === 'round' && 'reactEasyCrop_CropAreaRound', showGrid && 'reactEasyCrop_CropAreaGrid', cropAreaClassName)
4826      }));
4827    };
4828  
4829    Cropper.defaultProps = {
4830      zoom: 1,
4831      rotation: 0,
4832      aspect: 4 / 3,
4833      maxZoom: MAX_ZOOM,
4834      minZoom: MIN_ZOOM,
4835      cropShape: 'rect',
4836      showGrid: true,
4837      style: {},
4838      classes: {},
4839      mediaProps: {},
4840      zoomSpeed: 1,
4841      restrictPosition: true,
4842      zoomWithScroll: true
4843    };
4844  
4845    Cropper.getMousePoint = function (e) {
4846      return {
4847        x: Number(e.clientX),
4848        y: Number(e.clientY)
4849      };
4850    };
4851  
4852    Cropper.getTouchPoint = function (touch) {
4853      return {
4854        x: Number(touch.clientX),
4855        y: Number(touch.clientY)
4856      };
4857    };
4858  
4859    return Cropper;
4860  }(external_React_default.a.Component);
4861  
4862  /* harmony default export */ var index_module = (index_module_Cropper);
4863  
4864  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/constants.js
4865  var constants_MIN_ZOOM = 100;
4866  var constants_MAX_ZOOM = 300;
4867  var constants_POPOVER_PROPS = {
4868    position: 'bottom right',
4869    isAlternate: true
4870  };
4871  
4872  // EXTERNAL MODULE: external ["wp","apiFetch"]
4873  var external_wp_apiFetch_ = __webpack_require__(50);
4874  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_);
4875  
4876  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/use-save-image.js
4877  
4878  
4879  /**
4880   * WordPress dependencies
4881   */
4882  
4883  
4884  
4885  
4886  
4887  function useSaveImage(_ref) {
4888    var crop = _ref.crop,
4889        rotation = _ref.rotation,
4890        height = _ref.height,
4891        width = _ref.width,
4892        aspect = _ref.aspect,
4893        url = _ref.url,
4894        id = _ref.id,
4895        onSaveImage = _ref.onSaveImage,
4896        onFinishEditing = _ref.onFinishEditing;
4897  
4898    var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]),
4899        createErrorNotice = _useDispatch.createErrorNotice;
4900  
4901    var _useState = Object(external_wp_element_["useState"])(false),
4902        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
4903        isInProgress = _useState2[0],
4904        setIsInProgress = _useState2[1];
4905  
4906    var cancel = Object(external_wp_element_["useCallback"])(function () {
4907      setIsInProgress(false);
4908      onFinishEditing();
4909    }, [setIsInProgress, onFinishEditing]);
4910    var apply = Object(external_wp_element_["useCallback"])(function () {
4911      setIsInProgress(true);
4912      var attrs = {}; // The crop script may return some very small, sub-pixel values when the image was not cropped.
4913      // Crop only when the new size has changed by more than 0.1%.
4914  
4915      if (crop.width < 99.9 || crop.height < 99.9) {
4916        attrs = crop;
4917      }
4918  
4919      if (rotation > 0) {
4920        attrs.rotation = rotation;
4921      }
4922  
4923      attrs.src = url;
4924      external_wp_apiFetch_default()({
4925        path: "/wp/v2/media/".concat(id, "/edit"),
4926        method: 'POST',
4927        data: attrs
4928      }).then(function (response) {
4929        onSaveImage({
4930          id: response.id,
4931          url: response.source_url,
4932          height: height && width ? width / aspect : undefined
4933        });
4934      }).catch(function (error) {
4935        createErrorNotice(Object(external_wp_i18n_["sprintf"])(
4936        /* translators: 1. Error message */
4937        Object(external_wp_i18n_["__"])('Could not edit image. %s'), error.message), {
4938          id: 'image-editing-error',
4939          type: 'snackbar'
4940        });
4941      }).finally(function () {
4942        setIsInProgress(false);
4943        onFinishEditing();
4944      });
4945    }, [setIsInProgress, crop, rotation, height, width, aspect, url, onSaveImage, createErrorNotice, setIsInProgress, onFinishEditing]);
4946    return Object(external_wp_element_["useMemo"])(function () {
4947      return {
4948        isInProgress: isInProgress,
4949        apply: apply,
4950        cancel: cancel
4951      };
4952    }, [isInProgress, apply, cancel]);
4953  }
4954  
4955  // EXTERNAL MODULE: external ["wp","hooks"]
4956  var external_wp_hooks_ = __webpack_require__(30);
4957  
4958  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/use-transform-image.js
4959  
4960  
4961  /**
4962   * WordPress dependencies
4963   */
4964  
4965  
4966  
4967  function useTransformState(_ref) {
4968    var url = _ref.url,
4969        naturalWidth = _ref.naturalWidth,
4970        naturalHeight = _ref.naturalHeight;
4971  
4972    var _useState = Object(external_wp_element_["useState"])(),
4973        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
4974        editedUrl = _useState2[0],
4975        setEditedUrl = _useState2[1];
4976  
4977    var _useState3 = Object(external_wp_element_["useState"])(),
4978        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
4979        crop = _useState4[0],
4980        setCrop = _useState4[1];
4981  
4982    var _useState5 = Object(external_wp_element_["useState"])({
4983      x: 0,
4984      y: 0
4985    }),
4986        _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
4987        position = _useState6[0],
4988        setPosition = _useState6[1];
4989  
4990    var _useState7 = Object(external_wp_element_["useState"])(),
4991        _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
4992        zoom = _useState8[0],
4993        setZoom = _useState8[1];
4994  
4995    var _useState9 = Object(external_wp_element_["useState"])(),
4996        _useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
4997        rotation = _useState10[0],
4998        setRotation = _useState10[1];
4999  
5000    var _useState11 = Object(external_wp_element_["useState"])(),
5001        _useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
5002        aspect = _useState12[0],
5003        setAspect = _useState12[1];
5004  
5005    var _useState13 = Object(external_wp_element_["useState"])(),
5006        _useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
5007        defaultAspect = _useState14[0],
5008        setDefaultAspect = _useState14[1];
5009  
5010    var initializeTransformValues = Object(external_wp_element_["useCallback"])(function () {
5011      setPosition({
5012        x: 0,
5013        y: 0
5014      });
5015      setZoom(100);
5016      setRotation(0);
5017      setAspect(naturalWidth / naturalHeight);
5018      setDefaultAspect(naturalWidth / naturalHeight);
5019    }, [naturalWidth, naturalHeight, setPosition, setZoom, setRotation, setAspect, setDefaultAspect]);
5020    var rotateClockwise = Object(external_wp_element_["useCallback"])(function () {
5021      var angle = (rotation + 90) % 360;
5022      var naturalAspectRatio = naturalWidth / naturalHeight;
5023  
5024      if (rotation % 180 === 90) {
5025        naturalAspectRatio = naturalHeight / naturalWidth;
5026      }
5027  
5028      if (angle === 0) {
5029        setEditedUrl();
5030        setRotation(angle);
5031        setAspect(1 / aspect);
5032        setPosition({
5033          x: -(position.y * naturalAspectRatio),
5034          y: position.x * naturalAspectRatio
5035        });
5036        return;
5037      }
5038  
5039      function editImage(event) {
5040        var canvas = document.createElement('canvas');
5041        var translateX = 0;
5042        var translateY = 0;
5043  
5044        if (angle % 180) {
5045          canvas.width = event.target.height;
5046          canvas.height = event.target.width;
5047        } else {
5048          canvas.width = event.target.width;
5049          canvas.height = event.target.height;
5050        }
5051  
5052        if (angle === 90 || angle === 180) {
5053          translateX = canvas.width;
5054        }
5055  
5056        if (angle === 270 || angle === 180) {
5057          translateY = canvas.height;
5058        }
5059  
5060        var context = canvas.getContext('2d');
5061        context.translate(translateX, translateY);
5062        context.rotate(angle * Math.PI / 180);
5063        context.drawImage(event.target, 0, 0);
5064        canvas.toBlob(function (blob) {
5065          setEditedUrl(URL.createObjectURL(blob));
5066          setRotation(angle);
5067          setAspect(1 / aspect);
5068          setPosition({
5069            x: -(position.y * naturalAspectRatio),
5070            y: position.x * naturalAspectRatio
5071          });
5072        });
5073      }
5074  
5075      var el = new window.Image();
5076      el.src = url;
5077      el.onload = editImage;
5078      var imgCrossOrigin = Object(external_wp_hooks_["applyFilters"])('media.crossOrigin', undefined, url);
5079  
5080      if (typeof imgCrossOrigin === 'string') {
5081        el.crossOrigin = imgCrossOrigin;
5082      }
5083    }, [rotation, naturalWidth, naturalHeight, setEditedUrl, setRotation, setAspect, setPosition]);
5084    return Object(external_wp_element_["useMemo"])(function () {
5085      return {
5086        editedUrl: editedUrl,
5087        setEditedUrl: setEditedUrl,
5088        crop: crop,
5089        setCrop: setCrop,
5090        position: position,
5091        setPosition: setPosition,
5092        zoom: zoom,
5093        setZoom: setZoom,
5094        rotation: rotation,
5095        setRotation: setRotation,
5096        rotateClockwise: rotateClockwise,
5097        aspect: aspect,
5098        setAspect: setAspect,
5099        defaultAspect: defaultAspect,
5100        initializeTransformValues: initializeTransformValues
5101      };
5102    }, [editedUrl, setEditedUrl, crop, setCrop, position, setPosition, zoom, setZoom, rotation, setRotation, rotateClockwise, aspect, setAspect, defaultAspect, initializeTransformValues]);
5103  }
5104  
5105  function useTransformImage(imageProperties, isEditing) {
5106    var transformState = useTransformState(imageProperties);
5107    var initializeTransformValues = transformState.initializeTransformValues;
5108    Object(external_wp_element_["useEffect"])(function () {
5109      if (isEditing) {
5110        initializeTransformValues();
5111      }
5112    }, [isEditing, initializeTransformValues]);
5113    return transformState;
5114  }
5115  
5116  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/context.js
5117  
5118  
5119  
5120  function context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5121  
5122  function context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { context_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5123  
5124  /**
5125   * WordPress dependencies
5126   */
5127  
5128  /**
5129   * Internal dependencies
5130   */
5131  
5132  
5133  
5134  var ImageEditingContext = Object(external_wp_element_["createContext"])({});
5135  var context_useImageEditingContext = function useImageEditingContext() {
5136    return Object(external_wp_element_["useContext"])(ImageEditingContext);
5137  };
5138  function ImageEditingProvider(_ref) {
5139    var id = _ref.id,
5140        url = _ref.url,
5141        naturalWidth = _ref.naturalWidth,
5142        naturalHeight = _ref.naturalHeight,
5143        isEditing = _ref.isEditing,
5144        onFinishEditing = _ref.onFinishEditing,
5145        onSaveImage = _ref.onSaveImage,
5146        children = _ref.children;
5147    var transformImage = useTransformImage({
5148      url: url,
5149      naturalWidth: naturalWidth,
5150      naturalHeight: naturalHeight
5151    }, isEditing);
5152    var saveImage = useSaveImage(context_objectSpread({
5153      id: id,
5154      url: url,
5155      onSaveImage: onSaveImage,
5156      onFinishEditing: onFinishEditing
5157    }, transformImage));
5158    var providerValue = Object(external_wp_element_["useMemo"])(function () {
5159      return context_objectSpread(context_objectSpread({}, transformImage), saveImage);
5160    }, [transformImage, saveImage]);
5161    return Object(external_wp_element_["createElement"])(ImageEditingContext.Provider, {
5162      value: providerValue
5163    }, children);
5164  }
5165  
5166  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/cropper.js
5167  
5168  
5169  /**
5170   * External dependencies
5171   */
5172  
5173  
5174  /**
5175   * WordPress dependencies
5176   */
5177  
5178  
5179  /**
5180   * Internal dependencies
5181   */
5182  
5183  
5184  
5185  function ImageCropper(_ref) {
5186    var url = _ref.url,
5187        width = _ref.width,
5188        height = _ref.height,
5189        clientWidth = _ref.clientWidth,
5190        naturalHeight = _ref.naturalHeight,
5191        naturalWidth = _ref.naturalWidth;
5192  
5193    var _useImageEditingConte = context_useImageEditingContext(),
5194        isInProgress = _useImageEditingConte.isInProgress,
5195        editedUrl = _useImageEditingConte.editedUrl,
5196        position = _useImageEditingConte.position,
5197        zoom = _useImageEditingConte.zoom,
5198        aspect = _useImageEditingConte.aspect,
5199        setPosition = _useImageEditingConte.setPosition,
5200        setCrop = _useImageEditingConte.setCrop,
5201        setZoom = _useImageEditingConte.setZoom,
5202        rotation = _useImageEditingConte.rotation;
5203  
5204    var editedHeight = height || clientWidth * naturalHeight / naturalWidth;
5205  
5206    if (rotation % 180 === 90) {
5207      editedHeight = clientWidth * naturalWidth / naturalHeight;
5208    }
5209  
5210    return Object(external_wp_element_["createElement"])("div", {
5211      className: classnames_default()('wp-block-image__crop-area', {
5212        'is-applying': isInProgress
5213      }),
5214      style: {
5215        width: width || clientWidth,
5216        height: editedHeight
5217      }
5218    }, Object(external_wp_element_["createElement"])(index_module, {
5219      image: editedUrl || url,
5220      disabled: isInProgress,
5221      minZoom: constants_MIN_ZOOM / 100,
5222      maxZoom: constants_MAX_ZOOM / 100,
5223      crop: position,
5224      zoom: zoom / 100,
5225      aspect: aspect,
5226      onCropChange: setPosition,
5227      onCropComplete: function onCropComplete(newCropPercent) {
5228        setCrop(newCropPercent);
5229      },
5230      onZoomChange: function onZoomChange(newZoom) {
5231        setZoom(newZoom * 100);
5232      }
5233    }), isInProgress && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null));
5234  }
5235  
5236  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
5237  var search = __webpack_require__(219);
5238  
5239  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/zoom-dropdown.js
5240  
5241  
5242  /**
5243   * WordPress dependencies
5244   */
5245  
5246  
5247  
5248  /**
5249   * Internal dependencies
5250   */
5251  
5252  
5253  
5254  function ZoomDropdown() {
5255    var _useImageEditingConte = context_useImageEditingContext(),
5256        isInProgress = _useImageEditingConte.isInProgress,
5257        zoom = _useImageEditingConte.zoom,
5258        setZoom = _useImageEditingConte.setZoom;
5259  
5260    return Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], {
5261      contentClassName: "wp-block-image__zoom",
5262      popoverProps: constants_POPOVER_PROPS,
5263      renderToggle: function renderToggle(_ref) {
5264        var isOpen = _ref.isOpen,
5265            onToggle = _ref.onToggle;
5266        return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5267          icon: search["a" /* default */],
5268          label: Object(external_wp_i18n_["__"])('Zoom'),
5269          onClick: onToggle,
5270          "aria-expanded": isOpen,
5271          disabled: isInProgress
5272        });
5273      },
5274      renderContent: function renderContent() {
5275        return Object(external_wp_element_["createElement"])(external_wp_components_["RangeControl"], {
5276          label: Object(external_wp_i18n_["__"])('Zoom'),
5277          min: constants_MIN_ZOOM,
5278          max: constants_MAX_ZOOM,
5279          value: Math.round(zoom),
5280          onChange: setZoom
5281        });
5282      }
5283    });
5284  }
5285  
5286  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
5287  var check = __webpack_require__(166);
5288  
5289  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js
5290  
5291  
5292  /**
5293   * WordPress dependencies
5294   */
5295  
5296  var aspect_ratio_aspectRatio = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
5297    xmlns: "http://www.w3.org/2000/svg",
5298    viewBox: "0 0 24 24"
5299  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
5300    d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
5301  }));
5302  /* harmony default export */ var aspect_ratio = (aspect_ratio_aspectRatio);
5303  
5304  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/aspect-ratio-dropdown.js
5305  
5306  
5307  /**
5308   * WordPress dependencies
5309   */
5310  
5311  
5312  
5313  /**
5314   * Internal dependencies
5315   */
5316  
5317  
5318  
5319  
5320  function AspectGroup(_ref) {
5321    var aspectRatios = _ref.aspectRatios,
5322        isDisabled = _ref.isDisabled,
5323        label = _ref.label,
5324        _onClick = _ref.onClick,
5325        value = _ref.value;
5326    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
5327      label: label
5328    }, aspectRatios.map(function (_ref2) {
5329      var title = _ref2.title,
5330          aspect = _ref2.aspect;
5331      return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
5332        key: aspect,
5333        disabled: isDisabled,
5334        onClick: function onClick() {
5335          _onClick(aspect);
5336        },
5337        role: "menuitemradio",
5338        isSelected: aspect === value,
5339        icon: aspect === value ? check["a" /* default */] : undefined
5340      }, title);
5341    }));
5342  }
5343  
5344  function AspectRatioDropdown(_ref3) {
5345    var toggleProps = _ref3.toggleProps;
5346  
5347    var _useImageEditingConte = context_useImageEditingContext(),
5348        isInProgress = _useImageEditingConte.isInProgress,
5349        aspect = _useImageEditingConte.aspect,
5350        setAspect = _useImageEditingConte.setAspect,
5351        defaultAspect = _useImageEditingConte.defaultAspect;
5352  
5353    return Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], {
5354      icon: aspect_ratio,
5355      label: Object(external_wp_i18n_["__"])('Aspect Ratio'),
5356      popoverProps: constants_POPOVER_PROPS,
5357      toggleProps: toggleProps,
5358      className: "wp-block-image__aspect-ratio"
5359    }, function (_ref4) {
5360      var onClose = _ref4.onClose;
5361      return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(AspectGroup, {
5362        isDisabled: isInProgress,
5363        onClick: function onClick(newAspect) {
5364          setAspect(newAspect);
5365          onClose();
5366        },
5367        value: aspect,
5368        aspectRatios: [{
5369          title: Object(external_wp_i18n_["__"])('Original'),
5370          aspect: defaultAspect
5371        }, {
5372          title: Object(external_wp_i18n_["__"])('Square'),
5373          aspect: 1
5374        }]
5375      }), Object(external_wp_element_["createElement"])(AspectGroup, {
5376        label: Object(external_wp_i18n_["__"])('Landscape'),
5377        isDisabled: isInProgress,
5378        onClick: function onClick(newAspect) {
5379          setAspect(newAspect);
5380          onClose();
5381        },
5382        value: aspect,
5383        aspectRatios: [{
5384          title: Object(external_wp_i18n_["__"])('16:10'),
5385          aspect: 16 / 10
5386        }, {
5387          title: Object(external_wp_i18n_["__"])('16:9'),
5388          aspect: 16 / 9
5389        }, {
5390          title: Object(external_wp_i18n_["__"])('4:3'),
5391          aspect: 4 / 3
5392        }, {
5393          title: Object(external_wp_i18n_["__"])('3:2'),
5394          aspect: 3 / 2
5395        }]
5396      }), Object(external_wp_element_["createElement"])(AspectGroup, {
5397        label: Object(external_wp_i18n_["__"])('Portrait'),
5398        isDisabled: isInProgress,
5399        onClick: function onClick(newAspect) {
5400          setAspect(newAspect);
5401          onClose();
5402        },
5403        value: aspect,
5404        aspectRatios: [{
5405          title: Object(external_wp_i18n_["__"])('10:16'),
5406          aspect: 10 / 16
5407        }, {
5408          title: Object(external_wp_i18n_["__"])('9:16'),
5409          aspect: 9 / 16
5410        }, {
5411          title: Object(external_wp_i18n_["__"])('3:4'),
5412          aspect: 3 / 4
5413        }, {
5414          title: Object(external_wp_i18n_["__"])('2:3'),
5415          aspect: 2 / 3
5416        }]
5417      }));
5418    });
5419  }
5420  
5421  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js
5422  
5423  
5424  /**
5425   * WordPress dependencies
5426   */
5427  
5428  var rotateRight = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
5429    xmlns: "http://www.w3.org/2000/svg",
5430    viewBox: "0 0 24 24"
5431  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
5432    d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
5433  }));
5434  /* harmony default export */ var rotate_right = (rotateRight);
5435  
5436  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/rotation-button.js
5437  
5438  
5439  /**
5440   * WordPress dependencies
5441   */
5442  
5443  
5444  
5445  /**
5446   * Internal dependencies
5447   */
5448  
5449  
5450  function RotationButton() {
5451    var _useImageEditingConte = context_useImageEditingContext(),
5452        isInProgress = _useImageEditingConte.isInProgress,
5453        rotateClockwise = _useImageEditingConte.rotateClockwise;
5454  
5455    return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5456      icon: rotate_right,
5457      label: Object(external_wp_i18n_["__"])('Rotate'),
5458      onClick: rotateClockwise,
5459      disabled: isInProgress
5460    });
5461  }
5462  
5463  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/form-controls.js
5464  
5465  
5466  /**
5467   * WordPress dependencies
5468   */
5469  
5470  
5471  /**
5472   * Internal dependencies
5473   */
5474  
5475  
5476  function FormControls() {
5477    var _useImageEditingConte = context_useImageEditingContext(),
5478        isInProgress = _useImageEditingConte.isInProgress,
5479        apply = _useImageEditingConte.apply,
5480        cancel = _useImageEditingConte.cancel;
5481  
5482    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5483      onClick: apply,
5484      disabled: isInProgress
5485    }, Object(external_wp_i18n_["__"])('Apply')), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5486      onClick: cancel
5487    }, Object(external_wp_i18n_["__"])('Cancel')));
5488  }
5489  
5490  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editing/index.js
5491  
5492  
5493  /**
5494   * WordPress dependencies
5495   */
5496  
5497  
5498  /**
5499   * Internal dependencies
5500   */
5501  
5502  
5503  
5504  
5505  
5506  
5507  function ImageEditor(_ref) {
5508    var url = _ref.url,
5509        width = _ref.width,
5510        height = _ref.height,
5511        clientWidth = _ref.clientWidth,
5512        naturalHeight = _ref.naturalHeight,
5513        naturalWidth = _ref.naturalWidth;
5514    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(ImageCropper, {
5515      url: url,
5516      width: width,
5517      height: height,
5518      clientWidth: clientWidth,
5519      naturalHeight: naturalHeight,
5520      naturalWidth: naturalWidth
5521    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, Object(external_wp_element_["createElement"])(ZoomDropdown, null), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarItem"], null, function (toggleProps) {
5522      return Object(external_wp_element_["createElement"])(AspectRatioDropdown, {
5523        toggleProps: toggleProps
5524      });
5525    }), Object(external_wp_element_["createElement"])(RotationButton, null)), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, Object(external_wp_element_["createElement"])(FormControls, null))));
5526  }
5527  
5528  
5529  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/constants.js
5530  var MIN_SIZE = 20;
5531  var LINK_DESTINATION_NONE = 'none';
5532  var LINK_DESTINATION_MEDIA = 'media';
5533  var LINK_DESTINATION_ATTACHMENT = 'attachment';
5534  var LINK_DESTINATION_CUSTOM = 'custom';
5535  var NEW_TAB_REL = ['noreferrer', 'noopener'];
5536  var ALLOWED_MEDIA_TYPES = ['image'];
5537  
5538  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image.js
5539  
5540  
5541  
5542  
5543  function image_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5544  
5545  function image_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { image_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { image_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5546  
5547  /**
5548   * External dependencies
5549   */
5550  
5551  /**
5552   * WordPress dependencies
5553   */
5554  
5555  
5556  
5557  
5558  
5559  
5560  
5561  
5562  
5563  
5564  
5565  
5566  
5567  /**
5568   * Internal dependencies
5569   */
5570  
5571  
5572  
5573  
5574  
5575  /**
5576   * Module constants
5577   */
5578  
5579  
5580  
5581  function getFilename(url) {
5582    var path = Object(external_wp_url_["getPath"])(url);
5583  
5584    if (path) {
5585      return Object(external_lodash_["last"])(path.split('/'));
5586    }
5587  }
5588  
5589  function Image(_ref) {
5590    var temporaryURL = _ref.temporaryURL,
5591        _ref$attributes = _ref.attributes,
5592        _ref$attributes$url = _ref$attributes.url,
5593        url = _ref$attributes$url === void 0 ? '' : _ref$attributes$url,
5594        alt = _ref$attributes.alt,
5595        caption = _ref$attributes.caption,
5596        align = _ref$attributes.align,
5597        id = _ref$attributes.id,
5598        href = _ref$attributes.href,
5599        rel = _ref$attributes.rel,
5600        linkClass = _ref$attributes.linkClass,
5601        linkDestination = _ref$attributes.linkDestination,
5602        title = _ref$attributes.title,
5603        width = _ref$attributes.width,
5604        height = _ref$attributes.height,
5605        linkTarget = _ref$attributes.linkTarget,
5606        sizeSlug = _ref$attributes.sizeSlug,
5607        setAttributes = _ref.setAttributes,
5608        isSelected = _ref.isSelected,
5609        insertBlocksAfter = _ref.insertBlocksAfter,
5610        onReplace = _ref.onReplace,
5611        onSelectImage = _ref.onSelectImage,
5612        onSelectURL = _ref.onSelectURL,
5613        onUploadError = _ref.onUploadError,
5614        containerRef = _ref.containerRef;
5615    var captionRef = Object(external_wp_element_["useRef"])();
5616    var prevUrl = Object(external_wp_compose_["usePrevious"])(url);
5617  
5618    var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
5619      var _select = select(external_wp_coreData_["store"]),
5620          getMedia = _select.getMedia;
5621  
5622      var _select2 = select(external_wp_blockEditor_["store"]),
5623          getMultiSelectedBlockClientIds = _select2.getMultiSelectedBlockClientIds,
5624          getBlockName = _select2.getBlockName,
5625          getSelectedBlock = _select2.getSelectedBlock,
5626          getSelectedBlockClientId = _select2.getSelectedBlockClientId;
5627  
5628      var multiSelectedClientIds = getMultiSelectedBlockClientIds();
5629      return {
5630        block: getSelectedBlock(),
5631        currentId: getSelectedBlockClientId(),
5632        image: id && isSelected ? getMedia(id) : null,
5633        multiImageSelection: multiSelectedClientIds.length && multiSelectedClientIds.every(function (clientId) {
5634          return getBlockName(clientId) === 'core/image';
5635        })
5636      };
5637    }, [id, isSelected]),
5638        block = _useSelect.block,
5639        currentId = _useSelect.currentId,
5640        image = _useSelect.image,
5641        multiImageSelection = _useSelect.multiImageSelection;
5642  
5643    var _useSelect2 = Object(external_wp_data_["useSelect"])(function (select) {
5644      var _select3 = select(external_wp_blockEditor_["store"]),
5645          getSettings = _select3.getSettings;
5646  
5647      return Object(external_lodash_["pick"])(getSettings(), ['imageEditing', 'imageSizes', 'maxWidth', 'mediaUpload']);
5648    }),
5649        imageEditing = _useSelect2.imageEditing,
5650        imageSizes = _useSelect2.imageSizes,
5651        maxWidth = _useSelect2.maxWidth,
5652        mediaUpload = _useSelect2.mediaUpload;
5653  
5654    var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]),
5655        replaceBlocks = _useDispatch.replaceBlocks,
5656        toggleSelection = _useDispatch.toggleSelection;
5657  
5658    var _useDispatch2 = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]),
5659        createErrorNotice = _useDispatch2.createErrorNotice,
5660        createSuccessNotice = _useDispatch2.createSuccessNotice;
5661  
5662    var isLargeViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
5663  
5664    var _useState = Object(external_wp_element_["useState"])(false),
5665        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
5666        captionFocused = _useState2[0],
5667        setCaptionFocused = _useState2[1];
5668  
5669    var isWideAligned = Object(external_lodash_["includes"])(['wide', 'full'], align);
5670  
5671    var _useState3 = Object(external_wp_element_["useState"])({}),
5672        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
5673        _useState4$ = _useState4[0],
5674        naturalWidth = _useState4$.naturalWidth,
5675        naturalHeight = _useState4$.naturalHeight,
5676        setNaturalSize = _useState4[1];
5677  
5678    var _useState5 = Object(external_wp_element_["useState"])(false),
5679        _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
5680        isEditingImage = _useState6[0],
5681        setIsEditingImage = _useState6[1];
5682  
5683    var _useState7 = Object(external_wp_element_["useState"])(),
5684        _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
5685        externalBlob = _useState8[0],
5686        setExternalBlob = _useState8[1];
5687  
5688    var clientWidth = useClientWidth(containerRef, [align]);
5689    var isResizable = !isWideAligned && isLargeViewport;
5690    var imageSizeOptions = Object(external_lodash_["map"])(Object(external_lodash_["filter"])(imageSizes, function (_ref2) {
5691      var slug = _ref2.slug;
5692      return Object(external_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']);
5693    }), function (_ref3) {
5694      var name = _ref3.name,
5695          slug = _ref3.slug;
5696      return {
5697        value: slug,
5698        label: name
5699      };
5700    }); // Check if the cover block is registered.
5701  
5702    var coverBlockExists = !!Object(external_wp_blocks_["getBlockType"])('core/cover');
5703    Object(external_wp_element_["useEffect"])(function () {
5704      if (!isSelected) {
5705        setCaptionFocused(false);
5706      }
5707    }, [isSelected]); // If an image is externally hosted, try to fetch the image data. This may
5708    // fail if the image host doesn't allow CORS with the domain. If it works,
5709    // we can enable a button in the toolbar to upload the image.
5710  
5711    Object(external_wp_element_["useEffect"])(function () {
5712      if (!edit_isExternalImage(id, url) || !isSelected || externalBlob) {
5713        return;
5714      }
5715  
5716      window.fetch(url).then(function (response) {
5717        return response.blob();
5718      }).then(function (blob) {
5719        return setExternalBlob(blob);
5720      });
5721    }, [id, url, isSelected, externalBlob]); // Focus the caption after inserting an image from the placeholder. This is
5722    // done to preserve the behaviour of focussing the first tabbable element
5723    // when a block is mounted. Previously, the image block would remount when
5724    // the placeholder is removed. Maybe this behaviour could be removed.
5725  
5726    Object(external_wp_element_["useEffect"])(function () {
5727      if (url && !prevUrl && isSelected) {
5728        captionRef.current.focus();
5729      }
5730    }, [url, prevUrl]);
5731  
5732    function onResizeStart() {
5733      toggleSelection(false);
5734    }
5735  
5736    function _onResizeStop() {
5737      toggleSelection(true);
5738    }
5739  
5740    function onImageError() {
5741      // Check if there's an embed block that handles this URL.
5742      var embedBlock = util_createUpgradedEmbedBlock({
5743        attributes: {
5744          url: url
5745        }
5746      });
5747  
5748      if (undefined !== embedBlock) {
5749        onReplace(embedBlock);
5750      }
5751    }
5752  
5753    function onSetHref(props) {
5754      setAttributes(props);
5755    }
5756  
5757    function onSetTitle(value) {
5758      // This is the HTML title attribute, separate from the media object
5759      // title.
5760      setAttributes({
5761        title: value
5762      });
5763    }
5764  
5765    function onFocusCaption() {
5766      if (!captionFocused) {
5767        setCaptionFocused(true);
5768      }
5769    }
5770  
5771    function onImageClick() {
5772      if (captionFocused) {
5773        setCaptionFocused(false);
5774      }
5775    }
5776  
5777    function updateAlt(newAlt) {
5778      setAttributes({
5779        alt: newAlt
5780      });
5781    }
5782  
5783    function updateImage(newSizeSlug) {
5784      var newUrl = Object(external_lodash_["get"])(image, ['media_details', 'sizes', newSizeSlug, 'source_url']);
5785  
5786      if (!newUrl) {
5787        return null;
5788      }
5789  
5790      setAttributes({
5791        url: newUrl,
5792        width: undefined,
5793        height: undefined,
5794        sizeSlug: newSizeSlug
5795      });
5796    }
5797  
5798    function uploadExternal() {
5799      mediaUpload({
5800        filesList: [externalBlob],
5801        onFileChange: function onFileChange(_ref4) {
5802          var _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 1),
5803              img = _ref5[0];
5804  
5805          onSelectImage(img);
5806  
5807          if (Object(external_wp_blob_["isBlobURL"])(img.url)) {
5808            return;
5809          }
5810  
5811          setExternalBlob();
5812          createSuccessNotice(Object(external_wp_i18n_["__"])('Image uploaded.'), {
5813            type: 'snackbar'
5814          });
5815        },
5816        allowedTypes: ALLOWED_MEDIA_TYPES,
5817        onError: function onError(message) {
5818          createErrorNotice(message, {
5819            type: 'snackbar'
5820          });
5821        }
5822      });
5823    }
5824  
5825    function updateAlignment(nextAlign) {
5826      var extraUpdatedAttributes = ['wide', 'full'].includes(nextAlign) ? {
5827        width: undefined,
5828        height: undefined
5829      } : {};
5830      setAttributes(image_objectSpread(image_objectSpread({}, extraUpdatedAttributes), {}, {
5831        align: nextAlign
5832      }));
5833    }
5834  
5835    Object(external_wp_element_["useEffect"])(function () {
5836      if (!isSelected) {
5837        setIsEditingImage(false);
5838      }
5839    }, [isSelected]);
5840    var canEditImage = id && naturalWidth && naturalHeight && imageEditing;
5841    var allowCrop = !multiImageSelection && canEditImage && !isEditingImage;
5842    var controls = Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
5843      group: "block"
5844    }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockAlignmentControl"], {
5845      value: align,
5846      onChange: updateAlignment
5847    }), !multiImageSelection && !isEditingImage && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalImageURLInputUI"], {
5848      url: href || '',
5849      onChangeUrl: onSetHref,
5850      linkDestination: linkDestination,
5851      mediaUrl: image && image.source_url || url,
5852      mediaLink: image && image.link,
5853      linkTarget: linkTarget,
5854      linkClass: linkClass,
5855      rel: rel
5856    }), allowCrop && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5857      onClick: function onClick() {
5858        return setIsEditingImage(true);
5859      },
5860      icon: library_crop,
5861      label: Object(external_wp_i18n_["__"])('Crop')
5862    }), externalBlob && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5863      onClick: uploadExternal,
5864      icon: upload["a" /* default */],
5865      label: Object(external_wp_i18n_["__"])('Upload external image')
5866    }), !multiImageSelection && coverBlockExists && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
5867      icon: overlay_text,
5868      label: Object(external_wp_i18n_["__"])('Add text over image'),
5869      onClick: function onClick() {
5870        return replaceBlocks(currentId, Object(external_wp_blocks_["switchToBlockType"])(block, 'core/cover'));
5871      }
5872    })), !multiImageSelection && !isEditingImage && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
5873      group: "other"
5874    }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaReplaceFlow"], {
5875      mediaId: id,
5876      mediaURL: url,
5877      allowedTypes: ALLOWED_MEDIA_TYPES,
5878      accept: "image/*",
5879      onSelect: onSelectImage,
5880      onSelectURL: onSelectURL,
5881      onError: onUploadError
5882    })), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
5883      title: Object(external_wp_i18n_["__"])('Image settings')
5884    }, !multiImageSelection && Object(external_wp_element_["createElement"])(external_wp_components_["TextareaControl"], {
5885      label: Object(external_wp_i18n_["__"])('Alt text (alternative text)'),
5886      value: alt,
5887      onChange: updateAlt,
5888      help: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ExternalLink"], {
5889        href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
5890      }, Object(external_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_wp_i18n_["__"])('Leave empty if the image is purely decorative.'))
5891    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalImageSizeControl"], {
5892      onChangeImage: updateImage,
5893      onChange: function onChange(value) {
5894        return setAttributes(value);
5895      },
5896      slug: sizeSlug,
5897      width: width,
5898      height: height,
5899      imageSizeOptions: imageSizeOptions,
5900      isResizable: isResizable,
5901      imageWidth: naturalWidth,
5902      imageHeight: naturalHeight
5903    }))), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorAdvancedControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], {
5904      label: Object(external_wp_i18n_["__"])('Title attribute'),
5905      value: title || '',
5906      onChange: onSetTitle,
5907      help: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_i18n_["__"])('Describe the role of this image on the page.'), Object(external_wp_element_["createElement"])(external_wp_components_["ExternalLink"], {
5908        href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
5909      }, Object(external_wp_i18n_["__"])('(Note: many devices and browsers do not display this text.)')))
5910    })));
5911    var filename = getFilename(url);
5912    var defaultedAlt;
5913  
5914    if (alt) {
5915      defaultedAlt = alt;
5916    } else if (filename) {
5917      defaultedAlt = Object(external_wp_i18n_["sprintf"])(
5918      /* translators: %s: file name */
5919      Object(external_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename);
5920    } else {
5921      defaultedAlt = Object(external_wp_i18n_["__"])('This image has an empty alt attribute');
5922    }
5923  
5924    var img = // Disable reason: Image itself is not meant to be interactive, but
5925    // should direct focus to block.
5926  
5927    /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
5928    Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("img", {
5929      src: temporaryURL || url,
5930      alt: defaultedAlt,
5931      onClick: onImageClick,
5932      onError: function onError() {
5933        return onImageError();
5934      },
5935      onLoad: function onLoad(event) {
5936        setNaturalSize(Object(external_lodash_["pick"])(event.target, ['naturalWidth', 'naturalHeight']));
5937      }
5938    }), temporaryURL && Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null))
5939    /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
5940    ;
5941    var imageWidthWithinContainer;
5942    var imageHeightWithinContainer;
5943  
5944    if (clientWidth && naturalWidth && naturalHeight) {
5945      var exceedMaxWidth = naturalWidth > clientWidth;
5946      var ratio = naturalHeight / naturalWidth;
5947      imageWidthWithinContainer = exceedMaxWidth ? clientWidth : naturalWidth;
5948      imageHeightWithinContainer = exceedMaxWidth ? clientWidth * ratio : naturalHeight;
5949    }
5950  
5951    if (canEditImage && isEditingImage) {
5952      img = Object(external_wp_element_["createElement"])(ImageEditor, {
5953        url: url,
5954        width: width,
5955        height: height,
5956        clientWidth: clientWidth,
5957        naturalHeight: naturalHeight,
5958        naturalWidth: naturalWidth
5959      });
5960    } else if (!isResizable || !imageWidthWithinContainer) {
5961      img = Object(external_wp_element_["createElement"])("div", {
5962        style: {
5963          width: width,
5964          height: height
5965        }
5966      }, img);
5967    } else {
5968      var currentWidth = width || imageWidthWithinContainer;
5969      var currentHeight = height || imageHeightWithinContainer;
5970  
5971      var _ratio = naturalWidth / naturalHeight;
5972  
5973      var minWidth = naturalWidth < naturalHeight ? MIN_SIZE : MIN_SIZE * _ratio;
5974      var minHeight = naturalHeight < naturalWidth ? MIN_SIZE : MIN_SIZE / _ratio; // With the current implementation of ResizableBox, an image needs an
5975      // explicit pixel value for the max-width. In absence of being able to
5976      // set the content-width, this max-width is currently dictated by the
5977      // vanilla editor style. The following variable adds a buffer to this
5978      // vanilla style, so 3rd party themes have some wiggleroom. This does,
5979      // in most cases, allow you to scale the image beyond the width of the
5980      // main column, though not infinitely.
5981      // @todo It would be good to revisit this once a content-width variable
5982      // becomes available.
5983  
5984      var maxWidthBuffer = maxWidth * 2.5;
5985      var showRightHandle = false;
5986      var showLeftHandle = false;
5987      /* eslint-disable no-lonely-if */
5988      // See https://github.com/WordPress/gutenberg/issues/7584.
5989  
5990      if (align === 'center') {
5991        // When the image is centered, show both handles.
5992        showRightHandle = true;
5993        showLeftHandle = true;
5994      } else if (Object(external_wp_i18n_["isRTL"])()) {
5995        // In RTL mode the image is on the right by default.
5996        // Show the right handle and hide the left handle only when it is
5997        // aligned left. Otherwise always show the left handle.
5998        if (align === 'left') {
5999          showRightHandle = true;
6000        } else {
6001          showLeftHandle = true;
6002        }
6003      } else {
6004        // Show the left handle and hide the right handle only when the
6005        // image is aligned right. Otherwise always show the right handle.
6006        if (align === 'right') {
6007          showLeftHandle = true;
6008        } else {
6009          showRightHandle = true;
6010        }
6011      }
6012      /* eslint-enable no-lonely-if */
6013  
6014  
6015      img = Object(external_wp_element_["createElement"])(external_wp_components_["ResizableBox"], {
6016        size: {
6017          width: width !== null && width !== void 0 ? width : 'auto',
6018          height: height !== null && height !== void 0 ? height : 'auto'
6019        },
6020        showHandle: isSelected,
6021        minWidth: minWidth,
6022        maxWidth: maxWidthBuffer,
6023        minHeight: minHeight,
6024        maxHeight: maxWidthBuffer / _ratio,
6025        lockAspectRatio: true,
6026        enable: {
6027          top: false,
6028          right: showRightHandle,
6029          bottom: true,
6030          left: showLeftHandle
6031        },
6032        onResizeStart: onResizeStart,
6033        onResizeStop: function onResizeStop(event, direction, elt, delta) {
6034          _onResizeStop();
6035  
6036          setAttributes({
6037            width: parseInt(currentWidth + delta.width, 10),
6038            height: parseInt(currentHeight + delta.height, 10)
6039          });
6040        }
6041      }, img);
6042    }
6043  
6044    return Object(external_wp_element_["createElement"])(ImageEditingProvider, {
6045      id: id,
6046      url: url,
6047      naturalWidth: naturalWidth,
6048      naturalHeight: naturalHeight,
6049      clientWidth: clientWidth,
6050      onSaveImage: function onSaveImage(imageAttributes) {
6051        return setAttributes(imageAttributes);
6052      },
6053      isEditing: isEditingImage,
6054      onFinishEditing: function onFinishEditing() {
6055        return setIsEditingImage(false);
6056      }
6057    }, controls, img, (!external_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], {
6058      ref: captionRef,
6059      tagName: "figcaption",
6060      "aria-label": Object(external_wp_i18n_["__"])('Image caption text'),
6061      placeholder: Object(external_wp_i18n_["__"])('Add caption'),
6062      value: caption,
6063      unstableOnFocus: onFocusCaption,
6064      onChange: function onChange(value) {
6065        return setAttributes({
6066          caption: value
6067        });
6068      },
6069      isSelected: captionFocused,
6070      inlineToolbar: true,
6071      __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() {
6072        return insertBlocksAfter(Object(external_wp_blocks_["createBlock"])('core/paragraph'));
6073      }
6074    }));
6075  }
6076  
6077  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js
6078  
6079  
6080  
6081  
6082  function image_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6083  
6084  function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { image_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { image_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6085  
6086  /**
6087   * External dependencies
6088   */
6089  
6090  
6091  /**
6092   * WordPress dependencies
6093   */
6094  
6095  
6096  
6097  
6098  
6099  
6100  
6101  
6102  /* global wp */
6103  
6104  /**
6105   * Internal dependencies
6106   */
6107  
6108  
6109  /**
6110   * Module constants
6111   */
6112  
6113  
6114  var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image, size) {
6115    var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
6116    imageProps.url = Object(external_lodash_["get"])(image, ['sizes', size, 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', size, 'source_url']) || image.url;
6117    return imageProps;
6118  };
6119  /**
6120   * Is the URL a temporary blob URL? A blob URL is one that is used temporarily
6121   * while the image is being uploaded and will not have an id yet allocated.
6122   *
6123   * @param {number=} id The id of the image.
6124   * @param {string=} url The url of the image.
6125   *
6126   * @return {boolean} Is the URL a Blob URL
6127   */
6128  
6129  var edit_isTemporaryImage = function isTemporaryImage(id, url) {
6130    return !id && Object(external_wp_blob_["isBlobURL"])(url);
6131  };
6132  /**
6133   * Is the url for the image hosted externally. An externally hosted image has no
6134   * id and is not a blob url.
6135   *
6136   * @param {number=} id  The id of the image.
6137   * @param {string=} url The url of the image.
6138   *
6139   * @return {boolean} Is the url an externally hosted url?
6140   */
6141  
6142  
6143  var edit_isExternalImage = function isExternalImage(id, url) {
6144    return url && !id && !Object(external_wp_blob_["isBlobURL"])(url);
6145  };
6146  function ImageEdit(_ref) {
6147    var attributes = _ref.attributes,
6148        setAttributes = _ref.setAttributes,
6149        isSelected = _ref.isSelected,
6150        className = _ref.className,
6151        noticeUI = _ref.noticeUI,
6152        insertBlocksAfter = _ref.insertBlocksAfter,
6153        noticeOperations = _ref.noticeOperations,
6154        onReplace = _ref.onReplace;
6155    var _attributes$url = attributes.url,
6156        url = _attributes$url === void 0 ? '' : _attributes$url,
6157        alt = attributes.alt,
6158        caption = attributes.caption,
6159        align = attributes.align,
6160        id = attributes.id,
6161        width = attributes.width,
6162        height = attributes.height,
6163        sizeSlug = attributes.sizeSlug;
6164  
6165    var _useState = Object(external_wp_element_["useState"])(),
6166        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
6167        temporaryURL = _useState2[0],
6168        setTemporaryURL = _useState2[1];
6169  
6170    var altRef = Object(external_wp_element_["useRef"])();
6171    Object(external_wp_element_["useEffect"])(function () {
6172      altRef.current = alt;
6173    }, [alt]);
6174    var captionRef = Object(external_wp_element_["useRef"])();
6175    Object(external_wp_element_["useEffect"])(function () {
6176      captionRef.current = caption;
6177    }, [caption]);
6178    var ref = Object(external_wp_element_["useRef"])();
6179  
6180    var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
6181      var _select = select(external_wp_blockEditor_["store"]),
6182          getSettings = _select.getSettings;
6183  
6184      return Object(external_lodash_["pick"])(getSettings(), ['imageDefaultSize', 'mediaUpload']);
6185    }, []),
6186        imageDefaultSize = _useSelect.imageDefaultSize,
6187        mediaUpload = _useSelect.mediaUpload;
6188  
6189    function onUploadError(message) {
6190      noticeOperations.removeAllNotices();
6191      noticeOperations.createErrorNotice(message);
6192    }
6193  
6194    function onSelectImage(media) {
6195      var _wp, _wp$media, _wp$media$view, _wp$media$view$settin, _wp$media$view$settin2;
6196  
6197      if (!media || !media.url) {
6198        setAttributes({
6199          url: undefined,
6200          alt: undefined,
6201          id: undefined,
6202          title: undefined,
6203          caption: undefined
6204        });
6205        return;
6206      }
6207  
6208      if (Object(external_wp_blob_["isBlobURL"])(media.url)) {
6209        setTemporaryURL(media.url);
6210        return;
6211      }
6212  
6213      setTemporaryURL();
6214      var mediaAttributes = edit_pickRelevantMediaFiles(media, imageDefaultSize); // If a caption text was meanwhile written by the user,
6215      // make sure the text is not overwritten by empty captions.
6216  
6217      if (captionRef.current && !Object(external_lodash_["get"])(mediaAttributes, ['caption'])) {
6218        mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['caption']);
6219      }
6220  
6221      var additionalAttributes; // Reset the dimension attributes if changing to a different image.
6222  
6223      if (!media.id || media.id !== id) {
6224        additionalAttributes = {
6225          width: undefined,
6226          height: undefined,
6227          sizeSlug: imageDefaultSize
6228        };
6229      } else {
6230        // Keep the same url when selecting the same file, so "Image Size"
6231        // option is not changed.
6232        additionalAttributes = {
6233          url: url
6234        };
6235      } // Check if default link setting should be used.
6236  
6237  
6238      var linkDestination = attributes.linkDestination;
6239  
6240      if (!linkDestination) {
6241        // Use the WordPress option to determine the proper default.
6242        // The constants used in Gutenberg do not match WP options so a little more complicated than ideal.
6243        // TODO: fix this in a follow up PR, requires updating media-text and ui component.
6244        switch (((_wp = wp) === null || _wp === void 0 ? void 0 : (_wp$media = _wp.media) === null || _wp$media === void 0 ? void 0 : (_wp$media$view = _wp$media.view) === null || _wp$media$view === void 0 ? void 0 : (_wp$media$view$settin = _wp$media$view.settings) === null || _wp$media$view$settin === void 0 ? void 0 : (_wp$media$view$settin2 = _wp$media$view$settin.defaultProps) === null || _wp$media$view$settin2 === void 0 ? void 0 : _wp$media$view$settin2.link) || LINK_DESTINATION_NONE) {
6245          case 'file':
6246          case LINK_DESTINATION_MEDIA:
6247            linkDestination = LINK_DESTINATION_MEDIA;
6248            break;
6249  
6250          case 'post':
6251          case LINK_DESTINATION_ATTACHMENT:
6252            linkDestination = LINK_DESTINATION_ATTACHMENT;
6253            break;
6254  
6255          case LINK_DESTINATION_CUSTOM:
6256            linkDestination = LINK_DESTINATION_CUSTOM;
6257            break;
6258  
6259          case LINK_DESTINATION_NONE:
6260            linkDestination = LINK_DESTINATION_NONE;
6261            break;
6262        }
6263      } // Check if the image is linked to it's media.
6264  
6265  
6266      var href;
6267  
6268      switch (linkDestination) {
6269        case LINK_DESTINATION_MEDIA:
6270          href = media.url;
6271          break;
6272  
6273        case LINK_DESTINATION_ATTACHMENT:
6274          href = media.link;
6275          break;
6276      }
6277  
6278      mediaAttributes.href = href;
6279      setAttributes(image_edit_objectSpread(image_edit_objectSpread(image_edit_objectSpread({}, mediaAttributes), additionalAttributes), {}, {
6280        linkDestination: linkDestination
6281      }));
6282    }
6283  
6284    function onSelectURL(newURL) {
6285      if (newURL !== url) {
6286        setAttributes({
6287          url: newURL,
6288          id: undefined,
6289          width: undefined,
6290          height: undefined,
6291          sizeSlug: imageDefaultSize
6292        });
6293      }
6294    }
6295  
6296    function updateAlignment(nextAlign) {
6297      var extraUpdatedAttributes = ['wide', 'full'].includes(nextAlign) ? {
6298        width: undefined,
6299        height: undefined
6300      } : {};
6301      setAttributes(image_edit_objectSpread(image_edit_objectSpread({}, extraUpdatedAttributes), {}, {
6302        align: nextAlign
6303      }));
6304    }
6305  
6306    var isTemp = edit_isTemporaryImage(id, url); // Upload a temporary image on mount.
6307  
6308    Object(external_wp_element_["useEffect"])(function () {
6309      if (!isTemp) {
6310        return;
6311      }
6312  
6313      var file = Object(external_wp_blob_["getBlobByURL"])(url);
6314  
6315      if (file) {
6316        mediaUpload({
6317          filesList: [file],
6318          onFileChange: function onFileChange(_ref2) {
6319            var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1),
6320                img = _ref3[0];
6321  
6322            onSelectImage(img);
6323          },
6324          allowedTypes: ALLOWED_MEDIA_TYPES,
6325          onError: function onError(message) {
6326            noticeOperations.createErrorNotice(message);
6327            setAttributes({
6328              src: undefined,
6329              id: undefined,
6330              url: undefined
6331            });
6332          }
6333        });
6334      }
6335    }, []); // If an image is temporary, revoke the Blob url when it is uploaded (and is
6336    // no longer temporary).
6337  
6338    Object(external_wp_element_["useEffect"])(function () {
6339      if (!temporaryURL) {
6340        return;
6341      }
6342  
6343      return function () {
6344        Object(external_wp_blob_["revokeBlobURL"])(temporaryURL);
6345      };
6346    }, [temporaryURL]);
6347    var isExternal = edit_isExternalImage(id, url);
6348    var src = isExternal ? url : undefined;
6349    var mediaPreview = !!url && Object(external_wp_element_["createElement"])("img", {
6350      alt: Object(external_wp_i18n_["__"])('Edit image'),
6351      title: Object(external_wp_i18n_["__"])('Edit image'),
6352      className: 'edit-image-preview',
6353      src: url
6354    });
6355    var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({
6356      'is-transient': temporaryURL,
6357      'is-resized': !!width || !!height
6358    }, "size-".concat(sizeSlug), sizeSlug));
6359    var blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
6360      ref: ref,
6361      className: classes
6362    });
6363    return Object(external_wp_element_["createElement"])("figure", blockProps, (temporaryURL || url) && Object(external_wp_element_["createElement"])(Image, {
6364      temporaryURL: temporaryURL,
6365      attributes: attributes,
6366      setAttributes: setAttributes,
6367      isSelected: isSelected,
6368      insertBlocksAfter: insertBlocksAfter,
6369      onReplace: onReplace,
6370      onSelectImage: onSelectImage,
6371      onSelectURL: onSelectURL,
6372      onUploadError: onUploadError,
6373      containerRef: ref
6374    }), !url && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
6375      group: "block"
6376    }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockAlignmentControl"], {
6377      value: align,
6378      onChange: updateAlignment
6379    })), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaPlaceholder"], {
6380      icon: Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockIcon"], {
6381        icon: library_image
6382      }),
6383      onSelect: onSelectImage,
6384      onSelectURL: onSelectURL,
6385      notices: noticeUI,
6386      onError: onUploadError,
6387      accept: "image/*",
6388      allowedTypes: ALLOWED_MEDIA_TYPES,
6389      value: {
6390        id: id,
6391        src: src
6392      },
6393      mediaPreview: mediaPreview,
6394      disableMediaButtons: temporaryURL || url
6395    }));
6396  }
6397  /* harmony default export */ var image_edit = (Object(external_wp_components_["withNotices"])(ImageEdit));
6398  
6399  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js
6400  
6401  
6402  
6403  /**
6404   * External dependencies
6405   */
6406  
6407  
6408  /**
6409   * WordPress dependencies
6410   */
6411  
6412  
6413  function image_save_save(_ref) {
6414    var _classnames;
6415  
6416    var attributes = _ref.attributes;
6417    var url = attributes.url,
6418        alt = attributes.alt,
6419        caption = attributes.caption,
6420        align = attributes.align,
6421        href = attributes.href,
6422        rel = attributes.rel,
6423        linkClass = attributes.linkClass,
6424        width = attributes.width,
6425        height = attributes.height,
6426        id = attributes.id,
6427        linkTarget = attributes.linkTarget,
6428        sizeSlug = attributes.sizeSlug,
6429        title = attributes.title;
6430    var newRel = Object(external_lodash_["isEmpty"])(rel) ? undefined : rel;
6431    var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(sizeSlug), sizeSlug), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
6432    var image = Object(external_wp_element_["createElement"])("img", {
6433      src: url,
6434      alt: alt,
6435      className: id ? "wp-image-".concat(id) : null,
6436      width: width,
6437      height: height,
6438      title: title
6439    });
6440    var figure = Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, href ? Object(external_wp_element_["createElement"])("a", {
6441      className: linkClass,
6442      href: href,
6443      target: linkTarget,
6444      rel: newRel
6445    }, image) : image, !external_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
6446      tagName: "figcaption",
6447      value: caption
6448    }));
6449  
6450    if ('left' === align || 'right' === align || 'center' === align) {
6451      return Object(external_wp_element_["createElement"])("div", external_wp_blockEditor_["useBlockProps"].save(), Object(external_wp_element_["createElement"])("figure", {
6452        className: classes
6453      }, figure));
6454    }
6455  
6456    return Object(external_wp_element_["createElement"])("figure", external_wp_blockEditor_["useBlockProps"].save({
6457      className: classes
6458    }), figure);
6459  }
6460  
6461  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js
6462  
6463  
6464  function transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6465  
6466  function transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6467  
6468  /**
6469   * WordPress dependencies
6470   */
6471  
6472  
6473  function stripFirstImage(attributes, _ref) {
6474    var shortcode = _ref.shortcode;
6475  
6476    var _document$implementat = document.implementation.createHTMLDocument(''),
6477        body = _document$implementat.body;
6478  
6479    body.innerHTML = shortcode.content;
6480    var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove
6481  
6482    while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) {
6483      nodeToRemove = nodeToRemove.parentNode;
6484    }
6485  
6486    if (nodeToRemove) {
6487      nodeToRemove.parentNode.removeChild(nodeToRemove);
6488    }
6489  
6490    return body.innerHTML.trim();
6491  }
6492  
6493  function getFirstAnchorAttributeFormHTML(html, attributeName) {
6494    var _document$implementat2 = document.implementation.createHTMLDocument(''),
6495        body = _document$implementat2.body;
6496  
6497    body.innerHTML = html;
6498    var firstElementChild = body.firstElementChild;
6499  
6500    if (firstElementChild && firstElementChild.nodeName === 'A') {
6501      return firstElementChild.getAttribute(attributeName) || undefined;
6502    }
6503  }
6504  
6505  var imageSchema = {
6506    img: {
6507      attributes: ['src', 'alt', 'title'],
6508      classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/]
6509    }
6510  };
6511  
6512  var schema = function schema(_ref2) {
6513    var phrasingContentSchema = _ref2.phrasingContentSchema;
6514    return {
6515      figure: {
6516        require: ['img'],
6517        children: transforms_objectSpread(transforms_objectSpread({}, imageSchema), {}, {
6518          a: {
6519            attributes: ['href', 'rel', 'target'],
6520            children: imageSchema
6521          },
6522          figcaption: {
6523            children: phrasingContentSchema
6524          }
6525        })
6526      }
6527    };
6528  };
6529  
6530  var transforms_transforms = {
6531    from: [{
6532      type: 'raw',
6533      isMatch: function isMatch(node) {
6534        return node.nodeName === 'FIGURE' && !!node.querySelector('img');
6535      },
6536      schema: schema,
6537      transform: function transform(node) {
6538        // Search both figure and image classes. Alignment could be
6539        // set on either. ID is set on the image.
6540        var className = node.className + ' ' + node.querySelector('img').className;
6541        var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className);
6542        var anchor = node.id === '' ? undefined : node.id;
6543        var align = alignMatches ? alignMatches[1] : undefined;
6544        var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className);
6545        var id = idMatches ? Number(idMatches[1]) : undefined;
6546        var anchorElement = node.querySelector('a');
6547        var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined;
6548        var href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
6549        var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined;
6550        var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined;
6551        var attributes = Object(external_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, {
6552          align: align,
6553          id: id,
6554          linkDestination: linkDestination,
6555          href: href,
6556          rel: rel,
6557          linkClass: linkClass,
6558          anchor: anchor
6559        });
6560        return Object(external_wp_blocks_["createBlock"])('core/image', attributes);
6561      }
6562    }, {
6563      type: 'files',
6564      isMatch: function isMatch(files) {
6565        return files.length === 1 && files[0].type.indexOf('image/') === 0;
6566      },
6567      transform: function transform(files) {
6568        var file = files[0]; // We don't need to upload the media directly here
6569        // It's already done as part of the `componentDidMount`
6570        // int the image block
6571  
6572        return Object(external_wp_blocks_["createBlock"])('core/image', {
6573          url: Object(external_wp_blob_["createBlobURL"])(file)
6574        });
6575      }
6576    }, {
6577      type: 'shortcode',
6578      tag: 'caption',
6579      attributes: {
6580        url: {
6581          type: 'string',
6582          source: 'attribute',
6583          attribute: 'src',
6584          selector: 'img'
6585        },
6586        alt: {
6587          type: 'string',
6588          source: 'attribute',
6589          attribute: 'alt',
6590          selector: 'img'
6591        },
6592        caption: {
6593          shortcode: stripFirstImage
6594        },
6595        href: {
6596          shortcode: function shortcode(attributes, _ref3) {
6597            var _shortcode = _ref3.shortcode;
6598            return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href');
6599          }
6600        },
6601        rel: {
6602          shortcode: function shortcode(attributes, _ref4) {
6603            var _shortcode2 = _ref4.shortcode;
6604            return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel');
6605          }
6606        },
6607        linkClass: {
6608          shortcode: function shortcode(attributes, _ref5) {
6609            var _shortcode3 = _ref5.shortcode;
6610            return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class');
6611          }
6612        },
6613        id: {
6614          type: 'number',
6615          shortcode: function shortcode(_ref6) {
6616            var id = _ref6.named.id;
6617  
6618            if (!id) {
6619              return;
6620            }
6621  
6622            return parseInt(id.replace('attachment_', ''), 10);
6623          }
6624        },
6625        align: {
6626          type: 'string',
6627          shortcode: function shortcode(_ref7) {
6628            var _ref7$named$align = _ref7.named.align,
6629                align = _ref7$named$align === void 0 ? 'alignnone' : _ref7$named$align;
6630            return align.replace('align', '');
6631          }
6632        }
6633      }
6634    }]
6635  };
6636  /* harmony default export */ var image_transforms = (transforms_transforms);
6637  
6638  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js
6639  /**
6640   * WordPress dependencies
6641   */
6642  
6643  
6644  /**
6645   * Internal dependencies
6646   */
6647  
6648  
6649  
6650  var image_metadata = {
6651    apiVersion: 2,
6652    name: "core/image",
6653    category: "media",
6654    attributes: {
6655      align: {
6656        type: "string"
6657      },
6658      url: {
6659        type: "string",
6660        source: "attribute",
6661        selector: "img",
6662        attribute: "src"
6663      },
6664      alt: {
6665        type: "string",
6666        source: "attribute",
6667        selector: "img",
6668        attribute: "alt",
6669        "default": ""
6670      },
6671      caption: {
6672        type: "string",
6673        source: "html",
6674        selector: "figcaption"
6675      },
6676      title: {
6677        type: "string",
6678        source: "attribute",
6679        selector: "img",
6680        attribute: "title"
6681      },
6682      href: {
6683        type: "string",
6684        source: "attribute",
6685        selector: "figure > a",
6686        attribute: "href"
6687      },
6688      rel: {
6689        type: "string",
6690        source: "attribute",
6691        selector: "figure > a",
6692        attribute: "rel"
6693      },
6694      linkClass: {
6695        type: "string",
6696        source: "attribute",
6697        selector: "figure > a",
6698        attribute: "class"
6699      },
6700      id: {
6701        type: "number"
6702      },
6703      width: {
6704        type: "number"
6705      },
6706      height: {
6707        type: "number"
6708      },
6709      sizeSlug: {
6710        type: "string"
6711      },
6712      linkDestination: {
6713        type: "string"
6714      },
6715      linkTarget: {
6716        type: "string",
6717        source: "attribute",
6718        selector: "figure > a",
6719        attribute: "target"
6720      }
6721    },
6722    supports: {
6723      anchor: true,
6724      __experimentalBorder: {
6725        radius: true
6726      }
6727    },
6728    editorStyle: "wp-block-image-editor",
6729    style: "wp-block-image"
6730  };
6731  
6732  
6733  var image_name = image_metadata.name;
6734  
6735  var image_settings = {
6736    title: Object(external_wp_i18n_["_x"])('Image', 'block title'),
6737    description: Object(external_wp_i18n_["__"])('Insert an image to make a visual statement.'),
6738    icon: library_image,
6739    keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
6740    Object(external_wp_i18n_["__"])('photo'), Object(external_wp_i18n_["__"])('picture')],
6741    example: {
6742      attributes: {
6743        sizeSlug: 'large',
6744        url: 'https://s.w.org/images/core/5.3/MtBlanc1.jpg',
6745        // translators: Caption accompanying an image of the Mont Blanc, which serves as an example for the Image block.
6746        caption: Object(external_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.')
6747      }
6748    },
6749    styles: [{
6750      name: 'default',
6751      label: Object(external_wp_i18n_["_x"])('Default', 'block style'),
6752      isDefault: true
6753    }, {
6754      name: 'rounded',
6755      label: Object(external_wp_i18n_["_x"])('Rounded', 'block style')
6756    }],
6757    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
6758      var context = _ref.context;
6759  
6760      if (context === 'accessibility') {
6761        var caption = attributes.caption,
6762            alt = attributes.alt,
6763            url = attributes.url;
6764  
6765        if (!url) {
6766          return Object(external_wp_i18n_["__"])('Empty');
6767        }
6768  
6769        if (!alt) {
6770          return caption || '';
6771        } // This is intended to be read by a screen reader.
6772        // A period simply means a pause, no need to translate it.
6773  
6774  
6775        return alt + (caption ? '. ' + caption : '');
6776      }
6777    },
6778    getEditWrapperProps: function getEditWrapperProps(attributes) {
6779      return {
6780        'data-align': attributes.align
6781      };
6782    },
6783    transforms: image_transforms,
6784    edit: image_edit,
6785    save: image_save_save,
6786    deprecated: image_deprecated
6787  };
6788  
6789  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading.js
6790  
6791  
6792  /**
6793   * WordPress dependencies
6794   */
6795  
6796  var heading = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
6797    xmlns: "http://www.w3.org/2000/svg",
6798    viewBox: "0 0 24 24"
6799  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
6800    d: "M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"
6801  }));
6802  /* harmony default export */ var library_heading = (heading);
6803  
6804  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
6805  var objectWithoutProperties = __webpack_require__(14);
6806  
6807  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
6808  
6809  
6810  
6811  
6812  function deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6813  
6814  function deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6815  
6816  /**
6817   * External dependencies
6818   */
6819  
6820  
6821  /**
6822   * WordPress dependencies
6823   */
6824  
6825  
6826  var blockSupports = {
6827    className: false,
6828    anchor: true
6829  };
6830  var heading_deprecated_blockAttributes = {
6831    align: {
6832      type: 'string'
6833    },
6834    content: {
6835      type: 'string',
6836      source: 'html',
6837      selector: 'h1,h2,h3,h4,h5,h6',
6838      default: ''
6839    },
6840    level: {
6841      type: 'number',
6842      default: 2
6843    },
6844    placeholder: {
6845      type: 'string'
6846    }
6847  };
6848  
6849  var deprecated_migrateCustomColors = function migrateCustomColors(attributes) {
6850    if (!attributes.customTextColor) {
6851      return attributes;
6852    }
6853  
6854    var style = {
6855      color: {
6856        text: attributes.customTextColor
6857      }
6858    };
6859    return deprecated_objectSpread(deprecated_objectSpread({}, Object(external_lodash_["omit"])(attributes, ['customTextColor'])), {}, {
6860      style: style
6861    });
6862  };
6863  
6864  var TEXT_ALIGN_OPTIONS = ['left', 'right', 'center'];
6865  
6866  var deprecated_migrateTextAlign = function migrateTextAlign(attributes) {
6867    var align = attributes.align,
6868        rest = Object(objectWithoutProperties["a" /* default */])(attributes, ["align"]);
6869  
6870    return TEXT_ALIGN_OPTIONS.includes(align) ? deprecated_objectSpread(deprecated_objectSpread({}, rest), {}, {
6871      textAlign: align
6872    }) : attributes;
6873  };
6874  
6875  var heading_deprecated_deprecated = [{
6876    supports: {
6877      align: ['wide', 'full'],
6878      anchor: true,
6879      className: false,
6880      color: {
6881        link: true
6882      },
6883      fontSize: true,
6884      lineHeight: true,
6885      __experimentalSelector: {
6886        'core/heading/h1': 'h1',
6887        'core/heading/h2': 'h2',
6888        'core/heading/h3': 'h3',
6889        'core/heading/h4': 'h4',
6890        'core/heading/h5': 'h5',
6891        'core/heading/h6': 'h6'
6892      },
6893      __unstablePasteTextInline: true
6894    },
6895    attributes: heading_deprecated_blockAttributes,
6896    isEligible: function isEligible(_ref) {
6897      var align = _ref.align;
6898      return TEXT_ALIGN_OPTIONS.includes(align);
6899    },
6900    migrate: deprecated_migrateTextAlign,
6901    save: function save(_ref2) {
6902      var attributes = _ref2.attributes;
6903      var align = attributes.align,
6904          content = attributes.content,
6905          level = attributes.level;
6906      var TagName = 'h' + level;
6907      var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
6908      return Object(external_wp_element_["createElement"])(TagName, external_wp_blockEditor_["useBlockProps"].save({
6909        className: className
6910      }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
6911        value: content
6912      }));
6913    }
6914  }, {
6915    supports: blockSupports,
6916    attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, {
6917      customTextColor: {
6918        type: 'string'
6919      },
6920      textColor: {
6921        type: 'string'
6922      }
6923    }),
6924    migrate: function migrate(attributes) {
6925      return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
6926    },
6927    save: function save(_ref3) {
6928      var _classnames2;
6929  
6930      var attributes = _ref3.attributes;
6931      var align = attributes.align,
6932          content = attributes.content,
6933          customTextColor = attributes.customTextColor,
6934          level = attributes.level,
6935          textColor = attributes.textColor;
6936      var tagName = 'h' + level;
6937      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
6938      var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames2, "has-text-align-".concat(align), align), _classnames2));
6939      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
6940        className: className ? className : undefined,
6941        tagName: tagName,
6942        style: {
6943          color: textClass ? undefined : customTextColor
6944        },
6945        value: content
6946      });
6947    }
6948  }, {
6949    attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, {
6950      customTextColor: {
6951        type: 'string'
6952      },
6953      textColor: {
6954        type: 'string'
6955      }
6956    }),
6957    migrate: function migrate(attributes) {
6958      return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
6959    },
6960    save: function save(_ref4) {
6961      var _classnames3;
6962  
6963      var attributes = _ref4.attributes;
6964      var align = attributes.align,
6965          content = attributes.content,
6966          customTextColor = attributes.customTextColor,
6967          level = attributes.level,
6968          textColor = attributes.textColor;
6969      var tagName = 'h' + level;
6970      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
6971      var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, "has-text-align-".concat(align), align), _classnames3));
6972      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
6973        className: className ? className : undefined,
6974        tagName: tagName,
6975        style: {
6976          color: textClass ? undefined : customTextColor
6977        },
6978        value: content
6979      });
6980    },
6981    supports: blockSupports
6982  }, {
6983    supports: blockSupports,
6984    attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, {
6985      customTextColor: {
6986        type: 'string'
6987      },
6988      textColor: {
6989        type: 'string'
6990      }
6991    }),
6992    migrate: function migrate(attributes) {
6993      return deprecated_migrateCustomColors(deprecated_migrateTextAlign(attributes));
6994    },
6995    save: function save(_ref5) {
6996      var attributes = _ref5.attributes;
6997      var align = attributes.align,
6998          level = attributes.level,
6999          content = attributes.content,
7000          textColor = attributes.textColor,
7001          customTextColor = attributes.customTextColor;
7002      var tagName = 'h' + level;
7003      var textClass = Object(external_wp_blockEditor_["getColorClassName"])('color', textColor);
7004      var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass));
7005      return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7006        className: className ? className : undefined,
7007        tagName: tagName,
7008        style: {
7009          textAlign: align,
7010          color: textClass ? undefined : customTextColor
7011        },
7012        value: content
7013      });
7014    }
7015  }];
7016  /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated);
7017  
7018  // EXTERNAL MODULE: external ["wp","keycodes"]
7019  var external_wp_keycodes_ = __webpack_require__(17);
7020  
7021  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js
7022  
7023  
7024  /**
7025   * WordPress dependencies
7026   */
7027  
7028  /** @typedef {import('@wordpress/element').WPComponent} WPComponent */
7029  
7030  /**
7031   * HeadingLevelIcon props.
7032   *
7033   * @typedef WPHeadingLevelIconProps
7034   *
7035   * @property {number}   level     The heading level to show an icon for.
7036   * @property {?boolean} isPressed Whether or not the icon should appear pressed; default: false.
7037   */
7038  
7039  /**
7040   * Heading level icon.
7041   *
7042   * @param {WPHeadingLevelIconProps} props Component props.
7043   *
7044   * @return {?WPComponent} The icon.
7045   */
7046  
7047  function HeadingLevelIcon(_ref) {
7048    var level = _ref.level,
7049        _ref$isPressed = _ref.isPressed,
7050        isPressed = _ref$isPressed === void 0 ? false : _ref$isPressed;
7051    var levelToPath = {
7052      1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z',
7053      2: 'M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z',
7054      3: 'M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z',
7055      4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z',
7056      5: 'M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z',
7057      6: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z'
7058    };
7059  
7060    if (!levelToPath.hasOwnProperty(level)) {
7061      return null;
7062    }
7063  
7064    return Object(external_wp_element_["createElement"])(external_wp_components_["SVG"], {
7065      width: "24",
7066      height: "24",
7067      viewBox: "0 0 20 20",
7068      xmlns: "http://www.w3.org/2000/svg",
7069      isPressed: isPressed
7070    }, Object(external_wp_element_["createElement"])(external_wp_components_["Path"], {
7071      d: levelToPath[level]
7072    }));
7073  }
7074  
7075  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-dropdown.js
7076  
7077  
7078  /**
7079   * WordPress dependencies
7080   */
7081  
7082  
7083  
7084  /**
7085   * Internal dependencies
7086   */
7087  
7088  
7089  var HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
7090  var heading_level_dropdown_POPOVER_PROPS = {
7091    className: 'block-library-heading-level-dropdown',
7092    isAlternate: true
7093  };
7094  /** @typedef {import('@wordpress/element').WPComponent} WPComponent */
7095  
7096  /**
7097   * HeadingLevelDropdown props.
7098   *
7099   * @typedef WPHeadingLevelDropdownProps
7100   *
7101   * @property {number}                 selectedLevel The chosen heading level.
7102   * @property {(newValue:number)=>any} onChange      Callback to run when
7103   *                                                  toolbar value is changed.
7104   */
7105  
7106  /**
7107   * Dropdown for selecting a heading level (1 through 6).
7108   *
7109   * @param {WPHeadingLevelDropdownProps} props Component props.
7110   *
7111   * @return {WPComponent} The toolbar.
7112   */
7113  
7114  function HeadingLevelDropdown(_ref) {
7115    var selectedLevel = _ref.selectedLevel,
7116        onChange = _ref.onChange;
7117    return Object(external_wp_element_["createElement"])(external_wp_components_["Dropdown"], {
7118      popoverProps: heading_level_dropdown_POPOVER_PROPS,
7119      renderToggle: function renderToggle(_ref2) {
7120        var onToggle = _ref2.onToggle,
7121            isOpen = _ref2.isOpen;
7122  
7123        var openOnArrowDown = function openOnArrowDown(event) {
7124          if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
7125            event.preventDefault();
7126            event.stopPropagation();
7127            onToggle();
7128          }
7129        };
7130  
7131        return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
7132          "aria-expanded": isOpen,
7133          "aria-haspopup": "true",
7134          icon: Object(external_wp_element_["createElement"])(HeadingLevelIcon, {
7135            level: selectedLevel
7136          }),
7137          label: Object(external_wp_i18n_["__"])('Change heading level'),
7138          onClick: onToggle,
7139          onKeyDown: openOnArrowDown,
7140          showTooltip: true
7141        });
7142      },
7143      renderContent: function renderContent() {
7144        return Object(external_wp_element_["createElement"])(external_wp_components_["Toolbar"], {
7145          className: "block-library-heading-level-toolbar",
7146          label: Object(external_wp_i18n_["__"])('Change heading level')
7147        }, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], {
7148          isCollapsed: false,
7149          controls: HEADING_LEVELS.map(function (targetLevel) {
7150            var isActive = targetLevel === selectedLevel;
7151            return {
7152              icon: Object(external_wp_element_["createElement"])(HeadingLevelIcon, {
7153                level: targetLevel,
7154                isPressed: isActive
7155              }),
7156              title: Object(external_wp_i18n_["sprintf"])( // translators: %s: heading level e.g: "1", "2", "3"
7157              Object(external_wp_i18n_["__"])('Heading %d'), targetLevel),
7158              isActive: isActive,
7159              onClick: function onClick() {
7160                onChange(targetLevel);
7161              }
7162            };
7163          })
7164        }));
7165      }
7166    });
7167  }
7168  
7169  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js
7170  
7171  
7172  
7173  
7174  function heading_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7175  
7176  function heading_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { heading_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { heading_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7177  
7178  /**
7179   * External dependencies
7180   */
7181  
7182  /**
7183   * WordPress dependencies
7184   */
7185  
7186  
7187  
7188  
7189  /**
7190   * Internal dependencies
7191   */
7192  
7193  
7194  
7195  function HeadingEdit(_ref) {
7196    var attributes = _ref.attributes,
7197        setAttributes = _ref.setAttributes,
7198        mergeBlocks = _ref.mergeBlocks,
7199        onReplace = _ref.onReplace,
7200        mergedStyle = _ref.mergedStyle,
7201        clientId = _ref.clientId;
7202    var textAlign = attributes.textAlign,
7203        content = attributes.content,
7204        level = attributes.level,
7205        placeholder = attributes.placeholder;
7206    var tagName = 'h' + level;
7207    var blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
7208      className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)),
7209      style: mergedStyle
7210    });
7211    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
7212      group: "block"
7213    }, Object(external_wp_element_["createElement"])(HeadingLevelDropdown, {
7214      selectedLevel: level,
7215      onChange: function onChange(newLevel) {
7216        return setAttributes({
7217          level: newLevel
7218        });
7219      }
7220    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["AlignmentControl"], {
7221      value: textAlign,
7222      onChange: function onChange(nextAlign) {
7223        setAttributes({
7224          textAlign: nextAlign
7225        });
7226      }
7227    })), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({
7228      identifier: "content",
7229      tagName: tagName,
7230      value: content,
7231      onChange: function onChange(value) {
7232        return setAttributes({
7233          content: value
7234        });
7235      },
7236      onMerge: mergeBlocks,
7237      onSplit: function onSplit(value, isOriginal) {
7238        var block;
7239  
7240        if (isOriginal || value) {
7241          block = Object(external_wp_blocks_["createBlock"])('core/heading', heading_edit_objectSpread(heading_edit_objectSpread({}, attributes), {}, {
7242            content: value
7243          }));
7244        } else {
7245          block = Object(external_wp_blocks_["createBlock"])('core/paragraph');
7246        }
7247  
7248        if (isOriginal) {
7249          block.clientId = clientId;
7250        }
7251  
7252        return block;
7253      },
7254      onReplace: onReplace,
7255      onRemove: function onRemove() {
7256        return onReplace([]);
7257      },
7258      "aria-label": Object(external_wp_i18n_["__"])('Heading text'),
7259      placeholder: placeholder || Object(external_wp_i18n_["__"])('Heading'),
7260      textAlign: textAlign
7261    }, blockProps)));
7262  }
7263  
7264  /* harmony default export */ var heading_edit = (HeadingEdit);
7265  
7266  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js
7267  
7268  
7269  
7270  /**
7271   * External dependencies
7272   */
7273  
7274  /**
7275   * WordPress dependencies
7276   */
7277  
7278  
7279  function heading_save_save(_ref) {
7280    var attributes = _ref.attributes;
7281    var textAlign = attributes.textAlign,
7282        content = attributes.content,
7283        level = attributes.level;
7284    var TagName = 'h' + level;
7285    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign));
7286    return Object(external_wp_element_["createElement"])(TagName, external_wp_blockEditor_["useBlockProps"].save({
7287      className: className
7288    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7289      value: content
7290    }));
7291  }
7292  
7293  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js
7294  /**
7295   * Given a node name string for a heading node, returns its numeric level.
7296   *
7297   * @param {string} nodeName Heading node name.
7298   *
7299   * @return {number} Heading level.
7300   */
7301  function getLevelFromHeadingNodeName(nodeName) {
7302    return Number(nodeName.substr(1));
7303  }
7304  
7305  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js
7306  
7307  
7308  /**
7309   * WordPress dependencies
7310   */
7311  
7312  /**
7313   * Internal dependencies
7314   */
7315  
7316  
7317  var transforms_apiVersion$name$cate = {
7318    apiVersion: 2,
7319    name: "core/heading",
7320    category: "text",
7321    attributes: {
7322      textAlign: {
7323        type: "string"
7324      },
7325      content: {
7326        type: "string",
7327        source: "html",
7328        selector: "h1,h2,h3,h4,h5,h6",
7329        "default": "",
7330        __experimentalRole: "content"
7331      },
7332      level: {
7333        type: "number",
7334        "default": 2
7335      },
7336      placeholder: {
7337        type: "string"
7338      }
7339    },
7340    supports: {
7341      align: ["wide", "full"],
7342      anchor: true,
7343      className: false,
7344      color: {
7345        link: true
7346      },
7347      fontSize: true,
7348      lineHeight: true,
7349      __experimentalSelector: {
7350        "core/heading/h1": {
7351          selector: "h1",
7352          title: "h1",
7353          attributes: {
7354            level: 1
7355          }
7356        },
7357        "core/heading/h2": {
7358          selector: "h2",
7359          title: "h2",
7360          attributes: {
7361            level: 2
7362          }
7363        },
7364        "core/heading/h3": {
7365          selector: "h3",
7366          title: "h3",
7367          attributes: {
7368            level: 3
7369          }
7370        },
7371        "core/heading/h4": {
7372          selector: "h4",
7373          title: "h4",
7374          attributes: {
7375            level: 4
7376          }
7377        },
7378        "core/heading/h5": {
7379          selector: "h5",
7380          title: "h5",
7381          attributes: {
7382            level: 5
7383          }
7384        },
7385        "core/heading/h6": {
7386          selector: "h6",
7387          title: "h6",
7388          attributes: {
7389            level: 6
7390          }
7391        }
7392      },
7393      __unstablePasteTextInline: true
7394    },
7395    editorStyle: "wp-block-heading-editor",
7396    style: "wp-block-heading"
7397  },
7398      heading_transforms_name = transforms_apiVersion$name$cate.name;
7399  var heading_transforms_transforms = {
7400    from: [{
7401      type: 'block',
7402      isMultiBlock: true,
7403      blocks: ['core/paragraph'],
7404      transform: function transform(attributes) {
7405        return attributes.map(function (_ref) {
7406          var content = _ref.content,
7407              anchor = _ref.anchor;
7408          return Object(external_wp_blocks_["createBlock"])(heading_transforms_name, {
7409            content: content,
7410            anchor: anchor
7411          });
7412        });
7413      }
7414    }, {
7415      type: 'raw',
7416      selector: 'h1,h2,h3,h4,h5,h6',
7417      schema: function schema(_ref2) {
7418        var phrasingContentSchema = _ref2.phrasingContentSchema,
7419            isPaste = _ref2.isPaste;
7420        var schema = {
7421          children: phrasingContentSchema,
7422          attributes: isPaste ? [] : ['style', 'id']
7423        };
7424        return {
7425          h1: schema,
7426          h2: schema,
7427          h3: schema,
7428          h4: schema,
7429          h5: schema,
7430          h6: schema
7431        };
7432      },
7433      transform: function transform(node) {
7434        var attributes = Object(external_wp_blocks_["getBlockAttributes"])(heading_transforms_name, node.outerHTML);
7435  
7436        var _ref3 = node.style || {},
7437            textAlign = _ref3.textAlign;
7438  
7439        attributes.level = getLevelFromHeadingNodeName(node.nodeName);
7440  
7441        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
7442          attributes.align = textAlign;
7443        }
7444  
7445        return Object(external_wp_blocks_["createBlock"])(heading_transforms_name, attributes);
7446      }
7447    }].concat(Object(toConsumableArray["a" /* default */])([1, 2, 3, 4, 5, 6].map(function (level) {
7448      return {
7449        type: 'prefix',
7450        prefix: Array(level + 1).join('#'),
7451        transform: function transform(content) {
7452          return Object(external_wp_blocks_["createBlock"])(heading_transforms_name, {
7453            level: level,
7454            content: content
7455          });
7456        }
7457      };
7458    })), Object(toConsumableArray["a" /* default */])([1, 2, 3, 4, 5, 6].map(function (level) {
7459      return {
7460        type: 'enter',
7461        regExp: new RegExp("^/(h|H)".concat(level, "$")),
7462        transform: function transform(content) {
7463          return Object(external_wp_blocks_["createBlock"])(heading_transforms_name, {
7464            level: level,
7465            content: content
7466          });
7467        }
7468      };
7469    }))),
7470    to: [{
7471      type: 'block',
7472      isMultiBlock: true,
7473      blocks: ['core/paragraph'],
7474      transform: function transform(attributes) {
7475        return attributes.map(function (_ref4) {
7476          var content = _ref4.content,
7477              anchor = _ref4.anchor;
7478          return Object(external_wp_blocks_["createBlock"])('core/paragraph', {
7479            content: content,
7480            anchor: anchor
7481          });
7482        });
7483      }
7484    }]
7485  };
7486  /* harmony default export */ var heading_transforms = (heading_transforms_transforms);
7487  
7488  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js
7489  /**
7490   * External dependencies
7491   */
7492  
7493  /**
7494   * WordPress dependencies
7495   */
7496  
7497  
7498  
7499  /**
7500   * Internal dependencies
7501   */
7502  
7503  
7504  
7505  var heading_metadata = {
7506    apiVersion: 2,
7507    name: "core/heading",
7508    category: "text",
7509    attributes: {
7510      textAlign: {
7511        type: "string"
7512      },
7513      content: {
7514        type: "string",
7515        source: "html",
7516        selector: "h1,h2,h3,h4,h5,h6",
7517        "default": "",
7518        __experimentalRole: "content"
7519      },
7520      level: {
7521        type: "number",
7522        "default": 2
7523      },
7524      placeholder: {
7525        type: "string"
7526      }
7527    },
7528    supports: {
7529      align: ["wide", "full"],
7530      anchor: true,
7531      className: false,
7532      color: {
7533        link: true
7534      },
7535      fontSize: true,
7536      lineHeight: true,
7537      __experimentalSelector: {
7538        "core/heading/h1": {
7539          selector: "h1",
7540          title: "h1",
7541          attributes: {
7542            level: 1
7543          }
7544        },
7545        "core/heading/h2": {
7546          selector: "h2",
7547          title: "h2",
7548          attributes: {
7549            level: 2
7550          }
7551        },
7552        "core/heading/h3": {
7553          selector: "h3",
7554          title: "h3",
7555          attributes: {
7556            level: 3
7557          }
7558        },
7559        "core/heading/h4": {
7560          selector: "h4",
7561          title: "h4",
7562          attributes: {
7563            level: 4
7564          }
7565        },
7566        "core/heading/h5": {
7567          selector: "h5",
7568          title: "h5",
7569          attributes: {
7570            level: 5
7571          }
7572        },
7573        "core/heading/h6": {
7574          selector: "h6",
7575          title: "h6",
7576          attributes: {
7577            level: 6
7578          }
7579        }
7580      },
7581      __unstablePasteTextInline: true
7582    },
7583    editorStyle: "wp-block-heading-editor",
7584    style: "wp-block-heading"
7585  };
7586  
7587  
7588  var heading_name = heading_metadata.name;
7589  
7590  var heading_settings = {
7591    title: Object(external_wp_i18n_["_x"])('Heading', 'block title'),
7592    description: Object(external_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),
7593    icon: library_heading,
7594    keywords: [Object(external_wp_i18n_["__"])('title'), Object(external_wp_i18n_["__"])('subtitle')],
7595    example: {
7596      attributes: {
7597        content: Object(external_wp_i18n_["__"])('Code is Poetry'),
7598        level: 2
7599      }
7600    },
7601    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
7602      var context = _ref.context;
7603  
7604      if (context === 'accessibility') {
7605        var content = attributes.content,
7606            level = attributes.level;
7607        return Object(external_lodash_["isEmpty"])(content) ? Object(external_wp_i18n_["sprintf"])(
7608        /* translators: accessibility text. %s: heading level. */
7609        Object(external_wp_i18n_["__"])('Level %s. Empty.'), level) : Object(external_wp_i18n_["sprintf"])(
7610        /* translators: accessibility text. 1: heading level. 2: heading content. */
7611        Object(external_wp_i18n_["__"])('Level %1$s. %2$s'), level, content);
7612      }
7613    },
7614    transforms: heading_transforms,
7615    deprecated: heading_deprecated,
7616    merge: function merge(attributes, attributesToMerge) {
7617      return {
7618        content: (attributes.content || '') + (attributesToMerge.content || '')
7619      };
7620    },
7621    edit: heading_edit,
7622    save: heading_save_save
7623  };
7624  
7625  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/quote.js
7626  
7627  
7628  /**
7629   * WordPress dependencies
7630   */
7631  
7632  var quote = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
7633    viewBox: "0 0 24 24",
7634    xmlns: "http://www.w3.org/2000/svg"
7635  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
7636    d: "M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"
7637  }));
7638  /* harmony default export */ var library_quote = (quote);
7639  
7640  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js
7641  
7642  
7643  
7644  function quote_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7645  
7646  function quote_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7647  
7648  /**
7649   * External dependencies
7650   */
7651  
7652  /**
7653   * WordPress dependencies
7654   */
7655  
7656  
7657  var quote_deprecated_blockAttributes = {
7658    value: {
7659      type: 'string',
7660      source: 'html',
7661      selector: 'blockquote',
7662      multiline: 'p',
7663      default: ''
7664    },
7665    citation: {
7666      type: 'string',
7667      source: 'html',
7668      selector: 'cite',
7669      default: ''
7670    },
7671    align: {
7672      type: 'string'
7673    }
7674  };
7675  var quote_deprecated_deprecated = [{
7676    attributes: quote_deprecated_blockAttributes,
7677    save: function save(_ref) {
7678      var attributes = _ref.attributes;
7679      var align = attributes.align,
7680          value = attributes.value,
7681          citation = attributes.citation;
7682      return Object(external_wp_element_["createElement"])("blockquote", {
7683        style: {
7684          textAlign: align ? align : null
7685        }
7686      }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7687        multiline: true,
7688        value: value
7689      }), !external_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7690        tagName: "cite",
7691        value: citation
7692      }));
7693    }
7694  }, {
7695    attributes: quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes), {}, {
7696      style: {
7697        type: 'number',
7698        default: 1
7699      }
7700    }),
7701    migrate: function migrate(attributes) {
7702      if (attributes.style === 2) {
7703        return quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, Object(external_lodash_["omit"])(attributes, ['style'])), {}, {
7704          className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
7705        });
7706      }
7707  
7708      return attributes;
7709    },
7710    save: function save(_ref2) {
7711      var attributes = _ref2.attributes;
7712      var align = attributes.align,
7713          value = attributes.value,
7714          citation = attributes.citation,
7715          style = attributes.style;
7716      return Object(external_wp_element_["createElement"])("blockquote", {
7717        className: style === 2 ? 'is-large' : '',
7718        style: {
7719          textAlign: align ? align : null
7720        }
7721      }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7722        multiline: true,
7723        value: value
7724      }), !external_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7725        tagName: "cite",
7726        value: citation
7727      }));
7728    }
7729  }, {
7730    attributes: quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes), {}, {
7731      citation: {
7732        type: 'string',
7733        source: 'html',
7734        selector: 'footer',
7735        default: ''
7736      },
7737      style: {
7738        type: 'number',
7739        default: 1
7740      }
7741    }),
7742    save: function save(_ref3) {
7743      var attributes = _ref3.attributes;
7744      var align = attributes.align,
7745          value = attributes.value,
7746          citation = attributes.citation,
7747          style = attributes.style;
7748      return Object(external_wp_element_["createElement"])("blockquote", {
7749        className: "blocks-quote-style-".concat(style),
7750        style: {
7751          textAlign: align ? align : null
7752        }
7753      }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7754        multiline: true,
7755        value: value
7756      }), !external_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7757        tagName: "footer",
7758        value: citation
7759      }));
7760    }
7761  }];
7762  /* harmony default export */ var quote_deprecated = (quote_deprecated_deprecated);
7763  
7764  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
7765  
7766  
7767  
7768  function quote_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7769  
7770  function quote_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7771  
7772  /**
7773   * External dependencies
7774   */
7775  
7776  /**
7777   * WordPress dependencies
7778   */
7779  
7780  
7781  
7782  
7783  
7784  
7785  var isWebPlatform = external_wp_element_["Platform"].OS === 'web';
7786  function QuoteEdit(_ref) {
7787    var attributes = _ref.attributes,
7788        setAttributes = _ref.setAttributes,
7789        isSelected = _ref.isSelected,
7790        mergeBlocks = _ref.mergeBlocks,
7791        onReplace = _ref.onReplace,
7792        className = _ref.className,
7793        insertBlocksAfter = _ref.insertBlocksAfter,
7794        mergedStyle = _ref.mergedStyle;
7795    var align = attributes.align,
7796        value = attributes.value,
7797        citation = attributes.citation;
7798    var blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
7799      className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)),
7800      style: mergedStyle
7801    });
7802    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
7803      group: "block"
7804    }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["AlignmentControl"], {
7805      value: align,
7806      onChange: function onChange(nextAlign) {
7807        setAttributes({
7808          align: nextAlign
7809        });
7810      }
7811    })), Object(external_wp_element_["createElement"])(external_wp_components_["BlockQuotation"], blockProps, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], {
7812      identifier: "value",
7813      multiline: true,
7814      value: value,
7815      onChange: function onChange(nextValue) {
7816        return setAttributes({
7817          value: nextValue
7818        });
7819      },
7820      onMerge: mergeBlocks,
7821      onRemove: function onRemove(forward) {
7822        var hasEmptyCitation = !citation || citation.length === 0;
7823  
7824        if (!forward && hasEmptyCitation) {
7825          onReplace([]);
7826        }
7827      },
7828      "aria-label": Object(external_wp_i18n_["__"])('Quote text'),
7829      placeholder: // translators: placeholder text used for the quote
7830      Object(external_wp_i18n_["__"])('Add quote'),
7831      onReplace: onReplace,
7832      onSplit: function onSplit(piece) {
7833        return Object(external_wp_blocks_["createBlock"])('core/quote', quote_edit_objectSpread(quote_edit_objectSpread({}, attributes), {}, {
7834          value: piece
7835        }));
7836      },
7837      __unstableOnSplitMiddle: function __unstableOnSplitMiddle() {
7838        return Object(external_wp_blocks_["createBlock"])('core/paragraph');
7839      },
7840      textAlign: align
7841    }), (!external_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], {
7842      identifier: "citation",
7843      tagName: isWebPlatform ? 'cite' : undefined,
7844      style: {
7845        display: 'block'
7846      },
7847      value: citation,
7848      onChange: function onChange(nextCitation) {
7849        return setAttributes({
7850          citation: nextCitation
7851        });
7852      },
7853      __unstableMobileNoFocusOnMount: true,
7854      "aria-label": Object(external_wp_i18n_["__"])('Quote citation text'),
7855      placeholder: // translators: placeholder text used for the citation
7856      Object(external_wp_i18n_["__"])('Add citation'),
7857      className: "wp-block-quote__citation",
7858      textAlign: align,
7859      __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() {
7860        return insertBlocksAfter(Object(external_wp_blocks_["createBlock"])('core/paragraph'));
7861      }
7862    })));
7863  }
7864  
7865  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js
7866  
7867  
7868  
7869  /**
7870   * External dependencies
7871   */
7872  
7873  /**
7874   * WordPress dependencies
7875   */
7876  
7877  
7878  function quote_save_save(_ref) {
7879    var attributes = _ref.attributes;
7880    var align = attributes.align,
7881        value = attributes.value,
7882        citation = attributes.citation;
7883    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
7884    return Object(external_wp_element_["createElement"])("blockquote", external_wp_blockEditor_["useBlockProps"].save({
7885      className: className
7886    }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7887      multiline: true,
7888      value: value
7889    }), !external_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"].Content, {
7890      tagName: "cite",
7891      value: citation
7892    }));
7893  }
7894  
7895  // EXTERNAL MODULE: external ["wp","richText"]
7896  var external_wp_richText_ = __webpack_require__(19);
7897  
7898  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js
7899  
7900  
7901  
7902  
7903  function quote_transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7904  
7905  function quote_transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7906  
7907  /**
7908   * WordPress dependencies
7909   */
7910  
7911  
7912  var quote_transforms_transforms = {
7913    from: [{
7914      type: 'block',
7915      isMultiBlock: true,
7916      blocks: ['core/paragraph'],
7917      transform: function transform(attributes) {
7918        return Object(external_wp_blocks_["createBlock"])('core/quote', {
7919          value: Object(external_wp_richText_["toHTMLString"])({
7920            value: Object(external_wp_richText_["join"])(attributes.map(function (_ref) {
7921              var content = _ref.content;
7922              return Object(external_wp_richText_["create"])({
7923                html: content
7924              });
7925            }), "\u2028"),
7926            multilineTag: 'p'
7927          }),
7928          anchor: attributes.anchor
7929        });
7930      }
7931    }, {
7932      type: 'block',
7933      blocks: ['core/heading'],
7934      transform: function transform(_ref2) {
7935        var content = _ref2.content,
7936            anchor = _ref2.anchor;
7937        return Object(external_wp_blocks_["createBlock"])('core/quote', {
7938          value: "<p>".concat(content, "</p>"),
7939          anchor: anchor
7940        });
7941      }
7942    }, {
7943      type: 'block',
7944      blocks: ['core/pullquote'],
7945      transform: function transform(_ref3) {
7946        var value = _ref3.value,
7947            citation = _ref3.citation,
7948            anchor = _ref3.anchor;
7949        return Object(external_wp_blocks_["createBlock"])('core/quote', {
7950          value: value,
7951          citation: citation,
7952          anchor: anchor
7953        });
7954      }
7955    }, {
7956      type: 'prefix',
7957      prefix: '>',
7958      transform: function transform(content) {
7959        return Object(external_wp_blocks_["createBlock"])('core/quote', {
7960          value: "<p>".concat(content, "</p>")
7961        });
7962      }
7963    }, {
7964      type: 'raw',
7965      isMatch: function isMatch(node) {
7966        var isParagraphOrSingleCite = function () {
7967          var hasCitation = false;
7968          return function (child) {
7969            // Child is a paragraph.
7970            if (child.nodeName === 'P') {
7971              return true;
7972            } // Child is a cite and no other cite child exists before it.
7973  
7974  
7975            if (!hasCitation && child.nodeName === 'CITE') {
7976              hasCitation = true;
7977              return true;
7978            }
7979          };
7980        }();
7981  
7982        return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph
7983        // content with an optional cite child.
7984        Array.from(node.childNodes).every(isParagraphOrSingleCite);
7985      },
7986      schema: function schema(_ref4) {
7987        var phrasingContentSchema = _ref4.phrasingContentSchema;
7988        return {
7989          blockquote: {
7990            children: {
7991              p: {
7992                children: phrasingContentSchema
7993              },
7994              cite: {
7995                children: phrasingContentSchema
7996              }
7997            }
7998          }
7999        };
8000      }
8001    }],
8002    to: [{
8003      type: 'block',
8004      blocks: ['core/paragraph'],
8005      transform: function transform(_ref5) {
8006        var value = _ref5.value,
8007            citation = _ref5.citation;
8008        var paragraphs = [];
8009  
8010        if (value && value !== '<p></p>') {
8011          paragraphs.push.apply(paragraphs, Object(toConsumableArray["a"